nus-yam/ex-repair huggingface dataset:
Program: 28485
Project: 28485
Buggy source:
/** 
 * The component has been injected with any dependency and will be placed into commission by the subsystem.
 */
@Override public void postConstruct(){
  NetworkConfig networkConfig=config.getNetworkConfig();
  configListener=new DynamicConfigListener(config,logger);
  ObservableBean bean=(ObservableBean)ConfigSupport.getImpl(networkConfig.getNetworkListeners());
  bean.addListener(configListener);
  bean=(ObservableBean)ConfigSupport.getImpl(config.getHttpService());
  bean.addListener(configListener);
  transactions.addListenerForType(SystemProperty.class,configListener);
  configListener.setGrizzlyService(this);
  try {
    boolean isAtLeastOneProxyStarted=false;
    futures=new ArrayList<Future<Result<Thread>>>();
    for (    NetworkListener listener : networkConfig.getNetworkListeners().getNetworkListener()) {
      isAtLeastOneProxyStarted|=(createNetworkProxy(listener) != null);
    }
    if (isAtLeastOneProxyStarted) {
      registerContainerAdapters();
    }
  }
 catch (  RuntimeException e) {
    logger.log(Level.SEVERE,KernelLoggerInfo.grizzlyCantStart,e);
    for (    NetworkProxy proxy : proxies) {
      try {
        proxy.stop();
      }
 catch (      Exception proxyStopException) {
        logger.log(Level.SEVERE,KernelLoggerInfo.grizzlyCloseException,new Object[]{proxy.getPort(),proxyStopException});
      }
    }
    throw e;
  }
  registerMonitoringStatsProviders();
}

Fixed version (ground truth):
/** 
 * The component has been injected with any dependency and will be placed into commission by the subsystem.
 */
@Override public void postConstruct(){
  events.register(this);
  final NetworkConfig networkConfig=config.getNetworkConfig();
  configListener=new DynamicConfigListener(config,LOGGER);
  ObservableBean bean=(ObservableBean)ConfigSupport.getImpl(networkConfig.getNetworkListeners());
  bean.addListener(configListener);
  bean=(ObservableBean)ConfigSupport.getImpl(config.getHttpService());
  bean.addListener(configListener);
  transactions.addListenerForType(SystemProperty.class,configListener);
  configListener.setGrizzlyService(this);
  try {
    boolean isAtLeastOneProxyStarted=false;
    futures=new ArrayList<Future<Result<Thread>>>();
    for (    NetworkListener listener : networkConfig.getNetworkListeners().getNetworkListener()) {
      isAtLeastOneProxyStarted|=(createNetworkProxy(listener) != null);
    }
    if (isAtLeastOneProxyStarted) {
      registerContainerAdapters();
    }
  }
 catch (  RuntimeException e) {
    LOGGER.log(Level.SEVERE,KernelLoggerInfo.grizzlyCantStart,e);
    for (    NetworkProxy proxy : proxies) {
      try {
        proxy.stop();
      }
 catch (      Exception proxyStopException) {
        LOGGER.log(Level.SEVERE,KernelLoggerInfo.grizzlyCloseException,new Object[]{proxy.getPort(),proxyStopException});
      }
    }
    throw e;
  }
  registerMonitoringStatsProviders();
}
Program: 28488
Project: 28488
Buggy source:
/** 
 * This will return a list of jobs which have crossed the JOBS_RETENTION_PERIOD and need to be purged
 * @return  list of jobs to be purged
 */
public synchronized ArrayList<JobInfo> getExpiredJobs(File file){
  ArrayList<JobInfo> expiredJobs=new ArrayList<JobInfo>();
  JobInfos jobInfos=getCompletedJobs(file);
  for (  JobInfo job : jobInfos.getJobInfoList()) {
    long executedTime=job.commandExecutionDate;
    long currentTime=System.currentTimeMillis();
    long jobsRetentionPeriod=86400000;
    managedJobConfig=domain.getExtensionByType(ManagedJobConfig.class);
    jobsRetentionPeriod=convert(managedJobConfig.getJobRetentionPeriod());
    if (currentTime - executedTime > jobsRetentionPeriod && job.state.equals(AdminCommandState.State.COMPLETED.name())) {
      expiredJobs.add(job);
    }
  }
  return expiredJobs;
}

Fixed version (ground truth):
/** 
 * This will return a list of jobs which have crossed the JOBS_RETENTION_PERIOD and need to be purged
 * @return  list of jobs to be purged
 */
public ArrayList<JobInfo> getExpiredJobs(File file){
  ArrayList<JobInfo> expiredJobs=new ArrayList<JobInfo>();
synchronized (file) {
    JobInfos jobInfos=getCompletedJobs(file);
    for (    JobInfo job : jobInfos.getJobInfoList()) {
      long executedTime=job.commandExecutionDate;
      long currentTime=System.currentTimeMillis();
      long jobsRetentionPeriod=86400000;
      managedJobConfig=domain.getExtensionByType(ManagedJobConfig.class);
      jobsRetentionPeriod=convert(managedJobConfig.getJobRetentionPeriod());
      if (currentTime - executedTime > jobsRetentionPeriod && job.state.equals(AdminCommandState.State.COMPLETED.name())) {
        expiredJobs.add(job);
      }
    }
  }
  return expiredJobs;
}
Program: 28489
Project: 28489
Buggy source:
public Object run(Http param) throws TransactionFailure {
  Spdy spdy=param.createChild(Spdy.class);
  if (maxStreams != null) {
    int maxStreamsLocal=Integer.parseInt(maxStreams);
    if (maxStreamsLocal > 0) {
      spdy.setMaxConcurrentStreams(maxStreamsLocal);
    }
  }
  if (initialWindowSize != null) {
    int initialWindowSizeLocal=Integer.parseInt(initialWindowSize);
    if (initialWindowSizeLocal > 0) {
      spdy.setInitialWindowSizeInBytes(initialWindowSizeLocal);
    }
  }
  if (maxFrameLengthInBytes != null) {
    int maxFrameLengthInBytesLocal=Integer.parseInt(maxFrameLengthInBytes);
    if (maxFrameLengthInBytesLocal > 0 && maxFrameLengthInBytesLocal < (1 << 24)) {
      spdy.setMaxFrameLengthInBytes(maxFrameLengthInBytesLocal);
    }
  }
  if (mode != null) {
    String modeLocal=mode.toLowerCase(Locale.US);
    spdy.setMode(modeLocal);
  }
  param.setSpdy(spdy);
  return spdy;
}

Fixed version (ground truth):
@Override public Object run(final Transports transports) throws TransactionFailure {
  final Transport spdyTransport=transports.createChild(Transport.class);
  spdyTransport.setName(SPDY_TRANSPORT_NAME);
  spdyTransport.setIoStrategy(strategyName);
  transports.getTransport().add(spdyTransport);
  return spdyTransport;
}
Program: 28492
Project: 28492
Buggy source:
@Override public Future<Result<Thread>> start() throws IOException {
  final FutureImpl<Result<Thread>> future=UnsafeFutureImpl.<Result<Thread>>create();
  final long t1=System.currentTimeMillis();
  grizzlyListener.start();
  if (logger.isLoggable(Level.INFO)) {
    logger.log(Level.INFO,KernelLoggerInfo.grizzlyStarted,new Object[]{Grizzly.getDotedVersion(),System.currentTimeMillis() - t1,grizzlyListener.getAddress(),':',grizzlyListener.getPort(),']'});
  }
  future.result(new Result<Thread>(Thread.currentThread()));
  return future;
}

Fixed version (ground truth):
@Override public Future<Result<Thread>> start() throws IOException {
  final FutureImpl<Result<Thread>> future=UnsafeFutureImpl.<Result<Thread>>create();
  final long t1=System.currentTimeMillis();
  grizzlyListener.start();
  if (logger.isLoggable(Level.INFO)) {
    logger.log(Level.INFO,KernelLoggerInfo.grizzlyStarted,new Object[]{Grizzly.getDotedVersion(),System.currentTimeMillis() - t1,grizzlyListener.getAddress(),':',String.valueOf(grizzlyListener.getPort()),']'});
  }
  future.result(new Result<Thread>(Thread.currentThread()));
  return future;
}
Program: 28496
Project: 28496
Buggy source:
private URL findResource(String name,boolean fromJarsOnly){
  if (logger.isLoggable(Level.FINER))   logger.log(Level.FINER,"String_Node_Str" + name + "String_Node_Str");
  URL url=null;
  if ("String_Node_Str".equals(name)) {
    name="String_Node_Str";
  }
  ResourceEntry entry=resourceEntries.get(name);
  if (entry == null) {
    entry=findResourceInternal(name,name,fromJarsOnly);
  }
  if (entry != null) {
    url=entry.source;
  }
  if ((url == null) && hasExternalRepositories)   url=super.findResource(name);
  if (logger.isLoggable(Level.FINER)) {
    if (url != null)     logger.log(Level.FINER,"String_Node_Str" + url.toString() + "String_Node_Str");
 else     logger.log(Level.FINER,"String_Node_Str");
  }
  return (url);
}

Fixed version (ground truth):
/** 
 * Find the specified resource in our local repository, and return a <code>URL</code> referring to it, or <code>null</code> if this resource cannot be found.
 * @param name Name of the resource to be found
 */
@Override public URL findResource(String name){
  if (logger.isLoggable(Level.FINER))   logger.log(Level.FINER,"String_Node_Str" + name + "String_Node_Str");
  URL url=null;
  if ("String_Node_Str".equals(name)) {
    name="String_Node_Str";
  }
  ResourceEntry entry=resourceEntries.get(name);
  if (entry == null) {
    entry=findResourceInternal(name,name);
  }
  if (entry != null) {
    url=entry.source;
  }
  if ((url == null) && hasExternalRepositories)   url=super.findResource(name);
  if (logger.isLoggable(Level.FINER)) {
    if (url != null)     logger.log(Level.FINER,"String_Node_Str" + url.toString() + "String_Node_Str");
 else     logger.log(Level.FINER,"String_Node_Str");
  }
  return (url);
}
Program: 28498
Project: 28498
Buggy source:
private synchronized void extractResources(){
  if (resourcesExtracted) {
    return;
  }
  for (int i=jarFiles.length - 1; i >= 0; i--) {
    extractResource(jarFiles[i]);
  }
  resourcesExtracted=true;
}

Fixed version (ground truth):
private synchronized void extractResources(){
  if (!antiJARLocking || resourcesExtracted) {
    return;
  }
  for (int i=jarFiles.length - 1; i >= 0; i--) {
    extractResource(jarFiles[i]);
  }
  resourcesExtracted=true;
}
Program: 28499
Project: 28499
Buggy source:
/** 
 * Attempts to load the requested resource from this classloader's JAR files.
 * @return The requested resource, or null if not found
 */
private ResourceEntry findResourceInternalFromJars(String name,String path){
  ResourceEntry entry=null;
  JarEntry jarEntry=null;
  int contentLength=-1;
  InputStream binaryStream=null;
  if (!openJARs()) {
    return null;
  }
  int jarFilesLength=jarFiles.length;
  for (int i=0; (entry == null) && (i < jarFilesLength); i++) {
    jarEntry=jarFiles[i].getJarEntry(path);
    if (jarEntry != null) {
      entry=new ResourceEntry();
      try {
        entry.codeBase=getURL(jarRealFiles[i]);
        String jarFakeUrl=getURI(jarRealFiles[i]).toString();
        jarFakeUrl="String_Node_Str" + jarFakeUrl + "String_Node_Str"+ path;
        entry.source=new URL(jarFakeUrl);
        entry.lastModified=jarRealFiles[i].lastModified();
      }
 catch (      MalformedURLException e) {
        return null;
      }
      contentLength=(int)jarEntry.getSize();
      try {
        entry.manifest=jarFiles[i].getManifest();
        binaryStream=jarFiles[i].getInputStream(jarEntry);
      }
 catch (      IOException e) {
        return null;
      }
      if (!(path.endsWith("String_Node_Str"))) {
        File resourceFile=new File(loaderDir,jarEntry.getName());
        if (!resourceFile.exists()) {
          extractResources();
        }
      }
    }
  }
  if (entry != null) {
    readEntryData(entry,name,binaryStream,contentLength,jarEntry);
  }
  return entry;
}

Fixed version (ground truth):
/** 
 * Attempts to load the requested resource from this classloader's JAR files.
 * @return The requested resource, or null if not found
 */
private ResourceEntry findResourceInternalFromJars(String name,String path){
  ResourceEntry entry=null;
  JarEntry jarEntry=null;
  int contentLength=-1;
  InputStream binaryStream=null;
  if (!openJARs()) {
    return null;
  }
  int jarFilesLength=jarFiles.length;
  for (int i=0; (entry == null) && (i < jarFilesLength); i++) {
    jarEntry=jarFiles[i].getJarEntry(path);
    if (jarEntry != null) {
      entry=new ResourceEntry();
      try {
        entry.codeBase=getURL(jarRealFiles[i]);
        String jarFakeUrl=getURI(jarRealFiles[i]).toString();
        jarFakeUrl="String_Node_Str" + jarFakeUrl + "String_Node_Str"+ path;
        entry.source=new URL(jarFakeUrl);
        entry.lastModified=jarRealFiles[i].lastModified();
      }
 catch (      MalformedURLException e) {
        return null;
      }
      contentLength=(int)jarEntry.getSize();
      try {
        entry.manifest=jarFiles[i].getManifest();
        binaryStream=jarFiles[i].getInputStream(jarEntry);
      }
 catch (      IOException e) {
        return null;
      }
      if (antiJARLocking && !(path.endsWith("String_Node_Str"))) {
        File resourceFile=new File(loaderDir,jarEntry.getName());
        if (!resourceFile.exists()) {
          extractResources();
        }
      }
    }
  }
  if (entry != null) {
    readEntryData(entry,name,binaryStream,contentLength,jarEntry);
  }
  return entry;
}
Program: 28500
Project: 28500
Buggy source:
private ResourceEntry findResourceInternal(String name,String path,boolean fromJarsOnly){
  if (!started) {
    throw new IllegalStateException(getString(NOT_STARTED,name));
  }
  if ((name == null) || (path == null)) {
    return null;
  }
  ResourceEntry entry=resourceEntries.get(name);
  if (entry != null) {
    return entry;
  }
 else   if (notFoundResources.containsKey(name)) {
    return null;
  }
  if (!fromJarsOnly) {
    entry=findResourceInternalFromRepositories(name,path);
  }
  if (entry == null) {
synchronized (jarFiles) {
      entry=findResourceInternalFromJars(name,path);
    }
  }
  if (entry == null) {
    notFoundResources.put(name,name);
    return null;
  }
  ResourceEntry entry2=resourceEntries.putIfAbsent(name,entry);
  if (entry2 != null) {
    entry=entry2;
  }
  return entry;
}

Fixed version (ground truth):
/** 
 * Attempts to find the specified resource in local repositories.
 * @return the loaded resource, or null if the resource isn't found
 */
protected ResourceEntry findResourceInternal(String name,String path){
  if (!started) {
    throw new IllegalStateException(getString(NOT_STARTED,name));
  }
  if ((name == null) || (path == null)) {
    return null;
  }
  ResourceEntry entry=resourceEntries.get(name);
  if (entry != null) {
    return entry;
  }
 else   if (notFoundResources.containsKey(name)) {
    return null;
  }
  entry=findResourceInternalFromRepositories(name,path);
  if (entry == null) {
synchronized (jarFiles) {
      entry=findResourceInternalFromJars(name,path);
    }
  }
  if (entry == null) {
    notFoundResources.put(name,name);
    return null;
  }
  ResourceEntry entry2=resourceEntries.putIfAbsent(name,entry);
  if (entry2 != null) {
    entry=entry2;
  }
  return entry;
}
Program: 28501
Project: 28501
Buggy source:
/** 
 * Set associated resources.
 */
public void setResources(DirContext resources){
  this.resources=resources;
  if (resources instanceof ProxyDirContext) {
    contextName=((ProxyDirContext)resources).getContextName();
  }
}

Fixed version (ground truth):
/** 
 * Set associated resources.
 */
public void setResources(DirContext resources){
  this.resources=resources;
  DirContext res=resources;
  if (resources instanceof ProxyDirContext) {
    ProxyDirContext proxyRes=(ProxyDirContext)res;
    contextName=proxyRes.getContextName();
    res=proxyRes.getDirContext();
  }
  if (res instanceof WebDirContext) {
    ((WebDirContext)res).setJarFileResourcesProvider(this);
  }
}
Program: 28502
Project: 28502
Buggy source:
private void getMonitorAttributes(AdminCommandContext ctxt){
  String s="String_Node_Str" + mr.toString();
  if (Boolean.parseBoolean(System.getenv("String_Node_Str"))) {
    KernelLoggerInfo.getLogger().info(s);
  }
 else {
    KernelLoggerInfo.getLogger().fine(s);
  }
  mr.execute();
}

Fixed version (ground truth):
private void getMonitorAttributes(AdminCommandContext ctxt){
  Logger l=KernelLoggerInfo.getLogger();
  if (l.isLoggable(Level.FINE)) {
    l.log(Level.FINE,"String_Node_Str",mr.toString());
  }
  mr.execute();
}
Program: 28503
Project: 28503
Buggy source:
private void addWeldListenerToAllWars(DeploymentContext context){
  ApplicationHolder applicationHolder=context.getModuleMetaData(ApplicationHolder.class);
  if (applicationHolder != null) {
    if (applicationHolder.app.getBundleDescriptors(EjbBundleDescriptor.class).size() > 0) {
      Set<WebBundleDescriptor> webBundleDescriptors=applicationHolder.app.getBundleDescriptors(WebBundleDescriptor.class);
      for (      WebBundleDescriptor oneWebBundleDescriptor : webBundleDescriptors) {
        oneWebBundleDescriptor.addAppListenerDescriptorToFirst(new AppListenerDescriptorImpl(WELD_LISTENER));
      }
    }
  }
}

Fixed version (ground truth):
private void addWeldListenerToAllWars(DeploymentContext context){
  ApplicationHolder applicationHolder=context.getModuleMetaData(ApplicationHolder.class);
  if (applicationHolder != null) {
    if (applicationHolder.app.getBundleDescriptors(EjbBundleDescriptor.class).size() > 0) {
      Set<WebBundleDescriptor> webBundleDescriptors=applicationHolder.app.getBundleDescriptors(WebBundleDescriptor.class);
      for (      WebBundleDescriptor oneWebBundleDescriptor : webBundleDescriptors) {
        oneWebBundleDescriptor.addAppListenerDescriptor(new AppListenerDescriptorImpl(WELD_LISTENER));
      }
    }
  }
}
Program: 28504
Project: 28504
Buggy source:
private synchronized AdminEndpointDecider getEpd(){
  if (aed == null) {
    aed=new AdminEndpointDecider(getConfig(),Logging.logger);
  }
  return aed;
}

Fixed version (ground truth):
private synchronized AdminEndpointDecider getEpd(){
  if (aed == null) {
    aed=new AdminEndpointDecider(getConfig());
  }
  return aed;
}
Program: 28505
Project: 28505
Buggy source:
/** 
 * Get the size of the admin threadpool
 */
private int getAdminThreadPoolSize(Logger logger){
  final int DEFAULT_POOL_SIZE=5;
  Config config=domain.getConfigNamed("String_Node_Str");
  if (config == null)   return DEFAULT_POOL_SIZE;
  AdminEndpointDecider aed=new AdminEndpointDecider(config,logger);
  return aed.getMaxThreadPoolSize();
}

Fixed version (ground truth):
/** 
 * Get the size of the admin threadpool
 */
private int getAdminThreadPoolSize(Logger logger){
  final int DEFAULT_POOL_SIZE=5;
  Config config=domain.getConfigNamed("String_Node_Str");
  if (config == null)   return DEFAULT_POOL_SIZE;
  AdminEndpointDecider aed=new AdminEndpointDecider(config);
  return aed.getMaxThreadPoolSize();
}
Program: 28506
Project: 28506
Buggy source:
public void execute(AdminCommandContext context){
  if (!env.isInstance()) {
    String msg=Strings.get("String_Node_Str",env.getRuntimeType().toString());
    context.getLogger().warning(msg);
    return;
  }
  doExecute(habitat,env,context.getLogger(),force);
}

Fixed version (ground truth):
public void execute(AdminCommandContext context){
  if (!env.isInstance()) {
    String msg=Strings.get("String_Node_Str",env.getRuntimeType().toString());
    context.getLogger().warning(msg);
    return;
  }
  doExecute(habitat,env,force);
}
Program: 28507
Project: 28507
Buggy source:
private static boolean addLoggerToLogManager(Logger logger){
synchronized (Logger.class) {
    return LogManager.getLogManager().addLogger(logger);
  }
}

Fixed version (ground truth):
private static boolean addLoggerToLogManager(Logger logger){
synchronized (Logger.class) {
synchronized (LogManager.getLogManager()) {
      return LogManager.getLogManager().addLogger(logger);
    }
  }
}
Program: 28508
Project: 28508
Buggy source:
@Override public void postConstruct(){
  events.register(this);
  epd=new AdminEndpointDecider(config,aalogger);
  addDocRoot(env.getProps().get(SystemPropertyConstants.INSTANCE_ROOT_PROPERTY) + "String_Node_Str");
}

Fixed version (ground truth):
@Override public void postConstruct(){
  events.register(this);
  epd=new AdminEndpointDecider(config);
  addDocRoot(env.getProps().get(SystemPropertyConstants.INSTANCE_ROOT_PROPERTY) + "String_Node_Str");
}
Program: 28509
Project: 28509
Buggy source:
private void getMonitorAttributes(AdminCommandContext ctxt){
  String s="String_Node_Str" + mr.toString();
  if (Boolean.parseBoolean(System.getenv("String_Node_Str")))   ctxt.getLogger().info(s);
 else   ctxt.getLogger().fine(s);
  mr.execute();
}

Fixed version (ground truth):
private void getMonitorAttributes(AdminCommandContext ctxt){
  String s="String_Node_Str" + mr.toString();
  if (Boolean.parseBoolean(System.getenv("String_Node_Str"))) {
    KernelLoggerInfo.getLogger().info(s);
  }
 else {
    KernelLoggerInfo.getLogger().fine(s);
  }
  mr.execute();
}
Program: 28510
Project: 28510
Buggy source:
private boolean setFromAsMainArguments(){
  File pwf=null;
  try {
    String[] args=StartupContextUtil.getOriginalArguments(sc);
    int index=0;
    for (    String arg : args) {
      if (PASSWORDFILE_OPTION_TO_ASMAIN.equals(arg)) {
        if (index == (args.length - 1)) {
          logger.warning("String_Node_Str");
          return false;
        }
        pwf=new File(args[index + 1]);
        return readPasswordFile(pwf);
      }
      index++;
    }
    return false;
  }
 catch (  Exception ex) {
    String s="String_Node_Str";
    String msg=pwf == null ? s : s + pwf.getAbsolutePath();
    logger.fine(msg);
    return false;
  }
}

Fixed version (ground truth):
private boolean setFromAsMainArguments(){
  File pwf=null;
  try {
    String[] args=StartupContextUtil.getOriginalArguments(sc);
    int index=0;
    for (    String arg : args) {
      if (PASSWORDFILE_OPTION_TO_ASMAIN.equals(arg)) {
        if (index == (args.length - 1)) {
          logger.warning(KernelLoggerInfo.optionButNoArg);
          return false;
        }
        pwf=new File(args[index + 1]);
        return readPasswordFile(pwf);
      }
      index++;
    }
    return false;
  }
 catch (  Exception ex) {
    String s="String_Node_Str";
    String msg=pwf == null ? s : s + pwf.getAbsolutePath();
    logger.fine(msg);
    return false;
  }
}
Program: 28511
Project: 28511
Buggy source:
public void doPersist(JobInfos jobInfos,JobInfo jobInfo){
  File file=jobInfo.getJobsFile();
synchronized (file) {
    if (jobInfos == null)     jobInfos=new JobInfos();
    try {
      JAXBContext jaxbContext=JAXBContext.newInstance(JobInfos.class);
      jaxbMarshaller=jaxbContext.createMarshaller();
      jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,true);
      CopyOnWriteArrayList<JobInfo> jobList=new CopyOnWriteArrayList<JobInfo>(jobInfos.getJobInfoList());
      jobInfos.setJobInfoList(jobList);
      jobList.add(jobInfo);
      jaxbMarshaller.marshal(jobInfos,file);
      jobManager.addToCompletedJobs(new CompletedJob(jobInfo.jobId,jobInfo.commandCompletionDate,jobInfo.getJobsFile()));
      jobManager.purgeJob(jobInfo.jobId);
    }
 catch (    JAXBException e) {
      throw new RuntimeException(adminStrings.getLocalString("String_Node_Str","String_Node_Str",jobInfo.jobId,e.getLocalizedMessage()),e);
    }
  }
}

Fixed version (ground truth):
public void doPersist(JobInfos jobInfos,JobInfo jobInfo){
  File file=jobInfo.getJobsFile();
synchronized (file) {
    if (jobInfos == null) {
      jobInfos=new JobInfos();
    }
    try {
      JAXBContext jaxbContext=JAXBContext.newInstance(JobInfos.class);
      jaxbMarshaller=jaxbContext.createMarshaller();
      jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,true);
      CopyOnWriteArrayList<JobInfo> jobList=new CopyOnWriteArrayList<JobInfo>(jobInfos.getJobInfoList());
      jobInfos.setJobInfoList(jobList);
      jobList.add(jobInfo);
      jaxbMarshaller.marshal(jobInfos,file);
      jobManager.addToCompletedJobs(new CompletedJob(jobInfo.jobId,jobInfo.commandCompletionDate,jobInfo.getJobsFile()));
      jobManager.purgeJob(jobInfo.jobId);
    }
 catch (    JAXBException e) {
      throw new RuntimeException(adminStrings.getLocalString("String_Node_Str","String_Node_Str",jobInfo.jobId,e.getLocalizedMessage()),e);
    }
  }
}
Program: 28512
Project: 28512
Buggy source:
/** 
 * Called to forward to the login page. may redirect current request to HTTPS
 * @param request HttpRequest we are processing
 * @param response HttpResponse we are creating
 * @param config    Login configuration describing how authenticationshould be performed
 */
protected void forwardToLoginPage(HttpRequest request,HttpResponse response,LoginConfig config){
  if (isChangeSessionIdOnAuthentication()) {
    request.changeSessionId();
  }
  ServletContext sc=context.getServletContext();
  try {
    String loginPage=config.getLoginPage();
    if (!request.getRequest().isSecure()) {
      Realm realm=context.getRealm();
      if (realm != null) {
        SecurityConstraint[] secConstraints=realm.findSecurityConstraints(loginPage,"String_Node_Str",context);
        if (secConstraints != null && !realm.hasUserDataPermission(request,response,secConstraints,loginPage,"String_Node_Str")) {
          return;
        }
      }
    }
    RequestDispatcher disp=sc.getRequestDispatcher(loginPage);
    disp.forward(request.getRequest(),response.getResponse());
    response.finishResponse();
  }
 catch (  Throwable t) {
    log.log(Level.WARNING,UNEXPECTED_ERROR_FORWARDING_TO_LOGIN_PAGE,t);
  }
}

Fixed version (ground truth):
/** 
 * Called to forward to the login page. may redirect current request to HTTPS
 * @param request HttpRequest we are processing
 * @param response HttpResponse we are creating
 * @param config    Login configuration describing how authenticationshould be performed
 */
protected void forwardToLoginPage(HttpRequest request,HttpResponse response,LoginConfig config){
  if (isChangeSessionIdOnAuthentication() && getSession(request,false) != null) {
    request.changeSessionId();
  }
  ServletContext sc=context.getServletContext();
  try {
    String loginPage=config.getLoginPage();
    if (!request.getRequest().isSecure()) {
      Realm realm=context.getRealm();
      if (realm != null) {
        SecurityConstraint[] secConstraints=realm.findSecurityConstraints(loginPage,"String_Node_Str",context);
        if (secConstraints != null && !realm.hasUserDataPermission(request,response,secConstraints,loginPage,"String_Node_Str")) {
          return;
        }
      }
    }
    RequestDispatcher disp=sc.getRequestDispatcher(loginPage);
    disp.forward(request.getRequest(),response.getResponse());
    response.finishResponse();
  }
 catch (  Throwable t) {
    log.log(Level.WARNING,UNEXPECTED_ERROR_FORWARDING_TO_LOGIN_PAGE,t);
  }
}
Program: 28513
Project: 28513
Buggy source:
/** 
 * Execute an <code>AdminCommand</code> with the specified parameters.
 * @param command
 * @param parameters
 * @param throwBadRequest (vs. NOT_FOUND)
 * @param throwOnWarning  (vs.ignore warning)
 * @return
 */
public ActionReporter executeCommand(Subject subject,String command,ParameterMap parameters,Status status,boolean includeFailureMessage,boolean throwOnWarning){
  RestActionReporter ar=ResourceUtil.runCommand(command,parameters,subject);
  ExitCode code=ar.getActionExitCode();
  if (code.equals(ExitCode.FAILURE) || (code.equals(ExitCode.WARNING) && throwOnWarning)) {
    if (includeFailureMessage) {
      throw new WebApplicationException(Response.status(status).entity(ar.getCombinedMessage()).build());
    }
 else {
      throw new WebApplicationException(status);
    }
  }
  return ar;
}

Fixed version (ground truth):
/** 
 * Execute an <code>AdminCommand</code> with the specified parameters.
 * @param command
 * @param parameters
 * @param throwBadRequest (vs. NOT_FOUND)
 * @param throwOnWarning  (vs.ignore warning)
 * @return
 */
public ActionReporter executeCommand(Subject subject,String command,ParameterMap parameters,Status status,boolean includeFailureMessage,boolean throwOnWarning){
  RestActionReporter ar=ResourceUtil.runCommand(command,parameters,subject);
  ExitCode code=ar.getActionExitCode();
  if (code.equals(ExitCode.FAILURE) || (code.equals(ExitCode.WARNING) && throwOnWarning)) {
    Throwable t=ar.getFailureCause();
    if (t instanceof SecurityException) {
      throw new WebApplicationException(Response.status(Status.UNAUTHORIZED).build());
    }
    if (includeFailureMessage) {
      throw new WebApplicationException(Response.status(status).entity(ar.getCombinedMessage()).build());
    }
 else {
      throw new WebApplicationException(status);
    }
  }
  return ar;
}
Program: 28514
Project: 28514
Buggy source:
public void postConstruct(){
  policy=Policy.getPolicy();
}

Fixed version (ground truth):
public void postConstruct(){
  AccessController.doPrivileged(new PrivilegedAction<Object>(){
    public Object run(){
      policy=Policy.getPolicy();
      return null;
    }
  }
);
}
Program: 28516
Project: 28516
Buggy source:
private static void notNullStringPut(MultivaluedHashMap<String,Object> map,String key,Object val){
  if (val != null) {
    map.add(key,val.toString());
  }
}

Fixed version (ground truth):
/** 
 * Utility for adding non-null values to the map as a String.
 */
private static void notNullStringPut(Map<String,Object> map,String key,Object val){
  if (val != null) {
    map.put(key,val.toString());
  }
}
Program: 28518
Project: 28518
Buggy source:
public static Client getJerseyClient(){
  if (JERSEY_CLIENT == null) {
    JERSEY_CLIENT=initialize(ClientBuilder.newBuilder()).build();
    JERSEY_CLIENT.register(new RequiredHeadersFilter()).register(new JacksonFeature());
  }
  return JERSEY_CLIENT;
}

Fixed version (ground truth):
public static synchronized Client getJerseyClient(){
  if (JERSEY_CLIENT == null) {
    JERSEY_CLIENT=initialize(ClientBuilder.newBuilder()).build();
    JERSEY_CLIENT.register(new RequiredHeadersFilter()).register(new JacksonFeature());
  }
  return JERSEY_CLIENT;
}
Program: 28519
Project: 28519
Buggy source:
@Override public void postConstruct(){
  epd=new AdminEndpointDecider(config,RestLogging.restLogger);
  latch.countDown();
}

Fixed version (ground truth):
@Override public void postConstruct(){
  latch.countDown();
}
Program: 28520
Project: 28520
Buggy source:
/** 
 * @param className Name of class to be generated
 * @param generationDir Absolute location where it needs to be generated
 * @param baseClassName
 * @param resourcePath
 */
public TextClassWriter(ServiceLocator habitat,File generationDir,String className,String baseClassName,String resourcePath) throws IOException {
  this.habitat=habitat;
  File file=new File(generationDir,className + "String_Node_Str");
  boolean success=file.createNewFile();
  if (!success) {
  }
  FileWriter fstream=new FileWriter(file);
  writer=new BufferedWriter(fstream);
  writeCopyRightHeader();
  writePackageHeader();
  writeImportStatements();
  if (resourcePath != null) {
    writer.write("String_Node_Str" + resourcePath + "String_Node_Str");
  }
  writer.write("String_Node_Str" + className + "String_Node_Str"+ baseClassName+ "String_Node_Str");
}

Fixed version (ground truth):
/** 
 * @param className Name of class to be generated
 * @param generationDir Absolute location where it needs to be generated
 * @param baseClassName
 * @param resourcePath
 */
public TextClassWriter(ServiceLocator habitat,File generationDir,String className,String baseClassName,String resourcePath) throws IOException {
  this.habitat=habitat;
  File file=new File(generationDir,className + "String_Node_Str");
  boolean success=file.createNewFile();
  if (!success) {
    RestLogging.restLogger.log(Level.FINE,"String_Node_Str",new String[]{className + "String_Node_Str",generationDir.getAbsolutePath()});
  }
  FileWriter fstream=new FileWriter(file);
  writer=new BufferedWriter(fstream);
  writeCopyRightHeader();
  writePackageHeader();
  writeImportStatements();
  if (resourcePath != null) {
    writer.write("String_Node_Str" + resourcePath + "String_Node_Str");
  }
  writer.write("String_Node_Str" + className + "String_Node_Str"+ baseClassName+ "String_Node_Str");
}
Program: 28522
Project: 28522
Buggy source:
public static String invokeAsync(CommandRunner.CommandInvocation commandInvocation){
  if (commandInvocation == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  CountDownLatch latch=new CountDownLatch(1);
  DetachedCommandHelper helper=new DetachedCommandHelper(commandInvocation,latch);
  commandInvocation.listener("String_Node_Str",helper);
  JobManagerService jobManagerService=Globals.getDefaultHabitat().getService(JobManagerService.class);
  jobManagerService.getThreadPool().execute(helper);
  try {
    latch.await(10,TimeUnit.SECONDS);
  }
 catch (  InterruptedException ex) {
    RestLogging.restLogger.log(Level.SEVERE,null,ex);
  }
  return helper.jobId;
}

Fixed version (ground truth):
public static String invokeAsync(CommandRunner.CommandInvocation commandInvocation){
  if (commandInvocation == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  CountDownLatch latch=new CountDownLatch(1);
  DetachedCommandHelper helper=new DetachedCommandHelper(commandInvocation,latch);
  commandInvocation.listener("String_Node_Str",helper);
  JobManagerService jobManagerService=Globals.getDefaultHabitat().getService(JobManagerService.class);
  jobManagerService.getThreadPool().execute(helper);
  try {
    if (!latch.await(10,TimeUnit.SECONDS)) {
      RestLogging.restLogger.log(Level.FINE,"String_Node_Str");
    }
  }
 catch (  InterruptedException ex) {
    RestLogging.restLogger.log(Level.SEVERE,null,ex);
  }
  return helper.jobId;
}
Program: 28523
Project: 28523
Buggy source:
public void postConstruct(){
  policy=Policy.getPolicy();
}

Fixed version (ground truth):
public void postConstruct(){
  AccessController.doPrivileged(new PrivilegedAction<Object>(){
    public Object run(){
      policy=Policy.getPolicy();
      return null;
    }
  }
);
}
Program: 28524
Project: 28524
Buggy source:
public <V>V loadMetaData(Class<V> type,DeploymentContext dc){
  WebBundleDescriptorImpl wbd=dc.getModuleMetaData(WebBundleDescriptorImpl.class);
  if (wbd.isStandalone()) {
    DeployCommandParameters params=dc.getCommandParameters(DeployCommandParameters.class);
    String contextRoot=params.contextroot;
    if (contextRoot == null) {
      contextRoot=wbd.getContextRoot();
      if ("String_Node_Str".equals(contextRoot))       contextRoot=null;
    }
    if (contextRoot == null) {
      contextRoot=params.previousContextRoot;
    }
    if (contextRoot == null)     contextRoot=dc.getOriginalSource().getName();
    if (!contextRoot.startsWith("String_Node_Str")) {
      contextRoot="String_Node_Str" + contextRoot;
    }
    wbd.setContextRoot(contextRoot);
    wbd.setName(params.name());
    dc.getAppProps().setProperty(ServerTags.CONTEXT_ROOT,contextRoot);
  }
  return null;
}

Fixed version (ground truth):
public <V>V loadMetaData(Class<V> type,DeploymentContext dc){
  WebBundleDescriptorImpl wbd=dc.getModuleMetaData(WebBundleDescriptorImpl.class);
  if (wbd.isStandalone()) {
    DeployCommandParameters params=dc.getCommandParameters(DeployCommandParameters.class);
    String contextRoot=params.contextroot;
    if (contextRoot == null) {
      contextRoot=wbd.getContextRoot();
      if ("String_Node_Str".equals(contextRoot))       contextRoot=null;
    }
    if (contextRoot == null) {
      contextRoot=params.previousContextRoot;
    }
    if (contextRoot == null)     contextRoot=((GenericHandler)dc.getArchiveHandler()).getDefaultApplicationNameFromArchiveName(dc.getOriginalSource());
    if (!contextRoot.startsWith("String_Node_Str")) {
      contextRoot="String_Node_Str" + contextRoot;
    }
    wbd.setContextRoot(contextRoot);
    wbd.setName(params.name());
    dc.getAppProps().setProperty(ServerTags.CONTEXT_ROOT,contextRoot);
  }
  return null;
}
Program: 28525
Project: 28525
Buggy source:
protected String getDefaultApplicationNameFromArchiveName(ReadableArchive archive){
  String appName=archive.getName();
  int lastDot=appName.lastIndexOf('.');
  if (lastDot != -1) {
    if (appName.substring(lastDot).equalsIgnoreCase("String_Node_Str" + getArchiveType())) {
      appName=appName.substring(0,lastDot);
    }
  }
  return appName;
}

Fixed version (ground truth):
public String getDefaultApplicationNameFromArchiveName(ReadableArchive archive){
  String appName=archive.getName();
  int lastDot=appName.lastIndexOf('.');
  if (lastDot != -1) {
    if (appName.substring(lastDot).equalsIgnoreCase("String_Node_Str" + getArchiveType())) {
      appName=appName.substring(0,lastDot);
    }
  }
  return appName;
}
Program: 28527
Project: 28527
Buggy source:
@Override public Object handle(String name) throws NamingException {
  initializeBeanManagerNamingProxy();
  BeanManager beanManager=(BeanManager)beanManagerNamingProxy.handle(BEAN_MANAGER_CONTEXT);
  if (VALIDATOR_FACTORY_CONTEXT.equals(name)) {
    try {
      ValidatorFactory validatorFactory=(ValidatorFactory)getAndCreateBean(beanManager,ValidatorFactory.class);
      if (validatorFactory != null) {
        return validatorFactory;
      }
 else {
        throw new NamingException("String_Node_Str" + name);
      }
    }
 catch (    Throwable t) {
      NamingException ne=new NamingException("String_Node_Str" + name);
      ne.initCause(t);
      throw ne;
    }
  }
 else   if (VALIDATOR_CONTEXT.equals(name)) {
    try {
      Validator validator=(Validator)getAndCreateBean(beanManager,Validator.class);
      if (validator != null) {
        return validator;
      }
 else {
        throw new NamingException("String_Node_Str" + name);
      }
    }
 catch (    Throwable t) {
      NamingException ne=new NamingException("String_Node_Str" + name);
      ne.initCause(t);
      throw ne;
    }
  }
 else {
    throw new NamingException("String_Node_Str" + name);
  }
}

Fixed version (ground truth):
@Override public Object handle(String name) throws NamingException {
  BeanManager beanManager=obtainBeanManager();
  if (VALIDATOR_FACTORY_CONTEXT.equals(name)) {
    try {
      ValidatorFactory validatorFactory=(ValidatorFactory)getAndCreateBean(beanManager,ValidatorFactory.class);
      if (validatorFactory != null) {
        return validatorFactory;
      }
 else {
        throw new NamingException("String_Node_Str" + name);
      }
    }
 catch (    Throwable t) {
      NamingException ne=new NamingException("String_Node_Str" + name);
      ne.initCause(t);
      throw ne;
    }
  }
 else   if (VALIDATOR_CONTEXT.equals(name)) {
    try {
      Validator validator=(Validator)getAndCreateBean(beanManager,Validator.class);
      if (validator != null) {
        return validator;
      }
 else {
        throw new NamingException("String_Node_Str" + name);
      }
    }
 catch (    Throwable t) {
      NamingException ne=new NamingException("String_Node_Str" + name);
      ne.initCause(t);
      throw ne;
    }
  }
 else {
    throw new NamingException("String_Node_Str" + name);
  }
}
Program: 28529
Project: 28529
Buggy source:
public ExtendedDeploymentContext disable(UndeployCommandParameters commandParams,Application app,ApplicationInfo appInfo,ActionReport report,Logger logger) throws Exception {
  if (appInfo == null || app == null) {
    report.failure(logger,"String_Node_Str",null);
    return null;
  }
  if (!env.isDas() && !appInfo.isLoaded()) {
    return null;
  }
  commandParams._type=app.archiveType();
  final ExtendedDeploymentContext deploymentContext=getBuilder(logger,commandParams,report).source(appInfo.getSource()).build();
  deploymentContext.getAppProps().putAll(app.getDeployProperties());
  deploymentContext.setModulePropsMap(app.getModulePropertiesMap());
  if (commandParams.properties != null) {
    deploymentContext.getAppProps().putAll(commandParams.properties);
  }
  unload(appInfo,deploymentContext);
  return deploymentContext;
}

Fixed version (ground truth):
public ExtendedDeploymentContext disable(UndeployCommandParameters commandParams,Application app,ApplicationInfo appInfo,ActionReport report,Logger logger) throws Exception {
  if (appInfo == null) {
    report.failure(logger,"String_Node_Str",null);
    return null;
  }
  if (!env.isDas() && !appInfo.isLoaded()) {
    return null;
  }
  if (app != null) {
    commandParams._type=app.archiveType();
  }
  final ExtendedDeploymentContext deploymentContext=getBuilder(logger,commandParams,report).source(appInfo.getSource()).build();
  if (app != null) {
    deploymentContext.getAppProps().putAll(app.getDeployProperties());
    deploymentContext.setModulePropsMap(app.getModulePropertiesMap());
  }
  if (commandParams.properties != null) {
    deploymentContext.getAppProps().putAll(commandParams.properties);
  }
  unload(appInfo,deploymentContext);
  return deploymentContext;
}
Program: 28531
Project: 28531
Buggy source:
/** 
 * Return an error page customized for GlassFish v3.
 * @param req
 * @param res
 * @throws Exception
 */
@Override protected void customizedErrorPage(Request req,Response res) throws Exception {
  byte[] errorBody;
  if (res.getStatus() == 404) {
    errorBody=HttpUtils.getErrorPage(Version.getVersion(),String.format("String_Node_Str",req.getDecodedRequestURI()),"String_Node_Str");
  }
 else {
    errorBody=HttpUtils.getErrorPage(Version.getVersion(),"String_Node_Str","String_Node_Str");
  }
  ByteChunk chunk=new ByteChunk();
  chunk.setBytes(errorBody,0,errorBody.length);
  res.setContentLength(errorBody.length);
  res.setContentType("String_Node_Str");
  if (!version.isEmpty()) {
    res.addHeader("String_Node_Str",version);
  }
  res.flush();
  res.getOutputBuffer().write(chunk.getBuffer());
}

Fixed version (ground truth):
/** 
 * Return an error page customized for GlassFish v3.
 * @param req
 * @param res
 * @throws Exception
 */
@Override protected void customizedErrorPage(Request req,Response res) throws Exception {
  byte[] errorBody;
  if (res.getStatus() == 404) {
    errorBody=HttpUtils.getErrorPage(Version.getVersion(),"String_Node_Str","String_Node_Str");
  }
 else {
    errorBody=HttpUtils.getErrorPage(Version.getVersion(),"String_Node_Str","String_Node_Str");
  }
  ByteChunk chunk=new ByteChunk();
  chunk.setBytes(errorBody,0,errorBody.length);
  res.setContentLength(errorBody.length);
  res.setContentType("String_Node_Str");
  if (!version.isEmpty()) {
    res.addHeader("String_Node_Str",version);
  }
  res.flush();
  res.getOutputBuffer().write(chunk.getBuffer());
}
Program: 28532
Project: 28532
Buggy source:
/** 
 * This test currently fails due to a possible bug in Weld
 */
@Test(enabled=false) public void testNormalScopeWithFinalsDoesNotDeploy(){
  String deployPath=getDeployablePath(NORMAL_WITH_FINALS_JAR);
  boolean success=NucleusTestUtils.nadmin("String_Node_Str",deployPath);
  Assert.assertFalse(success);
}

Fixed version (ground truth):
/** 
 * This test currently fails due to a possible bug in Weld
 */
@Test public void testNormalScopeWithFinalsDoesNotDeploy(){
  String deployPath=getDeployablePath(NORMAL_WITH_FINALS_JAR);
  boolean success=NucleusTestUtils.nadmin("String_Node_Str",deployPath);
  Assert.assertFalse(success);
}
Program: 28533
Project: 28533
Buggy source:
/** 
 * Must not return null
 * @return TransactionManager
 */
public TransactionManager getTransactionManager(){
  if (testTransactionManager != null)   return testTransactionManager;
  if (transactionManager == null) {
    try {
synchronized (TransactionalInterceptorBase.class) {
        if (transactionManager == null)         transactionManager=(TransactionManager)new InitialContext().lookup("String_Node_Str");
      }
    }
 catch (    NamingException e) {
      _logger.severe("String_Node_Str" + "String_Node_Str" + e);
    }
  }
  return transactionManager;
}

Fixed version (ground truth):
/** 
 * Must not return null
 * @return TransactionManager
 */
public TransactionManager getTransactionManager(){
  if (testTransactionManager != null) {
    return testTransactionManager;
  }
  try {
synchronized (TransactionalInterceptorBase.class) {
      if (transactionManager == null)       transactionManager=(TransactionManager)new InitialContext().lookup("String_Node_Str");
    }
  }
 catch (  NamingException e) {
    _logger.severe("String_Node_Str" + "String_Node_Str" + e);
  }
  return transactionManager;
}
Program: 28534
Project: 28534
Buggy source:
@Override public URL getResource(String name){
  ClassLoader cl=getClassLoader();
  if (cl != null) {
    return cl.getResource(name);
  }
 else {
    return this.getClass().getResource(name);
  }
}

Fixed version (ground truth):
@Override public URL getResource(String name){
  ClassLoader cl=getClassLoader();
  if (cl != null) {
    return cl.getResource(name);
  }
 else {
    return getClass().getResource(name);
  }
}
Program: 28535
Project: 28535
Buggy source:
public WeldApplicationContainer(WeldBootstrap bootstrap){
  weldBootstrap=bootstrap;
}

Fixed version (ground truth):
public WeldApplicationContainer(){
}
Program: 28537
Project: 28537
Buggy source:
private void validateEjbProducer(Class annotatedClass,AnnotatedField annotatedField,List<InjectionCapable> injectionResources){
  EJB ejbAnnotation=annotatedField.getAnnotation(EJB.class);
  if (ejbAnnotation != null) {
    String lookupName=getLookupName(annotatedClass,annotatedField,injectionResources);
    EjbDescriptor foundEjb=null;
    Collection<EjbDescriptor> ejbs=deployment.getDeployedEjbs();
    for (    EjbDescriptor oneEjb : ejbs) {
      String jndiName=oneEjb.getJndiName();
      if (lookupName.indexOf(jndiName) >= 0) {
        foundEjb=oneEjb;
        break;
      }
    }
    if (foundEjb != null) {
      String className=foundEjb.getEjbImplClassName();
      try {
        Class clazz=Class.forName(className,false,annotatedClass.getClassLoader());
        validateResourceClass(annotatedField,clazz);
      }
 catch (      ClassNotFoundException ignore) {
      }
    }
  }
}

Fixed version (ground truth):
private void validateEjbProducer(Class annotatedClass,AnnotatedField annotatedField,List<InjectionCapable> injectionResources){
  EJB ejbAnnotation=annotatedField.getAnnotation(EJB.class);
  if (ejbAnnotation != null) {
    String lookupName=getLookupName(annotatedClass,annotatedField,injectionResources);
    EjbDescriptor foundEjb=null;
    Collection<EjbDescriptor> ejbs=deployment.getDeployedEjbs();
    for (    EjbDescriptor oneEjb : ejbs) {
      String jndiName=oneEjb.getJndiName();
      if (lookupName.contains(jndiName)) {
        foundEjb=oneEjb;
        break;
      }
    }
    if (foundEjb != null) {
      String className=foundEjb.getEjbImplClassName();
      try {
        Class clazz=Class.forName(className,false,annotatedClass.getClassLoader());
        validateResourceClass(annotatedField,clazz);
      }
 catch (      ClassNotFoundException ignore) {
      }
    }
  }
}