nus-yam/ex-repair huggingface dataset:
Program: 29191
Project: 29191
Buggy source:
public void handleNotification(final Notification notifIn,final Object handback){
  if (notifIn instanceof MBeanServerNotification) {
    final MBeanServerNotification notif=(MBeanServerNotification)notifIn;
    final String type=notif.getType();
    final ObjectName objectName=notif.getMBeanName();
    if (isRelevantMBean(objectName)) {
      if (type.equals(MBeanServerNotification.REGISTRATION_NOTIFICATION)) {
        if (mEmitMBeanStatus) {
          System.out.println("String_Node_Str" + objectName);
        }
        addChild(objectName);
      }
 else       if (type.equals(MBeanServerNotification.UNREGISTRATION_NOTIFICATION)) {
        if (mEmitMBeanStatus) {
          System.out.println("String_Node_Str" + objectName);
        }
        removeChild(objectName);
      }
    }
  }
}

Fixed version (ground truth):
@Override public void handleNotification(final Notification notifIn,final Object handback){
  if (notifIn instanceof MBeanServerNotification) {
    final MBeanServerNotification notif=(MBeanServerNotification)notifIn;
    final String type=notif.getType();
    final ObjectName objectName=notif.getMBeanName();
    if (isRelevantMBean(objectName)) {
      if (type.equals(MBeanServerNotification.REGISTRATION_NOTIFICATION)) {
        if (mEmitMBeanStatus) {
          System.out.println("String_Node_Str" + objectName);
        }
        addChild(objectName);
      }
 else       if (type.equals(MBeanServerNotification.UNREGISTRATION_NOTIFICATION)) {
        if (mEmitMBeanStatus) {
          System.out.println("String_Node_Str" + objectName);
        }
        removeChild(objectName);
      }
    }
  }
}
Program: 29192
Project: 29192
Buggy source:
/** 
 * Logout the user. <p> This method removes the <code>PrincipalImpl</code> that was added by the <code>commit</code> method. <p>
 * @exception LoginException if the logout fails.
 * @return true in all cases since this <code>LoginModule</code>should not be ignored.
 */
public boolean logout() throws LoginException {
  subject.getPrincipals().remove(userPrincipal);
  succeeded=false;
  succeeded=commitSucceeded;
  username=null;
  if (password != null) {
    for (int i=0; i < password.length; i++) {
      password[i]=' ';
    }
    password=null;
  }
  userPrincipal=null;
  return true;
}

Fixed version (ground truth):
/** 
 * Logout the user. <p> This method removes the <code>PrincipalImpl</code> that was added by the <code>commit</code> method. <p>
 * @exception LoginException if the logout fails.
 * @return true in all cases since this <code>LoginModule</code>should not be ignored.
 */
public boolean logout() throws LoginException {
  subject.getPrincipals().remove(userPrincipal);
  succeeded=commitSucceeded;
  username=null;
  if (password != null) {
    for (int i=0; i < password.length; i++) {
      password[i]=' ';
    }
    password=null;
  }
  userPrincipal=null;
  return true;
}
Program: 29194
Project: 29194
Buggy source:
/** 
 * Creates the file and initialized MeteredStream and passes it on to Superclass (java.util.logging.StreamHandler).
 */
private void openFile(File file) throws IOException {
  File parent=file.getParentFile();
  if (!parent.exists()) {
    parent.mkdirs();
  }
  FileOutputStream fout=new FileOutputStream(file,true);
  BufferedOutputStream bout=new BufferedOutputStream(fout);
  meter=new MeteredStream(bout,file.length());
  setOutputStream(meter);
}

Fixed version (ground truth):
/** 
 * Creates the file and initialized MeteredStream and passes it on to Superclass (java.util.logging.StreamHandler).
 */
private void openFile(File file) throws IOException {
  File parent=file.getParentFile();
  if (!parent.exists() && parent.mkdirs()) {
    FileOutputStream fout=new FileOutputStream(file,true);
    BufferedOutputStream bout=new BufferedOutputStream(fout);
    meter=new MeteredStream(bout,file.length());
    setOutputStream(meter);
  }
 else {
    throw new IOException(LOCAL_STRINGS.getLocalString("String_Node_Str","String_Node_Str",parent.getAbsolutePath()));
  }
}
Program: 29195
Project: 29195
Buggy source:
/** 
 * 5005 Retrieves the LogRecord from our Queue and store them in the file
 */
public void log(){
  LogRecord record;
  try {
    record=pendingRecords.take();
    super.publish(record);
  }
 catch (  InterruptedException e) {
    return;
  }
  Vector<LogRecord> v=new Vector<LogRecord>();
  int msgs=pendingRecords.drainTo(v,flushFrequency);
  for (int j=0; j < msgs; j++) {
    super.publish(v.get(j));
  }
  flush();
  if ((rotationRequested.get()) || ((limitForFileRotation > 0) && (meter.written >= limitForFileRotation))) {
synchronized (rotationRequested) {
      rotate();
      rotationRequested.set(false);
    }
  }
}

Fixed version (ground truth):
/** 
 * 5005 Retrieves the LogRecord from our Queue and store them in the file
 */
public void log(){
  LogRecord record;
  try {
    record=pendingRecords.take();
    super.publish(record);
  }
 catch (  InterruptedException e) {
    return;
  }
  Vector<LogRecord> v=new Vector<LogRecord>();
  int msgs=pendingRecords.drainTo(v,flushFrequency);
  for (int j=0; j < msgs; j++) {
    super.publish(v.get(j));
  }
  flush();
  if ((rotationRequested.get()) || ((limitForFileRotation > 0) && (meter.written >= limitForFileRotation))) {
synchronized (rotationLock) {
      rotate();
      rotationRequested.set(false);
    }
  }
}
Program: 29196
Project: 29196
Buggy source:
public Object run(){
synchronized (thisInstance.rotationRequested) {
    if (thisInstance.meter != null && thisInstance.meter.written <= 0) {
      return null;
    }
    thisInstance.flush();
    thisInstance.close();
    try {
      if (!absoluteFile.exists()) {
        File creatingDeletedLogFile=new File(absoluteFile.getAbsolutePath());
        creatingDeletedLogFile.createNewFile();
        absoluteFile=creatingDeletedLogFile;
      }
      File oldFile=absoluteFile;
      StringBuffer renamedFileName=new StringBuffer(absoluteFile + "String_Node_Str");
      logRotateDateFormatter.format(new Date(),renamedFileName,new FieldPosition(0));
      File rotatedFile=new File(renamedFileName.toString());
      boolean renameSuccess=oldFile.renameTo(rotatedFile);
      if (!renameSuccess) {
        FileUtils.copy(absoluteFile,rotatedFile);
        File freshServerLogFile=getLogFileName();
        FileOutputStream fo=new FileOutputStream(freshServerLogFile);
        fo.close();
      }
      FileOutputStream oldFileFO=new FileOutputStream(oldFile);
      oldFileFO.close();
      openFile(getLogFileName());
      absoluteFile=getLogFileName();
      if (dayBasedFileRotation) {
        LogRotationTimer.getInstance().restartTimerForDayBasedRotation();
      }
 else {
        LogRotationTimer.getInstance().restartTimer();
      }
      cleanUpHistoryLogFiles();
    }
 catch (    IOException ix) {
      new ErrorManager().error("String_Node_Str",ix,ErrorManager.GENERIC_FAILURE);
    }
    return null;
  }
}

Fixed version (ground truth):
public Object run(){
synchronized (thisInstance.rotationLock) {
    if (thisInstance.meter != null && thisInstance.meter.written <= 0) {
      return null;
    }
    thisInstance.flush();
    thisInstance.close();
    try {
      if (!absoluteFile.exists()) {
        File creatingDeletedLogFile=new File(absoluteFile.getAbsolutePath());
        if (creatingDeletedLogFile.createNewFile()) {
          absoluteFile=creatingDeletedLogFile;
        }
      }
 else {
        File oldFile=absoluteFile;
        StringBuffer renamedFileName=new StringBuffer(absoluteFile + "String_Node_Str");
        logRotateDateFormatter.format(new Date(),renamedFileName,new FieldPosition(0));
        File rotatedFile=new File(renamedFileName.toString());
        boolean renameSuccess=oldFile.renameTo(rotatedFile);
        if (!renameSuccess) {
          FileUtils.copy(absoluteFile,rotatedFile);
          File freshServerLogFile=getLogFileName();
          FileOutputStream fo=new FileOutputStream(freshServerLogFile);
          fo.close();
        }
        FileOutputStream oldFileFO=new FileOutputStream(oldFile);
        oldFileFO.close();
        openFile(getLogFileName());
        absoluteFile=getLogFileName();
        if (dayBasedFileRotation) {
          LogRotationTimer.getInstance().restartTimerForDayBasedRotation();
        }
 else {
          LogRotationTimer.getInstance().restartTimer();
        }
        cleanUpHistoryLogFiles();
      }
    }
 catch (    IOException ix) {
      new ErrorManager().error("String_Node_Str",ix,ErrorManager.GENERIC_FAILURE);
    }
    return null;
  }
}
Program: 29197
Project: 29197
Buggy source:
/** 
 * cleanup the history log file based on attributes set under logging.properties file". <p/> If it is defined with valid number, we only keep that number of history logfiles; If "max_history_files" is defined without value, then default that number to be 10; If "max_history_files" is defined with value 0, any number of history files are kept.
 */
public void cleanUpHistoryLogFiles(){
  if (maxHistoryFiles == 0)   return;
  File dir=absoluteFile.getParentFile();
  if (dir == null)   return;
  File[] fset=dir.listFiles();
  ArrayList candidates=new ArrayList();
  for (int i=0; fset != null && i < fset.length; i++) {
    if (!logFileName.equals(fset[i].getName()) && fset[i].isFile() && fset[i].getName().startsWith(logFileName)) {
      candidates.add(fset[i].getAbsolutePath());
    }
  }
  if (candidates.size() <= maxHistoryFiles)   return;
  Object[] pathes=candidates.toArray();
  java.util.Arrays.sort(pathes);
  try {
    for (int i=0; i < pathes.length - maxHistoryFiles; i++) {
      File logFile=new File((String)pathes[i]);
      boolean delFile=logFile.delete();
      if (!delFile) {
        throw new IOException("String_Node_Str" + logFile.getAbsolutePath());
      }
    }
  }
 catch (  Exception e) {
    new ErrorManager().error("String_Node_Str",e,ErrorManager.GENERIC_FAILURE);
  }
}

Fixed version (ground truth):
/** 
 * cleanup the history log file based on attributes set under logging.properties file". <p/> If it is defined with valid number, we only keep that number of history logfiles; If "max_history_files" is defined without value, then default that number to be 10; If "max_history_files" is defined with value 0, any number of history files are kept.
 */
public void cleanUpHistoryLogFiles(){
  if (maxHistoryFiles == 0)   return;
synchronized (rotationLock) {
    File dir=absoluteFile.getParentFile();
    if (dir == null)     return;
    File[] fset=dir.listFiles();
    ArrayList candidates=new ArrayList();
    for (int i=0; fset != null && i < fset.length; i++) {
      if (!logFileName.equals(fset[i].getName()) && fset[i].isFile() && fset[i].getName().startsWith(logFileName)) {
        candidates.add(fset[i].getAbsolutePath());
      }
    }
    if (candidates.size() <= maxHistoryFiles)     return;
    Object[] pathes=candidates.toArray();
    java.util.Arrays.sort(pathes);
    try {
      for (int i=0; i < pathes.length - maxHistoryFiles; i++) {
        File logFile=new File((String)pathes[i]);
        boolean delFile=logFile.delete();
        if (!delFile) {
          throw new IOException("String_Node_Str" + logFile.getAbsolutePath());
        }
      }
    }
 catch (    Exception e) {
      new ErrorManager().error("String_Node_Str",e,ErrorManager.GENERIC_FAILURE);
    }
  }
}
Program: 29198
Project: 29198
Buggy source:
/** 
 * This method is invoked from LogManager.reInitializeLoggers() to change the location of the file.
 */
void changeFileName(File file){
  if (file.equals(absoluteFile)) {
    return;
  }
synchronized (this) {
    super.flush();
    super.close();
    try {
      openFile(file);
      absoluteFile=file;
    }
 catch (    IOException ix) {
      new ErrorManager().error("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str",ix,ErrorManager.OPEN_FAILURE);
      try {
        openFile(absoluteFile);
      }
 catch (      Exception e) {
        new ErrorManager().error("String_Node_Str",e,ErrorManager.OPEN_FAILURE);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * This method is invoked from LogManager.reInitializeLoggers() to change the location of the file.
 */
void changeFileName(File file){
  if (file.equals(absoluteFile)) {
    return;
  }
synchronized (rotationLock) {
    super.flush();
    super.close();
    try {
      openFile(file);
      absoluteFile=file;
    }
 catch (    IOException ix) {
      new ErrorManager().error("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str",ix,ErrorManager.OPEN_FAILURE);
      try {
        openFile(absoluteFile);
      }
 catch (      Exception e) {
        new ErrorManager().error("String_Node_Str",e,ErrorManager.OPEN_FAILURE);
      }
    }
  }
}
Program: 29200
Project: 29200
Buggy source:
public RestConfigChangeListener(ServiceLocator habitat,Reloader reload,ResourceConfig rc,ServerContext sc){
  this.r=reload;
  this.sc=sc;
  RestConfig target=ResourceUtil.getRestConfig(habitat);
  if (target != null) {
    ((ObservableBean)ConfigSupport.getImpl(target)).addListener(this);
  }
}

Fixed version (ground truth):
public RestConfigChangeListener(ServiceLocator habitat,Reloader reload,ResourceConfig rc,ServerContext sc){
  this.sc=sc;
  RestConfig target=ResourceUtil.getRestConfig(habitat);
  if (target != null) {
    ((ObservableBean)ConfigSupport.getImpl(target)).addListener(this);
  }
}
Program: 29201
Project: 29201
Buggy source:
@Override public UnprocessedChangeEvents changed(PropertyChangeEvent[] events){
  ClassLoader originalContextClassLoader=Thread.currentThread().getContextClassLoader();
  try {
    ClassLoader apiClassLoader=sc.getCommonClassLoader();
    Thread.currentThread().setContextClassLoader(apiClassLoader);
  }
  finally {
    Thread.currentThread().setContextClassLoader(originalContextClassLoader);
  }
  return null;
}

Fixed version (ground truth):
@Override public UnprocessedChangeEvents changed(PropertyChangeEvent[] events){
  ClassLoader originalContextClassLoader=Thread.currentThread().getContextClassLoader();
  try {
    ClassLoader apiClassLoader=sc.getCommonClassLoader();
    Thread.currentThread().setContextClassLoader(apiClassLoader);
    Logger.getLogger(getClass().getName()).log(Level.WARNING,"String_Node_Str");
  }
  finally {
    Thread.currentThread().setContextClassLoader(originalContextClassLoader);
  }
  return null;
}
Program: 29203
Project: 29203
Buggy source:
private void processPasswordValidation(PasswordValidationCallback pwdCallback){
  if (SecurityServicesUtil.getInstance().isACC()) {
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str");
    }
    pwdCallback.setResult(true);
    return;
  }
  String username=pwdCallback.getUsername();
  char[] passwd=pwdCallback.getPassword();
  if (_logger.isLoggable(Level.FINE)) {
    _logger.log(Level.FINE,"String_Node_Str");
  }
  try {
    String realmName=null;
    if (handlerContext != null) {
      realmName=handlerContext.getRealmName();
    }
    Subject s=LoginContextDriver.jmacLogin(pwdCallback.getSubject(),username,passwd,realmName);
    GFServerConfigProvider.setValidateRequestSubject(s);
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str",username);
    }
    passwd=null;
    pwdCallback.setResult(true);
  }
 catch (  LoginException le) {
    if (_logger.isLoggable(Level.INFO)) {
      _logger.log(Level.INFO,"String_Node_Str",username);
    }
    pwdCallback.setResult(false);
  }
}

Fixed version (ground truth):
private void processPasswordValidation(PasswordValidationCallback pwdCallback){
  if (SecurityServicesUtil.getInstance().isACC()) {
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str");
    }
    pwdCallback.setResult(true);
    return;
  }
  String username=pwdCallback.getUsername();
  char[] passwd=pwdCallback.getPassword();
  if (_logger.isLoggable(Level.FINE)) {
    _logger.log(Level.FINE,"String_Node_Str");
  }
  try {
    String realmName=null;
    if (handlerContext != null) {
      realmName=handlerContext.getRealmName();
    }
    Subject s=LoginContextDriver.jmacLogin(pwdCallback.getSubject(),username,passwd,realmName);
    GFServerConfigProvider.setValidateRequestSubject(s);
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str",username);
    }
    if (passwd != null) {
      for (int i=0; i < passwd.length; i++)       passwd[i]=' ';
    }
    pwdCallback.setResult(true);
  }
 catch (  LoginException le) {
    if (_logger.isLoggable(Level.INFO)) {
      _logger.log(Level.INFO,"String_Node_Str",username);
    }
    pwdCallback.setResult(false);
  }
}
Program: 29205
Project: 29205
Buggy source:
private void handle_null_service_context(ServerRequestInfo ri,ServiceContext sc,ORB orb){
  if (_logger.isLoggable(Level.FINE)) {
    _logger.log(Level.FINE,"String_Node_Str" + ri.operation());
  }
  int secStatus=secContextUtil.setSecurityContext(null,ri.object_id(),ri.operation(),getServerSocket());
  if (secStatus == SecurityContextUtil.STATUS_FAILED) {
    SASContextBody sasctxbody=createContextError(INVALID_MECHANISM_MAJOR,INVALID_MECHANISM_MINOR);
    sc=createSvcContext(sasctxbody,orb);
    ri.add_reply_service_context(sc,NO_REPLACE);
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str");
    }
    throw new NO_PERMISSION();
  }
}

Fixed version (ground truth):
private void handle_null_service_context(ServerRequestInfo ri,ORB orb){
  if (_logger.isLoggable(Level.FINE)) {
    _logger.log(Level.FINE,"String_Node_Str" + ri.operation());
  }
  int secStatus=secContextUtil.setSecurityContext(null,ri.object_id(),ri.operation(),getServerSocket());
  if (secStatus == SecurityContextUtil.STATUS_FAILED) {
    SASContextBody sasctxbody=createContextError(INVALID_MECHANISM_MAJOR,INVALID_MECHANISM_MINOR);
    ServiceContext sc=createSvcContext(sasctxbody,orb);
    ri.add_reply_service_context(sc,NO_REPLACE);
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str");
    }
    throw new NO_PERMISSION();
  }
}
Program: 29207
Project: 29207
Buggy source:
/** 
 * readObject reads the serialized fields from the input stream and uses them to restore the permission.  This method need not be implemented if establishing the  values of the serialized fields (as is done by defaultReadObject)  is sufficient to initialize the permission.
 */
private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException {
  setMethodSpec((String)s.readFields().get("String_Node_Str",null));
}

Fixed version (ground truth):
/** 
 * readObject reads the serialized fields from the input stream and uses them to restore the permission.  This method need not be implemented if establishing the  values of the serialized fields (as is done by defaultReadObject)  is sufficient to initialize the permission.
 */
private void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException {
  setMethodSpec((String)s.readFields().get("String_Node_Str",null));
}
Program: 29208
Project: 29208
Buggy source:
/** 
 * readObject reads the serialized fields from the input stream and uses them to restore the permission.  This method need not be implemented if establishing the  values of the serialized fields (as is done by defaultReadObject)  is sufficient to initialize the permission.
 */
private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException {
  s.defaultReadObject();
}

Fixed version (ground truth):
/** 
 * readObject reads the serialized fields from the input stream and uses them to restore the permission.  This method need not be implemented if establishing the  values of the serialized fields (as is done by defaultReadObject)  is sufficient to initialize the permission.
 */
private void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException {
  s.defaultReadObject();
}
Program: 29210
Project: 29210
Buggy source:
/** 
 * readObject reads the serialized fields from the input stream and uses them to restore the permission.  This method need not be implemented if establishing the  values of the serialized fields (as is done by defaultReadObject)  is sufficient to initialize the permission.
 */
private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException {
  this.methodSpec=HttpMethodSpec.getSpec((String)s.readFields().get("String_Node_Str",null));
  this.urlPatternSpec=new URLPatternSpec(super.getName());
}

Fixed version (ground truth):
/** 
 * readObject reads the serialized fields from the input stream and uses them to restore the permission.  This method need not be implemented if establishing the  values of the serialized fields (as is done by defaultReadObject)  is sufficient to initialize the permission.
 */
private void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException {
  this.methodSpec=HttpMethodSpec.getSpec((String)s.readFields().get("String_Node_Str",null));
  this.urlPatternSpec=new URLPatternSpec(super.getName());
}
Program: 29211
Project: 29211
Buggy source:
/** 
 * readObject reads the serialized fields from the input stream and uses them to restore the permission.  This method need not be implemented if establishing the  values of the serialized fields (as is done by defaultReadObject)  is sufficient to initialize the permission.
 */
private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException {
  s.defaultReadObject();
}

Fixed version (ground truth):
/** 
 * readObject reads the serialized fields from the input stream and uses them to restore the permission.  This method need not be implemented if establishing the  values of the serialized fields (as is done by defaultReadObject)  is sufficient to initialize the permission.
 */
private void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException {
  s.defaultReadObject();
}
Program: 29212
Project: 29212
Buggy source:
/** 
 * readObject reads the serialized fields from the input stream and uses them to restore the permission.  This method need not be implemented if establishing the  values of the serialized fields (as is done by defaultReadObject)  is sufficient to initialize the permission.
 */
private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException {
  parseActions((String)s.readFields().get("String_Node_Str",null));
  this.urlPatternSpec=new URLPatternSpec(super.getName());
}

Fixed version (ground truth):
/** 
 * readObject reads the serialized fields from the input stream and uses them to restore the permission.  This method need not be implemented if establishing the  values of the serialized fields (as is done by defaultReadObject)  is sufficient to initialize the permission.
 */
private void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException {
  parseActions((String)s.readFields().get("String_Node_Str",null));
  this.urlPatternSpec=new URLPatternSpec(super.getName());
}
Program: 29213
Project: 29213
Buggy source:
/** 
 * Logout the user. <p> This method removes the <code>PrincipalImpl</code> that was added by the <code>commit</code> method. <p>
 * @exception LoginException if the logout fails.
 * @return true in all cases since this <code>LoginModule</code>should not be ignored.
 */
public boolean logout() throws LoginException {
  subject.getPrincipals().remove(userPrincipal);
  succeeded=false;
  succeeded=commitSucceeded;
  username=null;
  if (password != null) {
    for (int i=0; i < password.length; i++) {
      password[i]=' ';
    }
    password=null;
  }
  userPrincipal=null;
  return true;
}

Fixed version (ground truth):
/** 
 * Logout the user. <p> This method removes the <code>PrincipalImpl</code> that was added by the <code>commit</code> method. <p>
 * @exception LoginException if the logout fails.
 * @return true in all cases since this <code>LoginModule</code>should not be ignored.
 */
public boolean logout() throws LoginException {
  subject.getPrincipals().remove(userPrincipal);
  succeeded=commitSucceeded;
  username=null;
  if (password != null) {
    for (int i=0; i < password.length; i++) {
      password[i]=' ';
    }
    password=null;
  }
  userPrincipal=null;
  return true;
}
Program: 29214
Project: 29214
Buggy source:
private void processPasswordValidation(PasswordValidationCallback pwdCallback){
  if (SecurityServicesUtil.getInstance().isACC()) {
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str");
    }
    pwdCallback.setResult(true);
    return;
  }
  String username=pwdCallback.getUsername();
  char[] passwd=pwdCallback.getPassword();
  if (_logger.isLoggable(Level.FINE)) {
    _logger.log(Level.FINE,"String_Node_Str");
  }
  try {
    String realmName=null;
    if (handlerContext != null) {
      realmName=handlerContext.getRealmName();
    }
    Subject s=LoginContextDriver.jmacLogin(pwdCallback.getSubject(),username,passwd,realmName);
    GFServerConfigProvider.setValidateRequestSubject(s);
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str",username);
    }
    passwd=null;
    pwdCallback.setResult(true);
  }
 catch (  LoginException le) {
    if (_logger.isLoggable(Level.INFO)) {
      _logger.log(Level.INFO,"String_Node_Str",username);
    }
    pwdCallback.setResult(false);
  }
}

Fixed version (ground truth):
private void processPasswordValidation(PasswordValidationCallback pwdCallback){
  if (SecurityServicesUtil.getInstance().isACC()) {
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str");
    }
    pwdCallback.setResult(true);
    return;
  }
  String username=pwdCallback.getUsername();
  char[] passwd=pwdCallback.getPassword();
  if (_logger.isLoggable(Level.FINE)) {
    _logger.log(Level.FINE,"String_Node_Str");
  }
  try {
    String realmName=null;
    if (handlerContext != null) {
      realmName=handlerContext.getRealmName();
    }
    Subject s=LoginContextDriver.jmacLogin(pwdCallback.getSubject(),username,passwd,realmName);
    GFServerConfigProvider.setValidateRequestSubject(s);
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str",username);
    }
    if (passwd != null) {
      for (int i=0; i < passwd.length; i++)       passwd[i]=' ';
    }
    pwdCallback.setResult(true);
  }
 catch (  LoginException le) {
    if (_logger.isLoggable(Level.INFO)) {
      _logger.log(Level.INFO,"String_Node_Str",username);
    }
    pwdCallback.setResult(false);
  }
}
Program: 29215
Project: 29215
Buggy source:
public Collection<? extends Sniffer> getSniffers(final ArchiveHandler handler,Collection<? extends Sniffer> sniffers,DeploymentContext context){
  if (sniffers == null) {
    if (handler instanceof CompositeHandler) {
      ((CompositeHandler)handler).initCompositeMetaData(context);
      context.getAppProps().setProperty(ServerTags.IS_COMPOSITE,"String_Node_Str");
    }
    sniffers=snifferManager.getSniffers(context);
  }
  context.addTransientAppMetaData(DeploymentProperties.SNIFFERS,sniffers);
  snifferManager.validateSniffers(sniffers,context);
  return sniffers;
}

Fixed version (ground truth):
public Collection<? extends Sniffer> getSniffers(final ArchiveHandler handler,Collection<? extends Sniffer> sniffers,DeploymentContext context){
  if (handler == null) {
    return Collections.EMPTY_LIST;
  }
  if (sniffers == null) {
    if (handler instanceof CompositeHandler) {
      ((CompositeHandler)handler).initCompositeMetaData(context);
      context.getAppProps().setProperty(ServerTags.IS_COMPOSITE,"String_Node_Str");
    }
    sniffers=snifferManager.getSniffers(context);
  }
  context.addTransientAppMetaData(DeploymentProperties.SNIFFERS,sniffers);
  snifferManager.validateSniffers(sniffers,context);
  return sniffers;
}
Program: 29216
Project: 29216
Buggy source:
static String getMessageId(LogRecord lr){
  String msg=lr.getMessage();
  if (msg != null & !msg.isEmpty()) {
    ResourceBundle rb=lr.getResourceBundle();
    if (rb != null) {
      if (rb.containsKey(msg)) {
        String msgBody=lr.getResourceBundle().getString(msg);
        if (msgBody != null && !msgBody.isEmpty()) {
          return msg;
        }
      }
    }
  }
  return null;
}

Fixed version (ground truth):
static String getMessageId(LogRecord lr){
  String msg=lr.getMessage();
  if (msg != null && !msg.isEmpty()) {
    ResourceBundle rb=lr.getResourceBundle();
    if (rb != null) {
      if (rb.containsKey(msg)) {
        String msgBody=lr.getResourceBundle().getString(msg);
        if (msgBody != null && !msgBody.isEmpty()) {
          return msg;
        }
      }
    }
  }
  return null;
}
Program: 29217
Project: 29217
Buggy source:
@Override public int compare(ColumnInfo o1,ColumnInfo o2){
  return Integer.compare(o1.order,o2.order);
}

Fixed version (ground truth):
@Override public int compare(ColumnInfo o1,ColumnInfo o2){
  return Integer.valueOf(o1.order).compareTo(Integer.valueOf(o2.order));
}
Program: 29219
Project: 29219
Buggy source:
@Override public Collection<? extends AccessCheck> getAccessChecks(){
  final Collection<AccessCheck> checks=new ArrayList<AccessCheck>();
  checks.add(new AccessCheck(AccessRequired.Util.resourceNameFromConfigBeanProxy(parentBean),"String_Node_Str"));
  return checks;
}

Fixed version (ground truth):
@Override public Collection<? extends AccessCheck> getAccessChecks(){
  final Collection<AccessCheck> checks=new ArrayList<AccessCheck>();
  checks.add(new AccessCheck(AccessRequired.Util.resourceNameFromConfigBeanProxy(parentBean),"String_Node_Str"));
  if (longOpt) {
    try {
      List<ConfigBeanProxy> children=(List<ConfigBeanProxy>)targetMethod.invoke(parentBean);
      for (      ConfigBeanProxy child : children) {
        checks.add(new AccessCheck(AccessRequired.Util.resourceNameFromConfigBeanProxy(child),"String_Node_Str"));
      }
    }
 catch (    Exception ex) {
      String msg=localStrings.getLocalString(GenericCrudCommand.class,"String_Node_Str","String_Node_Str",commandName,ex.getMessage());
      logger.severe(msg);
      throw new RuntimeException(msg,ex);
    }
  }
  return checks;
}
Program: 29220
Project: 29220
Buggy source:
@Override public void postConstruct(){
  super.postConstruct();
  listing=targetMethod.getAnnotation(Listing.class);
  resolverType=listing.resolver();
  try {
    cmdModel=new GenericCommandModel(targetType,false,null,listing.i18n(),new LocalStringManagerImpl(targetType),habitat.<DomDocument>getService(DomDocument.class),commandName,false,listing.resolver(),GenericListCommand.class);
    targetModel=habitat.<DomDocument>getService(DomDocument.class).buildModel(targetType);
    if (logger.isLoggable(level)) {
      for (      String paramName : cmdModel.getParametersNames()) {
        CommandModel.ParamModel param=cmdModel.getModelFor(paramName);
        logger.log(Level.FINE,"String_Node_Str",param.getName());
      }
    }
  }
 catch (  Exception e) {
    String msg=localStrings.getLocalString(GenericCrudCommand.class,"String_Node_Str","String_Node_Str",commandName,e.getMessage());
    logger.severe(msg);
    throw new RuntimeException(msg,e);
  }
}

Fixed version (ground truth):
@Override public void postConstruct(){
  super.postConstruct();
  listing=targetMethod.getAnnotation(Listing.class);
  resolverType=listing.resolver();
  try {
    cmdModel=new GenericCommandModel(targetType,false,null,listing.i18n(),new LocalStringManagerImpl(targetType),habitat.<DomDocument>getService(DomDocument.class),commandName,false,listing.resolver(),GenericListCommand.class);
    targetModel=habitat.<DomDocument>getService(DomDocument.class).buildModel(targetType);
    if (logger.isLoggable(level)) {
      for (      String paramName : cmdModel.getParametersNames()) {
        CommandModel.ParamModel param=cmdModel.getModelFor(paramName);
        logger.log(Level.FINE,"String_Node_Str",param.getName());
      }
    }
  }
 catch (  Exception e) {
    String msg=localStrings.getLocalString(GenericCrudCommand.class,"String_Node_Str","String_Node_Str",commandName,e.getMessage());
    logger.severe(msg);
    throw new RuntimeException(msg,e);
  }
  if (outputOpts != null) {
    longOpt=true;
  }
}
Program: 29223
Project: 29223
Buggy source:
public static WebTarget targetWithQueryParams(WebTarget target,MultivaluedMap<String,Object> paramMap){
  for (  Map.Entry<String,List<Object>> param : paramMap.entrySet()) {
    target=target.queryParam(param.getKey(),param.getValue());
  }
  return target;
}

Fixed version (ground truth):
public static WebTarget targetWithQueryParams(WebTarget target,Map<String,Object> paramMap){
  for (  Map.Entry<String,Object> param : paramMap.entrySet()) {
    target=target.queryParam(param.getKey(),param.getValue());
  }
  return target;
}
Program: 29224
Project: 29224
Buggy source:
public static Response getRequestFromServlet(HttpServletRequest request,String endpoint,Map<String,Object> attrs){
  String token=(String)request.getSession().getAttribute(AdminConsoleAuthModule.REST_TOKEN);
  WebTarget target=targetWithQueryParams(JERSEY_CLIENT.target(endpoint),buildMultivalueMap(attrs));
  Response cr=target.request().cookie(new Cookie(REST_TOKEN_COOKIE,token)).get(Response.class);
  return cr;
}

Fixed version (ground truth):
public static Response getRequestFromServlet(HttpServletRequest request,String endpoint,Map<String,Object> attrs){
  String token=(String)request.getSession().getAttribute(AdminConsoleAuthModule.REST_TOKEN);
  WebTarget target=targetWithQueryParams(JERSEY_CLIENT.target(endpoint),attrs);
  Response cr=target.request().cookie(new Cookie(REST_TOKEN_COOKIE,token)).get(Response.class);
  return cr;
}
Program: 29225
Project: 29225
Buggy source:
public static RestResponse delete(String address,Map<String,Object> payload){
  WebTarget target=getJerseyClient().target(address);
  Response cr=targetWithQueryParams(target,buildMultivalueMap(payload)).request(RESPONSE_TYPE).cookie(new Cookie(REST_TOKEN_COOKIE,getRestToken())).delete(Response.class);
  return RestResponse.getRestResponse(cr);
}

Fixed version (ground truth):
public static RestResponse delete(String address,Map<String,Object> payload){
  WebTarget target=getJerseyClient().target(address);
  Response cr=targetWithQueryParams(target,payload).request(RESPONSE_TYPE).cookie(new Cookie(REST_TOKEN_COOKIE,getRestToken())).delete(Response.class);
  return RestResponse.getRestResponse(cr);
}
Program: 29226
Project: 29226
Buggy source:
public static RestResponse get(String address,Map<String,Object> payload){
  if (address.startsWith("String_Node_Str")) {
    address=FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("String_Node_Str") + address;
  }
  WebTarget target=targetWithQueryParams(getJerseyClient().target(address),buildMultivalueMap(payload));
  Response resp=target.request(RESPONSE_TYPE).cookie(new Cookie(REST_TOKEN_COOKIE,getRestToken())).get(Response.class);
  return RestResponse.getRestResponse(resp);
}

Fixed version (ground truth):
public static RestResponse get(String address,Map<String,Object> payload){
  if (address.startsWith("String_Node_Str")) {
    address=FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("String_Node_Str") + address;
  }
  WebTarget target=targetWithQueryParams(getJerseyClient().target(address),payload);
  Response resp=target.request(RESPONSE_TYPE).cookie(new Cookie(REST_TOKEN_COOKIE,getRestToken())).get(Response.class);
  return RestResponse.getRestResponse(resp);
}
Program: 29227
Project: 29227
Buggy source:
public static void getRestRequestFromServlet(HttpServletRequest request,String endpoint,Map<String,Object> attrs,boolean quiet,boolean throwException){
  String token=(String)request.getSession().getAttribute(AdminConsoleAuthModule.REST_TOKEN);
  WebTarget target=targetWithQueryParams(JERSEY_CLIENT.target(endpoint),buildMultivalueMap(attrs));
  Response cr=target.request(RESPONSE_TYPE).cookie(new Cookie(REST_TOKEN_COOKIE,token)).get(Response.class);
  RestResponse rr=RestResponse.getRestResponse(cr);
  parseResponse(rr,null,endpoint,attrs,quiet,throwException);
}

Fixed version (ground truth):
public static void getRestRequestFromServlet(HttpServletRequest request,String endpoint,Map<String,Object> attrs,boolean quiet,boolean throwException){
  String token=(String)request.getSession().getAttribute(AdminConsoleAuthModule.REST_TOKEN);
  WebTarget target=targetWithQueryParams(JERSEY_CLIENT.target(endpoint),attrs);
  Response cr=target.request(RESPONSE_TYPE).cookie(new Cookie(REST_TOKEN_COOKIE,token)).get(Response.class);
  RestResponse rr=RestResponse.getRestResponse(cr);
  parseResponse(rr,null,endpoint,attrs,quiet,throwException);
}
Program: 29228
Project: 29228
Buggy source:
@Override public void deployResource(Object resource) throws Exception {
  final MailSessionDescriptor desc=(MailSessionDescriptor)resource;
  String resourceName=ConnectorsUtil.deriveResourceName(desc.getResourceId(),desc.getName(),desc.getResourceType());
  if (desc != null) {
    MailResource mailResource=new MyMailResource(desc,resourceName);
    getDeployer(mailResource).deployResource(mailResource);
    _logger.log(Level.FINE,"String_Node_Str" + desc.getName() + "String_Node_Str");
  }
 else {
    _logger.log(Level.FINE,"String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public void deployResource(Object resource) throws Exception {
  final MailSessionDescriptor desc=(MailSessionDescriptor)resource;
  String resourceName=ConnectorsUtil.deriveResourceName(desc.getResourceId(),desc.getName(),desc.getResourceType());
  MailResource mailResource=new MyMailResource(desc,resourceName);
  getDeployer(mailResource).deployResource(mailResource);
  _logger.log(Level.FINE,"String_Node_Str" + desc.getName() + "String_Node_Str");
}
Program: 29230
Project: 29230
Buggy source:
/** 
 * Force initialization of the endpoint runtime information as well as the handlers injection
 */
public void initRuntimeInfo(ServletAdapterList list) throws Exception {
  AdapterInvocationInfo aInfo=null;
  try {
    this.adapterList=list;
    aInfo=(AdapterInvocationInfo)prepareInvocation(true);
  }
  finally {
    if (aInfo != null) {
      releaseImplementor(aInfo.getInv());
    }
  }
}

Fixed version (ground truth):
/** 
 * Force initialization of the endpoint runtime information as well as the handlers injection
 */
public synchronized void initRuntimeInfo(ServletAdapterList list) throws Exception {
  AdapterInvocationInfo aInfo=null;
  try {
    this.adapterList=list;
    aInfo=(AdapterInvocationInfo)prepareInvocation(true);
  }
  finally {
    if (aInfo != null) {
      releaseImplementor(aInfo.getInv());
    }
  }
}
Program: 29232
Project: 29232
Buggy source:
public JAXWSServiceDelegate(ServiceReferenceDescriptor descriptor,Service delegate,ClassLoader loader) throws Exception {
  super((new WsUtil()).privilegedGetServiceRefWsdl(descriptor),descriptor.getServiceName());
  serviceRef=descriptor;
  serviceDelegate=delegate;
  classLoader=loader;
  if (serviceRef.hasWsdlFile()) {
    wsdlLocation=(new WsUtil()).privilegedGetServiceRefWsdl(serviceRef);
    fullWsdl=true;
  }
}

Fixed version (ground truth):
public JAXWSServiceDelegate(ServiceReferenceDescriptor descriptor,Service delegate,ClassLoader loader) throws Exception {
  super((new WsUtil()).privilegedGetServiceRefWsdl(descriptor),descriptor.getServiceName());
  serviceRef=descriptor;
  serviceDelegate=delegate;
  if (serviceRef.hasWsdlFile()) {
    wsdlLocation=(new WsUtil()).privilegedGetServiceRefWsdl(serviceRef);
    fullWsdl=true;
  }
}
Program: 29233
Project: 29233
Buggy source:
/** 
 * Return a connection from the properties configured
 * @return a connection
 */
private Connection getConnection() throws LoginException {
  final String dsJndi=this.getProperty(PARAM_DATASOURCE_JNDI);
  final String dbUser=this.getProperty(PARAM_DB_USER);
  final String dbPassword=this.getProperty(PARAM_DB_PASSWORD);
  try {
    String nonTxJndiName=dsJndi + "String_Node_Str";
    final DataSource dataSource=(DataSource)cr.lookupNonTxResource(dsJndi,false);
    Connection connection=null;
    if (dbUser != null && dbPassword != null) {
      connection=dataSource.getConnection(dbUser,dbPassword);
    }
 else {
      connection=dataSource.getConnection();
    }
    return connection;
  }
 catch (  Exception ex) {
    String msg=sm.getString("String_Node_Str",dsJndi,dbUser);
    LoginException loginEx=new LoginException(msg);
    loginEx.initCause(ex);
    throw loginEx;
  }
}

Fixed version (ground truth):
/** 
 * Return a connection from the properties configured
 * @return a connection
 */
private Connection getConnection() throws LoginException {
  final String dsJndi=this.getProperty(PARAM_DATASOURCE_JNDI);
  final String dbUser=this.getProperty(PARAM_DB_USER);
  final String dbPassword=this.getProperty(PARAM_DB_PASSWORD);
  try {
    final DataSource dataSource=(DataSource)cr.lookupNonTxResource(dsJndi,false);
    Connection connection=null;
    if (dbUser != null && dbPassword != null) {
      connection=dataSource.getConnection(dbUser,dbPassword);
    }
 else {
      connection=dataSource.getConnection();
    }
    return connection;
  }
 catch (  Exception ex) {
    String msg=sm.getString("String_Node_Str",dsJndi,dbUser);
    LoginException loginEx=new LoginException(msg);
    loginEx.initCause(ex);
    throw loginEx;
  }
}
Program: 29234
Project: 29234
Buggy source:
public String toString(){
  StringBuffer sb=new StringBuffer();
switch (authenticateSource) {
case SOURCE_AUTH_NONE:
    sb.append("String_Node_Str");
  break;
case SOURCE_AUTH_SENDER:
sb.append("String_Node_Str");
break;
case SOURCE_AUTH_CONTENT:
sb.append("String_Node_Str");
break;
}
if (authenticateRecipient) {
sb.append("String_Node_Str" + "String_Node_Str" + recipientBeforeContent);
}
 else {
sb.append("String_Node_Str");
}
return sb.toString();
}

Fixed version (ground truth):
public String toString(){
  StringBuffer sb=new StringBuffer();
switch (authenticateSource) {
case SOURCE_AUTH_NONE:
    sb.append("String_Node_Str");
  break;
case SOURCE_AUTH_SENDER:
sb.append("String_Node_Str");
break;
case SOURCE_AUTH_CONTENT:
sb.append("String_Node_Str");
break;
default :
break;
}
if (authenticateRecipient) {
sb.append("String_Node_Str" + "String_Node_Str" + recipientBeforeContent);
}
 else {
sb.append("String_Node_Str");
}
return sb.toString();
}
Program: 29236
Project: 29236
Buggy source:
boolean isTransportConstrained(){
  if (excluded || (connectSet != 0 && !bitIsSet(connectSet,ConnectTypeNone))) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
boolean isTransportConstrained(){
  if (excluded || (connectSet != 0 && !bitIsSet(connectSet,connectTypeNone))) {
    return true;
  }
  return false;
}
Program: 29237
Project: 29237
Buggy source:
static void handleConnections(Permissions collection,MapValue m,String name){
  BitSet allConnectMethods=null;
  boolean allConnectAtOther=m.otherConstraint.isConnectAllowed(ConstraintValue.ConnectTypeNone);
  for (int i=0; i < ConstraintValue.connectKeys.length; i++) {
    String actions=null;
    String transport=ConstraintValue.connectKeys[i];
    BitSet connectMethods=m.getConnectMap(1 << i);
    if (i == 0) {
      allConnectMethods=connectMethods;
    }
 else {
      connectMethods.andNot(allConnectMethods);
    }
    if (m.otherConstraint.isConnectAllowed(1 << i)) {
      if (i != 0 && allConnectAtOther) {
        if (connectMethods.isEmpty()) {
          continue;
        }
        actions=MethodValue.getActions(connectMethods);
      }
 else {
        BitSet methods=m.getMethodSet();
        methods.andNot(connectMethods);
        if (!methods.isEmpty()) {
          actions="String_Node_Str" + MethodValue.getActions(methods);
        }
      }
    }
 else     if (!connectMethods.isEmpty()) {
      actions=MethodValue.getActions(connectMethods);
    }
 else {
      continue;
    }
    actions=(actions == null) ? "String_Node_Str" : actions;
    String combinedActions=actions + "String_Node_Str" + transport;
    collection.add(new WebUserDataPermission(name,combinedActions));
    if (logger.isLoggable(Level.FINE)) {
      logger.log(Level.FINE,"String_Node_Str" + transport + "String_Node_Str"+ actions);
    }
  }
}

Fixed version (ground truth):
static void handleConnections(Permissions collection,MapValue m,String name){
  BitSet allConnectMethods=null;
  boolean allConnectAtOther=m.otherConstraint.isConnectAllowed(ConstraintValue.connectTypeNone);
  for (int i=0; i < ConstraintValue.connectKeys.length; i++) {
    String actions=null;
    String transport=ConstraintValue.connectKeys[i];
    BitSet connectMethods=m.getConnectMap(1 << i);
    if (i == 0) {
      allConnectMethods=connectMethods;
    }
 else {
      connectMethods.andNot(allConnectMethods);
    }
    if (m.otherConstraint.isConnectAllowed(1 << i)) {
      if (i != 0 && allConnectAtOther) {
        if (connectMethods.isEmpty()) {
          continue;
        }
        actions=MethodValue.getActions(connectMethods);
      }
 else {
        BitSet methods=m.getMethodSet();
        methods.andNot(connectMethods);
        if (!methods.isEmpty()) {
          actions="String_Node_Str" + MethodValue.getActions(methods);
        }
      }
    }
 else     if (!connectMethods.isEmpty()) {
      actions=MethodValue.getActions(connectMethods);
    }
 else {
      continue;
    }
    actions=(actions == null) ? "String_Node_Str" : actions;
    String combinedActions=actions + "String_Node_Str" + transport;
    collection.add(new WebUserDataPermission(name,combinedActions));
    if (logger.isLoggable(Level.FINE)) {
      logger.log(Level.FINE,"String_Node_Str" + transport + "String_Node_Str"+ actions);
    }
  }
}
Program: 29238
Project: 29238
Buggy source:
boolean isConnectAllowed(int cType){
  if (!excluded && (connectSet == 0 || bitIsSet(connectSet,ConnectTypeNone) || bitIsSet(connectSet,cType))) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
boolean isConnectAllowed(int cType){
  if (!excluded && (connectSet == 0 || bitIsSet(connectSet,connectTypeNone) || bitIsSet(connectSet,cType))) {
    return true;
  }
  return false;
}
Program: 29239
Project: 29239
Buggy source:
void addConnectType(String guarantee){
  int b=ConnectTypeNone;
  if (guarantee != null) {
    Integer bit=connectHash.get(guarantee);
    if (bit == null)     throw new IllegalArgumentException("String_Node_Str");
    b=bit.intValue();
  }
  connectSet|=b;
}

Fixed version (ground truth):
void addConnectType(String guarantee){
  int b=connectTypeNone;
  if (guarantee != null) {
    Integer bit=connectHash.get(guarantee);
    if (bit == null)     throw new IllegalArgumentException("String_Node_Str");
    b=bit.intValue();
  }
  connectSet|=b;
}
Program: 29240
Project: 29240
Buggy source:
@Override public Object run(){
  return new Boolean(Boolean.getBoolean(IIOP_CLIENT_PER_THREAD_FLAG));
}

Fixed version (ground truth):
@Override public Object run(){
  return Boolean.valueOf(Boolean.getBoolean(IIOP_CLIENT_PER_THREAD_FLAG));
}