Skip to content

Commit c8d5b97

Browse files
mjagusvladmihalcea
authored andcommitted
Change signature of toString and areEqual methods in AbstractArrayTypeDescriptor to match those of its superclass #569
1 parent beddb1a commit c8d5b97

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

hypersistence-utils-hibernate-5/src/main/java/io/hypersistence/utils/hibernate/type/array/internal/AbstractArrayTypeDescriptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void setParameterValues(Properties parameters) {
5555
}
5656

5757
@Override
58-
public boolean areEqual(Object one, Object another) {
58+
public boolean areEqual(T one, T another) {
5959
if (one == another) {
6060
return true;
6161
}
@@ -66,7 +66,7 @@ public boolean areEqual(Object one, Object another) {
6666
}
6767

6868
@Override
69-
public String toString(Object value) {
69+
public String toString(T value) {
7070
return Arrays.deepToString(ArrayUtil.wrapArray(value));
7171
}
7272

hypersistence-utils-hibernate-52/src/main/java/io/hypersistence/utils/hibernate/type/array/internal/AbstractArrayTypeDescriptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void setParameterValues(Properties parameters) {
5555
}
5656

5757
@Override
58-
public boolean areEqual(Object one, Object another) {
58+
public boolean areEqual(T one, T another) {
5959
if (one == another) {
6060
return true;
6161
}
@@ -66,7 +66,7 @@ public boolean areEqual(Object one, Object another) {
6666
}
6767

6868
@Override
69-
public String toString(Object value) {
69+
public String toString(T value) {
7070
return Arrays.deepToString(ArrayUtil.wrapArray(value));
7171
}
7272

hypersistence-utils-hibernate-55/src/main/java/io/hypersistence/utils/hibernate/type/array/internal/AbstractArrayTypeDescriptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void setParameterValues(Properties parameters) {
5555
}
5656

5757
@Override
58-
public boolean areEqual(Object one, Object another) {
58+
public boolean areEqual(T one, T another) {
5959
if (one == another) {
6060
return true;
6161
}
@@ -66,7 +66,7 @@ public boolean areEqual(Object one, Object another) {
6666
}
6767

6868
@Override
69-
public String toString(Object value) {
69+
public String toString(T value) {
7070
return Arrays.deepToString(ArrayUtil.wrapArray(value));
7171
}
7272

hypersistence-utils-hibernate-60/src/main/java/io/hypersistence/utils/hibernate/type/array/internal/AbstractArrayTypeDescriptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void setParameterValues(Properties parameters) {
5555
}
5656

5757
@Override
58-
public boolean areEqual(Object one, Object another) {
58+
public boolean areEqual(T one, T another) {
5959
if (one == another) {
6060
return true;
6161
}
@@ -66,7 +66,7 @@ public boolean areEqual(Object one, Object another) {
6666
}
6767

6868
@Override
69-
public String toString(Object value) {
69+
public String toString(T value) {
7070
return Arrays.deepToString(ArrayUtil.wrapArray(value));
7171
}
7272

0 commit comments

Comments
 (0)