-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pull] main from openrewrite:main #12
Conversation
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.staticanalysis.CompareEnumsWithEqualityOperator?organizationId=T3BlblJld3JpdGU%3D Co-authored-by: Moderne <[email protected]>
* Make the same performance improvement to parameter names allocations that we previously made to Java 17/21 in #3345.
Reviewer's Guide by SourceryThis pull request updates the handling of thrown exceptions in JavaType.Method and improves type mapping in ReloadableJavaTypeMapping. Class diagram showing changes to JavaType.MethodclassDiagram
class Method {
-Integer managedReference
-long flagsBitMap
-FullyQualified declaringType
-String name
-JavaType returnType
-String[] parameterNames
-JavaType[] parameterTypes
-JavaType[] thrownExceptions
-FullyQualified[] annotations
-List~String~ defaultValue
-String[] declaredFormalTypeNames
+getThrownExceptions() List~JavaType~
+withThrownExceptions(List~JavaType~) Method
}
note for Method "Changed thrownExceptions type from FullyQualified[] to JavaType[]
Added declaredFormalTypeNames field for tracking generic type variables"
Class diagram showing type comparison changesclassDiagram
class TypeComparison {
+equals(Object o) boolean
+isAssignableTo(String fullyQualifiedName) boolean
+isAssignableFrom(JavaType type) boolean
}
note for TypeComparison "Changed .equals() comparisons to == for enum types
Improved type comparison logic"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
See Commits and Changes for more details.
Created by pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )
Summary by Sourcery
Update the handling of thrown exceptions in JavaType.Method.
Bug Fixes:
Enhancements:
Tests: