~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/QualifiedTypeName.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2013-10-03 20:30:16 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131003203016-d4ug6l0xgosasumq
Tags: 8.2.1-1
* New upstream release.
* Updated autotools documentation sources.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * @noextend This class is not intended to be subclassed by clients.
19
19
 */
20
20
public class QualifiedTypeName implements IQualifiedTypeName {
21
 
 
22
 
    private static final String[] NO_SEGMENTS = new String[0];
 
21
    private static final String[] NO_SEGMENTS = {};
23
22
        private static final String EMPTY_STRING = ""; //$NON-NLS-1$
24
23
        private static final int INITIAL_SEGMENT_LENGTH = 12;
25
24
        private static final int HASH_INIT = 17;
26
25
    private static final int HASH_MULTIPLIER = 37;
27
26
 
28
27
    private String[] fSegments = NO_SEGMENTS;
29
 
        private int fHashCode = 0;
 
28
        private int fHashCode;
30
29
 
31
30
        public static final QualifiedTypeName EMPTY = new QualifiedTypeName();
32
31
 
43
42
        }
44
43
 
45
44
        public QualifiedTypeName(String name, String[] enclosingNames) {
46
 
                if (enclosingNames == null)
 
45
                if (enclosingNames == null) {
47
46
                    fSegments = createSegments(name);
48
 
                else
 
47
                } else {
49
48
                    fSegments = createSegments(name, enclosingNames);
 
49
                }
50
50
        }
51
51
 
52
52
        private QualifiedTypeName() {