File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
liquidjava-verifier/src/main/java/liquidjava/processor/refinement_checker Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 33import java .lang .annotation .Annotation ;
44import java .util .Collections ;
55import java .util .List ;
6+ import java .util .Map ;
67import java .util .Optional ;
78
89import liquidjava .diagnostics .errors .*;
@@ -89,11 +90,13 @@ public Optional<Predicate> getRefinementFromAnnotation(CtElement element) throws
8990 return constr ;
9091 }
9192
93+ @ SuppressWarnings ({ "rawtypes" })
9294 public Optional <String > getMessageFromAnnotation (CtElement element ) {
9395 for (CtAnnotation <? extends Annotation > ann : element .getAnnotations ()) {
9496 String an = ann .getActualAnnotation ().annotationType ().getCanonicalName ();
9597 if (an .contentEquals ("liquidjava.specification.Refinement" )) {
96- String msg = getStringFromAnnotation (ann .getValue ("msg" ));
98+ Map <String , CtExpression > values = ann .getAllValues ();
99+ String msg = getStringFromAnnotation ((values .get ("msg" )));
97100 if (msg != null && !msg .isEmpty ()) {
98101 return Optional .of (msg );
99102 }
You can’t perform that action at this time.
0 commit comments