From 82a3d844a3387f195eaf86d21740e610363e4874 Mon Sep 17 00:00:00 2001 From: ix0rai Date: Sat, 13 Apr 2024 21:12:43 -0500 Subject: [PATCH] fix deprecation errors --- .../java/quilt/internal/tasks/lint/MappingLintTask.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildSrc/src/main/java/quilt/internal/tasks/lint/MappingLintTask.java b/buildSrc/src/main/java/quilt/internal/tasks/lint/MappingLintTask.java index 22aba69bb7..0236147b92 100644 --- a/buildSrc/src/main/java/quilt/internal/tasks/lint/MappingLintTask.java +++ b/buildSrc/src/main/java/quilt/internal/tasks/lint/MappingLintTask.java @@ -102,7 +102,7 @@ public void run(InputChanges changes) { private static EntryTree readMappings(FileCollection files) throws IOException, MappingParseException { Path[] paths = files.getFiles().stream().map(File::toPath).toArray(Path[]::new); - return EnigmaMappingsReader.readFiles(ProgressListener.none(), paths); + return EnigmaMappingsReader.readFiles(ProgressListener.createEmpty(), paths); } private static String getFullName(EntryTree mappings, Entry entry) { @@ -152,9 +152,9 @@ public void execute() { // Set up Enigma Enigma enigma = Enigma.create(); - EnigmaProject project = enigma.openJar(params.getJarFile().get().getAsFile().toPath(), new ClasspathClassProvider(), ProgressListener.none()); + EnigmaProject project = enigma.openJar(params.getJarFile().get().getAsFile().toPath(), new ClasspathClassProvider(), ProgressListener.createEmpty()); EntryTree mappings = readMappings(getParameters().getMappingFiles()); - project.setMappings(mappings, ProgressListener.none()); + project.setMappings(mappings, ProgressListener.createEmpty()); Function, AccessFlags> accessProvider = entry -> { EntryIndex index = project.getJarIndex().getIndex(EntryIndex.class);