View | Details | Raw Unified | Return to bug 49550
Collapse All | Expand All

(-)java/org/apache/catalina/connector/Response.java (+2 lines)
Lines 746-751 Link Here
746
     *
746
     *
747
     * @param type The new content type
747
     * @param type The new content type
748
     */
748
     */
749
    @SuppressWarnings("deprecation") // isSpace (deprecated) cannot be replaced by isWhiteSpace
749
    public void setContentType(String type) {
750
    public void setContentType(String type) {
750
751
751
        if (isCommitted())
752
        if (isCommitted())
Lines 773-778 Link Here
773
            if (index != -1) {
774
            if (index != -1) {
774
                int len = type.length();
775
                int len = type.length();
775
                index++;
776
                index++;
777
                // N.B. isSpace (deprecated) cannot be replaced by isWhiteSpace
776
                while (index < len && Character.isSpace(type.charAt(index))) {
778
                while (index < len && Character.isSpace(type.charAt(index))) {
777
                    index++;
779
                    index++;
778
                }
780
                }

Return to bug 49550