poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fannin...@apache.org
Subject svn commit: r1847012 - /poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFPictureShape.java
Date Tue, 20 Nov 2018 14:31:50 GMT
Author: fanningpj
Date: Tue Nov 20 14:31:49 2018
New Revision: 1847012

URL: http://svn.apache.org/viewvc?rev=1847012&view=rev
Log:
tidy up code formatting

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFPictureShape.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFPictureShape.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFPictureShape.java?rev=1847012&r1=1847011&r2=1847012&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFPictureShape.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFPictureShape.java Tue Nov 20
14:31:49 2018
@@ -173,8 +173,8 @@ public class XSLFPictureShape extends XS
         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 XS
     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;
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message