Skip to content

Commit

Permalink
Suppress warning related to bug in SpotBugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jpschewe committed Mar 12, 2022
1 parent 76a932f commit 1a558a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/fll/web/developer/importdb/ImportDBDump.java
Expand Up @@ -13,6 +13,7 @@
import org.apache.tomcat.util.http.fileupload.FileUploadException;
import org.checkerframework.checker.nullness.qual.Nullable;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import fll.Utilities;
import fll.db.GlobalParameters;
import fll.db.ImportDB;
Expand Down Expand Up @@ -57,6 +58,7 @@ public class ImportDBDump extends BaseFLLServlet {
/**
* @return an integer to differentiate in-memory databases.
*/
@SuppressFBWarnings(value = "SSD_DO_NOT_USE_INSTANCE_LOCK_ON_SHARED_STATIC_DATA", justification = "https://github.com/spotbugs/spotbugs/issues/1978")
public static int getNextDBCount() {
synchronized (ImportDBDump.class) {
return importdbCount++;
Expand Down

0 comments on commit 1a558a7

Please sign in to comment.