📄 Update year in file headers
[Sone.git] / src / main / java / net / pterodactylus / sone / template / AlbumAccessor.java
index f7b6f62..87378cc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - AlbumAccessor.java - Copyright Â© 2011–2016 David Roden
+ * Sone - AlbumAccessor.java - Copyright Â© 2011–2020 David Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -43,7 +43,7 @@ public class AlbumAccessor extends ReflectionAccessor {
        public Object get(TemplateContext templateContext, Object object, String member) {
                Album album = (Album) object;
                if ("backlinks".equals(member)) {
-                       List<Link> backlinks = new ArrayList<Link>();
+                       List<Link> backlinks = new ArrayList<>();
                        Album currentAlbum = album;
                        while (!currentAlbum.isRoot()) {
                                backlinks.add(0, new Link("imageBrowser.html?album=" + currentAlbum.getId(), currentAlbum.getTitle()));