code: public void renamedType(String oldName, Class<?> currentValue) {
          if (oldName == null) {
              throw new IllegalArgumentException("oldName must not be null");
          }
          if (currentValue == null) {
              throw new IllegalArgumentException("currentValue must not be null");
          }
          if (oldName.startsWith("java.") || oldName.startsWith("javax.") || oldName.startsWith("org.joda.")) {
              throw new IllegalArgumentException("oldName must not be a java.*, javax.* or org.joda.* type");
          }
          checkNotLocked();
          typeRenames.put(oldName, currentValue);
      }
docs: Register the fact that a type was renamed.
  <p>
  This handles the use case where a class is renamed.
  
  @param oldName  the old name of the type including the package name, not null
  @param currentValue  the current type, not null