Commit 3af7a49
committed
Fix 2.12 warnings
- Unused imports
- Unused code (in tests)
- Local var never set (convert to val)
[warn] scala-xml/jvm/src/test/scala/scala/xml/XMLSyntaxTest.scala:4: Unused import
[warn] import org.junit.Ignore
[warn]
[warn] jvm/src/test/scala/scala/xml/parsing/Ticket0632Test.scala:4: Unused import
[warn] import org.junit.Ignore
[warn] ^
[warn] shared/src/test/scala/scala/xml/PatternMatching.scala:83: local var m in method nodeSeq is never set: consider using immutable val
[warn] var m: PartialFunction[Any, Any] = { case SafeNodeSeq(s @ _*) => s }
[warn] ^
[warn] shared/src/test/scala/scala/xml/Transformers.scala:6: Unused import
[warn] import org.junit.Assert.assertTrue
[warn] ^
[warn] shared/src/test/scala/scala/xml/XMLTest.scala:264: local val z in method XmlEy is never used
[warn] val z = ax \ "@{the namespace from outer space}foo"
[warn] ^
[warn] three warnings found
[warn] 3 warnings found1 parent b7f38c6 commit 3af7a49
File tree
5 files changed
+1
-5
lines changed- jvm/src/test/scala/scala/xml
- parsing
5 files changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
265 | 264 | | |
266 | 265 | | |
267 | 266 | | |
| |||
0 commit comments