diff --git a/src/main/java/me/mrnavastar/r/R.java b/src/main/java/me/mrnavastar/r/R.java index c1e4607..a209ff2 100644 --- a/src/main/java/me/mrnavastar/r/R.java +++ b/src/main/java/me/mrnavastar/r/R.java @@ -82,12 +82,13 @@ public T get(String name, Class type) { /** * Set the value of a field. Can be private, final, or static */ - public void set(String name, Object value) { + public R set(String name, Object value) { try { findField(name, clazz).set(instance, value); } catch (NoSuchFieldException | IllegalAccessException e) { throw new RuntimeException(e); } + return this; } /**