aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2020-12-04 10:33:59 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2020-12-22 10:52:58 +0100
commitd6fb42ebd63c9b55d14773d203896af8eaa62d82 (patch)
tree63afa5d68d380197205e5305a44db6107304fbbc
parentf7cc2ad5709d679dd57c0baef72d7aad165254d2 (diff)
downloadjgit-d6fb42ebd63c9b55d14773d203896af8eaa62d82.tar.gz
jgit-d6fb42ebd63c9b55d14773d203896af8eaa62d82.zip
[spotbugs] Silence warning about unwritten field written by gson
It seems spotbugs does not recognize that this data is written by gson. Change-Id: I0704d489971c0ab6ec398083f211c409061e7661 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.jgit.lfs.server/findBugs/FindBugsExcludeFilter.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.jgit.lfs.server/findBugs/FindBugsExcludeFilter.xml b/org.eclipse.jgit.lfs.server/findBugs/FindBugsExcludeFilter.xml
new file mode 100644
index 0000000000..c5f3f80139
--- /dev/null
+++ b/org.eclipse.jgit.lfs.server/findBugs/FindBugsExcludeFilter.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<FindBugsFilter>
+<!-- Field is written by gson, seems like spotbugs doesn't recognize this -->
+ <Match>
+ <Class name="org.eclipse.jgit.lfs.server.LfsObject" />
+ <Bug pattern="UWF_UNWRITTEN_FIELD" />
+ </Match>
+</FindBugsFilter>