Wicket
  1. Wicket
  2. WICKET-3429

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

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Trivial 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"))

        Activity

        Martin Grigorov made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Martin Grigorov [ mgrigorov ]
        Fix Version/s 1.5-RC2 [ 12316059 ]
        Resolution Fixed [ 1 ]
        Richard Emberson created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development