{{ was tripping up Github

This commit is contained in:
Bradlee Speice 2014-08-02 22:16:48 -04:00
parent f0b4841efd
commit 9138dc2e18

View File

@ -61,10 +61,10 @@ Both modules provide a singleton list that is used as configuration. It will not
class MainConfig { class MainConfig {
@Provides @Singleton @Provides @Singleton
List<BookCategory> provideValidCategories() { List<BookCategory> provideValidCategories() {
return new ArrayList<BookCategory>() {{ List<BookCategory> categoryList = new ArrayList<BookCategory>();
put(Category1); categoryList.put(Category1);
put(Category2); categoryList.put(Category2);
}}; return categoryList;
} }
} }
{% endhighlight %} {% endhighlight %}
@ -75,9 +75,9 @@ class MainConfig {
class TestConfig { class TestConfig {
@Provides @Singleton @Provides @Singleton
List<BookCategory> provideValidCategories() { List<BookCategory> provideValidCategories() {
return new ArrayList<BookCategory>() {{ List<BookCategory> categoryList = new ArrayList<BookCategory>();
put(mockCategory1); categoryList.put(mockCategory1);
}}; return categoryList;
} }
} }
{% endhighlight %} {% endhighlight %}