diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2016-04-25 16:03:45 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2016-04-25 16:03:45 +0200 |
commit | 93f209dd65d5c05fc2cb61916a850940499c9261 (patch) | |
tree | 6529ed391e5e0d848cb39121006360f0e773e348 /src/compiler/scala/tools/nsc/settings/Warnings.scala | |
parent | 2c1d1ad26dd23fe619d6af25d642c7adf7af143b (diff) | |
download | scala-93f209dd65d5c05fc2cb61916a850940499c9261.tar.gz scala-93f209dd65d5c05fc2cb61916a850940499c9261.tar.bz2 scala-93f209dd65d5c05fc2cb61916a850940499c9261.zip |
More efficient code for deciding if a mixin forwarder is needed (#5116)
Also adds a warning on junit test methods that compile as default
methods.
Diffstat (limited to 'src/compiler/scala/tools/nsc/settings/Warnings.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/settings/Warnings.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/settings/Warnings.scala b/src/compiler/scala/tools/nsc/settings/Warnings.scala index 79795bcc17..310025a336 100644 --- a/src/compiler/scala/tools/nsc/settings/Warnings.scala +++ b/src/compiler/scala/tools/nsc/settings/Warnings.scala @@ -25,6 +25,8 @@ trait Warnings { // currently considered too noisy for general use val warnUnusedImport = BooleanSetting("-Ywarn-unused-import", "Warn when imports are unused.") + val nowarnDefaultJunitMethods = BooleanSetting("-Ynowarn-default-junit-methods", "Don't warn when a JUnit @Test method is generated as a default method (not supported in JUnit 4).") + // Experimental lint warnings that are turned off, but which could be turned on programmatically. // They are not activated by -Xlint and can't be enabled on the command line because they are not // created using the standard factory methods. |