< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.options/src/org/graalvm/options/OptionKey.java

Print this page

        

*** 51,67 **** throw new IllegalArgumentException("No default type specified for type " + defaultValue.getClass().getName() + ". Specify the option type explicitly to resolve this."); } } /** ! * Constructs a new option key given a default value and option key. The default value and the ! * type must not be <code>null</code>. * * @since 1.0 */ public OptionKey(T defaultValue, OptionType<T> type) { - Objects.requireNonNull(defaultValue); Objects.requireNonNull(type); this.defaultValue = defaultValue; this.type = type; } --- 51,65 ---- throw new IllegalArgumentException("No default type specified for type " + defaultValue.getClass().getName() + ". Specify the option type explicitly to resolve this."); } } /** ! * Constructs a new option key given a default value and option key. * * @since 1.0 */ public OptionKey(T defaultValue, OptionType<T> type) { Objects.requireNonNull(type); this.defaultValue = defaultValue; this.type = type; }
< prev index next >