findbugs correctness fixes, all over the place

This commit is contained in:
zzz
2013-11-07 19:20:25 +00:00
parent 5cbecb3599
commit ae76a6ee1a
8 changed files with 21 additions and 15 deletions

View File

@ -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()) {