OSDN Git Service

クラス名変更
authoryukihane <yukihane.feather@gmail.com>
Sun, 21 Aug 2011 05:33:29 +0000 (14:33 +0900)
committeryukihane <yukihane.feather@gmail.com>
Sun, 21 Aug 2011 05:33:29 +0000 (14:33 +0900)
frontend/src/saccubus/VideoInfoViewer.java

index 6d32227..fcc12c1 100644 (file)
@@ -219,18 +219,18 @@ public class VideoInfoViewer extends JDialog {
         new ThumbnailWorker(videoId, setting).execute();
     }
 
-    private static class Result {
+    private static class WorkerResult {
 
         private RssContent content;
         private ImageIcon image;
 
-        private Result(RssContent content, ImageIcon image) {
+        private WorkerResult(RssContent content, ImageIcon image) {
             this.content = content;
             this.image = image;
         }
     }
 
-    private class ThumbnailWorker extends SwingWorker<Result, Void> {
+    private class ThumbnailWorker extends SwingWorker<WorkerResult, Void> {
 
         private final String videoId;
         private final BasicSetting setting;
@@ -241,7 +241,7 @@ public class VideoInfoViewer extends JDialog {
         }
 
         @Override
-        protected Result doInBackground() throws Exception {
+        protected WorkerResult doInBackground() throws Exception {
             NicoHttpClient client;
             if (setting == null || !setting.isProxyUse()) {
                 client = new NicoHttpClient();
@@ -257,7 +257,7 @@ public class VideoInfoViewer extends JDialog {
                 final URL thumbUrl = new URL(cont.getThumbnail_url());
                 final ImageIcon image = new ImageIcon(thumbUrl);
 
-                return new Result(cont, image);
+                return new WorkerResult(cont, image);
             } catch (IOException ex) {
                 logger.log(Level.SEVERE, null, ex);
                 return null;
@@ -276,7 +276,7 @@ public class VideoInfoViewer extends JDialog {
         protected void done() {
             btnReload.setEnabled(true);
 
-            Result res = null;
+            WorkerResult res = null;
             try {
                 res = get();
             } catch (InterruptedException ex) {