Program: 144490
Project: 144490
Buggy source:
public void validateOnSubmitItem(ItemBean itemBean){
  clearErrorsAndMessages();
  String PATTERN="String_Node_Str";
  String PATTERN2="String_Node_Str";
  String PATTERN3="String_Node_Str";
  String PATTERN4="String_Node_Str";
  Pattern pattern1=Pattern.compile(PATTERN);
  Pattern pattern2=Pattern.compile(PATTERN2);
  Pattern pattern3=Pattern.compile(PATTERN3);
  Pattern pattern4=Pattern.compile(PATTERN4);
  Matcher matcher=pattern3.matcher(itemBean.getItemCode());
  if (!matcher.matches()) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  Matcher matcher1=pattern4.matcher(itemBean.getItemName());
  if (!matcher1.matches()) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  Matcher matcher2=pattern2.matcher(itemBean.getWeight().toString());
  if (!matcher2.matches()) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  Matcher matcher4=pattern2.matcher(itemBean.getWidth().toString());
  if (!matcher4.matches()) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  Matcher matcher5=pattern2.matcher(itemBean.getSrp().toString());
  if (!matcher5.matches()) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  Matcher matcher6=pattern2.matcher(itemBean.getLength().toString());
  if (!matcher6.matches()) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  Matcher matcher7=pattern2.matcher(itemBean.getHeight().toString());
  if (!matcher7.matches()) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  if (StringUtils.isBlank(itemBean.getItemCode())) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  if (StringUtils.isBlank(itemBean.getItemName())) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  if (itemBean.getSrp() == null) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  if (itemBean.getLength() == null) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  if (itemBean.getWidth() == null) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  if (itemBean.getWeight() == null) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  if (StringUtils.isBlank(itemBean.getDescription())) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
}

Fixed version (ground truth):
public void validateOnSubmitItem(ItemBean itemBean){
  clearErrorsAndMessages();
  String PATTERN="String_Node_Str";
  String PATTERN2="String_Node_Str";
  String PATTERN3="String_Node_Str";
  String PATTERN4="String_Node_Str";
  Pattern pattern1=Pattern.compile(PATTERN);
  Pattern pattern2=Pattern.compile(PATTERN2);
  Pattern pattern3=Pattern.compile(PATTERN3);
  Pattern pattern4=Pattern.compile(PATTERN4);
  Matcher matcher=pattern3.matcher(itemBean.getItemCode());
  if (!matcher.matches()) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  Matcher matcher1=pattern4.matcher(itemBean.getItemName());
  if (!matcher1.matches()) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  Matcher matcher2=pattern2.matcher(itemBean.getWeight().toString());
  if (!matcher2.matches()) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  Matcher matcher4=pattern2.matcher(itemBean.getWidth().toString());
  if (!matcher4.matches()) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  Matcher matcher5=pattern2.matcher(itemBean.getSrp().toString());
  if (!matcher5.matches()) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  Matcher matcher6=pattern2.matcher(itemBean.getLength().toString());
  if (!matcher6.matches()) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  Matcher matcher7=pattern2.matcher(itemBean.getHeight().toString());
  if (!matcher7.matches()) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  if (StringUtils.isBlank(itemBean.getItemCode())) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  if (StringUtils.isBlank(itemBean.getItemName())) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  if (itemBean.getSrp() == null) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  if (itemBean.getLength() == null) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  if (itemBean.getWidth() == null) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  if (itemBean.getWeight() == null) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
}