Skip to content

Commit deff0d6

Browse files
committed
Fix generic type in history
1 parent 0e3584e commit deff0d6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mvvm4fx-core/src/main/java/com/techsenger/mvvm4fx/core/AbstractHistory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* @author Pavel Castornii
2222
*/
23-
public abstract class AbstractHistory<T extends AbstractComponentViewModel> implements ComponentHistory<T> {
23+
public abstract class AbstractHistory<T extends AbstractComponentViewModel<?>> implements ComponentHistory<T> {
2424

2525
private boolean fresh = true;
2626

mvvm4fx-core/src/main/java/com/techsenger/mvvm4fx/core/ComponentHistory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
*
4141
* @author Pavel Castornii
4242
*/
43-
public interface ComponentHistory<T extends ComponentViewModel> extends Serializable {
43+
public interface ComponentHistory<T extends ComponentViewModel<?>> extends Serializable {
4444

4545
/**
4646
* Returns whether this history instance is fresh, meaning it was newly created and has not yet been used to

0 commit comments

Comments
 (0)