Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-01-05 19:29:31 +0000
committerAlexander Kurtakov2018-01-05 20:19:41 +0000
commit263b7269cf0d9f9b264796215a0ceb493b19d4cb (patch)
treed0af6a399469f028e2b1aadffd12aaa53708b7de /bundles/org.eclipse.equinox.p2.ui
parent27b96a6d0aa8e0433fef6f06a7ff0c2cdb6666dc (diff)
downloadrt.equinox.p2-263b7269cf0d9f9b264796215a0ceb493b19d4cb.tar.gz
rt.equinox.p2-263b7269cf0d9f9b264796215a0ceb493b19d4cb.tar.xz
rt.equinox.p2-263b7269cf0d9f9b264796215a0ceb493b19d4cb.zip
Change-Id: I516845d1732386a34d3078aa111cbd5b306b76c5 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/misc/StringMatcher.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/misc/StringMatcher.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/misc/StringMatcher.java
index 11bd6c9a2..1f9161fce 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/misc/StringMatcher.java
+++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/misc/StringMatcher.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2016 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -223,10 +223,9 @@ public class StringMatcher {
if (!fHasLeadingStar) {
if (!regExpRegionMatches(text, start, current, 0, segLength)) {
return false;
- } else {
- ++i;
- tCurPos = tCurPos + segLength;
}
+ ++i;
+ tCurPos = tCurPos + segLength;
}
if ((fSegments.length == 1) && (!fHasLeadingStar) && (!fHasTrailingStar)) {
// only one segment to match, no wildcards specified

Back to the top