pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1652588 - /pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/type/TypeMapping.java
Date Sat, 17 Jan 2015 12:17:45 GMT
Author: tilman
Date: Sat Jan 17 12:17:45 2015
New Revision: 1652588

URL: http://svn.apache.org/r1652588
Log:
PDFBOX-2576: constant in caps

Modified:
    pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/type/TypeMapping.java

Modified: pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/type/TypeMapping.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/type/TypeMapping.java?rev=1652588&r1=1652587&r2=1652588&view=diff
==============================================================================
--- pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/type/TypeMapping.java (original)
+++ pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/type/TypeMapping.java Sat Jan 17 12:17:45
2015
@@ -72,7 +72,7 @@ public final class TypeMapping
         initialize();
     }
 
-    private static final Class<?>[] simplePropertyConstParams = new Class<?>[]
{ XMPMetadata.class, String.class,
+    private static final Class<?>[] SIMPLEPROPERTYCONSTPARAMS = new Class<?>[]
{ XMPMetadata.class, String.class,
             String.class, String.class, Object.class };
 
     private void initialize()
@@ -180,7 +180,7 @@ public final class TypeMapping
         {
             Class<? extends AbstractSimpleProperty> clz = type.getImplementingClass().asSubclass(
                     AbstractSimpleProperty.class);
-            Constructor<? extends AbstractSimpleProperty> cons = clz.getConstructor(simplePropertyConstParams);
+            Constructor<? extends AbstractSimpleProperty> cons = clz.getConstructor(SIMPLEPROPERTYCONSTPARAMS);
             return cons.newInstance(params);
         }
         catch (NoSuchMethodError e)



Mime
View raw message