Ignore:
Timestamp:
2016-08-04T02:27:43+02:00 (9 years ago)
Author:
donvip
Message:

code style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/src/messages/Messages.java

    r30294 r32767  
    55
    66public class Messages {
    7         private static final String BUNDLE_NAME = "resources/msg.messages";
     7    private static final String BUNDLE_NAME = "resources/msg.messages";
    88
    9         private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
     9    private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
    1010
    11         private Messages() {
    12         }
     11    private Messages() {
     12    }
    1313
    14         public static String getString(String key) {
    15                 try {
    16                         return RESOURCE_BUNDLE.getString(key);
    17                 } catch (MissingResourceException e) {
    18                         return '!' + key + '!';
    19                 }
    20         }
     14    public static String getString(String key) {
     15        try {
     16            return RESOURCE_BUNDLE.getString(key);
     17        } catch (MissingResourceException e) {
     18            return '!' + key + '!';
     19        }
     20    }
    2121}
Note: See TracChangeset for help on using the changeset viewer.