Commit 8ea1edd
CAMEL-23271: Use try-with-resources for CamelContext in CamelYamlParser
CamelContext implements AutoCloseable, so use try-with-resources
instead of manual stop in finally block. Removes the need for
@SuppressWarnings.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 0bbb25d commit 8ea1edd
File tree
1 file changed
+3
-11
lines changed- dsl/camel-yaml-dsl/camel-yaml-dsl-validator/src/main/java/org/apache/camel/dsl/yaml/validator
1 file changed
+3
-11
lines changedLines changed: 3 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 53 | + | |
| 54 | + | |
59 | 55 | | |
60 | | - | |
| 56 | + | |
61 | 57 | | |
62 | 58 | | |
63 | 59 | | |
| |||
103 | 99 | | |
104 | 100 | | |
105 | 101 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | 102 | | |
111 | 103 | | |
112 | 104 | | |
| |||
0 commit comments