public ClassKey(final IRuleViolation ruleViolation) { this.className = (0 == ruleViolation.getPackageName().length() ? "" : (ruleViolation.getPackageName() + ".")) + ((null == ruleViolation.getClassName() || ruleViolation.getClassName().length() == 0) ? ruleViolation.getFilename() : ruleViolation.getClassName()); this.fileObject = RuleViolationAnnotationProcessor.findFileObjectForAnnotatedClass(className); }
public ClassKey(String className) { this.className = className; this.fileObject = RuleViolationAnnotationProcessor.findFileObjectForAnnotatedClass(className); }