1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

minor fix, replace == for .equals

Change-Id: I26f949b64d1d5da0f410c76379d51f7edfcf9474
This commit is contained in:
Alvaro Sanchez-Leon 2016-03-16 15:35:01 -04:00 committed by Gerrit Code Review @ Eclipse.org
parent 528de33113
commit e3a5acb761
3 changed files with 3 additions and 3 deletions

View file

@ -374,7 +374,7 @@ public class AutoconfTextHover implements ITextHover, ITextHoverExtension {
int parmCount = 0;
for (int k = 0; k < parmList.getLength(); ++k) {
Node n3 = parmList.item(k);
if (n3.getNodeName() == "parameter") { //$NON-NLS-1$
if (n3.getNodeName().equals("parameter")) { //$NON-NLS-1$
NamedNodeMap parmVals = n3.getAttributes();
Node parmVal = parmVals.item(0);
if (parmCount > 0)

View file

@ -4370,7 +4370,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
rcInfo = config.getResourceInfo(folderPath.removeLastSegments(1), false);
}
String targetExtension = ((IFolderInfo)rcInfo).getOutputExtension(srcExtension);
if (targetExtension != "") //$NON-NLS-1$
if (!targetExtension.equals("")) //$NON-NLS-1$
fileName += DOT + targetExtension;
IPath projectRelativePath = deletedFile.getProjectRelativePath().removeLastSegments(1);
IPath targetFilePath = getBuildWorkingDir().append(projectRelativePath).append(fileName);

View file

@ -1013,7 +1013,7 @@ public class ManagedBuildGnuToolInfo implements IManagedBuildGnuToolInfo {
if (outExtensionName != null) {
OptDotExt = DOT + outExtensionName;
} else
if (tool.getOutputExtension(srcExtensionName) != "") //$NON-NLS-1$
if (!tool.getOutputExtension(srcExtensionName).equals("")) //$NON-NLS-1$
OptDotExt = DOT + tool.getOutputExtension(srcExtensionName);
// create rule of the form