File tree Expand file tree Collapse file tree
api/src/main/java/cn/maxpixel/mcdecompiler/api
app-common/src/main/java/cn/maxpixel/mcdecompiler/common/app/util
java/cn/maxpixel/mcdecompiler
decompiler/src/main/java/cn/maxpixel/mcdecompiler/decompiler
mapping-api/src/main/java/cn/maxpixel/mcdecompiler/mapping/component Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 packages : write
2222 contents : write
2323 steps :
24- - uses : actions/checkout@v4.1.1
24+ - uses : actions/checkout@v6
2525 - name : Set up JDK
26- uses : actions/setup-java@v4.2.1
26+ uses : actions/setup-java@v5
2727 with :
2828 java-version : 17
2929 distribution : temurin
3939 GITHUB_TOKEN : ${{ github.token }}
4040 - name : Upload target
4141 if : success()
42- uses : actions/upload-artifact@v4.3.1
42+ uses : actions/upload-artifact@v6
4343 with :
4444 name : MinecraftDecompiler
4545 path : modules/cli/target/MinecraftDecompiler.jar
Original file line number Diff line number Diff line change 66 build :
77 runs-on : ubuntu-latest
88 steps :
9- - uses : actions/checkout@v4.1.1
9+ - uses : actions/checkout@v6
1010 - name : Set up JDK
11- uses : actions/setup-java@v4.2.1
11+ uses : actions/setup-java@v5
1212 with :
1313 java-version : 17
1414 distribution : temurin
2222 GITHUB_TOKEN : ${{ github.token }}
2323 - name : Upload target
2424 if : success()
25- uses : actions/upload-artifact@v4.3.1
25+ uses : actions/upload-artifact@v6
2626 with :
2727 name : MinecraftDecompiler
2828 path : modules/cli/target/MinecraftDecompiler.jar
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ else try (Stream<Path> s = FileUtil.iterateFiles(jarFs.getPath(""))) {
176176 }
177177
178178 public static final class OptionBuilder {
179- private static final Logger LOGGER = LogManager .getLogger ("Option Builder" );
179+ private static final Logger LOGGER = LogManager .getLogger ();
180180 private String version ;
181181 private SideType type ;
182182 private boolean includeOthers = true ;
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public static String file2Native(@NotNull String fileName) {
4242 }
4343
4444 public static void waitFor (Process pro ) {
45- Logger logger = LogManager .getLogger ("Process PID: " + pro .pid ());
45+ Logger logger = LogManager .getLogger ("cn.maxpixel.mcdecompiler. Process PID: " + pro .pid ());
4646 try (BufferedReader in = pro .inputReader ();
4747 BufferedReader err = pro .errorReader ()) {
4848 Thread inT = new Thread (() -> {
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public class DownloadingUtil {
6060
6161 public static final HttpClient HTTP_CLIENT = HttpClient .newBuilder ()
6262 .proxy (new ProxySelector () {
63- private static final Logger LOGGER = LogManager .getLogger ("Proxy" );
63+ private static final Logger LOGGER = LogManager .getLogger ("cn.maxpixel.mcdecompiler.DownloadingUtil. Proxy" );
6464 private static final List <Proxy > PROXY_LIST = List .of (INTERNAL_PROXY );
6565 @ Override
6666 public List <Proxy > select (URI uri ) {
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public class MinecraftDecompilerCommandLine {
4949 System .setProperty ("org.openjdk.java.util.stream.tripwire" , Boolean .toString (Constants .IS_DEV ));
5050 }
5151 private static final Object2ObjectOpenHashMap <Option , OptionSpec <?>> OPTION_MAP = new Object2ObjectOpenHashMap <>();
52- private static final Logger LOGGER = LogManager .getLogger ("CommandLine" );
52+ private static final Logger LOGGER = LogManager .getLogger ();
5353
5454 public static void main (String [] args ) throws Throwable {
5555 if (Constants .IS_DEV ) LOGGER .info ("MCD Begin" );// Used to measure time
Original file line number Diff line number Diff line change 11{
22 "loggers" : {
3- "root " : {
4- "level " : " INFO "
3+ "cn.maxpixel.mcdecompiler " : {
4+ "formatter " : " [%time%] [%name%/%source_method%] [%level%] %msg% \n "
55 }
66 }
77}
Original file line number Diff line number Diff line change 3737
3838public class Decompilers {
3939 private static final Manifest MANIFEST = JarUtil .getManifest (Decompilers .class );
40- private static final Logger LOGGER = LogManager .getLogger ("Decompiler Manager" );
40+ private static final Logger LOGGER = LogManager .getLogger ();
4141 private static final Object2ObjectOpenHashMap <String , IDecompiler > DECOMPILERS = new Object2ObjectOpenHashMap <>();
4242 static {
4343 for (IDecompiler d : ServiceLoader .load (IDecompiler .class )) {
Original file line number Diff line number Diff line change 2424
2525import java .util .Objects ;
2626
27- public class Owned <T extends Mapping > implements Component {
27+ public class Owned <T extends Mapping > implements Component {// TODO: Remove this and directly use ClassMapping as the component
2828 public ClassMapping <T > owner ;
2929
3030 public Owned () {}
You can’t perform that action at this time.
0 commit comments