Hi,

> On Wed, 2005-08-17 at 16:29 +0200, Roman Kennke wrote:
> > I commit this on behalf of Ingo.
> > 
> > 2005-08-17  Roman Kennke  <[EMAIL PROTECTED]>
> > 
> >         Reported by Ingo Proetel  <[EMAIL PROTECTED]>
> >         * java/awt/image/DirectColorModel.java
> >         (createCompatibleWritableRaster): Added argument check.
> 
> When possible please also add documentation about any additional
> exceptions a method can throw.

Ok, done.

2005-08-19  Roman Kennke  <[EMAIL PROTECTED]>

        * java/awt/image/DirectColorModel.java
        (createCompatibleWritableRaster): Added API documentation.

/Roman

Index: java/awt/image/DirectColorModel.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/image/DirectColorModel.java,v
retrieving revision 1.15
diff -u -r1.15 DirectColorModel.java
--- java/awt/image/DirectColorModel.java	17 Aug 2005 14:27:51 -0000	1.15
+++ java/awt/image/DirectColorModel.java	19 Aug 2005 08:43:39 -0000
@@ -348,7 +348,17 @@
   {
     return getComponents(getPixelFromArray(pixel), components, offset);
   }
-  
+
+  /**
+   * Creates a <code>WriteableRaster</code> that has a <code>SampleModel</code>
+   * that is compatible with this <code>ColorModel</code>.
+   *
+   * @param w the width of the writeable raster to create
+   * @param h the height of the writeable raster to create
+   *
+   * @throws IllegalArgumentException if <code>w</code> or <code>h</code>
+   *         is less than or equal to zero
+   */
   public final WritableRaster createCompatibleWritableRaster(int w, int h)
   {
     // Sun also makes this check here.
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to