Assorted whitespace fixes

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2017-08-06 09:08:05 +10:00
parent da073e8e66
commit e3d4acc303
50 changed files with 96 additions and 107 deletions

View File

@@ -1060,9 +1060,9 @@ public final class PluginDescriptionFile {
return map;
}
private Map<?,?> asMap(Object object) throws InvalidDescriptionException {
private Map<?, ?> asMap(Object object) throws InvalidDescriptionException {
if (object instanceof Map) {
return (Map<?,?>) object;
return (Map<?, ?>) object;
}
throw new InvalidDescriptionException(object + " is not properly structured.");
}

View File

@@ -54,15 +54,15 @@ public class RegisteredListener {
* @throws EventException If an event handler throws an exception.
*/
public void callEvent(final Event event) throws EventException {
if (event instanceof Cancellable){
if (((Cancellable) event).isCancelled() && isIgnoringCancelled()){
if (event instanceof Cancellable) {
if (((Cancellable) event).isCancelled() && isIgnoringCancelled()) {
return;
}
}
executor.execute(listener, event);
}
/**
/**
* Whether this listener accepts cancelled events
*
* @return True when ignoring cancelled events

View File

@@ -152,7 +152,7 @@ public final class SimplePluginManager implements PluginManager {
file.getPath(),
replacedFile.getPath(),
directory.getPath()
));
));
}
Collection<String> softDependencySet = description.getSoftDepend();
@@ -443,7 +443,7 @@ public final class SimplePluginManager implements PluginManager {
try {
server.getMessenger().unregisterIncomingPluginChannel(plugin);
server.getMessenger().unregisterOutgoingPluginChannel(plugin);
} catch(Throwable ex) {
} catch (Throwable ex) {
server.getLogger().log(Level.SEVERE, "Error occurred (in the plugin loader) while unregistering plugin channels for " + plugin.getDescription().getFullName() + " (Is it up to date?)", ex);
}
}