projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace unnecessary type parameters with <>
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
data
/
impl
/
AlbumImpl.java
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
991459a
..
dff3912
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/impl/AlbumImpl.java
+++ b/
src/main/java/net/pterodactylus/sone/data/impl/AlbumImpl.java
@@
-41,8
+41,6
@@
import com.google.common.hash.Hashing;
/**
* Container for images that can also contain nested {@link AlbumImpl}s.
/**
* Container for images that can also contain nested {@link AlbumImpl}s.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class AlbumImpl implements Album {
*/
public class AlbumImpl implements Album {
@@
-53,13
+51,13
@@
public class AlbumImpl implements Album {
private final Sone sone;
/** Nested albums. */
private final Sone sone;
/** Nested albums. */
- private final List<Album> albums = new ArrayList<
Album
>();
+ private final List<Album> albums = new ArrayList<>();
/** The image IDs in order. */
/** The image IDs in order. */
- private final List<String> imageIds = new ArrayList<
String
>();
+ private final List<String> imageIds = new ArrayList<>();
/** The images in this album. */
/** The images in this album. */
- private final Map<String, Image> images = new HashMap<
String, Image
>();
+ private final Map<String, Image> images = new HashMap<>();
/** The parent album. */
private Album parent;
/** The parent album. */
private Album parent;
@@
-102,7
+100,7
@@
public class AlbumImpl implements Album {
@Override
public List<Album> getAlbums() {
@Override
public List<Album> getAlbums() {
- return new ArrayList<
Album
>(albums);
+ return new ArrayList<>(albums);
}
@Override
}
@Override
@@
-154,7
+152,7
@@
public class AlbumImpl implements Album {
@Override
public List<Image> getImages() {
@Override
public List<Image> getImages() {
- return new ArrayList<
Image
>(Collections2.filter(Collections2.transform(imageIds, new Function<String, Image>() {
+ return new ArrayList<>(Collections2.filter(Collections2.transform(imageIds, new Function<String, Image>() {
@Override
@SuppressWarnings("synthetic-access")
@Override
@SuppressWarnings("synthetic-access")