Lines 854-871
Link Here
|
854 |
case Binding.INTERSECTION_TYPE: |
854 |
case Binding.INTERSECTION_TYPE: |
855 |
case Binding.GENERIC_TYPE: |
855 |
case Binding.GENERIC_TYPE: |
856 |
return false; |
856 |
return false; |
857 |
case Binding.PARAMETERIZED_TYPE: |
857 |
case Binding.PARAMETERIZED_TYPE: |
858 |
if (current.isBoundParameterizedType()) |
858 |
if (current.isBoundParameterizedType()) |
859 |
return false; |
859 |
return false; |
860 |
break; |
860 |
break; |
861 |
case Binding.RAW_TYPE: |
861 |
case Binding.RAW_TYPE: |
862 |
return true; |
862 |
return true; |
863 |
} |
863 |
} |
864 |
if (current.isStatic()) |
864 |
if (current.isStatic()) { |
865 |
return true; |
865 |
return true; |
|
|
866 |
} |
866 |
if (current.isLocalType()) { |
867 |
if (current.isLocalType()) { |
867 |
NestedTypeBinding nestedType = (NestedTypeBinding) current.erasure(); |
868 |
LocalTypeBinding localTypeBinding = (LocalTypeBinding) current.erasure(); |
868 |
if (nestedType.scope.methodScope().isStatic) return true; |
869 |
MethodBinding enclosingMethod = localTypeBinding.enclosingMethod; |
|
|
870 |
if (enclosingMethod != null && enclosingMethod.isStatic()) { |
871 |
return true; |
872 |
} |
869 |
} |
873 |
} |
870 |
} while ((current = current.enclosingType()) != null); |
874 |
} while ((current = current.enclosingType()) != null); |
871 |
return true; |
875 |
return true; |