From 6ef6eacea0c21e16c73056c19ee6a8e10c3d2fa2 Mon Sep 17 00:00:00 2001 From: Paul Reilly Date: Fri, 11 Aug 2023 15:26:26 -0500 Subject: [PATCH] Addressed requested changes Signed-off-by: Paul Reilly --- .../src/main/java/fns/patchwork/provider/ContextProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Patchwork/src/main/java/fns/patchwork/provider/ContextProvider.java b/Patchwork/src/main/java/fns/patchwork/provider/ContextProvider.java index 7757c1f..2cfd6a7 100644 --- a/Patchwork/src/main/java/fns/patchwork/provider/ContextProvider.java +++ b/Patchwork/src/main/java/fns/patchwork/provider/ContextProvider.java @@ -126,7 +126,7 @@ public class ContextProvider private @Nullable Long toLong(final String string, final Class clazz) { - if (clazz != Long.class || string.endsWith("L")) + if (clazz != Long.class || !string.endsWith("L")) return null; try @@ -141,7 +141,7 @@ public class ContextProvider private @Nullable Float toFloat(final String string, final Class clazz) { - if (clazz != Float.class) + if (clazz != Float.class || !string.endsWith("F")) return null; try