Removed code smells.

This commit is contained in:
tastybento 2018-06-23 18:20:27 -07:00
parent 4fc63b6de0
commit bb4c199487

View File

@ -142,11 +142,6 @@ public class FlatFileDatabaseHandler<T> extends AbstractDatabaseHandler<T> {
// Get the original value
Object value = config.get(storageLocation);
method.invoke(instance, ((AdapterInterface<?,?>)adapterNotation.value().newInstance()).deserialize(value));
/*
* I don't know what this part is for...
if (value != null && !value.getClass().equals(MemorySection.class)) {
method.invoke(instance, deserialize(value,propertyDescriptor.getPropertyType()));
}*/
// We are done here
continue;
}
@ -273,7 +268,7 @@ public class FlatFileDatabaseHandler<T> extends AbstractDatabaseHandler<T> {
// Get path for comments
String parent = "";
if (storageLocation.contains(".")) {
parent = storageLocation.substring(0, storageLocation.lastIndexOf(".")) + ".";
parent = storageLocation.substring(0, storageLocation.lastIndexOf('.')) + ".";
}
// See if there are multiple comments
ConfigComment.Line comments = field.getAnnotation(ConfigComment.Line.class);