Skip to content

Commit

Permalink
clean(reader-gtfs): dont use commons-lang3, keep it transitive
Browse files Browse the repository at this point in the history
  • Loading branch information
kschrab committed Dec 5, 2024
1 parent a775e6f commit 213b075
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.13.0</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import com.opencsv.CSVReaderBuilder;
import com.opencsv.exceptions.CsvValidationException;
import com.opencsv.validators.LineValidator;
import org.apache.commons.lang3.StringUtils;

import java.io.InputStream;
import java.io.InputStreamReader;
Expand Down Expand Up @@ -78,7 +77,7 @@ public boolean readRecord() {
static class SkipEmptyLines implements LineValidator {
@Override
public boolean isValid(String s) {
return StringUtils.isNotEmpty(s);
return s != null && !s.isEmpty();
}

@Override
Expand Down

0 comments on commit 213b075

Please sign in to comment.