Add code quality tools with dedicated GitHub Actions #10
errorprone.yml
on: pull_request
Error Prone Analysis
1m 6s
Annotations
1 error and 10 warnings
|
Error Prone Analysis
Process completed with exit code 1.
|
|
Error Prone Analysis:
jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/model/EnumDefinition.java#L57
NonApiType: Prefer a java.util.List instead.
|
|
Error Prone Analysis:
jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/model/EnumDefinition.java#L44
NonApiType: Prefer a java.util.List instead.
|
|
Error Prone Analysis:
jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/URLProtocol.java#L28
ImmutableEnumChecker: enums should be immutable: 'URLProtocol' has non-final field 'protocol'
|
|
Error Prone Analysis:
jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/JacksonAnnotator.java#L216
MissingOverride: addJsonTypeInfoAnnotation implements method in AbstractTypeInfoAwareAnnotator; expected @OverRide
|
|
Error Prone Analysis:
jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/JacksonAnnotator.java#L56
StatementSwitchToExpressionSwitch: This statement switch can be converted to an equivalent expression switch
|
|
Error Prone Analysis:
jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/AnnotatorFactory.java#L44
StatementSwitchToExpressionSwitch: This statement switch can be converted to an equivalent expression switch
|
|
Error Prone Analysis:
jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/util/ReflectionHelper.java#L181
JdkObsolete: It is very rare for LinkedList to out-perform ArrayList or ArrayDeque. Avoid it unless you're willing to invest a lot of time into benchmarking. Caveat: LinkedList supports null elements, but ArrayDeque does not.
|
|
Error Prone Analysis:
jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/util/ReflectionHelper.java#L178
JdkObsolete: It is very rare for LinkedList to out-perform ArrayList or ArrayDeque. Avoid it unless you're willing to invest a lot of time into benchmarking. Caveat: LinkedList supports null elements, but ArrayDeque does not.
|
|
Error Prone Analysis:
jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/util/ReflectionHelper.java#L171
JdkObsolete: It is very rare for LinkedList to out-perform ArrayList or ArrayDeque. Avoid it unless you're willing to invest a lot of time into benchmarking. Caveat: LinkedList supports null elements, but ArrayDeque does not.
|
|
Error Prone Analysis:
jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/util/TypeUtil.java#L65
PatternMatchingInstanceof: This code can be simplified to use a pattern-matching instanceof.
|