-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Migrate to JSpecify annotations for nullability constraints #4864
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
base: main
Are you sure you want to change the base?
Conversation
35c9da1
to
c737967
Compare
Signed-off-by: Stefano Cordio <[email protected]>
Signed-off-by: Stefano Cordio <[email protected]>
This executed: ``` mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASE -Drewrite.activeRecipes=org.openrewrite.java.jspecify.MigrateFromSpringFrameworkAnnotations,org.openrewrite.staticanalysis.AnnotateNullableMethods,org.openrewrite.staticanalysis.NullableOnMethodReturnType -Drewrite.exportDatatables=true ``` Signed-off-by: Stefano Cordio <[email protected]>
Signed-off-by: Stefano Cordio <[email protected]>
Signed-off-by: Stefano Cordio <[email protected]>
38292b1
to
fee88d7
Compare
Signed-off-by: Stefano Cordio <[email protected]>
-Xep:AlmostJavadoc:OFF | ||
-Xep:ByteBufferBackingArray:OFF | ||
-Xep:ClassCanBeStatic:OFF | ||
-Xep:CollectionUndefinedEquality:OFF | ||
-Xep:DefaultCharset:OFF | ||
-Xep:DirectInvocationOnMock:OFF | ||
-Xep:DoNotCallSuggester:OFF | ||
-Xep:EmptyCatch:OFF | ||
-Xep:EqualsGetClass:OFF | ||
-Xep:Finally:OFF | ||
-Xep:FutureReturnValueIgnored:OFF | ||
-Xep:HidingField:OFF | ||
-Xep:ImmutableEnumChecker:OFF | ||
-Xep:InlineMeSuggester:OFF | ||
-Xep:InputStreamSlowMultibyteRead:OFF | ||
-Xep:JavaTimeDefaultTimeZone:OFF | ||
-Xep:JavaUtilDate:OFF | ||
-Xep:JdkObsolete:OFF | ||
-Xep:MissingSummary:OFF | ||
-Xep:MixedMutabilityReturnType:OFF | ||
-Xep:MutablePublicArray:OFF | ||
-Xep:NonAtomicVolatileUpdate:OFF | ||
-Xep:RedundantControlFlow:OFF | ||
-Xep:ReferenceEquality:OFF | ||
-Xep:StaticAssignmentInConstructor:OFF | ||
-Xep:StaticAssignmentOfThrowable:OFF | ||
-Xep:StaticMockMember:OFF | ||
-Xep:StreamResourceLeak:OFF | ||
-Xep:StringCaseLocaleUsage:OFF | ||
-Xep:StringSplitter:OFF | ||
-Xep:SynchronizeOnNonFinalField:OFF | ||
-Xep:ThreadLocalUsage:OFF | ||
-Xep:ThreadPriorityCheck:OFF | ||
-Xep:TypeParameterUnusedInFormals:OFF | ||
-Xep:UndefinedEquals:OFF | ||
-Xep:UnnecessaryStringBuilder:OFF | ||
-Xep:UnusedMethod:OFF | ||
-Xep:UnusedVariable:OFF | ||
-Xep:WaitNotInLoop:OFF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per discussion at 72694e6#commitcomment-159565537
HippyMethodInvoker invoker = new HippyMethodInvoker(); | ||
invoker.setTargetObject(targetObject); | ||
invoker.setTargetMethod(targetMethod); | ||
invoker.setArguments(arguments); | ||
invoker.setArguments(arguments); // FIXME spring-projects/spring-framework#35089 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depends on spring-projects/spring-framework#35089
MethodInvoker invoker = createMethodInvoker(targetObject, targetMethod); | ||
invoker.setArguments(arguments); | ||
invoker.setArguments(arguments); // FIXME spring-projects/spring-framework#35089 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depends on spring-projects/spring-framework#35089
This change also introduces NullAway to verify that all code is correctly annotated.