Skip to content

Commit 4a2d6f8

Browse files
committed
The procedure syntax is deprecated
Instead, add `: Unit =` to explicitly declare return type.
1 parent 2017fa3 commit 4a2d6f8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

jvm/src/test/scala/scala/xml/XMLTest.scala

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -820,55 +820,55 @@ class XMLTestJVM {
820820
}
821821

822822
@UnitTest
823-
def xTokenTest {
823+
def xTokenTest: Unit = {
824824
val x = xml.parsing.ConstructingParser.fromSource(toSource("a"), false)
825825
assertEquals((): Unit, x.xToken('b'))
826826
}
827827

828828
@UnitTest(expected = classOf[FatalError])
829-
def xCharDataFailure {
829+
def xCharDataFailure: Unit = {
830830
val x = xml.parsing.ConstructingParser.fromSource(toSource(""), false)
831831

832832
x.xCharData
833833
}
834834

835835
@UnitTest(expected = classOf[FatalError])
836-
def xCommentFailure {
836+
def xCommentFailure: Unit = {
837837
val x = xml.parsing.ConstructingParser.fromSource(toSource(""), false)
838838

839839
x.xComment
840840
}
841841

842842
@UnitTest
843-
def xmlProcInstrTest {
843+
def xmlProcInstrTest: Unit = {
844844
val x = xml.parsing.ConstructingParser.fromSource(toSource("aa"), false)
845845

846846
assertEquals(new UnprefixedAttribute("aa", Text(""), Null), x.xmlProcInstr)
847847
}
848848

849849
@UnitTest(expected = classOf[FatalError])
850-
def notationDeclFailure {
850+
def notationDeclFailure: Unit = {
851851
val x = xml.parsing.ConstructingParser.fromSource(toSource(""), false)
852852

853853
x.notationDecl
854854
}
855855

856856
@UnitTest
857-
def pubidLiteralTest {
857+
def pubidLiteralTest: Unit = {
858858
val x = xml.parsing.ConstructingParser.fromSource(toSource(""), false)
859859

860860
assertEquals("", x.pubidLiteral)
861861
}
862862

863863
@UnitTest
864-
def xAttributeValueTest {
864+
def xAttributeValueTest: Unit = {
865865
val x = xml.parsing.ConstructingParser.fromSource(toSource("'"), false)
866866

867867
assertEquals("", x.xAttributeValue)
868868
}
869869

870870
@UnitTest
871-
def xEntityValueTest {
871+
def xEntityValueTest: Unit = {
872872
val x = xml.parsing.ConstructingParser.fromSource(toSource(""), false)
873873

874874
assertEquals("", x.xEntityValue)

0 commit comments

Comments
 (0)