mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 05:35:44 +01:00
Removed code smells.
This commit is contained in:
parent
4fc63b6de0
commit
bb4c199487
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user