diff options
author | Som Snytt <som.snytt@gmail.com> | 2016-10-15 14:22:51 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2016-10-15 14:22:51 -0700 |
commit | c71dfa1eefa65d4e8cd61063ea68482af4314913 (patch) | |
tree | ccc3a508da12c46d7b1dbce11546c457358136bf /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | |
parent | 9d3f0777ff883a7c59da3fa7fee156890f51701e (diff) | |
download | scala-c71dfa1eefa65d4e8cd61063ea68482af4314913.tar.gz scala-c71dfa1eefa65d4e8cd61063ea68482af4314913.tar.bz2 scala-c71dfa1eefa65d4e8cd61063ea68482af4314913.zip |
SI-6978 No linting of Java parens
Don't lint overriding of nullary by non-nullary
when non-nullary is Java-defined. They can't help it.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala index 106b076eef..116c932365 100644 --- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala +++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala @@ -472,7 +472,7 @@ abstract class RefChecks extends Transform { checkOverrideTypes() checkOverrideDeprecated() if (settings.warnNullaryOverride) { - if (other.paramss.isEmpty && !member.paramss.isEmpty) { + if (other.paramss.isEmpty && !member.paramss.isEmpty && !member.isJavaDefined) { reporter.warning(member.pos, "non-nullary method overrides nullary method") } } |