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.

Bug 199080

Summary: New API method in TreeUtilities to find method parameter list span.
Product: java Reporter: Ralph Ruijs <ralphbenjamin>
Component: SourceAssignee: 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
Currently there is no way to get the source positions of a method parameter list. Please review attached patch.
Comment 1 Ralph Ruijs 2011-06-01 12:13:48 UTC
Created attachment 108653 [details]
Patch
Comment 2 Jan Lahoda 2011-06-01 13:01:25 UTC
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.
Comment 3 Ralph Ruijs 2011-06-01 13:52:10 UTC
Created attachment 108656 [details]
Patch with annotations, see JL01

I updated the patch to include the annotations @CheckForNull and @NonNull to the method declaration.
Comment 4 Ralph Ruijs 2011-06-08 08:38:50 UTC
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.
Comment 5 Quality Engineering 2011-06-10 14:51:58 UTC
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.