@@ -190,7 +190,7 @@ public String toString() {
190
190
191
191
// data model
192
192
193
- static Hashtable defaults ;
193
+ static Hashtable < String , String > defaults ;
194
194
static Hashtable <String , String > table = new Hashtable <String , String >();
195
195
static File preferencesFile ;
196
196
@@ -226,7 +226,7 @@ static protected void init(String commandLinePrefs) {
226
226
}
227
227
228
228
// clone the hash table
229
- defaults = ( Hashtable ) table . clone ( );
229
+ defaults = new Hashtable < String , String >( table );
230
230
231
231
// Load a prefs file if specified on the command line
232
232
if (commandLinePrefs != null ) {
@@ -701,7 +701,7 @@ static protected void load(InputStream input) throws IOException {
701
701
load (input , table );
702
702
}
703
703
704
- static public void load (InputStream input , Map table ) throws IOException {
704
+ static public void load (InputStream input , Map < String , String > table ) throws IOException {
705
705
String [] lines = loadStrings (input ); // Reads as UTF-8
706
706
for (String line : lines ) {
707
707
if ((line .length () == 0 ) ||
@@ -806,7 +806,7 @@ static public String get(String attribute /*, String defaultValue */) {
806
806
807
807
808
808
static public String getDefault (String attribute ) {
809
- return ( String ) defaults .get (attribute );
809
+ return defaults .get (attribute );
810
810
}
811
811
812
812
0 commit comments