Skip to content

Commit

Permalink
Add @OverRide annotation to classes in model.component package (2).
Browse files Browse the repository at this point in the history
  • Loading branch information
edwhiting authored and benfortuna committed Aug 14, 2020
1 parent 63a9ea2 commit 240694b
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
Expand Up @@ -157,6 +157,7 @@ public VJournal(final Date start, final String summary) {
/**
* {@inheritDoc}
*/
@Override
public final void validate(final boolean recurse)
throws ValidationException {

Expand Down Expand Up @@ -205,6 +206,7 @@ public final void validate(final boolean recurse)
/**
* {@inheritDoc}
*/
@Override
protected Validator getValidator(Method method) {
return methodValidators.get(method);
}
Expand Down
Expand Up @@ -168,6 +168,7 @@ public VTimeZone(final PropertyList properties, final ComponentList<Observance>
/**
* {@inheritDoc}
*/
@Override
public final String toString() {
return BEGIN +
':' +
Expand All @@ -184,6 +185,7 @@ public final String toString() {
/**
* {@inheritDoc}
*/
@Override
public final void validate(final boolean recurse)
throws ValidationException {

Expand Down Expand Up @@ -227,6 +229,7 @@ && getObservances().getComponent(Observance.DAYLIGHT) == null) {
/**
* {@inheritDoc}
*/
@Override
protected Validator getValidator(Method method) {
return itipValidator;
}
Expand Down Expand Up @@ -282,6 +285,7 @@ public final TzUrl getTimeZoneUrl() {
/**
* {@inheritDoc}
*/
@Override
public boolean equals(final Object arg0) {
if (arg0 instanceof VTimeZone) {
return super.equals(arg0)
Expand All @@ -294,6 +298,7 @@ public boolean equals(final Object arg0) {
/**
* {@inheritDoc}
*/
@Override
public int hashCode() {
return new HashCodeBuilder().append(getName()).append(getProperties())
.append(getObservances()).toHashCode();
Expand All @@ -307,6 +312,7 @@ public int hashCode() {
* @throws URISyntaxException where an invalid URI is encountered
* @see net.fortuna.ical4j.model.Component#copy()
*/
@Override
public Component copy() throws ParseException, IOException, URISyntaxException {
final VTimeZone copy = (VTimeZone) super.copy();
copy.observances = new ComponentList<Observance>(observances);
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/net/fortuna/ical4j/model/component/VToDo.java
Expand Up @@ -245,6 +245,7 @@ public final ComponentList<VAlarm> getAlarms() {
/**
* {@inheritDoc}
*/
@Override
public final String toString() {
return BEGIN +
':' +
Expand All @@ -261,6 +262,7 @@ public final String toString() {
/**
* {@inheritDoc}
*/
@Override
public final void validate(final boolean recurse)
throws ValidationException {

Expand Down Expand Up @@ -330,6 +332,7 @@ public final void validate(final boolean recurse)
/**
* {@inheritDoc}
*/
@Override
protected Validator getValidator(Method method) {
return methodValidators.get(method);
}
Expand Down Expand Up @@ -479,6 +482,7 @@ public final Uid getUid() {
/**
* {@inheritDoc}
*/
@Override
public boolean equals(final Object arg0) {
if (arg0 instanceof VToDo) {
return super.equals(arg0)
Expand All @@ -490,6 +494,7 @@ public boolean equals(final Object arg0) {
/**
* {@inheritDoc}
*/
@Override
public int hashCode() {
return new HashCodeBuilder().append(getName()).append(getProperties())
.append(getAlarms()).toHashCode();
Expand All @@ -503,6 +508,7 @@ public int hashCode() {
* @throws URISyntaxException where an invalid URI is encountered
* @see net.fortuna.ical4j.model.Component#copy()
*/
@Override
public Component copy() throws ParseException, IOException, URISyntaxException {
final VToDo copy = (VToDo) super.copy();
copy.alarms = new ComponentList<VAlarm>(alarms);
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/net/fortuna/ical4j/model/component/VVenue.java
Expand Up @@ -112,6 +112,7 @@ public VVenue(final PropertyList properties) {
/**
* {@inheritDoc}
*/
@Override
public final String toString() {
return BEGIN +
':' +
Expand All @@ -127,6 +128,7 @@ public final String toString() {
/**
* {@inheritDoc}
*/
@Override
public final void validate(final boolean recurse)
throws ValidationException {

Expand Down Expand Up @@ -161,6 +163,7 @@ public final void validate(final boolean recurse)
/**
* {@inheritDoc}
*/
@Override
protected Validator getValidator(Method method) {
// No method validation required..
return EMPTY_VALIDATOR;
Expand Down
Expand Up @@ -69,6 +69,7 @@ public XComponent(final String name, final PropertyList properties) {
/**
* {@inheritDoc}
*/
@Override
public final void validate(final boolean recurse)
throws ValidationException {

Expand All @@ -88,6 +89,7 @@ public final void validate(final boolean recurse)
/**
* {@inheritDoc}
*/
@Override
protected Validator getValidator(Method method) {
// No method validation required..
return EMPTY_VALIDATOR;
Expand Down

0 comments on commit 240694b

Please sign in to comment.