You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by vh...@apache.org on 2014/01/30 16:51:11 UTC

svn commit: r1562866 [2/13] - in /xmlgraphics/fop/branches/Temp_FopFontsForSVG: ./ examples/fo/basic/ lib/ src/codegen/unicode/java/org/apache/fop/complexscripts/bidi/ src/documentation/intermediate-format-ng/ src/java/META-INF/services/ src/java/org/a...

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/findbugs-exclude.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/findbugs-exclude.xml?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/findbugs-exclude.xml (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/findbugs-exclude.xml Thu Jan 30 15:51:03 2014
@@ -1,37 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <FindBugsFilter>
   <Match>
-    <Class name="org.apache.fop.layoutmgr.inline.TextLayoutManager$TextAreaBuilder"/>
-    <Method name="getMappingBidiLevels"/>
-    <Bug pattern="PZLA_PREFER_ZERO_LENGTH_ARRAYS"/>
-  </Match>
-  <Match>
-    <Class name="org.apache.fop.svg.PDFTextPainter"/>
-    <Field name="pdf"/>
-    <Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"/>
-  </Match>
-  <Match>
-    <Class name="org.apache.fop.render.ps.PSTextPainter"/>
-    <Or>
-      <Field name="gen"/>
-      <Field name="ps"/>
-      <Field name="psRun"/>
-      <Field name="textUtil"/>
-    </Or>
-    <Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"/>
-  </Match>
-  <Match>
-    <Class name="org.apache.fop.fonts.GlyphMapping"/>
-    <Method name="&lt;init&gt;"/>
-    <Bug pattern="EI_EXPOSE_REP2"/>
-  </Match>
-  <Match>
-    <Class name="org.apache.fop.fonts.MultiByteFont"/>
-    <Method name="setBBoxArray"/>
-    <Bug pattern="EI_EXPOSE_REP2"/>
-  </Match>
-  <Match>
-    <Class name="org.apache.fop.fonts.truetype.TTFFile$1"/>
+    <Class name="org.apache.fop.fonts.truetype.OpenFont$1"/>
     <Bug pattern="SIC_INNER_SHOULD_BE_STATIC_ANON"/>
   </Match>
   <Match>
@@ -439,6 +409,11 @@
       <Bug pattern="OS_OPEN_STREAM"/>
    </Match>
    <Match>
+      <Class name="org.apache.fop.pdf.PDFFactory"/>
+      <Method name="makeFont"/>
+      <Bug pattern="BC_UNCONFIRMED_CAST_OF_RETURN_VALUE"/>
+   </Match>
+   <Match>
       <Class name="org.apache.fop.pdf.PDFOutputIntent"/>
       <Method name="toPDF"/>
       <Bug pattern="OS_OPEN_STREAM"/>
@@ -864,7 +839,7 @@
       <Bug pattern="BIT_IOR_OF_SIGNED_BYTE"/>
    </Match>
    <Match>
-      <Class name="org.apache.fop.fonts.truetype.TTFDirTabEntry"/>
+      <Class name="org.apache.fop.fonts.truetype.OFDirTabEntry"/>
       <Method name="toString"/>
       <Bug pattern="DMI_INVOKING_TOSTRING_ON_ARRAY"/>
    </Match>
@@ -1019,7 +994,7 @@
       <Bug pattern="UWF_UNWRITTEN_FIELD"/>
    </Match>
    <Match>
-      <Class name="org.apache.fop.fonts.truetype.TTFDirTabEntry"/>
+      <Class name="org.apache.fop.fonts.truetype.OFDirTabEntry"/>
       <Field name="checksum"/>
       <Bug pattern="UWF_UNWRITTEN_FIELD"/>
    </Match>
@@ -2173,37 +2148,37 @@
       <Bug pattern="DM_NUMBER_CTOR"/>
    </Match>
    <Match>
-      <Class name="org.apache.fop.fonts.truetype.TTFFile"/>
+      <Class name="org.apache.fop.fonts.truetype.OpenFont"/>
       <Method name="glyphToUnicode"/>
       <Bug pattern="DM_NUMBER_CTOR"/>
    </Match>
    <Match>
-      <Class name="org.apache.fop.fonts.truetype.TTFFile"/>
+      <Class name="org.apache.fop.fonts.truetype.OpenFont"/>
       <Method name="initAnsiWidths"/>
       <Bug pattern="DM_NUMBER_CTOR"/>
    </Match>
    <Match>
-      <Class name="org.apache.fop.fonts.truetype.TTFFile"/>
+      <Class name="org.apache.fop.fonts.truetype.OpenFont"/>
       <Method name="readKerning"/>
       <Bug pattern="DM_NUMBER_CTOR"/>
    </Match>
    <Match>
-      <Class name="org.apache.fop.fonts.truetype.TTFFile"/>
+      <Class name="org.apache.fop.fonts.truetype.OpenFont"/>
       <Method name="readUnicodeCmap"/>
       <Bug pattern="DM_NUMBER_CTOR"/>
    </Match>
    <Match>
-      <Class name="org.apache.fop.fonts.truetype.TTFFile"/>
+      <Class name="org.apache.fop.fonts.truetype.OpenFont"/>
       <Method name="unicodeToGlyph"/>
       <Bug pattern="DM_NUMBER_CTOR"/>
    </Match>
    <Match>
-      <Class name="org.apache.fop.fonts.truetype.TTFFile"/>
+      <Class name="org.apache.fop.fonts.truetype.OpenFont"/>
       <Method name="unicodeToWinAnsi"/>
       <Bug pattern="DM_NUMBER_CTOR"/>
    </Match>
    <Match>
-      <Class name="org.apache.fop.fonts.truetype.TTFFile$UnicodeMapping"/>
+      <Class name="org.apache.fop.fonts.truetype.OpenFont$UnicodeMapping"/>
       <Method name="&lt;init&gt;"/>
       <Bug pattern="DM_NUMBER_CTOR"/>
    </Match>
@@ -2653,7 +2628,7 @@
       <Bug pattern="ITA_INEFFICIENT_TO_ARRAY"/>
    </Match>
    <Match>
-      <Class name="org.apache.fop.fonts.truetype.TTFFile"/>
+      <Class name="org.apache.fop.fonts.truetype.OpenFont"/>
       <Method name="unicodeToWinAnsi"/>
       <Bug pattern="ITA_INEFFICIENT_TO_ARRAY"/>
    </Match>
@@ -2882,7 +2857,7 @@
       <Bug pattern="SIC_INNER_SHOULD_BE_STATIC_ANON"/>
    </Match>
    <Match>
-      <Class name="org.apache.fop.fonts.truetype.TTFFile$UnicodeMapping"/>
+      <Class name="org.apache.fop.fonts.truetype.OpenFont$UnicodeMapping"/>
       <!--Neither method nor field-->
       <Bug pattern="SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS"/>
    </Match>
@@ -2932,7 +2907,7 @@
       <Bug pattern="UPM_UNCALLED_PRIVATE_METHOD"/>
    </Match>
    <Match>
-      <Class name="org.apache.fop.fonts.truetype.TTFFile"/>
+      <Class name="org.apache.fop.fonts.truetype.OpenFont"/>
       <Method name="printMaxMin"/>
       <Bug pattern="UPM_UNCALLED_PRIVATE_METHOD"/>
    </Match>
@@ -3112,7 +3087,7 @@
       <Bug pattern="WMI_WRONG_MAP_ITERATOR"/>
    </Match>
    <Match>
-      <Class name="org.apache.fop.fonts.truetype.TTFFile"/>
+      <Class name="org.apache.fop.fonts.truetype.OpenFont"/>
       <Method name="readKerning"/>
       <Bug pattern="WMI_WRONG_MAP_ITERATOR"/>
    </Match>
@@ -3777,7 +3752,7 @@
       <Bug pattern="DLS_DEAD_LOCAL_STORE"/>
    </Match>
    <Match>
-      <Class name="org.apache.fop.fonts.truetype.TTFFile"/>
+      <Class name="org.apache.fop.fonts.truetype.OpenFont"/>
       <Method name="readFont"/>
       <Bug pattern="DLS_DEAD_LOCAL_STORE"/>
    </Match>
@@ -5051,7 +5026,7 @@
      <Bug pattern="EI_EXPOSE_REP"/>
    </Match>
    <Match>
-     <Class name="org.apache.fop.fonts.truetype.TTFDirTabEntry"/>
+     <Class name="org.apache.fop.fonts.truetype.OFDirTabEntry"/>
      <Method name="getTag"/>
      <Bug pattern="EI_EXPOSE_REP"/>
    </Match>
@@ -5256,4 +5231,206 @@
      </Or>
      <Bug pattern="BC_UNCONFIRMED_CAST"/>
    </Match>
+   <Match>
+     <Or>
+       <Class name="org.apache.fop.fo.properties.CommonAural"/>
+       <Class name="org.apache.fop.fo.properties.CommonMarginInline"/>
+       <Class name="org.apache.fop.render.pdf.PDFSVGHandler$PDFInfo"/>
+       <Class name="org.apache.fop.fo.properties.CommonRelativePosition"/>
+     </Or>
+     <Or>
+       <Bug pattern="UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD"/>
+       <Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD"/>
+     </Or>
+   </Match>
+   <Match>
+     <Or>
+        <Class name="org.apache.fop.forms.FormLayoutManagerMakerProvider$CheckBoxLayoutManagerMaker"/>
+        <Class name="org.apache.fop.forms.FormLayoutManagerMakerProvider$ComboBoxLayoutManagerMaker"/>
+        <Class name="org.apache.fop.forms.FormLayoutManagerMakerProvider$InputLayoutManagerMaker"/>
+        <Class name="org.apache.fop.forms.FormLayoutManagerMakerProvider$MultilineInputLayoutManagerMaker"/>
+        <Class name="org.apache.fop.forms.FormLayoutManagerMakerProvider$RadioButtonLayoutManagerMaker"/>
+        <Class name="org.apache.fop.forms.FormLayoutManagerMakerProvider$TriggerLayoutManagerMaker"/>
+        <Class name="org.apache.fop.render.intermediate.IFRenderer$1"/>
+        <Class name="org.apache.fop.render.intermediate.IFRenderer$3"/>
+        <Class name="org.apache.fop.render.intermediate.IFRenderer$4"/>
+        <Class name="org.apache.fop.render.intermediate.IFRenderer$5"/>
+        <Class name="org.apache.fop.render.intermediate.IFRenderer$6"/>
+        <Class name="org.apache.fop.render.pdf.PDFPainter$InputPainter"/>
+        <Class name="org.apache.fop.render.pdf.PDFPainter$MultilineInputPainter"/>
+        <Class name="org.apache.fop.render.pdf.PDFPainter$RadioButtonPainter"/>
+        <Class name="org.apache.fop.render.pdf.PDFPainter$TriggerPainter"/>
+        <Class name="org.apache.fop.render.pdf.PDFPainter$ComboBoxPainter"/>
+        <Class name="org.apache.fop.render.pdf.PDFPainter$CheckboxPainter"/>
+     </Or>
+     <Or>
+        <Bug pattern="BC_UNCONFIRMED_CAST"/>
+        <Bug pattern="BC_UNCONFIRMED_CAST_OF_RETURN_VALUE"/>
+     </Or>
+   </Match>
+   <Match>
+     <Or>
+        <Class name="org.apache.fop.fo.flow.Float"/>
+        <Class name="org.apache.fop.fo.flow.MultiCase"/>
+        <Class name="org.apache.fop.fo.flow.MultiProperties"/>
+        <Class name="org.apache.fop.fo.flow.MultiPropertySet"/>
+        <Class name="org.apache.fop.fo.flow.MultiSwitch"/>
+        <Class name="org.apache.fop.fo.flow.MultiToggle"/>
+        <Class name="org.apache.fop.fo.flow.table.TableAndCaption"/>
+        <Class name="org.apache.fop.fo.flow.table.TableCaption"/>
+        <Class name="org.apache.fop.fonts.apps.AbstractFontReader"/>
+        <Class name="org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement"/>
+     </Or>
+     <Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"/>
+   </Match>
+   <Match>
+     <Or>
+        <Class name="org.apache.fop.pdf.PDFFunction"/>
+        <Class name="org.apache.fop.pdf.PDFGoTo"/>
+        <Class name="org.apache.fop.pdf.PDFLink"/>
+        <Class name="org.apache.fop.pdf.PDFPattern"/>
+        <Class name="org.apache.fop.svg.ACIUtils"/>
+        <Class name="org.apache.fop.svg.PDFTextPainter"/>        
+     </Or>
+     <Bug pattern="FE_FLOATING_POINT_EQUALITY"/>
+   </Match>
+   <Match>
+     <Or>
+        <Class name="org.apache.fop.area.BodyRegion"/>
+        <Class name="org.apache.fop.area.Page"/>
+        <Class name="org.apache.fop.area.PageViewport"/>
+        <Class name="org.apache.fop.area.RegionReference"/>
+        <Class name="org.apache.fop.area.RegionViewport"/>
+        <Class name="org.apache.fop.hyphenation.CharVector"/>
+        <Class name="org.apache.fop.hyphenation.TernaryTree"/>
+        <Class name="org.apache.fop.render.rtf.rtflib.rtfdoc.RtfAttributes"/>
+     </Or>
+     <Bug pattern="CN_IDIOM_NO_SUPER_CALL"/>
+   </Match>   
+   <Match>
+     <Or>
+        <Class name="org.apache.fop.forms.CheckBoxArea"/>
+        <Class name="org.apache.fop.forms.ComboBox"/>
+        <Class name="org.apache.fop.forms.RadioButtonArea"/>
+     </Or>
+     <Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED"/>
+   </Match> 
+   <Match>
+     <Or>
+        <Class name="org.apache.fop.layoutmgr.PageBreaker"/>
+        <Class name="org.apache.fop.layoutmgr.BlockContainerLayoutManager"/>
+     </Or>
+     <Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
+   </Match>    
+   <Match>
+     <Class name="org.apache.fop.layoutmgr.BlockContainerLayoutManager"/>
+     <Bug pattern="NP_LOAD_OF_KNOWN_NULL_VALUE"/>
+   </Match>
+   <Match>
+     <Class name="org.apache.fop.fonts.truetype.OpenFont"/>
+     <Bug pattern="DMI_ENTRY_SETS_MAY_REUSE_ENTRY_OBJECTS"/>
+   </Match>
+   <Match>
+     <Class name="org.apache.fop.apps.io.ResourceResolverFactory$FileDeletingInputStream"/>
+     <Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE"/>
+   </Match>
+   <Match>
+     <Class name="org.apache.fop.fo.properties.FontFamilyProperty"/>
+     <Bug pattern="EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC"/>
+   </Match>
+   <Match>
+     <Class name="org.apache.fop.render.ps.PSImageObject"/>
+     <Or>
+        <Bug pattern="EI_EXPOSE_REP"/>
+        <Bug pattern="EI_EXPOSE_REP2"/>
+     </Or>
+   </Match>
+   <Match>
+     <Class name="org.apache.fop.fonts.cff.CFFDataReader"/>
+     <Bug pattern="DM_DEFAULT_ENCODING"/>
+   </Match>
+   <Match>
+     <Class name="org.apache.fop.fonts.cff.CFFDataReader$CFFIndexData"/>
+     <Or>
+        <Bug pattern="SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH"/>
+        <Bug pattern="SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH_TO_THROW"/>
+     </Or>
+   </Match>
+   <Match>
+     <Class name="org.apache.fop.fonts.cff.CFFDataReader$CFFSubTable"/>
+     <Or>
+        <Bug pattern="EI_EXPOSE_REP"/>
+        <Bug pattern="EI_EXPOSE_REP2"/>
+     </Or>
+   </Match>
+   <Match>
+     <Class name="org.apache.fop.fonts.cff.CFFDataReader$DICTEntry"/>
+     <Or>
+        <Bug pattern="EI_EXPOSE_REP"/>
+        <Bug pattern="EI_EXPOSE_REP2"/>
+     </Or>
+   </Match>
+   <Match>
+     <Class name="org.apache.fop.fonts.truetype.OTFFile"/>
+     <Or>
+        <Bug pattern="ITA_INEFFICIENT_TO_ARRAY"/>
+        <Bug pattern="DM_DEFAULT_ENCODING"/>
+     </Or>
+   </Match>
+   <Match>
+     <Class name="org.apache.fop.fonts.truetype.OTFSubSetFile"/>
+     <Or>
+        <Bug pattern="ITA_INEFFICIENT_TO_ARRAY"/>
+        <Bug pattern="SIC_INNER_SHOULD_BE_STATIC"/>
+        <Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"/>
+        <Bug pattern="DM_DEFAULT_ENCODING"/>
+     </Or>
+   </Match>
+   <Match>
+     <Class name="org.apache.fop.fonts.truetype.OTFSubSetFile$1"/>
+     <Or>
+         <Bug pattern="SIC_INNER_SHOULD_BE_STATIC"/>
+         <Bug pattern="SIC_INNER_SHOULD_BE_STATIC_ANON"/>
+     </Or>
+   </Match>
+   <Match>
+     <Class name="org.apache.fop.fonts.truetype.OTFSubSetFile$FDIndexReference"/>
+     <Bug pattern="SIC_INNER_SHOULD_BE_STATIC"/>
+   </Match>
+   <Match>
+     <Class name="org.apache.fop.render.ps.PSFontUtils"/>
+     <Bug pattern="DM_DEFAULT_ENCODING"/>
+   </Match>
+   <Match>
+     <Class name="org.apache.fop.forms.IField$Field"/>
+     <Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED"/>
+   </Match>
+   <Match>
+     <Or>
+        <Class name="org.apache.fop.forms.IField$Field"/>
+        <Class name="org.apache.fop.forms.TriggerArea"/>
+        <Class name="org.apache.fop.forms.traits.AdditionalActionTrait"/>
+     </Or>
+     <Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED"/>
+   </Match>
+   <Match>
+      <Class name="org.apache.fop.render.pdf.extensions.PDFExtensionHandlerFactory"/>
+      <Method name="getSupportedNamespaces"/>
+      <Bug pattern="EI_EXPOSE_REP"/>
+   </Match>
+   <Match>
+      <Class name="org.apache.fop.render.pdf.extensions.PDFDictionaryEntryExtension"/>
+      <Method name="getValueAsNumber"/>
+      <Bug pattern="FE_FLOATING_POINT_EQUALITY"/>
+   </Match>
+   <Match>
+      <Class name="org.apache.fop.render.pdf.extensions.PDFDictionaryType"/>
+      <Method name="hasValueOfElementName"/>
+      <Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
+   </Match>
+   <Match>
+      <Class name="org.apache.fop.render.pdf.extensions.PDFDictionaryEntryType"/>
+      <Method name="hasValueOfElementName"/>
+      <Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
+   </Match>
 </FindBugsFilter>

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/lib/xmlgraphics-commons-svn-trunk.jar
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/lib/xmlgraphics-commons-svn-trunk.jar?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
Binary files - no diff available.

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/unicode/java/org/apache/fop/complexscripts/bidi/GenerateBidiClass.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/unicode/java/org/apache/fop/complexscripts/bidi/GenerateBidiClass.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/unicode/java/org/apache/fop/complexscripts/bidi/GenerateBidiClass.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/unicode/java/org/apache/fop/complexscripts/bidi/GenerateBidiClass.java Thu Jan 30 15:51:03 2014
@@ -32,7 +32,6 @@ import java.util.TreeSet;
 import org.apache.fop.util.License;
 
 // CSOFF: LineLength
-// CSOFF: NoWhitespaceAfter
 
 /**
  * <p>Utility for generating a Java class representing bidirectional
@@ -303,7 +302,7 @@ public final class GenerateBidiClass {
         sb.setLength(0);
         out.println("private static byte[] bcL1 = {");
         for (int i = 0; i < bcL1.length; i++) {
-            if (! first) {
+            if (!first) {
                 sb.append(",");
             } else {
                 first = false;
@@ -327,7 +326,7 @@ public final class GenerateBidiClass {
         sb.setLength(0);
         out.println("private static byte[] bcR1 = {");
         for (int i = 0; i < bcR1.length; i++) {
-            if (! first) {
+            if (!first) {
                 sb.append(",");
             } else {
                 first = false;
@@ -351,7 +350,7 @@ public final class GenerateBidiClass {
         sb.setLength(0);
         out.println("private static int[] bcS1 = {");
         for (int i = 0; i < bcS1.length; i++) {
-            if (! first) {
+            if (!first) {
                 sb.append(",");
             } else {
                 first = false;
@@ -375,7 +374,7 @@ public final class GenerateBidiClass {
         sb.setLength(0);
         out.println("private static int[] bcE1 = {");
         for (int i = 0; i < bcE1.length; i++) {
-            if (! first) {
+            if (!first) {
                 sb.append(",");
             } else {
                 first = false;
@@ -399,7 +398,7 @@ public final class GenerateBidiClass {
         sb.setLength(0);
         out.println("private static byte[] bcC1 = {");
         for (int i = 0; i < bcC1.length; i++) {
-            if (! first) {
+            if (!first) {
                 sb.append(",");
             } else {
                 first = false;
@@ -434,7 +433,7 @@ public final class GenerateBidiClass {
         if (k >= 0) {
             return ca [ k ];
         } else {
-            k = - (k + 1);
+            k = -(k + 1);
             if (k == 0) {
                 return BidiConstants.L;
             } else if (ch <= ea [ k - 1 ]) {

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/unicode/java/org/apache/fop/complexscripts/bidi/GenerateBidiTestData.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/unicode/java/org/apache/fop/complexscripts/bidi/GenerateBidiTestData.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/unicode/java/org/apache/fop/complexscripts/bidi/GenerateBidiTestData.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/unicode/java/org/apache/fop/complexscripts/bidi/GenerateBidiTestData.java Thu Jan 30 15:51:03 2014
@@ -40,10 +40,6 @@ import java.util.TreeMap;
 import org.apache.fop.util.License;
 
 // CSOFF: LineLengthCheck
-// CSOFF: NoWhitespaceAfterCheck
-// CSOFF: InnerAssignmentCheck
-// CSOFF: SimplifyBooleanReturnCheck
-// CSOFF: EmptyForIteratorPadCheck
 
 /**
  * <p>Utility for generating a Java class and associated data files representing
@@ -202,7 +198,7 @@ public final class GenerateBidiTestData 
                 String ucName = sa[1];
                 if (isBlockStart(ucName)) {
                     String ucBlock = getBlockName(ucName);
-                    if (! im.containsKey(ucBlock)) {
+                    if (!im.containsKey(ucBlock)) {
                         im.put(ucBlock, new int[] { uc, -1, bc });
                     } else {
                         throw new IllegalArgumentException("duplicate start of block '" + ucBlock + "' at entry: " + line);
@@ -223,7 +219,7 @@ public final class GenerateBidiTestData 
                 } else {
                     Integer k = Integer.valueOf(bc);
                     List sl;
-                    if (! sm.containsKey(k)) {
+                    if (!sm.containsKey(k)) {
                         sl = new ArrayList();
                         sm.put(k, sl);
                     } else {
@@ -267,7 +263,7 @@ public final class GenerateBidiTestData 
                 }
             }
             // populate intervals from (block) interval map
-            if (! im.isEmpty()) {
+            if (!im.isEmpty()) {
                 for (Iterator it = im.values().iterator(); it.hasNext(); ) {
                     int[] ba = (int[]) it.next();
                     assert (ba != null) && (ba.length > 2);
@@ -335,7 +331,7 @@ public final class GenerateBidiTestData 
                 continue;
             } else if (line.startsWith("#")) {
                 continue;
-            } else if (line.startsWith(PFX_TYPE) && ! ignoreDeprecatedTypeData) {
+            } else if (line.startsWith(PFX_TYPE) && !ignoreDeprecatedTypeData) {
                 List lines = new ArrayList();
                 if ((n = readType(line, b, lines)) < 0) {
                     break;
@@ -356,14 +352,14 @@ public final class GenerateBidiTestData 
         // dump instrumentation
         if (verbose) {
             System.out.println();
-            if (! ignoreDeprecatedTypeData) {
+            if (!ignoreDeprecatedTypeData) {
                 System.out.println("Read type ranges : " + numTypeRanges);
             }
             System.out.println("Read level specs : " + numLevelSpecs);
             System.out.println("Read test specs  : " + numTestSpecs);
             System.out.println("Read lines       : " + lineNumber);
         }
-        if (! ignoreDeprecatedTypeData) {
+        if (!ignoreDeprecatedTypeData) {
             td = (int[][]) tdl.toArray(new int [ tdl.size() ] []);
         }
         ld = (int[][]) ldl.toArray(new int [ ldl.size() ] []);
@@ -378,12 +374,12 @@ public final class GenerateBidiTestData 
         boolean done = false;
         int n = 0;
         lines.add(line);
-        while (! done) {
+        while (!done) {
             switch (testPrefix(b, PFX_LEVELS)) {
             case 0:     // within current levels
                 if ((line = b.readLine()) != null) {
                     n++;
-                    if ((line.length() > 0) && ! line.startsWith("#")) {
+                    if ((line.length() > 0) && !line.startsWith("#")) {
                         lines.add(line);
                     }
                 } else {
@@ -509,7 +505,7 @@ public final class GenerateBidiTestData 
         CharacterIterator ci = new StringCharacterIterator(charRanges);
         // read initial list delimiter
         skipSpace(ci);
-        if (! readStartOfList(ci)) {
+        if (!readStartOfList(ci)) {
             badRangeSpec("missing initial list delimiter", charRanges);
         }
         // read negation token if present
@@ -538,7 +534,7 @@ public final class GenerateBidiTestData 
             String s;
             skipSpace(ci);
             if ((s = maybeReadSeparator(ci)) != null) {
-                if ((s.length() != 0) && ! s.equals("||")) {
+                if ((s.length() != 0) && !s.equals("||")) {
                     badRangeSpec("invalid item separator \"" + s + "\"", charRanges);
                 }
             }
@@ -557,10 +553,10 @@ public final class GenerateBidiTestData 
         }
         // read terminating list delimiter
         skipSpace(ci);
-        if (! readEndOfList(ci)) {
+        if (!readEndOfList(ci)) {
             badRangeSpec("missing terminating list delimiter", charRanges);
         }
-        if (! atEnd(ci)) {
+        if (!atEnd(ci)) {
             badRangeSpec("extraneous content prior to end of line", ci);
         }
         if (negated) {
@@ -578,9 +574,9 @@ public final class GenerateBidiTestData 
     }
 
     private static void skipSpace(CharacterIterator ci) {
-        while (! atEnd(ci)) {
+        while (!atEnd(ci)) {
             char c = ci.current();
-            if (! Character.isWhitespace(c)) {
+            if (!Character.isWhitespace(c)) {
                 break;
             } else {
                 ci.next();
@@ -589,7 +585,7 @@ public final class GenerateBidiTestData 
     }
 
     private static boolean maybeReadNext(CharacterIterator ci, char next) {
-        while (! atEnd(ci)) {
+        while (!atEnd(ci)) {
             char c = ci.current();
             if (c == next) {
                 ci.next();
@@ -906,7 +902,7 @@ public final class GenerateBidiTestData 
         List ll = new ArrayList();
         // read prefix
         skipSpace(ci);
-        if (! maybeReadToken(ci, PFX_LEVELS)) {
+        if (!maybeReadToken(ci, PFX_LEVELS)) {
             badLevelSpec("missing prefix \"" + PFX_LEVELS + "\"", ci);
         }
         // read level values
@@ -924,7 +920,7 @@ public final class GenerateBidiTestData 
         }
         // read to end of line
         skipSpace(ci);
-        if (! atEnd(ci)) {
+        if (!atEnd(ci)) {
             badLevelSpec("extraneous content prior to end of line", ci);
         }
         if (ll.size() == 0) {
@@ -1007,7 +1003,7 @@ public final class GenerateBidiTestData 
         List rl = new ArrayList();
         // read prefix
         skipSpace(ci);
-        if (! maybeReadToken(ci, PFX_REORDER)) {
+        if (!maybeReadToken(ci, PFX_REORDER)) {
             badReorderSpec("missing prefix \"" + PFX_REORDER + "\"", ci);
         }
         // read reorder values
@@ -1023,7 +1019,7 @@ public final class GenerateBidiTestData 
         }
         // read to end of line
         skipSpace(ci);
-        if (! atEnd(ci)) {
+        if (!atEnd(ci)) {
             badReorderSpec("extraneous content prior to end of line", ci);
         }
         return createReorderArray(rl, levels);
@@ -1066,7 +1062,7 @@ public final class GenerateBidiTestData 
         CharacterIterator ci = new StringCharacterIterator(line);
         List cl = new ArrayList();
         // read bidi class identifier sequence
-        while (! atEnd(ci) && ! maybeReadNext(ci, ';')) {
+        while (!atEnd(ci) && !maybeReadNext(ci, ';')) {
             skipSpace(ci);
             int bc;
             if ((bc = maybeReadBidiClass(ci)) >= 0) {
@@ -1086,7 +1082,7 @@ public final class GenerateBidiTestData 
         }
         // read to end of line
         skipSpace(ci);
-        if (! atEnd(ci)) {
+        if (!atEnd(ci)) {
             badTestSpec("extraneous content prior to end of line", ci);
         }
         return createTestArray(cl, bs, levels);
@@ -1244,7 +1240,7 @@ public final class GenerateBidiTestData 
                 ok = false;
             }
         }
-        if (! ok) {
+        if (!ok) {
             System.out.println("Usage: GenerateBidiTestData [-v] [-i] [-d <ucdFile>] [-b <bidiFile>] [-o <outputFile>]");
             System.out.println("  defaults:");
             if (ignoreDeprecatedTypeData) {

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/documentation/intermediate-format-ng/fop-intermediate-format-ng-content.xsd
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/documentation/intermediate-format-ng/fop-intermediate-format-ng-content.xsd?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/documentation/intermediate-format-ng/fop-intermediate-format-ng-content.xsd (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/documentation/intermediate-format-ng/fop-intermediate-format-ng-content.xsd Thu Jan 30 15:51:03 2014
@@ -38,6 +38,7 @@
           <xs:complexContent>
             <xs:extension base="mf:contentType">
               <xs:attribute name="transform" type="xs:string"/>
+              <xs:attribute name="layer" type="xs:string"/>
             </xs:extension>
           </xs:complexContent>
         </xs:complexType>

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/META-INF/services/org.apache.fop.util.ContentHandlerFactory
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/META-INF/services/org.apache.fop.util.ContentHandlerFactory?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/META-INF/services/org.apache.fop.util.ContentHandlerFactory (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/META-INF/services/org.apache.fop.util.ContentHandlerFactory Thu Jan 30 15:51:03 2014
@@ -1,3 +1,4 @@
 org.apache.fop.render.afp.extensions.AFPExtensionHandlerFactory
+org.apache.fop.render.pdf.extensions.PDFExtensionHandlerFactory
 org.apache.fop.render.ps.extensions.PSExtensionHandlerFactory
 org.apache.fop.fo.extensions.xmp.XMPContentHandlerFactory

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/Version.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/Version.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/Version.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/Version.java Thu Jan 30 15:51:03 2014
@@ -40,8 +40,9 @@ public final class Version {
         }
         if (version == null) {
             //Fallback if FOP is used in a development environment
-            String headURL
-                = "$HeadURL$";
+            // CSOFF: LineLength
+            String headURL = "$HeadURL$";
+            // CSON: LineLength
             version = headURL;
             final String pathPrefix = "/xmlgraphics/fop/";
             int pos = version.indexOf(pathPrefix);

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/apps/FOUserAgent.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/apps/FOUserAgent.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/apps/FOUserAgent.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/apps/FOUserAgent.java Thu Jan 30 15:51:03 2014
@@ -408,7 +408,7 @@ public class FOUserAgent {
         try {
             // Have to do this so we can resolve data URIs
             StreamSource src = new StreamSource(resourceResolver.getResource(uri));
-            src.setSystemId(uri);
+            src.setSystemId(new File(uri).toURI().toURL().toExternalForm());
             return src;
         } catch (URISyntaxException use) {
             return null;

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/apps/FopConfParser.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/apps/FopConfParser.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/apps/FopConfParser.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/apps/FopConfParser.java Thu Jan 30 15:51:03 2014
@@ -70,16 +70,7 @@ public class FopConfParser {
      */
     public FopConfParser(InputStream fopConfStream, EnvironmentProfile enviro)
             throws SAXException, IOException {
-        DefaultConfigurationBuilder cfgBuilder = new DefaultConfigurationBuilder();
-        Configuration cfg;
-        try {
-            cfg = cfgBuilder.build(fopConfStream);
-        } catch (ConfigurationException e) {
-            throw new FOPException(e);
-        }
-        // The default base URI is taken from the directory in which the fopConf resides
-        fopFactoryBuilder = new FopFactoryBuilder(enviro).setConfiguration(cfg);
-        configure(enviro.getDefaultBaseURI(), enviro.getResourceResolver(), cfg);
+        this(fopConfStream, enviro.getDefaultBaseURI(), enviro);
     }
 
     /**
@@ -94,7 +85,8 @@ public class FopConfParser {
      */
     public FopConfParser(InputStream fopConfStream, URI defaultBaseURI,
             ResourceResolver resourceResolver) throws SAXException, IOException {
-        this(fopConfStream, EnvironmentalProfileFactory.createDefault(defaultBaseURI, resourceResolver));
+        this(fopConfStream, defaultBaseURI,
+                EnvironmentalProfileFactory.createDefault(defaultBaseURI, resourceResolver));
     }
 
     /**
@@ -123,6 +115,20 @@ public class FopConfParser {
     }
 
     /**
+     * Constructor that takes the FOP conf and a default base URI and uses the default URI resolver.
+     *
+     * @param fopConfFile the FOP conf file
+     * @param defaultBaseURI the default base URI
+     * @throws SAXException if a SAX error was thrown parsing the FOP conf
+     * @throws IOException if an I/O error is thrown while parsing the FOP conf
+     */
+    public FopConfParser(File fopConfFile, URI defaultBaseURI) throws SAXException, IOException {
+        this(new FileInputStream(fopConfFile), fopConfFile.toURI(),
+                EnvironmentalProfileFactory.createDefault(defaultBaseURI,
+                        ResourceResolverFactory.createDefaultResourceResolver()));
+    }
+
+    /**
      * Constructor that parses the FOP conf and uses the URI resolver given.
      *
      * @param fopConfFile the FOP conf file
@@ -132,11 +138,24 @@ public class FopConfParser {
      */
     public FopConfParser(File fopConfFile, ResourceResolver resourceResolver)
             throws SAXException, IOException {
-        this(new FileInputStream(fopConfFile),
-                fopConfFile.getAbsoluteFile().getParentFile().toURI(), resourceResolver);
+        this(new FileInputStream(fopConfFile), fopConfFile.toURI(), resourceResolver);
+    }
+
+    private FopConfParser(InputStream fopConfStream, URI baseURI, EnvironmentProfile enviro)
+            throws SAXException, IOException {
+        DefaultConfigurationBuilder cfgBuilder = new DefaultConfigurationBuilder();
+        Configuration cfg;
+        try {
+            cfg = cfgBuilder.build(fopConfStream);
+        } catch (ConfigurationException e) {
+            throw new FOPException(e);
+        }
+        // The default base URI is taken from the directory in which the fopConf resides
+        fopFactoryBuilder = new FopFactoryBuilder(enviro).setConfiguration(cfg);
+        configure(baseURI, enviro.getResourceResolver(), cfg);
     }
 
-    private void configure(final URI defaultBaseURI, final ResourceResolver resourceResolver,
+    private void configure(final URI baseURI, final ResourceResolver resourceResolver,
             Configuration cfg) throws FOPException {
         if (log.isDebugEnabled()) {
             log.debug("Initializing FopFactory Configuration");
@@ -174,7 +193,7 @@ public class FopConfParser {
         if (cfg.getChild("base", false) != null) {
             try {
                 URI confUri = InternalResourceResolver.getBaseURI(cfg.getChild("base").getValue(null));
-                fopFactoryBuilder.setBaseURI(defaultBaseURI.resolve(confUri));
+                fopFactoryBuilder.setBaseURI(baseURI.resolve(confUri));
             } catch (URISyntaxException use) {
                 LogUtil.handleException(log, use, strict);
             }
@@ -242,8 +261,8 @@ public class FopConfParser {
         }
 
         // configure font manager
-        new FontManagerConfigurator(cfg, fopFactoryBuilder.getBaseURI(), resourceResolver).configure(
-                fopFactoryBuilder.getFontManager(), strict);
+        new FontManagerConfigurator(cfg, baseURI, fopFactoryBuilder.getBaseURI(), resourceResolver)
+                .configure(fopFactoryBuilder.getFontManager(), strict);
 
         // configure image loader framework
         configureImageLoading(cfg.getChild("image-loading", false), strict);

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/area/AreaTreeParser.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/area/AreaTreeParser.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/area/AreaTreeParser.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/area/AreaTreeParser.java Thu Jan 30 15:51:03 2014
@@ -62,6 +62,7 @@ import org.apache.fop.apps.FOUserAgent;
 import org.apache.fop.area.Trait.Background;
 import org.apache.fop.area.Trait.InternalLink;
 import org.apache.fop.area.inline.AbstractTextArea;
+import org.apache.fop.area.inline.Container;
 import org.apache.fop.area.inline.ForeignObject;
 import org.apache.fop.area.inline.Image;
 import org.apache.fop.area.inline.InlineArea;
@@ -195,6 +196,7 @@ public class AreaTreeParser {
             makers.put("space", new SpaceMaker());
             makers.put("leader", new LeaderMaker());
             makers.put("viewport", new InlineViewportMaker());
+            makers.put("container", new ContainerMaker());
             makers.put("image", new ImageMaker());
             makers.put("foreignObject", new ForeignObjectMaker());
             makers.put("bookmarkTree", new BookmarkTreeMaker());
@@ -863,6 +865,21 @@ public class AreaTreeParser {
             }
         }
 
+        private class ContainerMaker extends AbstractMaker {
+
+            public void startElement(Attributes attributes) {
+                Container container = new Container();
+                transferForeignObjects(attributes, container);
+                InlineViewport parent = (InlineViewport) areaStack.peek();
+                parent.setContent(container);
+                areaStack.push(container);
+            }
+
+            public void endElement() {
+                assertObjectOfClass(areaStack.pop(), Container.class);
+            }
+        }
+
         private class InlineViewportMaker extends AbstractMaker {
 
             public void startElement(Attributes attributes) {
@@ -1040,7 +1057,7 @@ public class AreaTreeParser {
         }
 
         private static final Object[] SUBSET_COMMON = new Object[] {
-            Trait.PROD_ID};
+            Trait.PROD_ID, Trait.LAYER};
         private static final Object[] SUBSET_LINK = new Object[] {
             Trait.INTERNAL_LINK, Trait.EXTERNAL_LINK};
         private static final Object[] SUBSET_COLOR = new Object[] {

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/area/Footnote.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/area/Footnote.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/area/Footnote.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/area/Footnote.java Thu Jan 30 15:51:03 2014
@@ -83,7 +83,7 @@ public class Footnote extends BlockParen
     @Override
     public void addBlock(Block child) {
         addChildArea(child);
-        this.setBPD(this.getBPD() + child.getBPD());
+        setBPD(getBPD() + child.getAllocBPD());
     }
 
 }

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/area/Trait.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/area/Trait.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/area/Trait.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/area/Trait.java Thu Jan 30 15:51:03 2014
@@ -169,9 +169,11 @@ public final class Trait implements Seri
     /** shift direction trait */
     public static final Integer SHIFT_DIRECTION = 42;
 
+    /** For optional content groups. */
+    public static final Integer LAYER = 43;
 
     /** Maximum value used by trait keys */
-    public static final int MAX_TRAIT_KEY = 42;
+    public static final int MAX_TRAIT_KEY = 43;
 
     private static final TraitInfo[] TRAIT_INFO = new TraitInfo[MAX_TRAIT_KEY + 1];
 
@@ -243,6 +245,7 @@ public final class Trait implements Seri
                 new TraitInfo("block-progression-direction", Direction.class));
         put(SHIFT_DIRECTION,
                 new TraitInfo("shift-direction", Direction.class));
+        put(LAYER, new TraitInfo("layer", String.class));
 
     }
 

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/area/inline/Container.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/area/inline/Container.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/area/inline/Container.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/area/inline/Container.java Thu Jan 30 15:51:03 2014
@@ -51,13 +51,12 @@ public class Container extends Area {
     public Container() {
     }
 
-    /**
-     * Add the block to this area.
-     *
-     * @param block the block area to add
-     */
-    public void addBlock(Block block) {
-        blocks.add(block);
+    @Override
+    public void addChildArea(Area child) {
+        if (!(child instanceof Block)) {
+            throw new IllegalArgumentException("Container only accepts block areas");
+        }
+        blocks.add((Block) child);
     }
 
     /**
@@ -65,7 +64,7 @@ public class Container extends Area {
      *
      * @return the list of block areas
      */
-    public List getBlocks() {
+    public List<Block> getBlocks() {
         return blocks;
     }
 

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/cli/CommandLineOptions.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/cli/CommandLineOptions.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/cli/CommandLineOptions.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/cli/CommandLineOptions.java Thu Jan 30 15:51:03 2014
@@ -58,7 +58,6 @@ import org.apache.fop.render.pdf.PDFEncr
 import org.apache.fop.render.print.PagesMode;
 import org.apache.fop.render.print.PrintRenderer;
 import org.apache.fop.render.xml.XMLRenderer;
-import org.apache.fop.util.CommandLineLogger;
 
 /**
  * Options parses the commandline arguments
@@ -145,16 +144,6 @@ public class CommandLineOptions {
      * Construct a command line option object.
      */
     public CommandLineOptions() {
-        LogFactory logFactory = LogFactory.getFactory();
-
-        // Enable the simple command line logging when no other logger is
-        // defined.
-        if (System.getProperty("org.apache.commons.logging.Log") == null) {
-            logFactory.setAttribute("org.apache.commons.logging.Log",
-                                            CommandLineLogger.class.getName());
-            setLogLevel("info");
-        }
-
         log = LogFactory.getLog("FOP");
     }
 
@@ -184,9 +173,6 @@ public class CommandLineOptions {
                 //Factory config is set up, now we can create the user agent
                 foUserAgent = factory.newFOUserAgent();
                 foUserAgent.getRendererOptions().putAll(renderingOptions);
-                if (targetResolution != 0) {
-                    foUserAgent.setTargetResolution(targetResolution);
-                }
                 addXSLTParameter("fop-output-format", getOutputFormat());
                 addXSLTParameter("fop-version", Version.getVersion());
                 foUserAgent.setConserveMemoryPolicy(conserveMemoryPolicy);
@@ -292,7 +278,7 @@ public class CommandLineOptions {
             } else if (args[i].equals("-s")) {
                 suppressLowLevelAreas = Boolean.TRUE;
             } else if (args[i].equals("-d")) {
-                setLogOption("debug", "debug");
+                // nop. Left there for backwards compatibility
             } else if (args[i].equals("-r")) {
                 strictValidation = false;
             } else if (args[i].equals("-conserve")) {
@@ -304,7 +290,7 @@ public class CommandLineOptions {
             } else if (args[i].equals("-dpi")) {
                 i = i + parseResolution(args, i);
             } else if (args[i].equals("-q") || args[i].equals("--quiet")) {
-                setLogOption("quiet", "error");
+                // nop. Left there for backwards compatibility
             } else if (args[i].equals("-fo")) {
                 i = i + parseFOInputOption(args, i);
             } else if (args[i].equals("-xsl")) {
@@ -904,27 +890,6 @@ public class CommandLineOptions {
         }
     }
 
-    private void setLogOption(String option, String level) {
-        if (log instanceof CommandLineLogger
-            || System.getProperty("org.apache.commons.logging.Log") == null) {
-            setLogLevel(level);
-        } else if (log != null) {
-            log.warn("The option " + option + " can only be used");
-            log.warn("with FOP's command line logger,");
-            log.warn("which is the default on the command line.");
-            log.warn("Configure other loggers using Java system properties.");
-        }
-    }
-
-    private void setLogLevel(String level) {
-        // Set the level for future loggers.
-        LogFactory.getFactory().setAttribute("level", level);
-        if (log instanceof CommandLineLogger) {
-            // Set the level for the logger created already.
-            ((CommandLineLogger) log).setLogLevel(level);
-        }
-    }
-
     private void setInputFormat(int format) throws FOPException {
         if (inputmode == NOT_SET || inputmode == format) {
             inputmode = format;
@@ -1050,7 +1015,8 @@ public class CommandLineOptions {
             fopFactoryBuilder.setComplexScriptFeatures(useComplexScriptFeatures);
         } else {
             try {
-                fopFactoryBuilder = new FopConfParser(userConfigFile).getFopFactoryBuilder();
+                FopConfParser fopConfParser = new FopConfParser(userConfigFile, baseURI);
+                fopFactoryBuilder = fopConfParser.getFopFactoryBuilder();
             } catch (SAXException e) {
                 throw new FOPException(e);
             }
@@ -1208,9 +1174,7 @@ public class CommandLineOptions {
                     + "[-awt|-pdf|-mif|-rtf|-tiff|-png|-pcl|-ps|-txt|-at [mime]|-print] <outfile>\n"
             + " [OPTIONS]  \n"
             + "  -version          print FOP version and exit\n"
-            + "  -d                debug mode   \n"
             + "  -x                dump configuration settings  \n"
-            + "  -q                quiet mode  \n"
             + "  -c cfg.xml        use additional configuration file cfg.xml\n"
             + "  -l lang           the language to use for user information \n"
             + "  -nocs             disable complex script features\n"

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/BidiClass.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/BidiClass.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/BidiClass.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/BidiClass.java Thu Jan 30 15:51:03 2014
@@ -21,7 +21,6 @@ package org.apache.fop.complexscripts.bi
 
 import java.util.Arrays;
 
-// CSOFF: WhitespaceAfterCheck
 // CSOFF: LineLengthCheck
 
 /*

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/BidiResolver.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/BidiResolver.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/BidiResolver.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/BidiResolver.java Thu Jan 30 15:51:03 2014
@@ -32,11 +32,7 @@ import org.apache.fop.area.LineArea;
 import org.apache.fop.area.inline.InlineArea;
 import org.apache.fop.fo.pagination.PageSequence;
 
-// CSOFF: EmptyForIteratorPadCheck
-// CSOFF: InnerAssignmentCheck
 // CSOFF: LineLengthCheck
-// CSOFF: NoWhitespaceAfterCheck
-// CSOFF: SimplifyBooleanReturnCheck
 
 /**
  * <p>A utility class for performing bidirectional resolution processing.</p>
@@ -140,7 +136,7 @@ public final class BidiResolver {
                 runsNew.addAll(ir.split());
             }
         }
-        if (! runsNew.equals(runs)) {
+        if (!runsNew.equals(runs)) {
             runs = runsNew;
         }
         return runs;
@@ -180,7 +176,7 @@ public final class BidiResolver {
                 i = e - 1;
             }
         }
-        if (! runsNew.equals(runs)) {
+        if (!runsNew.equals(runs)) {
             runs = runsNew;
         }
         return runs;
@@ -232,7 +228,7 @@ public final class BidiResolver {
         Vector rv = new Vector();
         for (Iterator it = ranges.iterator(); it.hasNext(); ) {
             DelimitedTextRange r = (DelimitedTextRange) it.next();
-            if (! r.isEmpty()) {
+            if (!r.isEmpty()) {
                 rv.add(r);
             }
         }

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/DelimitedTextRange.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/DelimitedTextRange.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/DelimitedTextRange.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/DelimitedTextRange.java Thu Jan 30 15:51:03 2014
@@ -34,10 +34,7 @@ import org.apache.fop.traits.WritingMode
 import org.apache.fop.traits.WritingModeTraitsGetter;
 import org.apache.fop.util.CharUtilities;
 
-// CSOFF: EmptyForIteratorPadCheck
-// CSOFF: InnerAssignmentCheck
 // CSOFF: LineLengthCheck
-// CSOFF: NoWhitespaceAfterCheck
 
 /**
  * The <code>DelimitedTextRange</code> class implements the "delimited text range" as described
@@ -151,7 +148,7 @@ public class DelimitedTextRange {
             TextInterval ti = (TextInterval) it.next();
             intervalsNew.addAll(assignLevels(ti, levels));
         }
-        if (! intervalsNew.equals(intervals)) {
+        if (!intervalsNew.equals(intervals)) {
             intervals = intervalsNew;
         }
     }

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/InlineRun.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/InlineRun.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/InlineRun.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/InlineRun.java Thu Jan 30 15:51:03 2014
@@ -35,11 +35,6 @@ import org.apache.fop.area.inline.Unreso
 import org.apache.fop.area.inline.WordArea;
 import org.apache.fop.util.CharUtilities;
 
-// CSOFF: EmptyForIteratorPadCheck
-// CSOFF: InnerAssignmentCheck
-// CSOFF: NoWhitespaceAfterCheck
-// CSOFF: SimplifyBooleanReturnCheck
-
 /**
  * The <code>InlineRun</code> class is a utility class, the instances of which are used
  * to capture a sequence of reordering levels associated with an inline area.
@@ -179,7 +174,7 @@ public class InlineRun {
         if (inline instanceof WordArea) {
             WordArea w = (WordArea) inline;
             // if not already reversed, then reverse now
-            if (! w.isReversed()) {
+            if (!w.isReversed()) {
                 if ((reversals & 1) != 0) {
                     w.reverse(mirror);
                 } else if (mirror && maybeNeedsMirroring()) {
@@ -209,10 +204,8 @@ public class InlineRun {
                     }
                     return true;
                 }
-            } else if ((ir.levels == null) && (levels == null)) {
-                return true;
             } else {
-                return false;
+                return (ir.levels == null) && (levels == null);
             }
         } else {
             return false;

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/TextInterval.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/TextInterval.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/TextInterval.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/TextInterval.java Thu Jan 30 15:51:03 2014
@@ -28,7 +28,6 @@ import org.apache.fop.fo.flow.Character;
 import org.apache.fop.fo.flow.Leader;
 
 // CSOFF: LineLengthCheck
-// CSOFF: SimplifyBooleanReturnCheck
 
 /**
  * <p>The <code>TextInterval</code> class is a utility class, the instances of which are used
@@ -102,10 +101,8 @@ class TextInterval {
                 return false;
             } else if (ti.getStart() != start) {
                 return false;
-            } else if (ti.getEnd() != end) {
-                return false;
             } else {
-                return true;
+                return ti.getEnd() == end;
             }
         } else {
             return false;

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/UnflattenProcessor.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/UnflattenProcessor.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/UnflattenProcessor.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/UnflattenProcessor.java Thu Jan 30 15:51:03 2014
@@ -35,10 +35,7 @@ import org.apache.fop.area.inline.SpaceA
 import org.apache.fop.area.inline.TextArea;
 import org.apache.fop.area.inline.UnresolvedPageNumber;
 
-// CSOFF: EmptyForIteratorPadCheck
 // CSOFF: LineLengthCheck
-// CSOFF: NoWhitespaceAfterCheck
-// CSOFF: SimplifyBooleanReturnCheck
 
 /**
  * <p>The <code>UnflattenProcessor</code> class is used to reconstruct (by unflattening) a line
@@ -86,10 +83,8 @@ class UnflattenProcessor {
     private boolean shouldFinishTextContainer(TextArea tc, InlineArea ia) {
         if ((tcOrig != null) && (tc != tcOrig)) {
             return true;
-        } else if ((iaLevelLast != -1) && (ia.getBidiLevel() != iaLevelLast)) {
-            return true;
         } else {
-            return false;
+            return (iaLevelLast != -1) && (ia.getBidiLevel() != iaLevelLast);
         }
     }
     private void finishTextContainer() {
@@ -98,7 +93,7 @@ class UnflattenProcessor {
     private void finishTextContainer(TextArea tc, InlineArea ia) {
         if (tcNew != null) {
             updateIPD(tcNew);
-            if (! icNew.empty()) {
+            if (!icNew.empty()) {
                 icNew.peek().addChildArea(tcNew);
             } else {
                 ilNew.add(tcNew);
@@ -113,12 +108,12 @@ class UnflattenProcessor {
     }
     private boolean shouldFinishInlineContainer(List<InlineParent> ich, TextArea tc, InlineArea ia) {
         if ((ich == null) || ich.isEmpty()) {
-            return ! icOrig.empty();
+            return !icOrig.empty();
         } else {
-            if (! icOrig.empty()) {
+            if (!icOrig.empty()) {
                 InlineParent ic  = ich.get(0);
                 InlineParent ic0 = icOrig.peek();
-                return (ic != ic0) && ! isInlineParentOf(ic, ic0);
+                return (ic != ic0) && !isInlineParentOf(ic, ic0);
             } else {
                 return false;
             }
@@ -128,14 +123,14 @@ class UnflattenProcessor {
         finishInlineContainer(null, null, null);
     }
     private void finishInlineContainer(List<InlineParent> ich, TextArea tc, InlineArea ia) {
-        if ((ich != null) && ! ich.isEmpty()) {     // finish non-matching inner inline container(s)
+        if ((ich != null) && !ich.isEmpty()) {     // finish non-matching inner inline container(s)
             for (Iterator<InlineParent> it = ich.iterator(); it.hasNext(); ) {
                 InlineParent ic  = it.next();
                 InlineParent ic0 = icOrig.empty() ? null : icOrig.peek();
                 if (ic0 == null) {
                     assert icNew.empty();
                 } else if (ic != ic0) {
-                    assert ! icNew.empty();
+                    assert !icNew.empty();
                     InlineParent icO0 = icOrig.pop();
                     InlineParent icN0 = icNew.pop();
                     assert icO0 != null;
@@ -145,7 +140,7 @@ class UnflattenProcessor {
                     } else {
                         icNew.peek().addChildArea(icN0);
                     }
-                    if (! icOrig.empty() && (icOrig.peek() == ic)) {
+                    if (!icOrig.empty() && (icOrig.peek() == ic)) {
                         break;
                     }
                 } else {
@@ -153,7 +148,7 @@ class UnflattenProcessor {
                 }
             }
         } else {                                        // finish all inline containers
-            while (! icNew.empty()) {
+            while (!icNew.empty()) {
                 InlineParent icO0 = icOrig.pop();
                 InlineParent icN0 = icNew.pop();
                 assert icO0 != null;
@@ -176,8 +171,8 @@ class UnflattenProcessor {
         finishInlineContainer();
     }
     private void update(List<InlineParent> ich, TextArea tc, InlineArea ia) {
-        if (! alreadyUnflattened(ia)) {
-            if ((ich != null) && ! ich.isEmpty()) {
+        if (!alreadyUnflattened(ia)) {
+            if ((ich != null) && !ich.isEmpty()) {
                 pushInlineContainers(ich);
             }
             if (tc != null) {
@@ -345,7 +340,7 @@ class UnflattenProcessor {
         Area a = ia.getParentArea();
         while (a != null) {
             if (a instanceof InlineArea) {
-                if ((a instanceof InlineParent) && ! (a instanceof TextArea)) {
+                if ((a instanceof InlineParent) && !(a instanceof TextArea)) {
                     ich.add((InlineParent) a);
                 }
                 a = ((InlineArea) a) .getParentArea();

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/UnicodeBidiAlgorithm.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/UnicodeBidiAlgorithm.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/UnicodeBidiAlgorithm.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/bidi/UnicodeBidiAlgorithm.java Thu Jan 30 15:51:03 2014
@@ -25,12 +25,7 @@ import org.apache.commons.logging.LogFac
 import org.apache.fop.traits.Direction;
 import org.apache.fop.util.CharUtilities;
 
-// CSOFF: AvoidNestedBlocksCheck
-// CSOFF: EmptyForIteratorPadCheck
-// CSOFF: InnerAssignmentCheck
 // CSOFF: LineLengthCheck
-// CSOFF: NoWhitespaceAfterCheck
-// CSOFF: ParameterNumberCheck
 
 /**
  * <p>The <code>UnicodeBidiAlgorithm</code> class implements functionality prescribed by
@@ -125,47 +120,39 @@ public final class UnicodeBidiAlgorithm 
             case RLE:                               // start right-to-left embedding
             case LRO:                               // start left-to-right override
             case RLO:                               // start right-to-left override
-                {
-                    int en;                         /* new embedding level */
-                    if ((bc == RLE) || (bc == RLO)) {
-                        en = ((ec & ~OVERRIDE) + 1) | 1;
-                    } else {
-                        en = ((ec & ~OVERRIDE) + 2) & ~1;
-                    }
-                    if (en < (MAX_LEVELS + 1)) {
-                        es [ ei++ ] = ec;
-                        if ((bc == LRO) || (bc == RLO)) {
-                            ec = en | OVERRIDE;
-                        } else {
-                            ec = en & ~OVERRIDE;
-                        }
+                int en;                         /* new embedding level */
+                if ((bc == RLE) || (bc == RLO)) {
+                    en = ((ec & ~OVERRIDE) + 1) | 1;
+                } else {
+                    en = ((ec & ~OVERRIDE) + 2) & ~1;
+                }
+                if (en < (MAX_LEVELS + 1)) {
+                    es [ ei++ ] = ec;
+                    if ((bc == LRO) || (bc == RLO)) {
+                        ec = en | OVERRIDE;
                     } else {
-                        // max levels exceeded, so don't change level or override
+                        ec = en & ~OVERRIDE;
                     }
-                    el = ec;
-                    break;
+                } else {
+                    // max levels exceeded, so don't change level or override
                 }
+                el = ec;
+                break;
             case PDF:                               // pop directional formatting
-                {
-                    el = ec;
-                    if (ei > 0) {
-                        ec = es [ --ei ];
-                    } else {
-                        // ignore isolated PDF
-                    }
-                    break;
+                el = ec;
+                if (ei > 0) {
+                    ec = es [ --ei ];
+                } else {
+                    // ignore isolated PDF
                 }
+                break;
             case B:                                 // paragraph separator
-                {
-                    el = ec = defaultLevel;
-                    ei = 0;
-                    break;
-                }
+                el = ec = defaultLevel;
+                ei = 0;
+                break;
             default:
-                {
-                    el = ec;
-                    break;
-                }
+                el = ec;
+                break;
             }
             switch (bc) {
             case BN:
@@ -608,7 +595,7 @@ public final class UnicodeBidiAlgorithm 
 
     private static boolean isRetainedFormatting(int[] ca, int s, int e) {
         for (int i = s; i < e; i++) {
-            if (! isRetainedFormatting(ca[i])) {
+            if (!isRetainedFormatting(ca[i])) {
                 return false;
             }
         }
@@ -680,7 +667,7 @@ public final class UnicodeBidiAlgorithm 
             } else {
                 chOut = chIn;
             }
-            if (! triggered && triggersBidi(chOut)) {
+            if (!triggered && triggersBidi(chOut)) {
                 triggered = true;
             }
             if ((chOut & 0xFF0000) == 0) {

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphClassTable.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphClassTable.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphClassTable.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphClassTable.java Thu Jan 30 15:51:03 2014
@@ -23,7 +23,6 @@ import java.util.Iterator;
 import java.util.List;
 
 // CSOFF: LineLengthCheck
-// CSOFF: NoWhitespaceAfterCheck
 
 /**
  * <p>Base class implementation of glyph class table.</p>
@@ -100,7 +99,7 @@ public final class GlyphClassTable exten
         } else {
             for (Iterator it = entries.iterator(); it.hasNext();) {
                 Object o = it.next();
-                if (! (o instanceof Integer)) {
+                if (!(o instanceof Integer)) {
                     return false;
                 }
             }
@@ -114,7 +113,7 @@ public final class GlyphClassTable exten
         } else {
             for (Iterator it = entries.iterator(); it.hasNext();) {
                 Object o = it.next();
-                if (! (o instanceof MappingRange)) {
+                if (!(o instanceof MappingRange)) {
                     return false;
                 }
             }
@@ -128,7 +127,7 @@ public final class GlyphClassTable exten
         } else {
             for (Iterator it = entries.iterator(); it.hasNext();) {
                 Object o = it.next();
-                if (! (o instanceof GlyphCoverageTable)) {
+                if (!(o instanceof GlyphCoverageTable)) {
                     return false;
                 }
             }
@@ -197,7 +196,7 @@ public final class GlyphClassTable exten
             if (it.hasNext()) {
                 Object o = it.next();
                 if (o instanceof Integer) {
-                    firstGlyph = ((Integer) o) . intValue();
+                    firstGlyph = ((Integer) o) .intValue();
                 } else {
                     throw new AdvancedTypographicTableFormatException("illegal entry, first entry must be Integer denoting first glyph value, but is: " + o);
                 }
@@ -210,7 +209,7 @@ public final class GlyphClassTable exten
             while (it.hasNext()) {
                 Object o = it.next();
                 if (o instanceof Integer) {
-                    int gc = ((Integer) o) . intValue();
+                    int gc = ((Integer) o) .intValue();
                     gca [ i++ ] = gc;
                     if (gc > gcMax) {
                         gcMax = gc;

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphCoverageTable.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphCoverageTable.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphCoverageTable.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphCoverageTable.java Thu Jan 30 15:51:03 2014
@@ -27,8 +27,6 @@ import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
 // CSOFF: LineLengthCheck
-// CSOFF: InnerAssignmentCheck
-// CSOFF: NoWhitespaceAfterCheck
 
 /**
  * <p>.Base class implementation of glyph coverage table.</p>
@@ -103,7 +101,7 @@ public final class GlyphCoverageTable ex
         } else {
             for (Iterator it = entries.iterator(); it.hasNext();) {
                 Object o = it.next();
-                if (! (o instanceof Integer)) {
+                if (!(o instanceof Integer)) {
                     return false;
                 }
             }
@@ -117,7 +115,7 @@ public final class GlyphCoverageTable ex
         } else {
             for (Iterator it = entries.iterator(); it.hasNext();) {
                 Object o = it.next();
-                if (! (o instanceof MappingRange)) {
+                if (!(o instanceof MappingRange)) {
                     return false;
                 }
             }
@@ -183,7 +181,7 @@ public final class GlyphCoverageTable ex
             for (Iterator it = entries.iterator(); it.hasNext();) {
                 Object o = it.next();
                 if (o instanceof Integer) {
-                    int gid = ((Integer) o) . intValue();
+                    int gid = ((Integer) o) .intValue();
                     if ((gid >= 0) && (gid < 65536)) {
                         if (gid > gidMax) {
                             map [ i++ ] = gidMax = gid;

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphDefinitionSubtable.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphDefinitionSubtable.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphDefinitionSubtable.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphDefinitionSubtable.java Thu Jan 30 15:51:03 2014
@@ -20,7 +20,6 @@
 package org.apache.fop.complexscripts.fonts;
 
 // CSOFF: LineLengthCheck
-// CSOFF: InnerAssignmentCheck
 
 /**
  * <p>The <code>GlyphDefinitionSubtable</code> implements an abstract base of a glyph definition subtable,

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphDefinitionTable.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphDefinitionTable.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphDefinitionTable.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphDefinitionTable.java Thu Jan 30 15:51:03 2014
@@ -29,7 +29,6 @@ import org.apache.commons.logging.LogFac
 import org.apache.fop.complexscripts.scripts.ScriptProcessor;
 import org.apache.fop.complexscripts.util.GlyphSequence;
 
-// CSOFF: InnerAssignmentCheck
 // CSOFF: LineLengthCheck
 
 /**

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphMappingTable.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphMappingTable.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphMappingTable.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphMappingTable.java Thu Jan 30 15:51:03 2014
@@ -23,8 +23,6 @@ import java.util.Arrays;
 import java.util.Iterator;
 import java.util.List;
 
-// CSOFF: NoWhitespaceAfterCheck
-// CSOFF: InnerAssignmentCheck
 // CSOFF: LineLengthCheck
 
 /**
@@ -162,7 +160,7 @@ public class GlyphMappingTable {
             int mi;
             if ((i = Arrays.binarySearch(sa, gid)) >= 0) {
                 mi = getMappedIndex(gid, sa [ i ], ma [ i ]);                // matches start of (some) range
-            } else if ((i = - (i + 1)) == 0) {
+            } else if ((i = -(i + 1)) == 0) {
                 mi = -1;                                                        // precedes first range
             } else if (gid > ea [ --i ]) {
                 mi = -1;                                                        // follows preceding (or last) range

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningState.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningState.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningState.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningState.java Thu Jan 30 15:51:03 2014
@@ -23,7 +23,6 @@ import org.apache.fop.complexscripts.uti
 import org.apache.fop.complexscripts.util.ScriptContextTester;
 
 // CSOFF: LineLengthCheck
-// CSOFF: ParameterNumberCheck
 
 /**
  * <p>The <code>GlyphPositioningState</code> implements an state object used during glyph positioning

Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningSubtable.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningSubtable.java?rev=1562866&r1=1562865&r2=1562866&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningSubtable.java (original)
+++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningSubtable.java Thu Jan 30 15:51:03 2014
@@ -23,8 +23,6 @@ import org.apache.fop.complexscripts.uti
 import org.apache.fop.complexscripts.util.ScriptContextTester;
 
 // CSOFF: LineLengthCheck
-// CSOFF: NoWhitespaceAfterCheck
-// CSOFF: ParameterNumberCheck
 
 /**
  * <p>The <code>GlyphPositioningSubtable</code> implements an abstract base of a glyph subtable,
@@ -90,8 +88,8 @@ public abstract class GlyphPositioningSu
         boolean appliedOneShot = false;
         while (ps.hasNext()) {
             boolean applied = false;
-            if (! appliedOneShot && ps.maybeApplicable()) {
-                for (int i = 0, n = sta.length; ! applied && (i < n); i++) {
+            if (!appliedOneShot && ps.maybeApplicable()) {
+                for (int i = 0, n = sta.length; !applied && (i < n); i++) {
                     if (sequenceIndex < 0) {
                         applied = ps.apply(sta [ i ]);
                     } else if (ps.getPosition() == (sequenceStart + sequenceIndex)) {
@@ -102,7 +100,7 @@ public abstract class GlyphPositioningSu
                     }
                 }
             }
-            if (! applied || ! ps.didConsume()) {
+            if (!applied || !ps.didConsume()) {
                 ps.applyDefault();
             }
             ps.next();



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