< prev index next >
src/java.desktop/share/classes/sun/java2d/loops/GraphicsPrimitiveMgr.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2018, 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
@@ -39,12 +39,12 @@
* 2. locate an instance of a primitve based on characteristics
*/
public final class GraphicsPrimitiveMgr {
private static final boolean debugTrace = false;
- private static GraphicsPrimitive primitives[];
- private static GraphicsPrimitive generalPrimitives[];
+ private static GraphicsPrimitive[] primitives;
+ private static GraphicsPrimitive[] generalPrimitives;
private static boolean needssort = true;
private static native void initIDs(Class<?> GP, Class<?> ST, Class<?> CT,
Class<?> SG2D, Class<?> Color, Class<?> AT,
Class<?> XORComp, Class<?> AlphaComp,
@@ -318,11 +318,11 @@
" proxied graphics primitives resolved correctly.");
System.out.println(resolved+unresolved+
" total graphics primitives");
}
- public static void main(String argv[]) {
+ public static void main(String[] argv) {
// REMIND: Should trigger loading of platform primitives somehow...
if (needssort) {
Arrays.sort(primitives, primSorter);
needssort = false;
}
< prev index next >