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