public boolean hasDuplicateKey(NLSSubstitution[] substitutions, String prefix) { if (fState == EXTERNALIZED) { String key; if (hasChanged()) { key = prefix + fKey; } else { key = fKey; }
public boolean hasDuplicateKey(NLSSubstitution[] substitutions) { if (fState == EXTERNALIZED) {
    public boolean hasDuplicateKey(NLSSubstitution[] substitutions, String prefix) {        if (fState == EXTERNALIZED) {            String key;            if (hasChanged()) {                key = prefix + fKey;                            } else {                key = fKey;            }            int counter = 0;            for (int i = 0; i < substitutions.length; i++) {                NLSSubstitution substitution = substitutions[i];                                                if (substitution.getState() == EXTERNALIZED) {                    if (substitution.hasChanged()) {                        if (substitution.getKeyWithPrefix(prefix).equals(key)) {                            counter++;                        }                    } else {                        if (substitution.getKey().equals(key)) {                            counter++;                        }                                        }                }            }            if (counter > 1) {                return true;            }        }        return false;    }