Skip to content

Commit

Permalink
Rename parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
spannm committed Mar 2, 2024
1 parent b416967 commit 1f25d4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/io/github/spannm/jackcess/Database.java
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,10 @@ public String toString() {
return name() + " [" + DatabaseImpl.getFileFormatDetails(this).getFormat() + "]";
}

public static FileFormat parse(String _fileFormat) {
public static FileFormat parse(String _str) {
return Arrays.stream(FileFormat.values())
.filter(e -> _fileFormat != null)
.filter(e -> e.name().equalsIgnoreCase(_fileFormat))
.filter(e -> _str != null)
.filter(e -> e.name().equalsIgnoreCase(_str))
.findFirst().orElse(null);
}

Expand Down

0 comments on commit 1f25d4c

Please sign in to comment.