< prev index next >

src/java.base/share/classes/java/util/Calendar.java

Print this page
rev 58552 : [mq]: 8241727-Typos-empty-lines-in-javadoc-inconsistent-indents-etc

*** 1,7 **** /* ! * Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 114,124 **** * calendar field values than it produces. When a {@code Calendar} * recomputes calendar field values for return by {@code get()}, all of * the calendar fields are normalized. For example, a lenient * {@code GregorianCalendar} interprets {@code MONTH == JANUARY}, * {@code DAY_OF_MONTH == 32} as February 1. ! * <p>When a {@code Calendar} is in non-lenient mode, it throws an * exception if there is any inconsistency in its calendar fields. For * example, a {@code GregorianCalendar} always produces * {@code DAY_OF_MONTH} values between 1 and the length of the month. A * non-lenient {@code GregorianCalendar} throws an exception upon --- 114,124 ---- * calendar field values than it produces. When a {@code Calendar} * recomputes calendar field values for return by {@code get()}, all of * the calendar fields are normalized. For example, a lenient * {@code GregorianCalendar} interprets {@code MONTH == JANUARY}, * {@code DAY_OF_MONTH == 32} as February 1. ! * * <p>When a {@code Calendar} is in non-lenient mode, it throws an * exception if there is any inconsistency in its calendar fields. For * example, a {@code GregorianCalendar} always produces * {@code DAY_OF_MONTH} values between 1 and the length of the month. A * non-lenient {@code GregorianCalendar} throws an exception upon
< prev index next >