[jbpm-commits] JBoss JBPM SVN: r6338 - in jbpm4/trunk/modules: examples/src/test/java/org/jbpm/examples/timer/businesstime and 2 other directories.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu May 13 22:07:22 EDT 2010
Author: rebody
Date: 2010-05-13 22:07:20 -0400 (Thu, 13 May 2010)
New Revision: 6338
Modified:
jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/job/Job.java
jbpm4/trunk/modules/examples/src/test/java/org/jbpm/examples/timer/businesstime/TimerBusinessTimeTest.java
jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/job/JobImpl.java
jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/xml/Parser.java
Log:
add annotation for deprecated method, and let TimerBusinessTimeTest not use deprecated method getDueDate().
Modified: jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/job/Job.java
===================================================================
--- jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/job/Job.java 2010-05-14 01:47:57 UTC (rev 6337)
+++ jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/job/Job.java 2010-05-14 02:07:20 UTC (rev 6338)
@@ -40,6 +40,7 @@
/** in case this is a timer, it is the time that the timer should fire, in case this
* is a message, it is null.
* @deprecated */
+ @Deprecated
Date getDueDate();
/** in case this is a timer, it is the time that the timer should fire, in case this
Modified: jbpm4/trunk/modules/examples/src/test/java/org/jbpm/examples/timer/businesstime/TimerBusinessTimeTest.java
===================================================================
--- jbpm4/trunk/modules/examples/src/test/java/org/jbpm/examples/timer/businesstime/TimerBusinessTimeTest.java 2010-05-14 01:47:57 UTC (rev 6337)
+++ jbpm4/trunk/modules/examples/src/test/java/org/jbpm/examples/timer/businesstime/TimerBusinessTimeTest.java 2010-05-14 02:07:20 UTC (rev 6338)
@@ -58,7 +58,7 @@
.processInstanceId(processInstance.getId())
.uniqueResult();
- long difference = job.getDueDate().getTime() - now;
+ long difference = job.getDuedate().getTime() - now;
// we do not know when this test will be run. So the exact actual duedate of the timer
// can not be calculated easily. But we do know for sure that each working day only
Modified: jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/job/JobImpl.java
===================================================================
--- jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/job/JobImpl.java 2010-05-14 01:47:57 UTC (rev 6337)
+++ jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/job/JobImpl.java 2010-05-14 02:07:20 UTC (rev 6338)
@@ -149,6 +149,7 @@
return lockOwner;
}
/** @deprecated */
+ @Deprecated
public Date getDueDate() {
return getDuedate();
}
Modified: jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/xml/Parser.java
===================================================================
--- jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/xml/Parser.java 2010-05-14 01:47:57 UTC (rev 6337)
+++ jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/xml/Parser.java 2010-05-14 02:07:20 UTC (rev 6338)
@@ -272,6 +272,7 @@
/** creates a new Parser with bindings and entities that can be maintained statically
* in specialized subclasses of Parser.
* @deprecated entities should be replaced by {@link #setSchemaResources(List)} */
+ @Deprecated
public Parser(Bindings bindings, Map<String, Entity> entities) {
initialize();
this.bindings = bindings;
More information about the jbpm-commits
mailing list