1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2009-08-09 01:17:34 +00:00
parent 4174ed63d5
commit d9f76e60dc
2 changed files with 6 additions and 6 deletions

View file

@ -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;
}

View file

@ -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);