cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r563009 - /cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/components/ServletSource.java
Date Mon, 06 Aug 2007 02:41:49 GMT
Author: vgritsenko
Date: Sun Aug  5 19:41:48 2007
New Revision: 563009

URL: http://svn.apache.org/viewvc?view=rev&rev=563009
Log:
static class;
literal constant usage

Modified:
    cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/components/ServletSource.java

Modified: cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/components/ServletSource.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/components/ServletSource.java?view=diff&rev=563009&r1=563008&r2=563009
==============================================================================
--- cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/components/ServletSource.java
(original)
+++ cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/components/ServletSource.java
Sun Aug  5 19:41:48 2007
@@ -208,7 +208,7 @@
         return ServletSource.class.getName() + "$" + getURI();
     }
 
-    private final class ServletValidity implements SourceValidity {
+    private static final class ServletValidity implements SourceValidity {
 
         /**
          *
@@ -242,10 +242,12 @@
                 switch (newServletValidity.getResponseCode()) {
                     case HttpServletResponse.SC_NOT_MODIFIED:
                         return SourceValidity.VALID;
+
                     case HttpServletResponse.SC_OK:
                         return SourceValidity.INVALID;
+
                     default:
-                        return 0;
+                        return SourceValidity.UNKNOWN;
                 }
             }
             return SourceValidity.UNKNOWN;



Mime
View raw message