Skip to content

Commit

Permalink
Override the correct method.
Browse files Browse the repository at this point in the history
  • Loading branch information
smillst committed Apr 3, 2019
1 parent 15c2161 commit f5979af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ protected void checkConstructorResult(
}

@Override
protected void checkSuperConstructorCall(MethodInvocationTree superCall) {
protected void checkThisOrSuperConstructorCall(
MethodInvocationTree superCall, @CompilerMessageKey String errorKey) {
// Nothing to check
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ protected void checkConstructorResult(
}

@Override
protected void checkSuperConstructorCall(MethodInvocationTree superCall) {
protected void checkThisOrSuperConstructorCall(
MethodInvocationTree superCall, @CompilerMessageKey String errorKey) {
if (isInUniqueConstructor()) {
// Check if a call to super() might create an alias: that
// happens when the parent's respective constructor is not @Unique.
Expand Down

0 comments on commit f5979af

Please sign in to comment.