mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fix sonar rule check violations
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user