Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public ClassKey(String className) {
   this.className = className;
   this.fileObject = RuleViolationAnnotationProcessor.findFileObjectForAnnotatedClass(className);
 }