From 742576640efa3350bb5433816e0cff2b6dab6281 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Thu, 30 Aug 2007 13:45:50 +0000
Subject: [PATCH] Minor improvements and code clean-up to org.opends.server.util.table:
---
opends/src/server/org/opends/server/util/table/TabSeparatedTablePrinter.java | 15 ++++-----------
1 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/opends/src/server/org/opends/server/util/table/TabSeparatedTablePrinter.java b/opends/src/server/org/opends/server/util/table/TabSeparatedTablePrinter.java
index 09b627d..5d5a774 100644
--- a/opends/src/server/org/opends/server/util/table/TabSeparatedTablePrinter.java
+++ b/opends/src/server/org/opends/server/util/table/TabSeparatedTablePrinter.java
@@ -48,29 +48,22 @@
/**
* Table serializer implementation.
*/
- private static final class Serializer extends TableSerializer {
+ private final class Serializer extends TableSerializer {
// The current column being output.
private int column = 0;
- // Indicates whether or not the headings should be output.
- private final boolean displayHeadings;
-
// Counts the number of separators that should be output the next
// time a non-empty cell is displayed. The tab separators are
// not displayed immediately so that we can avoid displaying
// unnecessary trailing separators.
private int requiredSeparators = 0;
- // The output destination.
- private final PrintWriter writer;
-
// Private constructor.
- private Serializer(PrintWriter writer, boolean displayHeadings) {
- this.writer = writer;
- this.displayHeadings = displayHeadings;
+ private Serializer() {
+ // No implementation required.
}
@@ -214,7 +207,7 @@
*/
@Override
protected TableSerializer getSerializer() {
- return new Serializer(writer, displayHeadings);
+ return new Serializer();
}
}
--
Gitblit v1.10.0