From 9c38886b40287ef1fa6bf2f052ad788560189944 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 11 Apr 2013 08:20:10 +0200 Subject: [PATCH] Make the correct class abstract. --- .../java/net/pterodactylus/xdcc/core/event/AbstractDownloadEvent.java | 4 ++-- src/main/java/net/pterodactylus/xdcc/core/event/DownloadStarted.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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); } -- 2.7.4