geforkt von Mirrors/Paper
Merge remote branch 'upstream/master'
By: durron597 <martin.jared@gmail.com>
Dieser Commit ist enthalten in:
Commit
2ba9a0b8c2
@ -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,6 +30,7 @@ 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));
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren