Skip to content

Commit 4caf395

Browse files
Try-With-Resources Problem wird für die Tests nicht von Spotbugs
untersucht
1 parent 66a3ebd commit 4caf395

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

de.bitctrl.dav.rest.server/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@ dependencies {
2222
testImplementation 'junit:junit:4.12'
2323
}
2424

25+
spotbugs {
26+
excludeFilter = file("$projectDir/config/spotbugsExclude.xml")
27+
}
28+
2529
mainClassName='de.bitctrl.dav.rest.server.DavRestServer'
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<FindBugsFilter
3+
xmlns="https://github.com/spotbugs/filter/3.0.0"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd">
6+
7+
<!-- Match all doublecheck violations in these methods of "AnotherClass". -->
8+
<Match>
9+
<Class name="RestTest" />
10+
<Bug code="OBL" />
11+
</Match>
12+
13+
</FindBugsFilter>

0 commit comments

Comments
 (0)