From: David ‘Bombe’ Roden Date: Thu, 11 Apr 2013 06:20:10 +0000 (+0200) Subject: Make the correct class abstract. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9c38886b40287ef1fa6bf2f052ad788560189944;p=xudocci.git Make the correct class abstract. --- diff --git a/src/main/java/net/pterodactylus/xdcc/core/event/AbstractDownloadEvent.java b/src/main/java/net/pterodactylus/xdcc/core/event/AbstractDownloadEvent.java index 1532aa9..0cf5111 100644 --- a/src/main/java/net/pterodactylus/xdcc/core/event/AbstractDownloadEvent.java +++ b/src/main/java/net/pterodactylus/xdcc/core/event/AbstractDownloadEvent.java @@ -24,7 +24,7 @@ import net.pterodactylus.xdcc.data.Download; * * @author David ‘Bombe’ Roden */ -public class AbstractDownloadEvent { +public abstract class AbstractDownloadEvent { /** The download this event is about. */ protected final Download download; @@ -35,7 +35,7 @@ public class AbstractDownloadEvent { * @param download * The download the event is about */ - public AbstractDownloadEvent(Download download) { + protected AbstractDownloadEvent(Download download) { this.download = download; } diff --git a/src/main/java/net/pterodactylus/xdcc/core/event/DownloadStarted.java b/src/main/java/net/pterodactylus/xdcc/core/event/DownloadStarted.java index 415a3cd..3d8c0ea 100644 --- a/src/main/java/net/pterodactylus/xdcc/core/event/DownloadStarted.java +++ b/src/main/java/net/pterodactylus/xdcc/core/event/DownloadStarted.java @@ -24,7 +24,7 @@ import net.pterodactylus.xdcc.data.Download; * * @author David ‘Bombe’ Roden */ -public abstract class DownloadStarted extends AbstractDownloadEvent { +public class DownloadStarted extends AbstractDownloadEvent { /** * Creates a new download started event. @@ -32,7 +32,7 @@ public abstract class DownloadStarted extends AbstractDownloadEvent { * @param download * The download that started */ - protected DownloadStarted(Download download) { + public DownloadStarted(Download download) { super(download); }