feat: apply fix command [IDE-976] #815
Annotations
6 errors and 2 warnings
build (ubuntu-latest)
Process completed with exit code 1.
|
Return an empty collection rather than null.:
plugin/src/main/java/io/snyk/languageserver/protocolextension/SnykExtendedLanguageClient.java#L317
For any method that returns an collection (such as an array, Collection or Map), it is better to return
an empty one rather than a null reference. This removes the need for null checking all results and avoids
inadvertent NullPointerExceptions.
See Effective Java, 3rd Edition, Item 54: Return empty collections or arrays instead of null
ReturnEmptyCollectionRatherThanNull (Priority: 1, Ruleset: Error Prone)
https://docs.pmd-code.org/pmd-doc-7.10.0/pmd_rules_java_errorprone.html#returnemptycollectionratherthannull
|
build (windows-latest)
The job was canceled because "ubuntu-latest" failed.
|
build (windows-latest)
The operation was canceled.
|
build (macos-latest)
The job was canceled because "ubuntu-latest" failed.
|
build (macos-latest)
The operation was canceled.
|
build (windows-latest)
Cache not found for keys: setup-java-Windows-x64-maven-f9a3da0c3f32fa6313510bee638bc6722621eaa5cde458f6d27310594dbccd91
|
build (macos-latest)
Cache not found for keys: setup-java-macOS-arm64-maven-a311aae086465d2053d22e4760e9bfa61d03463d26f0aa05a6decf4153fc9aea
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
PMD Report
|
848 Bytes |
|