remove expression that's always false.
Fixes sonar code smell.
removed classFile == null is always false. And the case where classFile is empty is covered by the catch block.
@@ -146,7 +146,7 @@ public class ArtifactProcessors {
new DataInputStream(loader.getResourceAsStream(jarEntry))) {
// Check magic number
- if (classFile == null || classFile.readInt() != 0xCAFEBABE) {
+ if (classFile.readInt() != 0xCAFEBABE) {
throw new IllegalArgumentException(
"The class file (" + jarEntry + ") is of an invalid format.");
}
