mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Cosmetics.
This commit is contained in:
parent
80ca2e52aa
commit
f99f12f4ed
2 changed files with 8 additions and 8 deletions
|
@ -18,15 +18,14 @@ import org.eclipse.core.runtime.IStatus;
|
|||
* @noextend This class is not intended to be subclassed by clients.
|
||||
*/
|
||||
public class QualifiedTypeName implements IQualifiedTypeName {
|
||||
|
||||
private static final String[] NO_SEGMENTS = new String[0];
|
||||
private static final String[] NO_SEGMENTS = {};
|
||||
private static final String EMPTY_STRING = ""; //$NON-NLS-1$
|
||||
private static final int INITIAL_SEGMENT_LENGTH = 12;
|
||||
private static final int HASH_INIT = 17;
|
||||
private static final int HASH_MULTIPLIER = 37;
|
||||
|
||||
private String[] fSegments = NO_SEGMENTS;
|
||||
private int fHashCode = 0;
|
||||
private int fHashCode;
|
||||
|
||||
public static final QualifiedTypeName EMPTY = new QualifiedTypeName();
|
||||
|
||||
|
@ -43,11 +42,12 @@ public class QualifiedTypeName implements IQualifiedTypeName {
|
|||
}
|
||||
|
||||
public QualifiedTypeName(String name, String[] enclosingNames) {
|
||||
if (enclosingNames == null)
|
||||
if (enclosingNames == null) {
|
||||
fSegments = createSegments(name);
|
||||
else
|
||||
} else {
|
||||
fSegments = createSegments(name, enclosingNames);
|
||||
}
|
||||
}
|
||||
|
||||
private QualifiedTypeName() {
|
||||
}
|
||||
|
|
|
@ -98,14 +98,14 @@ public class NameWriter extends NodeWriter {
|
|||
if (i <= 0){
|
||||
return false;
|
||||
}
|
||||
if (qname.getNames()[i-1] instanceof ICPPASTTemplateId) {
|
||||
if (qname.getNames()[i - 1] instanceof ICPPASTTemplateId) {
|
||||
return true;
|
||||
}
|
||||
IBinding binding = qname.getNames()[i-1].resolveBinding();
|
||||
IBinding binding = qname.getNames()[i - 1].resolveBinding();
|
||||
if (binding instanceof CPPTemplateTypeParameter) {
|
||||
return true;
|
||||
}
|
||||
return isDependentName(qname, tempId, i-1);
|
||||
return isDependentName(qname, tempId, i - 1);
|
||||
}
|
||||
|
||||
private boolean isNestedTemplateId(IASTNode node) {
|
||||
|
|
Loading…
Add table
Reference in a new issue