fix sonar rule check violations

This commit is contained in:
wenshao
2012-08-29 17:18:17 +08:00
parent c07d671534
commit f3d2a88c4d
29 changed files with 110 additions and 135 deletions
@@ -16,7 +16,6 @@
package com.alibaba.druid.support.http;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
@@ -510,9 +509,5 @@ public class WebStatFilter implements Filter {
public int getStatus() {
return status;
}
public PrintWriter getWriter() throws IOException {
return super.getWriter();
}
}
}
@@ -706,7 +706,7 @@ public class WebAppStat {
} else if (userAgent.indexOf("FreeBSD") != -1) {
osFreeBSDCount.incrementAndGet();
isBSD = true;
} else if (isLinux == false && userAgent.indexOf("Linux") != -1) {
} else if ((!isLinux) && userAgent.indexOf("Linux") != -1) {
osLinuxCount.incrementAndGet();
isLinux = true;
}