@@ -64,7 +64,7 @@ public Optional<Predicate> getRefinementFromAnnotation(CtElement element) throws
6464 Optional <Predicate > constr = Optional .empty ();
6565 Optional <String > ref = Optional .empty ();
6666 for (CtAnnotation <? extends Annotation > ann : element .getAnnotations ()) {
67- String an = ann .getActualAnnotation ().annotationType (). getCanonicalName ();
67+ String an = ann .getAnnotationType ().getQualifiedName ();
6868 if (an .contentEquals ("liquidjava.specification.Refinement" )) {
6969 String value = getStringFromAnnotation (ann .getValue ("value" ));
7070 ref = Optional .of (value );
@@ -93,7 +93,7 @@ public Optional<Predicate> getRefinementFromAnnotation(CtElement element) throws
9393 @ SuppressWarnings ({ "rawtypes" })
9494 public Optional <String > getMessageFromAnnotation (CtElement element ) {
9595 for (CtAnnotation <? extends Annotation > ann : element .getAnnotations ()) {
96- String an = ann .getActualAnnotation ().annotationType (). getCanonicalName ();
96+ String an = ann .getAnnotationType ().getQualifiedName ();
9797 if (an .contentEquals ("liquidjava.specification.Refinement" )) {
9898 Map <String , CtExpression > values = ann .getAllValues ();
9999 String msg = getStringFromAnnotation ((values .get ("msg" )));
@@ -109,7 +109,7 @@ public Optional<String> getMessageFromAnnotation(CtElement element) {
109109 public void handleStateSetsFromAnnotation (CtElement element ) throws LJError {
110110 int set = 0 ;
111111 for (CtAnnotation <? extends Annotation > ann : element .getAnnotations ()) {
112- String an = ann .getActualAnnotation ().annotationType (). getCanonicalName ();
112+ String an = ann .getAnnotationType ().getQualifiedName ();
113113 if (an .contentEquals ("liquidjava.specification.StateSet" )) {
114114 set ++;
115115 createStateSet ((CtNewArray <String >) ann .getAllValues ().get ("value" ), set , element );
@@ -266,7 +266,7 @@ protected void handleAlias(String ref, CtElement element, SourcePosition positio
266266
267267 Optional <CtAnnotation <?>> getExternalRefinement (CtInterface <?> intrface ) {
268268 for (CtAnnotation <? extends Annotation > ann : intrface .getAnnotations ())
269- if (ann .getActualAnnotation ().annotationType (). getCanonicalName ()
269+ if (ann .getAnnotationType ().getQualifiedName ()
270270 .contentEquals ("liquidjava.specification.ExternalRefinementsFor" )) {
271271 return Optional .of (ann );
272272 }
0 commit comments