diff --git a/_posts/2014-08-01-replatform-retrospective.md b/_posts/2014-08-01-replatform-retrospective.md index 36b3f26..24d69bf 100644 --- a/_posts/2014-08-01-replatform-retrospective.md +++ b/_posts/2014-08-01-replatform-retrospective.md @@ -61,10 +61,10 @@ Both modules provide a singleton list that is used as configuration. It will not class MainConfig { @Provides @Singleton List provideValidCategories() { - return new ArrayList() {{ - put(Category1); - put(Category2); - }}; + List categoryList = new ArrayList(); + categoryList.put(Category1); + categoryList.put(Category2); + return categoryList; } } {% endhighlight %} @@ -75,9 +75,9 @@ class MainConfig { class TestConfig { @Provides @Singleton List provideValidCategories() { - return new ArrayList() {{ - put(mockCategory1); - }}; + List categoryList = new ArrayList(); + categoryList.put(mockCategory1); + return categoryList; } } {% endhighlight %}