Program: 10042
Project: 10042
Buggy source:
@SuppressWarnings("String_Node_Str") protected void setUp() throws MojoExecutionException, MojoFailureException {
  if (sourcePaths == null) {
    List<String> sourceRoots=project.getCompileSourceRoots();
    List<File> sources=new ArrayList<File>();
    for (    String sourceRoot : sourceRoots) {
      File source=new File(sourceRoot);
      if (source.exists()) {
        sources.add(source);
      }
    }
    sourcePaths=sources.toArray(new File[sources.size()]);
  }
  if (docSources == null && docClasses == null && docNamespaces == null) {
    getLog().warn("String_Node_Str");
    docSources=sourcePaths;
  }
  libraries=new ArrayList<File>();
  for (  Artifact artifact : MavenUtils.getDependencyArtifacts(project,resolver,localRepository,remoteRepositories,artifactMetadataSource)) {
    if ("String_Node_Str".equals(artifact.getType())) {
      libraries.add(artifact.getFile());
    }
  }
  if (output == null) {
    output=new File(build.getDirectory(),"String_Node_Str");
    if (!output.exists()) {
      output.mkdirs();
    }
  }
  if (configFile == null) {
    List<Resource> resources=build.getResources();
    for (    Resource resource : resources) {
      File cfg=new File(resource.getDirectory(),getConfigFileName());
      if (cfg.exists()) {
        configFile=cfg;
        break;
      }
    }
  }
  if (configFile == null) {
    URL url=getClass().getResource("String_Node_Str" + getConfigFileName());
    configFile=new File(build.getDirectory(),getConfigFileName());
    try {
      FileUtils.copyURLToFile(url,configFile);
    }
 catch (    IOException e) {
      throw new MojoExecutionException("String_Node_Str");
    }
  }
  if (!configFile.exists()) {
    throw new MojoExecutionException("String_Node_Str" + configFile);
  }
  if (fontsSnapshot == null) {
    URL url;
    if (MavenUtils.isMac()) {
      url=getClass().getResource("String_Node_Str");
    }
 else {
      url=getClass().getResource("String_Node_Str");
    }
    File fontsSer=new File(build.getDirectory(),"String_Node_Str");
    try {
      FileUtils.copyURLToFile(url,fontsSer);
    }
 catch (    IOException e) {
      throw new MojoExecutionException("String_Node_Str");
    }
    fontsSnapshot=fontsSer;
  }
  if (templatesPath == null) {
    templatesPath=generateDefaultTemplate();
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") protected void setUp() throws MojoExecutionException, MojoFailureException {
  if (sourcePaths == null) {
    List<String> sourceRoots=project.getCompileSourceRoots();
    List<File> sources=new ArrayList<File>();
    for (    String sourceRoot : sourceRoots) {
      File source=new File(sourceRoot);
      if (source.exists()) {
        sources.add(source);
      }
    }
    sourcePaths=sources.toArray(new File[sources.size()]);
  }
  if (docSources == null && docClasses == null && docNamespaces == null) {
    getLog().warn("String_Node_Str");
    docSources=sourcePaths;
  }
  libraries=new ArrayList<File>();
  for (  Artifact artifact : getDependencyArtifacts()) {
    if ("String_Node_Str".equals(artifact.getType())) {
      libraries.add(artifact.getFile());
    }
  }
  if (output == null) {
    output=new File(build.getDirectory(),"String_Node_Str");
    if (!output.exists()) {
      output.mkdirs();
    }
  }
  if (configFile == null) {
    List<Resource> resources=build.getResources();
    for (    Resource resource : resources) {
      File cfg=new File(resource.getDirectory(),getConfigFileName());
      if (cfg.exists()) {
        configFile=cfg;
        break;
      }
    }
  }
  if (configFile == null) {
    URL url=getClass().getResource("String_Node_Str" + getConfigFileName());
    configFile=new File(build.getDirectory(),getConfigFileName());
    try {
      FileUtils.copyURLToFile(url,configFile);
    }
 catch (    IOException e) {
      throw new MojoExecutionException("String_Node_Str");
    }
  }
  if (!configFile.exists()) {
    throw new MojoExecutionException("String_Node_Str" + configFile);
  }
  if (fontsSnapshot == null) {
    URL url;
    if (MavenUtils.isMac()) {
      url=getClass().getResource("String_Node_Str");
    }
 else {
      url=getClass().getResource("String_Node_Str");
    }
    File fontsSer=new File(build.getDirectory(),"String_Node_Str");
    try {
      FileUtils.copyURLToFile(url,fontsSer);
    }
 catch (    IOException e) {
      throw new MojoExecutionException("String_Node_Str");
    }
    fontsSnapshot=fontsSer;
  }
  if (templatesPath == null) {
    templatesPath=generateDefaultTemplate();
  }
  List<Namespace> fdkNamespaces=MavenUtils.getFdkNamespaces(getDependencyArtifacts(),build);
  if (this.namespaces != null) {
    fdkNamespaces.addAll(Arrays.asList(this.namespaces));
  }
  this.namespaces=fdkNamespaces.toArray(new Namespace[0]);
}