From 54d11fe5451a9f26207ce283f2df1114c89384dd Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Fri, 29 Mar 2013 19:05:13 +0100 Subject: SI-7312 @deprecatedInheritance now ignores same-file subclasses This allows us to deprecate external inheritances as a prelude to sealing a class, without enduring the warnings ourselved in interlude. --- src/library/scala/deprecatedInheritance.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/library') diff --git a/src/library/scala/deprecatedInheritance.scala b/src/library/scala/deprecatedInheritance.scala index 70065560b1..7d20219d4d 100644 --- a/src/library/scala/deprecatedInheritance.scala +++ b/src/library/scala/deprecatedInheritance.scala @@ -11,7 +11,8 @@ package scala /** An annotation that designates that inheriting from a class is deprecated. * * This is usually done to warn about a non-final class being made final in a future version. - * Sub-classing such a class then generates a warning. + * Sub-classing such a class then generates a warning. No warnings are generated if the + * subclass is in the same compilation unit. * * @param message the message to print during compilation if the class was sub-classed * @param since a string identifying the first version in which inheritance was deprecated -- cgit v1.2.3