* Mikaeus, the Unhallowed - Fixed that the given undying ability did not trigger.

This commit is contained in:
LevelX2 2015-03-22 19:47:46 +01:00
parent b1427f6066
commit 740611119b
10 changed files with 81 additions and 10 deletions

View file

@ -50,6 +50,7 @@ public class DownloadJob extends AbstractLaternaBean {
/**
* Sets the job's state. If the state is {@link State#ABORTED}, it instead sets the error to "ABORTED"
* @param state
*/
public void setState(State state) {
if (state == State.ABORTED) {
@ -62,6 +63,7 @@ public class DownloadJob extends AbstractLaternaBean {
/**
* Sets the job's state to {@link State#ABORTED} and the error message to the given message. Logs a warning
* with the given message.
* @param message
*/
public void setError(String message) {
setError(message, null);
@ -70,6 +72,7 @@ public class DownloadJob extends AbstractLaternaBean {
/**
* Sets the job's state to {@link State#ABORTED} and the error to the given exception. Logs a warning with the
* given exception.
* @param error
*/
public void setError(Exception error) {
setError(null, error);
@ -78,6 +81,8 @@ public class DownloadJob extends AbstractLaternaBean {
/**
* Sets the job's state to {@link State#ABORTED} and the error to the given exception. Logs a warning with the
* given message and exception.
* @param message
* @param error
*/
public void setError(String message, Exception error) {
if (message == null) {
@ -91,6 +96,7 @@ public class DownloadJob extends AbstractLaternaBean {
/**
* Sets the job's message.
* @param message
*/
public void setMessage(String message) {
this.message.setValue(message);

View file

@ -6,7 +6,6 @@
package org.mage.plugins.card.dl;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.IOException;
@ -16,9 +15,7 @@ import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import javax.swing.BoundedRangeModel;
import org.apache.log4j.Logger;
import org.jetlang.channels.Channel;
import org.jetlang.channels.MemoryChannel;
@ -32,7 +29,6 @@ import org.mage.plugins.card.dl.DownloadJob.State;
import org.mage.plugins.card.dl.lm.AbstractLaternaBean;
/**
* The class Downloader.
*