--- old/src/demo/share/java2d/J2DBench/src/j2dbench/Result.java 2018-10-03 16:37:16.477008000 +0700 +++ new/src/demo/share/java2d/J2DBench/src/j2dbench/Result.java 2018-10-03 16:37:15.993008000 +0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -70,7 +70,7 @@ resultoptroot = new Group(TestEnvironment.globaloptroot, "results", "Result Options"); - String workStrings[] = { + String[] workStrings = { "units", "kilounits", "megaunits", @@ -80,7 +80,7 @@ "megaops", "autoops", }; - String workDescriptions[] = { + String[] workDescriptions = { "Test Units", "Thousands of Test Units", "Millions of Test Units", @@ -90,7 +90,7 @@ "Millions of Operations", "Auto-scaled Operations", }; - Integer workObjects[] = { + Integer[] workObjects = { new Integer(WORK_UNITS), new Integer(WORK_THOUSANDS), new Integer(WORK_MILLIONS), @@ -105,21 +105,21 @@ workStrings, workObjects, workStrings, workDescriptions, 0); - String timeStrings[] = { + String[] timeStrings = { "sec", "msec", "usec", "nsec", "autosec", }; - String timeDescriptions[] = { + String[] timeDescriptions = { "Seconds", "Milliseconds", "Microseconds", "Nanoseconds", "Auto-scaled seconds", }; - Integer timeObjects[] = { + Integer[] timeObjects = { new Integer(TIME_SECONDS), new Integer(TIME_MILLIS), new Integer(TIME_MICROS), @@ -131,15 +131,15 @@ timeStrings, timeObjects, timeStrings, timeDescriptions, 0); - String rateStrings[] = { + String[] rateStrings = { "unitspersec", "secsperunit", }; - String rateDescriptions[] = { + String[] rateDescriptions = { "Work units per Time", "Time units per Work", }; - Boolean rateObjects[] = { + Boolean[] rateObjects = { Boolean.FALSE, Boolean.TRUE, };