src/share/classes/javax/imageio/metadata/IIOMetadata.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 2005, 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
*** 189,202 **** if (extraMetadataFormatClassNames.length != extraMetadataFormatNames.length) { throw new IllegalArgumentException ("extraMetadataFormatClassNames.length != extraMetadataFormatNames.length!"); } ! this.extraMetadataFormatNames = ! (String[]) extraMetadataFormatNames.clone(); ! this.extraMetadataFormatClassNames = ! (String[]) extraMetadataFormatClassNames.clone(); } else { if (extraMetadataFormatClassNames != null) { throw new IllegalArgumentException ("extraMetadataFormatNames == null && extraMetadataFormatClassNames != null!"); } --- 189,200 ---- if (extraMetadataFormatClassNames.length != extraMetadataFormatNames.length) { throw new IllegalArgumentException ("extraMetadataFormatClassNames.length != extraMetadataFormatNames.length!"); } ! this.extraMetadataFormatNames = extraMetadataFormatNames.clone(); ! this.extraMetadataFormatClassNames = extraMetadataFormatClassNames.clone(); } else { if (extraMetadataFormatClassNames != null) { throw new IllegalArgumentException ("extraMetadataFormatNames == null && extraMetadataFormatClassNames != null!"); }
*** 283,293 **** */ public String[] getExtraMetadataFormatNames() { if (extraMetadataFormatNames == null) { return null; } ! return (String[])extraMetadataFormatNames.clone(); } /** * Returns an array of <code>String</code>s containing the names * of all metadata formats, including the native and standard --- 281,291 ---- */ public String[] getExtraMetadataFormatNames() { if (extraMetadataFormatNames == null) { return null; } ! return extraMetadataFormatNames.clone(); } /** * Returns an array of <code>String</code>s containing the names * of all metadata formats, including the native and standard