Revision 50

View differences:

branches/modelio3.8.x/src/main/java/org/modelio/module/attacktreedesigner/i18n/Messages.java
18 18
    public static String getString(final String key) {
19 19
        try {
20 20
            return RESOURCE_BUNDLE.getString (key);
21
        } catch (MissingResourceException e) {
21
        } catch (@SuppressWarnings ("unused") MissingResourceException e) {
22 22
            return '!' + key + '!';
23 23
        }
24 24
    }
......
27 27
    public static String getString(final String key, final String... params) {
28 28
        try {
29 29
            return MessageFormat.format (RESOURCE_BUNDLE.getString (key),(Object[]) params);
30
        } catch (MissingResourceException e) {
30
        } catch (@SuppressWarnings ("unused") MissingResourceException e) {
31 31
            return '!' + key + '!';
32 32
        }
33 33
    }

Also available in: Unified diff