src/share/classes/javax/imageio/IIOParam.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2000, 2001, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -435,11 +435,11 @@
throw new IllegalArgumentException("Duplicate band value!");
}
}
}
- this.sourceBands = (int[])(sourceBands.clone());
+ this.sourceBands = (sourceBands.clone());
}
}
/**
* Returns the set of of source bands to be used. The returned
@@ -458,11 +458,11 @@
*/
public int[] getSourceBands() {
if (sourceBands == null) {
return null;
}
- return (int[])(sourceBands.clone());
+ return (sourceBands.clone());
}
/**
* Sets the desired image type for the destination image, using an
* <code>ImageTypeSpecifier</code>.