From ed81ddb402bf099f19d21504b0dd2c1deeb55049 Mon Sep 17 00:00:00 2001 From: Dave Hoover Date: Mon, 17 Aug 2009 21:45:35 +0000 Subject: [PATCH] I'd varargified this a while back w/o getting around to committing it. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@848 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/java/com/threerings/media/image/ImageUtil.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/java/com/threerings/media/image/ImageUtil.java b/src/java/com/threerings/media/image/ImageUtil.java index 96dcfdd2..52848635 100644 --- a/src/java/com/threerings/media/image/ImageUtil.java +++ b/src/java/com/threerings/media/image/ImageUtil.java @@ -42,6 +42,8 @@ import java.awt.image.IndexColorModel; import java.awt.image.Raster; import java.awt.image.WritableRaster; +import com.samskivert.util.Logger; + import com.samskivert.swing.Label; /** @@ -120,14 +122,12 @@ public class ImageUtil /** * Recolors the supplied image using the supplied colorizations. */ - public static BufferedImage recolorImage ( - BufferedImage image, Colorization[] zations) + public static BufferedImage recolorImage (BufferedImage image, Colorization[] zations) { ColorModel cm = image.getColorModel(); if (!(cm instanceof IndexColorModel)) { - String errmsg = "Unable to recolor images with non-index color " + - "model [cm=" + cm.getClass() + "]"; - throw new RuntimeException(errmsg); + throw new RuntimeException(Logger.format( + "Unable to recolor images with non-index color model", "cm", cm.getClass())); } // now process the image