Skip to content

Commit 63f2276

Browse files
alikhronshapiro
authored andcommitted
add details for how to write the AutoValue class when it is an inner class
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=252845082
1 parent 654c1ae commit 63f2276

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

value/userguide/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ import com.google.auto.value.AutoValue;
5656
@AutoValue
5757
abstract class Animal {
5858
static Animal create(String name, int numberOfLegs) {
59-
// See "How do I...?" below for nested classes.
6059
return new AutoValue_Animal(name, numberOfLegs);
6160
}
6261

@@ -68,10 +67,13 @@ abstract class Animal {
6867
The constructor parameters correspond, in order, to the abstract accessor
6968
methods.
7069

70+
**For a nested class**, see ["How do I use AutoValue with a nested class"](howto.md#nested).
71+
7172
Note that in real life, some classes and methods would presumably be public and
7273
have Javadoc. We're leaving these off in the User Guide only to keep the
7374
examples short and simple.
7475

76+
7577
### In `pom.xml`
7678

7779
Maven users should add the following to the project's `pom.xml` file:

0 commit comments

Comments
 (0)