[hg] main-silver: Using Token.text().toString() rather than Toke...

  • From: Jan Lahoda < >
  • To:
  • Subject: [hg] main-silver: Using Token.text().toString() rather than Toke...
  • Date: Thu, 04 Apr 2013 04:48:26 -0700

changeset c9e383bd43b1 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/c9e383bd43b1
description:
        Using Token.text().toString() rather than Token.toString(), which is 
not guaranteed to return the token's text (and it actually does not return 
it).

diffstat:

 
apisupport.project/src/org/netbeans/modules/apisupport/project/hyperlink/ApisupportHyperlinkProvider.java
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git 
a/apisupport.project/src/org/netbeans/modules/apisupport/project/hyperlink/ApisupportHyperlinkProvider.java
 
b/apisupport.project/src/org/netbeans/modules/apisupport/project/hyperlink/ApisupportHyperlinkProvider.java
--- 
a/apisupport.project/src/org/netbeans/modules/apisupport/project/hyperlink/ApisupportHyperlinkProvider.java
+++ 
b/apisupport.project/src/org/netbeans/modules/apisupport/project/hyperlink/ApisupportHyperlinkProvider.java
@@ -120,7 +120,7 @@
         
         Token<JavaTokenId> t = ts.token();
         FileObject fo = getFileObject(doc);
-        String name = t.toString();
+        String name = t.text().toString();
         if (name.startsWith("\"")) {
             name = name.substring(1);
         }

[hg] main-silver: Using Token.text().toString() rather than Toke...

Jan Lahoda 04/04/2013

Project Features

About this Project

APIsupport was started in November 2009, is owned by Antonin Nebuzelsky, and has 43 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close