Implement stable hashCode for records. #102
83 new issues (0 max.) of at least minor severity.
Here is an overview of what got changed by this pull request:
Issues
======
+ Solved 122
- Added 83
Complexity increasing per file
==============================
- pbj-integration-tests/src/test/java/com/hedera/pbj/intergration/test/HashEqualsTest.java 1
- pbj-integration-tests/src/jmh/java/com/hedera/pbj/intergration/jmh/HashBench.java 2
- pbj-integration-tests/src/jmh/java/com/hedera/pbj/intergration/jmh/EqualsHashCodeBench.java 2
- pbj-integration-tests/src/test/java/com/hedera/pbj/intergration/test/TestHashFunctions.java 23
See the complete overview on Codacy
Annotations
codacy-production / Codacy Static Code Analysis
pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/Common.java#L234
Avoid reassigning parameters such as 'generatedCodeSoFar'
codacy-production / Codacy Static Code Analysis
pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/generators/ModelGenerator.java#L122
File contains tab characters (this is the first instance).
codacy-production / Codacy Static Code Analysis
pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/generators/ModelGenerator.java#L448
Unnecessary use of fully qualified name 'Common.getFieldsHashCode' due to existing static import 'com.hedera.pbj.compiler.impl.Common.*'
codacy-production / Codacy Static Code Analysis
pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/generators/ModelGenerator.java#L483
Unnecessary use of fully qualified name 'Common.getFieldsEqualsStatements' due to existing static import 'com.hedera.pbj.compiler.impl.Common.*'
codacy-production / Codacy Static Code Analysis
pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/generators/ModelGenerator.java#L532
Line is longer than 120 characters (found 146).
codacy-production / Codacy Static Code Analysis
pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/generators/ModelGenerator.java#L713
Line is longer than 120 characters (found 139).
codacy-production / Codacy Static Code Analysis
pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/generators/ModelGenerator.java#L823
Line is longer than 120 characters (found 174).
codacy-production / Codacy Static Code Analysis
pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/generators/ModelGenerator.java#L832
Line is longer than 120 characters (found 149).
codacy-production / Codacy Static Code Analysis
pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/generators/TestGenerator.java#L115
File contains tab characters (this is the first instance).
codacy-production / Codacy Static Code Analysis
pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/generators/TestGenerator.java#L161
Line is longer than 80 characters (found 121).
codacy-production / Codacy Static Code Analysis
pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/generators/TestGenerator.java#L364
Line is longer than 120 characters (found 121).
codacy-production / Codacy Static Code Analysis
pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/generators/TestGenerator.java#L394
Line is longer than 120 characters (found 135).
codacy-production / Codacy Static Code Analysis
pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/generators/TestGenerator.java#L410
Line is longer than 120 characters (found 169).
codacy-production / Codacy Static Code Analysis
pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/generators/TestGenerator.java#L418
Line is longer than 120 characters (found 143).
codacy-production / Codacy Static Code Analysis
pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/generators/TestGenerator.java#L427
Line is longer than 120 characters (found 127).
codacy-production / Codacy Static Code Analysis
pbj-integration-tests/src/jmh/java/com/hedera/pbj/intergration/jmh/EqualsHashCodeBench.java#L6
Unused import - com.hedera.pbj.runtime.MalformedProtobufException.
codacy-production / Codacy Static Code Analysis
pbj-integration-tests/src/jmh/java/com/hedera/pbj/intergration/jmh/EqualsHashCodeBench.java#L8
Unused import - com.hedera.pbj.runtime.io.buffer.Bytes.
codacy-production / Codacy Static Code Analysis
pbj-integration-tests/src/jmh/java/com/hedera/pbj/intergration/jmh/EqualsHashCodeBench.java#L9
Unused import - com.hedera.pbj.runtime.io.stream.ReadableStreamingData.
codacy-production / Codacy Static Code Analysis
pbj-integration-tests/src/jmh/java/com/hedera/pbj/intergration/jmh/HashBench.java#L9
Unused import - com.hedera.pbj.runtime.io.stream.ReadableStreamingData.
codacy-production / Codacy Static Code Analysis
pbj-integration-tests/src/jmh/java/com/hedera/pbj/intergration/jmh/HashBench.java#L13
Unused import - com.hedera.pbj.test.proto.pbj.tests.HashevalTest.
codacy-production / Codacy Static Code Analysis
pbj-integration-tests/src/jmh/java/com/hedera/pbj/intergration/jmh/HashBench.java#L17
Unused import - java.io.ByteArrayInputStream.
codacy-production / Codacy Static Code Analysis
pbj-integration-tests/src/jmh/java/com/hedera/pbj/intergration/jmh/HashBench.java#L19
Using the '.*' form of import should be avoided - java.nio.*.
codacy-production / Codacy Static Code Analysis
pbj-integration-tests/src/test/java/com/hedera/pbj/intergration/test/TestHashFunctions.java#L3
Unused import - com.google.protobuf.CodedOutputStream.
codacy-production / Codacy Static Code Analysis
pbj-integration-tests/src/test/java/com/hedera/pbj/intergration/test/TestHashFunctions.java#L22
Unused import - org.junit.jupiter.api.Assertions.assertEquals.
codacy-production / Codacy Static Code Analysis
pbj-integration-tests/src/test/java/com/hedera/pbj/intergration/test/TestHashFunctions.java#L105
Avoid reassigning parameters such as 'val'