Return-Path: Delivered-To: apmail-avro-commits-archive@www.apache.org Received: (qmail 47953 invoked from network); 23 Jul 2010 18:14:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Jul 2010 18:14:45 -0000 Received: (qmail 17469 invoked by uid 500); 23 Jul 2010 18:14:45 -0000 Delivered-To: apmail-avro-commits-archive@avro.apache.org Received: (qmail 17431 invoked by uid 500); 23 Jul 2010 18:14:44 -0000 Mailing-List: contact commits-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list commits@avro.apache.org Received: (qmail 17423 invoked by uid 99); 23 Jul 2010 18:14:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jul 2010 18:14:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jul 2010 18:14:41 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8AB9D2388A2C; Fri, 23 Jul 2010 18:13:48 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r967185 - in /avro/trunk: CHANGES.txt lang/java/src/java/org/apache/avro/specific/SpecificCompiler.java Date: Fri, 23 Jul 2010 18:13:48 -0000 To: commits@avro.apache.org From: cutting@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100723181348.8AB9D2388A2C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: cutting Date: Fri Jul 23 18:13:48 2010 New Revision: 967185 URL: http://svn.apache.org/viewvc?rev=967185&view=rev Log: AVRO-582. Java: Add comment to generated code indicating that set() and get() are not for use by applications. Modified: avro/trunk/CHANGES.txt avro/trunk/lang/java/src/java/org/apache/avro/specific/SpecificCompiler.java Modified: avro/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/avro/trunk/CHANGES.txt?rev=967185&r1=967184&r2=967185&view=diff ============================================================================== --- avro/trunk/CHANGES.txt (original) +++ avro/trunk/CHANGES.txt Fri Jul 23 18:13:48 2010 @@ -76,6 +76,9 @@ Avro 1.4.0 (unreleased) AVRO-581. Java: Update MapReduce APIs to use key/value pairs for intermediate data. (cutting) + AVRO-582. Java: Add comment to generated code indicating that + set() and get() are not for use by applications. (cutting) + BUG FIXES AVRO-502. Memory leak from parsing JSON schema. Modified: avro/trunk/lang/java/src/java/org/apache/avro/specific/SpecificCompiler.java URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/src/java/org/apache/avro/specific/SpecificCompiler.java?rev=967185&r1=967184&r2=967185&view=diff ============================================================================== --- avro/trunk/lang/java/src/java/org/apache/avro/specific/SpecificCompiler.java (original) +++ avro/trunk/lang/java/src/java/org/apache/avro/specific/SpecificCompiler.java Fri Jul 23 18:13:48 2010 @@ -272,6 +272,7 @@ public class SpecificCompiler { // schema method line(out, 1, "public org.apache.avro.Schema getSchema() { return SCHEMA$; }"); // get method + line(out, 1, "// Used by DatumWriter. Applications should not call. "); line(out, 1, "public java.lang.Object get(int field$) {"); line(out, 2, "switch (field$) {"); int i = 0; @@ -280,7 +281,8 @@ public class SpecificCompiler { line(out, 2, "default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");"); line(out, 2, "}"); line(out, 1, "}"); - // set method + // put method + line(out, 1, "// Used by DatumReader. Applications should not call. "); line(out, 1, "@SuppressWarnings(value=\"unchecked\")"); line(out, 1, "public void put(int field$, java.lang.Object value$) {"); line(out, 2, "switch (field$) {");