13 lines
197 B
Java
13 lines
197 B
Java
|
/*
|
||
|
* /nodynamiccopyright/
|
||
|
*/
|
||
|
|
||
|
import java.lang.invoke.VarHandle;
|
||
|
|
||
|
class PolymorphicMethodTest<V> {
|
||
|
VarHandle vh;
|
||
|
V method(Object obj) {
|
||
|
return (V)vh.getAndSet(this, obj);
|
||
|
}
|
||
|
}
|