Skip to content

Commit 3458610

Browse files
lrytzadriaanm
authored andcommitted
big overhaul of annotations implementation.
1 parent d3638e5 commit 3458610

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/library/scala/xml/Utility.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@ object Utility extends AnyRef with parsing.TokenTests
8282
case _ => n
8383
}
8484

85-
/** @deprecated a string might also be Atom(s) - define your own conversion
86-
*/
87-
@deprecated def view(s: String): Text = Text(s)
85+
@deprecated("a string might also be Atom(s) - define your own conversion")
86+
def view(s: String): Text = Text(s)
8887

8988
/**
9089
* Escapes the characters < > & and " from string.

test/files/run/t1500.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ object Test {
2929
/** Check annotations to decide whether tpe1 <:< tpe2 */
3030
def annotationsConform(tpe1: Type, tpe2: Type): Boolean = {
3131

32-
tpe1.attributes.forall(a1 => tpe2.attributes.forall(a2 => a1.atp <:< a2.atp))
32+
tpe1.annotations.forall(a1 => tpe2.annotations.forall(a2 => a1.atp <:< a2.atp))
3333

3434
}
3535
}

test/files/run/t1501.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ object Test {
4040
/** Check annotations to decide whether tpe1 <:< tpe2 */
4141
def annotationsConform(tpe1: Type, tpe2: Type): Boolean = {
4242

43-
tpe1.attributes.forall(a1 => tpe2.attributes.forall(a2 => a1.atp <:< a2.atp))
43+
tpe1.annotations.forall(a1 => tpe2.annotations.forall(a2 => a1.atp <:< a2.atp))
4444

4545
}
4646
}

0 commit comments

Comments
 (0)