disable annoying or erronous PMD errors

This commit is contained in:
Hans-Christoph Steiner
2020-01-02 21:07:06 +01:00
parent c987e6ad4c
commit 1c0957ce77
6 changed files with 8 additions and 8 deletions

View File

@@ -123,7 +123,7 @@ public class Netstat {
try {
BufferedReader in = new BufferedReader(new FileReader("/proc/net/tcp"));
String line;
while ((line = in.readLine()) != null) {
while ((line = in.readLine()) != null) { // NOPMD
Matcher matcher = NET_PATTERN.matcher(line);
if (matcher.find()) {
final Connection c = new Connection();
@@ -156,7 +156,7 @@ public class Netstat {
try {
BufferedReader in = new BufferedReader(new FileReader("/proc/net/udp"));
String line;
while ((line = in.readLine()) != null) {
while ((line = in.readLine()) != null) { // NOPMD
Matcher matcher = NET_PATTERN.matcher(line);
if (matcher.find()) {
final Connection c = new Connection();
@@ -189,7 +189,7 @@ public class Netstat {
try {
BufferedReader in = new BufferedReader(new FileReader("/proc/net/raw"));
String line;
while ((line = in.readLine()) != null) {
while ((line = in.readLine()) != null) { // NOPMD
Matcher matcher = NET_PATTERN.matcher(line);
if (matcher.find()) {
final Connection c = new Connection();