Skip to content

Commit e89dce0

Browse files
committed
Use the more specific checkNotNull vs checkState
1 parent c305837 commit e89dce0

File tree

1 file changed

+1
-2
lines changed
  • dumper/app/src/main/java/com/google/edwmigration/dumper/application/dumper/connector

1 file changed

+1
-2
lines changed

dumper/app/src/main/java/com/google/edwmigration/dumper/application/dumper/connector/Connector.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ static void validateDateRange(@Nonnull ConnectorArguments arguments) {
6161
if (start == null && end == null) {
6262
return;
6363
}
64-
checkState(
65-
start != null, "End date can be specified only with start date, but start date was null.");
64+
checkNotNull(start, "End date can be specified only with start date, but start date was null.");
6665
// The assignment makes 'end' recognized as @Nonnull.
6766
end = checkNotNull(end, "End date must be specified with start date, but was null.");
6867

0 commit comments

Comments
 (0)