nus-yam/ex-repair huggingface dataset:
Program: 15832
Project: 15832
Buggy source:
/** 
 * Sets the dynamic property. Note: it converts the value to a string object (by use of  {@link Objects#toString}). <p>Note: it handles the style property specially. Refer to   {@link #setStyle}for details.
 */
public void setDynamicProperty(String name,Object value) throws WrongValueException {
  if (name == null)   throw new WrongValueException("String_Node_Str");
  if (!hasDynamicProperty(name))   throw new WrongValueException("String_Node_Str" + name + "String_Node_Str");
  String sval=Objects.toString(value);
  if ("String_Node_Str".equals(name)) {
    sval=filterStyle(sval);
    setDynaProp(name,sval);
  }
 else   if ("String_Node_Str".equals(name)) {
    sval=getEncodedURL(sval);
    setDynaProp(name,sval);
  }
 else   if ("String_Node_Str".equals(name)) {
    setDynaProp(name,sval);
    if (!getChildren().isEmpty())     invalidate();
  }
 else   setDynaProp(name,value);
  smartUpdate("String_Node_Str",new String[]{name,sval},true);
}

Fixed version (ground truth):
/** 
 * Sets the dynamic property. Note: it converts the value to a string object (by use of  {@link Objects#toString}). <p>Note: it handles the style property specially. Refer to   {@link #setStyle}for details.
 */
public void setDynamicProperty(String name,Object value) throws WrongValueException {
  if (name == null)   throw new WrongValueException("String_Node_Str");
  if (!hasDynamicProperty(name))   throw new WrongValueException("String_Node_Str" + name + "String_Node_Str");
  String sval=Objects.toString(value);
  if ("String_Node_Str".equals(name)) {
    sval=filterStyle(sval);
    setDynaProp(name,sval);
  }
 else   if ("String_Node_Str".equals(name)) {
    EncodedURL url=new EncodedURL(sval);
    setDynaProp(name,url);
    smartUpdate("String_Node_Str",new Object[]{name,url},true);
    return;
  }
 else   if ("String_Node_Str".equals(name)) {
    setDynaProp(name,sval);
    if (!getChildren().isEmpty())     invalidate();
  }
 else   setDynaProp(name,value);
  smartUpdate("String_Node_Str",new String[]{name,sval},true);
}
Program: 15833
Project: 15833
Buggy source:
/** 
 * @param hideUuidIfNoId whether not to generate UUID if possible
 */
String getPrologHalf(boolean hideUuidIfNoId){
  final StringBuilder sb=new StringBuilder(128).append('<').append(_tagnm);
  if ((!hideUuidIfNoId && !shallHideId()) || getId().length() > 0)   sb.append("String_Node_Str").append(getUuid()).append('"');
  if (_props != null) {
    for (Iterator it=_props.entrySet().iterator(); it.hasNext(); ) {
      final Map.Entry me=(Map.Entry)it.next();
      if (!"String_Node_Str".equals(me.getKey())) {
        sb.append(' ').append(me.getKey()).append("String_Node_Str").append(XMLs.encodeAttribute(Objects.toString(me.getValue()))).append('"');
      }
    }
  }
  if (!isOrphanTag())   sb.append('/');
  sb.append('>');
  Object textContent=getDynamicProperty("String_Node_Str");
  if (textContent != null)   sb.append(XMLs.escapeXML((String)textContent));
  return sb.toString();
}

Fixed version (ground truth):
/** 
 * @param hideUuidIfNoId whether not to generate UUID if possible
 */
String getPrologHalf(boolean hideUuidIfNoId){
  final StringBuilder sb=new StringBuilder(128).append('<').append(_tagnm);
  if ((!hideUuidIfNoId && !shallHideId()) || getId().length() > 0)   sb.append("String_Node_Str").append(getUuid()).append('"');
  if (_props != null) {
    for (Iterator it=_props.entrySet().iterator(); it.hasNext(); ) {
      final Map.Entry me=(Map.Entry)it.next();
      if (!"String_Node_Str".equals(me.getKey())) {
        Object v=me.getValue();
        if (v instanceof DeferredValue) {
          v=((DeferredValue)v).getValue();
        }
        sb.append(' ').append(me.getKey()).append("String_Node_Str").append(XMLs.encodeAttribute(Objects.toString(v))).append('"');
      }
    }
  }
  if (!isOrphanTag())   sb.append('/');
  sb.append('>');
  Object textContent=getDynamicProperty("String_Node_Str");
  if (textContent != null)   sb.append(XMLs.escapeXML((String)textContent));
  return sb.toString();
}
Program: 15834
Project: 15834
Buggy source:
public Boolean getValue(Component cmp){
  return ((AbstractTag)cmp).isVisible();
}

Fixed version (ground truth):
public Object getValue(){
  return getEncodedURL(_src);
}
Program: 15835
Project: 15835
Buggy source:
protected Object resolve(ELContext ctx,Object base,Object property){
  VariableResolver resolver=_ctx.getVariableResolver();
  if (resolver != null) {
    if (resolver instanceof VariableResolverX) {
      final Object o=((VariableResolverX)resolver).resolveVariable(_ctx,base,property);
      ctx.setPropertyResolved(true);
      return o;
    }
 else     if (base == null && property != null) {
      final Object o=resolver.resolveVariable(property.toString());
      ctx.setPropertyResolved(true);
      return o;
    }
  }
  return null;
}

Fixed version (ground truth):
protected Object resolve(ELContext ctx,Object base,Object property){
  VariableResolver resolver=_ctx.getVariableResolver();
  if (resolver != null) {
    if (resolver instanceof VariableResolverX) {
      final Object o=((VariableResolverX)resolver).resolveVariable(_ctx,base,property);
      if (REFERENCE_BINDING != null && o != null) {
        if (REFERENCE_BINDING.isAssignableFrom(o.getClass())) {
          ctx.setPropertyResolved(true);
          try {
            return GET_VALUE.invoke(o,new Object[]{null});
          }
 catch (          Exception e) {
          }
        }
      }
      ctx.setPropertyResolved(true);
      return o;
    }
 else     if (base == null && property != null) {
      final Object o=resolver.resolveVariable(property.toString());
      ctx.setPropertyResolved(true);
      return o;
    }
  }
  return null;
}
Program: 15836
Project: 15836
Buggy source:
/** 
 * Search _scope instead. 
 */
protected Object getFromScope(String name){
  final BSHInterpreter ip=getInterpreter(_scope);
  final Scope curr=ip != null ? ip.getCurrent() : null;
  if (curr == null)   return getImplicit(name);
  if (_firstGet) {
    _firstGet=false;
    final Execution exec=Executions.getCurrent();
    if (exec != null && exec != curr) {
      Object val=exec instanceof ExecutionCtrl ? ((ExecutionCtrl)exec).getExtraXelVariable(name) : null;
      if (val != null)       return val;
      val=exec.getAttribute(name);
      if (val != null)       return val;
    }
    if (curr != _scope && curr instanceof Component) {
      for (Component c=(Component)curr; c != null && c != _scope; c=c.getParent()) {
        Object val=c.getAttribute(name);
        if (val != null || c.hasAttribute(name))         return val;
      }
    }
  }
  Component comp=(Component)_scope;
  Object val=comp.getAttributeOrFellow(name,false);
  return val != null || comp.hasAttributeOrFellow(name,false) ? val : getImplicit(name);
}

Fixed version (ground truth):
/** 
 * Search _scope instead. 
 */
protected Object getFromScope(String name){
  final BSHInterpreter ip=getInterpreter(_scope);
  final Scope curr=ip != null ? ip.getCurrent() : null;
  if (curr == null)   return getImplicit(name);
  if (_firstGet) {
    _firstGet=false;
    final Execution exec=Executions.getCurrent();
    if (exec != null && exec != curr) {
      Object val=exec instanceof ExecutionCtrl ? ((ExecutionCtrl)exec).getExtraXelVariable(name) : null;
      if (val != null)       return val;
      val=exec.getAttribute(name);
      if (val != null)       return val;
    }
    if (curr != _scope && curr instanceof Component) {
      for (Component c=(Component)curr; c != null && c != _scope; c=c.getParent()) {
        if (c.getParent() instanceof ComponentCtrl && !((ComponentCtrl)c.getParent()).getShadowRoots().isEmpty()) {
          Object o=c.getShadowVariable(name,true);
          if (o != null)           return o;
        }
 else {
          Object o=c.getShadowVariable(name,false);
          if (o != null)           return o;
        }
      }
    }
  }
  Component comp=(Component)_scope;
  Object val=comp.getAttributeOrFellow(name,false);
  return val != null || comp.hasAttributeOrFellow(name,false) ? val : getImplicit(name);
}
Program: 15838
Project: 15838
Buggy source:
public Object getShadowVariable(String name,boolean recurse){
  try {
    _variableSeeking=true;
    return getShadowVariable0(this,name,true);
  }
  finally {
    _variableSeeking=false;
  }
}

Fixed version (ground truth):
public Object getShadowVariable(String name,boolean recurse){
  try {
    _variableSeeking=true;
    return getShadowVariable0(this,name,recurse);
  }
  finally {
    _variableSeeking=false;
  }
}
Program: 15841
Project: 15841
Buggy source:
public Object getValue(BindELContext ctx){
  final int index=BindChildRenderer.this.getRenderedIndex(owner,comp.getParent().getChildren().indexOf(comp));
  Collection<Object> collection=(Collection<Object>)owner.getAttribute(BindELContext.getModelName(owner));
  if (collection != null) {
    if (collection instanceof List<?>) {
      return ((List<Object>)collection).get(index);
    }
 else {
      int i=-1;
      for (      Object o : collection) {
        i++;
        if (i == index)         return o;
      }
    }
  }
  return null;
}

Fixed version (ground truth):
public Object getValue(BindELContext ctx){
  return data;
}
Program: 15842
Project: 15842
Buggy source:
public void setValue(BindELContext ctx,Object value){
  int index=BindChildRenderer.this.getRenderedIndex(owner,comp.getParent().getChildren().indexOf(comp));
  Collection<?> collection=(Collection<?>)owner.getAttribute(BindELContext.getModelName(owner));
  if (collection instanceof List<?>) {
    List<Object> list=(List<Object>)collection;
    try {
      list.set(index,value);
    }
 catch (    UnsupportedOperationException e) {
      throw new PropertyNotWritableException(e);
    }
catch (    IndexOutOfBoundsException e) {
      throw new PropertyNotFoundException(e);
    }
  }
}

Fixed version (ground truth):
public void setValue(BindELContext ctx,Object value){
  Collection<?> collection=(Collection<?>)owner.getAttribute(BindELContext.getModelName(owner));
  if (collection instanceof List<?>) {
    List<Object> list=(List<Object>)collection;
    int index=list.indexOf(data);
    try {
      list.set(index,value);
    }
 catch (    UnsupportedOperationException e) {
      throw new PropertyNotWritableException(e);
    }
catch (    IndexOutOfBoundsException e) {
      throw new PropertyNotFoundException(e);
    }
  }
}
Program: 15844
Project: 15844
Buggy source:
public Object getValue(BindELContext ctx){
  return model.getElementAt(BindComboitemRenderer.this.getRenderedIndex(cb,nci.getIndex()));
}

Fixed version (ground truth):
public Object getValue(BindELContext ctx){
  return data;
}
Program: 15845
Project: 15845
Buggy source:
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  int idx=BindComboitemRenderer.this.getRenderedIndex(cb,nci.getIndex());
  ListModel<?> listmodel=cb.getModel();
  if (idx >= 0 && idx < listmodel.getSize()) {
    if (listmodel instanceof ListModelArray) {
      ((ListModelArray<Object>)listmodel).set(idx,value);
    }
 else     if (listmodel instanceof ListModelList<?>) {
      ((ListModelList<Object>)listmodel).set(idx,value);
    }
  }
 else {
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  ListModel<?> listmodel=cb.getModel();
  int idx=((ListModelArray<Object>)listmodel).indexOf(data);
  if (listmodel instanceof ListModelArray) {
    ((ListModelArray<Object>)listmodel).set(idx,value);
  }
 else   if (listmodel instanceof ListModelList<?>) {
    ((ListModelList<Object>)listmodel).set(idx,value);
  }
}
Program: 15847
Project: 15847
Buggy source:
public Object getValue(BindELContext ctx){
  return listbox.getModel().getElementAt(BindListitemRenderer.this.getRenderedIndex(listbox,nli.getIndex()));
}

Fixed version (ground truth):
public Object getValue(BindELContext ctx){
  return data;
}
Program: 15848
Project: 15848
Buggy source:
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  int idx=BindListitemRenderer.this.getRenderedIndex(listbox,nli.getIndex());
  ListModel<?> listmodel=listbox.getListModel();
  if (idx >= 0 && idx < listmodel.getSize()) {
    if (listmodel instanceof ListModelArray) {
      ((ListModelArray<Object>)listmodel).set(idx,value);
    }
 else     if (listmodel instanceof ListModelList<?>) {
      ((ListModelList<Object>)listmodel).set(idx,value);
    }
  }
 else {
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  ListModel<?> listmodel=listbox.getListModel();
  if (listmodel instanceof ListModelArray) {
    ((ListModelArray<Object>)listmodel).set(((ListModelArray<Object>)listmodel).indexOf(data),value);
  }
 else   if (listmodel instanceof ListModelList<?>) {
    ((ListModelList<Object>)listmodel).set(((ListModelList<Object>)listmodel).indexOf(data),value);
  }
}
Program: 15850
Project: 15850
Buggy source:
public Object getValue(BindELContext ctx){
  return radiogroup.getModel().getElementAt(BindRadioRenderer.this.getRenderedIndex(radiogroup,radiogroup.getChildren().indexOf(nr)));
}

Fixed version (ground truth):
public Object getValue(BindELContext ctx){
  return data;
}
Program: 15851
Project: 15851
Buggy source:
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  int idx=BindRadioRenderer.this.getRenderedIndex(radiogroup,radiogroup.getChildren().indexOf(nr));
  ListModel<?> listmodel=radiogroup.getModel();
  if (idx >= 0 && idx < listmodel.getSize()) {
    if (listmodel instanceof ListModelArray) {
      ((ListModelArray<Object>)listmodel).set(idx,value);
    }
 else     if (listmodel instanceof ListModelList<?>) {
      ((ListModelList<Object>)listmodel).set(idx,value);
    }
  }
 else {
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  ListModel<?> listmodel=radiogroup.getModel();
  if (listmodel instanceof ListModelArray) {
    ((ListModelArray<Object>)listmodel).set(((ListModelArray<Object>)listmodel).indexOf(data),value);
  }
 else   if (listmodel instanceof ListModelList<?>) {
    ((ListModelList<Object>)listmodel).set(((ListModelList<Object>)listmodel).indexOf(data),value);
  }
}
Program: 15853
Project: 15853
Buggy source:
public Object getValue(BindELContext ctx){
  return grid.getModel().getElementAt(BindRowRenderer.this.getRenderedIndex(grid,nr.getIndex()));
}

Fixed version (ground truth):
public Object getValue(BindELContext ctx){
  return data;
}
Program: 15854
Project: 15854
Buggy source:
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  int idx=BindRowRenderer.this.getRenderedIndex(grid,nr.getIndex());
  ListModel<?> listmodel=grid.getListModel();
  if (idx >= 0 && idx < listmodel.getSize()) {
    if (listmodel instanceof ListModelArray) {
      ((ListModelArray<Object>)listmodel).set(idx,value);
    }
 else     if (listmodel instanceof ListModelList<?>) {
      ((ListModelList<Object>)listmodel).set(idx,value);
    }
  }
 else {
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  ListModel<?> listmodel=grid.getListModel();
  if (listmodel instanceof ListModelArray) {
    ((ListModelArray<Object>)listmodel).set(((ListModelArray<Object>)listmodel).indexOf(data),value);
  }
 else   if (listmodel instanceof ListModelList<?>) {
    ((ListModelList<Object>)listmodel).set(((ListModelList<Object>)listmodel).indexOf(data),value);
  }
}
Program: 15857
Project: 15857
Buggy source:
public Object getValue(BindELContext ctx){
  return tabbox.getModel().getElementAt(BindTabboxRenderer.this.getRenderedIndex(tabpanels,ntabpanel.getIndex()));
}

Fixed version (ground truth):
public Object getValue(BindELContext ctx){
  return data;
}
Program: 15858
Project: 15858
Buggy source:
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  int idx=BindTabboxRenderer.this.getRenderedIndex(tabpanels,ntabpanel.getIndex());
  ListModel<?> listmodel=tabbox.getModel();
  if (idx >= 0 && idx < listmodel.getSize()) {
    if (listmodel instanceof ListModelArray) {
      ((ListModelArray<Object>)listmodel).set(idx,value);
    }
 else     if (listmodel instanceof ListModelList<?>) {
      ((ListModelList<Object>)listmodel).set(idx,value);
    }
  }
 else {
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  ListModel<?> listmodel=tabbox.getModel();
  if (listmodel instanceof ListModelArray) {
    ((ListModelArray<Object>)listmodel).set(((ListModelArray<Object>)listmodel).indexOf(data),value);
  }
 else   if (listmodel instanceof ListModelList<?>) {
    ((ListModelList<Object>)listmodel).set(((ListModelList<Object>)listmodel).indexOf(data),value);
  }
}
Program: 15860
Project: 15860
Buggy source:
private void loadComponent0(Component comp,boolean loadinit){
  loadComponentProperties0(comp,loadinit);
  final Map<String,List<Binding>> compBindings=_bindings.get(comp);
  if (_activating || compBindings == null || !compBindings.keySet().contains(CHILDREN_ATTR)) {
    for (Component kid=comp.getFirstChild(); kid != null; kid=kid.getNextSibling()) {
      loadComponent0(kid,loadinit);
    }
  }
  if (comp instanceof ComponentCtrl) {
    for (    ShadowElement se : ((ComponentCtrl)comp).getShadowRoots()) {
      loadComponent0((Component)se,loadinit);
    }
  }
}

Fixed version (ground truth):
private void loadComponent0(Component comp,boolean loadinit){
  loadComponentProperties0(comp,loadinit);
  final Map<String,List<Binding>> compBindings=_bindings.get(comp);
  if (_activating || compBindings == null || !compBindings.keySet().contains(CHILDREN_ATTR)) {
    for (Component kid=comp.getFirstChild(); kid != null; kid=kid.getNextSibling()) {
      loadComponent0(kid,loadinit);
    }
    if (comp instanceof ComponentCtrl) {
      for (      ShadowElement se : ((ComponentCtrl)comp).getShadowRoots()) {
        loadComponent0((Component)se,loadinit);
      }
    }
  }
}
Program: 15862
Project: 15862
Buggy source:
/** 
 * Returns all of the system phase listeners
 */
public static List<PhaseListener> getSystemPhaseListeners(){
  return _listeners;
}

Fixed version (ground truth):
/** 
 * Returns all of the system phase listeners
 */
public static List<PhaseListener> getSystemPhaseListeners(){
  return new LinkedList<PhaseListener>(_listeners.values());
}
Program: 15863
Project: 15863
Buggy source:
public boolean isHandled(Class<?> klass){
  if (PhaseListener.class.isAssignableFrom(klass)) {
    try {
      _listeners.add((PhaseListener)klass.newInstance());
    }
 catch (    Exception e) {
      _log.error("String_Node_Str" + klass,e);
    }
    return true;
  }
  return false;
}

Fixed version (ground truth):
public boolean isHandled(Class<?> klass){
  if (PhaseListener.class.isAssignableFrom(klass)) {
    try {
      if (!_listeners.containsKey(klass.getName())) {
        _listeners.put(klass.getName(),(PhaseListener)klass.newInstance());
      }
    }
 catch (    Exception e) {
      _log.error("String_Node_Str" + klass,e);
    }
    return true;
  }
  return false;
}
Program: 15864
Project: 15864
Buggy source:
/** 
 * Returns all of the system phase listeners
 */
public static List<PhaseListener> getSystemPhaseListeners(){
  return new LinkedList<PhaseListener>(_listeners.values());
}

Fixed version (ground truth):
/** 
 * Returns all of the system phase listeners
 */
public static List<PhaseListener> getSystemPhaseListeners(){
  Collection<PhaseListener> values;
synchronized (_listeners) {
    values=_listeners.values();
  }
  return new LinkedList<PhaseListener>(values);
}
Program: 15865
Project: 15865
Buggy source:
public boolean isHandled(Class<?> klass){
  if (PhaseListener.class.isAssignableFrom(klass)) {
    try {
      if (!_listeners.containsKey(klass.getName())) {
        _listeners.put(klass.getName(),(PhaseListener)klass.newInstance());
      }
    }
 catch (    Exception e) {
      _log.error("String_Node_Str" + klass,e);
    }
    return true;
  }
  return false;
}

Fixed version (ground truth):
public boolean isHandled(Class<?> klass){
  if (PhaseListener.class.isAssignableFrom(klass)) {
    try {
synchronized (_listeners) {
        if (!_listeners.containsKey(klass.getName())) {
          _listeners.put(klass.getName(),(PhaseListener)klass.newInstance());
        }
      }
    }
 catch (    Exception e) {
      _log.error("String_Node_Str" + klass,e);
    }
    return true;
  }
  return false;
}
Program: 15867
Project: 15867
Buggy source:
@Test public void test(){
  DesktopAgent desktop=connect();
  ComponentAgent mytree=desktop.query("String_Node_Str");
  ComponentAgent paging=mytree.query("String_Node_Str");
  ComponentAgent btn=desktop.query("String_Node_Str");
  paging.as(PagingAgent.class).moveTo(9999);
  try {
    btn.click();
    assertTrue(true);
  }
 catch (  Exception e) {
    assertFalse(true);
  }
}

Fixed version (ground truth):
@Test public void test(){
  DesktopAgent desktop=connect();
  ComponentAgent mytree=desktop.query("String_Node_Str");
  ComponentAgent paging=mytree.query("String_Node_Str");
  ComponentAgent btn=desktop.query("String_Node_Str");
  paging.as(PagingAgent.class).moveTo(9999);
  try {
    btn.click();
    assertTrue(true);
  }
 catch (  Exception e) {
    fail(e.getCause().toString());
  }
}
Program: 15868
Project: 15868
Buggy source:
@Test public void test(){
  try {
    connect();
    assertTrue(true);
  }
 catch (  Exception e) {
    assertTrue(false);
  }
}

Fixed version (ground truth):
@Test public void test(){
  try {
    connect();
    assertTrue(true);
  }
 catch (  Exception e) {
    fail(e.getCause().toString());
  }
}
Program: 15870
Project: 15870
Buggy source:
public boolean isHandled(Method m){
  if (m.isAnnotationPresent(Transient.class))   return false;
  final String name=m.getName();
  if (name.startsWith("String_Node_Str")) {
    try {
      final String getter=toGetter(toAttrName(m));
      final Method getMethod=Classes.getMethodByObject(m.getDeclaringClass(),getter,null);
      if (getMethod.isAnnotationPresent(Transient.class))       return false;
    }
 catch (    NoSuchMethodException e) {
    }
    return true;
  }
  if (name.startsWith("String_Node_Str") || name.startsWith("String_Node_Str") || name.equals("String_Node_Str"))   return true;
  try {
    FormProxyObject.class.getMethod(m.getName(),m.getParameterTypes());
    return true;
  }
 catch (  NoSuchMethodException e) {
    return false;
  }
}

Fixed version (ground truth):
public boolean isHandled(Method m){
  if (m.isAnnotationPresent(Transient.class))   return false;
  final String name=m.getName();
  if (name.startsWith("String_Node_Str")) {
    try {
      final String getter=toGetter(toAttrName(m));
      final Method getMethod=Classes.getMethodByObject(m.getDeclaringClass(),getter,null);
      if (getMethod.isAnnotationPresent(Transient.class))       return false;
    }
 catch (    NoSuchMethodException e) {
    }
    return true;
  }
  if (name.startsWith("String_Node_Str") || name.startsWith("String_Node_Str") || name.equals("String_Node_Str")|| name.equals("String_Node_Str"))   return true;
  try {
    FormProxyObject.class.getMethod(m.getName(),m.getParameterTypes());
    return true;
  }
 catch (  NoSuchMethodException e) {
    return false;
  }
}
Program: 15873
Project: 15873
Buggy source:
/** 
 * Executes a non-component object, such as ZScript, AttributesInfo...
 */
private static final void execNonComponent(CreateInfo ci,Component comp,Object meta){
  final Page page=ci.page;
  if (meta instanceof AttributesInfo) {
    final AttributesInfo attrs=(AttributesInfo)meta;
    if (comp != null)     attrs.apply(comp);
 else     attrs.apply(page);
  }
 else   if (meta instanceof TemplateInfo) {
    final TemplateInfo tempInfo=(TemplateInfo)meta;
    if (isEffective(tempInfo,page,comp))     comp.setTemplate(tempInfo.getName(),new TemplateImpl(tempInfo,comp));
  }
 else   if (meta instanceof ZScriptInfo) {
    final ZScriptInfo zsInfo=(ZScriptInfo)meta;
    if (isEffective(zsInfo,page,comp)) {
      if (zsInfo.isDeferred()) {
        ((PageCtrl)page).addDeferredZScript(comp,zsInfo.getZScript());
      }
 else {
        final Scope scope=Scopes.beforeInterpret(comp != null ? (Scope)comp : page);
        try {
          page.interpret(zsInfo.getLanguage(),zsInfo.getContent(page,comp),scope);
        }
  finally {
          Scopes.afterInterpret();
        }
      }
    }
  }
 else   if (meta instanceof VariablesInfo) {
    final VariablesInfo vars=(VariablesInfo)meta;
    if (comp != null)     vars.apply(comp);
 else     vars.apply(page);
  }
 else {
    throw new IllegalStateException(meta + "String_Node_Str" + comp);
  }
}

Fixed version (ground truth):
/** 
 * Executes a non-component object, such as ZScript, AttributesInfo...
 */
private static final void execNonComponent(CreateInfo ci,Component comp,Object meta){
  final Page page=ci.page;
  if (meta instanceof AttributesInfo) {
    final AttributesInfo attrs=(AttributesInfo)meta;
    if (comp != null)     attrs.apply(comp);
 else     attrs.apply(page);
  }
 else   if (meta instanceof TemplateInfo) {
    final TemplateInfo tempInfo=(TemplateInfo)meta;
    if (isEffective(tempInfo,page,comp)) {
      if (comp == null)       page.addTemplate(tempInfo.getName(),new TemplateImpl(tempInfo,comp));
 else       comp.setTemplate(tempInfo.getName(),new TemplateImpl(tempInfo,comp));
    }
  }
 else   if (meta instanceof ZScriptInfo) {
    final ZScriptInfo zsInfo=(ZScriptInfo)meta;
    if (isEffective(zsInfo,page,comp)) {
      if (zsInfo.isDeferred()) {
        ((PageCtrl)page).addDeferredZScript(comp,zsInfo.getZScript());
      }
 else {
        final Scope scope=Scopes.beforeInterpret(comp != null ? (Scope)comp : page);
        try {
          page.interpret(zsInfo.getLanguage(),zsInfo.getContent(page,comp),scope);
        }
  finally {
          Scopes.afterInterpret();
        }
      }
    }
  }
 else   if (meta instanceof VariablesInfo) {
    final VariablesInfo vars=(VariablesInfo)meta;
    if (comp != null)     vars.apply(comp);
 else     vars.apply(page);
  }
 else {
    throw new IllegalStateException(meta + "String_Node_Str" + comp);
  }
}
Program: 15874
Project: 15874
Buggy source:
private void processAllComponentsBindings(Component comp){
  final Binder selfBinder=BinderUtil.getBinder(comp);
  if (selfBinder != null)   return;
  BindingAnnotationInfoChecker checker=((BinderCtrl)_binder).getBindingAnnotationInfoChecker();
  if (checker != null) {
    checker.checkBinding(_binder,comp);
  }
  processComponentBindings0(comp);
  for (final Iterator<Component> it=comp.getChildren().iterator(); it.hasNext(); ) {
    final Component kid=it.next();
    if (!kid.hasAttribute(BindComposer.BINDER_ID))     processAllComponentsBindings(kid);
  }
  if (comp instanceof ComponentCtrl) {
    for (    ShadowElement se : ((ComponentCtrl)comp).getShadowRoots()) {
      processAllComponentsBindings((Component)se);
    }
  }
}

Fixed version (ground truth):
private void processAllComponentsBindings(Component comp){
  final Binder selfBinder=BinderUtil.getBinder(comp);
  if (selfBinder != null)   return;
  BindingAnnotationInfoChecker checker=((BinderCtrl)_binder).getBindingAnnotationInfoChecker();
  if (checker != null) {
    checker.checkBinding(_binder,comp);
  }
  processComponentBindings0(comp);
  for (final Iterator<Component> it=comp.getChildren().iterator(); it.hasNext(); ) {
    final Component kid=it.next();
    if (!kid.hasAttribute(BindComposer.BINDER_ID)) {
      processAllComponentsBindings(kid);
    }
 else     if (kid.hasAttribute(BinderCtrl.REMOVE_BINDINGS)) {
      kid.removeAttribute(BinderCtrl.REMOVE_BINDINGS);
      final Binder nestedBinder=(Binder)kid.getAttribute((String)kid.getAttribute(BindComposer.BINDER_ID));
      new AnnotateBinderHelper(nestedBinder).initComponentBindings(kid);
      BinderUtil.markHandling(kid,nestedBinder);
    }
  }
  if (comp instanceof ComponentCtrl) {
    for (    ShadowElement se : ((ComponentCtrl)comp).getShadowRoots()) {
      processAllComponentsBindings((Component)se);
    }
  }
}
Program: 15875
Project: 15875
Buggy source:
private void removeBindings0(Component comp){
  checkInit();
  if (_rootComp == comp) {
    unsubscribeQueue(_quename,_quescope,_queueListener);
    _rootComp.removeAttribute(ACTIVATOR);
  }
  if (_validationMessages != null) {
    _validationMessages.clearMessages(comp);
  }
  final Map<String,List<Binding>> attrMap=_bindings.remove(comp);
  if (attrMap != null) {
    final Set<Binding> removed=new HashSet<Binding>();
    for (    Entry<String,List<Binding>> entry : attrMap.entrySet()) {
      final String key=entry.getKey();
      removeBindings(comp,key);
      removed.addAll(entry.getValue());
    }
    if (!removed.isEmpty()) {
      removeBindings(removed,comp);
    }
  }
  removeFormAssociatedSaveBinding(comp);
  removeForm(comp);
  removeTemplateResolver(comp);
  if (_refBindingHandler != null) {
    _refBindingHandler.removeReferenceBinding(comp);
  }
  BinderUtil.unmarkHandling(comp);
}

Fixed version (ground truth):
private void removeBindings0(Component comp){
  checkInit();
  if (_rootComp == comp) {
    unsubscribeQueue(_quename,_quescope,_queueListener);
    _rootComp.removeAttribute(ACTIVATOR);
  }
  if (_validationMessages != null) {
    _validationMessages.clearMessages(comp);
  }
  final Map<String,List<Binding>> attrMap=_bindings.remove(comp);
  if (attrMap != null) {
    final Set<Binding> removed=new HashSet<Binding>();
    for (    Entry<String,List<Binding>> entry : attrMap.entrySet()) {
      final String key=entry.getKey();
      removeBindings(comp,key);
      removed.addAll(entry.getValue());
    }
    if (!removed.isEmpty()) {
      removeBindings(removed,comp);
    }
  }
  removeFormAssociatedSaveBinding(comp);
  removeForm(comp);
  removeTemplateResolver(comp);
  if (_refBindingHandler != null) {
    _refBindingHandler.removeReferenceBinding(comp);
  }
  BinderUtil.unmarkHandling(comp);
  if (comp.hasAttribute(BindComposer.BINDER_ID))   comp.setAttribute(REMOVE_BINDINGS,Boolean.TRUE);
}
Program: 15878
Project: 15878
Buggy source:
public Class<Boolean> getType(){
  return Boolean.class;
}

Fixed version (ground truth):
public Class<Boolean> getType(){
  return Boolean.TYPE;
}
Program: 15882
Project: 15882
Buggy source:
/** 
 * Sets the unless condition.
 * @see #isEffective
 * @param cond the condition.Note: If null (not specified), it is considered ineffective.
 */
public void setUnless(String cond){
  _unless=cond != null && cond.length() > 0 ? new ExValue(cond,Boolean.class) : null;
}

Fixed version (ground truth):
/** 
 * Sets the unless condition.
 * @see #isEffective
 * @param cond the condition.Note: If null (not specified), it is considered ineffective.
 */
public void setUnless(String cond){
  _unless=cond != null && cond.length() > 0 ? new ExValue(cond,Boolean.TYPE) : null;
}
Program: 15883
Project: 15883
Buggy source:
/** 
 * Sets the if condition.
 * @see #isEffective
 * @param cond the condition.Note: If null (not specified), it is considered effective.
 */
public void setIf(String cond){
  _if=cond != null && cond.length() > 0 ? new ExValue(cond,Boolean.class) : null;
}

Fixed version (ground truth):
/** 
 * Sets the if condition.
 * @see #isEffective
 * @param cond the condition.Note: If null (not specified), it is considered effective.
 */
public void setIf(String cond){
  _if=cond != null && cond.length() > 0 ? new ExValue(cond,Boolean.TYPE) : null;
}
Program: 15884
Project: 15884
Buggy source:
private synchronized void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
  s.defaultWriteObject();
  writeSelection(s);
  Serializables.smartWrite(s,_listeners);
}

Fixed version (ground truth):
private synchronized void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
  s.defaultWriteObject();
  writeSelection(s);
  Serializables.smartWrite(s,_listeners);
  Serializables.smartWrite(s,_pagingListeners);
}
Program: 15885
Project: 15885
Buggy source:
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
  s.defaultReadObject();
  readSelection(s);
  _listeners=new ArrayList<ListDataListener>();
  Serializables.smartRead(s,_listeners);
}

Fixed version (ground truth):
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
  s.defaultReadObject();
  readSelection(s);
  _listeners=new ArrayList<ListDataListener>();
  Serializables.smartRead(s,_listeners);
  _pagingListeners=new ArrayList<PagingListener>();
  Serializables.smartRead(s,_pagingListeners);
}
Program: 15886
Project: 15886
Buggy source:
@SuppressWarnings("String_Node_Str") public Object clone(){
  final AbstractListModel clone;
  try {
    clone=(AbstractListModel)super.clone();
  }
 catch (  CloneNotSupportedException e) {
    throw new InternalError();
  }
  clone._listeners=new ArrayList<ListDataListener>();
  clone._selection=clone.newEmptySelection();
  clone._selection.addAll(_selection);
  return clone;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public Object clone(){
  final AbstractListModel clone;
  try {
    clone=(AbstractListModel)super.clone();
  }
 catch (  CloneNotSupportedException e) {
    throw new InternalError();
  }
  clone._listeners=new ArrayList<ListDataListener>();
  clone._pagingListeners=new ArrayList<PagingListener>();
  clone._selection=clone.newEmptySelection();
  clone._selection.addAll(_selection);
  return clone;
}
Program: 15887
Project: 15887
Buggy source:
public void removePagingEventListener(PagingListener l);

Fixed version (ground truth):
/** 
 * Removes a listener from the list of listeners to be notified when a PagingEvent happens outside of standard Paging component
 * @param listener
 */
public void removePagingEventListener(PagingListener listener);
Program: 15888
Project: 15888
Buggy source:
public void addPagingEventListener(PagingListener l);

Fixed version (ground truth):
/** 
 * Adds a listener to the list of listeners to be notified when a PagingEvent happens outside of standard Paging component
 * @param listener
 */
public void addPagingEventListener(PagingListener listener);
Program: 15889
Project: 15889
Buggy source:
@SuppressWarnings("String_Node_Str") public static DefaultTreeNode<String> node(String data,TreeNode<?>... children){
  return new DefaultTreeNode<String>(data,(Collection<? extends TreeNode<String>>)Arrays.asList(children));
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public static DefaultTreeNode<String> node(String data,TreeNode<?>... children){
  return new DefaultTreeNode<String>(data,(Collection<? extends TreeNode<String>>)Arrays.asList((TreeNode<String>[])children));
}
Program: 15890
Project: 15890
Buggy source:
protected Component[] filterOutShadows(Component parent,Component[] items){
  boolean hasShadow=false;
  if (parent instanceof ComponentCtrl) {
    ComponentCtrl pCtrl=(ComponentCtrl)parent;
    for (    ShadowElement se : pCtrl.getShadowRoots()) {
      if (se instanceof HtmlShadowElement) {
        HtmlShadowElement hse=(HtmlShadowElement)se;
        hse.setAttribute(BinderCtrl.BINDRENDERING,true);
        if (hse.hasBindingAnnotation() || hse.hasSubBindingAnnotation()) {
          hse.setAttribute(BinderCtrl.BINDRENDERING,true);
          try {
            Events.sendEvent(new Event(BinderCtrl.ON_BIND_INIT,hse));
          }
  finally {
            hse.removeAttribute(BinderCtrl.BINDRENDERING);
          }
        }
      }
      hasShadow=true;
    }
  }
  return hasShadow ? ShadowElementsCtrl.filterOutShadows(items) : items;
}

Fixed version (ground truth):
protected Component[] filterOutShadows(Component parent,Component[] items){
  boolean hasShadow=checkShadowElementAndCreateSubChildren(parent);
  for (  Component item : items) {
    checkShadowElementAndCreateSubChildren(item);
  }
  return hasShadow ? ShadowElementsCtrl.filterOutShadows(items) : items;
}
Program: 15898
Project: 15898
Buggy source:
static void rewireVariablesOnActivate(Component component,Object controller,List<VariableResolver> extraResolvers){
  new Wirer(controller,true).wireVariables(new ComponentFunctor(component),extraResolvers);
}

Fixed version (ground truth):
/** 
 * Rewire the variables on session activation
 * @since 7.0.7
 */
public static void rewireVariablesOnActivate(Component component,Object controller,List<VariableResolver> extraResolvers){
  new Wirer(controller,true).wireVariables(new ComponentFunctor(component),extraResolvers);
}
Program: 15899
Project: 15899
Buggy source:
static void rewireComponentsOnActivate(Component component,Object controller){
  new Wirer(controller,true).wireComponents(new ComponentFunctor(component),false);
}

Fixed version (ground truth):
/** 
 * Rewire the components on session activation
 * @since 7.0.7
 */
public static void rewireComponentsOnActivate(Component component,Object controller){
  new Wirer(controller,true).wireComponents(new ComponentFunctor(component),false);
}
Program: 15902
Project: 15902
Buggy source:
public Object getValue(BindELContext ctx){
  final int index=comp.getParent().getChildren().indexOf(comp) / items.length;
  Collection<Object> collection=(Collection<Object>)owner.getAttribute(BindELContext.getModelName(owner));
  if (collection != null) {
    int i=-1;
    for (    Object o : collection) {
      i++;
      if (i == index)       return o;
    }
  }
  return null;
}

Fixed version (ground truth):
public Object getValue(BindELContext ctx){
  final int index=BindChildRenderer.this.getRenderedIndex(owner,comp.getParent().getChildren().indexOf(comp));
  Collection<Object> collection=(Collection<Object>)owner.getAttribute(BindELContext.getModelName(owner));
  if (collection != null) {
    if (collection instanceof List<?>) {
      return ((List<Object>)collection).get(index);
    }
 else {
      int i=-1;
      for (      Object o : collection) {
        i++;
        if (i == index)         return o;
      }
    }
  }
  return null;
}
Program: 15903
Project: 15903
Buggy source:
public void setValue(BindELContext ctx,Object value){
  int index=comp.getParent().getChildren().indexOf(comp) / items.length;
  Collection<?> collection=(Collection<?>)owner.getAttribute(BindELContext.getModelName(owner));
  if (collection instanceof List<?>) {
    List<Object> list=(List<Object>)collection;
    try {
      list.set(index,value);
    }
 catch (    UnsupportedOperationException e) {
      throw new PropertyNotWritableException(e);
    }
catch (    IndexOutOfBoundsException e) {
      throw new PropertyNotFoundException(e);
    }
  }
}

Fixed version (ground truth):
public void setValue(BindELContext ctx,Object value){
  int index=BindChildRenderer.this.getRenderedIndex(owner,comp.getParent().getChildren().indexOf(comp));
  Collection<?> collection=(Collection<?>)owner.getAttribute(BindELContext.getModelName(owner));
  if (collection instanceof List<?>) {
    List<Object> list=(List<Object>)collection;
    try {
      list.set(index,value);
    }
 catch (    UnsupportedOperationException e) {
      throw new PropertyNotWritableException(e);
    }
catch (    IndexOutOfBoundsException e) {
      throw new PropertyNotFoundException(e);
    }
  }
}
Program: 15905
Project: 15905
Buggy source:
public Object getValue(BindELContext ctx){
  return model.getElementAt(nci.getIndex() / items.length);
}

Fixed version (ground truth):
public Object getValue(BindELContext ctx){
  return model.getElementAt(BindComboitemRenderer.this.getRenderedIndex(cb,nci.getIndex()));
}
Program: 15906
Project: 15906
Buggy source:
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  int idx=nci.getIndex() / items.length;
  ListModel<?> listmodel=cb.getModel();
  if (idx >= 0 && idx < listmodel.getSize()) {
    if (listmodel instanceof ListModelArray) {
      ((ListModelArray<Object>)listmodel).set(idx,value);
    }
 else     if (listmodel instanceof ListModelList<?>) {
      ((ListModelList<Object>)listmodel).set(idx,value);
    }
  }
 else {
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  int idx=BindComboitemRenderer.this.getRenderedIndex(cb,nci.getIndex());
  ListModel<?> listmodel=cb.getModel();
  if (idx >= 0 && idx < listmodel.getSize()) {
    if (listmodel instanceof ListModelArray) {
      ((ListModelArray<Object>)listmodel).set(idx,value);
    }
 else     if (listmodel instanceof ListModelList<?>) {
      ((ListModelList<Object>)listmodel).set(idx,value);
    }
  }
 else {
  }
}
Program: 15908
Project: 15908
Buggy source:
public Object getValue(BindELContext ctx){
  return listbox.getModel().getElementAt(nli.getIndex() / items.length);
}

Fixed version (ground truth):
public Object getValue(BindELContext ctx){
  return listbox.getModel().getElementAt(BindListitemRenderer.this.getRenderedIndex(listbox,nli.getIndex()));
}
Program: 15909
Project: 15909
Buggy source:
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  int idx=nli.getIndex() / items.length;
  ListModel<?> listmodel=listbox.getListModel();
  if (idx >= 0 && idx < listmodel.getSize()) {
    if (listmodel instanceof ListModelArray) {
      ((ListModelArray<Object>)listmodel).set(idx,value);
    }
 else     if (listmodel instanceof ListModelList<?>) {
      ((ListModelList<Object>)listmodel).set(idx,value);
    }
  }
 else {
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  int idx=BindListitemRenderer.this.getRenderedIndex(listbox,nli.getIndex());
  ListModel<?> listmodel=listbox.getListModel();
  if (idx >= 0 && idx < listmodel.getSize()) {
    if (listmodel instanceof ListModelArray) {
      ((ListModelArray<Object>)listmodel).set(idx,value);
    }
 else     if (listmodel instanceof ListModelList<?>) {
      ((ListModelList<Object>)listmodel).set(idx,value);
    }
  }
 else {
  }
}
Program: 15911
Project: 15911
Buggy source:
public Object getValue(BindELContext ctx){
  return radiogroup.getModel().getElementAt(radiogroup.getChildren().indexOf(nr) / items.length);
}

Fixed version (ground truth):
public Object getValue(BindELContext ctx){
  return radiogroup.getModel().getElementAt(BindRadioRenderer.this.getRenderedIndex(radiogroup,radiogroup.getChildren().indexOf(nr)));
}
Program: 15912
Project: 15912
Buggy source:
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  int idx=radiogroup.getChildren().indexOf(nr) / items.length;
  ListModel<?> listmodel=radiogroup.getModel();
  if (idx >= 0 && idx < listmodel.getSize()) {
    if (listmodel instanceof ListModelArray) {
      ((ListModelArray<Object>)listmodel).set(idx,value);
    }
 else     if (listmodel instanceof ListModelList<?>) {
      ((ListModelList<Object>)listmodel).set(idx,value);
    }
  }
 else {
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  int idx=BindRadioRenderer.this.getRenderedIndex(radiogroup,radiogroup.getChildren().indexOf(nr));
  ListModel<?> listmodel=radiogroup.getModel();
  if (idx >= 0 && idx < listmodel.getSize()) {
    if (listmodel instanceof ListModelArray) {
      ((ListModelArray<Object>)listmodel).set(idx,value);
    }
 else     if (listmodel instanceof ListModelList<?>) {
      ((ListModelList<Object>)listmodel).set(idx,value);
    }
  }
 else {
  }
}
Program: 15914
Project: 15914
Buggy source:
public Object getValue(BindELContext ctx){
  return grid.getModel().getElementAt(nr.getIndex() / items.length);
}

Fixed version (ground truth):
public Object getValue(BindELContext ctx){
  return grid.getModel().getElementAt(BindRowRenderer.this.getRenderedIndex(grid,nr.getIndex()));
}
Program: 15915
Project: 15915
Buggy source:
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  int idx=nr.getIndex() / items.length;
  ListModel<?> listmodel=grid.getListModel();
  if (idx >= 0 && idx < listmodel.getSize()) {
    if (listmodel instanceof ListModelArray) {
      ((ListModelArray<Object>)listmodel).set(idx,value);
    }
 else     if (listmodel instanceof ListModelList<?>) {
      ((ListModelList<Object>)listmodel).set(idx,value);
    }
  }
 else {
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  int idx=BindRowRenderer.this.getRenderedIndex(grid,nr.getIndex());
  ListModel<?> listmodel=grid.getListModel();
  if (idx >= 0 && idx < listmodel.getSize()) {
    if (listmodel instanceof ListModelArray) {
      ((ListModelArray<Object>)listmodel).set(idx,value);
    }
 else     if (listmodel instanceof ListModelList<?>) {
      ((ListModelList<Object>)listmodel).set(idx,value);
    }
  }
 else {
  }
}
Program: 15918
Project: 15918
Buggy source:
public Object getValue(BindELContext ctx){
  return tabbox.getModel().getElementAt(ntabpanel.getIndex() / items.length);
}

Fixed version (ground truth):
public Object getValue(BindELContext ctx){
  return tabbox.getModel().getElementAt(BindTabboxRenderer.this.getRenderedIndex(tabpanels,ntabpanel.getIndex()));
}
Program: 15919
Project: 15919
Buggy source:
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  int idx=ntabpanel.getIndex() / items.length;
  ListModel<?> listmodel=tabbox.getModel();
  if (idx >= 0 && idx < listmodel.getSize()) {
    if (listmodel instanceof ListModelArray) {
      ((ListModelArray<Object>)listmodel).set(idx,value);
    }
 else     if (listmodel instanceof ListModelList<?>) {
      ((ListModelList<Object>)listmodel).set(idx,value);
    }
  }
 else {
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void setValue(BindELContext ctx,Object value){
  int idx=BindTabboxRenderer.this.getRenderedIndex(tabpanels,ntabpanel.getIndex());
  ListModel<?> listmodel=tabbox.getModel();
  if (idx >= 0 && idx < listmodel.getSize()) {
    if (listmodel instanceof ListModelArray) {
      ((ListModelArray<Object>)listmodel).set(idx,value);
    }
 else     if (listmodel instanceof ListModelList<?>) {
      ((ListModelList<Object>)listmodel).set(idx,value);
    }
  }
 else {
  }
}
Program: 15923
Project: 15923
Buggy source:
protected Object evaluateTemplate(Component eachComp,final Object eachData,final int index,final int size,final String subType){
  Object oldEach=null;
  Object oldStatus=null;
  try {
    oldEach=eachComp.setAttribute(EACH_VAR,eachData);
    oldStatus=eachComp.setAttribute(EACH_STATUS_VAR,new AbstractForEachStatus(){
      private static final long serialVersionUID=1L;
      public int getIndex(){
        return index;
      }
      public Object getCurrent(){
        return eachData;
      }
      public Integer getEnd(){
        if (size < 0) {
          throw new UiException("String_Node_Str");
        }
        return size;
      }
    }
);
    final BindEvaluatorX eval=_binder.getEvaluatorX();
    final BindContext ctx=BindContextUtil.newBindContext(_binder,null,false,null,eachComp,null);
    final Object value=eval.getValue(ctx,eachComp,_expression);
    return value;
  }
  finally {
    eachComp.setAttribute(EACH_VAR,oldEach);
    eachComp.setAttribute(EACH_STATUS_VAR,oldStatus);
  }
}

Fixed version (ground truth):
protected Object evaluateTemplate(Component eachComp,final Object eachData,final int index,final int size,final String subType){
  Object oldEach=null;
  Object oldStatus=null;
  try {
    oldEach=eachComp.setAttribute(EACH_VAR,eachData);
    oldStatus=eachComp.setAttribute(EACH_STATUS_VAR,new AbstractForEachStatus(){
      private static final long serialVersionUID=1L;
      public int getIndex(){
        return index;
      }
      public Object getCurrent(){
        return eachData;
      }
      public Integer getEnd(){
        if (size < 0) {
          throw new UiException("String_Node_Str");
        }
        return size;
      }
    }
);
    final BindEvaluatorX eval=_binder.getEvaluatorX();
    final BindContext ctx=BindContextUtil.newBindContext(_binder,null,false,null,eachComp,null);
    final Object value=eval.getValue(ctx,eachComp,_expression);
    return value;
  }
  finally {
    if (oldEach != null) {
      eachComp.setAttribute(EACH_VAR,oldEach);
    }
 else {
      eachComp.removeAttribute(EACH_VAR);
    }
    if (oldStatus != null) {
      eachComp.setAttribute(EACH_STATUS_VAR,oldStatus);
    }
 else {
      eachComp.removeAttribute(EACH_STATUS_VAR);
    }
  }
}