Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am using the proto file to generate a Java file but I'm getting an UnusedPrivateParameter compilation error. error log cannot find symbol symbol: class UnusedPrivateParameter location: class com.TransactionEventOuterClass.TransactionEvent [ERROR] /D:/com/TransactionEventOuterClass.java:[31653,9] cannot find symbol symbol: class UnusedPrivateParameter location: class com..TransactionEventOuterClass.Details [INFO] 22 errors

-- java file error

@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
    UnusedPrivateParameter unused) {
  return new TransactionEvent();
}

jdk version - 1.8 intellij version - 2017.3.7 protoc compiler version- 3.11.4

I am using the following dependency and plugin :

<dependency>
        <groupId>com.google.protobuf</groupId>
        <artifactId>protobuf-java-util</artifactId>
        <version>3.14.0</version>
    </dependency>
    <dependency>
        <groupId>com.github.os72</groupId>
        <artifactId>protoc-jar</artifactId>
        <version>3.11.4</version>
    </dependency>
   <dependency>
        <groupId>com.google.protobuf</groupId>
        <artifactId>protobuf-java</artifactId>
        <version>3.14.0</version>
    </dependency>

<plugin>
                <groupId>com.github.os72</groupId>
                <artifactId>protoc-jar-maven-plugin</artifactId>
                <version>3.11.4</version>
                <executions>
</plugin>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
775 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...