mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Cosmetics.
This commit is contained in:
parent
652d4f7bc0
commit
fae217d744
3 changed files with 31 additions and 31 deletions
|
@ -67,8 +67,9 @@ public abstract class ACSettingEntry implements ICSettingEntry {
|
|||
if (fName == null) {
|
||||
if (other.fName != null)
|
||||
return false;
|
||||
} else if (!fName.equals(other.fName))
|
||||
} else if (!fName.equals(other.fName)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -77,7 +78,7 @@ public abstract class ACSettingEntry implements ICSettingEntry {
|
|||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + fFlags;
|
||||
result = prime * result + ((fName == null) ? 0 : fName.hashCode());
|
||||
result = prime * result + (fName == null ? 0 : fName.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -92,7 +93,7 @@ public abstract class ACSettingEntry implements ICSettingEntry {
|
|||
}
|
||||
|
||||
protected int getByNameMatchFlags() {
|
||||
return (fFlags & (~ (BUILTIN | READONLY | RESOLVED)));
|
||||
return fFlags & ~(BUILTIN | READONLY | RESOLVED);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -128,7 +129,7 @@ public abstract class ACSettingEntry implements ICSettingEntry {
|
|||
|
||||
@Override
|
||||
public final String toString() {
|
||||
StringBuffer buf = new StringBuffer();
|
||||
StringBuilder buf = new StringBuilder();
|
||||
buf.append('[').append(LanguageSettingEntriesSerializer.kindToString(getKind())).append(']').append(' ');
|
||||
buf.append(contentsToString());
|
||||
buf.append("; flags: ").append(LanguageSettingEntriesSerializer.composeFlagsString(getFlags())); //$NON-NLS-1$
|
||||
|
@ -136,5 +137,4 @@ public abstract class ACSettingEntry implements ICSettingEntry {
|
|||
}
|
||||
|
||||
protected abstract String contentsToString();
|
||||
|
||||
}
|
||||
|
|
|
@ -56,8 +56,9 @@ public final class CMacroEntry extends ACSettingEntry implements ICMacroEntry {
|
|||
if (fValue == null) {
|
||||
if (other.fValue != null)
|
||||
return false;
|
||||
} else if (!fValue.equals(other.fValue))
|
||||
} else if (!fValue.equals(other.fValue)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -65,7 +66,7 @@ public final class CMacroEntry extends ACSettingEntry implements ICMacroEntry {
|
|||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = super.hashCode();
|
||||
result = prime * result + ((fValue == null) ? 0 : fValue.hashCode());
|
||||
result = prime * result + (fValue == null ? 0 : fValue.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -81,5 +82,4 @@ public final class CMacroEntry extends ACSettingEntry implements ICMacroEntry {
|
|||
protected String contentsToString() {
|
||||
return new StringBuffer().append(getName()).append('=').append(fValue).toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue