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 - New API method in TreeUtilities to find method parameter list span.
Summary: New API method in TreeUtilities to find method parameter list span.
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.1
Hardware: PC All
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2011-06-01 12:07 UTC by Ralph Ruijs
Modified: 2011-06-10 14:51 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Patch (5.53 KB, patch)
2011-06-01 12:13 UTC, Ralph Ruijs
Details | Diff
Patch with annotations, see JL01 (5.89 KB, patch)
2011-06-01 13:52 UTC, Ralph Ruijs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.