Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove usages of deprecated @SuppressWarnings references #148

Merged
merged 1 commit into from
Jul 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/org/jvnet/hudson/test/MemoryAssert.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

package org.jvnet.hudson.test;

import edu.umd.cs.findbugs.annotations.SuppressWarnings;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import hudson.util.VersionNumber;
import java.lang.ref.Reference;
import java.lang.ref.SoftReference;
Expand Down Expand Up @@ -156,7 +156,7 @@ public static void assertGC(WeakReference<?> reference) {
* @param allowSoft if true, pass even if {@link SoftReference}s apparently needed to be cleared by forcing an {@link OutOfMemoryError};
* if false, fail in such a case (though the failure will be slow)
*/
@SuppressWarnings("DLS_DEAD_LOCAL_STORE_OF_NULL")
@SuppressFBWarnings("DLS_DEAD_LOCAL_STORE_OF_NULL")
public static void assertGC(WeakReference<?> reference, boolean allowSoft) {
// Disabled on Java 9+, because below will call Netbeans Insane Engine, which in turns tries to call setAccessible
/* TODO version-number 1.6+:
Expand Down