From c2783da968d192e2f7df0d128743a841d22ca499 Mon Sep 17 00:00:00 2001 From: Oliver Heger Date: Wed, 16 Mar 2011 21:27:13 +0000 Subject: [PATCH] Checkstyle git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1082306 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/lang3/reflect/FieldUtils.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java b/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java index 7ac6f2fb3..34b6a161c 100644 --- a/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java +++ b/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java @@ -236,7 +236,8 @@ public class FieldUtils { * @throws IllegalArgumentException if the class or field name is null * @throws IllegalAccessException if the field is not made accessible */ - public static Object readStaticField(Class cls, String fieldName, boolean forceAccess) throws IllegalAccessException { + public static Object readStaticField(Class cls, String fieldName, boolean forceAccess) + throws IllegalAccessException { Field field = getField(cls, fieldName, forceAccess); if (field == null) { throw new IllegalArgumentException("Cannot locate field " + fieldName + " on " + cls); @@ -377,7 +378,8 @@ public class FieldUtils { * @throws IllegalArgumentException if target or fieldName is null * @throws IllegalAccessException if the field is not made accessible */ - public static Object readDeclaredField(Object target, String fieldName, boolean forceAccess) throws IllegalAccessException { + public static Object readDeclaredField(Object target, String fieldName, boolean forceAccess) + throws IllegalAccessException { if (target == null) { throw new IllegalArgumentException("target object must not be null"); } @@ -511,7 +513,8 @@ public class FieldUtils { * @throws IllegalArgumentException if the field is null * @throws IllegalAccessException if the field is not made accessible or is final */ - public static void writeField(Field field, Object target, Object value, boolean forceAccess) throws IllegalAccessException { + public static void writeField(Field field, Object target, Object value, boolean forceAccess) + throws IllegalAccessException { if (field == null) { throw new IllegalArgumentException("The field must not be null"); }