Skip to content

Commit 8bafaac

Browse files
committed
Add Nullable annotation to RecipeMap::getByName()
IDE analysis assumes it won't return null otherwise, because methods are marked Non-null by default.
1 parent f193ca9 commit 8bafaac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/gregtech/api/recipes/RecipeMap.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public static List<RecipeMap<?>> getRecipeMaps() {
100100
}
101101

102102
@ZenMethod
103+
@Nullable
103104
public static RecipeMap<?> getByName(String unlocalizedName) {
104105
return RECIPE_MAPS.stream()
105106
.filter(map -> map.unlocalizedName.equals(unlocalizedName))

0 commit comments

Comments
 (0)