mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-23 18:45:34 +01:00
Fixes typo in MethodMapping class
This commit is contained in:
parent
e51da054bf
commit
22d0c395e4
@ -55,42 +55,42 @@ public enum MethodMapping {
|
|||||||
private final String _1_14;
|
private final String _1_14;
|
||||||
private final String _1_17;
|
private final String _1_17;
|
||||||
private final String _1_18;
|
private final String _1_18;
|
||||||
private final Class<?>[] paramaters;
|
private final Class<?>[] parameters;
|
||||||
|
|
||||||
MethodMapping(String saneFallback, String _1_14, String _1_17, String _1_18, Class<?>... paramaters) {
|
MethodMapping(String saneFallback, String _1_14, String _1_17, String _1_18, Class<?>... parameters) {
|
||||||
this.saneFallback = saneFallback;
|
this.saneFallback = saneFallback;
|
||||||
|
|
||||||
this._1_14 = _1_14;
|
this._1_14 = _1_14;
|
||||||
this._1_17 = _1_17;
|
this._1_17 = _1_17;
|
||||||
this._1_18 = _1_18;
|
this._1_18 = _1_18;
|
||||||
this.paramaters = paramaters;
|
this.parameters = parameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
MethodMapping(String saneFallback, String _1_17, String _1_18, Class<?>... paramaters) {
|
MethodMapping(String saneFallback, String _1_17, String _1_18, Class<?>... parameters) {
|
||||||
this.saneFallback = saneFallback;
|
this.saneFallback = saneFallback;
|
||||||
|
|
||||||
this._1_14 = null;
|
this._1_14 = null;
|
||||||
this._1_17 = _1_17;
|
this._1_17 = _1_17;
|
||||||
this._1_18 = _1_18;
|
this._1_18 = _1_18;
|
||||||
this.paramaters = paramaters;
|
this.parameters = parameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
MethodMapping(String saneFallback, String _1_18, Class<?>... paramaters) {
|
MethodMapping(String saneFallback, String _1_18, Class<?>... parameters) {
|
||||||
this.saneFallback = saneFallback;
|
this.saneFallback = saneFallback;
|
||||||
|
|
||||||
this._1_14 = null;
|
this._1_14 = null;
|
||||||
this._1_17 = null;
|
this._1_17 = null;
|
||||||
this._1_18 = _1_18;
|
this._1_18 = _1_18;
|
||||||
this.paramaters = paramaters;
|
this.parameters = parameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
MethodMapping(String saneFallback, Class<?>... paramaters) {
|
MethodMapping(String saneFallback, Class<?>... parameters) {
|
||||||
this.saneFallback = saneFallback;
|
this.saneFallback = saneFallback;
|
||||||
|
|
||||||
this._1_14 = null;
|
this._1_14 = null;
|
||||||
this._1_17 = null;
|
this._1_17 = null;
|
||||||
this._1_18 = null;
|
this._1_18 = null;
|
||||||
this.paramaters = paramaters;
|
this.parameters = parameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Method getMethod(Class<?> clazz) {
|
public Method getMethod(Class<?> clazz) {
|
||||||
@ -112,14 +112,14 @@ public enum MethodMapping {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Method method = clazz.getMethod(methodName, paramaters);
|
Method method = clazz.getMethod(methodName, parameters);
|
||||||
method.setAccessible(true);
|
method.setAccessible(true);
|
||||||
|
|
||||||
return method;
|
return method;
|
||||||
} catch (NullPointerException | NoSuchMethodException ex) {
|
} catch (NullPointerException | NoSuchMethodException ex) {
|
||||||
if (saneFallback != null && !saneFallback.equals(methodName)) {
|
if (saneFallback != null && !saneFallback.equals(methodName)) {
|
||||||
try {
|
try {
|
||||||
Method method = clazz.getMethod(saneFallback, paramaters);
|
Method method = clazz.getMethod(saneFallback, parameters);
|
||||||
method.setAccessible(true);
|
method.setAccessible(true);
|
||||||
|
|
||||||
return method;
|
return method;
|
||||||
|
Loading…
Reference in New Issue
Block a user