This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | New API method in TreeUtilities to find method parameter list span. | ||
---|---|---|---|
Product: | java | Reporter: | Ralph Ruijs <ralphbenjamin> |
Component: | Source | Assignee: | Ralph Ruijs <ralphbenjamin> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | apireviews, jlahoda |
Priority: | P3 | Keywords: | API, API_REVIEW_FAST |
Version: | 7.1 | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: |
Patch
Patch with annotations, see JL01 |
Description
Ralph Ruijs
2011-06-01 12:07:47 UTC
Created attachment 108653 [details]
Patch
JL01: Please annotate the method with the "nullness" annotations. In this particular case, it should probably be something like: public @CheckForNull int[] findMethodParameterSpan(@NonNull MethodTree method) (The existing methods predate the annotations, IIRC, and so are not annotated (yet), but newly added methods should always include these annotations, IMO.) Thanks. Created attachment 108656 [details]
Patch with annotations, see JL01
I updated the patch to include the annotations @CheckForNull and @NonNull to the method declaration.
Changeset: 11773638fba8 Author: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Date: 2011-06-08 10:37 Message: Issue #199080 - New API method in TreeUtilities to find method parameter list span. Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/11773638fba8 User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: Issue #199080 - New API method in TreeUtilities to find method parameter list span. |