-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#666 Remove generics from PropertyAccessor
- Loading branch information
1 parent
59cb6e8
commit 97b0dcf
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ | |
* @author Giampiero Granatella - [email protected] | ||
* @author Alessio Stalla - [email protected] | ||
*/ | ||
public class ColumnAccessor<O, T> extends AbstractAnnotatedAccessor implements PropertyAccessor<O, T> { | ||
public class ColumnAccessor extends AbstractAnnotatedAccessor implements PropertyAccessor { | ||
public static final String copyright = | ||
"Copyright (C) 2005-2020 ManyDesigns srl"; | ||
|
||
|
@@ -47,14 +47,14 @@ public class ColumnAccessor<O, T> extends AbstractAnnotatedAccessor implements P | |
//************************************************************************** | ||
|
||
protected final Column column; | ||
protected final PropertyAccessor<O, T> nestedPropertyAccessor; | ||
protected final PropertyAccessor nestedPropertyAccessor; | ||
|
||
public static final Logger logger = | ||
LoggerFactory.getLogger(ColumnAccessor.class); | ||
|
||
public ColumnAccessor( | ||
Column column, boolean inPk, boolean autoGenerated, | ||
@NotNull PropertyAccessor<O, T> nestedPropertyAccessor) { | ||
@NotNull PropertyAccessor nestedPropertyAccessor) { | ||
super(column.getAnnotations()); | ||
this.column = column; | ||
this.nestedPropertyAccessor = nestedPropertyAccessor; | ||
|
@@ -91,11 +91,11 @@ public int getModifiers() { | |
return Modifier.PUBLIC; | ||
} | ||
|
||
public Object get(O obj) { | ||
public Object get(Object obj) { | ||
return nestedPropertyAccessor.get(obj); | ||
} | ||
|
||
public void set(O obj, T value) { | ||
public void set(Object obj, Object value) { | ||
nestedPropertyAccessor.set(obj, value); | ||
} | ||
|
||
|