diff options
| author | sgaebel <sgaebel@localhost.localdomain> | 2020-07-26 23:44:54 +0200 |
|---|---|---|
| committer | sgaebel <sgaebel@localhost.localdomain> | 2020-07-27 22:20:49 +0200 |
| commit | df9ea0a42a6188246bc77ea98b49f2f6babf50c6 (patch) | |
| tree | 8bd2749dceb9d9879303475b3e3c157d0b1a50b8 /test/java | |
| parent | e039a797d28d90ef5af3a7e1695fc0bf60867507 (diff) | |
removes some warnings: unused imports, params
Diffstat (limited to 'test/java')
| -rw-r--r-- | test/java/net/yacy/peers/NewsPoolTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/java/net/yacy/peers/NewsPoolTest.java b/test/java/net/yacy/peers/NewsPoolTest.java index 3fa45ef22..43e5b4c33 100644 --- a/test/java/net/yacy/peers/NewsPoolTest.java +++ b/test/java/net/yacy/peers/NewsPoolTest.java @@ -45,7 +45,7 @@ public class NewsPoolTest { Seed myseed = new Seed(ASCII.String(hash), dna);
// generate 3 test messages and simulate publish (put in outgoing queuq
- Map<String, String> msgattr = new HashMap();
+ Map<String, String> msgattr = new HashMap<>();
for (int i = 1; i <= 3; i++) {
msgattr.put("text", "message " + Integer.toString(i));
msgattr.put("#", Integer.toString(i)); // use id modificator attribute (to generate unique id for same creation second, used in id)
@@ -53,7 +53,7 @@ public class NewsPoolTest { }
// test the distribution process
- Set<String> resultmemory = new LinkedHashSet();
+ Set<String> resultmemory = new LinkedHashSet<>();
NewsDB.Record rec = newsPool.myPublication();
int cnt = 3 * 30 + 5; // end condition (3 msg * 30 distribution) for loop (+5 > as expected count)
while (rec != null && cnt > 0) {
|
