jdk/src/java.base/share/classes/java/util/PropertyResourceBundle.java
changeset 37781 71ed5645f17c
parent 37593 824750ada3d6
child 40985 69efd667068d
equal deleted inserted replaced
37780:06f3783b338f 37781:71ed5645f17c
   138  */
   138  */
   139 public class PropertyResourceBundle extends ResourceBundle {
   139 public class PropertyResourceBundle extends ResourceBundle {
   140 
   140 
   141     // Check whether the strict encoding is specified.
   141     // Check whether the strict encoding is specified.
   142     // The possible encoding is either "ISO-8859-1" or "UTF-8".
   142     // The possible encoding is either "ISO-8859-1" or "UTF-8".
   143     private static final String encoding =
   143     private static final String encoding = GetPropertyAction
   144         GetPropertyAction
   144         .privilegedGetProperty("java.util.PropertyResourceBundle.encoding", "")
   145                 .getProperty("java.util.PropertyResourceBundle.encoding", "")
       
   146         .toUpperCase(Locale.ROOT);
   145         .toUpperCase(Locale.ROOT);
   147 
   146 
   148     /**
   147     /**
   149      * Creates a property resource bundle from an {@link java.io.InputStream
   148      * Creates a property resource bundle from an {@link java.io.InputStream
   150     * InputStream}. This constructor reads the property file in UTF-8 by default.
   149     * InputStream}. This constructor reads the property file in UTF-8 by default.