commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r995622 - in /commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats: ico/IcoBaseTest.java ico/IcoReadTest.java ico/IcoRoundtripTest.java jpeg/JpegWithJpegThumbnailTest.java jpeg/exif/AsciiFieldTest.java
Date Fri, 10 Sep 2010 00:47:23 GMT
Author: sebb
Date: Fri Sep 10 00:47:22 2010
New Revision: 995622

URL: http://svn.apache.org/viewvc?rev=995622&view=rev
Log:
Remove unthrown Exceptions

Modified:
    commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/ico/IcoBaseTest.java
    commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/ico/IcoReadTest.java
    commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/ico/IcoRoundtripTest.java
    commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/jpeg/JpegWithJpegThumbnailTest.java
    commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/jpeg/exif/AsciiFieldTest.java

Modified: commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/ico/IcoBaseTest.java
URL: http://svn.apache.org/viewvc/commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/ico/IcoBaseTest.java?rev=995622&r1=995621&r2=995622&view=diff
==============================================================================
--- commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/ico/IcoBaseTest.java
(original)
+++ commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/ico/IcoBaseTest.java
Fri Sep 10 00:47:22 2010
@@ -21,16 +21,13 @@ import java.io.File;
 import java.io.IOException;
 import java.util.List;
 
-import org.apache.sanselan.ImageFormat;
 import org.apache.sanselan.ImageReadException;
-import org.apache.sanselan.Sanselan;
 import org.apache.sanselan.SanselanTest;
 
 public abstract class IcoBaseTest extends SanselanTest
 {
 
-	private static boolean isIco(File file) throws IOException,
-			ImageReadException
+	private static boolean isIco(File file)
 	{
 		return file.getName().toLowerCase().endsWith(".ico") ||
 			file.getName().toLowerCase().endsWith(".cur");

Modified: commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/ico/IcoReadTest.java
URL: http://svn.apache.org/viewvc/commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/ico/IcoReadTest.java?rev=995622&r1=995621&r2=995622&view=diff
==============================================================================
--- commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/ico/IcoReadTest.java
(original)
+++ commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/ico/IcoReadTest.java
Fri Sep 10 00:47:22 2010
@@ -26,7 +26,6 @@ import java.util.Map;
 
 import org.apache.sanselan.ImageInfo;
 import org.apache.sanselan.ImageReadException;
-import org.apache.sanselan.ImageWriteException;
 import org.apache.sanselan.Sanselan;
 import org.apache.sanselan.common.IImageMetadata;
 import org.apache.sanselan.util.Debug;
@@ -34,8 +33,7 @@ import org.apache.sanselan.util.Debug;
 public class IcoReadTest extends IcoBaseTest
 {
 
-	public void test() throws IOException, ImageReadException,
-			ImageWriteException
+	public void test() throws IOException, ImageReadException
 	{
 		Debug.debug("start");
 

Modified: commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/ico/IcoRoundtripTest.java
URL: http://svn.apache.org/viewvc/commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/ico/IcoRoundtripTest.java?rev=995622&r1=995621&r2=995622&view=diff
==============================================================================
--- commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/ico/IcoRoundtripTest.java
(original)
+++ commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/ico/IcoRoundtripTest.java
Fri Sep 10 00:47:22 2010
@@ -24,10 +24,7 @@ import java.io.IOException;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
-import java.util.Random;
-import java.util.Set;
 
-import org.apache.sanselan.ImageFormat;
 import org.apache.sanselan.ImageReadException;
 import org.apache.sanselan.ImageWriteException;
 import org.apache.sanselan.Sanselan;
@@ -440,7 +437,7 @@ public class IcoRoundtripTest extends Ic
 		}
 	}
 
-	public void testZeroColorPlanes() throws IOException, ImageWriteException, ImageReadException
+	public void testZeroColorPlanes() throws IOException, ImageWriteException
 	{
 		final int foreground = 0xFFF000E0;
 		final int background = 0xFF102030;
@@ -549,7 +546,7 @@ public class IcoRoundtripTest extends Ic
 
 	private void writeAndReadImageData(String description, byte[] rawData,
 			int foreground, int background) throws IOException,
-			ImageReadException, ImageWriteException
+			ImageReadException
 	{
 		// Uncomment to generate ICO files that can be tested with Windows:
 		//File exportFile = new File("/tmp/" + description + ".ico");

Modified: commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/jpeg/JpegWithJpegThumbnailTest.java
URL: http://svn.apache.org/viewvc/commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/jpeg/JpegWithJpegThumbnailTest.java?rev=995622&r1=995621&r2=995622&view=diff
==============================================================================
--- commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/jpeg/JpegWithJpegThumbnailTest.java
(original)
+++ commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/jpeg/JpegWithJpegThumbnailTest.java
Fri Sep 10 00:47:22 2010
@@ -24,15 +24,13 @@ import java.util.HashMap;
 import java.util.Map;
 
 import org.apache.sanselan.ImageReadException;
-import org.apache.sanselan.ImageWriteException;
 import org.apache.sanselan.Sanselan;
 import org.apache.sanselan.SanselanTest;
 import org.apache.sanselan.common.IImageMetadata;
 
 public class JpegWithJpegThumbnailTest extends SanselanTest {
 
-	public void testSingleImage() throws IOException, ImageReadException,
-			ImageWriteException {
+	public void testSingleImage() throws IOException, ImageReadException {
 		File imageFile = getTestImageByName("img_F028c_small.jpg");
 
 		Map params = new HashMap();

Modified: commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/jpeg/exif/AsciiFieldTest.java
URL: http://svn.apache.org/viewvc/commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/jpeg/exif/AsciiFieldTest.java?rev=995622&r1=995621&r2=995622&view=diff
==============================================================================
--- commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/jpeg/exif/AsciiFieldTest.java
(original)
+++ commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/formats/jpeg/exif/AsciiFieldTest.java
Fri Sep 10 00:47:22 2010
@@ -26,7 +26,6 @@ import java.util.List;
 import java.util.Map;
 
 import org.apache.sanselan.ImageReadException;
-import org.apache.sanselan.ImageWriteException;
 import org.apache.sanselan.Sanselan;
 import org.apache.sanselan.common.IImageMetadata;
 import org.apache.sanselan.formats.jpeg.JpegImageMetadata;
@@ -36,8 +35,7 @@ import org.apache.sanselan.formats.tiff.
 
 public class AsciiFieldTest extends ExifBaseTest implements AllTagConstants {
 
-	public void testSingleImage() throws IOException, ImageReadException,
-			ImageWriteException {
+	public void testSingleImage() throws IOException, ImageReadException {
 		File imageFile = getTestImageByName("Canon Powershot SD750 - 2007.12.26.n.IMG_3704.JPG");
 
 		Map params = new HashMap();



Mime
View raw message