Skip to content

Commit

Permalink
Merge pull request #1007 from phillip-kruger/main
Browse files Browse the repository at this point in the history
Include class hash in hash for operation methods
  • Loading branch information
phillip-kruger committed Dec 21, 2021
2 parents c4ce316 + ca556c1 commit 7aa314e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ default Optional<Operation> processOperation(final AnnotationScannerContext cont
operation = new OperationImpl();
}

operation.setMethodRef(JandexUtil.createUniqueMethodReference(method));
operation.setMethodRef(JandexUtil.createUniqueMethodReference(resourceClass, method));

OperationIdStrategy operationIdStrategy = context.getConfig().getOperationIdStrategy();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ public static RefType fromComponentPath(String path) {
private JandexUtil() {
}

public static String createUniqueMethodReference(MethodInfo methodInfo) {
return "" + methodInfo.hashCode();
public static String createUniqueMethodReference(ClassInfo classInfo, MethodInfo methodInfo) {
return "" + classInfo.hashCode() + "_" + methodInfo.hashCode();
}

/**
Expand Down

0 comments on commit 7aa314e

Please sign in to comment.