New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
protoc-generated Java files generate lots of warnings with Java 8 javadoc #304
Comments
Could the compiler generate the Javadoc tags? |
There are some options:
I'd go for either 1. or 3. |
The compiler probably has "knowledge" what all the parameters are (as it generates a patterned set of accessor methods). |
The javadoc linter in Java 8 produces a larger number of warnings that are not easily fixable for us since they depend on upstream fixes, see e.g. protocolbuffers/protobuf#304 So just run without the linter for now.
The javadoc linter in Java 8 produces a larger number of warnings that are not easily fixable for us since they depend on upstream fixes, see e.g. protocolbuffers/protobuf#304 So just run without the linter for now.
The javadoc linter in Java 8 produces a larger number of warnings that are not easily fixable for us since they depend on upstream fixes, see e.g. protocolbuffers/protobuf#304 So just run without the linter for now.
* Exclude v1 API from javadoc generation I think it's best to skip this set since the V1 API is deprecated (and it generates a bunch of warnings). We can always change our minds later of course if we have to revisit this. Testing Done: - verified that the warnings produced during javadoc:javadoc for v1 protos go away * Remove executable permissions from README.md No need for +x on this markdown file. * Autofix a large number of javadoc warnings This change is the result of using javadoc:fix to mostly automatically fix a huge set of javadoc warnings. There were a couple of cases where I had to fix up what the autofixer produced: BigtableOptions.java - for some reason the autofixer inserted copies of a large number of functions and members resulting in duplicated / redefined names and a non-compiling file. Fixed it manually after inspecting the damage. BulkOptions.java - tool didn't know to change '<' to '<' and so generated bad HTML. author tags: The tool inserted @author dharan all over the place and I manually changed it to sduskis since that seemed like the logical default. Testing Done: - mvn javadoc:javadoc (still produces warnings, but less of them now) - mvn clean install (all tests pass) * Silence the javadoc linter The javadoc linter in Java 8 produces a larger number of warnings that are not easily fixable for us since they depend on upstream fixes, see e.g. protocolbuffers/protobuf#304 So just run without the linter for now. * Fix remaining javadoc warnings - fix a couple of warnings for @link cases that javadoc was unable to resolve, and add a link to the gRPC docs and make sure io.grpc.Status.Code can be resolved - Remove autofixer's mistakenly applied @inheritdoc - fixup documentation for Logger class to better explain varargs use
This experimental interface is called Caffe2DML and doesnot affect other functionality. - Updated the interface to match the Caffe specification as per @bertholdreinwald 's suggestion. - Added support for fine-tuning. - Added support for explain, statistics and gpu. Closes #422.
We are closing open issues. Feel free to send PRs and reopen if you'd like to follow up on the issue. |
Is that issue fixed yet? AFAICT it isn't in I tested it in my maven project with a config similar to this one. <build>
<extensions>
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>1.6.0</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.5.1</version>
<configuration>
<clearOutputDirectory>false</clearOutputDirectory>
<protocArtifact>com.google.protobuf:protoc:3.6.1:exe:${os.detected.classifier}</protocArtifact>
</configuration>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadoc</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build> which generates classes with methods like these: /**
* <code>repeated string tag = 3;</code>
*/
java.util.List<java.lang.String>
getTagList();
/**
* <code>repeated string tag = 3;</code>
*/
int getTagCount();
/**
* <code>repeated string tag = 3;</code>
*/
java.lang.String getTag(int index);
/**
* <code>repeated string tag = 3;</code>
*/
com.google.protobuf.ByteString
getTagBytes(int index); and causes warnings like these:
|
+1 I would like to see this fixed, either by having informative documentation generated or by having dummy tags added. |
I recently started with the second batch of javadoc additions, but there are plenty of different cases.
and these are just a few of them that return a |
See also Turning off doclint in JDK 8 Javadoc for a workaround.
The text was updated successfully, but these errors were encountered: