From 1f25d4c968cc967060cc0635a5001f2f51bd8a4c Mon Sep 17 00:00:00 2001 From: Markus Spann Date: Sat, 2 Mar 2024 13:04:58 +0100 Subject: [PATCH] Rename parameter --- src/main/java/io/github/spannm/jackcess/Database.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }