Add missing whitespace around keywords, operators and braces

Change-Id: I47923156c25c36d1755765f06e81bb6cdad6fe03
This commit is contained in:
David Pursehouse
2016-04-11 19:43:20 +09:00
parent b50cd86eff
commit c5ccbf196f
86 changed files with 125 additions and 120 deletions

View File

@@ -211,7 +211,9 @@ public class AccountGroupInfoScreen extends AccountGroupScreen {
protected void display(final GroupInfo group, final boolean canModify) {
groupUUIDLabel.setText(group.getGroupUUID().get());
groupNameTxt.setText(group.name());
ownerTxt.setText(group.owner() != null?group.owner():Util.M.deletedReference(group.getOwnerUUID().get()));
ownerTxt.setText(group.owner() != null
? group.owner()
: Util.M.deletedReference(group.getOwnerUUID().get()));
descTxt.setText(group.description());
visibleToAllCheckBox.setValue(group.options().isVisibleToAll());
setMembersTabVisible(AccountGroup.isInternalGroup(group.getGroupUUID()));

View File

@@ -143,7 +143,8 @@ final class WrappableSearcherManager extends ReferenceManager<IndexSearcher> {
@Override
protected IndexSearcher refreshIfNeeded(IndexSearcher referenceToRefresh) throws IOException {
final IndexReader r = referenceToRefresh.getIndexReader();
assert r instanceof DirectoryReader: "searcher's IndexReader should be a DirectoryReader, but got " + r;
assert r instanceof DirectoryReader :
"searcher's IndexReader should be a DirectoryReader, but got " + r;
final IndexReader newReader = DirectoryReader.openIfChanged((DirectoryReader) r);
if (newReader == null) {
return null;
@@ -171,7 +172,8 @@ final class WrappableSearcherManager extends ReferenceManager<IndexSearcher> {
final IndexSearcher searcher = acquire();
try {
final IndexReader r = searcher.getIndexReader();
assert r instanceof DirectoryReader: "searcher's IndexReader should be a DirectoryReader, but got " + r;
assert r instanceof DirectoryReader :
"searcher's IndexReader should be a DirectoryReader, but got " + r;
return ((DirectoryReader) r).isCurrent();
} finally {
release(searcher);

View File

@@ -71,7 +71,8 @@ public class InitPlugins implements InitStep {
@Override
public int compare(PluginData a, PluginData b) {
return a.name.compareTo(b.name);
}});
}
});
}
private final ConsoleUI ui;

View File

@@ -623,7 +623,7 @@ public class PluginLoader implements LifecycleListener {
for (String name : pluginPaths.keys()) {
for (Path pluginPath : pluginPaths.asMap().get(name)) {
if (!pluginPath.getFileName().toString().endsWith(".disabled")) {
assert(!activePlugins.containsKey(name));
assert !activePlugins.containsKey(name);
activePlugins.put(name, pluginPath);
}
}
@@ -656,7 +656,7 @@ public class PluginLoader implements LifecycleListener {
continue;
}
Path winner = Iterables.getFirst(enabled, null);
assert(winner != null);
assert winner != null;
// Disable all loser plugins by renaming their file names to
// "file.disabled" and replace the disabled files in the multimap.
Collection<Path> elementsToRemove = Lists.newArrayList();