8073692: (cs) Inconsistent docs for CharsetDecoder.replaceWith and CharsetEncoder.replaceWith
Reviewed-by: martin
--- a/jdk/src/java.base/share/classes/java/nio/charset/Charset-X-Coder.java.template Fri Mar 06 00:49:38 2015 +0000
+++ b/jdk/src/java.base/share/classes/java/nio/charset/Charset-X-Coder.java.template Fri Mar 06 13:30:49 2015 +0300
@@ -266,16 +266,15 @@
* method, passing the new replacement, after checking that the new
* replacement is acceptable. </p>
*
- * @param newReplacement The replacement value
- *
+ * @param newReplacement The new replacement; must not be
+ * <tt>null</tt>, must have non-zero length,
#if[decoder]
- * The new replacement; must not be <tt>null</tt>
- * and must have non-zero length
+ * and must not be longer than the value returned by the
+ * {@link #max$ItypesPerOtype$() max$ItypesPerOtype$} method
#end[decoder]
#if[encoder]
- * The new replacement; must not be <tt>null</tt>, must have
- * non-zero length, must not be longer than the value returned by
- * the {@link #max$ItypesPerOtype$() max$ItypesPerOtype$} method, and
+ * must not be longer than the value returned by the
+ * {@link #max$ItypesPerOtype$() max$ItypesPerOtype$} method, and
* must be {@link #isLegalReplacement legal}
#end[encoder]
*