Skip to content

Commit

Permalink
Some code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Jul 16, 2020
1 parent 53085f5 commit bfb07d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public final class ConfigMappingProvider implements Serializable {

static {
final KeyMap<BiConsumer<MappingContext, NameIterator>> map = new KeyMap<>();
map.putAny(map);
map.putRootValue(DO_NOTHING);
IGNORE_EVERYTHING = map;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public Unsafe run() {
private final Class<?> interfaceType;
private final ConfigurationInterface[] superTypes;
private final Property[] properties;
private final Class<? extends ConfigurationObject> implClass;
private final Constructor<? extends ConfigurationObject> constructor;
private final Map<String, Property> propertiesByName;

Expand All @@ -84,9 +83,9 @@ public Unsafe run() {
this.interfaceType = interfaceType;
this.superTypes = superTypes;
this.properties = properties;
implClass = createConfigurationObjectClass().asSubclass(ConfigurationObject.class);
try {
constructor = implClass.getDeclaredConstructor(MappingContext.class);
constructor = createConfigurationObjectClass().asSubclass(ConfigurationObject.class)
.getDeclaredConstructor(MappingContext.class);
} catch (NoSuchMethodException e) {
throw new NoSuchMethodError(e.getMessage());
}
Expand Down Expand Up @@ -811,7 +810,7 @@ private boolean appendPropertyName(final MethodVisitor ctor, final Property prop

ctor.visitVarInsn(Opcodes.ALOAD, V_STRING_BUILDER);
// stack: sb
ctor.visitLdcInsn(Character.valueOf('.'));
ctor.visitLdcInsn('.');
// stack: sb '.'
ctor.visitInsn(Opcodes.I2C);
// stack: sb '.'
Expand Down

0 comments on commit bfb07d5

Please sign in to comment.