Suppress some warnings.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 25 Apr 2012 14:35:12 +0000 (16:35 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 25 Apr 2012 14:35:12 +0000 (16:35 +0200)
src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java
src/main/java/net/pterodactylus/demoscenemusic/data/DefaultArtist.java
src/main/java/net/pterodactylus/demoscenemusic/data/DefaultTrack.java

index ef3c151..b2a3337 100644 (file)
@@ -44,9 +44,13 @@ import net.pterodactylus.util.database.ValueFieldWhereClause;
  */
 public class DataManager {
 
+       @SuppressWarnings("synthetic-access")
        private final ObjectCreator<Artist> artistCreator = new ArtistCreator();
+       @SuppressWarnings("synthetic-access")
        private final ObjectCreator<Group> groupCreator = new GroupCreator();
+       @SuppressWarnings("synthetic-access")
        private final ObjectCreator<Track> trackCreator = new TrackCreator();
+       @SuppressWarnings("synthetic-access")
        private final ObjectCreator<Style> styleCreator = new StyleCreator();
 
        private final Database database;
index 3dc0108..26a06bb 100644 (file)
@@ -60,6 +60,7 @@ public class DefaultArtist extends DefaultBase implements Artist {
        }
 
        @Override
+       @SuppressWarnings({ "unchecked" })
        public Collection<Track> getTracks() {
                return getValue("tracks", Collection.class).get();
        }
index 7436c4d..de84cdb 100644 (file)
@@ -43,6 +43,7 @@ public class DefaultTrack extends DefaultBase implements Track {
        }
 
        @Override
+       @SuppressWarnings("unchecked")
        public List<Artist> getArtists() {
                return getValue("artists", List.class).get();
        }
@@ -54,6 +55,7 @@ public class DefaultTrack extends DefaultBase implements Track {
        }
 
        @Override
+       @SuppressWarnings("unchecked")
        public Collection<Style> getStyles() {
                return getValue("styles", Collection.class).get();
        }