From 884920ab93b0e72eab2c1a698792cdc5e858b799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Marulanda=20P=2E?= Date: Fri, 25 Oct 2024 21:33:43 +0200 Subject: [PATCH] up --- .../java/dev/nmarulo/depensaapp/ServletInitializer.java | 4 ++-- .../java/dev/nmarulo/depensaapp/commons/gson/GsonUtil.java | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/dev/nmarulo/depensaapp/ServletInitializer.java b/src/main/java/dev/nmarulo/depensaapp/ServletInitializer.java index 2ce5533..65009cb 100644 --- a/src/main/java/dev/nmarulo/depensaapp/ServletInitializer.java +++ b/src/main/java/dev/nmarulo/depensaapp/ServletInitializer.java @@ -20,7 +20,7 @@ protected SpringApplicationBuilder configure(SpringApplicationBuilder applicatio } String x = "foo"; if (x.equals(null)) { - doSomething(); + //doSomething(); } Integer value = 1; try { @@ -30,7 +30,7 @@ protected SpringApplicationBuilder configure(SpringApplicationBuilder applicatio value = null; // Value set to null within a catch block // ... } - value.member += 1; + //value.member += 1; return application.sources(DespensaRestApiApplication.class); } diff --git a/src/main/java/dev/nmarulo/depensaapp/commons/gson/GsonUtil.java b/src/main/java/dev/nmarulo/depensaapp/commons/gson/GsonUtil.java index 8980cf6..f213cae 100644 --- a/src/main/java/dev/nmarulo/depensaapp/commons/gson/GsonUtil.java +++ b/src/main/java/dev/nmarulo/depensaapp/commons/gson/GsonUtil.java @@ -1,5 +1,10 @@ package dev.nmarulo.depensaapp.commons.gson; +import java.util.HashMap; +import java.util.Map; +import java.net.URL; +import java.util.concurrent.ConcurrentMap; +import java.util.concurrent.ConcurrentSkipListMap; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import lombok.RequiredArgsConstructor; @@ -31,7 +36,7 @@ public R convertTo(Object object, Class clazz) { } String x = "foo"; if (x.equals(null)) { - doSomething(); + //doSomething(); } return fromJsonTo(json, TypeToken.get(clazz));