cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1101752 - in /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne: query/BaseQueryMetadata.java util/Util.java
Date Wed, 11 May 2011 05:31:13 GMT
Author: aadamchik
Date: Wed May 11 05:31:13 2011
New Revision: 1101752

URL: http://svn.apache.org/viewvc?rev=1101752&view=rev
Log:
serialization in ByteArrayOutputStream is uneeded

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/BaseQueryMetadata.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/util/Util.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/BaseQueryMetadata.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/BaseQueryMetadata.java?rev=1101752&r1=1101751&r2=1101752&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/BaseQueryMetadata.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/BaseQueryMetadata.java
Wed May 11 05:31:13 2011
@@ -326,7 +326,7 @@ class BaseQueryMetadata implements Query
 
     void setPrefetchTree(PrefetchTreeNode prefetchTree) {
         if (prefetchTree != null) {
-            // importnat: make a clone to allow modification independent from the
+            // important: make a clone to allow modification independent from the
             // caller...
             try {
                 prefetchTree = (PrefetchTreeNode) Util

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/util/Util.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/util/Util.java?rev=1101752&r1=1101751&r2=1101752&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/util/Util.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/util/Util.java
Wed May 11 05:31:13 2011
@@ -333,11 +333,12 @@ public class Util {
     /**
      * Creates Serializable object copy using serialization/deserialization.
      */
-    public static <T extends Serializable> T cloneViaSerialization(T object) throws
Exception {
+    public static <T extends Serializable> T cloneViaSerialization(T object)
+            throws Exception {
         ByteArrayOutputStream bytes = new ByteArrayOutputStream() {
 
             @Override
-            public synchronized byte[] toByteArray() {
+            public byte[] toByteArray() {
                 return buf;
             }
         };
@@ -509,7 +510,7 @@ public class Util {
 
             // skip \n, \r, \r\n
             if (c == '\n' || c == '\r') {
-                
+
                 matched = true;
 
                 // do lookahead



Mime
View raw message