https://issues.apache.org/bugzilla/show_bug.cgi?id=49953
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 10 Jan 2011 16:38:08 +0000 (16:38 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 10 Jan 2011 16:38:08 +0000 (16:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1057267 13f79535-47bb-0310-9956-ffa450edef68

modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/interceptor/StatementCache.java
modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/jmx/ConnectionPool.java

index 27370d0..533211c 100644 (file)
@@ -63,6 +63,7 @@ public class StatementCache extends StatementDecoratorInterceptor {
         return cacheSize;
     }
 
+    @Override
     public void setProperties(Map<String, InterceptorProperty> properties) {
         super.setProperties(properties);
         InterceptorProperty p = properties.get("prepared");
@@ -90,11 +91,13 @@ public class StatementCache extends StatementDecoratorInterceptor {
     
     private AtomicInteger cacheSize;
 
+    @Override
     public void poolStarted(ConnectionPool pool) {
         cacheSizeMap.putIfAbsent(pool, new AtomicInteger(0));
         super.poolStarted(pool);
     }
     
+    @Override
     public void poolClosed(ConnectionPool pool) {
         cacheSizeMap.remove(pool);
         super.poolClosed(pool);
@@ -156,7 +159,7 @@ public class StatementCache extends StatementDecoratorInterceptor {
         }
     }
 
-
+    @Override
     public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
         boolean process = process(this.types, method, false);
         if (process && args.length>0 && args[0] instanceof String) {
index 1f5d9c8..99b55b6 100644 (file)
@@ -75,7 +75,7 @@ public class ConnectionPool extends NotificationBroadcasterSupport implements Co
     public static final String FAILED_QUERY_NOTIFICATION = "FAILED QUERY";
     public static final String SUSPECT_ABANDONED_NOTIFICATION = "SUSPECT CONNETION ABANDONED";
 
-
+    @Override
     public MBeanNotificationInfo[] getNotificationInfo() { 
         MBeanNotificationInfo[] pres = super.getNotificationInfo();
         MBeanNotificationInfo[] loc = getDefaultNotificationInfo();