diff options
author | Claude Brisson <claude@renegat.net> | 2021-02-25 19:35:49 +0100 |
---|---|---|
committer | Claude Brisson <claude@renegat.net> | 2021-02-25 19:35:49 +0100 |
commit | 836d28fa2e3884c72e20d7f42941c58031416b18 (patch) | |
tree | 3687417c75794958121065a9f9e4ec3245ef2a7b /velocity-engine-core/src/main/java/org/apache/velocity/io | |
parent | 746440121f2006e68e154aef91d98557a681b196 (diff) | |
download | apache-velocity-engine-836d28fa2e3884c72e20d7f42941c58031416b18.tar.gz |
A lot of almost purely cosmetic code cleanups
Diffstat (limited to 'velocity-engine-core/src/main/java/org/apache/velocity/io')
-rw-r--r-- | velocity-engine-core/src/main/java/org/apache/velocity/io/UnicodeInputStream.java | 9 | ||||
-rw-r--r-- | velocity-engine-core/src/main/java/org/apache/velocity/io/VelocityWriter.java | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/io/UnicodeInputStream.java b/velocity-engine-core/src/main/java/org/apache/velocity/io/UnicodeInputStream.java index 5ab3500e..43abfef5 100644 --- a/velocity-engine-core/src/main/java/org/apache/velocity/io/UnicodeInputStream.java +++ b/velocity-engine-core/src/main/java/org/apache/velocity/io/UnicodeInputStream.java @@ -269,6 +269,7 @@ public class UnicodeInputStream * @throws IOException * @see java.io.InputStream#close() */ + @Override public void close() throws IOException { @@ -279,6 +280,7 @@ public class UnicodeInputStream * @throws IOException * @see java.io.InputStream#available() */ + @Override public int available() throws IOException { @@ -289,6 +291,7 @@ public class UnicodeInputStream * @param readlimit * @see java.io.InputStream#mark(int) */ + @Override public void mark(final int readlimit) { inputStream.mark(readlimit); @@ -298,6 +301,7 @@ public class UnicodeInputStream * @return mark supported * @see java.io.InputStream#markSupported() */ + @Override public boolean markSupported() { return inputStream.markSupported(); @@ -307,6 +311,7 @@ public class UnicodeInputStream * @return read char * @see java.io.InputStream#read() */ + @Override public int read() throws IOException { @@ -318,6 +323,7 @@ public class UnicodeInputStream * @return read chars count * @see java.io.InputStream#read(byte[]) */ + @Override public int read(final byte [] b) throws IOException { @@ -331,6 +337,7 @@ public class UnicodeInputStream * @return reac char * @see java.io.InputStream#read(byte[], int, int) */ + @Override public int read(final byte [] b, final int off, final int len) throws IOException { @@ -340,6 +347,7 @@ public class UnicodeInputStream /** * @see java.io.InputStream#reset() */ + @Override public void reset() throws IOException { @@ -351,6 +359,7 @@ public class UnicodeInputStream * @return skipped count * @see java.io.InputStream#skip(long) */ + @Override public long skip(final long n) throws IOException { diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/io/VelocityWriter.java b/velocity-engine-core/src/main/java/org/apache/velocity/io/VelocityWriter.java index 8f66008e..b9419689 100644 --- a/velocity-engine-core/src/main/java/org/apache/velocity/io/VelocityWriter.java +++ b/velocity-engine-core/src/main/java/org/apache/velocity/io/VelocityWriter.java @@ -148,6 +148,7 @@ public final class VelocityWriter extends Writer implements Filter * @throws IOException * */ + @Override public final void flush() throws IOException { flushBuffer(); @@ -162,6 +163,7 @@ public final class VelocityWriter extends Writer implements Filter * @throws IOException * */ + @Override public final void close() throws IOException { if (writer == null) return; @@ -182,6 +184,7 @@ public final class VelocityWriter extends Writer implements Filter * @throws IOException * */ + @Override public final void write(int c) throws IOException { if (bufferSize == 0) @@ -225,6 +228,7 @@ public final class VelocityWriter extends Writer implements Filter * @throws IOException * */ + @Override public final void write(char cbuf[], int off, int len) throws IOException { @@ -273,6 +277,7 @@ public final class VelocityWriter extends Writer implements Filter * @param buf * @throws IOException */ + @Override public final void write(char buf[]) throws IOException { write(buf, 0, buf.length); @@ -287,6 +292,7 @@ public final class VelocityWriter extends Writer implements Filter * @throws IOException * */ + @Override public final void write(String s, int off, int len) throws IOException { if (bufferSize == 0) @@ -315,6 +321,7 @@ public final class VelocityWriter extends Writer implements Filter * @param s * @throws IOException */ + @Override public final void write(String s) throws IOException { if (s != null) @@ -339,6 +346,7 @@ public final class VelocityWriter extends Writer implements Filter * The default implementation is to call the wrapped Writer's * write(String) method. */ + @Override public void writeReference(String ref) throws IOException { write(ref); |