Skip to content

Commit

Permalink
Rename generic type parameter that hides another type parameter
Browse files Browse the repository at this point in the history
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7235
  • Loading branch information
minborg authored and Henri Sara committed Nov 5, 2016
1 parent e6d6548 commit 3f30e5b
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -42,16 +42,16 @@ public void assertObjectEquals(Object o1, Object o2) {
}
};

public class IntrospectorEqualsAsserter<T> implements EqualsAsserter<T> {
public class IntrospectorEqualsAsserter<C> implements EqualsAsserter<C> {

private Class<T> c;
private final Class<C> c;

public IntrospectorEqualsAsserter(Class<T> c) {
public IntrospectorEqualsAsserter(Class<C> c) {
this.c = c;
}

@Override
public void assertObjectEquals(T o1, T o2) {
public void assertObjectEquals(C o1, C o2) {
try {
BeanInfo bi = Introspector.getBeanInfo(c);
for (PropertyDescriptor pd : bi.getPropertyDescriptors()) {
Expand Down

0 comments on commit 3f30e5b

Please sign in to comment.