-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Strip annotations from MethodSymbol strings (#993)
Follow up to #992. This is a better fix for handling type-use annotations that may be present in MethodSymbol strings from JDK 22 forward.
- Loading branch information
Showing
2 changed files
with
9 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -400,13 +400,6 @@ private static class DefaultLibraryModels implements LibraryModels { | |
"com.google.common.base.Preconditions", | ||
"<T>checkNotNull(T,java.lang.String,java.lang.Object...)"), | ||
0) | ||
// For JDK 22 | ||
// TODO check if this is still needed in JDK 23 / subsequent releases | ||
.put( | ||
methodRef( | ||
"com.google.common.base.Preconditions", | ||
"<T>checkNotNull(T,java.lang.String,[email protected] Object...)"), | ||
0) | ||
.put( | ||
methodRef( | ||
"com.google.common.base.Preconditions", | ||
|
@@ -523,13 +516,6 @@ private static class DefaultLibraryModels implements LibraryModels { | |
"com.google.common.base.Verify", | ||
"<T>verifyNotNull(T,java.lang.String,java.lang.Object...)"), | ||
0) | ||
// For JDK 22 | ||
// TODO check if this is still needed in JDK 23 / subsequent releases | ||
.put( | ||
methodRef( | ||
"com.google.common.base.Verify", | ||
"<T>verifyNotNull(T,java.lang.String,[email protected] Object...)"), | ||
0) | ||
.put(methodRef("java.util.Objects", "<T>requireNonNull(T)"), 0) | ||
.put(methodRef("java.util.Objects", "<T>requireNonNull(T,java.lang.String)"), 0) | ||
.put( | ||
|