Commit 37741ac
committed
Prefer OpenTelemetryAssertions.assertThat over dual static imports
OpenTelemetryAssertions extends org.assertj.core.api.Assertions, so all
AssertJ assertThat overloads are already in scope via inheritance when
OpenTelemetryAssertions.assertThat is statically imported. Importing both
makes call sites harder to read and can become ambiguous if overloads
overlap.
Add a style-guide note and remove the redundant Assertions.assertThat
static import from the three files currently doing both.1 parent dfc6acc commit 37741ac
4 files changed
Lines changed: 4 additions & 3 deletions
File tree
- docs/contributing
- instrumentation/kubernetes-client-7.0/javaagent/src
- test/java/io/opentelemetry/javaagent/instrumentation/kubernetesclient/v7_0
- version20Test/java/io/opentelemetry/javaagent/instrumentation/kubernetesclient/v7_0
- testing-common/src/main/java/io/opentelemetry/instrumentation/testing/junit/http
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
206 | 210 | | |
207 | 211 | | |
208 | 212 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
0 commit comments