Skip to content

Commit 1a2ac2e

Browse files
Fix SpotBugs DM_DEFAULT_ENCODING by using Util helper methods for explicit UTF-8 encoding
1 parent ebde08c commit 1a2ac2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CodenameOne/src/com/codename1/io/gzip/GZIPInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public long getCRC() throws GZIPException {
7676

7777
public void readHeader() throws IOException {
7878

79-
byte[] empty = com.codename1.io.Util.getBytes("");
79+
byte[] empty = new byte[0];
8080
inflater.setOutput(empty, 0, 0);
8181
inflater.setInput(empty, 0, 0, false);
8282

CodenameOne/src/com/codename1/io/gzip/InflaterInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public byte[] getAvailIn() {
218218

219219
public void readHeader() throws IOException {
220220

221-
byte[] empty = com.codename1.io.Util.getBytes("");
221+
byte[] empty = new byte[0];
222222
inflater.setInput(empty, 0, 0, false);
223223
inflater.setOutput(empty, 0, 0);
224224

0 commit comments

Comments
 (0)