Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10111

data-sly-test: redundant constant value comparison

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: HTL Maven Plugin 2.0.2-1.4.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      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?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              MFlock Marvin Flock
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: