< prev index next >

src/demo/share/java2d/J2DBench/src/j2dbench/J2DBench.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2002, 2015, 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 * are met: * --- 1,7 ---- /* ! * 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 * are met: *
*** 185,195 **** "Loop for a default duration of 72 hours"); System.exit(exitcode); } ! public static void main(String argv[]) { init(); TestEnvironment.init(); Result.init(); Destinations.init(); --- 185,195 ---- "Loop for a default duration of 72 hours"); System.exit(exitcode); } ! public static void main(String[] argv) { init(); TestEnvironment.init(); Result.init(); Destinations.init();
*** 308,319 **** * dd:hh:mm -> Days:Hours:Minutes */ if (argv[i].indexOf(":") >= 0) { ! String values[] = argv[i].split(":"); ! int intVals[] = new int[3]; for(int j=0; j<values.length; j++) { try { intVals[j] = Integer.parseInt(values[j]); } catch(Exception e) {} --- 308,319 ---- * dd:hh:mm -> Days:Hours:Minutes */ if (argv[i].indexOf(":") >= 0) { ! String[] values = argv[i].split(":"); ! int[] intVals = new int[3]; for(int j=0; j<values.length; j++) { try { intVals[j] = Integer.parseInt(values[j]); } catch(Exception e) {}
< prev index next >