Use helper method.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 23 Oct 2013 05:08:27 +0000 (07:08 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 28 Feb 2014 21:25:34 +0000 (22:25 +0100)
src/main/java/net/pterodactylus/sone/data/Profile.java

index 898deb6..e4f9992 100644 (file)
@@ -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;
                }