tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1360942 - in /tomcat/trunk/java/org/apache/catalina/core: StandardWrapper.java StandardWrapperValve.java
Date Thu, 12 Jul 2012 21:06:42 GMT
Author: markt
Date: Thu Jul 12 21:06:42 2012
New Revision: 1360942

URL: http://svn.apache.org/viewvc?rev=1360942&view=rev
Log:
Deprecate unused setters

Modified:
    tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java
    tomcat/trunk/java/org/apache/catalina/core/StandardWrapperValve.java

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java?rev=1360942&r1=1360941&r2=1360942&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java Thu Jul 12 21:06:42 2012
@@ -1585,7 +1585,7 @@ public class StandardWrapper extends Con
      */
     @Override
     public void incrementErrorCount(){
-        swValve.setErrorCount(swValve.getErrorCount() + 1);
+        swValve.incrementErrorCount();
     }
 
     public long getLoadTime() {

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardWrapperValve.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardWrapperValve.java?rev=1360942&r1=1360941&r2=1360942&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardWrapperValve.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardWrapperValve.java Thu Jul 12 21:06:42
2012
@@ -522,6 +522,10 @@ final class StandardWrapperValve
         return processingTime;
     }
 
+    /**
+     * Deprecated   unused
+     */
+    @Deprecated
     public void setProcessingTime(long processingTime) {
         this.processingTime = processingTime;
     }
@@ -530,6 +534,10 @@ final class StandardWrapperValve
         return maxTime;
     }
 
+    /**
+     * Deprecated   unused
+     */
+    @Deprecated
     public void setMaxTime(long maxTime) {
         this.maxTime = maxTime;
     }
@@ -538,6 +546,10 @@ final class StandardWrapperValve
         return minTime;
     }
 
+    /**
+     * Deprecated   unused
+     */
+    @Deprecated
     public void setMinTime(long minTime) {
         this.minTime = minTime;
     }
@@ -546,6 +558,10 @@ final class StandardWrapperValve
         return requestCount;
     }
 
+    /**
+     * Deprecated   unused
+     */
+    @Deprecated
     public void setRequestCount(int requestCount) {
         this.requestCount = requestCount;
     }
@@ -554,6 +570,14 @@ final class StandardWrapperValve
         return errorCount;
     }
 
+    public void incrementErrorCount() {
+        errorCount++;
+    }
+
+    /**
+     * Deprecated   unused
+     */
+    @Deprecated
     public void setErrorCount(int errorCount) {
         this.errorCount = errorCount;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message