84 context.put(targetKey, instance); |
84 context.put(targetKey, instance); |
85 } |
85 } |
86 return instance; |
86 return instance; |
87 } |
87 } |
88 |
88 |
89 private static Target MIN; |
89 private static final Target MIN = values()[0]; |
90 public static Target MIN() { return MIN; } |
90 public static Target MIN() { return MIN; } |
91 |
91 |
92 private static Target MAX; |
92 private static final Target MAX = values()[values().length - 1]; |
93 public static Target MAX() { return MAX; } |
93 public static Target MAX() { return MAX; } |
94 |
94 |
95 private static Map<String,Target> tab = new HashMap<String,Target>(); |
95 private static final Map<String,Target> tab = new HashMap<String,Target>(); |
96 static { |
96 static { |
97 for (Target t : values()) { |
97 for (Target t : values()) { |
98 if (MIN == null) MIN = t; |
|
99 MAX = t; |
|
100 tab.put(t.name, t); |
98 tab.put(t.name, t); |
101 } |
99 } |
102 tab.put("5", JDK1_5); |
100 tab.put("5", JDK1_5); |
103 tab.put("6", JDK1_6); |
101 tab.put("6", JDK1_6); |
104 tab.put("7", JDK1_7); |
102 tab.put("7", JDK1_7); |