< prev index next >

src/java.base/share/classes/java/lang/AssertionError.java

Print this page
rev 60127 : 8249205: Remove unnecessary trademark symbols

*** 33,43 **** * <pre> * new AssertionError(<i>expression</i>) * </pre> * has as its detail message the <i>string conversion</i> of * <i>expression</i> (as defined in section 15.18.1.1 of ! * <cite>The Java&trade; Language Specification</cite>), * regardless of the type of <i>expression</i>. * * @since 1.4 */ public class AssertionError extends Error { --- 33,43 ---- * <pre> * new AssertionError(<i>expression</i>) * </pre> * has as its detail message the <i>string conversion</i> of * <i>expression</i> (as defined in section 15.18.1.1 of ! * <cite>The Java Language Specification</cite>), * regardless of the type of <i>expression</i>. * * @since 1.4 */ public class AssertionError extends Error {
*** 61,71 **** /** * Constructs an AssertionError with its detail message derived * from the specified object, which is converted to a string as * defined in section 15.18.1.1 of ! * <cite>The Java&trade; Language Specification</cite>. *<p> * If the specified object is an instance of {@code Throwable}, it * becomes the <i>cause</i> of the newly constructed assertion error. * * @param detailMessage value to be used in constructing detail message --- 61,71 ---- /** * Constructs an AssertionError with its detail message derived * from the specified object, which is converted to a string as * defined in section 15.18.1.1 of ! * <cite>The Java Language Specification</cite>. *<p> * If the specified object is an instance of {@code Throwable}, it * becomes the <i>cause</i> of the newly constructed assertion error. * * @param detailMessage value to be used in constructing detail message
*** 79,89 **** /** * Constructs an AssertionError with its detail message derived * from the specified {@code boolean}, which is converted to * a string as defined in section 15.18.1.1 of ! * <cite>The Java&trade; Language Specification</cite>. * * @param detailMessage value to be used in constructing detail message */ public AssertionError(boolean detailMessage) { this(String.valueOf(detailMessage)); --- 79,89 ---- /** * Constructs an AssertionError with its detail message derived * from the specified {@code boolean}, which is converted to * a string as defined in section 15.18.1.1 of ! * <cite>The Java Language Specification</cite>. * * @param detailMessage value to be used in constructing detail message */ public AssertionError(boolean detailMessage) { this(String.valueOf(detailMessage));
*** 91,101 **** /** * Constructs an AssertionError with its detail message derived * from the specified {@code char}, which is converted to a * string as defined in section 15.18.1.1 of ! * <cite>The Java&trade; Language Specification</cite>. * * @param detailMessage value to be used in constructing detail message */ public AssertionError(char detailMessage) { this(String.valueOf(detailMessage)); --- 91,101 ---- /** * Constructs an AssertionError with its detail message derived * from the specified {@code char}, which is converted to a * string as defined in section 15.18.1.1 of ! * <cite>The Java Language Specification</cite>. * * @param detailMessage value to be used in constructing detail message */ public AssertionError(char detailMessage) { this(String.valueOf(detailMessage));
*** 103,113 **** /** * Constructs an AssertionError with its detail message derived * from the specified {@code int}, which is converted to a * string as defined in section 15.18.1.1 of ! * <cite>The Java&trade; Language Specification</cite>. * * @param detailMessage value to be used in constructing detail message */ public AssertionError(int detailMessage) { this(String.valueOf(detailMessage)); --- 103,113 ---- /** * Constructs an AssertionError with its detail message derived * from the specified {@code int}, which is converted to a * string as defined in section 15.18.1.1 of ! * <cite>The Java Language Specification</cite>. * * @param detailMessage value to be used in constructing detail message */ public AssertionError(int detailMessage) { this(String.valueOf(detailMessage));
*** 115,125 **** /** * Constructs an AssertionError with its detail message derived * from the specified {@code long}, which is converted to a * string as defined in section 15.18.1.1 of ! * <cite>The Java&trade; Language Specification</cite>. * * @param detailMessage value to be used in constructing detail message */ public AssertionError(long detailMessage) { this(String.valueOf(detailMessage)); --- 115,125 ---- /** * Constructs an AssertionError with its detail message derived * from the specified {@code long}, which is converted to a * string as defined in section 15.18.1.1 of ! * <cite>The Java Language Specification</cite>. * * @param detailMessage value to be used in constructing detail message */ public AssertionError(long detailMessage) { this(String.valueOf(detailMessage));
*** 127,137 **** /** * Constructs an AssertionError with its detail message derived * from the specified {@code float}, which is converted to a * string as defined in section 15.18.1.1 of ! * <cite>The Java&trade; Language Specification</cite>. * * @param detailMessage value to be used in constructing detail message */ public AssertionError(float detailMessage) { this(String.valueOf(detailMessage)); --- 127,137 ---- /** * Constructs an AssertionError with its detail message derived * from the specified {@code float}, which is converted to a * string as defined in section 15.18.1.1 of ! * <cite>The Java Language Specification</cite>. * * @param detailMessage value to be used in constructing detail message */ public AssertionError(float detailMessage) { this(String.valueOf(detailMessage));
*** 139,149 **** /** * Constructs an AssertionError with its detail message derived * from the specified {@code double}, which is converted to a * string as defined in section 15.18.1.1 of ! * <cite>The Java&trade; Language Specification</cite>. * * @param detailMessage value to be used in constructing detail message */ public AssertionError(double detailMessage) { this(String.valueOf(detailMessage)); --- 139,149 ---- /** * Constructs an AssertionError with its detail message derived * from the specified {@code double}, which is converted to a * string as defined in section 15.18.1.1 of ! * <cite>The Java Language Specification</cite>. * * @param detailMessage value to be used in constructing detail message */ public AssertionError(double detailMessage) { this(String.valueOf(detailMessage));
< prev index next >