From 1f977046275e60eee1d5970167c14804f4e03684 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 24 Sep 2007 19:12:29 +0000
Subject: [PATCH] Cosmetic changes to visitor argument names to align them with naming conventions used elsewhere in the admin framework.

---
 opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/PropertyValuePrinter.java |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/PropertyValuePrinter.java b/opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/PropertyValuePrinter.java
index 35023d8..7a1134c 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/PropertyValuePrinter.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/PropertyValuePrinter.java
@@ -96,7 +96,7 @@
      * {@inheritDoc}
      */
     @Override
-    public Message visitBoolean(BooleanPropertyDefinition d, Boolean v,
+    public Message visitBoolean(BooleanPropertyDefinition pd, Boolean v,
         Void p) {
       if (v == false) {
         return INFO_VALUE_FALSE.get();
@@ -111,13 +111,14 @@
      * {@inheritDoc}
      */
     @Override
-    public Message visitDuration(DurationPropertyDefinition d, Long v, Void p) {
-      if (d.getUpperLimit() == null && (v < 0 || v == Long.MAX_VALUE)) {
+    public Message visitDuration(DurationPropertyDefinition pd, Long v,
+        Void p) {
+      if (pd.getUpperLimit() == null && (v < 0 || v == Long.MAX_VALUE)) {
         return INFO_VALUE_UNLIMITED.get();
       }
 
       MessageBuilder builder = new MessageBuilder();
-      long ms = d.getBaseUnit().toMilliSeconds(v);
+      long ms = pd.getBaseUnit().toMilliSeconds(v);
 
       if (timeUnit == null && !isScriptFriendly && ms != 0) {
         // Use human-readable string representation by default.
@@ -127,7 +128,7 @@
         // base unit.
         DurationUnit unit = timeUnit;
         if (unit == null) {
-          unit = d.getBaseUnit();
+          unit = pd.getBaseUnit();
         }
 
         builder.append(numberFormat.format(unit.fromMilliSeconds(ms)));
@@ -144,8 +145,8 @@
      * {@inheritDoc}
      */
     @Override
-    public Message visitSize(SizePropertyDefinition d, Long v, Void p) {
-      if (d.isAllowUnlimited() && v < 0) {
+    public Message visitSize(SizePropertyDefinition pd, Long v, Void p) {
+      if (pd.isAllowUnlimited() && v < 0) {
         return INFO_VALUE_UNLIMITED.get();
       }
 
@@ -173,10 +174,10 @@
      * {@inheritDoc}
      */
     @Override
-    public <T> Message visitUnknown(PropertyDefinition<T> d, T v, Void p) {
+    public <T> Message visitUnknown(PropertyDefinition<T> pd, T v, Void p) {
       // For all other property definition types the default encoding
       // will do.
-      String s = d.encodeValue(v);
+      String s = pd.encodeValue(v);
       if (isScriptFriendly) {
         return Message.raw("%s", s);
       } else if (s.trim().length() == 0 || s.contains(",")) {

--
Gitblit v1.10.0