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

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/ast/ASTNode.java (-1 / +1 lines)
Lines 398-404 Link Here
398
398
399
		ReferenceBinding refType = (ReferenceBinding) type;
399
		ReferenceBinding refType = (ReferenceBinding) type;
400
400
401
		if ((refType.isPrivate() /*|| refType.isLocalType()*/) && !scope.isDefinedInType(refType)) {
401
		if ((refType.isPrivate() || refType.isLocalType()) && !scope.isDefinedInType(refType)) {
402
			// ignore cases where type is used from within inside itself 
402
			// ignore cases where type is used from within inside itself 
403
			((ReferenceBinding)refType.erasure()).modifiers |= ExtraCompilerModifiers.AccLocallyUsed;
403
			((ReferenceBinding)refType.erasure()).modifiers |= ExtraCompilerModifiers.AccLocallyUsed;
404
		}
404
		}
(-)compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java (-1 / +1 lines)
Lines 589-595 Link Here
589
 *	Common flow analysis for all types
589
 *	Common flow analysis for all types
590
 */
590
 */
591
private void internalAnalyseCode(FlowContext flowContext, FlowInfo flowInfo) {
591
private void internalAnalyseCode(FlowContext flowContext, FlowInfo flowInfo) {
592
	if ((this.binding.isPrivate()/* || (this.binding.tagBits & (TagBits.IsAnonymousType|TagBits.IsLocalType)) == TagBits.IsLocalType*/) && !this.binding.isUsed()) {
592
	if ((this.binding.isPrivate() || (this.binding.tagBits & (TagBits.IsAnonymousType|TagBits.IsLocalType)) == TagBits.IsLocalType) && !this.binding.isUsed()) {
593
		if (!this.scope.referenceCompilationUnit().compilationResult.hasSyntaxError) {
593
		if (!this.scope.referenceCompilationUnit().compilationResult.hasSyntaxError) {
594
			this.scope.problemReporter().unusedPrivateType(this);
594
			this.scope.problemReporter().unusedPrivateType(this);
595
		}
595
		}

Return to bug 170181