diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IndexFileLocation.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IndexFileLocation.java index 9d3a62e34a3..3d8f144763d 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IndexFileLocation.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IndexFileLocation.java @@ -22,7 +22,7 @@ public class IndexFileLocation implements IIndexFileLocation { private final String fullPath; public IndexFileLocation(URI uri, String fullPath) { - if(uri==null) + if (uri == null) throw new IllegalArgumentException(); this.uri = uri; this.fullPath = fullPath; @@ -50,8 +50,8 @@ public class IndexFileLocation implements IIndexFileLocation { */ @Override public boolean equals(Object obj) { - if(obj instanceof IIndexFileLocation) { - return uri.equals(((IIndexFileLocation)obj).getURI()); + if (obj instanceof IIndexFileLocation) { + return uri.equals(((IIndexFileLocation) obj).getURI()); } return false; } diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMInclude.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMInclude.java index 8d686d134e2..8ec79306035 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMInclude.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMInclude.java @@ -80,10 +80,10 @@ public class PDOMInclude implements IIndexFragmentInclude { boolean deducible_name = isDeducibleName(targetFile, nameChars); // If the name is the same as an end part of the path of the included file, // store the length of the name instead of the name itself. - if( deducible_name ) { - db.putInt( record + INCLUDE_NAME_OR_LENGTH, nameChars.length ); + if (deducible_name) { + db.putInt(record + INCLUDE_NAME_OR_LENGTH, nameChars.length); } else { - db.putRecPtr( record + INCLUDE_NAME_OR_LENGTH, db.newString(nameChars).getRecord() ); + db.putRecPtr(record + INCLUDE_NAME_OR_LENGTH, db.newString(nameChars).getRecord()); } setFlag(encodeFlags(include, deducible_name)); setIncludedBy(containerFile);