/[classpath]/classpath/java/awt/image/Kernel.java
ViewVC logotype

Diff of /classpath/java/awt/image/Kernel.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mark, Thu Jul 22 19:45:38 2004 UTC revision 1.1.2.1 by gnu_andrew, Thu Jan 13 22:40:38 2005 UTC
# Line 117  public class Kernel implements Cloneable Line 117  public class Kernel implements Cloneable
117      throws IllegalArgumentException      throws IllegalArgumentException
118    {    {
119      if (data == null)      if (data == null)
120          return (float[])this.data.clone();        return (float[])this.data.clone();
121    
122      if (data.length < this.data.length)      if (data.length < this.data.length)
123        throw new IllegalArgumentException();        throw new IllegalArgumentException();
# Line 131  public class Kernel implements Cloneable Line 131  public class Kernel implements Cloneable
131     */     */
132    public Object clone()    public Object clone()
133    {    {
134      return new Kernel(width, height, data);      try
135          {
136            return super.clone();
137          }
138        catch (CloneNotSupportedException e)
139          {
140            throw (Error) new InternalError().initCause(e); // Impossible
141          }
142    }    }
143  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26