Mercurial > hg > truffle
diff graal/com.oracle.graal.options/src/com/oracle/graal/options/OptionValue.java @ 14763:a6c1c3eb20c4
transition to JDK8
- introduce support for more than one JDK in mx
- update version in annotiationprocessors
- update project definitions (truffle api is not part of the transition)
- fix style errors
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 26 Mar 2014 14:34:08 +0100 |
parents | e34f406850e5 |
children | f3a5036cc13c |
line wrap: on
line diff
--- a/graal/com.oracle.graal.options/src/com/oracle/graal/options/OptionValue.java Wed Mar 26 14:32:50 2014 +0100 +++ b/graal/com.oracle.graal.options/src/com/oracle/graal/options/OptionValue.java Wed Mar 26 14:34:08 2014 +0100 @@ -38,7 +38,7 @@ * <p> * Since the returned object is {@link AutoCloseable} the try-with-resource construct can be * used: - * + * * <pre> * try (OverrideScope s = OptionValue.override(myOption, myValue) { * // code that depends on myOption == myValue @@ -65,7 +65,7 @@ * <p> * Since the returned object is {@link AutoCloseable} the try-with-resource construct can be * used: - * + * * <pre> * Map<OptionValue, Object> overrides = new HashMap<>(); * overrides.put(myOption1, myValue1); @@ -96,13 +96,13 @@ * <p> * Since the returned object is {@link AutoCloseable} the try-with-resource construct can be * used: - * + * * <pre> * try (OverrideScope s = OptionValue.override(myOption1, myValue1, myOption2, myValue2) { * // code that depends on myOption == myValue * } * </pre> - * + * * @param overrides overrides in the form {@code [option1, override1, option2, override2, ...]} */ public static OverrideScope override(Object... overrides) { @@ -221,14 +221,14 @@ /** * Gets the values of this option including overridden values. - * + * * @param c the collection to which the values are added. If null, one is allocated. * @return the collection to which the values were added in order from most overridden to * current value */ @SuppressWarnings("unchecked") public Collection<T> getValues(Collection<T> c) { - Collection<T> values = c == null ? new ArrayList<T>() : c; + Collection<T> values = c == null ? new ArrayList<>() : c; if (!(this instanceof StableOptionValue)) { OverrideScope overrideScope = overrideScopes.get(); if (overrideScope != null) {