/*
 * Copyright (C) 2014 Google, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package dagger;

import java.lang.annotation.Documented;
import java.lang.annotation.Target;
import javax.inject.Inject;
import javax.inject.Provider;
import javax.inject.Qualifier;

import static java.lang.annotation.ElementType.TYPE;

/**
 * Annotates an interface or abstract class for which a fully-formed, dependency-injected
 * implementation is to be generated from a set of {@linkplain #modules}. The generated class will
 * have the name of the type annotated with {@code @Component} prepended with
 * {@code Dagger_}.  For example, {@code @Component interface MyComponent {...}} will
 * produce an implementation named {@code Dagger_MyComponent}.
 *
 * <h2>Component methods</h2>
 *
 * <p>Every type annotated with {@code @Component} must contain at least one abstract component
 * method. Component methods must either represent {@linkplain Provider provision} or
 * {@linkplain MembersInjector member injection}.
 *
 * Provision methods have no arguments and return an {@link Inject injected} or
 * {@link Provides provided} type.  Each may have a {@link Qualifier} annotation as well. The
 * following are all valid provision method declarations: <pre>   {@code
 *   SomeType getSomeType();
 *   Set<SomeType> getSomeTypes();
 *   @PortNumber int getPortNumber();
 *   }</pre>
 *
 * Member injection methods take a single parameter and optionally return that same type. The
 * following are all valid member injection method declarations: <pre>   {@code
 *   void injectSomeType(SomeType someType);
 *   SomeType injectAndReturnSomeType(SomeType someType);
 *   }</pre>
 *
 * @author Gregory Kick
 * @since 2.0
 */
// TODO(gak): add missing spec for @Scope
// TODO(gak): add missing spec for component dependencies
@Target(TYPE)
@Documented
public @interface Component {
  /**
   * A list of classes annotated with {@link Module} whose bindings are used to generate the
   * component implementation.
   */
  Class<?>[] modules() default {};

  /**
   * A list of types that are to be used as component dependencies.
   */
  Class<?>[] dependencies() default {};
}

@@ -1750,33 +1750,30 @@
 tions: %3Cpre%3E
-   %7B@
+%3C
 code
+%3E
 %0A *   SomeTy
@@ -1795,16 +1795,26 @@
 );%0A *   
+%7B@literal 
 Set%3CSome
@@ -1818,16 +1818,17 @@
 omeType%3E
+%7D
  getSome
@@ -1841,16 +1841,26 @@
 );%0A *   
+%7B@literal 
 @PortNum
@@ -1862,16 +1862,17 @@
 rtNumber
+%7D
  int get
@@ -1884,27 +1884,31 @@
 umber();%0A * 
-  %7D
+%3C/code%3E
 %3C/pre%3E%0A *%0A *
@@ -2073,17 +2073,14 @@
 pre%3E
-   %7B@
+%3C
 code
+%3E
 %0A * 
@@ -2186,11 +2186,15 @@
 %0A * 
-  %7D
+%3C/code%3E
 %3C/pr

Fix up the javadoc so that the `@` symbol in it doesn't short-circuit the code block. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=78613943