Last active
December 26, 2015 19:59
-
-
Save vyazelenko/7205242 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static MethodHandle prepareGetter(MethodHandle mh) { | |
return mh.asType(mh.type().changeParameterType(0, Object.class) | |
.changeReturnType(Object.class)); | |
} | |
private static MethodHandle prepareSetter(MethodHandle mh) { | |
return mh.asType(mh.type().changeParameterType(0, Object.class) | |
.changeParameterType(1, Object.class)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment