TestFinder.java (1350:3cb11f4d617e) TestFinder.java (1612:0da44ab8c417)
1/*
1/*
2 * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
2 * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *

--- 376 unchanged lines hidden (view full) ---

387 * argument list if this is set to override the default true
388 *
389 * @args new argument list array
390 */
391 public static String[] addExplicitOptimisticTypes(final String[] args) {
392 if (hasOptimisticOverride()) {
393 final List<String> newList = new ArrayList<>(Arrays.asList(args));
394 newList.add("--optimistic-types=" + OPTIMISTIC_OVERRIDE);
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *

--- 376 unchanged lines hidden (view full) ---

387 * argument list if this is set to override the default true
388 *
389 * @args new argument list array
390 */
391 public static String[] addExplicitOptimisticTypes(final String[] args) {
392 if (hasOptimisticOverride()) {
393 final List<String> newList = new ArrayList<>(Arrays.asList(args));
394 newList.add("--optimistic-types=" + OPTIMISTIC_OVERRIDE);
395 return newList.toArray(new String[newList.size()]);
395 return newList.toArray(new String[0]);
396 }
397 return args;
398 }
399
400 /**
401 * Add an optimistic-types=true option to an argument list if this is set to
402 * override the default false
403 *

--- 56 unchanged lines hidden ---
396 }
397 return args;
398 }
399
400 /**
401 * Add an optimistic-types=true option to an argument list if this is set to
402 * override the default false
403 *

--- 56 unchanged lines hidden ---