svn commit: r922757 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/TTLObject.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r922757 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/TTLObject.java

doogie-3
Author: doogie
Date: Sun Mar 14 03:55:52 2010
New Revision: 922757

URL: http://svn.apache.org/viewvc?rev=922757&view=rev
Log:
Since getTTL throws ConfigurationException, which is now a
RuntimeException, there's no need to declare it in the throws clause.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/TTLObject.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/TTLObject.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/TTLObject.java?rev=922757&r1=922756&r2=922757&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/TTLObject.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/TTLObject.java Sun Mar 14 03:55:52 2010
@@ -109,7 +109,7 @@ public abstract class TTLObject<T> imple
             return ttlObject.newValueAndState(getValue(), future, nextState, serial, null, null);
         }
 
-        protected ValueAndState<T> valid(T value) throws ObjectException {
+        protected ValueAndState<T> valid(T value) {
             return ttlObject.newValueAndState(value, null, State.VALID, serialAccessor.incrementAndGet(ttlObject), null, new Pulse(ttlObject));
         }
 
@@ -125,7 +125,7 @@ public abstract class TTLObject<T> imple
             });
         }
 
-        protected ValueAndState<T> error(Throwable t) throws ObjectException {
+        protected ValueAndState<T> error(Throwable t) {
             return ttlObject.newValueAndState(null, null, state != State.GENERATING_INITIAL ? State.ERROR : State.ERROR_INITIAL, serialAccessor.incrementAndGet(ttlObject), t, new Pulse(ttlObject));
         }
     }
@@ -150,7 +150,7 @@ public abstract class TTLObject<T> imple
     protected final static class Pulse extends ExecutionPool.Pulse {
         protected final TTLObject<?> ttlObject;
 
-        protected Pulse(TTLObject<?> ttlObject) throws ObjectException {
+        protected Pulse(TTLObject<?> ttlObject) {
             super(ttlObject.getTTL());
             this.ttlObject = ttlObject;
         }
@@ -207,7 +207,7 @@ public abstract class TTLObject<T> imple
         return getContainer().serial != serial;
     }
 
-    protected final void setObject(T newObject) throws ObjectException {
+    protected final void setObject(T newObject) {
         ValueAndState<T> container, nextContainer;
         State nextState;
         do {