|
1 | 1 | /* |
2 | | - * Copyright (c) 1994, 2021, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 1994, 2023, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 | 4 | * |
5 | 5 | * This code is free software; you can redistribute it and/or modify it |
@@ -260,6 +260,8 @@ public Date(int year, int month, int date, int hrs, int min, int sec) { |
260 | 260 | * {@link Date#parse} method. |
261 | 261 | * |
262 | 262 | * @param s a string representation of the date. |
| 263 | + * @throws IllegalArgumentException if {@code s} cannot be interpreted as a |
| 264 | + * representation of a date and time. |
263 | 265 | * @see java.text.DateFormat |
264 | 266 | * @see java.util.Date#parse(java.lang.String) |
265 | 267 | * @deprecated As of JDK version 1.1, |
@@ -441,6 +443,8 @@ public static long UTC(int year, int month, int date, |
441 | 443 | * @param s a string to be parsed as a date. |
442 | 444 | * @return the number of milliseconds since January 1, 1970, 00:00:00 GMT |
443 | 445 | * represented by the string argument. |
| 446 | + * @throws IllegalArgumentException if {@code s} cannot be interpreted as a |
| 447 | + * representation of a date and time. |
444 | 448 | * @see java.text.DateFormat |
445 | 449 | * @deprecated As of JDK version 1.1, |
446 | 450 | * replaced by {@code DateFormat.parse(String s)}. |
|
0 commit comments