avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r1501581 - in /avro/trunk: CHANGES.txt lang/java/compiler/src/main/velocity/org/apache/avro/compiler/specific/templates/java/classic/record.vm
Date Tue, 09 Jul 2013 22:00:09 GMT
Author: cutting
Date: Tue Jul  9 22:00:09 2013
New Revision: 1501581

URL: http://svn.apache.org/r1501581
Log:
AVRO-1261. Clarify in documentation that generated no-arg constructors do not use default
values from schema.

Modified:
    avro/trunk/CHANGES.txt
    avro/trunk/lang/java/compiler/src/main/velocity/org/apache/avro/compiler/specific/templates/java/classic/record.vm

Modified: avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/avro/trunk/CHANGES.txt?rev=1501581&r1=1501580&r2=1501581&view=diff
==============================================================================
--- avro/trunk/CHANGES.txt (original)
+++ avro/trunk/CHANGES.txt Tue Jul  9 22:00:09 2013
@@ -70,6 +70,9 @@ Trunk (not yet released)
     AVRO-1351. Extend SortedKeyValueFile to support data models
     besides generic. (cutting)
 
+    AVRO-1261. Clarify in documentation that generated no-arg
+    constructors do not use default values from schema. (cutting)
+
   BUG FIXES
 
     AVRO-1296. Python: Fix schemas retrieved from protocol types

Modified: avro/trunk/lang/java/compiler/src/main/velocity/org/apache/avro/compiler/specific/templates/java/classic/record.vm
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/compiler/src/main/velocity/org/apache/avro/compiler/specific/templates/java/classic/record.vm?rev=1501581&r1=1501580&r2=1501581&view=diff
==============================================================================
--- avro/trunk/lang/java/compiler/src/main/velocity/org/apache/avro/compiler/specific/templates/java/classic/record.vm
(original)
+++ avro/trunk/lang/java/compiler/src/main/velocity/org/apache/avro/compiler/specific/templates/java/classic/record.vm
Tue Jul  9 22:00:09 2013
@@ -60,7 +60,9 @@ public class ${this.mangle($schema.getNa
 #if ($schema.getFields().size() > 0)  
 
   /**
-   * Default constructor.
+   * Default constructor.  Note that this does not initialize fields
+   * to their default values from the schema.  If that is desired then
+   * one should use {@link #newBuilder()}. 
    */
   public ${this.mangle($schema.getName())}() {}
 



Mime
View raw message