mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26: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 (fName == null) {
|
||||||
if (other.fName != null)
|
if (other.fName != null)
|
||||||
return false;
|
return false;
|
||||||
} else if (!fName.equals(other.fName))
|
} else if (!fName.equals(other.fName)) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,7 +78,7 @@ public abstract class ACSettingEntry implements ICSettingEntry {
|
||||||
final int prime = 31;
|
final int prime = 31;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
result = prime * result + fFlags;
|
result = prime * result + fFlags;
|
||||||
result = prime * result + ((fName == null) ? 0 : fName.hashCode());
|
result = prime * result + (fName == null ? 0 : fName.hashCode());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,7 +93,7 @@ public abstract class ACSettingEntry implements ICSettingEntry {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected int getByNameMatchFlags() {
|
protected int getByNameMatchFlags() {
|
||||||
return (fFlags & (~ (BUILTIN | READONLY | RESOLVED)));
|
return fFlags & ~(BUILTIN | READONLY | RESOLVED);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -128,7 +129,7 @@ public abstract class ACSettingEntry implements ICSettingEntry {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final String toString() {
|
public final String toString() {
|
||||||
StringBuffer buf = new StringBuffer();
|
StringBuilder buf = new StringBuilder();
|
||||||
buf.append('[').append(LanguageSettingEntriesSerializer.kindToString(getKind())).append(']').append(' ');
|
buf.append('[').append(LanguageSettingEntriesSerializer.kindToString(getKind())).append(']').append(' ');
|
||||||
buf.append(contentsToString());
|
buf.append(contentsToString());
|
||||||
buf.append("; flags: ").append(LanguageSettingEntriesSerializer.composeFlagsString(getFlags())); //$NON-NLS-1$
|
buf.append("; flags: ").append(LanguageSettingEntriesSerializer.composeFlagsString(getFlags())); //$NON-NLS-1$
|
||||||
|
@ -136,5 +137,4 @@ public abstract class ACSettingEntry implements ICSettingEntry {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract String contentsToString();
|
protected abstract String contentsToString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,8 +56,9 @@ public final class CMacroEntry extends ACSettingEntry implements ICMacroEntry {
|
||||||
if (fValue == null) {
|
if (fValue == null) {
|
||||||
if (other.fValue != null)
|
if (other.fValue != null)
|
||||||
return false;
|
return false;
|
||||||
} else if (!fValue.equals(other.fValue))
|
} else if (!fValue.equals(other.fValue)) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,7 +66,7 @@ public final class CMacroEntry extends ACSettingEntry implements ICMacroEntry {
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
final int prime = 31;
|
final int prime = 31;
|
||||||
int result = super.hashCode();
|
int result = super.hashCode();
|
||||||
result = prime * result + ((fValue == null) ? 0 : fValue.hashCode());
|
result = prime * result + (fValue == null ? 0 : fValue.hashCode());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,5 +82,4 @@ public final class CMacroEntry extends ACSettingEntry implements ICMacroEntry {
|
||||||
protected String contentsToString() {
|
protected String contentsToString() {
|
||||||
return new StringBuffer().append(getName()).append('=').append(fValue).toString();
|
return new StringBuffer().append(getName()).append('=').append(fValue).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue