com.google.inject.Injectjavax.inject.Inject



Project jclouds/jclouds in file ...jclouds.http.handlers.RedirectionRetryHandler.java (2009-09-24)
@@ -38,8 +38,8 @@ import org.jclouds.http.HttpRetryHandler;
 import org.jclouds.logging.Logger;
 
 import com.google.common.annotations.VisibleForTesting;
-import com.google.inject.Inject;
-import com.google.inject.name.Named;
+import javax.inject.Inject;
+import javax.inject.Named;
 
 /**
  * Handles Retryable responses with error codes in the 3xx range
@@ -52,7 +52,6 @@ public class RedirectionRetryHandler implements HttpRetryHandler {
    @Resource
    protected Logger logger = Logger.NULL;
 
-   @Inject
    protected final BackoffLimitedRetryHandler backoffHandler;
 
    @Inject
Project jclouds/legacy-jclouds in file ...jclouds.http.handlers.RedirectionRetryHandler.java (2009-09-24)
@@ -38,8 +38,8 @@ import org.jclouds.http.HttpRetryHandler;
 import org.jclouds.logging.Logger;
 
 import com.google.common.annotations.VisibleForTesting;
-import com.google.inject.Inject;
-import com.google.inject.name.Named;
+import javax.inject.Inject;
+import javax.inject.Named;
 
 /**
  * Handles Retryable responses with error codes in the 3xx range
@@ -52,7 +52,6 @@ public class RedirectionRetryHandler implements HttpRetryHandler {
    @Resource
    protected Logger logger = Logger.NULL;
 
-   @Inject
    protected final BackoffLimitedRetryHandler backoffHandler;
 
    @Inject
Project ratpack/ratpack in file ...rics.internal.MetricRegistryPeriodicPublisher.java (2015-01-30)
@@ -17,12 +17,11 @@
 package ratpack.codahale.metrics.internal;
 
 import com.codahale.metrics.MetricRegistry;
-import com.google.inject.Inject;
 import ratpack.codahale.metrics.CodaHaleMetricsModule;
 import ratpack.exec.ExecController;
 import ratpack.stream.internal.PeriodicPublisher;
 
-import java.time.Duration;
+import javax.inject.Inject;
 
 public class MetricRegistryPeriodicPublisher extends PeriodicPublisher<MetricRegistry> {
 
@@ -31,7 +30,7 @@ public class MetricRegistryPeriodicPublisher extends PeriodicPublisher<MetricReg
     super(
       execController.getExecutor(),
       i -> metricRegistry,
-      Duration.ofSeconds(config.getWebSocket().getReporterInterval())
+      config.getWebSocket().getReporterInterval()
     );
   }
 
Project AndroidBootstrap/android-bootstrap in file ...onnfelker.android.bootstrap.core.AvatarLoader.java (2013-03-09)
@@ -14,8 +14,9 @@ import android.widget.ImageView;
 
 import com.actionbarsherlock.app.ActionBar;
 import com.donnfelker.android.bootstrap.R;
+import com.donnfelker.android.bootstrap.util.SafeAsyncTask;
 import com.github.kevinsawicki.http.HttpRequest;
-import com.google.inject.Inject;
+import javax.inject.Inject;
 
 import java.io.File;
 import java.io.FileOutputStream;
@@ -26,7 +27,6 @@ import java.util.concurrent.Executor;
 import java.util.concurrent.Executors;
 import java.util.concurrent.atomic.AtomicReference;
 
-import roboguice.util.RoboAsyncTask;
 
 /**
  * Avatar utilities
@@ -40,13 +40,13 @@ public class AvatarLoader {
     private static final int CACHE_SIZE = 75;
 
     private static abstract class FetchAvatarTask extends
-            RoboAsyncTask<BitmapDrawable> {
+            SafeAsyncTask<BitmapDrawable> {
 
         private static final Executor EXECUTOR = Executors
                 .newFixedThreadPool(1);
 
         private FetchAvatarTask(Context context) {
-            super(context, EXECUTOR);
+            super(EXECUTOR);
         }
 
         @Override
Project donnfelker/android-bootstrap in file ...onnfelker.android.bootstrap.core.AvatarLoader.java (2013-03-09)
@@ -14,8 +14,9 @@ import android.widget.ImageView;
 
 import com.actionbarsherlock.app.ActionBar;
 import com.donnfelker.android.bootstrap.R;
+import com.donnfelker.android.bootstrap.util.SafeAsyncTask;
 import com.github.kevinsawicki.http.HttpRequest;
-import com.google.inject.Inject;
+import javax.inject.Inject;
 
 import java.io.File;
 import java.io.FileOutputStream;
@@ -26,7 +27,6 @@ import java.util.concurrent.Executor;
 import java.util.concurrent.Executors;
 import java.util.concurrent.atomic.AtomicReference;
 
-import roboguice.util.RoboAsyncTask;
 
 /**
  * Avatar utilities
@@ -40,13 +40,13 @@ public class AvatarLoader {
     private static final int CACHE_SIZE = 75;
 
     private static abstract class FetchAvatarTask extends
-            RoboAsyncTask<BitmapDrawable> {
+            SafeAsyncTask<BitmapDrawable> {
 
         private static final Executor EXECUTOR = Executors
                 .newFixedThreadPool(1);
 
         private FetchAvatarTask(Context context) {
-            super(context, EXECUTOR);
+            super(EXECUTOR);
         }
 
         @Override