commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject svn commit: r1545589 - in /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats: jpeg/JpegImageParser.java tiff/TiffField.java
Date Tue, 26 Nov 2013 09:51:23 GMT
Author: ebourg
Date: Tue Nov 26 09:51:23 2013
New Revision: 1545589

URL: http://svn.apache.org/r1545589
Log:
Removed unused fields

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/JpegImageParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffField.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/JpegImageParser.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/JpegImageParser.java?rev=1545589&r1=1545588&r2=1545589&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/JpegImageParser.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/JpegImageParser.java
Tue Nov 26 09:51:23 2013
@@ -61,7 +61,6 @@ import org.apache.commons.imaging.util.D
 public class JpegImageParser extends ImageParser {
     private static final String DEFAULT_EXTENSION = ".jpg";
     private static final String ACCEPTED_EXTENSIONS[] = { ".jpg", ".jpeg", };
-    public static final boolean PERMISSIVE = true;
     
     public JpegImageParser() {
         setByteOrder(ByteOrder.BIG_ENDIAN);
@@ -212,9 +211,6 @@ public class JpegImageParser extends Ima
 
         final int markerCount = segments.get(0).num_markers;
 
-        // if (permissive && (markerCount == 0))
-        // markerCount = v.size();
-
         if (segments.size() != markerCount) {
             throw new ImageReadException("App2 Segments Missing.  Found: "
                     + segments.size() + ", Expected: " + markerCount + ".");

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffField.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffField.java?rev=1545589&r1=1545588&r2=1545589&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffField.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffField.java
Tue Nov 26 09:51:23 2013
@@ -51,9 +51,7 @@ public class TiffField {
     private final byte[] value;
     private final ByteOrder byteOrder;
     private final int sortHint;
-    public static final String ATTRIBUTE_TAG = "Tag";
-    private static final Map<Object, List<TagInfo>> ALL_TAG_MAP = makeTagMap(
-            AllTagConstants.ALL_TAGS);
+    private static final Map<Object, List<TagInfo>> ALL_TAG_MAP = makeTagMap(AllTagConstants.ALL_TAGS);
 
     public TiffField(final int tag, final int directoryType, final FieldType fieldType,
             final long count, final long offset, final byte[] value,



Mime
View raw message