Skip to content
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

SpotBugs alert: Useless control flow in com.hedera*.*maybeForceBuilderInitialization() (if-statement with empty body) #308

Open
alex-kuzmin-hg opened this issue Aug 14, 2024 · 1 comment
Assignees

Comments

@alex-kuzmin-hg
Copy link

Description

All (193) generated classes have same issue the method maybeForceBuilderInitialization()
has invalid if-statement of its empty body, e.g.
./hapi/build/generated/source/proto/main/java/com/hederahashgraph/api/proto/java/UtilPrngTransactionBody.java, line 302

private void maybeForceBuilderInitialization() {
  if (com.google.protobuf.GeneratedMessageV3
          .alwaysUseFieldBuilders) {
  }
}

Steps to reproduce

  1. ./gradlew clean assemble
  2. check ./hapi/build/generated/source/proto/main/java/com/hederahashgraph/api/proto/java/UtilPrngTransactionBody.java -> maybeForceBuilderInitialization()

Additional context

No response

Hedera network

other

Version

v0.53

Operating system

Other

@alex-kuzmin-hg alex-kuzmin-hg self-assigned this Aug 14, 2024
@poulok poulok transferred this issue from hashgraph/hedera-services Oct 22, 2024
@poulok
Copy link
Member

poulok commented Nov 26, 2024

@alex-kuzmin-hg please move this ticket to the PBJ repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants