mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
findbugs correctness fixes, all over the place
This commit is contained in:
@@ -3,6 +3,7 @@ package net.i2p.router.web;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
@@ -309,6 +310,8 @@ public class StatSummarizer implements Runnable {
|
||||
* @return list of Rate objects
|
||||
*/
|
||||
Set<Rate> parseSpecs(String specs) {
|
||||
if (specs == null)
|
||||
return Collections.EMPTY_SET;
|
||||
StringTokenizer tok = new StringTokenizer(specs, ",");
|
||||
Set<Rate> rv = new HashSet();
|
||||
while (tok.hasMoreTokens()) {
|
||||
|
||||
Reference in New Issue
Block a user