Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions dev-guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,20 +236,20 @@ CoffeeShop coffeeShop = DaggerCoffeeShop.builder()
.build();
```

_Note_: If your `@Component` is not a top-level type, the generated component's
name will include its enclosing types' names, joined with an underscore. For
example, this code:

```java
class Foo {
static class Bar {
@Component
interface BazComponent {}
}
}
```

would generate a component named `DaggerFoo_Bar_BazComponent`.
> **Note**: If your `@Component` is not a top-level type, the generated
> component's name will include its enclosing types' names, joined with an
> underscore. For example, this code:
>
> ```java
> class Foo {
> static class Bar {
> @Component
> interface BazComponent {}
> }
> }
> ```
>
> would generate a component named `DaggerFoo_Bar_BazComponent`.

Any module with an accessible default constructor can be elided as the builder
will construct an instance automatically if none is set. And for any module
Expand Down
Loading