We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77befe2 commit 7e8f6ecCopy full SHA for 7e8f6ec
src/classes/modules/java.base/java/lang/reflect/Method.java
@@ -63,6 +63,18 @@ public boolean isSynthetic (){
63
@Override
64
public native String toString();
65
66
+
67
+ String toShortSignature(){
68
+ StringBuilder sb = new StringBuilder();
69
+ sb.append(getName());
70
+ Class<?>[] ps = getParameterTypes();
71
+ for (int i=0; i<ps.length; i++){
72
+ Class<?> parameter = ps[i];
73
+ sb.append(parameter.getTypeName());
74
+ }
75
+ return sb.toString();
76
77
78
// for Annotations - return the default value of the annotation member
79
// represented by this method
80
public native Object getDefaultValue();
0 commit comments