Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
Fix spotbugs errors in datatools module #24
Browse files Browse the repository at this point in the history
  • Loading branch information
Desire456 committed Aug 12, 2021
1 parent 3a0f71e commit 4e63fab
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public EntitySqlGenerator(Class<?> clazz) {
@PostConstruct
public void init() {
metaClass = metadata.getClass(clazz);
collectTableMetadata(metaClass, new Table(null));
collectTableMetadata(metaClass, new Table());

if (tables.isEmpty()) {
throw new IllegalStateException(
Expand Down Expand Up @@ -175,7 +175,7 @@ protected List<String> convertWhere(String tableAlias, FieldEntry fieldEntry, Ob
return where;
}

protected String convertValue(Object entity, String fieldName, @Nullable Object value) {
protected String convertValue(@Nullable Object entity, @Nullable String fieldName, @Nullable Object value) {
try {
String valueStr;
if (EntityValues.isEntity(value)) {
Expand Down Expand Up @@ -262,6 +262,9 @@ protected class Table {
protected DiscriminatorType discriminatorType;
protected Map<String, FieldEntry> fieldToColumnMapping = new LinkedHashMap<>();

public Table() {
}

public Table(String name) {
this.name = name;
}
Expand Down

0 comments on commit 4e63fab

Please sign in to comment.