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/TextWriter.java | 46 ++++++++++++++++++----------------------------
1 files changed, 18 insertions(+), 28 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/loggers/TextWriter.java b/opendj-server-legacy/src/main/java/org/opends/server/loggers/TextWriter.java
index ce1341e..fd268ca 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/loggers/TextWriter.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/loggers/TextWriter.java
@@ -12,7 +12,7 @@
* information: "Portions Copyright [year] [name of copyright owner]".
*
* Copyright 2006-2008 Sun Microsystems, Inc.
- * Portions Copyright 2015 ForgeRock AS.
+ * Portions Copyright 2015-2016 ForgeRock AS.
*/
package org.opends.server.loggers;
@@ -32,14 +32,10 @@
*/
void writeRecord(String record);
- /**
- * Flushes any buffered contents of the output stream.
- */
+ /** Flushes any buffered contents of the output stream. */
void flush();
- /**
- * Releases any resources held by the writer.
- */
+ /** Releases any resources held by the writer. */
void shutdown();
/**
@@ -49,75 +45,69 @@
*/
long getBytesWritten();
- /**
- * A TextWriter implementation which writes to standard out.
- */
+ /** A TextWriter implementation which writes to standard out. */
public static class STDOUT implements TextWriter
{
private MeteredStream stream = new MeteredStream(System.out, 0);
private PrintWriter writer = new PrintWriter(stream, true);
- /** {@inheritDoc} */
+ @Override
public void writeRecord(String record)
{
writer.println(record);
}
- /** {@inheritDoc} */
+ @Override
public void flush()
{
writer.flush();
}
- /** {@inheritDoc} */
+ @Override
public void shutdown()
{
// Should never close the system out stream.
}
- /** {@inheritDoc} */
+ @Override
public long getBytesWritten()
{
return stream.written;
}
}
- /**
- * A TextWriter implementation which writes to standard error.
- */
+ /** A TextWriter implementation which writes to standard error. */
public static class STDERR implements TextWriter
{
private MeteredStream stream = new MeteredStream(System.err, 0);
private PrintWriter writer = new PrintWriter(stream, true);
- /** {@inheritDoc} */
+ @Override
public void writeRecord(String record)
{
writer.println(record);
}
- /** {@inheritDoc} */
+ @Override
public void flush()
{
writer.flush();
}
- /** {@inheritDoc} */
+ @Override
public void shutdown()
{
// Should never close the system error stream.
}
- /** {@inheritDoc} */
+ @Override
public long getBytesWritten()
{
return stream.written;
}
}
- /**
- * A TextWriter implementation which writes to a given output stream.
- */
+ /** A TextWriter implementation which writes to a given output stream. */
public class STREAM implements TextWriter
{
private MeteredStream stream;
@@ -134,25 +124,25 @@
writer = new PrintWriter(stream, true);
}
- /** {@inheritDoc} */
+ @Override
public void writeRecord(String record)
{
writer.println(record);
}
- /** {@inheritDoc} */
+ @Override
public void flush()
{
writer.flush();
}
- /** {@inheritDoc} */
+ @Override
public void shutdown()
{
// Should never close the system error stream.
}
- /** {@inheritDoc} */
+ @Override
public long getBytesWritten()
{
return stream.written;
--
Gitblit v1.10.0