From 0180e9f4ebbafc2846dec7727faf571e221a0b92 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 22 Nov 2014 13:56:25 +0100 Subject: [PATCH] Move exception to correct place. --- src/main/java/net/pterodactylus/sone/data/Album.java | 2 ++ src/main/java/net/pterodactylus/sone/data/impl/AlbumImpl.java | 2 -- src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java | 1 - src/main/java/net/pterodactylus/sone/web/CreateAlbumPage.java | 2 +- src/main/java/net/pterodactylus/sone/web/EditAlbumPage.java | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/data/Album.java b/src/main/java/net/pterodactylus/sone/data/Album.java index f968f00..c75088f 100644 --- a/src/main/java/net/pterodactylus/sone/data/Album.java +++ b/src/main/java/net/pterodactylus/sone/data/Album.java @@ -292,6 +292,8 @@ public interface Album extends Identified, Fingerprintable { Album update() throws IllegalStateException; + class AlbumTitleMustNotBeEmpty extends IllegalStateException { } + } } diff --git a/src/main/java/net/pterodactylus/sone/data/impl/AlbumImpl.java b/src/main/java/net/pterodactylus/sone/data/impl/AlbumImpl.java index 46584e8..058a736 100644 --- a/src/main/java/net/pterodactylus/sone/data/impl/AlbumImpl.java +++ b/src/main/java/net/pterodactylus/sone/data/impl/AlbumImpl.java @@ -324,8 +324,6 @@ public class AlbumImpl implements Album { }; } - public static class AlbumTitleMustNotBeEmpty extends IllegalStateException { } - // // FINGERPRINTABLE METHODS // diff --git a/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java b/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java index c1a9732..b895304 100644 --- a/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java +++ b/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java @@ -32,7 +32,6 @@ import java.util.logging.Level; import java.util.logging.Logger; import net.pterodactylus.sone.data.Album; -import net.pterodactylus.sone.data.impl.AlbumImpl; import net.pterodactylus.sone.data.Client; import net.pterodactylus.sone.data.Post; import net.pterodactylus.sone.data.PostReply; diff --git a/src/main/java/net/pterodactylus/sone/web/CreateAlbumPage.java b/src/main/java/net/pterodactylus/sone/web/CreateAlbumPage.java index 6f71741..1c599e4 100644 --- a/src/main/java/net/pterodactylus/sone/web/CreateAlbumPage.java +++ b/src/main/java/net/pterodactylus/sone/web/CreateAlbumPage.java @@ -18,7 +18,7 @@ package net.pterodactylus.sone.web; import net.pterodactylus.sone.data.Album; -import net.pterodactylus.sone.data.impl.AlbumImpl.AlbumTitleMustNotBeEmpty; +import net.pterodactylus.sone.data.Album.Modifier.AlbumTitleMustNotBeEmpty; import net.pterodactylus.sone.data.Sone; import net.pterodactylus.sone.text.TextFilter; import net.pterodactylus.sone.web.page.FreenetRequest; diff --git a/src/main/java/net/pterodactylus/sone/web/EditAlbumPage.java b/src/main/java/net/pterodactylus/sone/web/EditAlbumPage.java index c796951..66434e5 100644 --- a/src/main/java/net/pterodactylus/sone/web/EditAlbumPage.java +++ b/src/main/java/net/pterodactylus/sone/web/EditAlbumPage.java @@ -18,7 +18,7 @@ package net.pterodactylus.sone.web; import net.pterodactylus.sone.data.Album; -import net.pterodactylus.sone.data.impl.AlbumImpl.AlbumTitleMustNotBeEmpty; +import net.pterodactylus.sone.data.Album.Modifier.AlbumTitleMustNotBeEmpty; import net.pterodactylus.sone.text.TextFilter; import net.pterodactylus.sone.web.page.FreenetRequest; import net.pterodactylus.util.template.Template; -- 2.7.4