Skip to content

Commit 4092502

Browse files
committed
Fix several Sonar warnings
Signed-off-by: Michael Edgar <michael@xlate.io>
1 parent de1614c commit 4092502

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

core/src/main/java/io/smallrye/openapi/runtime/io/JsonIO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ default void mapObject(BaseModel<?> object, OB nodeBuilder) {
6565
@SuppressWarnings("unchecked")
6666
public static <V, A extends V, O extends V, AB, OB> JsonIO<V, A, O, AB, OB> newInstance(
6767
SmallRyeOpenAPI.JsonProvider jsonProvider, OpenApiConfig config) {
68-
return (JsonIO<V, A, O, AB, OB>) newInstanceRaw(jsonProvider, config);
68+
return newInstanceRaw(jsonProvider, config);
6969
}
7070

7171
@SuppressWarnings("rawtypes")

core/src/test/java/io/smallrye/openapi/runtime/io/Jackson2JsonIOTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ static boolean jackson2Present() {
2424
}
2525
}
2626

27+
@Override
2728
@BeforeEach
2829
void setup(TestInfo testInfo) {
2930
super.setup(testInfo);

core/src/test/java/io/smallrye/openapi/runtime/io/Jackson3JsonIOTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ static boolean jackson3Present() {
2323
}
2424
}
2525

26+
@Override
2627
@BeforeEach
2728
void setup(TestInfo testInfo) {
2829
super.setup(testInfo);

0 commit comments

Comments
 (0)