blueszhangsh / protobuf-dt

Automatically exported from code.google.com/p/protobuf-dt
0 stars 0 forks source link

Jsava code has numerous javadoc warnings #239

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enable javadoc warnings for project
2. Use protoc to generate java code and add to project
3. Note the numerous warnings

What is the expected output? What do you see instead?
Should not be any java doc warnings

What version of the product are you using? On what operating system?
2.5.0

Please provide any additional information below.

Trivial fix.  Just add this line of code code

  printer->Print("@SuppressWarnings(\"javadoc\")\n\n");

to java_file.cc, line 196  just before this:

  printer->Print(
    "public final class $classname$ {\n"
    "  private $classname$() {}\n",
    "classname", classname_);
  printer->Indent();

Original issue reported on code.google.com by videoph...@gmail.com on 16 Apr 2013 at 9:05

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The protobuf-dt project only provides development tools for protocol buffers.  
The software component that generates code is called protoc, or the protocol 
buffers compiler, and is managed in the protobuf project.

https://code.google.com/p/protobuf/

I suggest you submit an issue to the protobuf project issue tracker (or search 
to see if an existing one covers the warnings you see) with information about 
what warnings you are seeing and an example .proto file that causes the 
warnings when compiled to java.

Original comment by compuwar...@gmail.com on 16 Apr 2013 at 11:16

GoogleCodeExporter commented 9 years ago
I know the difference between these two projects.  This was a total screw up on 
my part. Many apologies.

Original comment by videoph...@gmail.com on 17 Apr 2013 at 6:22