Skip to content

Commit 9d1bb1e

Browse files
Locate only a literal state value by its own position
A concatenated value falls back to the text search, as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 3087b62 commit 9d1bb1e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • liquidjava-verifier/src/main/java/liquidjava/processor/refinement_checker/object_checkers

‎liquidjava-verifier/src/main/java/liquidjava/processor/refinement_checker/object_checkers/AuxStateHandler.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,9 @@ private static ObjectState getStates(CtAnnotation<? extends Annotation> ctAnnota
433433
return state;
434434
}
435435

436-
// Where this annotation writes the value, as another annotation of the element may write the same text
436+
// Where this annotation writes a literal value, since another annotation of the element may write the same text
437437
private static SourcePosition valuePosition(CtExpression<?> value, CtElement element, String written) {
438-
SourcePosition position = Utils.getAnnotationValuePosition(value);
438+
SourcePosition position = value instanceof CtLiteral<?> ? Utils.getAnnotationValuePosition(value) : null;
439439
return position != null ? position : Utils.getLJAnnotationPosition(element, written);
440440
}
441441

0 commit comments

Comments
 (0)