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.
Currently there is no way to get the source positions of a method parameter list. Please review attached patch.
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.