stmt = connection.createStatement();
stmt.setFetchSize(10000);
rs = stmt.executeQuery("select id from rule_failures");
- ConcurrentLinkedQueue<long[]> queue = new ConcurrentLinkedQueue<long[]>();
+ Queue<long[]> queue = new ConcurrentLinkedQueue<long[]>();
totalViolations = 0;
long[] block = new long[VIOLATION_GROUP_SIZE];
String convertKey(String packageKey) {
String prefix = StringUtils.substringBeforeLast(packageKey, ":") + ":";
String key = StringUtils.substringAfterLast(packageKey, ":");
- if (key.equals("[default]")) {
+ if ("[default]".equals(key)) {
return prefix + "[root]";
}
return prefix + StringUtils.replace(key, ".", "/");