Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validating the date format, add test case, since NumberFormatException extends IllegalArgumentException, it is only necessary to write IllegalArgumentException. #2529

Closed
wants to merge 8 commits into from

Merge branch 'main' into main

1a671b2
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL succeeded Nov 7, 2023 in 5s

2 new alerts

New alerts in code changed by this pull request

  • 2 warnings

See annotations below for details.

View all branch alerts.

Annotations

Check warning on line 193 in gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java

See this annotation in the file changed.

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
date
may be null at this access as suggested by
this
null guard.

Check warning on line 172 in gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java

See this annotation in the file changed.

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
date
may be null at this access as suggested by
this
null guard.