Commit 6827e171 authored by Hallvard Trætteberg's avatar Hallvard Trætteberg
Browse files

Handle intentional (spot) bug

parent e0b12ba2
package fxutil;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
* Annontation to suppress spotbugs warnings.
* Must have this specific name to be considered by spotbugs.
public @interface SuppressFBWarnings {
* The set of FindBugs warnings that are to be suppressed in
* annotated element. The value can be a bug category, kind or pattern.
String[] value() default {};
* Optional documentation of the reason why the warning is suppressed.
String justification() default "";
package fxutil.doc;
import fxutil.SuppressFBWarnings;
......@@ -35,13 +36,16 @@ public class FileMenuController {
* @param documentStorage the document storage
value = "EI_EXPOSE_REP2",
justification = "We intentioanlly don't deep copy documentStorage")
public void setDocumentStorage(final DocumentStorage<File> documentStorage) {
this.documentStorage = documentStorage;
if (importMenu != null) {
public void handleNewAction() {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment