OSDN Git Service

Workerメソッド名変更
authoryukihane <yukihane.feather@gmail.com>
Mon, 29 Aug 2011 02:53:11 +0000 (11:53 +0900)
committeryukihane <yukihane.feather@gmail.com>
Mon, 29 Aug 2011 02:53:11 +0000 (11:53 +0900)
frontend/src/saccubus/worker/Worker.java
frontend/src/saccubus/worker/convert/Convert.java
frontend/src/saccubus/worker/download/Download.java

index faf54c7..975eb18 100644 (file)
@@ -26,7 +26,7 @@ public abstract class Worker<T, V> implements Callable<T> {
     @Override
     public final T call() throws Exception {
         try {
-            final T result = doInBackground();
+            final T result = work();
             if (listener != null) {
                 listener.done(result);
             }
@@ -44,7 +44,7 @@ public abstract class Worker<T, V> implements Callable<T> {
         }
     }
 
-    protected abstract T doInBackground() throws Exception;
+    protected abstract T work() throws Exception;
 
     public final int getId() {
         return id;
index 01f4a58..1c908bc 100644 (file)
@@ -60,7 +60,7 @@ public class Convert extends Worker<ConvertResult, ConvertProgress> {
     }
 
     @Override
-    protected ConvertResult doInBackground() throws Exception {
+    protected ConvertResult work() throws Exception {
         if (!profile.isConvert()) {
             return new ConvertResult(true, "");
         }
index 5c91d73..6e61373 100644 (file)
@@ -78,7 +78,7 @@ public class Download extends Worker<DownloadResult, DownloadProgress> {
 //        }
 //    }
     @Override
-    public DownloadResult doInBackground() throws Exception {
+    public DownloadResult work() throws Exception {
 
         publish(new DownloadProgress(PROCESS, "ログイン中"));