You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gora.apache.org by hs...@apache.org on 2014/06/12 19:25:00 UTC

[2/2] git commit: GORA-332 fix record.vm template to generate deepCopyToReadOnlyBuffer methos | by Damien Raude-Morvan

GORA-332 fix record.vm template to generate deepCopyToReadOnlyBuffer methos | by Damien Raude-Morvan


Project: http://git-wip-us.apache.org/repos/asf/gora/repo
Commit: http://git-wip-us.apache.org/repos/asf/gora/commit/4ac1171d
Tree: http://git-wip-us.apache.org/repos/asf/gora/tree/4ac1171d
Diff: http://git-wip-us.apache.org/repos/asf/gora/diff/4ac1171d

Branch: refs/heads/master
Commit: 4ac1171d854bcf27ca29e5da57b90916db955b98
Parents: 148ca98
Author: Henry Saputra <he...@gmail.com>
Authored: Thu Jun 12 09:57:50 2014 -0700
Committer: Henry Saputra <he...@gmail.com>
Committed: Thu Jun 12 09:57:50 2014 -0700

----------------------------------------------------------------------
 CHANGES.txt                                                     | 2 ++
 .../main/velocity/org/apache/gora/compiler/templates/record.vm  | 5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/gora/blob/4ac1171d/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 870e19b..111ff20 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -4,6 +4,8 @@
 
 Current Development 0.5-SNAPSHOT
 
+* GORA-332 fix record.vm template to generate deepCopyToReadOnlyBuffer method (drazzib aka Damien Raude-Morvan via hsaputra)
+
 * GORA-331 Gora 0.4 compiler crash with "enum" type (drazzib aka Damien Raude-Morvan via hsaputra)
 
 * GORA-336 MongoFilterUtil: missing ref link when creating new instance of factory (drazzib via lewismc)

http://git-wip-us.apache.org/repos/asf/gora/blob/4ac1171d/gora-compiler/src/main/velocity/org/apache/gora/compiler/templates/record.vm
----------------------------------------------------------------------
diff --git a/gora-compiler/src/main/velocity/org/apache/gora/compiler/templates/record.vm b/gora-compiler/src/main/velocity/org/apache/gora/compiler/templates/record.vm
index 0a73b80..78f5d13 100644
--- a/gora-compiler/src/main/velocity/org/apache/gora/compiler/templates/record.vm
+++ b/gora-compiler/src/main/velocity/org/apache/gora/compiler/templates/record.vm
@@ -172,7 +172,7 @@ public class ${this.mangle($schema.getName())}#if ($schema.isError()) extends or
     return new #if ($schema.getNamespace())$schema.getNamespace().#end${this.mangle($schema.getName())}.Builder(other);
   }
   
-  private static java.nio.ByteBuffer deepCopyToWriteOnlyBuffer(
+  private static java.nio.ByteBuffer deepCopyToReadOnlyBuffer(
       java.nio.ByteBuffer input) {
     java.nio.ByteBuffer copy = java.nio.ByteBuffer.allocate(input.capacity());
     int position = input.position();
@@ -346,4 +346,5 @@ public class ${this.mangle($schema.getName())}#if ($schema.isError()) extends or
   
   }
   
-}
\ No newline at end of file
+}
+