Adjust line wrapping to silence Checkstyle warnings

Change-Id: Ieac590eff5fd9964dc531e31a2f6e1110b4a1afb
This commit is contained in:
David Pursehouse
2015-10-22 14:44:59 +09:00
parent 1e8cceac2f
commit ae849a6da3
9 changed files with 24 additions and 12 deletions

View File

@@ -36,6 +36,7 @@ public class MyGroupsScreen extends SettingsScreen {
protected void preDisplay(GroupList result) { protected void preDisplay(GroupList result) {
groups.display(result); groups.display(result);
groups.finishDisplay(); groups.finishDisplay();
}}); }
});
} }
} }

View File

@@ -163,7 +163,8 @@ public class AccessSectionEditor extends Composite implements
@Override @Override
public void execute() { public void execute() {
name.setFocus(true); name.setFocus(true);
}}); }
});
} }
void enableEditing() { void enableEditing() {

View File

@@ -158,7 +158,8 @@ class ReplyBox extends Composite {
@Override @Override
public void execute() { public void execute() {
message.setFocus(true); message.setFocus(true);
}}); }
});
Scheduler.get().scheduleFixedDelay(new RepeatingCommand() { Scheduler.get().scheduleFixedDelay(new RepeatingCommand() {
@Override @Override
public boolean execute() { public boolean execute() {
@@ -167,7 +168,8 @@ class ReplyBox extends Composite {
message.setCursorPos(t.length()); message.setCursorPos(t.length());
} }
return false; return false;
}}, 0); }
}, 0);
} }
@UiHandler("post") @UiHandler("post")

View File

@@ -145,7 +145,8 @@ public abstract class SiteProgram extends AbstractProgram {
@Override @Override
protected void configure() { protected void configure() {
bind(DataSourceType.class).toInstance(dst); bind(DataSourceType.class).toInstance(dst);
}}); }
});
modules.add(new DatabaseModule()); modules.add(new DatabaseModule());
modules.add(new SchemaModule()); modules.add(new SchemaModule());
modules.add(new LocalDiskRepositoryManager.Module()); modules.add(new LocalDiskRepositoryManager.Module());

View File

@@ -94,9 +94,12 @@ public class GetSummary implements RestReadView<ConfigResource> {
int tasksSleeping = 0; int tasksSleeping = 0;
for (Task<?> task : pending) { for (Task<?> task : pending) {
switch (task.getState()) { switch (task.getState()) {
case RUNNING: tasksRunning++; break; case RUNNING: tasksRunning++;
case READY: tasksReady++; break; break;
case SLEEPING: tasksSleeping++; break; case READY: tasksReady++;
break;
case SLEEPING: tasksSleeping++;
break;
case CANCELLED: case CANCELLED:
case DONE: case DONE:
case OTHER: case OTHER:

View File

@@ -106,7 +106,8 @@ public class GetReflog implements RestReadView<BranchResource> {
@Override @Override
public ReflogEntryInfo apply(ReflogEntry e) { public ReflogEntryInfo apply(ReflogEntry e) {
return new ReflogEntryInfo(e); return new ReflogEntryInfo(e);
}}); }
});
} }
} }

View File

@@ -401,7 +401,8 @@ public class CommentsTest {
@Override @Override
public ResultSet<PatchLineComment> answer() throws Throwable { public ResultSet<PatchLineComment> answer() throws Throwable {
return new ListResultSet<>(Lists.newArrayList(comments)); return new ListResultSet<>(Lists.newArrayList(comments));
}}; }
};
} }
private void assertListComments(RevisionResource res, private void assertListComments(RevisionResource res,

View File

@@ -712,7 +712,8 @@ public class SshDaemon extends SshServer implements SshInfo, LifecycleListener {
@Override @Override
public FileSystemView getNormalizedView() { public FileSystemView getNormalizedView() {
return this; return this;
}}; }
};
} }
}); });
} }

View File

@@ -75,7 +75,8 @@ final class CreateAccountCommand extends SshCommand {
@Override @Override
public String apply(AccountGroup.Id id) { public String apply(AccountGroup.Id id) {
return id.toString(); return id.toString();
}}); }
});
try { try {
createAccountFactory.create(username).apply(TopLevelResource.INSTANCE, input); createAccountFactory.create(username).apply(TopLevelResource.INSTANCE, input);
} catch (RestApiException e) { } catch (RestApiException e) {