Fix Checkstyle warnings about empty catch blocks
Most of them are empty because the exceptions are ignored. In these cases add an "Ignored" comment to prevent the warning. In the other couple of cases the problem might be worth investigation by an admin, so add a warning log. Change-Id: I415fa042f5205cb0745ef7286fba5f5910f1dedd
This commit is contained in:
@@ -81,6 +81,7 @@ public class UserAgent {
|
||||
try {
|
||||
return Integer.parseInt(p);
|
||||
} catch (NumberFormatException nan) {
|
||||
// Ignored
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user