Add supresswarnings to cleanup 16b1dbdf92
.
Motivation: We should add @SupressWarnings Modifications: Add annotations. Result: Less warnings
This commit is contained in:
parent
4793daa589
commit
740c68faed
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user