pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1655798 - in /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation: PDAnnotation.java PDAppearanceCharacteristicsDictionary.java
Date Thu, 29 Jan 2015 18:52:14 GMT
Author: tilman
Date: Thu Jan 29 18:52:13 2015
New Revision: 1655798

URL: http://svn.apache.org/r1655798
Log:
PDFBOX-2576: reformat

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotation.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceCharacteristicsDictionary.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotation.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotation.java?rev=1655798&r1=1655797&r2=1655798&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotation.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotation.java
Thu Jan 29 18:52:13 2015
@@ -657,10 +657,17 @@ public abstract class PDAnnotation imple
             PDColorSpace colorSpace = null;
             switch (((COSArray) c).size())
             {
-                case 1: colorSpace = PDDeviceGray.INSTANCE; break;
-                case 3: colorSpace = PDDeviceRGB.INSTANCE; break;
-                case 4: colorSpace = PDDeviceCMYK.INSTANCE; break;
-                default: break;
+                case 1:
+                    colorSpace = PDDeviceGray.INSTANCE;
+                    break;
+                case 3:
+                    colorSpace = PDDeviceRGB.INSTANCE;
+                    break;
+                case 4:
+                    colorSpace = PDDeviceCMYK.INSTANCE;
+                    break;
+                default:
+                    break;
             }
             return new PDColor((COSArray) c, colorSpace);
         }

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceCharacteristicsDictionary.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceCharacteristicsDictionary.java?rev=1655798&r1=1655797&r2=1655798&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceCharacteristicsDictionary.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceCharacteristicsDictionary.java
Thu Jan 29 18:52:13 2015
@@ -243,10 +243,17 @@ public class PDAppearanceCharacteristics
             PDColorSpace colorSpace = null;
             switch (((COSArray) c).size())
             {
-                case 1: colorSpace = PDDeviceGray.INSTANCE; break;
-                case 3: colorSpace = PDDeviceRGB.INSTANCE; break;
-                case 4: colorSpace = PDDeviceCMYK.INSTANCE; break;
-                default: break;
+                case 1:
+                    colorSpace = PDDeviceGray.INSTANCE;
+                    break;
+                case 3:
+                    colorSpace = PDDeviceRGB.INSTANCE;
+                    break;
+                case 4:
+                    colorSpace = PDDeviceCMYK.INSTANCE;
+                    break;
+                default:
+                    break;
             }
             return new PDColor((COSArray) c, colorSpace);
         }



Mime
View raw message