cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skolbac...@apache.org
Subject [1/4] cayenne git commit: remove LinkedBuffer.allocate() from deserialize process, as it's better to use the default one;
Date Tue, 28 Jun 2016 12:00:12 GMT
Repository: cayenne
Updated Branches:
  refs/heads/master 81f99c3b5 -> 34646fd5b


remove LinkedBuffer.allocate() from deserialize process, as it's better to use the default
one;


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/44b03809
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/44b03809
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/44b03809

Branch: refs/heads/master
Commit: 44b03809cf526afa63e4558a9f3ce3fb6cf1a462
Parents: 81f99c3
Author: Savva Kolbachev <s.kolbachev@gmail.com>
Authored: Fri Jun 24 14:11:21 2016 +0300
Committer: Savva Kolbachev <s.kolbachev@gmail.com>
Committed: Fri Jun 24 14:11:21 2016 +0300

----------------------------------------------------------------------
 .../cayenne/rop/protostuff/ProtostuffROPSerializationService.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/44b03809/cayenne-protostuff/src/main/java/org/apache/cayenne/rop/protostuff/ProtostuffROPSerializationService.java
----------------------------------------------------------------------
diff --git a/cayenne-protostuff/src/main/java/org/apache/cayenne/rop/protostuff/ProtostuffROPSerializationService.java
b/cayenne-protostuff/src/main/java/org/apache/cayenne/rop/protostuff/ProtostuffROPSerializationService.java
index 0910171..af4aeb2 100644
--- a/cayenne-protostuff/src/main/java/org/apache/cayenne/rop/protostuff/ProtostuffROPSerializationService.java
+++ b/cayenne-protostuff/src/main/java/org/apache/cayenne/rop/protostuff/ProtostuffROPSerializationService.java
@@ -78,7 +78,7 @@ public class ProtostuffROPSerializationService implements ROPSerializationServic
     @Override
     public <T> T deserialize(InputStream inputStream, Class<T> objectClass) throws
IOException {
         Wrapper result = wrapperSchema.newMessage();
-        GraphIOUtil.mergeFrom(inputStream, result, wrapperSchema, LinkedBuffer.allocate());
+        GraphIOUtil.mergeFrom(inputStream, result, wrapperSchema);
         return objectClass.cast(result.data);
     }
 


Mime
View raw message