]> source.dussan.org Git - poi.git/commitdiff
tidy up code formatting
authorPJ Fanning <fanningpj@apache.org>
Tue, 20 Nov 2018 14:31:49 +0000 (14:31 +0000)
committerPJ Fanning <fanningpj@apache.org>
Tue, 20 Nov 2018 14:31:49 +0000 (14:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1847012 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFPictureShape.java

index 95a8f0bc23a3e4735a56724f507795caa71af7fe..9f07b18bac41b85dd859b658bad3efda7d4a222f 100644 (file)
@@ -173,8 +173,8 @@ public class XSLFPictureShape extends XSLFSimpleShape
         CTBlip blip = getBlip();
         if (blip != null) {
             String link = blip.getLink();
-            if (link.isEmpty()) return null;
-        return link;} else {
+            return (link.isEmpty()) ? null : link;
+        } else {
             return null;
         }
     }
@@ -183,9 +183,8 @@ public class XSLFPictureShape extends XSLFSimpleShape
     protected String getBlipId(){
         CTBlip blip = getBlip();
         if (blip != null) {
-            String id = getBlip().getEmbed();
-            if (id.isEmpty()) return null;
-            return id;
+            String id = blip.getEmbed();
+            return (id.isEmpty()) ? null : id;
         } else {
             return null;
         }