Add missing whitespace around keywords, operators and braces
Change-Id: I47923156c25c36d1755765f06e81bb6cdad6fe03
This commit is contained in:
@@ -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()));
|
||||
|
@@ -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);
|
||||
|
@@ -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;
|
||||
|
@@ -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();
|
||||
|
Submodule plugins/replication updated: 80926aeea6...de1e8f7604
Submodule plugins/reviewnotes updated: 0ea78c9ca7...c167df08a8
Reference in New Issue
Block a user