提交 8f288c97 编写于 作者: R rriggs

8032502: java.time add @param tags to readObject

Summary: Add @param tags
Reviewed-by: lancea, darcy
上级 15a8587c
...@@ -1326,6 +1326,7 @@ public final class Duration ...@@ -1326,6 +1326,7 @@ public final class Duration
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -1343,6 +1343,7 @@ public final class Instant ...@@ -1343,6 +1343,7 @@ public final class Instant
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -2053,6 +2053,7 @@ public final class LocalDate ...@@ -2053,6 +2053,7 @@ public final class LocalDate
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -1986,6 +1986,7 @@ public final class LocalDateTime ...@@ -1986,6 +1986,7 @@ public final class LocalDateTime
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -1638,6 +1638,7 @@ public final class LocalTime ...@@ -1638,6 +1638,7 @@ public final class LocalTime
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -771,6 +771,7 @@ public final class MonthDay ...@@ -771,6 +771,7 @@ public final class MonthDay
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -1925,6 +1925,7 @@ public final class OffsetDateTime ...@@ -1925,6 +1925,7 @@ public final class OffsetDateTime
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -1396,6 +1396,7 @@ public final class OffsetTime ...@@ -1396,6 +1396,7 @@ public final class OffsetTime
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -1058,6 +1058,7 @@ public final class Period ...@@ -1058,6 +1058,7 @@ public final class Period
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws java.io.InvalidObjectException always * @throws java.io.InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -1104,6 +1104,7 @@ public final class Year ...@@ -1104,6 +1104,7 @@ public final class Year
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -1230,6 +1230,7 @@ public final class YearMonth ...@@ -1230,6 +1230,7 @@ public final class YearMonth
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -624,6 +624,7 @@ public abstract class ZoneId implements Serializable { ...@@ -624,6 +624,7 @@ public abstract class ZoneId implements Serializable {
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -769,6 +769,7 @@ public final class ZoneOffset ...@@ -769,6 +769,7 @@ public final class ZoneOffset
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -196,6 +196,7 @@ final class ZoneRegion extends ZoneId implements Serializable { ...@@ -196,6 +196,7 @@ final class ZoneRegion extends ZoneId implements Serializable {
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -2225,6 +2225,7 @@ public final class ZonedDateTime ...@@ -2225,6 +2225,7 @@ public final class ZonedDateTime
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -766,6 +766,7 @@ public abstract class AbstractChronology implements Chronology { ...@@ -766,6 +766,7 @@ public abstract class AbstractChronology implements Chronology {
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws java.io.InvalidObjectException always * @throws java.io.InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws ObjectStreamException { private void readObject(ObjectInputStream s) throws ObjectStreamException {
......
...@@ -416,6 +416,7 @@ final class ChronoLocalDateTimeImpl<D extends ChronoLocalDate> ...@@ -416,6 +416,7 @@ final class ChronoLocalDateTimeImpl<D extends ChronoLocalDate>
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -376,6 +376,7 @@ final class ChronoPeriodImpl ...@@ -376,6 +376,7 @@ final class ChronoPeriodImpl
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws ObjectStreamException { private void readObject(ObjectInputStream s) throws ObjectStreamException {
......
...@@ -340,6 +340,7 @@ final class ChronoZonedDateTimeImpl<D extends ChronoLocalDate> ...@@ -340,6 +340,7 @@ final class ChronoZonedDateTimeImpl<D extends ChronoLocalDate>
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -1096,6 +1096,7 @@ public final class HijrahChronology extends AbstractChronology implements Serial ...@@ -1096,6 +1096,7 @@ public final class HijrahChronology extends AbstractChronology implements Serial
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -654,6 +654,7 @@ public final class HijrahDate ...@@ -654,6 +654,7 @@ public final class HijrahDate
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -604,6 +604,7 @@ public final class IsoChronology extends AbstractChronology implements Serializa ...@@ -604,6 +604,7 @@ public final class IsoChronology extends AbstractChronology implements Serializa
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -525,6 +525,7 @@ public final class JapaneseChronology extends AbstractChronology implements Seri ...@@ -525,6 +525,7 @@ public final class JapaneseChronology extends AbstractChronology implements Seri
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -716,6 +716,7 @@ public final class JapaneseDate ...@@ -716,6 +716,7 @@ public final class JapaneseDate
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -357,6 +357,7 @@ public final class JapaneseEra ...@@ -357,6 +357,7 @@ public final class JapaneseEra
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -355,6 +355,7 @@ public final class MinguoChronology extends AbstractChronology implements Serial ...@@ -355,6 +355,7 @@ public final class MinguoChronology extends AbstractChronology implements Serial
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -478,6 +478,7 @@ public final class MinguoDate ...@@ -478,6 +478,7 @@ public final class MinguoDate
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -391,6 +391,7 @@ public final class ThaiBuddhistChronology extends AbstractChronology implements ...@@ -391,6 +391,7 @@ public final class ThaiBuddhistChronology extends AbstractChronology implements
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -478,6 +478,7 @@ public final class ThaiBuddhistDate ...@@ -478,6 +478,7 @@ public final class ThaiBuddhistDate
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -344,10 +344,13 @@ public final class ValueRange implements Serializable { ...@@ -344,10 +344,13 @@ public final class ValueRange implements Serializable {
/** /**
* Restore the state of an ValueRange from the stream. * Restore the state of an ValueRange from the stream.
* Check that the values are valid. * Check that the values are valid.
*
* @param s the stream to read
* @throws InvalidObjectException if * @throws InvalidObjectException if
* the smallest minimum is greater than the smallest maximum, * the smallest minimum is greater than the smallest maximum,
* or the smallest maximum is greater than the largest maximum * or the smallest maximum is greater than the largest maximum
* or the largest minimum is greater than the largest maximum * or the largest minimum is greater than the largest maximum
* @throws ClassNotFoundException if a class cannot be resolved
*/ */
private void readObject(ObjectInputStream s) private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException, InvalidObjectException throws IOException, ClassNotFoundException, InvalidObjectException
......
...@@ -344,8 +344,11 @@ public final class WeekFields implements Serializable { ...@@ -344,8 +344,11 @@ public final class WeekFields implements Serializable {
/** /**
* Restore the state of a WeekFields from the stream. * Restore the state of a WeekFields from the stream.
* Check that the values are valid. * Check that the values are valid.
*
* @param s the stream to read
* @throws InvalidObjectException if the serialized object has an invalid * @throws InvalidObjectException if the serialized object has an invalid
* value for firstDayOfWeek or minimalDays. * value for firstDayOfWeek or minimalDays.
* @throws ClassNotFoundException if a class cannot be resolved
*/ */
private void readObject(ObjectInputStream s) private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException, InvalidObjectException throws IOException, ClassNotFoundException, InvalidObjectException
......
...@@ -173,6 +173,8 @@ public final class ZoneOffsetTransition ...@@ -173,6 +173,8 @@ public final class ZoneOffsetTransition
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** /**
* Defend against malicious streams. * Defend against malicious streams.
*
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -235,6 +235,7 @@ public final class ZoneOffsetTransitionRule implements Serializable { ...@@ -235,6 +235,7 @@ public final class ZoneOffsetTransitionRule implements Serializable {
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
...@@ -319,6 +319,7 @@ public final class ZoneRules implements Serializable { ...@@ -319,6 +319,7 @@ public final class ZoneRules implements Serializable {
/** /**
* Defend against malicious streams. * Defend against malicious streams.
* *
* @param s the stream to read
* @throws InvalidObjectException always * @throws InvalidObjectException always
*/ */
private void readObject(ObjectInputStream s) throws InvalidObjectException { private void readObject(ObjectInputStream s) throws InvalidObjectException {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册