< prev index next >
src/java.xml/share/classes/javax/xml/catalog/GroupEntry.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -370,12 +370,14 @@
if (grpEntry.isInstantMatch) {
//use it if there is a match of the uri type
return match;
} else if (grpEntry.longestRewriteMatch > longestRewriteMatch) {
rewriteMatch = match;
+ longestRewriteMatch = grpEntry.longestRewriteMatch;
} else if (grpEntry.longestSuffixMatch > longestSuffixMatch) {
suffixMatch = match;
+ longestSuffixMatch = grpEntry.longestSuffixMatch;
}
break;
}
}
< prev index next >