From 820c88a37f1a21d455abcf948d8ded83b4554c9a Mon Sep 17 00:00:00 2001 From: FlameyosFlow <89988527+FlameyosSnowy@users.noreply.github.com> Date: Sat, 27 Sep 2025 12:13:27 +0300 Subject: [PATCH] Fix example by replacing `isEmpty` with `isPresent` --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index eef26bf..77ba7a0 100644 --- a/readme.md +++ b/readme.md @@ -91,7 +91,7 @@ public class Test { connection = new MySQLConnection(mysql_creds); connection.connect(result -> { - if (result.getException().isEmpty()) { + if (result.getException().isPresent()) { result.getException().get().printStackTrace(); return; }