Skip to content

Commit 6e75a9a

Browse files
authored
chore: suppress new SpotBugs test findings
1 parent d83f51f commit 6e75a9a

7 files changed

Lines changed: 38 additions & 0 deletions

File tree

components/abstractions/spotBugsExcludeFilter.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,23 @@ xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubu
4646
<Bug pattern="RV_EXCEPTION_NOT_THROWN"/>
4747
<Class name="com.microsoft.kiota.serialization.SerializationHelpersTest" />
4848
</Match>
49+
<Match>
50+
<Bug pattern="NP_NONNULL_PARAM_VIOLATION" />
51+
<Or>
52+
<Class name="com.microsoft.kiota.MultiPartBodyTest" />
53+
<Class name="com.microsoft.kiota.PeriodAndDurationTest" />
54+
<Class name="com.microsoft.kiota.authentication.ApiKeyAuthenticationProviderTest" />
55+
<Class name="com.microsoft.kiota.serialization.DeserializationHelpersTest" />
56+
<Class name="com.microsoft.kiota.serialization.SerializationHelpersTest" />
57+
</Or>
58+
</Match>
59+
<Match>
60+
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" />
61+
<Or>
62+
<Class name="com.microsoft.kiota.serialization.mocks.TestEntity$1" />
63+
<Class name="com.microsoft.kiota.serialization.mocks.TestBackedModelEntity$1" />
64+
</Or>
65+
</Match>
4966
<Match>
5067
<Bug pattern="EI_EXPOSE_REP" />
5168
<Or>

components/bundle/spotBugsExcludeFilter.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@
33
xmlns="https://github.com/spotbugs/filter/3.0.0"
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd">
6+
<Match>
7+
<Bug pattern="NP_NONNULL_PARAM_VIOLATION" />
8+
<Class name="com.microsoft.kiota.bundle.BundleTests" />
9+
</Match>
610
</FindBugsFilter>

components/http/okHttp/gradle/dependencies.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dependencies {
66
testImplementation(libs.org.mockito.mockito.core)
77
testImplementation(libs.com.squareup.okhttp3.logging.interceptor)
88
testImplementation(libs.com.squareup.okhttp3.mockwebserver)
9+
testImplementation(libs.io.github.std.uritemplate.std.uritemplate)
910

1011

1112
// This dependency is used internally, and not exposed to consumers on their own compile classpath.

components/http/okHttp/spotBugsExcludeFilter.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
<Bug pattern="CT_CONSTRUCTOR_THROW" />
3636
<Class name="~com\.microsoft\.kiota\.http\.OkHttpRequestAdapterTest.*" />
3737
</Match>
38+
<Match>
39+
<Bug pattern="NP_NONNULL_PARAM_VIOLATION" />
40+
<Class name="com.microsoft.kiota.http.OkHttpRequestAdapterTest" />
41+
</Match>
3842
<Match>
3943
<Bug pattern="CT_CONSTRUCTOR_THROW" />
4044
<Class name="com.microsoft.kiota.http.middleware.UserAgentHandlerTest" />

components/serialization/form/spotBugsExcludeFilter.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,8 @@ xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubu
3636
<Bug pattern="RV_EXCEPTION_NOT_THROWN"/>
3737
<Class name="com.microsoft.kiota.serialization.SerializationWriterFactoryTests" />
3838
</Match>
39+
<Match>
40+
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" />
41+
<Class name="com.microsoft.kiota.serialization.mocks.TestEntity$1" />
42+
</Match>
3943
</FindBugsFilter>

components/serialization/json/spotBugsExcludeFilter.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,8 @@ xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubu
4141
<Class name="com.microsoft.kiota.serialization.JsonSerializationWriterFactory" />
4242
</Or>
4343
</Match>
44+
<Match>
45+
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" />
46+
<Class name="com.microsoft.kiota.serialization.mocks.TestEntity$1" />
47+
</Match>
4448
</FindBugsFilter>

components/serialization/multipart/spotBugsExcludeFilter.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,8 @@ xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubu
2424
<Bug pattern="RV_EXCEPTION_NOT_THROWN"/>
2525
<Class name="com.microsoft.kiota.serialization.MultipartSerializationWriterTests" />
2626
</Match>
27+
<Match>
28+
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" />
29+
<Class name="com.microsoft.kiota.serialization.mocks.TestEntity$1" />
30+
</Match>
2731
</FindBugsFilter>

0 commit comments

Comments
 (0)