Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
suppress checks for static inner types for #6373
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Jul 16, 2016
1 parent ed01df7 commit 3246c31
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ private void visitExtendedType(

Declaration member =
resolveTypeAliases(that.getDeclaration());
if (member!=null &&
isInherited(scope, member)) {
if (member!=null
&& !member.isStaticallyImportable()
&& isInherited(scope, member)) {
Declaration container =
(Declaration)
member.getContainer();
Expand Down Expand Up @@ -143,9 +144,10 @@ private void checkMemberReference(
Tree.MemberOrTypeExpression that) {
Declaration member =
resolveTypeAliases(that.getDeclaration());
if (member!=null &&
isInherited(that.getScope(), member) &&
!member.getUnit().getPackage().getModule().isJava()) {
if (member!=null
&& !member.isStaticallyImportable()
&& isInherited(that.getScope(), member)
&& !member.getUnit().getPackage().getModule().isJava()) {
Declaration container =
(Declaration)
member.getContainer();
Expand Down

0 comments on commit 3246c31

Please sign in to comment.