Skip to content

Commit

Permalink
Suppress deprecation via an annotation instead of IntelliJ magic comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenraven committed May 25, 2023
1 parent 203ae6c commit faded18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public class GTPPRecipeProcessor implements IRecipeProcessor {

@Nonnull
@Override
@SuppressWarnings("deprecation")
public Set<String> getAllOverlayIdentifier() {
HashSet<String> identifiers = new HashSet<>(Collections.singletonList("GTPP_Decayables"));

// GTNH version of GT++ deprecated this, but other versions still use it
// noinspection deprecation
for (GTPP_Recipe.GTPP_Recipe_Map_Internal gtppMap : GTPP_Recipe.GTPP_Recipe_Map_Internal.sMappingsEx) {
if (gtppMap.mNEIAllowed) {
identifiers.add(gtppMap.mNEIName);
Expand Down

0 comments on commit faded18

Please sign in to comment.