|
1 |
| --- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:2:6 -------------------------------------------------- |
2 |
| -2 | def f = s.trim // warn |
| 1 | +-- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:4:6 -------------------------------------------------- |
| 2 | +4 | def f = s.trim // warn |
3 | 3 | | ^
|
4 |
| - |Public method f exposes a flexible type (String)? in its inferred signature. Consider annotating the type as String or String | Null explicitly |
5 |
| --- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:6:6 -------------------------------------------------- |
6 |
| -6 | def h = (s.trim, s.length) // warn |
7 |
| - | ^ |
8 |
| - |Public method h exposes a flexible type ((String)?, Int) in its inferred signature. Consider annotating the type explicitly |
9 |
| --- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:7:6 -------------------------------------------------- |
10 |
| -7 | val ss = s.replace("a", "A") // warn |
11 |
| - | ^ |
12 |
| - |Public value ss exposes a flexible type (String)? in its inferred signature. Consider annotating the type as String or String | Null explicitly |
| 4 | + | method f exposes a flexible type in its inferred result type (String)?. Consider annotating the type explicitly |
13 | 5 | -- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:8:6 --------------------------------------------------
|
14 |
| -8 | val ss2 = Seq(s.trim) // warn |
| 6 | +8 | def h = (s.trim, s.length) // warn |
15 | 7 | | ^
|
16 |
| - |Public value ss2 exposes a flexible type Seq[(String)?] in its inferred signature. Consider annotating the type explicitly |
17 |
| --- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:16:6 ------------------------------------------------- |
18 |
| -16 | def f = s2.trim // warn |
| 8 | + |method h exposes a flexible type in its inferred result type ((String)?, Int). Consider annotating the type explicitly |
| 9 | +-- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:9:16 ------------------------------------------------- |
| 10 | +9 | protected def i = s.trim // warn |
| 11 | + | ^ |
| 12 | + | method i exposes a flexible type in its inferred result type (String)?. Consider annotating the type explicitly |
| 13 | +-- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:11:19 ------------------------------------------------ |
| 14 | +11 | private[foo] def k = s.trim // warn |
| 15 | + | ^ |
| 16 | + | method k exposes a flexible type in its inferred result type (String)?. Consider annotating the type explicitly |
| 17 | +-- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:12:6 ------------------------------------------------- |
| 18 | +12 | val ss = s.replace("a", "A") // warn |
19 | 19 | | ^
|
20 |
| - |Public method f exposes a flexible type (String)? in its inferred signature. Consider annotating the type as String or String | Null explicitly |
21 |
| --- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:20:6 ------------------------------------------------- |
22 |
| -20 | def h = (s2.trim, s2.length) // warn |
| 20 | + | value ss exposes a flexible type in its inferred result type (String)?. Consider annotating the type explicitly |
| 21 | +-- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:13:6 ------------------------------------------------- |
| 22 | +13 | val ss2 = Seq(s.trim) // warn |
23 | 23 | | ^
|
24 |
| - |Public method h exposes a flexible type ((String)?, Int) in its inferred signature. Consider annotating the type explicitly |
| 24 | + |value ss2 exposes a flexible type in its inferred result type Seq[(String)?]. Consider annotating the type explicitly |
25 | 25 | -- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:21:6 -------------------------------------------------
|
26 |
| -21 | val ss = s2.replace("a", "A") // warn |
| 26 | +21 | def f = s2.trim // warn |
| 27 | + | ^ |
| 28 | + | method f exposes a flexible type in its inferred result type (String)?. Consider annotating the type explicitly |
| 29 | +-- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:25:6 ------------------------------------------------- |
| 30 | +25 | def h = (s2.trim, s2.length) // warn |
27 | 31 | | ^
|
28 |
| - |Public value ss exposes a flexible type (String)? in its inferred signature. Consider annotating the type as String or String | Null explicitly |
29 |
| --- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:22:6 ------------------------------------------------- |
30 |
| -22 | val ss2 = Seq(s2.trim) // warn |
| 32 | + |method h exposes a flexible type in its inferred result type ((String)?, Int). Consider annotating the type explicitly |
| 33 | +-- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:26:6 ------------------------------------------------- |
| 34 | +26 | val ss = s2.replace("a", "A") // warn |
31 | 35 | | ^
|
32 |
| - |Public value ss2 exposes a flexible type Seq[(String)?] in its inferred signature. Consider annotating the type explicitly |
33 |
| --- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:27:4 ------------------------------------------------- |
34 |
| -27 |def f = s2.trim // warn |
| 36 | + | value ss exposes a flexible type in its inferred result type (String)?. Consider annotating the type explicitly |
| 37 | +-- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:27:6 ------------------------------------------------- |
| 38 | +27 | val ss2 = Seq(s2.trim) // warn |
| 39 | + | ^ |
| 40 | + |value ss2 exposes a flexible type in its inferred result type Seq[(String)?]. Consider annotating the type explicitly |
| 41 | +-- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:32:4 ------------------------------------------------- |
| 42 | +32 |def f = s2.trim // warn |
35 | 43 | | ^
|
36 |
| - |Public method f exposes a flexible type (String)? in its inferred signature. Consider annotating the type as String or String | Null explicitly |
37 |
| --- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:31:4 ------------------------------------------------- |
38 |
| -31 |def h = (s2.trim, s2.length) // warn |
| 44 | + | method f exposes a flexible type in its inferred result type (String)?. Consider annotating the type explicitly |
| 45 | +-- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:36:4 ------------------------------------------------- |
| 46 | +36 |def h = (s2.trim, s2.length) // warn |
39 | 47 | | ^
|
40 |
| - |Public method h exposes a flexible type ((String)?, Int) in its inferred signature. Consider annotating the type explicitly |
41 |
| --- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:32:4 ------------------------------------------------- |
42 |
| -32 |val ss = s2.replace("a", "A") // warn |
| 48 | + |method h exposes a flexible type in its inferred result type ((String)?, Int). Consider annotating the type explicitly |
| 49 | +-- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:37:4 ------------------------------------------------- |
| 50 | +37 |val ss = s2.replace("a", "A") // warn |
43 | 51 | | ^
|
44 |
| - |Public value ss exposes a flexible type (String)? in its inferred signature. Consider annotating the type as String or String | Null explicitly |
45 |
| --- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:33:4 ------------------------------------------------- |
46 |
| -33 |val ss2 = Seq(s2.trim) // warn |
| 52 | + | value ss exposes a flexible type in its inferred result type (String)?. Consider annotating the type explicitly |
| 53 | +-- Warning: tests/explicit-nulls/warn/expose-flexible-types.scala:38:4 ------------------------------------------------- |
| 54 | +38 |val ss2 = Seq(s2.trim) // warn |
47 | 55 | | ^
|
48 |
| - |Public value ss2 exposes a flexible type Seq[(String)?] in its inferred signature. Consider annotating the type explicitly |
| 56 | + |value ss2 exposes a flexible type in its inferred result type Seq[(String)?]. Consider annotating the type explicitly |
0 commit comments