< prev index next >

src/java.base/share/classes/java/time/MonthDay.java

Print this page

        

*** 111,121 **** * For most applications written today, the ISO-8601 rules are entirely suitable. * However, any application that makes use of historical dates, and requires them * to be accurate will find the ISO-8601 approach unsuitable. * * <p> ! * This is a <a href="{@docRoot}/java/lang/doc-files/ValueBased.html">value-based</a> * class; use of identity-sensitive operations (including reference equality * ({@code ==}), identity hash code, or synchronization) on instances of * {@code MonthDay} may have unpredictable results and should be avoided. * The {@code equals} method should be used for comparisons. * --- 111,121 ---- * For most applications written today, the ISO-8601 rules are entirely suitable. * However, any application that makes use of historical dates, and requires them * to be accurate will find the ISO-8601 approach unsuitable. * * <p> ! * This is a <a href="{@docRoot}/java.base/java/lang/doc-files/ValueBased.html">value-based</a> * class; use of identity-sensitive operations (including reference equality * ({@code ==}), identity hash code, or synchronization) on instances of * {@code MonthDay} may have unpredictable results and should be avoided. * The {@code equals} method should be used for comparisons. *
< prev index next >