ASF Bugzilla – Attachment 25704 Details for
Bug 49550
[PATCH] Response class fix isSpace (deprecated) => isWhiteSpace
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Document why still using deprecated method
response.patch (text/plain), 853 bytes, created by
Sebb
on 2010-07-05 09:11:09 UTC
(
hide
)
Description:
Document why still using deprecated method
Filename:
MIME Type:
Creator:
Sebb
Created:
2010-07-05 09:11:09 UTC
Size:
853 bytes
patch
obsolete
>Index: java/org/apache/catalina/connector/Response.java >=================================================================== >--- java/org/apache/catalina/connector/Response.java (revision 952479) >+++ java/org/apache/catalina/connector/Response.java (working copy) >@@ -746,6 +746,7 @@ > * > * @param type The new content type > */ >+ @SuppressWarnings("deprecation") // isSpace (deprecated) cannot be replaced by isWhiteSpace > public void setContentType(String type) { > > if (isCommitted()) >@@ -773,6 +774,7 @@ > if (index != -1) { > int len = type.length(); > index++; >+ // N.B. isSpace (deprecated) cannot be replaced by isWhiteSpace > while (index < len && Character.isSpace(type.charAt(index))) { > index++; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 49550
:
25703
| 25704