Add class to fetch a Sone.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / Core.java
index c9ac93b..c85d0e7 100644 (file)
@@ -799,15 +799,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider,
                                }
                        }
                        soneDownloader.addSone(sone);
-                       soneDownloaders.execute(new Runnable() {
-
-                               @Override
-                               @SuppressWarnings("synthetic-access")
-                               public void run() {
-                                       soneDownloader.fetchSone(sone, sone.getRequestUri());
-                               }
-
-                       });
+                       soneDownloaders.execute(soneDownloader.new FetchSone(sone));
                        return sone;
                }
        }