langtools/src/share/classes/com/sun/tools/javac/jvm/Profile.java
changeset 22163 3651128c74eb
parent 22151 cb8daa93eeb1
equal deleted inserted replaced
22162:3b3e23e67329 22163:3651128c74eb
    48         public boolean isValid(Target t) {
    48         public boolean isValid(Target t) {
    49             return true;
    49             return true;
    50         }
    50         }
    51     };
    51     };
    52 
    52 
    53     private static final Context.Key<Profile> profileKey =
    53     private static final Context.Key<Profile> profileKey = new Context.Key<>();
    54         new Context.Key<Profile>();
       
    55 
    54 
    56     public static Profile instance(Context context) {
    55     public static Profile instance(Context context) {
    57         Profile instance = context.get(profileKey);
    56         Profile instance = context.get(profileKey);
    58         if (instance == null) {
    57         if (instance == null) {
    59             Options options = Options.instance(context);
    58             Options options = Options.instance(context);