From 431a560c8f30a1b2e03c5755a821f8f32effeb1a Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Mon, 12 Mar 2018 08:45:05 +0000 Subject: [PATCH] Simplify MultiPostprocessor.getName --- .../com/facebook/react/views/image/MultiPostprocessor.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/image/MultiPostprocessor.java b/ReactAndroid/src/main/java/com/facebook/react/views/image/MultiPostprocessor.java index fd441f10642824..d6cf6a3ca8d6c4 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/image/MultiPostprocessor.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/image/MultiPostprocessor.java @@ -40,15 +40,14 @@ private MultiPostprocessor(List postprocessors) { @Override public String getName () { - StringBuilder name = new StringBuilder("MultiPostProcessor ("); - boolean first = true; + StringBuilder name = new StringBuilder(); for (Postprocessor p: mPostprocessors) { - if (!first) { + if (name.length() > 0) { name.append(","); } name.append(p.getName()); - first = false; } + name.insert(0, "MultiPostProcessor ("); name.append(")"); return name.toString(); }