Skip to content

Commit

Permalink
#666 Remove generics from PropertyAccessor
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiostalla committed Oct 3, 2023
1 parent 59cb6e8 commit 97b0dcf
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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;
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 97b0dcf

Please sign in to comment.