Merge changes If1e20e65,I35171b2d,Id2fa80ab
* changes:
Only bind index ssh commands when the index type is Lucene
WebAppInitializer: Include invalid index.type in exception message
DefaultCommandModule: Remove unnecessary 'final' modifiers
diff --git a/gerrit-plugin-gwtui/src/main/java/com/google/gerrit/plugin/client/ui/GroupSuggestOracle.java b/gerrit-plugin-gwtui/src/main/java/com/google/gerrit/plugin/client/ui/GroupSuggestOracle.java
index d2df83a..528b07a 100644
--- a/gerrit-plugin-gwtui/src/main/java/com/google/gerrit/plugin/client/ui/GroupSuggestOracle.java
+++ b/gerrit-plugin-gwtui/src/main/java/com/google/gerrit/plugin/client/ui/GroupSuggestOracle.java
@@ -52,9 +52,9 @@
if (req.getLimit() > 0) {
rest.addParameter("n", req.getLimit());
}
- rest.get(new AsyncCallback<NativeMap<GroupInfo>>() {
+ rest.get(new AsyncCallback<NativeMap<JavaScriptObject>>() {
@Override
- public void onSuccess(NativeMap<GroupInfo> result) {
+ public void onSuccess(NativeMap<JavaScriptObject> result) {
List<String> keys = result.sortedKeys();
List<Suggestion> suggestions = new ArrayList<>(keys.size());
for (String g : keys) {
@@ -74,8 +74,4 @@
List<Suggestion> empty = Collections.emptyList();
done.onSuggestionsReady(req, new Response(empty));
}
-
- private static class GroupInfo extends JavaScriptObject {
- // Dummy class, does nothing.
- }
}