tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jsdelf...@apache.org
Subject svn commit: r572480 - in /incubator/tuscany/java/sca/modules/assembly/src: main/java/org/apache/tuscany/sca/assembly/builder/impl/ main/java/org/apache/tuscany/sca/assembly/util/ test/java/org/apache/tuscany/sca/assembly/builder/impl/ test/java/org/apa...
Date Tue, 04 Sep 2007 01:22:48 GMT
Author: jsdelfino
Date: Mon Sep  3 18:22:47 2007
New Revision: 572480

URL: http://svn.apache.org/viewvc?rev=572480&view=rev
Log:
Minor cleanup, move PrintUtil to builder.impl as it's only used there, actually not even used
at the moment as the code that uses it is commented out.

Added:
    incubator/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/PrintUtil.java
      - copied, changed from r572427, incubator/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/util/PrintUtil.java
    incubator/tuscany/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/builder/impl/PrintUtilTestCase.java
      - copied, changed from r572427, incubator/tuscany/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/util/PrintUtilTestCase.java
Removed:
    incubator/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/util/
    incubator/tuscany/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/util/
Modified:
    incubator/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ProblemImpl.java

Copied: incubator/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/PrintUtil.java
(from r572427, incubator/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/util/PrintUtil.java)
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/PrintUtil.java?p2=incubator/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/PrintUtil.java&p1=incubator/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/util/PrintUtil.java&r1=572427&r2=572480&rev=572480&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/util/PrintUtil.java
(original)
+++ incubator/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/PrintUtil.java
Mon Sep  3 18:22:47 2007
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.    
  */
-package org.apache.tuscany.sca.assembly.util;
+package org.apache.tuscany.sca.assembly.builder.impl;
 
 import java.beans.BeanInfo;
 import java.beans.IntrospectionException;
@@ -42,7 +42,7 @@
  * 
  * @version $Rev$ $Date$
  */
-public class PrintUtil {
+class PrintUtil {
     private boolean useGetters = false;
     private PrintWriter out;
     private int indent;

Modified: incubator/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ProblemImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ProblemImpl.java?rev=572480&r1=572479&r2=572480&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ProblemImpl.java
(original)
+++ incubator/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ProblemImpl.java
Mon Sep  3 18:22:47 2007
@@ -23,7 +23,6 @@
 import java.io.StringWriter;
 
 import org.apache.tuscany.sca.assembly.builder.Problem;
-import org.apache.tuscany.sca.assembly.util.PrintUtil;
 
 /**
  * Reports a composite assembly problem. 
@@ -99,15 +98,16 @@
         return cause;
     }
 
+    @Override
     public String toString() {
         StringWriter sw = new StringWriter();
         PrintWriter writer = new PrintWriter(sw);
         writer.format("[%s] %s %s", severity, message, resource);
-        PrintUtil util = new PrintUtil(writer, false);
-        if (model != null) {
-            writer.println();
-           // util.print(model);
-        }
+        //PrintUtil util = new PrintUtil(writer, false);
+        //if (model != null) {
+        //    writer.println();
+        //    util.print(model);
+        //}
         if (cause != null) {
             writer.println();
             cause.printStackTrace(writer);

Copied: incubator/tuscany/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/builder/impl/PrintUtilTestCase.java
(from r572427, incubator/tuscany/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/util/PrintUtilTestCase.java)
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/builder/impl/PrintUtilTestCase.java?p2=incubator/tuscany/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/builder/impl/PrintUtilTestCase.java&p1=incubator/tuscany/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/util/PrintUtilTestCase.java&r1=572427&r2=572480&rev=572480&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/util/PrintUtilTestCase.java
(original)
+++ incubator/tuscany/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/builder/impl/PrintUtilTestCase.java
Mon Sep  3 18:22:47 2007
@@ -17,7 +17,7 @@
  * under the License.    
  */
 
-package org.apache.tuscany.sca.assembly.util;
+package org.apache.tuscany.sca.assembly.builder.impl;
 
 import java.io.PrintWriter;
 import java.io.StringWriter;
@@ -47,6 +47,7 @@
 import org.apache.tuscany.sca.assembly.TestImplementation;
 import org.apache.tuscany.sca.assembly.TestInterfaceContract;
 import org.apache.tuscany.sca.assembly.Wire;
+import org.apache.tuscany.sca.assembly.builder.impl.PrintUtil;
 import org.junit.Test;
 
 /**



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message