You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2024/10/02 10:06:00 UTC

[jira] [Updated] (DOXIA-745) Incorrect value comparison for string type in AbstractParserTest

     [ https://issues.apache.org/jira/browse/DOXIA-745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov updated DOXIA-745:
---------------------------------
    Summary: Incorrect value comparison for string type in AbstractParserTest  (was: Incorrect value comparison for a string in AbstractParserTest)

> Incorrect value comparison for string type in AbstractParserTest
> ----------------------------------------------------------------
>
>                 Key: DOXIA-745
>                 URL: https://issues.apache.org/jira/browse/DOXIA-745
>             Project: Maven Doxia
>          Issue Type: Test
>          Components: Core
>    Affects Versions: 2.0.0
>            Reporter: Kai Hofmann
>            Assignee: Michael Osipov
>            Priority: Major
>             Fix For: 2.0.1
>
>
> [WARN] C:\Users\PowerStat\Documents\Maven\maven-doxia\doxia-core\src\test\java\org\apache\maven\doxia\parser\AbstractParserTest.java:277:40:
> Der Vergleich von String-Literalen sollte mit equals() erfolgen, nicht mit '!='. [StringLiteralEquality]
> Line
>             if (currentEvent.getName() != "text") {
> should be replaced with:
>             if (!"text".equals(currentEvent.getName())) {



--
This message was sent by Atlassian Jira
(v8.20.10#820010)