poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1090434 - /poi/trunk/src/ooxml/java/org/apache/poi/POIXMLDocumentPart.java
Date Fri, 08 Apr 2011 20:29:49 GMT
Author: nick
Date: Fri Apr  8 20:29:49 2011
New Revision: 1090434

URL: http://svn.apache.org/viewvc?rev=1090434&view=rev
Log:
Fix inconsistent indent

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/POIXMLDocumentPart.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/POIXMLDocumentPart.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/POIXMLDocumentPart.java?rev=1090434&r1=1090433&r2=1090434&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/POIXMLDocumentPart.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/POIXMLDocumentPart.java Fri Apr  8 20:29:49 2011
@@ -271,37 +271,37 @@ public class POIXMLDocumentPart {
     protected void read(POIXMLFactory factory, Map<PackagePart, POIXMLDocumentPart>
context) throws OpenXML4JException {
     	PackageRelationshipCollection rels = packagePart.getRelationships();
     	for (PackageRelationship rel : rels) {
-    		if(rel.getTargetMode() == TargetMode.INTERNAL){
-                URI uri = rel.getTargetURI();
+    	   if(rel.getTargetMode() == TargetMode.INTERNAL){
+    	      URI uri = rel.getTargetURI();
 
-                PackagePart p;
-                if(uri.getRawFragment() != null) {
-                    /*
-                     * For internal references (e.g. '#Sheet1!A1') the package part is null
-                     */
-                    p = null;
-                } else {
-                    PackagePartName relName = PackagingURIHelper.createPartName(uri);
-                    p = packagePart.getPackage().getPart(relName);
-                    if(p == null) {
-                        logger.log(POILogger.ERROR, "Skipped invalid entry " + rel.getTargetURI());
-                        continue;
-                    }
-                }
-
-                if (!context.containsKey(p)) {
-    				POIXMLDocumentPart childPart = factory.createDocumentPart(this, rel, p);
-    				childPart.parent = this;
-    				addRelation(childPart);
-                    if(p != null){
-                        context.put(p, childPart);
-                        if(p.hasRelationships()) childPart.read(factory, context);
-                    }
-    			}
-    			else {
-    				addRelation(context.get(p));
-    			}
-    		}
+    	      PackagePart p;
+    	      if(uri.getRawFragment() != null) {
+    	         /*
+    	          * For internal references (e.g. '#Sheet1!A1') the package part is null
+    	          */
+    	         p = null;
+    	      } else {
+    	         PackagePartName relName = PackagingURIHelper.createPartName(uri);
+    	         p = packagePart.getPackage().getPart(relName);
+    	         if(p == null) {
+    	            logger.log(POILogger.ERROR, "Skipped invalid entry " + rel.getTargetURI());
+    	            continue;
+    	         }
+    	      }
+
+    	      if (!context.containsKey(p)) {
+    	         POIXMLDocumentPart childPart = factory.createDocumentPart(this, rel, p);
+    	         childPart.parent = this;
+    	         addRelation(childPart);
+    	         if(p != null){
+    	            context.put(p, childPart);
+    	            if(p.hasRelationships()) childPart.read(factory, context);
+    	         }
+    	      }
+    	      else {
+    	         addRelation(context.get(p));
+    	      }
+    	   }
     	}
     }
 



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


Mime
View raw message