Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 507701 | Differences between
and this patch

Collapse All | Expand All

(-)a/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/comparator/ClassFileComparator.java (+27 lines)
Lines 2104-2109 Link Here
2104
								} else {
2104
								} else {
2105
									int access3 = method3.getModifiers();
2105
									int access3 = method3.getModifiers();
2106
									if (Flags.isPublic(access3) || Flags.isProtected(access3)) {
2106
									if (Flags.isPublic(access3) || Flags.isProtected(access3)) {
2107
										IApiAnnotations apiAnnotations = null;
2108
										if (apiDescription != null) {
2109
											apiAnnotations = apiDescription.resolveAnnotations(method3.getHandle());
2110
										}
2111
										if (apiAnnotations != null) {
2112
											int restrictions = apiAnnotations.getRestrictions();
2113
											// if overriding no reference method, break the loop and report method addition
2114
											if (RestrictionModifiers.isReferenceRestriction(restrictions)) {
2115
												found = false;
2116
												break loop;
2117
											}
2118
										}
2107
										// method has been move up in the
2119
										// method has been move up in the
2108
										// hierarchy - report the delta and
2120
										// hierarchy - report the delta and
2109
										// abort loop
2121
										// abort loop
Lines 2153-2158 Link Here
2153
									} else {
2165
									} else {
2154
										int access3 = method3.getModifiers();
2166
										int access3 = method3.getModifiers();
2155
										if (Flags.isPublic(access3) || Flags.isProtected(access3)) {
2167
										if (Flags.isPublic(access3) || Flags.isProtected(access3)) {
2168
											IApiAnnotations apiAnnotations = null;
2169
											if (apiDescription != null) {
2170
												apiAnnotations = apiDescription.resolveAnnotations(method3.getHandle());
2171
											}
2172
											if (apiAnnotations != null) {
2173
												int restrictions = apiAnnotations.getRestrictions();
2174
												// if overriding no reference
2175
												// method, break the loop and
2176
												// report method addition
2177
												if (RestrictionModifiers.isReferenceRestriction(restrictions)) {
2178
													found = false;
2179
													break loop;
2180
												}
2181
2182
											}
2156
											// method has been pushed down in
2183
											// method has been pushed down in
2157
											// the hierarchy - report the delta
2184
											// the hierarchy - report the delta
2158
											// and abort loop
2185
											// and abort loop

Return to bug 507701