src/share/classes/org/jcp/xml/dsig/internal/dom/DOMPGPData.java

Print this page

        

*** 83,93 **** throw new ClassCastException ("other["+i+"] is not a valid PGPData type"); } } } ! this.keyPacket = (byte[])keyPacket.clone(); checkKeyPacket(keyPacket); this.keyId = null; } /** --- 83,93 ---- throw new ClassCastException ("other["+i+"] is not a valid PGPData type"); } } } ! this.keyPacket = keyPacket.clone(); checkKeyPacket(keyPacket); this.keyId = null; } /**
*** 130,142 **** throw new ClassCastException ("other["+i+"] is not a valid PGPData type"); } } } ! this.keyId = (byte[])keyId.clone(); this.keyPacket = keyPacket == null ? null ! : (byte[])keyPacket.clone(); if (keyPacket != null) { checkKeyPacket(keyPacket); } } --- 130,142 ---- throw new ClassCastException ("other["+i+"] is not a valid PGPData type"); } } } ! this.keyId = keyId.clone(); this.keyPacket = keyPacket == null ? null ! : keyPacket.clone(); if (keyPacket != null) { checkKeyPacket(keyPacket); } }
*** 175,189 **** this.keyPacket = keyPacket; this.externalElements = Collections.unmodifiableList(other); } public byte[] getKeyId() { ! return (keyId == null ? null : (byte[])keyId.clone()); } public byte[] getKeyPacket() { ! return (keyPacket == null ? null : (byte[])keyPacket.clone()); } public List getExternalElements() { return externalElements; } --- 175,189 ---- this.keyPacket = keyPacket; this.externalElements = Collections.unmodifiableList(other); } public byte[] getKeyId() { ! return (keyId == null ? null : keyId.clone()); } public byte[] getKeyPacket() { ! return (keyPacket == null ? null : keyPacket.clone()); } public List getExternalElements() { return externalElements; }