mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 12:31:59 -08:00
* Mikaeus, the Unhallowed - Fixed that the given undying ability did not trigger.
This commit is contained in:
parent
b1427f6066
commit
740611119b
10 changed files with 81 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue