Update years in copyright line
[Sone.git] / src / main / java / net / pterodactylus / sone / template / IdentityAccessor.java
index c08a0a2..3a49aed 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - IdentityAccessor.java - Copyright © 2010–2013 David Roden
+ * Sone - IdentityAccessor.java - Copyright © 2010–2015 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
@@ -55,9 +55,8 @@ public class IdentityAccessor extends ReflectionAccessor {
                Identity identity = (Identity) object;
                if ("uniqueNickname".equals(member)) {
                        int minLength = -1;
-                       boolean found = false;
-                       Set<OwnIdentity> ownIdentities = null;
-                       ownIdentities = core.getIdentityManager().getAllOwnIdentities();
+                       boolean found;
+                       Set<OwnIdentity> ownIdentities = core.getIdentityManager().getAllOwnIdentities();
                        do {
                                boolean unique = true;
                                String abbreviatedWantedNickname = getAbbreviatedNickname(identity, ++minLength);