[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [onionoo/master] Avoid redundant new String() call.
commit d9eee3208c4861ccca9d6b4c1e118c4892f8febe
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
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));
}
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits