CPD Results
The following document contains the results of PMD's CPD
4.2.2.
Duplications
File |
Line |
net/sf/bimbo/BimboServlet.java |
423
|
net/sf/bimbo/BimboServlet.java |
533
|
if (-1 != actionName.indexOf("(")) {
LOG.debug("table action requested");
String tableFieldName = actionName.substring(actionName
.indexOf("(") + 1, actionName.indexOf("."));
LOG.debug("table field name: " + tableFieldName);
Field tableField;
try {
tableField = pageClass.getDeclaredField(tableFieldName);
} catch (Exception e) {
writer.println("field not found: " + tableFieldName);
return;
}
if (false == List.class.equals(tableField.getType())) {
writer.println("field is not a list: " + tableFieldName);
return;
}
Integer tableActionIdx = Integer.parseInt(actionName.substring(
actionName.indexOf(".") + 1, actionName.indexOf(")")));
|
File |
Line |
net/sf/bimbo/BimboServlet.java |
1328
|
net/sf/bimbo/BimboServlet.java |
1493
|
Class<?> outputClass = field.getType();
Field[] recordFields = outputClass.getDeclaredFields();
for (Field recordField : recordFields) {
Output recordOutputAnnotation = recordField
.getAnnotation(Output.class);
if (null == recordOutputAnnotation) {
continue;
}
writer.println("<tr>");
{
String recordLabel = recordOutputAnnotation.value();
if ("".equals(recordLabel)) {
recordLabel = recordField.getName();
}
new HtmlElement("th").addAttribute("align", "left")
.addAttribute("style", "background-color: #e0e0e0;")
.setBody(recordLabel + ":").write(writer);
recordField.setAccessible(true);
Object value;
|