Author: markt
Date: Thu Nov 26 13:51:42 2015
New Revision: 1716654
URL: http://svn.apache.org/viewvc?rev=1716654&view=rev
Log:
Fix an i18n TODO
Modified:
tomcat/trunk/java/org/apache/coyote/LocalStrings.properties
tomcat/trunk/java/org/apache/coyote/Response.java
Modified: tomcat/trunk/java/org/apache/coyote/LocalStrings.properties
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/LocalStrings.properties?rev=1716654&r1=1716653&r2=1716654&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/LocalStrings.properties (original)
+++ tomcat/trunk/java/org/apache/coyote/LocalStrings.properties Thu Nov 26
13:51:42 2015
@@ -46,5 +46,6 @@ request.nullReadListener=The listener pa
request.readListenerSet=The non-blocking read listener has already been set
response.notAsync=It is only valid to switch to non-blocking IO within async
processing or HTTP upgrade processing
+response.notNonBlocking=It is invalid to call isReady() when the response has
not been put into non-blocking mode
response.nullWriteListener=The listener passed to setWriteListener() may not
be null
response.writeListenerSet=The non-blocking write listener has already been set
Modified: tomcat/trunk/java/org/apache/coyote/Response.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/Response.java?rev=1716654&r1=1716653&r2=1716654&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/Response.java (original)
+++ tomcat/trunk/java/org/apache/coyote/Response.java Thu Nov 26 13:51:42 2015
@@ -626,8 +626,7 @@ public final class Response {
public boolean isReady() {
if (listener == null) {
- // TODO i18n
- throw new IllegalStateException("not in non blocking mode.");
+ throw new
IllegalStateException(sm.getString("response.notNonBlocking"));
}
// Assume write is not possible
boolean ready = false;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]