Ignore:
Timestamp:
2016-10-09T04:25:33+02:00 (9 years ago)
Author:
donvip
Message:

checkstyle

File:
1 edited

Legend:

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

    r30895 r33030  
    1313import java.util.ResourceBundle;
    1414
    15 public class Messages {
    16         private static final String BUNDLE_NAME = "resources/msg.messages";
     15public final class Messages {
     16    private static final String BUNDLE_NAME = "resources/msg.messages";
    1717
    18         private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
     18    private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
    1919
    20         private Messages() {
    21         }
     20    private Messages() {
     21    }
    2222
    23         public static String getString(String key) {
    24                 try {
    25                         return RESOURCE_BUNDLE.getString(key);
    26                 } catch (MissingResourceException e) {
    27                         return '!' + key + '!';
    28                 }
    29         }
     23    public static String getString(String key) {
     24        try {
     25            return RESOURCE_BUNDLE.getString(key);
     26        } catch (MissingResourceException e) {
     27            return '!' + key + '!';
     28        }
     29    }
    3030}
Note: See TracChangeset for help on using the changeset viewer.