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

changeset 1347
1408af4cd8b0
parent 1338
ad2ca2a4ab5e
child 1348
573ceb23beeb
     1.1 --- a/src/share/classes/com/sun/tools/javac/code/Types.java	Sat Sep 29 09:00:58 2012 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Types.java	Thu Oct 04 13:04:53 2012 +0100
     1.3 @@ -3154,6 +3154,14 @@
     1.4          }
     1.5          return Type.noType;
     1.6      }
     1.7 +
     1.8 +    /**
     1.9 +     * Return the unboxed type if 't' is a boxed class, otherwise return 't' itself.
    1.10 +     */
    1.11 +    public Type unboxedTypeOrType(Type t) {
    1.12 +        Type unboxedType = unboxedType(t);
    1.13 +        return unboxedType.tag == NONE ? t : unboxedType;
    1.14 +    }
    1.15      // </editor-fold>
    1.16  
    1.17      // <editor-fold defaultstate="collapsed" desc="Capture conversion">

mercurial