Update of 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/publisher/cache
In directory james.mmbase.org:/tmp/cvs-serv19472

Modified Files:
        CacheFactory.java CacheFreshTask.java CacheInfo.java 
        DefaultCache.java 
Log Message:
CMSC-899,Check and improve all lists according to guideline,add Javadoc comment


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/publisher/cache
See also: http://www.mmbase.org/jira/browse/CMSC-899


Index: CacheFactory.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/publisher/cache/CacheFactory.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- CacheFactory.java   22 Sep 2008 08:26:50 -0000      1.3
+++ CacheFactory.java   22 Sep 2008 08:53:22 -0000      1.4
@@ -11,8 +11,8 @@
    private static final Log logger = LogFactory.getLog(CacheFactory.class);
    /**
     * get caches'cahe
-    * @param caches
-    * @return 
+    * @param Class
+    * @return ICache
     */
   
    public static ICache getCacheInstance(Class caches) {


Index: CacheFreshTask.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/publisher/cache/CacheFreshTask.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- CacheFreshTask.java 22 Sep 2008 08:26:50 -0000      1.2
+++ CacheFreshTask.java 22 Sep 2008 08:53:22 -0000      1.3
@@ -8,18 +8,13 @@
  */
 public class CacheFreshTask extends TimerTask{
    private DefaultCache cache;
-   /**
-    * FreshTask
-    * @param DefaultCache
-    * @return 
-    */
+   
+   // FreshTask   
       public CacheFreshTask(DefaultCache cache) {
           this.cache = cache;
       }
-      /**
-       * Start Thread
-       * 
-       */
+      
+      // Start Thread
       public void run() {
           synchronized (cache.getDatas()) {
               Iterator<Map.Entry<String, CacheInfo>> iterator


Index: CacheInfo.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/publisher/cache/CacheInfo.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- CacheInfo.java      22 Sep 2008 08:44:06 -0000      1.3
+++ CacheInfo.java      22 Sep 2008 08:53:22 -0000      1.4
@@ -7,33 +7,25 @@
        private Object obj;
        private long secondsRemain;
        private long cacheSeconds;
-       /**
-      * CacheInfoBean
-      * @param bean and time
-      */
+    
+       // construct CacheInfoBean      
        public CacheInfo(Object obj, long cacheSeconds) {
                this.obj = obj;
                this.secondsRemain = cacheSeconds;
                this.cacheSeconds = cacheSeconds;
        }
-       /**
-       * getObjInfoBean
-       * @param null
-       */
+
+       // getObjInfoBean
        public Object getObj() {
                return obj;
        }
-       /**
-       * getSecondsRemain
-       * @param null
-       */
+       
+       //getSecondsRemain
        public long getSecondsRemain() {
                return secondsRemain;
        }
-       /**
-       * getTotalSeconds
-       * @param null
-       */
+
+       // getTotalSeconds
        public long getTotalSeconds() {
                return cacheSeconds;
        }


Index: DefaultCache.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/publisher/cache/DefaultCache.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- DefaultCache.java   22 Sep 2008 08:35:26 -0000      1.4
+++ DefaultCache.java   22 Sep 2008 08:53:22 -0000      1.5
@@ -30,16 +30,14 @@
       this();  
                this.time=time;                 
        }
-       /**
-        * add
-        * @param bean and value
-        */
+       
+       //* add
        public void add(Object key, Object value) {        
                add(key, value,time);           
        }
        /**
         * add
-        * @param bean , value and slidingExpiration
+        * @param Object , Object and long
         */
        public void add(Object key, Object value, long slidingExpiration) {     
   
                if(slidingExpiration!=0){                       
@@ -47,17 +45,15 @@
                        datas.put((String) key, ci);
                }
        }
-       /**
-        * contains
-        * @param key
-        */
+
+       // contains
        public boolean contains(Object key) {      
                if(datas.containsKey(key))return true;
                return false;
        }
        /**
         * get
-        * @param key
+        * @param Object
         */
        public Object get(Object key) {    
                if(datas.containsKey(key)){
@@ -70,7 +66,7 @@
        }
        /**
         * remove
-        * @param key
+        * @param Object
         */
        public void remove(Object key) {           
                datas.remove(key); 
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to