Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Jan 6, 2022
1 parent 70e52f6 commit 5f871d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions src/main/java/net/fortuna/ical4j/model/Calendar.java
Expand Up @@ -294,7 +294,7 @@ public final boolean equals(final Object arg0) {
if (arg0 instanceof Calendar) {
final Calendar calendar = (Calendar) arg0;
return new EqualsBuilder().append(getProperties(), calendar.getProperties())
.append(getComponents(), calendar.getComponents()).isEquals();
.append(components, calendar.components).isEquals();
}
return super.equals(arg0);
}
Expand All @@ -304,7 +304,6 @@ public final boolean equals(final Object arg0) {
*/
@Override
public final int hashCode() {
return new HashCodeBuilder().append(getProperties()).append(
getComponents()).toHashCode();
return new HashCodeBuilder().append(properties).append(components).toHashCode();
}
}
3 changes: 1 addition & 2 deletions src/main/java/net/fortuna/ical4j/model/Component.java
Expand Up @@ -217,8 +217,7 @@ public final void validate() throws ValidationException {
* @param recurse indicates whether to validate the component's properties
* @throws ValidationException where the component is not in a valid state
*/
public abstract void validate(final boolean recurse)
throws ValidationException;
public abstract void validate(final boolean recurse) throws ValidationException;

/**
* Invoke validation on the component properties in its current state.
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/net/fortuna/ical4j/model/Property.java
Expand Up @@ -450,8 +450,8 @@ protected Property(final Property property) throws IOException,
public final String toString() {
final StringBuilder buffer = new StringBuilder();
buffer.append(getName());
if (getParameters() != null) {
buffer.append(getParameters());
if (parameters != null) {
buffer.append(parameters);
}
buffer.append(':');
String value;
Expand Down

0 comments on commit 5f871d6

Please sign in to comment.