commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1649358 - in /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette: MedianCut.java MedianCutLongestAxisImplementation.java MedianCutMostPopulatedBoxesImplementation.java
Date Sun, 04 Jan 2015 16:54:31 GMT
Author: britter
Date: Sun Jan  4 16:54:31 2015
New Revision: 1649358

URL: http://svn.apache.org/r1649358
Log:
MedianCut really is an interface (not an abstract class)

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCut.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutLongestAxisImplementation.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutMostPopulatedBoxesImplementation.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCut.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCut.java?rev=1649358&r1=1649357&r2=1649358&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCut.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCut.java
Sun Jan  4 16:54:31 2015
@@ -20,7 +20,7 @@ import java.util.List;
 
 import org.apache.commons.imaging.ImageWriteException;
 
-public abstract class MedianCut {
-    public abstract boolean performNextMedianCut(final List<ColorGroup> colorGroups,
final boolean ignoreAlpha)
+public interface MedianCut {
+    boolean performNextMedianCut(final List<ColorGroup> colorGroups, final boolean
ignoreAlpha)
             throws ImageWriteException;
 }

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutLongestAxisImplementation.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutLongestAxisImplementation.java?rev=1649358&r1=1649357&r2=1649358&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutLongestAxisImplementation.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutLongestAxisImplementation.java
Sun Jan  4 16:54:31 2015
@@ -23,7 +23,7 @@ import java.util.List;
 
 import org.apache.commons.imaging.ImageWriteException;
 
-public class MedianCutLongestAxisImplementation extends MedianCut {
+public class MedianCutLongestAxisImplementation implements MedianCut {
     private static final Comparator<ColorGroup> COMPARATOR = new Comparator<ColorGroup>()
{
         public int compare(final ColorGroup cg1, final ColorGroup cg2) {
             if (cg1.maxDiff == cg2.maxDiff) {
@@ -33,7 +33,6 @@ public class MedianCutLongestAxisImpleme
         }
     };
 
-    @Override
     public boolean performNextMedianCut(final List<ColorGroup> colorGroups, final boolean
ignoreAlpha)
             throws ImageWriteException {
         Collections.sort(colorGroups, COMPARATOR);

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutMostPopulatedBoxesImplementation.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutMostPopulatedBoxesImplementation.java?rev=1649358&r1=1649357&r2=1649358&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutMostPopulatedBoxesImplementation.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutMostPopulatedBoxesImplementation.java
Sun Jan  4 16:54:31 2015
@@ -24,8 +24,8 @@ import java.util.List;
 
 import org.apache.commons.imaging.ImageWriteException;
 
-public class MedianCutMostPopulatedBoxesImplementation extends MedianCut {
-    @Override
+public class MedianCutMostPopulatedBoxesImplementation implements MedianCut {
+
     public boolean performNextMedianCut(final List<ColorGroup> colorGroups,
             final boolean ignoreAlpha) throws ImageWriteException {
         int maxPoints = 0;



Mime
View raw message