commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1460197 - /commons/sandbox/weaver/trunk/modules/privilizer/weaver/src/main/java/org/apache/commons/weaver/privilizer/Privilizer.java
Date Sat, 23 Mar 2013 17:30:35 GMT
Author: mbenson
Date: Sat Mar 23 17:30:35 2013
New Revision: 1460197

URL: http://svn.apache.org/r1460197
Log:
remove now redundant logging

Modified:
    commons/sandbox/weaver/trunk/modules/privilizer/weaver/src/main/java/org/apache/commons/weaver/privilizer/Privilizer.java

Modified: commons/sandbox/weaver/trunk/modules/privilizer/weaver/src/main/java/org/apache/commons/weaver/privilizer/Privilizer.java
URL: http://svn.apache.org/viewvc/commons/sandbox/weaver/trunk/modules/privilizer/weaver/src/main/java/org/apache/commons/weaver/privilizer/Privilizer.java?rev=1460197&r1=1460196&r2=1460197&view=diff
==============================================================================
--- commons/sandbox/weaver/trunk/modules/privilizer/weaver/src/main/java/org/apache/commons/weaver/privilizer/Privilizer.java
(original)
+++ commons/sandbox/weaver/trunk/modules/privilizer/weaver/src/main/java/org/apache/commons/weaver/privilizer/Privilizer.java
Sat Mar 23 17:30:35 2013
@@ -463,12 +463,8 @@ public abstract class Privilizer<SELF ex
                 sig.append(fld.getType().getName()).append(' ').append(fld.getName());
                 body.appendLine("this.%1$s = %1$s;", fld.getName());
             }
-            sig.append(") ").append(body.complete());
 
-            final String c = sig.toString();
-            debug("Creating action constructor:");
-            debug(c);
-            result.addConstructor(CtNewConstructor.make(c, result));
+            result.addConstructor(CtNewConstructor.make(sig.append(") ").append(body.complete()).toString(),
result));
         }
         {
             final StrBuilder run = new StrBuilder("public Object run() ");
@@ -625,9 +621,7 @@ public abstract class Privilizer<SELF ex
             body.appendLine("%s($$);", impl.getName());
         }
 
-        final String block = body.complete().toString();
-        debug("Setting body of %s to:\n%s", toString(method), block);
-        method.setBody(block);
+        method.setBody(body.complete().toString());
         return true;
     }
 



Mime
View raw message