CPD Results

The following document contains the results of PMD's CPD 3.9.

Duplications

FileLine
edu\drexel\cms\actions\NewUserRegistrationAction.java76
edu\drexel\cmsDb\datamodel\remote\output\UserElement.java18
  public String getAffiliation() {
    return _affiliation;
  }
  public void setAffiliation(String affiliation) {
    _affiliation = affiliation;
  }
  public String getEmail() {
    return _email;
  }
  public void setEmail(String email) {
    _email = email;
  }
  public String getFirstName() {
    return _firstName;
  }
  public void setFirstName(String firstName) {
    _firstName = firstName;
  }
  public String getLastName() {
    return _lastName;
  }
  public void setLastName(String lastName) {
    _lastName = lastName;
  }
  public String getMiddleName() {
    return _middleName;
  }
  public void setMiddleName(String middleName) {
    _middleName = middleName;
  }
  public String getUserName() {

FileLine
edu\drexel\cms\interceptors\NewPaperInterceptor.java41
edu\drexel\cms\interceptors\NewReviewInterceptor.java40
      request.setAttribute(SessionConstants.PAPER_ATTRIBUTE, paper);
      
    }catch (CmsDataValidationException e) {
      LOG.error(getText(INVALID_DATA), e);
      addErrors(ai, e.getMessage());
    }
    catch (Exception e) {
      LOG.error(getText(PAGE_ERROR), e);
      addErrors(ai, getText(PAGE_ERROR));
    }
    return ai.invoke();
  }
  private void addErrors(ActionInvocation ai, String message){
    if (ai.getAction() instanceof ValidationAware) {
      ValidationAware action = (ValidationAware) ai.getAction();
      action.addActionError(message);
    }
  }
}

FileLine
edu\drexel\cms\interceptors\ConferencePageInterceptor.java48
edu\drexel\cms\interceptors\PaperPageInterceptor.java46
      if(CommonsUtils.IsDeepEmpty(reviews)){
        addErrors(ai, getText(NO_RESULT_ERROR));
      }
    }catch (Exception e) {
      LOG.error(getText(PAGE_ERROR), e);
      addErrors(ai, getText(PAGE_ERROR));
    }
    return ai.invoke();
  }
  private void addErrors(ActionInvocation ai, String message){
    if (ai.getAction() instanceof ValidationAware) {
      ValidationAware action = (ValidationAware) ai.getAction();
      action.addActionError(message);
    }
  }
}