commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1562880 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java
Date Thu, 30 Jan 2014 16:28:19 GMT
Author: mbenson
Date: Thu Jan 30 16:28:19 2014
New Revision: 1562880

URL: http://svn.apache.org/r1562880
Log:
ws

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java?rev=1562880&r1=1562879&r2=1562880&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java
Thu Jan 30 16:28:19 2014
@@ -671,11 +671,11 @@ public class FieldUtils {
      * @throws IllegalArgumentException
      *             if the field is {@code null}
      */
-    public static void removeFinalModifier(Field field)  {
+    public static void removeFinalModifier(Field field) {
         Validate.isTrue(field != null, "The field must not be null");
 
         try {
-            if(Modifier.isFinal(field.getModifiers())){
+            if (Modifier.isFinal(field.getModifiers())) {
                 Field modifiersField = Field.class.getDeclaredField("modifiers");
                 modifiersField.setAccessible(true);
                 modifiersField.setInt(field, field.getModifiers() & ~Modifier.FINAL);



Mime
View raw message