forked from QuiltMC/quilt-mappings
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace VersionDownloadInfo with VersionParser
- Loading branch information
1 parent
de9df65
commit 6c57c44
Showing
12 changed files
with
117 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 0 additions & 81 deletions
81
buildSrc/src/main/java/quilt/internal/util/VersionDownloadInfo.java
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
buildSrc/src/main/java/quilt/internal/util/serializable/NonSerializableObjectParser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package quilt.internal.util.serializable; | ||
|
||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.io.File; | ||
import java.io.Serializable; | ||
|
||
public abstract class NonSerializableObjectParser<N> implements Serializable { | ||
private final File source; | ||
|
||
@Nullable | ||
private transient N nonSerializable; | ||
|
||
public NonSerializableObjectParser(File source) { | ||
this.source = source; | ||
} | ||
|
||
public final N get() { | ||
if (this.nonSerializable == null) { | ||
this.nonSerializable = this.parse(this.source); | ||
} | ||
|
||
return this.nonSerializable; | ||
} | ||
|
||
protected abstract N parse(File source); | ||
} |
2 changes: 1 addition & 1 deletion
2
...al/util/SerializableDownloadableFile.java → ...lizable/SerializableDownloadableFile.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
6c57c44
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No difference between head and target.