commit | f6c0fe2bd26e60bc0968debf058929ec31a31919 | [log] [tgz] |
---|---|---|
author | Saša Živkov <sasa.zivkov@sap.com> | Thu Jan 07 17:02:38 2021 +0100 |
committer | Saša Živkov <zivkov@gmail.com> | Thu Jan 07 16:28:57 2021 +0000 |
tree | 3d876f2e4315802cf8a5ef4be05a2d0b015f6e76 | |
parent | 52172514c9e47abf7cdbef8dbe97ff3e20b9ffb4 [diff] |
Fix errorprone errors Change-Id: I0abf1b59871b069e0f7ee3ec7f259a286bfc7c69
diff --git a/src/main/java/com/googlesource/gerrit/plugins/serviceuser/GetConfig.java b/src/main/java/com/googlesource/gerrit/plugins/serviceuser/GetConfig.java index f89f047..f31a567 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/serviceuser/GetConfig.java +++ b/src/main/java/com/googlesource/gerrit/plugins/serviceuser/GetConfig.java
@@ -95,7 +95,7 @@ return v ? v : null; } - public class ConfigInfo { + public static class ConfigInfo { public String info; public String onSuccess; public Boolean allowEmail;
diff --git a/src/main/java/com/googlesource/gerrit/plugins/serviceuser/RefUpdateListener.java b/src/main/java/com/googlesource/gerrit/plugins/serviceuser/RefUpdateListener.java index 31d1a56..fef0bc7 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/serviceuser/RefUpdateListener.java +++ b/src/main/java/com/googlesource/gerrit/plugins/serviceuser/RefUpdateListener.java
@@ -26,6 +26,8 @@ import com.google.inject.Inject; import com.google.inject.Singleton; import java.io.IOException; +import java.util.concurrent.Future; + import org.eclipse.jgit.lib.ObjectId; import org.eclipse.jgit.lib.Repository; import org.slf4j.Logger; @@ -90,7 +92,8 @@ } }; if (cfg.getBoolean("createNotesAsync", false)) { - workQueue.getDefaultQueue().submit(task); + @SuppressWarnings("unused") + Future<?> possiblyIgnoredError = workQueue.getDefaultQueue().submit(task); } else { task.run(); }