Testing abstracting out the release type to build.properties

This commit is contained in:
Pahimar 2015-02-01 22:17:51 -05:00
parent 76c1e4d661
commit 383acdc967

View file

@ -13,6 +13,7 @@ public class RecipeRegistry
private static RecipeRegistry recipeRegistry = null; private static RecipeRegistry recipeRegistry = null;
private Multimap<WrappedStack, List<WrappedStack>> recipeMap; private Multimap<WrappedStack, List<WrappedStack>> recipeMap;
private ImmutableMultimap<WrappedStack, List<WrappedStack>> immutableRecipeMap;
private RecipeRegistry() private RecipeRegistry()
{ {
@ -70,6 +71,11 @@ public class RecipeRegistry
public Multimap<WrappedStack, List<WrappedStack>> getRecipeMappings() public Multimap<WrappedStack, List<WrappedStack>> getRecipeMappings()
{ {
return ImmutableMultimap.copyOf(recipeRegistry.recipeMap); if (immutableRecipeMap == null)
{
return ImmutableMultimap.copyOf(recipeRegistry.recipeMap);
}
return immutableRecipeMap;
} }
} }