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) {
|
protected void display(final GroupInfo group, final boolean canModify) {
|
||||||
groupUUIDLabel.setText(group.getGroupUUID().get());
|
groupUUIDLabel.setText(group.getGroupUUID().get());
|
||||||
groupNameTxt.setText(group.name());
|
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());
|
descTxt.setText(group.description());
|
||||||
visibleToAllCheckBox.setValue(group.options().isVisibleToAll());
|
visibleToAllCheckBox.setValue(group.options().isVisibleToAll());
|
||||||
setMembersTabVisible(AccountGroup.isInternalGroup(group.getGroupUUID()));
|
setMembersTabVisible(AccountGroup.isInternalGroup(group.getGroupUUID()));
|
||||||
|
@@ -143,7 +143,8 @@ final class WrappableSearcherManager extends ReferenceManager<IndexSearcher> {
|
|||||||
@Override
|
@Override
|
||||||
protected IndexSearcher refreshIfNeeded(IndexSearcher referenceToRefresh) throws IOException {
|
protected IndexSearcher refreshIfNeeded(IndexSearcher referenceToRefresh) throws IOException {
|
||||||
final IndexReader r = referenceToRefresh.getIndexReader();
|
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);
|
final IndexReader newReader = DirectoryReader.openIfChanged((DirectoryReader) r);
|
||||||
if (newReader == null) {
|
if (newReader == null) {
|
||||||
return null;
|
return null;
|
||||||
@@ -171,7 +172,8 @@ final class WrappableSearcherManager extends ReferenceManager<IndexSearcher> {
|
|||||||
final IndexSearcher searcher = acquire();
|
final IndexSearcher searcher = acquire();
|
||||||
try {
|
try {
|
||||||
final IndexReader r = searcher.getIndexReader();
|
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();
|
return ((DirectoryReader) r).isCurrent();
|
||||||
} finally {
|
} finally {
|
||||||
release(searcher);
|
release(searcher);
|
||||||
|
@@ -71,7 +71,8 @@ public class InitPlugins implements InitStep {
|
|||||||
@Override
|
@Override
|
||||||
public int compare(PluginData a, PluginData b) {
|
public int compare(PluginData a, PluginData b) {
|
||||||
return a.name.compareTo(b.name);
|
return a.name.compareTo(b.name);
|
||||||
}});
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private final ConsoleUI ui;
|
private final ConsoleUI ui;
|
||||||
|
@@ -623,7 +623,7 @@ public class PluginLoader implements LifecycleListener {
|
|||||||
for (String name : pluginPaths.keys()) {
|
for (String name : pluginPaths.keys()) {
|
||||||
for (Path pluginPath : pluginPaths.asMap().get(name)) {
|
for (Path pluginPath : pluginPaths.asMap().get(name)) {
|
||||||
if (!pluginPath.getFileName().toString().endsWith(".disabled")) {
|
if (!pluginPath.getFileName().toString().endsWith(".disabled")) {
|
||||||
assert(!activePlugins.containsKey(name));
|
assert !activePlugins.containsKey(name);
|
||||||
activePlugins.put(name, pluginPath);
|
activePlugins.put(name, pluginPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -656,7 +656,7 @@ public class PluginLoader implements LifecycleListener {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Path winner = Iterables.getFirst(enabled, null);
|
Path winner = Iterables.getFirst(enabled, null);
|
||||||
assert(winner != null);
|
assert winner != null;
|
||||||
// Disable all loser plugins by renaming their file names to
|
// Disable all loser plugins by renaming their file names to
|
||||||
// "file.disabled" and replace the disabled files in the multimap.
|
// "file.disabled" and replace the disabled files in the multimap.
|
||||||
Collection<Path> elementsToRemove = Lists.newArrayList();
|
Collection<Path> elementsToRemove = Lists.newArrayList();
|
||||||
|
Submodule plugins/replication updated: 80926aeea6...de1e8f7604
Submodule plugins/reviewnotes updated: 0ea78c9ca7...c167df08a8
Reference in New Issue
Block a user