X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FProfile.java;h=7d8a0bd2420442007b2f09703231bedf40b601a5;hb=179e7da4d8d8a474d0b622d60b5f5d32d6ab4052;hp=a0ebeba69487d0779cecdf9ceada8143d39bd094;hpb=ffd92ca2374c0b2218e583d02e0bdd24b8c110ae;p=Sone.git
diff --git a/src/main/java/net/pterodactylus/sone/data/Profile.java b/src/main/java/net/pterodactylus/sone/data/Profile.java
index a0ebeba..7d8a0bd 100644
--- a/src/main/java/net/pterodactylus/sone/data/Profile.java
+++ b/src/main/java/net/pterodactylus/sone/data/Profile.java
@@ -1,5 +1,5 @@
/*
- * Sone - Profile.java - Copyright © 2010â2016 David Roden
+ * Sone - Profile.java - Copyright © 2010â2019 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
@@ -35,8 +35,6 @@ import com.google.common.hash.Hashing;
/**
* A profile stores personal information about a {@link Sone}. All information
* is optional and can be {@code null}.
- *
- * @author David âBombeâ Roden
*/
public class Profile implements Fingerprintable {
@@ -284,7 +282,7 @@ public class Profile implements Fingerprintable {
*/
@Nonnull
public List getFields() {
- return new ArrayList(fields);
+ return new ArrayList<>(fields);
}
/**
@@ -465,8 +463,6 @@ public class Profile implements Fingerprintable {
/**
* Container for a profile field.
- *
- * @author David âBombeâ Roden
*/
public class Field {
@@ -586,15 +582,11 @@ public class Profile implements Fingerprintable {
/**
* Exception that signals the addition of a field with an empty name.
- *
- * @author David âBombeâ Roden
*/
public static class EmptyFieldName extends IllegalArgumentException { }
/**
* Exception that signals the addition of a field that already exists.
- *
- * @author David âBombeâ Roden
*/
public static class DuplicateField extends IllegalArgumentException { }