Make the correct class abstract.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 11 Apr 2013 06:20:10 +0000 (08:20 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 11 Apr 2013 06:20:10 +0000 (08:20 +0200)
src/main/java/net/pterodactylus/xdcc/core/event/AbstractDownloadEvent.java
src/main/java/net/pterodactylus/xdcc/core/event/DownloadStarted.java

index 1532aa9..0cf5111 100644 (file)
@@ -24,7 +24,7 @@ import net.pterodactylus.xdcc.data.Download;
  *
  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
-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;
        }
 
index 415a3cd..3d8c0ea 100644 (file)
@@ -24,7 +24,7 @@ import net.pterodactylus.xdcc.data.Download;
  *
  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
-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);
        }