Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BF69E200D20 for ; Tue, 3 Oct 2017 05:44:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BDD36160BCB; Tue, 3 Oct 2017 03:44:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0F37C1609EF for ; Tue, 3 Oct 2017 05:44:04 +0200 (CEST) Received: (qmail 59653 invoked by uid 500); 3 Oct 2017 03:44:03 -0000 Mailing-List: contact dev-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 dev@avro.apache.org Received: (qmail 59642 invoked by uid 99); 3 Oct 2017 03:44:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Oct 2017 03:44:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E5947DADE0 for ; Tue, 3 Oct 2017 03:44:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.001 X-Spam-Level: X-Spam-Status: No, score=-100.001 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 6j100e7vVO43 for ; Tue, 3 Oct 2017 03:44:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 15CFF5F6D3 for ; Tue, 3 Oct 2017 03:44:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 83336E0D34 for ; Tue, 3 Oct 2017 03:44:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 17091242C1 for ; Tue, 3 Oct 2017 03:44:00 +0000 (UTC) Date: Tue, 3 Oct 2017 03:44:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AVRO-2080) Fix Javadoc Warnings in Generated Records MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 03 Oct 2017 03:44:05 -0000 [ https://issues.apache.org/jira/browse/AVRO-2080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16189222#comment-16189222 ] ASF GitHub Bot commented on AVRO-2080: -------------------------------------- GitHub user Kuroshii opened a pull request: https://github.com/apache/avro/pull/254 AVRO-2080: Fix Generated Record Javadocs #### Changes: - Add missing javadoc annotations to the specific record velocity template - Update test files for specific compiler tool You can merge this pull request into a Git repository by running: $ git pull https://github.com/Kuroshii/avro fix-generated-record-javadocs Alternatively you can review and apply these changes as the patch at: https://github.com/apache/avro/pull/254.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #254 ---- commit a9872fd6e23821db6536a8d21a6271620ca5bd65 Author: Bridger Howell Date: 2017-10-03T02:57:23Z AVRO-2080: Add missing javadoc annotations to record template commit 449d8b5e53ed4306edc5c45ce38019517ef9285e Author: Bridger Howell Date: 2017-10-03T02:57:30Z AVRO-2080: Update SpecificCompilerTool test data ---- > Fix Javadoc Warnings in Generated Records > ----------------------------------------- > > Key: AVRO-2080 > URL: https://issues.apache.org/jira/browse/AVRO-2080 > Project: Avro > Issue Type: Bug > Components: java > Affects Versions: 1.8.2 > Reporter: Bridger Howell > Priority: Minor > Attachments: Test.java > > > I've been seeing a number of javadoc errors for the generated records using the 1.8.2 version of {{SpecificCompiler}}. > For example, if I generate code from the following schema: > {noformat} > { > "type":"record", > "name":"Test", > "namespace":"foo.bar", > "fields":[ > {"name":"name","type":"string"} > ], > "version":1 > } > {noformat} > And then run the javadoc tool on it, I get the following javadoc warnings: > {noformat} > [warn] src_managed/main/Test.java:30: warning: no @return > [warn] public static BinaryMessageDecoder getDecoder() { > [warn] ^ > [warn] src_managed/main/Test.java:38: warning: no @return > [warn] public static BinaryMessageDecoder createDecoder(SchemaStore resolver) { > [warn] ^ > [warn] src_managed/main/Test.java:43: warning: no @return > [warn] public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException { > [warn] ^ > [warn] src_managed/main/Test.java:43: warning: no @throws for java.io.IOException > [warn] public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException { > [warn] ^ > [warn] src_managed/main/Test.java:48: warning: no @param for b > [warn] public static Test fromByteBuffer( > [warn] ^ > [warn] src_managed/main/Test.java:48: warning: no @return > [warn] public static Test fromByteBuffer( > [warn] ^ > [warn] src_managed/main/Test.java:48: warning: no @throws for java.io.IOException > [warn] public static Test fromByteBuffer( > [warn] ^ > {noformat} > Since this is a simple enough problem, I'll see if I can make a quick patch in a bit. -- This message was sent by Atlassian JIRA (v6.4.14#64029)