1 /* |
1 /* |
2 * Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
28 import java.awt.event.KeyEvent; |
28 import java.awt.event.KeyEvent; |
29 import java.lang.reflect.Field; |
29 import java.lang.reflect.Field; |
30 import java.lang.reflect.Modifier; |
30 import java.lang.reflect.Modifier; |
31 import java.text.MessageFormat; |
31 import java.text.MessageFormat; |
32 import java.util.Collections; |
32 import java.util.Collections; |
33 import java.util.HashMap; |
33 import java.util.IdentityHashMap; |
34 import java.util.Map; |
34 import java.util.Map; |
35 import java.util.MissingResourceException; |
35 import java.util.MissingResourceException; |
36 import java.util.ResourceBundle; |
36 import java.util.ResourceBundle; |
37 |
37 |
38 /** |
38 /** |
39 * Toolkit that provides resource support for JConsole. |
39 * Toolkit that provides resource support for JConsole. |
40 */ |
40 */ |
41 public final class Resources { |
41 public final class Resources { |
42 private static Map<String, Integer> MNEMONIC_LOOKUP = Collections |
42 private static Map<String, Integer> MNEMONIC_LOOKUP = Collections |
43 .synchronizedMap(new HashMap<String, Integer>()); |
43 .synchronizedMap(new IdentityHashMap<String, Integer>()); |
44 |
44 |
45 private Resources() { |
45 private Resources() { |
46 throw new AssertionError(); |
46 throw new AssertionError(); |
47 } |
47 } |
48 |
48 |