Testing abstracting out the release type to build.properties
This commit is contained in:
parent
76c1e4d661
commit
383acdc967
1 changed files with 7 additions and 1 deletions
|
@ -13,6 +13,7 @@ public class RecipeRegistry
|
|||
private static RecipeRegistry recipeRegistry = null;
|
||||
|
||||
private Multimap<WrappedStack, List<WrappedStack>> recipeMap;
|
||||
private ImmutableMultimap<WrappedStack, List<WrappedStack>> immutableRecipeMap;
|
||||
|
||||
private RecipeRegistry()
|
||||
{
|
||||
|
@ -70,6 +71,11 @@ public class RecipeRegistry
|
|||
|
||||
public Multimap<WrappedStack, List<WrappedStack>> getRecipeMappings()
|
||||
{
|
||||
return ImmutableMultimap.copyOf(recipeRegistry.recipeMap);
|
||||
if (immutableRecipeMap == null)
|
||||
{
|
||||
return ImmutableMultimap.copyOf(recipeRegistry.recipeMap);
|
||||
}
|
||||
|
||||
return immutableRecipeMap;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue