FindBugs Report

Produced using FindBugs3.0.1.

Project: apache-ignite[ignite-core]

Metrics

546525 lines of code analyzed, in 13527 classes, in 449 packages.

Metric Total Density*
High Priority Warnings 774 1.42
Medium Priority Warnings 3086 5.65
Total Warnings 3860 7.06

(* Defects per Thousand lines of non-commenting source statements)



Summary

Warning Type Number
Bad practice Warnings 566
Correctness Warnings 176
Experimental Warnings 21
Internationalization Warnings 157
Malicious code vulnerability Warnings 439
Multithreaded correctness Warnings 141
Performance Warnings 195
Security Warnings 11
Dodgy code Warnings 2113
Total 3819



Warnings

Click on each warning link to see a full description of the issue, and details of how to resolve it.

Bad practice Warnings

Warning Priority Details
Class defines clone() but doesn't implement Cloneable High

org.apache.ignite.internal.util.lang.GridMetadataAwareAdapter defines clone() but doesn't implement Cloneable


In file GridMetadataAwareAdapter.java, lines 384 to 391
In class org.apache.ignite.internal.util.lang.GridMetadataAwareAdapter
In method org.apache.ignite.internal.util.lang.GridMetadataAwareAdapter.clone()
At GridMetadataAwareAdapter.java:[lines 384-391]

Method may fail to close stream Medium

org.apache.ignite.internal.binary.BinaryContext.classesInPackage(String) may fail to close stream


In file BinaryContext.java, line 583
In class org.apache.ignite.internal.binary.BinaryContext
In method org.apache.ignite.internal.binary.BinaryContext.classesInPackage(String)
Need to close java.util.zip.ZipFile
At BinaryContext.java:[line 583]
At BinaryContext.java:[line 583]

Method may fail to close stream Medium

org.apache.ignite.internal.client.marshaller.jdk.GridClientJdkMarshaller.marshal(Object, int) may fail to close stream


In file GridClientJdkMarshaller.java, line 61
In class org.apache.ignite.internal.client.marshaller.jdk.GridClientJdkMarshaller
In method org.apache.ignite.internal.client.marshaller.jdk.GridClientJdkMarshaller.marshal(Object, int)
Need to close java.io.OutputStream
At GridClientJdkMarshaller.java:[line 61]
At GridClientJdkMarshaller.java:[line 61]

Method may fail to close stream Medium

org.apache.ignite.internal.IgniteExplicitImplicitDeploymentSelfTest$GridDeploymentResourceTestJob.execute() may fail to close stream


In file IgniteExplicitImplicitDeploymentSelfTest.java, line 474
In class org.apache.ignite.internal.IgniteExplicitImplicitDeploymentSelfTest$GridDeploymentResourceTestJob
In method org.apache.ignite.internal.IgniteExplicitImplicitDeploymentSelfTest$GridDeploymentResourceTestJob.execute()
Need to close java.io.Reader
At IgniteExplicitImplicitDeploymentSelfTest.java:[line 474]
At IgniteExplicitImplicitDeploymentSelfTest.java:[line 474]

Method may fail to close stream Medium

org.apache.ignite.internal.marshaller.optimized.OptimizedObjectStreamSelfTest.testReadLine() may fail to close stream


In file OptimizedObjectStreamSelfTest.java, line 793
In class org.apache.ignite.internal.marshaller.optimized.OptimizedObjectStreamSelfTest
In method org.apache.ignite.internal.marshaller.optimized.OptimizedObjectStreamSelfTest.testReadLine()
Need to close java.io.InputStream
At OptimizedObjectStreamSelfTest.java:[line 793]
At OptimizedObjectStreamSelfTest.java:[line 793]

Method may fail to close stream Medium

org.apache.ignite.internal.processors.cache.persistence.pagemem.PageIdDistributionTest._testRealHistory() may fail to close stream


In file PageIdDistributionTest.java, line 220
In class org.apache.ignite.internal.processors.cache.persistence.pagemem.PageIdDistributionTest
In method org.apache.ignite.internal.processors.cache.persistence.pagemem.PageIdDistributionTest._testRealHistory()
Need to close java.io.Writer
At PageIdDistributionTest.java:[line 220]
At PageIdDistributionTest.java:[line 220]

Method may fail to close stream Medium

org.apache.ignite.internal.processors.cluster.HttpIgniteUpdatesChecker.getUpdates(boolean) may fail to close stream


In file HttpIgniteUpdatesChecker.java, line 69
In class org.apache.ignite.internal.processors.cluster.HttpIgniteUpdatesChecker
In method org.apache.ignite.internal.processors.cluster.HttpIgniteUpdatesChecker.getUpdates(boolean)
Need to close java.io.Reader
At HttpIgniteUpdatesChecker.java:[line 69]
At HttpIgniteUpdatesChecker.java:[line 69]

Method may fail to close stream Medium

org.apache.ignite.internal.util.ipc.shmem.IpcSharedMemoryNativeLoaderSelfTest.readStreams(Process) may fail to close stream


In file IpcSharedMemoryNativeLoaderSelfTest.java, line 67
In class org.apache.ignite.internal.util.ipc.shmem.IpcSharedMemoryNativeLoaderSelfTest
In method org.apache.ignite.internal.util.ipc.shmem.IpcSharedMemoryNativeLoaderSelfTest.readStreams(Process)
Need to close java.io.Reader
At IpcSharedMemoryNativeLoaderSelfTest.java:[line 67]
At IpcSharedMemoryNativeLoaderSelfTest.java:[line 67]

Method may fail to close stream Medium

org.apache.ignite.internal.util.ipc.shmem.IpcSharedMemoryUtils.sharedMemoryIdsOnMacOS() may fail to close stream


In file IpcSharedMemoryUtils.java, line 207
In class org.apache.ignite.internal.util.ipc.shmem.IpcSharedMemoryUtils
In method org.apache.ignite.internal.util.ipc.shmem.IpcSharedMemoryUtils.sharedMemoryIdsOnMacOS()
Need to close java.io.Reader
At IpcSharedMemoryUtils.java:[line 207]
At IpcSharedMemoryUtils.java:[line 207]

Method may fail to close stream Medium

new org.apache.ignite.loadtests.cache.GridCacheAbstractLoadTest() may fail to close stream


In file GridCacheAbstractLoadTest.java, line 123
In class org.apache.ignite.loadtests.cache.GridCacheAbstractLoadTest
In method new org.apache.ignite.loadtests.cache.GridCacheAbstractLoadTest()
Need to close java.io.Reader
At GridCacheAbstractLoadTest.java:[line 123]
At GridCacheAbstractLoadTest.java:[line 123]

Method may fail to close stream Medium

org.apache.ignite.testframework.GridTestUtils.sslContext() may fail to close stream


In file GridTestUtils.java, line 1674
In class org.apache.ignite.testframework.GridTestUtils
In method org.apache.ignite.testframework.GridTestUtils.sslContext()
Need to close java.io.InputStream
At GridTestUtils.java:[line 1674]
At GridTestUtils.java:[line 1674]





Warning Types



Method may fail to close stream

The method creates an IO stream object, does not assign it to any fields, pass it to other methods that might close it, or return it, and does not appear to close the stream on all paths out of the method.  This may result in a file descriptor leak.  It is generally a good idea to use a finally block to ensure that streams are closed.