Add supresswarnings to cleanup 16b1dbdf92.

Motivation:

We should add @SupressWarnings

Modifications:

Add annotations.

Result:

Less warnings
This commit is contained in:
Norman Maurer 2017-10-22 13:23:06 +02:00
parent 4793daa589
commit 740c68faed

View File

@ -240,10 +240,12 @@ public class ResourceLeakDetector<T> {
*
* @return the {@link ResourceLeakTracker} or {@code null}
*/
@SuppressWarnings("unchecked")
public final ResourceLeakTracker<T> track(T obj) {
return track0(obj);
}
@SuppressWarnings("unchecked")
private DefaultResourceLeak track0(T obj) {
Level level = ResourceLeakDetector.level;
if (level == Level.DISABLED) {