diff --git a/build/org.eclipse.cdt.autotools.ui/src/org/eclipse/cdt/internal/autotools/ui/text/hover/AutoconfTextHover.java b/build/org.eclipse.cdt.autotools.ui/src/org/eclipse/cdt/internal/autotools/ui/text/hover/AutoconfTextHover.java index 9aed7224b87..43ede5821b1 100644 --- a/build/org.eclipse.cdt.autotools.ui/src/org/eclipse/cdt/internal/autotools/ui/text/hover/AutoconfTextHover.java +++ b/build/org.eclipse.cdt.autotools.ui/src/org/eclipse/cdt/internal/autotools/ui/text/hover/AutoconfTextHover.java @@ -314,7 +314,7 @@ public class AutoconfTextHover implements ITextHover, ITextHoverExtension { NamedNodeMap parms = v.getAttributes(); Node parmNode = parms.item(0); String parm = parmNode.getNodeValue(); - if (prototype.toString().isEmpty()) + if (prototype.length() == 0) prototype.append(parm); else prototype.append(", " + parm); diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/makegen/gnu/GnuMakefileGenerator.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/makegen/gnu/GnuMakefileGenerator.java index 2f69a70c6a3..fd351aa84f3 100644 --- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/makegen/gnu/GnuMakefileGenerator.java +++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/makegen/gnu/GnuMakefileGenerator.java @@ -1249,9 +1249,9 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 { // Add includes for each subdir in child-subdir-first order (required for makefile rule matching to work). List subDirList = new ArrayList(); for (IContainer subDir : getSubdirList()) { - IPath projectRelativePath = subDir.getProjectRelativePath(); - if(!projectRelativePath.toString().isEmpty()) - subDirList.add(0, projectRelativePath.toString()); + String projectRelativePath = subDir.getProjectRelativePath().toString(); + if(!projectRelativePath.isEmpty()) + subDirList.add(0, projectRelativePath); } Collections.sort(subDirList, Collections.reverseOrder()); for (String dir : subDirList) {