From e7cac727a9231ff3602e61a4ea678e0463eb0e39 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 24 Mar 2015 09:41:42 +0000
Subject: [PATCH] Autorefactored javadocs
---
opendj-server-legacy/src/main/java/org/opends/server/admin/IntegerPropertyDefinition.java | 58 +++++++++++++++++++++++-----------------------------------
1 files changed, 23 insertions(+), 35 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/admin/IntegerPropertyDefinition.java b/opendj-server-legacy/src/main/java/org/opends/server/admin/IntegerPropertyDefinition.java
index aeba6cb..5c00531 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/admin/IntegerPropertyDefinition.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/admin/IntegerPropertyDefinition.java
@@ -48,17 +48,19 @@
public final class IntegerPropertyDefinition extends
PropertyDefinition<Integer> {
- // String used to represent unlimited.
+ /** String used to represent unlimited. */
private static final String UNLIMITED = "unlimited";
- // The lower limit of the property value.
+ /** The lower limit of the property value. */
private final int lowerLimit;
- // The optional upper limit of the property value.
+ /** The optional upper limit of the property value. */
private final Integer upperLimit;
- // Indicates whether this property allows the use of the "unlimited" value
- // (represented using a -1 or the string "unlimited").
+ /**
+ * Indicates whether this property allows the use of the "unlimited" value
+ * (represented using a -1 or the string "unlimited").
+ */
private final boolean allowUnlimited;
@@ -69,19 +71,21 @@
public static class Builder extends
AbstractBuilder<Integer, IntegerPropertyDefinition> {
- // The lower limit of the property value.
+ /** The lower limit of the property value. */
private int lowerLimit;
- // The optional upper limit of the property value.
+ /** The optional upper limit of the property value. */
private Integer upperLimit;
- // Indicates whether this property allows the use of the "unlimited" value
- // (represented using a -1 or the string "unlimited").
+ /**
+ * Indicates whether this property allows the use of the "unlimited" value
+ * (represented using a -1 or the string "unlimited").
+ */
private boolean allowUnlimited;
- // Private constructor
+ /** Private constructor. */
private Builder(
AbstractManagedObjectDefinition<?, ?> d, String propertyName) {
super(d, propertyName);
@@ -148,9 +152,7 @@
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
protected IntegerPropertyDefinition buildInstance(
AbstractManagedObjectDefinition<?, ?> d, String propertyName,
@@ -182,7 +184,7 @@
- // Private constructor.
+ /** Private constructor. */
private IntegerPropertyDefinition(
AbstractManagedObjectDefinition<?, ?> d, String propertyName,
EnumSet<PropertyOption> options,
@@ -271,9 +273,7 @@
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void validateValue(Integer value)
throws PropertyException {
@@ -292,9 +292,7 @@
}
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public String encodeValue(Integer value)
throws PropertyException {
@@ -308,9 +306,7 @@
return value.toString();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public Integer decodeValue(String value) throws PropertyException {
ifNull(value);
@@ -337,9 +333,7 @@
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public <R, P> R accept(PropertyDefinitionVisitor<R, P> v, P p) {
return v.visitInteger(this, p);
@@ -347,9 +341,7 @@
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public <R, P> R accept(PropertyValueVisitor<R, P> v, Integer value, P p) {
return v.visitInteger(this, value, p);
@@ -357,9 +349,7 @@
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void toString(StringBuilder builder) {
super.toString(builder);
@@ -378,9 +368,7 @@
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public int compare(Integer o1, Integer o2) {
return o1.compareTo(o2);
--
Gitblit v1.10.0