Skip to content

Commit

Permalink
Remove offerResource, as it's a BC PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Matyrobbrt committed Nov 18, 2023
1 parent 54220b1 commit cbc9f17
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import org.objectweb.asm.Type;
import org.objectweb.asm.tree.ClassNode;

import java.io.IOException;
import java.nio.file.Path;
import java.util.EnumSet;

public class AccessTransformerService implements ILaunchPluginService {
Expand All @@ -17,19 +15,6 @@ public String name() {
return "accesstransformer";
}

/**
* @deprecated Use {@link AccessTransformerEngine#loadATFromPath(Path)} instead
*/
@Override
@Deprecated(forRemoval = true, since = "10.0")
public void offerResource(final Path path, final String resourceName) {
try {
engine.loadATFromPath(path);
} catch (IOException e) {
throw new RuntimeException("Failed to load AT file " + path, e);
}
}

@Override
public int processClassWithFlags(final Phase phase, final ClassNode classNode, final Type classType, final String reason) {
return engine.transform(classNode, classType) ? ComputeFlags.SIMPLE_REWRITE : ComputeFlags.NO_REWRITE;
Expand Down

0 comments on commit cbc9f17

Please sign in to comment.