File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
components/sbm-core/src/main/java/org/springframework/sbm/java/impl Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ public Annotation getAnnotation(String annotation) {
82
82
} else if (type1 .getClass ().isAssignableFrom (JavaType .Class .class )) {
83
83
JavaType .Class type = (JavaType .Class ) a .getType ();
84
84
if (type == null ) {
85
- String simpleName = (( J . Identifier ) a . getAnnotationType ()) .getSimpleName ();
85
+ String simpleName = a .getSimpleName ();
86
86
log .error ("Could not get Type for annotation: '" + simpleName + "' while comparing with '" + annotation + "'." );
87
87
return false ;
88
88
}
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ private List<J.Annotation> findORAnnotations(String annotation) {
178
178
.stream ()
179
179
.filter (a -> {
180
180
Object typeObject = a .getAnnotationType ().getType ();
181
- String simpleName = (( J . Identifier ) a . getAnnotationType ()) .getSimpleName ();
181
+ String simpleName = a .getSimpleName ();
182
182
if (JavaType .Unknown .class .isInstance (typeObject )) {
183
183
log .warn ("Could not resolve Type for annotation: '" + simpleName + "' while comparing with '" + annotation + "'." );
184
184
return false ;
You can’t perform that action at this time.
0 commit comments