Run formatter on classes
Change-Id: I7bbea82111cbea0f146e31fe575f24bf9ba6207e
diff --git a/src/main/java/com/googlesource/gerrit/plugins/events/StreamEvents.java b/src/main/java/com/googlesource/gerrit/plugins/events/StreamEvents.java
index c22cb4b..d74144a 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/events/StreamEvents.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/events/StreamEvents.java
@@ -50,10 +50,9 @@
protected static final JsonParser parser = new JsonParser();
@Option(
- name = "--resume-after",
- metaVar = "RESUME_AFTER",
- usage = "event id after which to resume playing events on connection"
- )
+ name = "--resume-after",
+ metaVar = "RESUME_AFTER",
+ usage = "event id after which to resume playing events on connection")
protected void parseId(String arg) throws IOException {
resume = 0;
if ("0".equals(arg)) {
@@ -104,8 +103,7 @@
@Override
public void start(ChannelSession channel, Environment env) throws IOException {
- try (DynamicOptions pluginOptions =
- new DynamicOptions(injector, dynamicBeans)) {
+ try (DynamicOptions pluginOptions = new DynamicOptions(injector, dynamicBeans)) {
try {
parseCommandLine(pluginOptions);
} catch (UnloggedFailure e) {
@@ -191,7 +189,8 @@
protected void subscribe() {
subscription =
- subscriptionListeners.add(pluginName,
+ subscriptionListeners.add(
+ pluginName,
new StreamEventListener() {
@Override
public void onStreamEventUpdate() {
diff --git a/src/main/java/com/googlesource/gerrit/plugins/events/TrimCommand.java b/src/main/java/com/googlesource/gerrit/plugins/events/TrimCommand.java
index 79a08c8..7eb562e 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/events/TrimCommand.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/events/TrimCommand.java
@@ -23,15 +23,13 @@
@RequiresCapability(GlobalCapability.ADMINISTRATE_SERVER)
@CommandMetaData(
- name = "trim",
- description = "Trim old events up to and including trim-id from EventStore"
-)
+ name = "trim",
+ description = "Trim old events up to and including trim-id from EventStore")
final class TrimCommand extends SshCommand {
@Option(
- name = "--trim-id",
- metaVar = "TRIM_ID",
- usage = "Trim old events up to and including trim-id from EventStore"
- )
+ name = "--trim-id",
+ metaVar = "TRIM_ID",
+ usage = "Trim old events up to and including trim-id from EventStore")
protected long trim = -1;
@Option(name = "--size", metaVar = "SIZE", usage = "Trim and keep SIZE events")
diff --git a/src/main/java/com/googlesource/gerrit/plugins/events/fsstore/Nfs.java b/src/main/java/com/googlesource/gerrit/plugins/events/fsstore/Nfs.java
index 1454fbf..3573369 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/events/fsstore/Nfs.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/events/fsstore/Nfs.java
@@ -22,12 +22,11 @@
/** Some NFS utilities */
public class Nfs {
/**
- * Determine if a throwable or a cause in its causal chain is a Stale NFS
- * File Handle
+ * Determine if a throwable or a cause in its causal chain is a Stale NFS File Handle
*
* @param throwable
- * @return a boolean true if the throwable or a cause in its causal chain is
- * a Stale NFS File Handle
+ * @return a boolean true if the throwable or a cause in its causal chain is a Stale NFS File
+ * Handle
*/
public static boolean isStaleFileHandleInCausalChain(Throwable throwable) {
while (throwable != null) {