Looks like the intent of the old code was:

    LOG.warn("Duplicate counter : {}, Ignoring old value {}", prefix + entry.getKey(), duplicate);