< prev index next >

src/java.base/share/classes/java/lang/invoke/MethodHandle.java

Print this page
rev 53560 : 8218022: Repeated words typos in java.base
Reviewed-by: alanb, lancea
Contributed-by: Andrey Turbanov <turbanoff@gmail.com>

*** 1,7 **** /* ! * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 1081,1091 **** * if (makeVarargs == isVarargsCollector()) * return this; * else if (makeVarargs) * return asVarargsCollector(type().lastParameterType()); * else ! * return return asFixedArity(); * }</pre></blockquote> * @param makeVarargs true if the return method handle should have variable arity behavior * @return a method handle of the same type, with possibly adjusted variable arity behavior * @throws IllegalArgumentException if {@code makeVarargs} is true and * this method handle does not have a trailing array parameter --- 1081,1091 ---- * if (makeVarargs == isVarargsCollector()) * return this; * else if (makeVarargs) * return asVarargsCollector(type().lastParameterType()); * else ! * return asFixedArity(); * }</pre></blockquote> * @param makeVarargs true if the return method handle should have variable arity behavior * @return a method handle of the same type, with possibly adjusted variable arity behavior * @throws IllegalArgumentException if {@code makeVarargs} is true and * this method handle does not have a trailing array parameter
< prev index next >