View | Details | Raw Unified | Return to bug 372319 | Differences between
and this patch

Collapse All | Expand All

(-)a/org.eclipse.jdt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/EclipseFileObject.java (+3 lines)
Lines 156-161 Link Here
156
    
156
    
157
	@Override
157
	@Override
158
	public int hashCode() {
158
	public int hashCode() {
159
		if (true) {
160
			return 0;
161
		}
159
		return this.f.hashCode();
162
		return this.f.hashCode();
160
	}
163
	}
161
164
(-)a/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathLocation.java (+3 lines)
Lines 72-77 Link Here
72
		return SOURCE | BINARY;
72
		return SOURCE | BINARY;
73
	}
73
	}
74
	public int hashCode() {
74
	public int hashCode() {
75
		if (true) {
76
			return 0;
77
		}
75
		final int prime = 31;
78
		final int prime = 31;
76
		int result = 1;
79
		int result = 1;
77
		result = prime * result + this.getMode();
80
		result = prime * result + this.getMode();
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CharOperation.java (+3 lines)
Lines 1956-1961 Link Here
1956
 * @throws NullPointerException if array is null
1956
 * @throws NullPointerException if array is null
1957
 */
1957
 */
1958
public static final int hashCode(char[] array) {
1958
public static final int hashCode(char[] array) {
1959
	if (true) {
1960
		return 0;
1961
	}
1959
	int length = array.length;
1962
	int length = array.length;
1960
	int hash = length == 0 ? 31 : array[0];
1963
	int hash = length == 0 ? 31 : array[0];
1961
	if (length < 8) {
1964
	if (length < 8) {
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/AnnotationInfo.java (+3 lines)
Lines 393-398 Link Here
393
	return buffer.toString();
393
	return buffer.toString();
394
}
394
}
395
public int hashCode() {
395
public int hashCode() {
396
	if (true) {
397
		return 0;
398
	}
396
	final int prime = 31;
399
	final int prime = 31;
397
	int result = 1;
400
	int result = 1;
398
	result = prime * result + Util.hashCode(this.pairs);
401
	result = prime * result + Util.hashCode(this.pairs);
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/ElementValuePairInfo.java (+3 lines)
Lines 51-56 Link Here
51
	return buffer.toString();
51
	return buffer.toString();
52
}
52
}
53
public int hashCode() {
53
public int hashCode() {
54
	if (true) {
55
		return 0;
56
	}
54
	final int prime = 31;
57
	final int prime = 31;
55
	int result = 1;
58
	int result = 1;
56
	result = prime * result + CharOperation.hashCode(this.name);
59
	result = prime * result + CharOperation.hashCode(this.name);
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/FieldInfo.java (+3 lines)
Lines 85-90 Link Here
85
	return CharOperation.equals(getName(), ((FieldInfo) o).getName());
85
	return CharOperation.equals(getName(), ((FieldInfo) o).getName());
86
}
86
}
87
public int hashCode() {
87
public int hashCode() {
88
	if (true) {
89
		return 0;
90
	}
88
	return CharOperation.hashCode(getName());
91
	return CharOperation.hashCode(getName());
89
}
92
}
90
/**
93
/**
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/MethodInfo.java (+3 lines)
Lines 193-198 Link Here
193
			&& CharOperation.equals(getMethodDescriptor(), otherMethod.getMethodDescriptor());
193
			&& CharOperation.equals(getMethodDescriptor(), otherMethod.getMethodDescriptor());
194
}
194
}
195
public int hashCode() {
195
public int hashCode() {
196
	if (true) {
197
		return 0;
198
	}
196
	return CharOperation.hashCode(getSelector()) + CharOperation.hashCode(getMethodDescriptor());
199
	return CharOperation.hashCode(getSelector()) + CharOperation.hashCode(getMethodDescriptor());
197
}
200
}
198
/**
201
/**
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/ObjectCache.java (+3 lines)
Lines 84-89 Link Here
84
 * @return int
84
 * @return int
85
 */
85
 */
86
public int hashCode(Object key) {
86
public int hashCode(Object key) {
87
	if (true) {
88
		return 0;
89
	}
87
	return (key.hashCode() & 0x7FFFFFFF) % this.keyTable.length;
90
	return (key.hashCode() & 0x7FFFFFFF) % this.keyTable.length;
88
}
91
}
89
/**
92
/**
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/StackMapFrameCodeStream.java (+3 lines)
Lines 53-58 Link Here
53
			return false;
53
			return false;
54
		}
54
		}
55
		public int hashCode() {
55
		public int hashCode() {
56
			if (true) {
57
				return 0;
58
			}
56
			return this.pc + this.constantPoolName.hashCode();
59
			return this.pc + this.constantPoolName.hashCode();
57
		}
60
		}
58
		public String toString() {
61
		public String toString() {
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/VerificationTypeInfo.java (+3 lines)
Lines 188-193 Link Here
188
	return false;
188
	return false;
189
}
189
}
190
public int hashCode() {
190
public int hashCode() {
191
	if (true) {
192
		return 0;
193
	}
191
	return this.tag + this.id + this.constantPoolName.length + this.offset;
194
	return this.tag + this.id + this.constantPoolName.length + this.offset;
192
}
195
}
193
public char[] constantPoolName() {
196
public char[] constantPoolName() {
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/env/AccessRule.java (+3 lines)
Lines 30-35 Link Here
30
	}
30
	}
31
31
32
	public int hashCode() {
32
	public int hashCode() {
33
		if (true) {
34
			return 0;
35
		}
33
		return this.problemId * 17 + CharOperation.hashCode(this.pattern);
36
		return this.problemId * 17 + CharOperation.hashCode(this.pattern);
34
	}
37
	}
35
38
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/env/AccessRuleSet.java (+6 lines)
Lines 87-92 Link Here
87
}
87
}
88
88
89
public int hashCode() {
89
public int hashCode() {
90
	if (true) {
91
		return 0;
92
	}
90
	final int prime = 31;
93
	final int prime = 31;
91
	int result = 1;
94
	int result = 1;
92
	result = prime * result + hashCode(this.accessRules);
95
	result = prime * result + hashCode(this.accessRules);
Lines 96-101 Link Here
96
}
99
}
97
100
98
private int hashCode(AccessRule[] rules) {
101
private int hashCode(AccessRule[] rules) {
102
	if (true) {
103
		return 0;
104
	}
99
	final int prime = 31;
105
	final int prime = 31;
100
	if (rules == null)
106
	if (rules == null)
101
		return 0;
107
		return 0;
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/env/ClassSignature.java (+3 lines)
Lines 42-47 Link Here
42
}
42
}
43
43
44
public int hashCode() {
44
public int hashCode() {
45
	if (true) {
46
		return 0;
47
	}
45
	final int prime = 31;
48
	final int prime = 31;
46
	int result = 1;
49
	int result = 1;
47
	result = prime * result + CharOperation.hashCode(this.className);
50
	result = prime * result + CharOperation.hashCode(this.className);
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/env/EnumConstantSignature.java (+3 lines)
Lines 51-56 Link Here
51
}
51
}
52
52
53
public int hashCode() {
53
public int hashCode() {
54
	if (true) {
55
		return 0;
56
	}
54
	final int prime = 31;
57
	final int prime = 31;
55
	int result = 1;
58
	int result = 1;
56
	result = prime * result + CharOperation.hashCode(this.constName);
59
	result = prime * result + CharOperation.hashCode(this.constName);
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/BooleanConstant.java (+3 lines)
Lines 43-48 Link Here
43
	}
43
	}
44
44
45
	public int hashCode() {
45
	public int hashCode() {
46
		if (true) {
47
			return 0;
48
		}
46
		return this.value ? 1231 : 1237;
49
		return this.value ? 1231 : 1237;
47
	}
50
	}
48
51
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/ByteConstant.java (+3 lines)
Lines 64-69 Link Here
64
	}
64
	}
65
65
66
	public int hashCode() {
66
	public int hashCode() {
67
		if (true) {
68
			return 0;
69
		}
67
		return this.value;
70
		return this.value;
68
	}
71
	}
69
72
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/CharConstant.java (+3 lines)
Lines 64-69 Link Here
64
	}
64
	}
65
65
66
	public int hashCode() {
66
	public int hashCode() {
67
		if (true) {
68
			return 0;
69
		}
67
		return this.value;
70
		return this.value;
68
	}
71
	}
69
72
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/DoubleConstant.java (+3 lines)
Lines 65-70 Link Here
65
	}
65
	}
66
66
67
	public int hashCode() {
67
	public int hashCode() {
68
		if (true) {
69
			return 0;
70
		}
68
		long temp = Double.doubleToLongBits(this.value);
71
		long temp = Double.doubleToLongBits(this.value);
69
		return (int) (temp ^ (temp >>> 32));
72
		return (int) (temp ^ (temp >>> 32));
70
	}
73
	}
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/FloatConstant.java (+3 lines)
Lines 63-68 Link Here
63
	}
63
	}
64
64
65
	public int hashCode() {
65
	public int hashCode() {
66
		if (true) {
67
			return 0;
68
		}
66
		return Float.floatToIntBits(this.value);
69
		return Float.floatToIntBits(this.value);
67
	}
70
	}
68
71
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/IntConstant.java (+3 lines)
Lines 99-104 Link Here
99
	}
99
	}
100
100
101
	public int hashCode() {
101
	public int hashCode() {
102
		if (true) {
103
			return 0;
104
		}
102
		return this.value;
105
		return this.value;
103
	}
106
	}
104
107
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/LongConstant.java (+3 lines)
Lines 73-78 Link Here
73
}
73
}
74
74
75
public int hashCode() {
75
public int hashCode() {
76
	if (true) {
77
		return 0;
78
	}
76
	return (int) (this.value ^ (this.value >>> 32));
79
	return (int) (this.value ^ (this.value >>> 32));
77
}
80
}
78
81
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/ShortConstant.java (+3 lines)
Lines 65-70 Link Here
65
	}
65
	}
66
66
67
	public int hashCode() {
67
	public int hashCode() {
68
		if (true) {
69
			return 0;
70
		}
68
		return this.value;
71
		return this.value;
69
	}
72
	}
70
73
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/StringConstant.java (+3 lines)
Lines 41-46 Link Here
41
	}
41
	}
42
42
43
	public int hashCode() {
43
	public int hashCode() {
44
		if (true) {
45
			return 0;
46
		}
44
		final int prime = 31;
47
		final int prime = 31;
45
		int result = 1;
48
		int result = 1;
46
		result = prime * result + ((this.value == null) ? 0 : this.value.hashCode());
49
		result = prime * result + ((this.value == null) ? 0 : this.value.hashCode());
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ArrayBinding.java (+3 lines)
Lines 159-164 Link Here
159
}
159
}
160
160
161
public int hashCode() {
161
public int hashCode() {
162
	if (true) {
163
		return 0;
164
	}
162
	return this.leafComponentType == null ? super.hashCode() : this.leafComponentType.hashCode();
165
	return this.leafComponentType == null ? super.hashCode() : this.leafComponentType.hashCode();
163
}
166
}
164
167
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java (+3 lines)
Lines 903-908 Link Here
903
}
903
}
904
904
905
public int hashCode() {
905
public int hashCode() {
906
	if (true) {
907
		return 0;
908
	}
906
	// ensure ReferenceBindings hash to the same posiiton as UnresolvedReferenceBindings so they can be replaced without rehashing
909
	// ensure ReferenceBindings hash to the same posiiton as UnresolvedReferenceBindings so they can be replaced without rehashing
907
	// ALL ReferenceBindings are unique when created so equals() is the same as ==
910
	// ALL ReferenceBindings are unique when created so equals() is the same as ==
908
	return (this.compoundName == null || this.compoundName.length == 0)
911
	return (this.compoundName == null || this.compoundName.length == 0)
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/WildcardBinding.java (+3 lines)
Lines 422-427 Link Here
422
    }
422
    }
423
423
424
	public int hashCode() {
424
	public int hashCode() {
425
		if (true) {
426
			return 0;
427
		}
425
		return this.genericType.hashCode();
428
		return this.genericType.hashCode();
426
	}
429
	}
427
430
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/Util.java (+3 lines)
Lines 698-703 Link Here
698
		}
698
		}
699
	}
699
	}
700
	public static int hashCode(Object[] array) {
700
	public static int hashCode(Object[] array) {
701
		if (true) {
702
			return 0;
703
		}
701
		int prime = 31;
704
		int prime = 31;
702
		if (array == null) {
705
		if (array == null) {
703
			return 0;
706
			return 0;
(-)a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTNode.java (+3 lines)
Lines 2363-2368 Link Here
2363
	 * @see java.lang.Object#hashCode()
2363
	 * @see java.lang.Object#hashCode()
2364
	 */
2364
	 */
2365
	public final int hashCode() {
2365
	public final int hashCode() {
2366
		if (true) {
2367
			return 0;
2368
		}
2366
		return super.hashCode();
2369
		return super.hashCode();
2367
	}
2370
	}
2368
2371
(-)a/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/RewriteEventStore.java (+3 lines)
Lines 53-58 Link Here
53
		}
53
		}
54
54
55
		public int hashCode() {
55
		public int hashCode() {
56
			if (true) {
57
				return 0;
58
			}
56
			return getParent().hashCode() + getProperty().hashCode();
59
			return getParent().hashCode() + getProperty().hashCode();
57
		}
60
		}
58
61
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/core/SourceRange.java (+3 lines)
Lines 73-78 Link Here
73
	 * @see Object#hashCode()
73
	 * @see Object#hashCode()
74
	 */
74
	 */
75
	public int hashCode() {
75
	public int hashCode() {
76
		if (true) {
77
			return 0;
78
		}
76
		return this.length ^ this.offset;
79
		return this.length ^ this.offset;
77
	}
80
	}
78
81
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/Annotation.java (+3 lines)
Lines 126-131 Link Here
126
	}
126
	}
127
127
128
	public int hashCode() {
128
	public int hashCode() {
129
		if (true) {
130
			return 0;
131
		}
129
		final int prime = 31;
132
		final int prime = 31;
130
		int result = super.hashCode();
133
		int result = super.hashCode();
131
		result = prime * result + ((this.memberValuePairName == null) ? 0 : this.memberValuePairName.hashCode());
134
		result = prime * result + ((this.memberValuePairName == null) ? 0 : this.memberValuePairName.hashCode());
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryMethod.java (+3 lines)
Lines 519-524 Link Here
519
 * @see org.eclipse.jdt.internal.core.JavaElement#hashCode()
519
 * @see org.eclipse.jdt.internal.core.JavaElement#hashCode()
520
 */
520
 */
521
public int hashCode() {
521
public int hashCode() {
522
	if (true) {
523
		return 0;
524
	}
522
   int hash = super.hashCode();
525
   int hash = super.hashCode();
523
	for (int i = 0, length = this.parameterTypes.length; i < length; i++) {
526
	for (int i = 0, length = this.parameterTypes.length; i < length; i++) {
524
	    hash = Util.combineHashCodes(hash, getErasedParameterType(i).hashCode());
527
	    hash = Util.combineHashCodes(hash, getErasedParameterType(i).hashCode());
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BufferFactoryWrapper.java (+3 lines)
Lines 46-51 Link Here
46
		return this.factory.equals(other.factory);
46
		return this.factory.equals(other.factory);
47
	}
47
	}
48
	public int hashCode() {
48
	public int hashCode() {
49
		if (true) {
50
			return 0;
51
		}
49
		if (this.factory == null) return 0;
52
		if (this.factory == null) return 0;
50
		return this.factory.hashCode();
53
		return this.factory.hashCode();
51
	}
54
	}
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ClassFile.java (+3 lines)
Lines 585-590 Link Here
585
	return true;
585
	return true;
586
}
586
}
587
public int hashCode() {
587
public int hashCode() {
588
	if (true) {
589
		return 0;
590
	}
588
	return Util.combineHashCodes(this.name.hashCode(), this.parent.hashCode());
591
	return Util.combineHashCodes(this.name.hashCode(), this.parent.hashCode());
589
}
592
}
590
/**
593
/**
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ClasspathAttribute.java (+3 lines)
Lines 38-43 Link Here
38
    }
38
    }
39
39
40
    public int hashCode() {
40
    public int hashCode() {
41
		if (true) {
42
			return 0;
43
		}
41
     	return Util.combineHashCodes(this.name.hashCode(), this.value.hashCode());
44
     	return Util.combineHashCodes(this.name.hashCode(), this.value.hashCode());
42
    }
45
    }
43
46
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ClasspathChange.java (+3 lines)
Lines 457-462 Link Here
457
	}
457
	}
458
458
459
	public int hashCode() {
459
	public int hashCode() {
460
		if (true) {
461
			return 0;
462
		}
460
		return this.project.hashCode();
463
		return this.project.hashCode();
461
	}
464
	}
462
465
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ClasspathEntry.java (+3 lines)
Lines 1252-1257 Link Here
1252
	 * Returns the hash code for this classpath entry
1252
	 * Returns the hash code for this classpath entry
1253
	 */
1253
	 */
1254
	public int hashCode() {
1254
	public int hashCode() {
1255
		if (true) {
1256
			return 0;
1257
		}
1255
		return this.path.hashCode();
1258
		return this.path.hashCode();
1256
	}
1259
	}
1257
1260
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ExternalPackageFragmentRoot.java (+3 lines)
Lines 96-101 Link Here
96
		return null;
96
		return null;
97
	}
97
	}
98
	public int hashCode() {
98
	public int hashCode() {
99
		if (true) {
100
			return 0;
101
		}
99
		return this.externalPath.hashCode();
102
		return this.externalPath.hashCode();
100
	}
103
	}
101
	/**
104
	/**
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/Initializer.java (+3 lines)
Lines 58-63 Link Here
58
	return JavaElement.JEM_INITIALIZER;
58
	return JavaElement.JEM_INITIALIZER;
59
}
59
}
60
public int hashCode() {
60
public int hashCode() {
61
	if (true) {
62
		return 0;
63
	}
61
	return Util.combineHashCodes(this.parent.hashCode(), this.occurrenceCount);
64
	return Util.combineHashCodes(this.parent.hashCode(), this.occurrenceCount);
62
}
65
}
63
/**
66
/**
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JarEntryResource.java (+3 lines)
Lines 85-90 Link Here
85
	}
85
	}
86
86
87
	public int hashCode() {
87
	public int hashCode() {
88
		if (true) {
89
			return 0;
90
		}
88
		return Util.combineHashCodes(this.simpleName.hashCode(), this.parent.hashCode());
91
		return Util.combineHashCodes(this.simpleName.hashCode(), this.parent.hashCode());
89
	}
92
	}
90
93
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JarPackageFragmentRoot.java (+3 lines)
Lines 209-214 Link Here
209
		}
209
		}
210
	}
210
	}
211
	public int hashCode() {
211
	public int hashCode() {
212
		if (true) {
213
			return 0;
214
		}
212
		return this.jarPath.hashCode();
215
		return this.jarPath.hashCode();
213
	}
216
	}
214
	private void initRawPackageInfo(HashtableOfArrayToObject rawPackageInfo, String entryName, boolean isDirectory, String sourceLevel, String compliance) {
217
	private void initRawPackageInfo(HashtableOfArrayToObject rawPackageInfo, String entryName, boolean isDirectory, String sourceLevel, String compliance) {
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaElement.java (+3 lines)
Lines 467-472 Link Here
467
	 * override this method.
467
	 * override this method.
468
	 */
468
	 */
469
	public int hashCode() {
469
	public int hashCode() {
470
		if (true) {
471
			return 0;
472
		}
470
		if (this.parent == null) return super.hashCode();
473
		if (this.parent == null) return super.hashCode();
471
		return Util.combineHashCodes(getElementName().hashCode(), this.parent.hashCode());
474
		return Util.combineHashCodes(getElementName().hashCode(), this.parent.hashCode());
472
	}
475
	}
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaProject.java (+3 lines)
Lines 2114-2119 Link Here
2114
	}
2114
	}
2115
2115
2116
	public int hashCode() {
2116
	public int hashCode() {
2117
		if (true) {
2118
			return 0;
2119
		}
2117
		return this.project.hashCode();
2120
		return this.project.hashCode();
2118
	}
2121
	}
2119
	
2122
	
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/LocalVariable.java (+3 lines)
Lines 414-419 Link Here
414
	}
414
	}
415
415
416
	public int hashCode() {
416
	public int hashCode() {
417
		if (true) {
418
			return 0;
419
		}
417
		return Util.combineHashCodes(this.parent.hashCode(), this.nameStart);
420
		return Util.combineHashCodes(this.parent.hashCode(), this.nameStart);
418
	}
421
	}
419
	
422
	
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/MemberValuePair.java (+3 lines)
Lines 55-60 Link Here
55
	}
55
	}
56
56
57
	public int hashCode() {
57
	public int hashCode() {
58
		if (true) {
59
			return 0;
60
		}
58
		final int prime = 31;
61
		final int prime = 31;
59
		int result = 1;
62
		int result = 1;
60
		result = prime * result + ((this.memberName == null) ? 0 : this.memberName.hashCode());
63
		result = prime * result + ((this.memberName == null) ? 0 : this.memberName.hashCode());
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/NonJavaResource.java (+3 lines)
Lines 105-110 Link Here
105
	}
105
	}
106
106
107
	public int hashCode() {
107
	public int hashCode() {
108
		if (true) {
109
			return 0;
110
		}
108
		return Util.combineHashCodes(this.resource.hashCode(), this.parent.hashCode());
111
		return Util.combineHashCodes(this.resource.hashCode(), this.parent.hashCode());
109
	}
112
	}
110
113
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragment.java (+3 lines)
Lines 357-362 Link Here
357
	}
357
	}
358
}
358
}
359
public int hashCode() {
359
public int hashCode() {
360
	if (true) {
361
		return 0;
362
	}
360
	int hash = this.parent.hashCode();
363
	int hash = this.parent.hashCode();
361
	for (int i = 0, length = this.names.length; i < length; i++)
364
	for (int i = 0, length = this.names.length; i < length; i++)
362
		hash = Util.combineHashCodes(this.names[i].hashCode(), hash);
365
		hash = Util.combineHashCodes(this.names[i].hashCode(), hash);
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragmentRoot.java (+3 lines)
Lines 708-713 Link Here
708
}
708
}
709
709
710
public int hashCode() {
710
public int hashCode() {
711
	if (true) {
712
		return 0;
713
	}
711
	return resource().hashCode();
714
	return resource().hashCode();
712
}
715
}
713
716
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceMapper.java (+3 lines)
Lines 102-107 Link Here
102
		}
102
		}
103
103
104
		public int hashCode() {
104
		public int hashCode() {
105
			if (true) {
106
				return 0;
107
			}
105
			final int prime = 31;
108
			final int prime = 31;
106
			int result = 1;
109
			int result = 1;
107
			result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
110
			result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceMethod.java (+3 lines)
Lines 199-204 Link Here
199
 * @see org.eclipse.jdt.internal.core.JavaElement#hashCode()
199
 * @see org.eclipse.jdt.internal.core.JavaElement#hashCode()
200
 */
200
 */
201
public int hashCode() {
201
public int hashCode() {
202
	if (true) {
203
		return 0;
204
	}
202
   int hash = super.hashCode();
205
   int hash = super.hashCode();
203
	for (int i = 0, length = this.parameterTypes.length; i < length; i++) {
206
	for (int i = 0, length = this.parameterTypes.length; i < length; i++) {
204
	    hash = Util.combineHashCodes(hash, this.parameterTypes[i].hashCode());
207
	    hash = Util.combineHashCodes(hash, this.parameterTypes[i].hashCode());
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/UserLibrary.java (+3 lines)
Lines 89-94 Link Here
89
	 * @see java.lang.Object#hashCode()
89
	 * @see java.lang.Object#hashCode()
90
	 */
90
	 */
91
	public int hashCode() {
91
	public int hashCode() {
92
		if (true) {
93
			return 0;
94
		}
92
		int hashCode= 0;
95
		int hashCode= 0;
93
		if (this.isSystemLibrary) {
96
		if (this.isSystemLibrary) {
94
			hashCode++;
97
			hashCode++;
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/ClasspathDirectory.java (+3 lines)
Lines 119-124 Link Here
119
}
119
}
120
120
121
public int hashCode() {
121
public int hashCode() {
122
	if (true) {
123
		return 0;
124
	}
122
	return this.binaryFolder == null ? super.hashCode() : this.binaryFolder.hashCode();
125
	return this.binaryFolder == null ? super.hashCode() : this.binaryFolder.hashCode();
123
}
126
}
124
127
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/ClasspathJar.java (+3 lines)
Lines 164-169 Link Here
164
}
164
}
165
165
166
public int hashCode() {
166
public int hashCode() {
167
	if (true) {
168
		return 0;
169
	}
167
	return this.zipFilename == null ? super.hashCode() : this.zipFilename.hashCode();
170
	return this.zipFilename == null ? super.hashCode() : this.zipFilename.hashCode();
168
}
171
}
169
172
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/SourceFile.java (+3 lines)
Lines 101-106 Link Here
101
	return CharOperation.splitOn('/', typeName, 0, lastIndex);
101
	return CharOperation.splitOn('/', typeName, 0, lastIndex);
102
}
102
}
103
public int hashCode() {
103
public int hashCode() {
104
	if (true) {
105
		return 0;
106
	}
104
	return this.initialTypeName.hashCode();
107
	return this.initialTypeName.hashCode();
105
}
108
}
106
public boolean ignoreOptionalProblems() {
109
public boolean ignoreOptionalProblems() {
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/HashSetOfArray.java (+6 lines)
Lines 63-72 Link Here
63
	}
63
	}
64
64
65
	private int hashCode(Object[] element) {
65
	private int hashCode(Object[] element) {
66
		if (true) {
67
			return 0;
68
		}
66
		return hashCode(element, element.length);
69
		return hashCode(element, element.length);
67
	}
70
	}
68
71
69
	private int hashCode(Object[] element, int length) {
72
	private int hashCode(Object[] element, int length) {
73
		if (true) {
74
			return 0;
75
		}
70
		int hash = 0;
76
		int hash = 0;
71
		for (int i = length-1; i >= 0; i--)
77
		for (int i = length-1; i >= 0; i--)
72
			hash = Util.combineHashCodes(hash, element[i].hashCode());
78
			hash = Util.combineHashCodes(hash, element[i].hashCode());
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/HashSetOfCharArrayArray.java (+6 lines)
Lines 65-74 Link Here
65
	}
65
	}
66
66
67
	private int hashCode(char[][] element) {
67
	private int hashCode(char[][] element) {
68
		if (true) {
69
			return 0;
70
		}
68
		return hashCode(element, element.length);
71
		return hashCode(element, element.length);
69
	}
72
	}
70
73
71
	private int hashCode(char[][] element, int length) {
74
	private int hashCode(char[][] element, int length) {
75
		if (true) {
76
			return 0;
77
		}
72
		int hash = 0;
78
		int hash = 0;
73
		for (int i = length-1; i >= 0; i--)
79
		for (int i = length-1; i >= 0; i--)
74
			hash = Util.combineHashCodes(hash, CharOperation.hashCode(element[i]));
80
			hash = Util.combineHashCodes(hash, CharOperation.hashCode(element[i]));
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/HashtableOfArrayToObject.java (+6 lines)
Lines 112-121 Link Here
112
	}
112
	}
113
113
114
	private int hashCode(Object[] element) {
114
	private int hashCode(Object[] element) {
115
		if (true) {
116
			return 0;
117
		}
115
		return hashCode(element, element.length);
118
		return hashCode(element, element.length);
116
	}
119
	}
117
120
118
	private int hashCode(Object[] element, int length) {
121
	private int hashCode(Object[] element, int length) {
122
		if (true) {
123
			return 0;
124
		}
119
		int hash = 0;
125
		int hash = 0;
120
		for (int i = length-1; i >= 0; i--)
126
		for (int i = length-1; i >= 0; i--)
121
			hash = Util.combineHashCodes(hash, element[i].hashCode());
127
			hash = Util.combineHashCodes(hash, element[i].hashCode());
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/WeakHashSet.java (+3 lines)
Lines 31-36 Link Here
31
			return referent.equals(other);
31
			return referent.equals(other);
32
		}
32
		}
33
		public int hashCode() {
33
		public int hashCode() {
34
			if (true) {
35
				return 0;
36
			}
34
			return this.hashCode;
37
			return this.hashCode;
35
		}
38
		}
36
		public String toString() {
39
		public String toString() {
(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/WeakHashSetOfCharArray.java (+3 lines)
Lines 33-38 Link Here
33
			return CharOperation.equals(referent, other);
33
			return CharOperation.equals(referent, other);
34
		}
34
		}
35
		public int hashCode() {
35
		public int hashCode() {
36
			if (true) {
37
				return 0;
38
			}
36
			return this.hashCode;
39
			return this.hashCode;
37
		}
40
		}
38
		public String toString() {
41
		public String toString() {
(-)a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/index/FileIndexLocation.java (+3 lines)
Lines 76-81 Link Here
76
	}
76
	}
77
77
78
	public int hashCode() {
78
	public int hashCode() {
79
		if (true) {
80
			return 0;
81
		}
79
		return this.indexFile.hashCode();
82
		return this.indexFile.hashCode();
80
	}
83
	}
81
84
(-)a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/index/IndexLocation.java (+3 lines)
Lines 99-104 Link Here
99
	}
99
	}
100
100
101
	public int hashCode() {
101
	public int hashCode() {
102
		if (true) {
103
			return 0;
104
		}
102
		return this.url.hashCode();
105
		return this.url.hashCode();
103
	}
106
	}
104
107
(-)a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/JavaSearchTypeNameMatch.java (+3 lines)
Lines 77-82 Link Here
77
 * @see java.lang.Object#hashCode()
77
 * @see java.lang.Object#hashCode()
78
 */
78
 */
79
public int hashCode() {
79
public int hashCode() {
80
	if (true) {
81
		return 0;
82
	}
80
	if (this.type == null) return this.modifiers;
83
	if (this.type == null) return this.modifiers;
81
	return this.type.hashCode();
84
	return this.type.hashCode();
82
}
85
}
(-)a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/JavaWorkspaceScope.java (+3 lines)
Lines 128-133 Link Here
128
}
128
}
129
129
130
public int hashCode() {
130
public int hashCode() {
131
	if (true) {
132
		return 0;
133
	}
131
	return JavaWorkspaceScope.class.hashCode();
134
	return JavaWorkspaceScope.class.hashCode();
132
}
135
}
133
136
(-)a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/AddJarFileToIndex.java (+3 lines)
Lines 65-70 Link Here
65
		return false;
65
		return false;
66
	}
66
	}
67
	public int hashCode() {
67
	public int hashCode() {
68
		if (true) {
69
			return 0;
70
		}
68
		if (this.resource != null)
71
		if (this.resource != null)
69
			return this.resource.hashCode();
72
			return this.resource.hashCode();
70
		if (this.containerPath != null)
73
		if (this.containerPath != null)
(-)a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/IndexAllProject.java (+3 lines)
Lines 241-246 Link Here
241
		return true;
241
		return true;
242
	}
242
	}
243
	public int hashCode() {
243
	public int hashCode() {
244
		if (true) {
245
			return 0;
246
		}
244
		return this.project.hashCode();
247
		return this.project.hashCode();
245
	}
248
	}
246
	protected Integer updatedIndexState() {
249
	protected Integer updatedIndexState() {
(-)a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/IndexBinaryFolder.java (+3 lines)
Lines 148-153 Link Here
148
		return true;
148
		return true;
149
	}
149
	}
150
	public int hashCode() {
150
	public int hashCode() {
151
		if (true) {
152
			return 0;
153
		}
151
		return this.folder.hashCode();
154
		return this.folder.hashCode();
152
	}
155
	}
153
	protected Integer updatedIndexState() {
156
	protected Integer updatedIndexState() {
(-)a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/ClasspathSourceDirectory.java (+3 lines)
Lines 96-101 Link Here
96
}
96
}
97
97
98
public int hashCode() {
98
public int hashCode() {
99
	if (true) {
100
		return 0;
101
	}
99
	return this.sourceFolder == null ? super.hashCode() : this.sourceFolder.hashCode();
102
	return this.sourceFolder == null ? super.hashCode() : this.sourceFolder.hashCode();
100
}
103
}
101
104
(-)a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/PossibleMatch.java (+3 lines)
Lines 147-152 Link Here
147
	return this.similarMatch != null && this.source == NO_SOURCE_FILE;
147
	return this.similarMatch != null && this.source == NO_SOURCE_FILE;
148
}
148
}
149
public int hashCode() {
149
public int hashCode() {
150
	if (true) {
151
		return 0;
152
	}
150
	if (this.compoundName == null) return super.hashCode();
153
	if (this.compoundName == null) return super.hashCode();
151
154
152
	int hashCode = 0;
155
	int hashCode = 0;

Return to bug 372319