You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2024/10/02 10:06:00 UTC
(maven-doxia) branch master updated: [DOXIA-745] Incorrect value comparison for string type in AbstractParserTest
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-doxia.git
The following commit(s) were added to refs/heads/master by this push:
new 864eb9c3 [DOXIA-745] Incorrect value comparison for string type in AbstractParserTest
864eb9c3 is described below
commit 864eb9c375b1a624de92a61c8a61cc0eebf450bd
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Wed Oct 2 12:05:50 2024 +0200
[DOXIA-745] Incorrect value comparison for string type in AbstractParserTest
---
.../src/test/java/org/apache/maven/doxia/parser/AbstractParserTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/parser/AbstractParserTest.java b/doxia-core/src/test/java/org/apache/maven/doxia/parser/AbstractParserTest.java
index a33f2972..2fb62d72 100644
--- a/doxia-core/src/test/java/org/apache/maven/doxia/parser/AbstractParserTest.java
+++ b/doxia-core/src/test/java/org/apache/maven/doxia/parser/AbstractParserTest.java
@@ -274,7 +274,7 @@ public abstract class AbstractParserTest extends AbstractModuleTest {
StringBuilder builder = new StringBuilder();
while (it.hasNext()) {
SinkEventElement currentEvent = it.next();
- if (currentEvent.getName() != "text") {
+ if (!"text".equals(currentEvent.getName())) {
it.previous();
break;
}