@Override
  public void store(Issue issue) {
    if (issue.primaryLocation().inputComponent() instanceof DefaultInputFile) {
      DefaultInputFile defaultInputFile = (DefaultInputFile) issue.primaryLocation().inputComponent();
      if (shouldSkipStorage(defaultInputFile)) {
        return;
      }
      defaultInputFile.setPublished(true);
    }
    moduleIssues.initAndAddIssue(issue);
  }
@ Override public void store ( Issue issue ) { if ( issue . primaryLocation ( ) . inputComponent ( ) instanceof DefaultInputFile ) { DefaultInputFile defaultInputFile = ( DefaultInputFile ) issue . primaryLocation ( ) . inputComponent ( ) ; if ( shouldSkipStorage ( defaultInputFile ) ) { return ; } defaultInputFile . setPublished ( true ) ; } moduleIssues . initAndAddIssue ( issue ) ; }
Thread safe assuming that each issues for each file are only written once.