commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1444967 - /commons/sandbox/weaver/branches/mjb/processor/src/main/java/org/apache/commons/weaver/WeaveProcessor.java
Date Mon, 11 Feb 2013 21:22:21 GMT
Author: mbenson
Date: Mon Feb 11 21:22:21 2013
New Revision: 1444967

URL: http://svn.apache.org/r1444967
Log:
add private constructor; miscellaneous

Modified:
    commons/sandbox/weaver/branches/mjb/processor/src/main/java/org/apache/commons/weaver/WeaveProcessor.java

Modified: commons/sandbox/weaver/branches/mjb/processor/src/main/java/org/apache/commons/weaver/WeaveProcessor.java
URL: http://svn.apache.org/viewvc/commons/sandbox/weaver/branches/mjb/processor/src/main/java/org/apache/commons/weaver/WeaveProcessor.java?rev=1444967&r1=1444966&r2=1444967&view=diff
==============================================================================
--- commons/sandbox/weaver/branches/mjb/processor/src/main/java/org/apache/commons/weaver/WeaveProcessor.java
(original)
+++ commons/sandbox/weaver/branches/mjb/processor/src/main/java/org/apache/commons/weaver/WeaveProcessor.java
Mon Feb 11 21:22:21 2013
@@ -64,10 +64,12 @@ public class WeaveProcessor {
             instance = new WeaveProcessor();
             instance.init();
         }
-
         return instance;
     }
 
+    private WeaveProcessor() {
+    }
+
     private void init() {
         ServiceLoader<Weaver> loader = ServiceLoader.load(Weaver.class);
         Iterator<Weaver> it = loader.iterator();
@@ -86,7 +88,6 @@ public class WeaveProcessor {
      *            the File path where the classes to weave reside
      * @param config
      *            additional configuration for all plugins.
-     * 
      */
     public void configure(List<String> classPath, File target, Properties config) {
         this.classPath = classPath;
@@ -109,7 +110,7 @@ public class WeaveProcessor {
     }
 
     private void weave(Finder finder, Weaver weaver) {
-        ScanResult result = new ScanResult();
+        final ScanResult result = new ScanResult();
 
         for (WeaveInterest interest : weaver.getScanRequest().getInterests()) {
             switch (interest.target) {



Mime
View raw message