Skip to content

Commit

Permalink
implemented issue JPPF-552
Browse files Browse the repository at this point in the history
  • Loading branch information
lolocohen committed Oct 30, 2018
1 parent ddcdf37 commit 214668e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Binary file modified JPPF/docs/manual/Development.odt
Binary file not shown.
4 changes: 2 additions & 2 deletions client/src/java/org/jppf/client/JPPFJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ public Task<?> add(final Task<?> task) throws JPPFException {

/**
* Add a {@link Runnable} task to this job.
* <p><b>Note:</b> it is recommended to use {@link #add(JPPFRunnableTask)} whenever possible instead. This ensures that the provided {@link Runnable} is {@link java.io.Serializable serializable}.
* @param runnable the runnable task to add to this job.
* @return an instance of {@link Task} that is either the same as the input if the input is a subclass of {@link AbstractTask}, or a wrapper around the input object in the other cases.
* @throws JPPFException if one of the tasks is neither a {@code Task} or a JPPF-annotated class.
* @deprecaed use {@link #add(JPPFRunnableTask)} instead.
* @since 5.0
*/
public Task<?> add(final Runnable runnable) throws JPPFException {
Expand All @@ -165,10 +165,10 @@ public Task<?> add(final JPPFRunnableTask runnable) throws JPPFException {

/**
* Add a {@link Callable} task to this job.
* <p><b>Note:</b> it is recommended to use {@link #add(JPPFCallable)} whenever possible instead. This ensures that the provided {@link Callable} is {@link java.io.Serializable serializable}.
* @param callable the callable task to add to this job.
* @return an instance of {@link Task} that is either the same as the input if the input is a subclass of {@link AbstractTask}, or a wrapper around the input object in the other cases.
* @throws JPPFException if one of the tasks is neither a {@code Task} or a JPPF-annotated class.
* @deprecaed use {@link #add(JPPFCallable)} instead.
* @since 5.0
*/
public Task<?> add(final Callable<?> callable) throws JPPFException {
Expand Down
2 changes: 1 addition & 1 deletion common/src/java/org/jppf/node/protocol/JPPFTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* {@link AbstractTask} should always be used instead as a superclass.
* @author Laurent Cohen
*/
public abstract class JPPFTask extends AbstractTask<Object> {
public class JPPFTask extends AbstractTask<Object> {
/**
* Explicit serialVersionUID.
*/
Expand Down
1 change: 1 addition & 0 deletions common/src/java/org/jppf/utils/JPPFCallable.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@
* @param <V> the type of object returned by the {@link #call() call()} method.
* @author Laurent Cohen
*/
@FunctionalInterface
public interface JPPFCallable<V> extends Callable<V>, Serializable {
}

0 comments on commit 214668e

Please sign in to comment.