[ 
https://issues.apache.org/jira/browse/SLING-10111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17576575#comment-17576575
 ] 

Simon Tunnat commented on SLING-10111:
--------------------------------------

Did you find some solution / inside into what that message means?


I get the same issue now and could not find a solution to it.

> data-sly-test: redundant constant value comparison
> --------------------------------------------------
>
>                 Key: SLING-10111
>                 URL: https://issues.apache.org/jira/browse/SLING-10111
>             Project: Sling
>          Issue Type: Bug
>          Components: Maven Plugins and Archetypes
>    Affects Versions: HTL Maven Plugin 2.0.2-1.4.0
>            Reporter: Marvin Flock
>            Priority: Major
>
> The HTL-Maven-Plugin (when set with _failOnWarnings = true_) is failing with 
> warnings like these:
> _data-sly-test: redundant constant value comparison_
> Problem is, this message is not giving a lot of insight, why it is failing.
> e.g.:
> I have a snippet like this:
> _data-sly-test=${object.property}_ 
> It fails with the mentioned warning and I am fishing in the dark.
> It is a valid test, it checks _object.property_ for _null_, right?
> Is it maybe a false positive?



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

Reply via email to