src/share/classes/sun/invoke/util/Wrapper.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File jdk Cdiff src/share/classes/sun/invoke/util/Wrapper.java

src/share/classes/sun/invoke/util/Wrapper.java

Print this page
rev 9491 : 8037209: Improvements and cleanups to bytecode assembly for lambda forms
Reviewed-by: ?
Contributed-by: john.r.rose@oracle.com

*** 228,245 **** * The optional argument must a type compatible with this wrapper. * Equivalent to {@code this.cast(this.zero(), type)}. */ public <T> T zero(Class<T> type) { return convert(zero, type); } - // /** Produce a wrapper for the given wrapper or primitive type. */ - // public static Wrapper valueOf(Class<?> type) { - // if (isPrimitiveType(type)) - // return forPrimitiveType(type); - // else - // return forWrapperType(type); - // } - /** Return the wrapper that wraps values of the given type. * The type may be {@code Object}, meaning the {@code OBJECT} wrapper. * Otherwise, the type must be a primitive. * @throws IllegalArgumentException for unexpected types */ --- 228,237 ----
src/share/classes/sun/invoke/util/Wrapper.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File