Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2014-04-29 03:03:26 -0400
committerAlexander Kurtakov2014-04-29 14:03:19 -0400
commit4f338c8d058add881bde9463f3d3b4bfcb979f9d (patch)
treeff12cb5738fbd7f1aca8e22b199ed833dff7b390 /libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx
parentb6129d7f949767d84bf3d3c35a16f61d20d11312 (diff)
downloadorg.eclipse.linuxtools-4f338c8d058add881bde9463f3d3b4bfcb979f9d.tar.gz
org.eclipse.linuxtools-4f338c8d058add881bde9463f3d3b4bfcb979f9d.tar.xz
org.eclipse.linuxtools-4f338c8d058add881bde9463f3d3b4bfcb979f9d.zip
More cleanups.
* Empty statements * This final field could be made static * Member could be replaced by local variable * 'static' modifier out of order with the JLS suggestions. * strings handling * unused parameters * unnecessary local before return Change-Id: I7e6b45466178696345a057f75278c6c5c8a670ad Signed-off-by: Alexander Kurtakov <akurtako@redhat.com> Reviewed-on: https://git.eclipse.org/r/25708 Tested-by: Hudson CI
Diffstat (limited to 'libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx')
-rw-r--r--libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx/src/org/eclipse/linuxtools/internal/cdt/libhover/libstdcxx/DoxygenCPPInfo.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx/src/org/eclipse/linuxtools/internal/cdt/libhover/libstdcxx/DoxygenCPPInfo.java b/libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx/src/org/eclipse/linuxtools/internal/cdt/libhover/libstdcxx/DoxygenCPPInfo.java
index 701a83aef9..6dbfac829f 100644
--- a/libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx/src/org/eclipse/linuxtools/internal/cdt/libhover/libstdcxx/DoxygenCPPInfo.java
+++ b/libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx/src/org/eclipse/linuxtools/internal/cdt/libhover/libstdcxx/DoxygenCPPInfo.java
@@ -163,7 +163,7 @@ public class DoxygenCPPInfo {
hashName = text;
if (index > 0)
hashName = text.substring(0, index);
- d = new ClassInfo(className, id.getNodeValue(), n);
+ d = new ClassInfo(className, n);
classesById.put(id.getNodeValue(), d);
ClassInfo e = cppInfo.classes.get(hashName);
if (e != null) { /* We are dealing with a partial specific template...add it to list */
@@ -258,7 +258,7 @@ public class DoxygenCPPInfo {
String n4Name = n4.getNodeName();
if (n4Name.equals("type")) { //$NON-NLS-1$
NodeList nl5 = n4.getChildNodes();
- type = new String(""); //$NON-NLS-1$
+ type = ""; //$NON-NLS-1$
for (int x = 0; x < nl5.getLength(); ++x) {
Node n5 = nl5.item(x);
if (n5.getNodeType() == Node.TEXT_NODE)

Back to the top