mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Fixed generics warning.
By: Lymia <lymiahugs@gmail.com>
This commit is contained in:
parent
51005cf1be
commit
4937cffabb
1 changed files with 3 additions and 1 deletions
|
@ -17,6 +17,7 @@ public final class PluginDescriptionFile {
|
||||||
private String name = null;
|
private String name = null;
|
||||||
private String main = null;
|
private String main = null;
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public PluginDescriptionFile(final InputStream stream) throws InvalidDescriptionException {
|
public PluginDescriptionFile(final InputStream stream) throws InvalidDescriptionException {
|
||||||
try {
|
try {
|
||||||
loadMap((Map<String, Object>)yaml.load(stream));
|
loadMap((Map<String, Object>)yaml.load(stream));
|
||||||
|
@ -29,10 +30,11 @@ public final class PluginDescriptionFile {
|
||||||
* Loads a PluginDescriptionFile from the specified reader
|
* Loads a PluginDescriptionFile from the specified reader
|
||||||
* @param reader
|
* @param reader
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public PluginDescriptionFile(final Reader reader) {
|
public PluginDescriptionFile(final Reader reader) {
|
||||||
loadMap((Map<String, Object>)yaml.load(reader));
|
loadMap((Map<String, Object>)yaml.load(reader));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new PluginDescriptionFile with the given detailed
|
* Creates a new PluginDescriptionFile with the given detailed
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue