CPD Results
The following document contains the results of PMD's CPD 4.3.
Duplications
File | Line |
---|
org/apache/logging/log4j/message/ExtendedThreadInformation.java | 111 |
org/apache/logging/log4j/message/ExtendedThreadInformation.java | 134 |
case WAITING: {
StackTraceElement element = info.getStackTrace()[0];
String className = element.getClassName();
String method = element.getMethodName();
if (className.equals("java.lang.Object") && method.equals("wait")) {
sb.append(" (on object monitor");
if (info.getLockOwnerName() != null) {
sb.append(" owned by \"");
sb.append(info.getLockOwnerName()).append("\" Id=").append(info.getLockOwnerId());
}
sb.append(")");
} else if (className.equals("java.lang.Thread") && method.equals("join")) { |
File | Line |
---|
org/apache/logging/log4j/message/ExtendedThreadInformation.java | 121 |
org/apache/logging/log4j/message/ExtendedThreadInformation.java | 146 |
sb.append(")");
} else if (className.equals("java.lang.Thread") && method.equals("join")) {
sb.append(" (on completion of thread ").append(info.getLockOwnerId()).append(")");
} else {
sb.append(" (parking for lock");
if (info.getLockOwnerName() != null) {
sb.append(" owned by \"");
sb.append(info.getLockOwnerName()).append("\" Id=").append(info.getLockOwnerId());
}
sb.append(")");
}
break;
} |