Merge pull request #30 from DevFactory/release/add-missing-override-annotation-fix-1

[squid:S1161] "@Override" annotation should be used on any method overriding (since Java 5) or implementing (since Java 6) another one
This commit is contained in:
Diomidis Spinellis 2016-06-07 17:21:36 +03:00
commit a0ed8a2672
2 changed files with 7 additions and 1 deletions

View File

@ -168,6 +168,8 @@ public class ContextMatcher implements ClassMatcher {
prologue();
}
@Override
@Override
public void prologue() throws IOException {
w = new PrintWriter(new DevNullWriter());
}
@ -180,14 +182,17 @@ public class ContextMatcher implements ClassMatcher {
*/
private static class DevNullWriter extends Writer {
@Override
public void write(char[] cbuf, int off, int len) throws IOException {
// nothing to do
}
@Override
public void flush() throws IOException {
// nothing to do
}
@Override
public void close() throws IOException {
// nothing to do
}

View File

@ -189,7 +189,8 @@ public class Options implements Cloneable, OptionProvider {
dotExecutable = "dot";
}
public Object clone() {
@Override
public Object clone() {
Options clone = null;
try {
clone = (Options) super.clone();