Dieser Commit ist enthalten in:
Ursprung
ea9b11c263
Commit
f4e2051ec0
@ -156,6 +156,9 @@ public final class Reflection {
|
||||
@Override
|
||||
public void set(Object target, Object value) {
|
||||
try {
|
||||
if(field.getDeclaringClass() == int.class)
|
||||
field.setInt(target, (int)value);
|
||||
else
|
||||
field.set(target, value);
|
||||
} catch (IllegalAccessException e) {
|
||||
throw new IllegalArgumentException("Cannot access reflection.", e);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren