src/share/classes/sun/font/TrueTypeFont.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -707,11 +707,11 @@
return defaultCodePage;
}
if (FontUtilities.isWindows) {
defaultCodePage =
- (String)java.security.AccessController.doPrivileged(
+ java.security.AccessController.doPrivileged(
new sun.security.action.GetPropertyAction("file.encoding"));
} else {
if (languages.length != codePages.length) {
throw new InternalError("wrong code pages array length");
}
@@ -1502,11 +1502,11 @@
createLCIDMap();
}
String key = locale.toString();
while (!"".equals(key)) {
- Short lcidObject = (Short) lcidMap.get(key);
+ Short lcidObject = lcidMap.get(key);
if (lcidObject != null) {
return lcidObject.shortValue();
}
int pos = key.lastIndexOf('_');
if (pos < 1) {