aboutsummaryrefslogtreecommitdiff
path: root/src/gradlecomp/java/com/amadornes/artifactural/gradle/ReflectionUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/gradlecomp/java/com/amadornes/artifactural/gradle/ReflectionUtils.java')
-rw-r--r--src/gradlecomp/java/com/amadornes/artifactural/gradle/ReflectionUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gradlecomp/java/com/amadornes/artifactural/gradle/ReflectionUtils.java b/src/gradlecomp/java/com/amadornes/artifactural/gradle/ReflectionUtils.java
index 4fbe925..5dcb9a3 100644
--- a/src/gradlecomp/java/com/amadornes/artifactural/gradle/ReflectionUtils.java
+++ b/src/gradlecomp/java/com/amadornes/artifactural/gradle/ReflectionUtils.java
@@ -12,12 +12,12 @@ public class ReflectionUtils {
Field f = null;
for (String n : name.split("\\.")) {
f = findField(target.getClass(), n);
- if(f == null) throw new IllegalStateException("Could not find '" + name + "'");
+ if (f == null) throw new IllegalStateException("Could not find '" + name + "'");
f.setAccessible(true);
prev = target;
target = f.get(target);
}
- if(f == null) throw new IllegalStateException("Could not find '" + name + "'");
+ if (f == null) throw new IllegalStateException("Could not find '" + name + "'");
f.set(prev, operator.apply((T) target));
} catch (IllegalAccessException ex) {
throw new RuntimeException(ex);