Dieser Commit ist enthalten in:
Ursprung
ea9b11c263
Commit
f4e2051ec0
@ -156,7 +156,10 @@ public final class Reflection {
|
||||
@Override
|
||||
public void set(Object target, Object value) {
|
||||
try {
|
||||
field.set(target, value);
|
||||
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