Fix Javadoc errors
diff --git a/src/main/java/org/apache/neethi/All.java b/src/main/java/org/apache/neethi/All.java
index fae3e01..c29fbd3 100644
--- a/src/main/java/org/apache/neethi/All.java
+++ b/src/main/java/org/apache/neethi/All.java
@@ -46,7 +46,7 @@
}
/**
- * Returns a <tt>List</tt> of it's PolicyComponents.
+ * Returns a {@link List} of it's PolicyComponents.
*
* @return a List of it's PolicyComponents
*/
diff --git a/src/main/java/org/apache/neethi/Policy.java b/src/main/java/org/apache/neethi/Policy.java
index e2104a2..1da0034 100644
--- a/src/main/java/org/apache/neethi/Policy.java
+++ b/src/main/java/org/apache/neethi/Policy.java
@@ -68,8 +68,8 @@
}
/**
- * Returns a Normalized version of self. If <tt>deep</tt> is set
- * <tt>false</tt> then the assertions are not normalized and it returns a
+ * Returns a Normalized version of self. If {@code deep} is set
+ * {@code false} then the assertions are not normalized and it returns a
* partially normalized version of self.
*
* @param deep
@@ -81,8 +81,8 @@
}
/**
- * Returns a normalized version of self.If <tt>deep</tt> is set
- * <tt>false</tt> then the assertions are not normalized and it returns a
+ * Returns a normalized version of self.If {@code deep} is set
+ * {@code false} then the assertions are not normalized and it returns a
* partially normalized version of self.
*
* @param reg
@@ -217,9 +217,9 @@
/**
* Returns an Iterator that will return a list of assertions correspond to a
- * Policy alternative if any. The <tt>iterator.next()</tt> will return a
+ * Policy alternative if any. The {@code iterator.next()} will return a
* list of assertions correspond to a Policy alternative if any and
- * <tt>iterator.hasNext()</tt> will indicates whether there is another
+ * {@code iterator.hasNext()} will indicates whether there is another
* Policy alternative.
*
* @return An iterator over the list of alternatives
@@ -276,7 +276,7 @@
/**
* Returns the value of the attribute specified by the QName. Returns
- * <tt>null</tt> if not present.
+ * {@code null} if not present.
*
* @param name
* the QName of the attribute
@@ -287,7 +287,7 @@
}
/**
- * Returns a <tt>Map</tt> of all attributes of self.
+ * Returns a {@link Map} of all attributes of self.
*
* @return a Map of all attributes of self
*/
@@ -296,7 +296,7 @@
}
/**
- * Sets the <tt>Name</tt> attribute of self.
+ * Sets the {@code Name} attribute of self.
*
* @param name
* the Name attribute of self
@@ -306,7 +306,7 @@
}
/**
- * Returns the <tt>Name</tt> attribute of self.
+ * Returns the {@code Name} attribute of self.
*
* @return the Name attribute of self
*/
diff --git a/src/main/java/org/apache/neethi/PolicyReference.java b/src/main/java/org/apache/neethi/PolicyReference.java
index a2325c2..ea62c93 100644
--- a/src/main/java/org/apache/neethi/PolicyReference.java
+++ b/src/main/java/org/apache/neethi/PolicyReference.java
@@ -89,7 +89,7 @@
/**
* Returns normalized version of the Policy that is referred by self. The specified
- * PolicyRegistry is used to lookup for the Policy that is referred and <tt>deep</tt>
+ * PolicyRegistry is used to lookup for the Policy that is referred and {@code deep}
* indicates the level of normalization for the returning Policy.
*
* @param reg the PolicyRegistry that is used to resolved the Policy referred by self
diff --git a/src/main/java/org/apache/neethi/util/PolicyComparator.java b/src/main/java/org/apache/neethi/util/PolicyComparator.java
index 2eb2eb5..0c173f6 100644
--- a/src/main/java/org/apache/neethi/util/PolicyComparator.java
+++ b/src/main/java/org/apache/neethi/util/PolicyComparator.java
@@ -38,13 +38,13 @@
}
/**
- * Returns <tt>true</tt> if the two policies have the same semantics
+ * Returns {@code true} if the two policies have the same semantics
*
* @param arg1
* a Policy
* @param arg2
* an another Policy
- * @return <tt>true</tt> if both policies have the same semantics
+ * @return {@code true} if both policies have the same semantics
*/
public static boolean compare(Policy arg1, Policy arg2) {
@@ -83,14 +83,14 @@
}
/**
- * Returns <tt>true</tt> if the two PolicyComponents have the same
+ * Returns {@code true} if the two PolicyComponents have the same
* semantics.
*
* @param arg1
* a PolicyComponent
* @param arg2
* an another PolicyComponent
- * @return <tt>true</tt> if both PolicyComponents have the same semantics
+ * @return {@code true} if both PolicyComponents have the same semantics
*/
public static boolean compare(PolicyComponent arg1, PolicyComponent arg2) {
if (!arg1.getClass().equals(arg2.getClass())) {