Revision: 1180
Author: [email protected]
Date: Sat Jul  3 08:06:38 2010
Log: Undeprecating createInjector(Stage, ...).

The deprecation causes unnecessary churn in developer's codebases. Use of this API isn't likely to be buggy. It's common enough that we'll never be able to fully delete it.
http://code.google.com/p/google-guice/source/detail?r=1180

Modified:
 /trunk/src/com/google/inject/Guice.java

=======================================
--- /trunk/src/com/google/inject/Guice.java     Sat Feb 13 08:16:44 2010
+++ /trunk/src/com/google/inject/Guice.java     Sat Jul  3 08:06:38 2010
@@ -51,12 +51,10 @@
   private Guice() {}

   /**
-   * Creates an injector for the given set of modules.
-   *
-   * To create an Injector with a {...@link Stage} or other options, see
-   * {...@link InjectorBuilder}.
+ * Creates an injector for the given set of modules. To create an injector
+   * with a {...@link Stage} or other options, see {...@link InjectorBuilder}.
    *
-   * @throws CreationException if one or more errors occur during Injector
+   * @throws CreationException if one or more errors occur during injector
    *     construction
    */
   public static Injector createInjector(Module... modules) {
@@ -64,12 +62,10 @@
   }

   /**
-   * Creates an injector for the given set of modules.
-   *
-   * To create an Injector with a {...@link Stage} or other options, see
-   * {...@link InjectorBuilder}.
+ * Creates an injector for the given set of modules. To create an injector
+   * with a {...@link Stage} or other options, see {...@link InjectorBuilder}.
    *
-   * @throws CreationException if one or more errors occur during Injector
+   * @throws CreationException if one or more errors occur during injector
    *     creation
    */
public static Injector createInjector(Iterable<? extends Module> modules) {
@@ -78,28 +74,22 @@

   /**
* Creates an injector for the given set of modules, in a given development
-   * stage.
+   * stage. Use {...@link InjectorBuilder} for advanced injector creation.
    *
-   * @throws CreationException if one or more errors occur during Injector
+   * @throws CreationException if one or more errors occur during injector
    *     creation.
-   *
- * @deprecated Use {...@link InjectorBuilder} for advanced Injector creation.
    */
-  @Deprecated
   public static Injector createInjector(Stage stage, Module... modules) {
     return createInjector(stage, Arrays.asList(modules));
   }

   /**
* Creates an injector for the given set of modules, in a given development
-   * stage.
+   * stage. Use {...@link InjectorBuilder} for advanced injector creation.
    *
-   * @throws CreationException if one or more errors occur during Injector
+   * @throws CreationException if one or more errors occur during injector
    *     construction
-   *
- * @deprecated Use {...@link InjectorBuilder} for advanced Injector creation.
    */
-  @Deprecated
   public static Injector createInjector(Stage stage,
       Iterable<? extends Module> modules) {
     return new InjectorBuilder()

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en.

Reply via email to