From: David ‘Bombe’ Roden Date: Wed, 23 Oct 2013 05:08:27 +0000 (+0200) Subject: Use helper method. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ae80e83bbc5ca193e9065d8b6a6e886a331ea00e;p=Sone.git Use helper method. --- diff --git a/src/main/java/net/pterodactylus/sone/data/Profile.java b/src/main/java/net/pterodactylus/sone/data/Profile.java index 898deb6..e4f9992 100644 --- a/src/main/java/net/pterodactylus/sone/data/Profile.java +++ b/src/main/java/net/pterodactylus/sone/data/Profile.java @@ -239,7 +239,7 @@ public class Profile implements Fingerprintable { } public void renameField(Field field, String newName) { - int indexOfField = fields.indexOf(field); + int indexOfField = getFieldIndex(field); if (indexOfField == -1) { return; }