From 61b9eb1be03fc03a9f4bb0013a08ff44a1059503 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 20 Apr 2016 14:25:46 +0000
Subject: [PATCH] opendj-server-legacy: added @Override + Autorefactor'ed comments
---
opendj-server-legacy/src/main/java/org/opends/server/loggers/MeteredStream.java | 31 ++++++-------------------------
1 files changed, 6 insertions(+), 25 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/loggers/MeteredStream.java b/opendj-server-legacy/src/main/java/org/opends/server/loggers/MeteredStream.java
index 2750979..7329846 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/loggers/MeteredStream.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/loggers/MeteredStream.java
@@ -12,7 +12,7 @@
* information: "Portions Copyright [year] [name of copyright owner]".
*
* Copyright 2006-2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS.
+ * Portions Copyright 2014-2016 ForgeRock AS.
*/
package org.opends.server.loggers;
@@ -42,41 +42,21 @@
this.written = written;
}
- /**
- * Write the specified byte to the stream.
- *
- * @param b The value to be written to the stream.
- *
- * @exception IOException if the write failed.
- */
+ @Override
public void write(int b) throws IOException
{
out.write(b);
written++;
}
- /**
- * Write the specified buffer to the stream.
- *
- * @param buff The value to be written to the stream.
- *
- * @exception IOException if the write failed.
- */
+ @Override
public void write(byte buff[]) throws IOException
{
out.write(buff);
written += buff.length;
}
- /**
- * Write the specified buffer to the stream.
- *
- * @param buff The value to be written to the stream.
- * @param off The offset to write from.
- * @param len The length of the buffer to write.
- *
- * @exception IOException if the write failed.
- */
+ @Override
public void write(byte buff[], int off, int len) throws IOException
{
out.write(buff,off,len);
@@ -88,6 +68,7 @@
*
* @exception IOException if the flush failed.
*/
+ @Override
public void flush() throws IOException
{
out.flush();
@@ -98,6 +79,7 @@
*
* @exception IOException if the close failed.
*/
+ @Override
public void close() throws IOException
{
out.close();
@@ -113,4 +95,3 @@
return written;
}
}
-
--
Gitblit v1.10.0