< prev index next >

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

Print this page
rev 51977 : [mq]: 8200381-Typos-in-javadoc-missing-verb-be-and-alike

*** 98,108 **** * Suppose that a VarHandle instance can access array elements, and that its * coordinate types are {@code String[]} and {@code int} while its variable type * is {@code String}. The access mode type for {@code compareAndSet} on this * VarHandle instance would be * {@code (String[] c1, int c2, String expectedValue, String newValue)boolean}. ! * Such a VarHandle instance may produced by the * {@link MethodHandles#arrayElementVarHandle(Class) array factory method} and * access array elements as follows: * <pre> {@code * String[] sa = ... * VarHandle avh = MethodHandles.arrayElementVarHandle(String[].class); --- 98,108 ---- * Suppose that a VarHandle instance can access array elements, and that its * coordinate types are {@code String[]} and {@code int} while its variable type * is {@code String}. The access mode type for {@code compareAndSet} on this * VarHandle instance would be * {@code (String[] c1, int c2, String expectedValue, String newValue)boolean}. ! * Such a VarHandle instance may be produced by the * {@link MethodHandles#arrayElementVarHandle(Class) array factory method} and * access array elements as follows: * <pre> {@code * String[] sa = ... * VarHandle avh = MethodHandles.arrayElementVarHandle(String[].class);
< prev index next >