src/share/classes/sun/font/FreetypeFontScaler.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -48,11 +48,11 @@
and therefore no need to load it explicitly here */
FontManagerNativeLibrary.load();
initIDs(FreetypeFontScaler.class);
}
- private static native void initIDs(Class FFS);
+ private static native void initIDs(Class<?> FFS);
private void invalidateScaler() throws FontScalerException {
nativeScaler = 0;
font = null;
throw new FontScalerException();
@@ -67,11 +67,11 @@
nativeScaler = initNativeScaler(font,
fonttype,
indexInCollection,
supportsCJK,
filesize);
- this.font = new WeakReference(font);
+ this.font = new WeakReference<>(font);
}
synchronized StrikeMetrics getFontMetrics(long pScalerContext)
throws FontScalerException {
if (nativeScaler != 0L) {