From 5891cf514ea94bc77f3a694902b2c64060c16950 Mon Sep 17 00:00:00 2001 From: Ahmed Rezik Date: Tue, 11 Aug 2020 16:14:06 +0200 Subject: [PATCH] formatted control flow --- src/main/java/com/facebook/ads/utils/CustomDataAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/facebook/ads/utils/CustomDataAdapter.java b/src/main/java/com/facebook/ads/utils/CustomDataAdapter.java index b8d75431..d70b6ef9 100644 --- a/src/main/java/com/facebook/ads/utils/CustomDataAdapter.java +++ b/src/main/java/com/facebook/ads/utils/CustomDataAdapter.java @@ -68,7 +68,7 @@ public JsonElement serialize(final CustomData src, Type typeOfSrc, final JsonSer } // Adding Custom Properties to serialized object - if (null != src.getCustomProperties()) { + if (src.getCustomProperties() != null) { for (final String key : src.getCustomProperties().keySet()) { serializedObject.addProperty(key, src.getCustomProperties().get(key)); }