Skip to content

Commit 67a0b83

Browse files
committed
Fix test
1 parent bd23d73 commit 67a0b83

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/com/upokecenter/test/DataUtilitiesTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,13 +383,13 @@ public void TestReadUtf8ToString() {
383383
finally {
384384
try { if (ms != null)ms.close(); } catch (java.io.IOException ex) {}
385385
}
386-
java.io.ByteArrayInputStream ms = null;
386+
java.io.ByteArrayInputStream ms2 = null;
387387
try {
388-
ms = new java.io.ByteArrayInputStream(seq);
388+
ms2 = new java.io.ByteArrayInputStream(seq);
389389

390390
String strret = null;
391391
try {
392-
strret = DataUtilities.ReadUtf8ToString(ms, -1, true);
392+
strret = DataUtilities.ReadUtf8ToString(ms2, -1, true);
393393
} catch (Exception ex) {
394394
Assert.fail(ex.toString());
395395
throw new IllegalStateException("", ex);
@@ -398,7 +398,7 @@ public void TestReadUtf8ToString() {
398398
Assert.assertEquals('\ufffd', strret.charAt(0));
399399
}
400400
finally {
401-
try { if (ms != null)ms.close(); } catch (java.io.IOException ex) {}
401+
try { if (ms2 != null)ms2.close(); } catch (java.io.IOException ex) {}
402402
}
403403
}
404404
}

0 commit comments

Comments
 (0)