@Override public void visitAnnotation(@DottedClassName String annotationClassName, Map<String, ElementValue> map, boolean runtimeVisible) { String annotationClassSimpleName = simpleClassName(annotationClassName); if (v instanceof EnumElementValue) { EnumElementValue when = (EnumElementValue) v; String w = simpleClassName(when.getEnumValueString());
private void handleClassElementValue(ClassElementValue value, Map<String, ElementValue> map, Target annotationTarget) { if ("CheckReturnValue".equals(simpleClassName(value.getClassString()))) { CheckReturnValueAnnotation n = CheckReturnValueAnnotation.parse(getAnnotationParameterAsString(map, "priority")); if (n != null) { AnalysisContext.currentAnalysisContext().getCheckReturnAnnotationDatabase() .addDefaultAnnotation(annotationTarget, getDottedClassName(), n); } } }
@Override public void visitAnnotation(@DottedClassName String annotationClassName, Map<String, ElementValue> map, boolean runtimeVisible) { String annotationClassSimpleName = simpleClassName(annotationClassName); if (v instanceof EnumElementValue) { EnumElementValue when = (EnumElementValue) v; String w = simpleClassName(when.getEnumValueString()); if ("NEVER".equals(w) || "UNKNOWN".equals(w)) { n = CheckReturnValueAnnotation.CHECK_RETURN_VALUE_IGNORE;
private void handleClassElementValue(ClassElementValue value, Map<String, ElementValue> map, Target annotationTarget) { if ("CheckReturnValue".equals(simpleClassName(value.getClassString()))) { CheckReturnValueAnnotation n = CheckReturnValueAnnotation.parse(getAnnotationParameterAsString(map, "priority")); if (n != null) { AnalysisContext.currentAnalysisContext().getCheckReturnAnnotationDatabase() .addDefaultAnnotation(annotationTarget, getDottedClassName(), n); } } }