Skip to content

Commit

Permalink
Merge pull request square#433 from square/jw/types-comparison
Browse files Browse the repository at this point in the history
Use Types.isSameType for comparing TypeMirrors.
  • Loading branch information
JakeWharton committed Aug 26, 2014
2 parents b088b28 + 61e471d commit 65573a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ private Map<String, List<ExecutableElement>> providerMethodsByClass(RoundEnviron
TypeElement moduleType = (TypeElement) module;

// Verify that all modules do not extend from non-Object types.
if (!moduleType.getSuperclass().equals(objectType)) {
if (!types.isSameType(moduleType.getSuperclass(), objectType)) {
error("Modules must not extend from other classes: " + elementToString(module), module);
}

Expand Down

0 comments on commit 65573a5

Please sign in to comment.