From 604818c78b71adb2de81ccf8873f42b034a452e3 Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 1 Mar 2011 09:33:57 +0000 Subject: [PATCH] Clear remainder of current FindBugs issues in unit tests git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1075742 13f79535-47bb-0310-9956-ffa450edef68 --- res/findbugs/filter-false-positives.xml | 26 ++++++++++++++++++++++ .../catalina/tribes/demos/CoordinationDemo.java | 17 ++++++++++---- test/org/apache/tomcat/util/net/TesterSupport.java | 16 +++++++++++-- 3 files changed, 53 insertions(+), 6 deletions(-) diff --git a/res/findbugs/filter-false-positives.xml b/res/findbugs/filter-false-positives.xml index 886ff61ea..92b4e4185 100644 --- a/res/findbugs/filter-false-positives.xml +++ b/res/findbugs/filter-false-positives.xml @@ -217,6 +217,15 @@ + + + + + + + + + @@ -226,6 +235,23 @@ + + + + + + + + + + + + + + + + + diff --git a/test/org/apache/catalina/tribes/demos/CoordinationDemo.java b/test/org/apache/catalina/tribes/demos/CoordinationDemo.java index 0bc00e1f1..504c0e10e 100644 --- a/test/org/apache/catalina/tribes/demos/CoordinationDemo.java +++ b/test/org/apache/catalina/tribes/demos/CoordinationDemo.java @@ -113,7 +113,12 @@ public class CoordinationDemo { for ( int i=0; i= 1 && (!"quit".equalsIgnoreCase(args[0]))) { if ("start".equalsIgnoreCase(args[0])) { cmdStart(args); @@ -123,7 +128,9 @@ public class CoordinationDemo { } printScreen(); l = reader.readLine(); - args = tokenize(l); + if (l != null) { + args = tokenize(l); + } } for ( int i=0; i