src/share/classes/javax/imageio/IIOParam.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 2001, 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 --- 1,7 ---- /* ! * 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,445 **** throw new IllegalArgumentException("Duplicate band value!"); } } } ! this.sourceBands = (int[])(sourceBands.clone()); } } /** * Returns the set of of source bands to be used. The returned --- 435,445 ---- throw new IllegalArgumentException("Duplicate band value!"); } } } ! this.sourceBands = (sourceBands.clone()); } } /** * Returns the set of of source bands to be used. The returned
*** 458,468 **** */ public int[] getSourceBands() { if (sourceBands == null) { return null; } ! return (int[])(sourceBands.clone()); } /** * Sets the desired image type for the destination image, using an * <code>ImageTypeSpecifier</code>. --- 458,468 ---- */ public int[] getSourceBands() { if (sourceBands == null) { return null; } ! return (sourceBands.clone()); } /** * Sets the desired image type for the destination image, using an * <code>ImageTypeSpecifier</code>.