Skip to content

Commit

Permalink
Merge pull request #16 from biancini/master
Browse files Browse the repository at this point in the history
Revied setters to eliminate warning in IDE
  • Loading branch information
mchyzer committed Nov 3, 2014
2 parents 448a696 + c6a663d commit 8b13f18
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ public String getType() {

/**
* Type of email. Should be a value between "home", "work", "other". e.g. 'work'
* @param type the tile of the email.
* @param type1 the tile of the email.
*/
public void setType(String type) {
this.type = type;
public void setType(String type1) {
this.type = type1;
}

/**
Expand All @@ -54,10 +54,10 @@ public String getValue() {

/**
* Value of email e.g. john@smith.edu
* @param value the email address.
* @param value1 the email address.
*/
public void setValue(String value) {
this.value = value;
public void setValue(String value1) {
this.value = value1;
}

/**
Expand All @@ -72,8 +72,8 @@ public enum MailTypes {

private final String type;

private MailTypes(String type) {
this.type = type;
private MailTypes(String type1) {
this.type = type1;
}

public String toString(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public String getVoot_membership_role() {
/**
* Set the VOOT membership role (being either "manager", "admin" or "member").
*
* @param the VOOT membership role.
* @param voot_membership_role1 the VOOT membership role.
*/
public void setVoot_membership_role(String voot_membership_role1) {
this.voot_membership_role = voot_membership_role1;
Expand All @@ -86,10 +86,10 @@ public String getId() {
/**
* Set system name (or unique ID) of the group.
*
* @param id system name of the group.
* @param id1 system name of the group.
*/
public void setId(String id) {
this.id = id;
public void setId(String id1) {
this.id = id1;
}

/**
Expand All @@ -106,8 +106,8 @@ public String getName() {
*
* @param name display name of the group.
*/
public void setName(String name) {
this.name = name;
public void setName(String name1) {
this.name = name1;
}

/**
Expand All @@ -122,14 +122,14 @@ public String getDescription() {
/**
* Set description of the group.
*
* @param description description of the group.
* @param description1 description of the group.
*/
public void setDescription(String description) {
this.description = description;
public void setDescription(String description1) {
this.description = description1;
}

/**
* Enum to represnet group roles.
* Enum to represent group roles.
*
* @author Andrea Biancini <andrea.biancini@gmail.com>
*/
Expand All @@ -140,8 +140,8 @@ public enum GroupRoles {

private final String role;

private GroupRoles(String role) {
this.role = role;
private GroupRoles(String role1) {
this.role = role1;
}

public String toString(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ public String getVoot_membership_role() {
/**
* Set the voot membership role (being "manager", "admin" or "member").
*
* @param voot_membership_role the voot membership role
* @param voot_membership_role1 the voot membership role
*/
public void setVoot_membership_role(String voot_membership_role) {
this.voot_membership_role = voot_membership_role;
public void setVoot_membership_role(String voot_membership_role1) {
this.voot_membership_role = voot_membership_role1;
}

/**
Expand All @@ -108,10 +108,10 @@ public String getId() {
/**
* Set the person id, e.g. jsmith
*
* @param id the the person id, e.g. jsmith
* @param id1 the the person id, e.g. jsmith
*/
public void setId(String id) {
this.id = id;
public void setId(String id1) {
this.id = id1;
}

/**
Expand All @@ -126,10 +126,10 @@ public String getDisplayName() {
/**
* Set the display name, e.g. John Smith
*
* @param displayName the display name, e.g. John Smith
* @param displayName1 the display name, e.g. John Smith
*/
public void setDisplayName(String displayName) {
this.displayName = displayName;
public void setDisplayName(String displayName1) {
this.displayName = displayName1;
}

/**
Expand All @@ -144,9 +144,9 @@ public VootEmail[] getEmails() {
/**
* Set email addresses e.g. jsmith@school.edu, johns@company.com
*
* @param emails the email addresses.
* @param emails1 the email addresses.
*/
public void setEmails(VootEmail[] emails) {
this.emails = emails;
public void setEmails(VootEmail[] emails1) {
this.emails = emails1;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ public String getError() {

/**
* Set the error message.
* @param error the error message.
* @param error1 the error message.
*/
public void setError(String error) {
this.error = error;
public void setError(String error1) {
this.error = error1;
}

/**
Expand All @@ -73,9 +73,9 @@ public String getError_description() {

/**
* Set the error description.
* @param error_description the error description.
* @param error_description1 the error description.
*/
public void setError_description(String error_description) {
this.error_description = error_description;
public void setError_description(String error_description1) {
this.error_description = error_description1;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,28 +45,28 @@ public VootGroup[] getEntry() {
/**
* Set the results passing an array of VOOT groups.
*
* @param entry the array of VOOT groups.
* @param entry1 the array of VOOT groups.
*/
public void setEntry(VootGroup[] entry) {
this.entry = entry;
public void setEntry(VootGroup[] entry1) {
this.entry = entry1;
}

/**
* Set the results by taking a slice of the elements in an array of VOOT groups.
*
* @param entry the array of VOOT groups.
* @param entry1 the array of VOOT groups.
* @param start the first element in the result set (0 means start from beginning).
* @param count the number of elements in the result set (-1 or 0 means find all).
*/
public void setEntry(VootGroup[] entry, int start, int count) {
public void setEntry(VootGroup[] entry1, int start, int count) {
int remaining = count;
if (remaining < 0 || (entry.length - start) < count) {
remaining = entry.length - start;
if (remaining < 0 || (entry1.length - start) < count) {
remaining = entry1.length - start;
}

VootGroup[] pageArray = new VootGroup[remaining];
for (int i = 0; i < remaining; ++i) {
pageArray[i] = entry[i + start];
pageArray[i] = entry1[i + start];
}

this.entry = pageArray;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,27 +46,27 @@ public VootPerson[] getEntry() {
/**
* Set the results passing an array of VOOT persons.
*
* @param entry the array of VOOT persons.
* @param entry1 the array of VOOT persons.
*/
public void setEntry(VootPerson[] entry) {
this.entry = entry;
public void setEntry(VootPerson[] entry1) {
this.entry = entry1;
}

/**
* Set the results by taking a slice of the elements in an array of VOOT persons.
*
* @param entry the array of VOOT persons.
* @param entry1 the array of VOOT persons.
* @param start the first element in the result set (0 means start from beginning).
* @param count the number of elements in the result set (-1 or 0 means find all).
*/
public void setEntry(VootPerson[] entry, int start, int count) {
public void setEntry(VootPerson[] entry1, int start, int count) {
int remaining = count;
if (remaining < 0 || (entry.length - start) < count)
remaining = entry.length - start;
if (remaining < 0 || (entry1.length - start) < count)
remaining = entry1.length - start;

VootPerson[] pageArray = new VootPerson[remaining];
for (int i = 0; i < remaining; ++i) {
pageArray[i] = entry[i + start];
pageArray[i] = entry1[i + start];
}

this.entry = pageArray;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ public Integer getStartIndex() {
/**
* Set start index, starts with 0
*
* @param startIndex the start index
* @param startIndex1 the start index
*/
public void setStartIndex(Integer startIndex) {
this.startIndex = startIndex;
public void setStartIndex(Integer startIndex1) {
this.startIndex = startIndex1;
}

/**
Expand All @@ -83,10 +83,10 @@ public Integer getTotalResults() {
/**
* Set the total number of results.
*
* @param totalResults the total number of results.
* @param totalResults1 the total number of results.
*/
public void setTotalResults(Integer totalResults) {
this.totalResults = totalResults;
public void setTotalResults(Integer totalResults1) {
this.totalResults = totalResults1;
}

/**
Expand All @@ -101,10 +101,10 @@ public Integer getItemsPerPage() {
/**
* Set the number of items in a page.
*
* @param itemsPerPage the number of items in a page.
* @param itemsPerPage1 the number of items in a page.
*/
public void setItemsPerPage(Integer itemsPerPage) {
this.itemsPerPage = itemsPerPage;
public void setItemsPerPage(Integer itemsPerPage1) {
this.itemsPerPage = itemsPerPage1;
}

}

0 comments on commit 8b13f18

Please sign in to comment.