[Minor] changed DBC assertNotEquals and assertEquals to take args T

This commit is contained in:
Robert von Burg 2014-02-25 21:27:53 +01:00
parent a4c82e6704
commit 127ab93ea7
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ public enum DBC {
PRE, INTERIM, POST;
public void assertEquals(String msg, Object value1, Object value2) {
public <T> void assertEquals(String msg, T value1, T value2) {
if (value1 == null && value2 == null)
return;
@ -42,7 +42,7 @@ public enum DBC {
throw new DbcException(ex);
}
public void assertNotEquals(String msg, Object value1, Object value2) {
public <T> void assertNotEquals(String msg, T value1, T value2) {
if (value1 != null && !value1.equals(value2))
return;