< prev index next >

openjfx9/modules/javafx.graphics/src/main/java/com/sun/marlin/FloatArrayCache.java

Print this page

        

@@ -20,23 +20,24 @@
  *
  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
-package sun.java2d.marlin;
 
-import static sun.java2d.marlin.ArrayCacheConst.ARRAY_SIZES;
-import static sun.java2d.marlin.ArrayCacheConst.BUCKETS;
-import static sun.java2d.marlin.ArrayCacheConst.MAX_ARRAY_SIZE;
-import static sun.java2d.marlin.MarlinUtils.logInfo;
-import static sun.java2d.marlin.MarlinUtils.logException;
+package com.sun.marlin;
+
+import static com.sun.marlin.ArrayCacheConst.ARRAY_SIZES;
+import static com.sun.marlin.ArrayCacheConst.BUCKETS;
+import static com.sun.marlin.ArrayCacheConst.MAX_ARRAY_SIZE;
+import static com.sun.marlin.MarlinUtils.logInfo;
+import static com.sun.marlin.MarlinUtils.logException;
 
 import java.lang.ref.WeakReference;
 import java.util.Arrays;
 
-import sun.java2d.marlin.ArrayCacheConst.BucketStats;
-import sun.java2d.marlin.ArrayCacheConst.CacheStats;
+import com.sun.marlin.ArrayCacheConst.BucketStats;
+import com.sun.marlin.ArrayCacheConst.CacheStats;
 
 /*
  * Note that the [BYTE/INT/FLOAT]ArrayCache files are nearly identical except
  * for a few type and name differences. Typically, the [BYTE]ArrayCache.java file
  * is edited manually and then [INT]ArrayCache.java and [FLOAT]ArrayCache.java

@@ -229,12 +230,12 @@
 
     static float[] createArray(final int length, final boolean clean) {
         if (clean) {
             return new float[length];
         }
-       // use JDK9 Unsafe.allocateUninitializedArray(class, length):
-       return (float[]) OffHeapArray.UNSAFE.allocateUninitializedArray(float.class, length);
+        // use JDK9 Unsafe.allocateUninitializedArray(class, length):
+        return (float[]) OffHeapArray.UNSAFE.allocateUninitializedArray(float.class, length);
     }
 
     static void fill(final float[] array, final int fromIndex,
                      final int toIndex, final float value)
     {
< prev index next >