Пример #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);
 }
Пример #2
0
 public ClassKey(String className) {
   this.className = className;
   this.fileObject = RuleViolationAnnotationProcessor.findFileObjectForAnnotatedClass(className);
 }