[tor-commits] [onionoo/master] Avoid redundant new String() call.
karsten at torproject.org
karsten at torproject.org
Mon Aug 27 12:34:52 UTC 2018
commit d9eee3208c4861ccca9d6b4c1e118c4892f8febe
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Mon Aug 20 20:28:14 2018 +0200
Avoid redundant new String() call.
---
src/test/java/org/torproject/onionoo/util/FormattingUtilsTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/org/torproject/onionoo/util/FormattingUtilsTest.java b/src/test/java/org/torproject/onionoo/util/FormattingUtilsTest.java
index 8744696..24e96c4 100644
--- a/src/test/java/org/torproject/onionoo/util/FormattingUtilsTest.java
+++ b/src/test/java/org/torproject/onionoo/util/FormattingUtilsTest.java
@@ -38,6 +38,6 @@ public class FormattingUtilsTest {
@Test
public void testReplaceUtf() {
- assertEquals(out, new String(FormattingUtils.replaceValidUtf(in)));
+ assertEquals(out, FormattingUtils.replaceValidUtf(in));
}
}
More information about the tor-commits
mailing list