src/share/classes/com/sun/tools/javac/code/Attribute.java

changeset 2134
b0c086cd4520
parent 2103
b1b4a6dcc282
child 2525
2eb010b6cb22
     1.1 --- a/src/share/classes/com/sun/tools/javac/code/Attribute.java	Tue Oct 15 22:15:35 2013 +0200
     1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Attribute.java	Tue Oct 15 15:57:13 2013 -0700
     1.3 @@ -236,6 +236,7 @@
     1.4  
     1.5      public static class TypeCompound extends Compound {
     1.6          public TypeAnnotationPosition position;
     1.7 +
     1.8          public TypeCompound(Compound compound,
     1.9                  TypeAnnotationPosition position) {
    1.10              this(compound.type, compound.values, position);
    1.11 @@ -256,7 +257,7 @@
    1.12          }
    1.13  
    1.14          public boolean hasUnknownPosition() {
    1.15 -            return position == null || position.type == TargetType.UNKNOWN;
    1.16 +            return position.type == TargetType.UNKNOWN;
    1.17          }
    1.18  
    1.19          public boolean isContainerTypeCompound() {

mercurial