Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Rename Method
  • Loading branch information
rcosta358 committed Mar 26, 2026
commit 3823d53b9ccaf2718971244eb7bc9ef651123831
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class AuxStateHandler {
*/
@SuppressWarnings({ "unchecked", "rawtypes" })
public static void handleConstructorState(CtConstructor<?> c, RefinedFunction f, TypeChecker tc) throws LJError {
List<CtAnnotation<? extends Annotation>> an = getStateAnnotation(c);
List<CtAnnotation<? extends Annotation>> an = getStateAnnotations(c);
if (!an.isEmpty()) {
for (CtAnnotation<? extends Annotation> a : an) {
Map<String, CtExpression> m = a.getAllValues();
Expand Down Expand Up @@ -140,7 +140,7 @@ private static List<GhostFunction> getDifferentSets(TypeChecker tc, String klass
*/
public static void handleMethodState(CtMethod<?> method, RefinedFunction f, TypeChecker tc, String prefix)
throws LJError {
List<CtAnnotation<? extends Annotation>> an = getStateAnnotation(method);
List<CtAnnotation<? extends Annotation>> an = getStateAnnotations(method);
if (!an.isEmpty()) {
setFunctionStates(f, an, tc, method, prefix);
}
Expand Down Expand Up @@ -611,7 +611,7 @@ static VariableInstance getTarget(CtElement invocation) {
return null;
}

private static List<CtAnnotation<? extends Annotation>> getStateAnnotation(CtElement element) {
private static List<CtAnnotation<? extends Annotation>> getStateAnnotations(CtElement element) {
return element.getAnnotations().stream().filter(ann -> ann.getAnnotationType().getQualifiedName()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

.contentEquals("liquidjava.specification.StateRefinement")).collect(Collectors.toList());
}
Expand Down
Loading