langtools/src/share/classes/com/sun/tools/javac/comp/ConstFold.java
changeset 22163 3651128c74eb
parent 15385 ee1eebe7e210
equal deleted inserted replaced
22162:3b3e23e67329 22163:3651128c74eb
    40  *  If you write code that depends on this, you do so at your own risk.
    40  *  If you write code that depends on this, you do so at your own risk.
    41  *  This code and its internal interfaces are subject to change or
    41  *  This code and its internal interfaces are subject to change or
    42  *  deletion without notice.</b>
    42  *  deletion without notice.</b>
    43  */
    43  */
    44 strictfp class ConstFold {
    44 strictfp class ConstFold {
    45     protected static final Context.Key<ConstFold> constFoldKey =
    45     protected static final Context.Key<ConstFold> constFoldKey = new Context.Key<>();
    46         new Context.Key<ConstFold>();
       
    47 
    46 
    48     private Symtab syms;
    47     private Symtab syms;
    49 
    48 
    50     public static ConstFold instance(Context context) {
    49     public static ConstFold instance(Context context) {
    51         ConstFold instance = context.get(constFoldKey);
    50         ConstFold instance = context.get(constFoldKey);