diff --git a/src/main/java/io/github/spannm/jackcess/Database.java b/src/main/java/io/github/spannm/jackcess/Database.java index 55a00dc..e734ab8 100644 --- a/src/main/java/io/github/spannm/jackcess/Database.java +++ b/src/main/java/io/github/spannm/jackcess/Database.java @@ -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); }