Fixed some spotbugs, excluded some bug categories to be consistent with Files

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
Tobias Kaminsky 2021-04-07 17:09:36 +02:00 committed by tobiasKaminsky
parent a57253e0df
commit 6fb5d3f9bb
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
3 changed files with 19 additions and 2 deletions

View file

@ -523,6 +523,7 @@ public class ProfileController extends BaseController {
});
}
@SuppressWarnings({"IOI_USE_OF_FILE_STREAM_CONSTRUCTORS"}) // only possible with API26
private void saveBitmapAndPassToImagePicker(Bitmap bitmap) {
File file = null;
try {

View file

@ -29,7 +29,9 @@ import org.parceler.Parcel;
import java.util.ArrayList;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Parcel
@Data
@JsonObject

View file

@ -23,9 +23,23 @@
<FindBugsFilter>
<Match>
<Class name="~.*\.Manifest\$.*"/>
<Class name="~.*\.Manifest\$.*" />
</Match>
<Match>
<Class name="~.*\.R\$.*"/>
<Class name="~.*\.R\$.*" />
</Match>
<Match>
<Class name="~.*\$\$Parcelable.*" />
</Match>
<!-- Data bindings autogenerated classes -->
<Match>
<Or>
<Class name="~.*BindingImpl" />
<Class name="~.*\.DataBinderMapperImpl" />
<Class name="~.*Binding" />
</Or>
</Match>
<Bug pattern="PATH_TRAVERSAL_IN" />
</FindBugsFilter>