Skip to content

Commit

Permalink
removed entryIndex param from constructor since it makes no sense there
Browse files Browse the repository at this point in the history
  • Loading branch information
manos committed Jun 21, 2017
1 parent 1a198ba commit 2da0aec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,20 @@
*/
package com.restdude.domain.cases.model;

import java.util.Objects;
import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.restdude.mdd.annotation.model.ModelResource;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

import java.util.Objects;
import java.util.UUID;


import static com.restdude.domain.CommentableModel.*;

/**
* Base case comment implementation
*/
Expand All @@ -60,18 +57,16 @@ public BaseCaseComment() {
super();
}

public BaseCaseComment(String detail, BaseCase parent, Integer entryIndex) {
public BaseCaseComment(String detail, BaseCase parent) {
super();
this.setDetail(detail);
this.setParent(parent);
this.entryIndex = entryIndex;
}

public BaseCaseComment(String name, String detail, BaseCase parent, Integer entryIndex) {
public BaseCaseComment(String name, String detail, BaseCase parent) {
super(name);
this.setDetail(detail);
this.setParent(parent);
this.entryIndex = entryIndex;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
*/
package com.restdude.domain.error.model;

import com.restdude.domain.cases.model.BaseCaseComment;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.restdude.domain.cases.model.BaseCaseComment;

/**
* Comments for discussing errors
*/
Expand All @@ -43,11 +43,11 @@ public ErrorComment(BaseError parent, String content) {
this.setDetail(content);
}

public ErrorComment(String content, BaseError parent, Integer entryIndex) {
super(content, parent, entryIndex);
public ErrorComment(String content, BaseError parent) {
super(content, parent);
}

public ErrorComment(String name, String content, BaseError parent, Integer entryIndex) {
super(name, content, parent, entryIndex);
public ErrorComment(String name, String content, BaseError parent) {
super(name, content, parent);
}
}

0 comments on commit 2da0aec

Please sign in to comment.