avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r1562209 - in /avro/trunk: CHANGES.txt doc/src/content/xdocs/gettingstartedjava.xml
Date Tue, 28 Jan 2014 20:05:21 GMT
Author: cutting
Date: Tue Jan 28 20:05:21 2014
New Revision: 1562209

URL: http://svn.apache.org/r1562209
Log:
AVRO-1447. Java: Remove dead code from example in documentation.  Contributed by Jesse Anderson.

Modified:
    avro/trunk/CHANGES.txt
    avro/trunk/doc/src/content/xdocs/gettingstartedjava.xml

Modified: avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/avro/trunk/CHANGES.txt?rev=1562209&r1=1562208&r2=1562209&view=diff
==============================================================================
--- avro/trunk/CHANGES.txt (original)
+++ avro/trunk/CHANGES.txt Tue Jan 28 20:05:21 2014
@@ -11,6 +11,9 @@ Trunk (not yet released)
     AVRO-1441. Java: Improve documentation for Maven configuration.
     (Jesse Anderson via cutting)
 
+    AVRO-1447. Java: Remove dead code from example in documentation.
+    (Jesse Anderson via cutting)
+
   BUG FIXES
 
     AVRO-1446. C#: Correctly handle system errors in RPC.

Modified: avro/trunk/doc/src/content/xdocs/gettingstartedjava.xml
URL: http://svn.apache.org/viewvc/avro/trunk/doc/src/content/xdocs/gettingstartedjava.xml?rev=1562209&r1=1562208&r2=1562209&view=diff
==============================================================================
--- avro/trunk/doc/src/content/xdocs/gettingstartedjava.xml (original)
+++ avro/trunk/doc/src/content/xdocs/gettingstartedjava.xml Tue Jan 28 20:05:21 2014
@@ -231,8 +231,7 @@ User user3 = User.newBuilder()
         Now let's serialize our <code>User</code>s to disk.
       </p>
       <source>
-// Serialize user1 and user2 to disk
-File file = new File("users.avro");
+// Serialize user1, user2 and user3 to disk
 DatumWriter&#60;User&#62; userDatumWriter = new SpecificDatumWriter&#60;User&#62;(User.class);
 DataFileWriter&#60;User&#62; dataFileWriter = new DataFileWriter&#60;User&#62;(userDatumWriter);
 dataFileWriter.create(user1.getSchema(), new File("users.avro"));



Mime
View raw message