Skip to content

Commit

Permalink
Add @OverRide annotation to classes in data and filter packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
edwhiting authored and benfortuna committed Aug 14, 2020
1 parent 83e317c commit c9a0150
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/fortuna/ical4j/data/CalendarParserImpl.java
Expand Up @@ -83,6 +83,7 @@ public class CalendarParserImpl implements CalendarParser {
/**
* {@inheritDoc}
*/
@Override
public final void parse(final InputStream in, final ContentHandler handler)
throws IOException, ParserException {
parse(new InputStreamReader(in), handler);
Expand Down Expand Up @@ -129,6 +130,7 @@ private void parseCalendar(final StreamTokenizer tokeniser, Reader in,
/**
* {@inheritDoc}
*/
@Override
public final void parse(final Reader in, final ContentHandler handler)
throws IOException, ParserException {

Expand Down
3 changes: 3 additions & 0 deletions src/main/java/net/fortuna/ical4j/data/FoldingWriter.java
Expand Up @@ -86,6 +86,7 @@ public FoldingWriter(final Writer writer) {
/**
* {@inheritDoc}
*/
@Override
public final void write(final int c) throws IOException {

/*
Expand All @@ -98,6 +99,7 @@ public final void write(final int c) throws IOException {
/**
* {@inheritDoc}
*/
@Override
public final void write(final char[] buffer, final int offset,
final int length) throws IOException {
final int maxIndex = offset + length - 1;
Expand Down Expand Up @@ -131,6 +133,7 @@ public final void write(final char[] buffer, final int offset,
/**
* {@inheritDoc}
*/
@Override
public final void write(final String str, final int off, final int len)
throws IOException {
write(str.toCharArray(), off, len);
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/fortuna/ical4j/data/HCalendarParser.java
Expand Up @@ -185,13 +185,15 @@ private static XPathExpression compileExpression(String expr) {
/**
* {@inheritDoc}
*/
@Override
public void parse(InputStream in, ContentHandler handler) throws IOException, ParserException {
parse(new InputSource(in), handler);
}

/**
* {@inheritDoc}
*/
@Override
public void parse(Reader in, ContentHandler handler) throws IOException, ParserException {
parse(new InputSource(in), handler);
}
Expand Down
Expand Up @@ -48,6 +48,7 @@ public class HCalendarParserFactory extends CalendarParserFactory {
/**
* {@inheritDoc}
*/
@Override
public CalendarParser get() {
return new HCalendarParser();
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/fortuna/ical4j/data/UnfoldingReader.java
Expand Up @@ -149,6 +149,7 @@ public final int getLinesUnfolded() {
/**
* {@inheritDoc}
*/
@Override
public final int read() throws IOException {
final int c = super.read();
boolean doUnfold = false;
Expand All @@ -172,6 +173,7 @@ public final int read() throws IOException {
/**
* {@inheritDoc}
*/
@Override
public int read(final char[] cbuf, final int off, final int len) throws IOException {
final int read = super.read(cbuf, off, len);
boolean doUnfold = false;
Expand Down
Expand Up @@ -58,6 +58,7 @@ public DateInRangeRule(DateRange range, int inclusiveMask) {
/**
* {@inheritDoc}
*/
@Override
public boolean test(Date date) {
return range.includes(date, inclusiveMask);
}
Expand Down
Expand Up @@ -75,6 +75,7 @@ public HasPropertyRule(final Property property, final boolean matchEquals) {
/**
* {@inheritDoc}
*/
@Override
public final boolean test(final Component component) {
boolean match = false;
final PropertyList<Property> properties = component.getProperties(property.getName());
Expand Down
1 change: 1 addition & 0 deletions src/main/java/net/fortuna/ical4j/filter/PeriodRule.java
Expand Up @@ -60,6 +60,7 @@ public PeriodRule(final Period period) {
/**
* {@inheritDoc}
*/
@Override
public final boolean test(final Component component) {

/*
Expand Down

0 comments on commit c9a0150

Please sign in to comment.