Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3429

org/apache/wicket/util/resource/UrlResourceStream.java uses indexOf

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC1
    • Fix Version/s: 1.5-RC2
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      all

      Description

      I note that in many places String "indexOf" ==/!= -1 was replaced with "contains" in the RC1
      release. If this is a suggested usage pattern, then change:
      streamData.contentType.indexOf("unknown") != -1)
      to:
      streamData.contentType.contains("unknown"))

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Grigorov
              Reporter:
              emberson Richard Emberson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: