X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FProfile.java;h=c3ffe6007b411d9d026fc6a0f2d2c66917d47278;hp=a0ebeba69487d0779cecdf9ceada8143d39bd094;hb=2bacfa78f3191fd9847574a6c8b218a4882844a4;hpb=ffd92ca2374c0b2218e583d02e0bdd24b8c110ae diff --git a/src/main/java/net/pterodactylus/sone/data/Profile.java b/src/main/java/net/pterodactylus/sone/data/Profile.java index a0ebeba..c3ffe60 100644 --- a/src/main/java/net/pterodactylus/sone/data/Profile.java +++ b/src/main/java/net/pterodactylus/sone/data/Profile.java @@ -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 { }