Bug 199080 - New API method in TreeUtilities to find method parameter list span.
New API method in TreeUtilities to find method parameter list span.
Status: RESOLVED FIXED
Product: java
Classification: Unclassified
Component: Source
7.1
PC All
: P3 (vote)
: TBD
Assigned To: Ralph Ruijs
issues@java
: API, API_REVIEW_FAST
Depends on:
Blocks:
  Show dependency treegraph
 
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
:


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.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo