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()
{ {
@ -69,7 +70,12 @@ public class RecipeRegistry
} }
public Multimap<WrappedStack, List<WrappedStack>> getRecipeMappings() public Multimap<WrappedStack, List<WrappedStack>> getRecipeMappings()
{
if (immutableRecipeMap == null)
{ {
return ImmutableMultimap.copyOf(recipeRegistry.recipeMap); return ImmutableMultimap.copyOf(recipeRegistry.recipeMap);
} }
return immutableRecipeMap;
}
} }