diff --git a/airsonic-main/src/main/java/org/airsonic/player/dao/UserDao.java b/airsonic-main/src/main/java/org/airsonic/player/dao/UserDao.java index a7ca1b7b..407294a1 100644 --- a/airsonic-main/src/main/java/org/airsonic/player/dao/UserDao.java +++ b/airsonic-main/src/main/java/org/airsonic/player/dao/UserDao.java @@ -326,7 +326,7 @@ public class UserDao extends AbstractDao { } } - private class UserRowMapper implements RowMapper { + private static class UserRowMapper implements RowMapper { public User mapRow(ResultSet rs, int rowNum) throws SQLException { return new User(rs.getString(1), decrypt(rs.getString(2)), diff --git a/airsonic-main/src/main/java/org/airsonic/player/service/InternetRadioService.java b/airsonic-main/src/main/java/org/airsonic/player/service/InternetRadioService.java index 147075c3..04b6aa8e 100644 --- a/airsonic-main/src/main/java/org/airsonic/player/service/InternetRadioService.java +++ b/airsonic-main/src/main/java/org/airsonic/player/service/InternetRadioService.java @@ -42,7 +42,7 @@ public class InternetRadioService { /** * Generic exception class for playlists. */ - private class PlaylistException extends Exception { + private static class PlaylistException extends Exception { public PlaylistException(String message) { super(message); } diff --git a/airsonic-main/src/test/java/org/airsonic/player/service/PlaylistServiceTestImport.java b/airsonic-main/src/test/java/org/airsonic/player/service/PlaylistServiceTestImport.java index e98eb5b8..7c076595 100644 --- a/airsonic-main/src/test/java/org/airsonic/player/service/PlaylistServiceTestImport.java +++ b/airsonic-main/src/test/java/org/airsonic/player/service/PlaylistServiceTestImport.java @@ -182,7 +182,7 @@ public class PlaylistServiceTestImport { assertEquals(3, mediaFiles.size()); } - private class PersistPlayList implements Answer { + private static class PersistPlayList implements Answer { private final int id; public PersistPlayList(int id) { this.id = id; @@ -196,7 +196,7 @@ public class PlaylistServiceTestImport { } } - private class MediaFileHasEverything implements Answer { + private static class MediaFileHasEverything implements Answer { @Override public Object answer(InvocationOnMock invocationOnMock) {