|
35 | 35 |
|
36 | 36 | import com.google.gson.*; |
37 | 37 |
|
| 38 | +import de.oceanlabs.mcp.mcinjector.adaptors.AccessFixer; |
| 39 | +import de.oceanlabs.mcp.mcinjector.adaptors.AccessReader; |
| 40 | +import de.oceanlabs.mcp.mcinjector.adaptors.ApplyMap; |
| 41 | +import de.oceanlabs.mcp.mcinjector.adaptors.ApplyMarker; |
| 42 | +import de.oceanlabs.mcp.mcinjector.adaptors.GenerateMap; |
| 43 | +import de.oceanlabs.mcp.mcinjector.adaptors.JsonAttribute; |
| 44 | +import de.oceanlabs.mcp.mcinjector.adaptors.ReadMarker; |
| 45 | + |
38 | 46 | public class MCInjectorImpl |
39 | 47 | { |
40 | 48 | private final static Logger log = Logger.getLogger("MCInjector"); |
@@ -588,26 +596,26 @@ public byte[] processClass(byte[] cls, boolean readOnly) |
588 | 596 | ClassVisitor ca = cn; |
589 | 597 | if (readOnly) |
590 | 598 | { |
591 | | - ca = new ReadMarkerClassAdaptor(ca, this); |
| 599 | + ca = new ReadMarker(ca, this); |
592 | 600 | } |
593 | 601 | else |
594 | 602 | { |
595 | | - ca = new ApplyMapClassAdapter(cn, this); |
596 | | - ca = new JsonAttributeClassAdaptor(ca, this); |
| 603 | + ca = new ApplyMap(cn, this); |
| 604 | + ca = new JsonAttribute(ca, this); |
597 | 605 |
|
598 | 606 | if (applyMarkers) |
599 | 607 | { |
600 | | - ca = new ApplyMarkerClassAdaptor(ca, this); |
| 608 | + ca = new ApplyMarker(ca, this); |
601 | 609 | } |
602 | 610 |
|
603 | 611 | if (generate || genParams) |
604 | 612 | { |
605 | | - ca = new GenerateMapClassAdapter(ca, this); |
| 613 | + ca = new GenerateMap(ca, this); |
606 | 614 | } |
607 | 615 |
|
608 | | - ca = new AccessFixerClassAdaptor(ca, this); |
| 616 | + ca = new AccessFixer(ca, this); |
609 | 617 | } |
610 | | - ca = new AccessReaderClassAdaptor(ca, this); |
| 618 | + ca = new AccessReader(ca, this); |
611 | 619 |
|
612 | 620 | cr.accept(ca, 0); |
613 | 621 |
|
|
0 commit comments