Repository navigation
Conversation
Its sibling getParameterTypeInitialized is 1-based, as is most of the whole-program inference API, so name the parameter index_0based and cross-reference the two methods. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signatures.splitJvmArglist returns List<@FieldDescriptor String>, which is not assignable to List<@SignatureUnknown String>. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Add `AinferFormatMethodTest`, which runs whole-program inference in both ajava and jaif mode and checks that no `@Format` annotation is inferred for the format string parameter of a `@FormatMethod` method, whose format string parameter is not its first formal parameter. A control method in the same source file shows that inference does annotate the `String` parameter of a method that is not a format method. In the ajava code path, determine whether a formal parameter's type is `String` from its `TypeMirror` when an inferred type is available, which is the same test that `FormatterVisitor.formatStringIndex` performs. The syntactic test, which assumes that the simple name `String` refers to `java.lang.String`, is now only a fallback for a parameter about which nothing was inferred. Document, at `FormatterVisitor.formatStringIndex`, that the two copies of the definition in `FormatterAnnotatedTypeFactory` must be kept in sync with it, and correct that method's `@return` tag to say "first" rather than "last". Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 4 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe formatter checker now identifies the first formal parameter declared as Priority: ⬇️ Low Change: Bug fix Merge Risk: ⚪ Minimal · up to No actionable behavior or integration risk remains from this change. 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Already merged as #8107; this PR is empty (its merge commit has the same tree as master). Closing. |
Its sibling getParameterTypeInitialized is 1-based, as is most of the
whole-program inference API, so name the parameter index_0based and
cross-reference the two methods.