Update of /var/cvs/src/org/mmbase/datatypes/processors
In directory james.mmbase.org:/tmp/cvs-serv11608/processors
Modified Files:
Duration.java
Log Message:
just moved some code a bit around to make Duration compile again
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/datatypes/processors
Index: Duration.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/datatypes/processors/Duration.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- Duration.java 8 Aug 2008 18:50:51 -0000 1.3
+++ Duration.java 8 Aug 2008 19:08:46 -0000 1.4
@@ -22,7 +22,7 @@
* Formats a long with hour:minutes:seconds. Ready for setting and getting,
and also casting.
*
* @author Michiel Meeuwissen
- * @version $Id: Duration.java,v 1.3 2008/08/08 18:50:51 michiel Exp $
+ * @version $Id: Duration.java,v 1.4 2008/08/08 19:08:46 michiel Exp $
* @since MMBase-1.9
*/
@@ -40,7 +40,7 @@
}
@Override
- protected Number castString(Object preCast) throws CastException {
+ protected Number castString(Object preCast, Cloud cloud) throws
CastException {
if (preCast instanceof String) {
if (! DURATION_PATTERN.matcher((String) preCast).matches()) {
throw new CastException("Not a duration: " + preCast);
@@ -52,7 +52,7 @@
protected Object preCast(Object value, Cloud cloud, Node node, Field
field) {
if (value == null) return null;
try {
- Object preCast = castString(value);
+ Object preCast = castString(value, cloud);
return preCast;
} catch (CastException ce) {
log.warn(ce);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs