Updated YamlDatabaseHandler

Added type casting to code as a workaround to try and resolve a compile issue for Java 11. See https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8212636
This commit is contained in:
tastybento 2019-08-05 13:31:45 -07:00 committed by GitHub
parent 44cbd81320
commit d4bbc423bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ public class YamlDatabaseHandler<T> extends AbstractDatabaseHandler<T> {
continue;
}
// Get the getter and setters for this field using the JavaBeans system
PropertyDescriptor propertyDescriptor = new PropertyDescriptor(field.getName(), dataObject);
PropertyDescriptor propertyDescriptor = new PropertyDescriptor((String)field.getName(), dataObject);
// Get the write method
Method method = propertyDescriptor.getWriteMethod();
/*