CPD Results

The following document contains the results of PMD's CPD 4.2.1.

Duplications

FileLine
net/sf/tacos/annotations/InjectExternalLinkAnnotationWorker.java74
net/sf/tacos/annotations/InjectPageLinkAnnotationWorker.java56
            builder.end();

            op.addMethod(Modifier.PUBLIC, new MethodSignature(method), builder
                            .toString(), location);

            if (isGetter(method))
                    op.claimReadonlyProperty(AnnotationUtils.getPropertyName(method));
	}

	boolean isGetter(Method method) {
		return method.getName().startsWith("get")
				&& method.getParameterTypes().length == 0;
	}
}