This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jelly.git


The following commit(s) were added to refs/heads/master by this push:
     new af27c48f Use Java 5's String#contains(CharSequence)
af27c48f is described below

commit af27c48fab8aec6d325ca155eee1224fd9c2ae7d
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Mar 22 09:41:33 2024 -0400

    Use Java 5's String#contains(CharSequence)
---
 core/src/test/java/org/apache/commons/jelly/core/TestUnknownTags.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/core/src/test/java/org/apache/commons/jelly/core/TestUnknownTags.java 
b/core/src/test/java/org/apache/commons/jelly/core/TestUnknownTags.java
index f4bd6869..dc3c63a1 100644
--- a/core/src/test/java/org/apache/commons/jelly/core/TestUnknownTags.java
+++ b/core/src/test/java/org/apache/commons/jelly/core/TestUnknownTags.java
@@ -55,7 +55,7 @@ public class TestUnknownTags extends BaseJellyTest {
                }catch (JellyException e) {
                        if (e.getCause() instanceof SAXParseException) {
                                Throwable cause = e.getCause();
-                               if (cause.getMessage().indexOf("Unrecognized 
tag called tag-that-does-not-exist in TagLibrary jelly:test") > -1)
+                               if (cause.getMessage().contains("Unrecognized 
tag called tag-that-does-not-exist in TagLibrary jelly:test"))
                                        return;
                        }
                        throw e;

Reply via email to