Skip to content

Commit

Permalink
Ignored case on KIND GROUP (#141)
Browse files Browse the repository at this point in the history
Use case-insensitive comparison for KIND

#140
  • Loading branch information
ArnyminerZ authored Aug 23, 2023
1 parent b8f0a18 commit acbeb66
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/ezvcard/property/Kind.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,31 +104,31 @@ public Kind(Kind original) {
* @return true if the value is "individual", false if not
*/
public boolean isIndividual() {
return INDIVIDUAL.equals(value);
return INDIVIDUAL.equalsIgnoreCase(value);
}

/**
* Determines if the value is set to "group".
* @return true if the value is "group", false if not
*/
public boolean isGroup() {
return GROUP.equals(value);
return GROUP.equalsIgnoreCase(value);
}

/**
* Determines if the value is set to "org".
* @return true if the value is "org", false if not
*/
public boolean isOrg() {
return ORG.equals(value);
return ORG.equalsIgnoreCase(value);
}

/**
* Determines if the value is set to "location".
* @return true if the value is "location", false if not
*/
public boolean isLocation() {
return LOCATION.equals(value);
return LOCATION.equalsIgnoreCase(value);
}

/**
Expand All @@ -137,7 +137,7 @@ public boolean isLocation() {
* @see <a href="http://tools.ietf.org/html/rfc6473">RFC 6473</a>
*/
public boolean isApplication() {
return APPLICATION.equals(value);
return APPLICATION.equalsIgnoreCase(value);
}

/**
Expand All @@ -146,7 +146,7 @@ public boolean isApplication() {
* @see <a href="http://tools.ietf.org/html/rfc6869">RFC 6869</a>
*/
public boolean isDevice() {
return DEVICE.equals(value);
return DEVICE.equalsIgnoreCase(value);
}

/**
Expand Down

0 comments on commit acbeb66

Please sign in to comment.