From 19f771e27d951e70f878f5ffd5336259005ab691 Mon Sep 17 00:00:00 2001 From: Edwin Kempin Date: Wed, 21 Nov 2012 09:28:11 +0100 Subject: [PATCH] Revert "Fix build error in SearchSuggestOracle" This reverts commit b97dd4f482be37ca573829078a61ba94f04d3329, which reverted commit 4546160a6578c11f3a8bc5f56b98dba0de43eef6 (Fix highlighting in search suggestions). Change-Id: I4002a5e8b918ea2e941cf0467f36aa78e0a2414b Signed-off-by: Edwin Kempin --- .../java/com/google/gerrit/client/SearchSuggestOracle.java | 5 +++++ pom.xml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/SearchSuggestOracle.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/SearchSuggestOracle.java index e1a2f7a185..30153ae8cc 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/SearchSuggestOracle.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/SearchSuggestOracle.java @@ -144,6 +144,11 @@ public class SearchSuggestOracle extends HighlightSuggestOracle { return query.substring(lastSpace + 1); } + @Override + protected String getQueryPattern(final String query) { + return super.getQueryPattern(getLastWord(query)); + } + @Override protected boolean isHTML() { return true; diff --git a/pom.xml b/pom.xml index 1af26700b8..58c6278268 100644 --- a/pom.xml +++ b/pom.xml @@ -49,7 +49,7 @@ limitations under the License. 2.1.0.201209190230-r 1.5 1.3 - 1.2.6 + 1.2.7 2.5.0 140 1.6.1