Delete erroneous piece of desugar's renaming logic
RELNOTES: None.
package com.google.devtools.build.android.desugar;
import org.objectweb.asm.ClassVisitor;
-import org.objectweb.asm.Handle;
import org.objectweb.asm.commons.ClassRemapper;
import org.objectweb.asm.commons.Remapper;
/**
- * A visitor that renames some type names and only when the owner is also renamed.
+ * A visitor that renames packages so configured using {@link CoreLibrarySupport}..
*/
class CorePackageRenamer extends ClassRemapper {
@@ -42,13 +41,5 @@ class CorePackageRenamer extends ClassRemapper {
public String map(String typeName) {
return isRenamed(typeName) ? support.renameCoreLibrary(typeName) : typeName;
}
-
- @Override
- public Object mapValue(Object value) {
- if (value instanceof Handle && !isRenamed(((Handle) value).getOwner())) {
- return value;
- }
- return super.mapValue(value);
- }
}
}
