summaryrefslogtreecommitdiff
path: root/gnu/javax
Commit message (Collapse)AuthorAgeFilesLines
* Revert undocumented changes accidentally included with last commit.Andrew John Hughes2016-02-1612-161/+67
|
* Mention PR66376.Andrew John Hughes2015-06-1912-67/+161
| | | | | | 2015-06-19 Andrew John Hughes <gnu_andrew@member.fsf.org> * NEWS: Mention PR66376.
* Cleanup the majority of the warnings in the gnu.java.security, ↵Andrew John Hughes2015-03-119-55/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | java.security, javax.security and gnu.javax.security classes. 2015-03-11 Andrew John Hughes <gnu_andrew@member.fsf.org> * configure.ac: (ECJ_WARNINGS): Turn off parameter assignment, autoboxing and overridding without a super method call warnings for now. * gnu/java/security/OID.java: (OID(int[],boolean)): Remove unnecessary cast on clone() call. (getIDs()): Likewise. (getDER()): Likewise. (clone()): Add @Override. (toString()): Add @Override. Remove unncessary else clause. (hashCode()): Add @Override. (equals(Object)): Likewise. (compareTo(OID)): Likewise. * gnu/java/security/PolicyFile.java: (getPermissions(CodeSource)): Add @Override. (refresh()): Likewise and on anonymous inner class run() method. (toString()): Add @Override. (parse(URL)): Throw exception if p is null, and suppress associated warning, as exception is thrown via error method. Add default empty case to switch method. Call error method with the exception, not the result of its toString() method. Remove unneeded else block. (expand(String)): Avoid shadowing the prop variable. (error(URL,StreamTokenizer,Throwable)): Add new variant that allows the cause to be included. * gnu/java/security/Properties.java: (init()): Avoid unnecessary casts. (handleBooleanProperty(String)): Make static. * gnu/java/security/action/GetPropertyAction.java: (run()): Add @Override. * gnu/java/security/action/GetSecurityPropertyAction.java: (run()): Add @Override. * gnu/java/security/ber/BERReader.java: (read()): Add @Override. Remove unnecessary else clause. * gnu/java/security/ber/BERValue.java: (getLength()): Add @Override. * gnu/java/security/der/BitString.java: (toByteArray()): Remove unnecessary cast on clone() call. (getShiftedByteArray()): Likewise. (toBooleanArray()): Likewise. (clone(): Add @Override. (hashCode()): Likewise. (equals(Object)): Likewise. (toString()): Likewise. * gnu/java/security/der/DERReader.java: (makeTime(int,byte[])): Make static. Mark fall-through cases in switch statement. Add default case which throws an exception. * gnu/java/security/der/DERValue.java: (DERValue(int,int,Object,byte[])): Remove unnecessary cast on clone() call. (getValueAs(int)): Avoid shadowing of encoded variable. (getEncoded()): Remove unnecessary cast on clone() call. (toString()): Add @Override. * gnu/java/security/hash/BaseHash.java: (name()): Add @Override. (hashSize()): Likewise. (blockSize()): Likewise. (update(byte)): Likewise. (update(byte[])): Likewise. (update(byte[],int,int)): Likewise. (digest()): Likewise. (reset()): Likewise. (clone()): Likewise. (selfTest()): Likewise. * gnu/java/security/hash/Haval.java: (Haval(Haval)): Remove unnecessary cast on clone() call. (clone()): Add @Override. (transform(byte[],int)): Likewise. (padBuffer()): Likewise. (getResult()): Likewise. (resetContext()): Likewise. (selfTest()): Likewise. (tailorDigestBits()): Add empty default case to switch statement. (FF5(int,int,int,int,int,int,int,int,int,int)): Make static. (f1(int,int,int,int,int,int,int)): Likewise. (f2(int,int,int,int,int,int,int)): Likewise. (f3(int,int,int,int,int,int,int)): Likewise. (f4(int,int,int,int,int,int,int)): Likewise. (f5(int,int,int,int,int,int,int)): Likewise. * gnu/java/security/hash/MD2.java: (MD2(MD2)): Remove unnecessary casts on clone() call. (clone()): Add @Override. (getResult()): Likewise. (resetContext()): Likewise. (selfTest())): Likewise. (padBuffer()): Likewise. (transform(byte[],int)): LIkewise. * gnu/java/security/hash/MD4.java: (MD4(MD4)): Remove unncessary casts on clone() call. (clone()): Add @Override. (getResult()): Likewise. (resetContext()): Likewise. (selfTest())): Likewise. Avoid shadowing d variable. (padBuffer()): Likewise. (transform(byte[],int)): LIkewise. * gnu/java/security/hash/MD5.java: (MD5(MD5)): Remove unnecessary casts on clone() call. (clone()): Add @Override. (transform(byte[],int)): LIkewise. (padBuffer()): Likewise. (getResult()): Likewise. (resetContext()): Likewise. (selfTest())): Likewise. * gnu/java/security/hash/RipeMD128.java: (RipeMD128(RipeMD128)): Remove unnecessary casts on clone() call. (clone()): Add @Override. (transform(byte[],int)): LIkewise. (padBuffer()): Likewise. (getResult()): Likewise. (resetContext()): Likewise. (selfTest())): Likewise. * gnu/java/security/hash/RipeMD160.java: (RipeMD160(RipeMD160)): Remove unnecessary casts on clone() call. (clone()): Add @Override. (transform(byte[],int)): LIkewise. (padBuffer()): Likewise. (getResult()): Likewise. (resetContext()): Likewise. (selfTest())): Likewise. * gnu/java/security/hash/Sha160.java: (Sha160(Sha160)): Remove unnecessary casts on clone() call. (clone()): Add @Override. (transform(byte[],int)): LIkewise. (padBuffer()): Likewise. (getResult()): Likewise. (resetContext()): Likewise. (selfTest())): Likewise. * gnu/java/security/hash/Sha256.java: (Sha256(Sha256)): Remove unnecessary casts on clone() call. (clone()): Add @Override. (transform(byte[],int)): LIkewise. (padBuffer()): Likewise. (getResult()): Likewise. (resetContext()): Likewise. (selfTest())): Likewise. * gnu/java/security/hash/Sha384.java: (Sha384(Sha384)): Remove unnecessary casts on clone() call. (clone()): Add @Override. (transform(byte[],int)): LIkewise. (padBuffer()): Likewise. (getResult()): Likewise. (resetContext()): Likewise. (selfTest())): Likewise. * gnu/java/security/hash/Sha512.java: (Sha512(Sha512)): Remove unnecessary casts on clone() call. (clone()): Add @Override. (transform(byte[],int)): LIkewise. (padBuffer()): Likewise. (getResult()): Likewise. (resetContext()): Likewise. (selfTest())): Likewise. * gnu/java/security/hash/Tiger.java: (Tiger(Tiger)): Remove unnecessary casts on clone() call. (clone()): Add @Override. (selfTest())): Likewise. (padBuffer()): Likewise. (getResult()): Likewise. (resetContext()): Likewise. (transform(byte[],int)): LIkewise. * gnu/java/security/hash/Whirlpool.java, (Whirlpool(Whirlpool)): Remove unnecessary casts on clone() call. (clone()): Add @Override. (transform(byte[],int)): LIkewise. (padBuffer()): Likewise. (getResult()): Likewise. (resetContext()): Likewise. (selfTest())): Likewise. * gnu/java/security/jce/hash/MessageDigestAdapter.java: (clone()): Add @Override. (engineGetDigestLength()): Likewise. (engineUpdate(byte)): Likewise. (engineUpdate(byte[],int,int)): Likewise. (engineDigest()): Likewise. (engineDigest(byte[],int,int)): Likewise. (engineReset()): Likewise. * gnu/java/security/jce/sig/DSSKeyPairGeneratorSpi.java: (initialize(int,SecureRandom)): Add @Override. (initialize(AlgorithmParameterSpec,SecureRandom)): Likewise. * gnu/java/security/jce/sig/DSSParametersGenerator.java: (engineInit(int,SecureRandom)): Add @Override. (engineInit(AlgorithmParameterSpec,SecureRandom)): Likewise. (engineGenerateParameters()): Likewise. * gnu/java/security/jce/sig/EncodedKeyFactory.java: (decodeDSSPublicKey(DSAPublicKeySpec)): Make static. (decodeRSAPublicKey(RSAPublicKeySpec)): Likewise. (decodeDHPublicKey(DHPublicKeySpec)): Likewise. (decodeDHPublicKey(byte[]]): Likewise. (decodeDSSPrivateKey(DSAPrivateKeySpec)): Likewise. (decodeRSAPrivateKey(RSAPrivateCrtKeySpec)): Likewise. (decodeDHPrivateKey(DHPrivateKeySpec)): Likewise. (decodeDHPrivateKey(byte[])): Likewise. * gnu/java/security/jce/sig/KeyPairGeneratorAdapter.java: (initialize(int,SecureRandom)): Add Override. (initialize(AlgorithmParameterSpec,SecureRandom)): Likewise. (generateKeyPair()): Likewise. (localiseName(String)): Uncomment conversion. * gnu/java/security/jce/sig/RSAKeyPairGeneratorSpi.java: (initialize(int,SecureRandom)): Add Override. (initialize(AlgorithmParameterSpec,SecureRandom)): Likewise. * gnu/java/security/jce/sig/SignatureAdapter.java: Drop unneeded import of BaseSignature. (clone()): Add @Override. (engineInitVerify(PublicKey)): Reference VERIFIER_KEY via interface ISignature where it is defined. (engineInitSign(PrivateKey)): Likewise for SIGNER_KEY. (engineInitSign(PrivateKey,SecureRandom)): Likewise for SIGNER_KEY and SOURCE_OF_RANDOMNESS. * gnu/java/security/key/KeyPairCodecFactory.java: (getInstance(String,int)): Add default case which returns null. (getInstance(Key)): Likewise and fix typo in documentation. * gnu/java/security/key/dss/DSSKey.java: (getParams()): Add @Override. (getAlgorithm()): Likewise. (getEncoded()): Likewise. (getFormat()): LIkewise. (equals(Object)): Likewise. (hashCode()): Add implementation using java.util.Objects.hash (toString()): Remove unneeded cast. * gnu/java/security/key/dss/DSSKeyPairGenerator.java: (setup(MAp)): Remove unnecessary else clause. (generate()): Remove left-over debug statement. * gnu/java/security/key/dss/DSSKeyPairRawCodec.java: (getFormatID()): Add @Override. (encodePublicKey(PublicKey)): Likewise. (decodePublicKey(byte[])): Likewise. (encodePrivateKey(PrivateKey)): Likewise. (decodePrivateKey(byte[])): Likewise. * gnu/java/security/key/dss/DSSKeyPairX509Codec.java: (getFormatID()): Add @Override. (encodePublicKey(PublicKey)): Likewise. (encodePrivateKey(PrivateKey)): Likewise. (decodePublicKey(byte[])): Likewise. (decodePrivateKey(byte[])): Likewise. * gnu/java/security/key/dss/DSSPrivateKey.java: Drop unneeded reference to PrivateKey. (getX()): Add @Override. (getEncoded(int)): Likewise. (equals(Object)): Likewise. (hashCode()): Implemented. (toString()): Add @Override and remove unneeded cast. * gnu/java/security/key/dss/DSSPublicKey.java: Drop unneeded reference to PublicKey. (getY()): Add @Override. (getEncoded(int)): Likewise. (equals(Object)): Likewise. (hashCode()): Implemented. (toString()): Add @Override and remove unneeded cast. * gnu/java/security/key/rsa/GnuRSAKey.java: (getModulus()): Add @Override. (getAlgorithm()): Likewise. (getEncoded()): Likewise. (getFormat()): Likewise. (equals(Object)): Likewise. (hashCode()): Implemented using java.util.Objects.hash (toString()): Add @Override and remove unneeded cast. * gnu/java/security/key/rsa/GnuRSAPrivateKey.java: Drop unneeded reference to PrivateKey. (getPrimeP()): Add @Override. (getPrimeQ()): Likewise. (getPrimeExponentP()): Likewise. (getPrimeExponentQ()): Likewise. (getCrtCoefficient()): Likewise. (getPrivateExponent()): Likewise. (getEncoded(int)): Likewise. (equals(Object)): Likewise. (hashCode()): Implemented using java.util.Objects.hash. (toString()): Add @Override and remove unneeded cast. * gnu/java/security/key/rsa/GnuRSAPublicKey.java: Drop unneeded reference to PublicKey. (getEncoded()): Add @Override. (equals(Object)): Likewise. (hashCode()): Implemented. (toString()): Add @Override and remove unneeded cast. * gnu/java/security/key/rsa/RSAKeyPairPKCS8Codec.java: (getFormatID()): Add @Override. (encodePublicKey(PublicKey)): Likewise. (encodePrivateKey(PrivateKey)): Likewise. (decodePublicKey(byte[])): Likewise. (decodePrivateKey(byte[])): Likewise. * gnu/java/security/key/rsa/RSAKeyPairRawCodec.java: (getFormatID()): Add @Override. (encodePublicKey(PublicKey)): Likewise. (decodePublicKey(byte[])): Likewise. (encodePrivateKey(PrivateKey)): Likewise. (decodePrivateKey(byte[])): Likewise. * gnu/java/security/pkcs/PKCS7SignedData.java: (PKCS7SignedData(BERReader)): Refer to constants by the interface where they are defined. Rename crls to avoid shadowing the class variable. * gnu/java/security/pkcs/SignerInfo.java: (SignerInfo(BERReader)): Refer to constants by the interface where they are defined. * gnu/java/security/prng/BasePRNG.java: (addRandomBytes(byte[])): Add @Override. (addRandomBytes(byte[],int,int)): Likewise. Rename buffer to buf to avoid shadowing. (clone()): Remove unnecessary cast and this references. * gnu/java/security/prng/MDGenerator.java: Remove unneeded reference to Cloneable. * gnu/java/security/prng/RandomEvent.java: (RandomEvent(Object,byte,byte,byte[])): Remove unnecessary cast. * gnu/java/security/provider/DefaultPolicy.java: (getPermissions(CodeSource)): Add @Override. (refresh()): Likewise. * gnu/java/security/provider/Gnu.java: (Gnu()): Add @Override to run implementation in anonymous inner class. * gnu/java/security/provider/PKIXCertPathValidatorImpl.java: (engineValidate(CertPath,CertPathParameters)): Add @Override. Remove unneeded cast and else clause. (checkExplicitPolicy(int,List)): Make static. * gnu/java/security/provider/X509CertificateFactory.java: (generateCert(InputStream)): Make static. Remove unnecessary else clause. (generateCRL(InputStream)): Likewise. * gnu/java/security/sig/SignatureCodecFactory.java: (getInstance(String,int)): Add default case to switch statement. * gnu/java/security/sig/dss/DSSSignature.java: (encodeSignature(BigInteger,BigInteger)): Make static. (decodeSignature(Object)): Likewise. * gnu/java/security/sig/dss/DSSSignatureRawCodec.java: (getFormatID()): Add @Override. (encodeSignature(Object)): Likewise. (decodeSignature(byte[])): Likewise. * gnu/java/security/sig/dss/DSSSignatureX509Codec.java: (getFormatID()): Add @Override. (encodeSignature(Object)): Likewise. (decodeSignature(byte[])): Likewise. * gnu/java/security/sig/rsa/EMSA_PKCS1_V1_5.java: (clone()): Add @Override. * gnu/java/security/sig/rsa/EMSA_PSS.java: (clone()): Add @Override. * gnu/java/security/sig/rsa/RSA.java: (RSADP(RSAPrivateKey, BigInteger)): Suppress null warning as r is always non-null if rsaBlinding is true. * gnu/java/security/sig/rsa/RSAPKCS1V1_5Signature.java: (clone()): Add @Override. (setupForVerification(PublicKey)): Likewise. (setupForSigning(PrivateKey)): Likewise. (generateSignature()): Likewise. (verifySignature(Object)): Likewise. * gnu/java/security/sig/rsa/RSAPKCS1V1_5SignatureRawCodec.java: (getFormatID()): Add @Override. (encodeSignature(Object)): Likewise. (decodeSignature(byte[])): Likewise. * gnu/java/security/sig/rsa/RSAPKCS1V1_5SignatureX509Codec.java: (getFormatID()): Add @Override. (encodeSignature(Object)): Likewise. (decodeSignature(byte[])): Likewise. * gnu/java/security/sig/rsa/RSAPSSSignature.java: (clone()): Add @Override. (setupForVerification(PublicKey)): Likewise. Remove unnecessary cast. (setupForSigning(PrivateKey)): Likewise. (generateSignature()): Add @Override. (verifySignature(Object)): Likewise. * gnu/java/security/sig/rsa/RSAPSSSignatureRawCodec.java: (getFormatID()): Add @Override. (encodeSignature(Object)): Likewise. (decodeSignature(byte[])): Likewise. * gnu/java/security/util/ByteArray.java: (toString()): Add @Override. * gnu/java/security/util/ByteBufferOutputStream.java: (toString()): Add @Override. * gnu/java/security/util/ExpirableObject.java: (destroy()): Add @Override. (Destroyer.run()): Likewise. * gnu/java/security/util/FormatUtil.java: (getEncodingName(int)): Add default case for switch statement. (getEncodingShortName(int)): Likewise. * gnu/java/security/util/Sequence.java: (size()): Add @Override. (toArray()): Likewise. Remove unnecessary cast. * gnu/java/security/util/SimpleList.java: (size()): Add @Override. (get(int)): Likewise. (toString()): Likewise. * gnu/java/security/util/Util.java: (toBase64(byte[])): Add default case to switch statement which does nothing. Remove unnecessary else clause. * gnu/java/security/x509/PolicyNodeImpl.java: (addExpectedPolicy(String)): Rename variable to expectedPolicy to avoid shadowing policy variable. (addAllPolicyQualifiers(Collection)): Rename variable to policyQualifiers to avoid shadowing qualifiers variable. Rewrite collection check to catch ClassCastException as, if it.next() returns normally, it will always be an instance of PolicyQualifierInfo. (toString()): Add @Override. * gnu/java/security/x509/X500DistinguishedName.java: (X500DistinguishedName(String)): Throw IOException rather than catching it as calling methods in X509CRLSelector implementations, addIssuerName(String), expect an IOException to be thrown if there is a parsing error. (getName()): Add @Override. (hashCode()): Likewise. (equals(Object)): Likewise. (toString()): Likewise. (getDer()): Remove unnecessary casts. (readAttributeType(Reader)): Make static. * gnu/java/security/x509/X509CRL.java: (equals(Object)): Add @Override. (hashCode()): Likewise. (getEncoded()): Remove unnecessary cast. (getIssuerX500Principal()): Add @Override. (getTBSCertList()): Remove unnecessary cast. (getSignature()): Likewise. (getSigAlgParams()): Likewise. (hasUnsupportedCriticalExtension()): Add @Override. (getCriticialExtensionOIDs()): Likewise. (getNonCriticalExtensionOIDs()): Likewise. (getExtensionValue(String)): Likewise. (isRevoked(Certificate)): Likewise. Remove unnecessary cast. (parse(InputStream)): Remove unnecessary cast. * gnu/java/security/x509/X509CRLEntry.java: (getEncoded()): Remove unncessary cast. (hasUnsupportedCriticalExtension()): Add @Override. (getCriticialExtensionOIDs()): Likewise. (getNonCriticalExtensionOIDs()): Likewise. (getExtensionValue(String)): Likewise. * gnu/java/security/x509/X509CRLSelectorImpl.java: (addIssuerName(String)): Throw IOException as specified. * gnu/java/security/x509/X509CertPath.java: (getCertificates()): Add @Override. (getEncoded()): Likewise. Remove unnecessary casts. (getEncodings()): Add @Override. (parse(InputStream, String)): Rename path to parsedPath to avoid shadowing. * gnu/java/security/x509/X509CertSelectorImpl.java: (addIssuerName(String)): Throw IOException as specified. * gnu/java/security/x509/X509Certificate.java: Remove unneeded Serializable reference. (checkValidity()): Add @Override. (checkValidity(Date)): Likewise. (getVersion()): Likewise. (getSerialNumber()): Likewise. (getIssuerDN()): Likewise. (getIssuerX500Principal()): Likewise. (getSubjectDN()): Likewise. (getSubjectX500Principal()): Likewise. (getNotBefore()): Likewise. (getNotAfter()): Likewise. (getTBSCertificate()): Likewise. Remove unnecessary cast. (getSignature()): Likewise. (getSigAlgName()): Add @Override. (getSigAlgOID()): Likewise. (getSigAlgParams()): Likewise. Remove unnecessary cast. (getIssuerUniqueID()): Add @Override. (getSubjectUniqueID()): Likewise. (getKeyUsage()): Likewise. (getExtendedKeyUsage()): Likewise. (getBasicConstraints()): Likewise. (getSubjectAlternativeNames()): Likewise. Make conversion from int to Integer explicit. (getIssuerAlternativeNames()): Likewise. (hasUnsupportedCriticalExtension()): Add @Override. (getCriticialExtensionOIDs()): Likewise. (getNonCriticalExtensionOIDs()): Likewise. (getExtensionValue(String)): Likewise. (getEncoded()): Likewise. Remove unnecessary cast. (verify(PublicKey)): Add @Override. (verify(PublicKey, String)): Likewise. (toString()): Likewise. (getPublicKey()): Likewise. (parse(InputStream)): Rename encoded to enc to avoid shadowing. Avoid unnecessary cast. * gnu/java/security/x509/ext/AuthorityKeyIdentifier.java: (toString()): Add @Override. * gnu/java/security/x509/ext/BasicConstraints.java: (getEncoded()): Add @Override. Remove unncessary casts. (toString()): Add @Override. * gnu/java/security/x509/ext/CRLNumber.java: (getEncoded()): Add @Override. Remove unncessary casts. (toString()): Add @Override. * gnu/java/security/x509/ext/CertificatePolicies.java: (CertificatePolicies(List,Map)): Swap empty for-loop for a while loop. (getEncoded()): Add @Override. Remove unnecessary cast. (toString()): Add @Override. * gnu/java/security/x509/ext/ExtendedKeyUsage.java: (toString()): Add @Override. * gnu/java/security/x509/ext/Extension.java: (Extension(byte[])): Remove unnecessary cast. (getEncoded()): Likewise. (toString()): Add @Override. (Value.Value(byte[])): Remove unnecessary cast. (Value.getEncoded()): Likewise. (hashCode()): Add @Override. (equals(Object)): Likewise. (toString()): Likewise. * gnu/java/security/x509/ext/GeneralName.java: (Kind.forTag(int)): Add default case. (Kind): Remove unnecessary ; on closing brace. (GeneralName(Kind,byte[])): Remove unnecessary cast. (name()): Likewise. (encoded()): Check for null rather than catching exception. Remove unnecessary cast. (equals(Object)): Add @Override. Avoid unnecessary method call. (hashCode()): Implemented using java.util.Objects.hash. (toString()): Add @Override. * gnu/java/security/x509/ext/GeneralNames.java: (toString()): Add @Override. * gnu/java/security/x509/ext/GeneralSubtree.java: (toString()): Add @Override. * gnu/java/security/x509/ext/IssuerAlternativeNames.java: (toString()): Add @Override. * gnu/java/security/x509/ext/KeyUsage.java: (toString()): Add @Override. * gnu/java/security/x509/ext/NameConstraints.java: (toString()): Add @Override. * gnu/java/security/x509/ext/PolicyConstraint.java: (toString()): Add @Override. * gnu/java/security/x509/ext/PolicyMappings.java: (toString()): Add @Override. * gnu/java/security/x509/ext/PrivateKeyUsagePeriod.java: (toString()): Add @Override. * gnu/java/security/x509/ext/ReasonCode.java: (toString()): Add @Override. * gnu/java/security/x509/ext/SubjectAlternativeNames.java: (toString()): Add @Override. * gnu/java/security/x509/ext/SubjectKeyIdentifier.java: (getKeyIdentifier()): Remove unnecessary cast. (toString()): Add @Override. * gnu/javax/security/auth/Password.java: (doDestroy): Add @Override. Remove unneeded else block. (isDestroyed): Add @Override. * gnu/javax/security/auth/callback/AWTCallbackHandler.java: (handleChoice(ChoiceCallback)): Add @Override. (handleConfirmation(ConfirmationCallback)): Likewise. (handleLanguage(LanguageCallback)): Likewise. (handleName(NameCallback)): Likewise. (handlePassword(PasswordCallback)): Likewise. (handleTextInput(TextInputCallback)): Likewise. (handleTextOutput(TextOutputCallback)): Likewise. (actionPerformed(ActionEvent)): Likewise. (windowClosing(WindowEvent)): Likewise. (windowOpened(WindowEvent)): Likewise. (windowClosed(WindowEvent)): Likewise. (windowIconified(WindowEvent)): Likewise. (windowDeiconified(WindowEvent)): Likewise. (windowActivated(WindowEvent)): Likewise. (windowDeactivated(WindowEvent)): Likewise. * gnu/javax/security/auth/callback/AbstractCallbackHandler.java: (AbstractCallbackHandler(String)): Reference getBundle by class where it is implemented (ResourceBundle). (handle(Callback[])): Add @Override. (handleChoice(ChoiceCallback)): Allow and document an UnsupportedCallbackException being thrown. (handleConfirmation(ConfirmationCallback)): Likewise. (handleLanguage(LanguageCallback)): Likewise. (handleName(NameCallback)): Likewise. (handlePassword(PasswordCallback)): Likewise. (handleTextInput(TextInputCallback)): Likewise. (handleTextOutput(TextOutputCallback)): Likewise. (handleOther(Callback)): Suppress warnings resulting from unused variables, unthrown exceptions and lack of IOException being thrown. They are necessary for subclasses. * gnu/javax/security/auth/callback/ConsoleCallbackHandler.java: (handleChoice(ChoiceCallback)): Add @Override. Drop unnecessary cast. (handleConfirmation(ConfirmationCallback)): Add @Override. (handleLanguage(LanguageCallback)): Likewise. (handleName(NameCallback)): Likewise. (handlePassword(PasswordCallback)): Likewise. (handleTextInput(TextInputCallback)): Likewise. (handleTextOutput(TextOutputCallback)): Likewise. * gnu/javax/security/auth/callback/DefaultCallbackHandler.java: (handleChoice(ChoiceCallback)): Add @Override. (handleConfirmation(ConfirmationCallback)): Likewise. (handleLanguage(LanguageCallback)): Likewise. (handleName(NameCallback)): Likewise. (handlePassword(PasswordCallback)): Likewise. (handleTextInput(TextInputCallback)): Likewise. (handleTextOutput(TextOutputCallback)): Likewise. * gnu/javax/security/auth/callback/GnuCallbacks.java: (GnuCallbacks()): Add @Override to run() implementation in anonymous inner class. * gnu/javax/security/auth/callback/SwingCallbackHandler.java: (handleChoice(ChoiceCallback)): Add @Override to method and methods of anonymous inner classes. Refer to constants using interface where they appear. (handleConfirmation(ConfirmationCallback)): Add @Override to method and methods of anonymous inner class. Declare UnsupportedCallbackException as thrown and add default cases and fall-through markers to switch statements. (handleLanguage(LanguageCallback)): Add @Override. Remove unused variable defaultIndex. (handleName(NameCallback)): Add @Override to method and method of anonymous inner class. (handlePassword(PasswordCallback)): Likewise. (handleTextInput(TextInputCallback)): Likewise. Refer to constants using interface where they appear. (handleTextOutput(TextOutputCallback)): Likewise. Declare UnsupportedCallbackException as thrown and add default case to switch statement. (waitForInput(JDialog, Callback)): Make static. * gnu/javax/security/auth/login/ConfigFileParser.java: (initParser(Reader)): Don't declare IOException as thrown as one is never thrown. (expandParamValue(String)): Make static. * gnu/javax/security/auth/login/GnuConfiguration.java: (getAppConfigurationEntry(String)): Add @Override. (refresh()): Likewise. (getInputStreamFromURL(String)): Make static. (parseConfig(InputStream)): Remove unneeded variable. (getUserName()): Make static. (getConfigFromUserName(File,String)): Likewise. * java/security/AccessControlContext.java: (equals(Object)): Add @Override. (hashCode()): Likewise. * java/security/AlgorithmParameters.java: (toString()): Add @Override. * java/security/AllPermission.java: (AllPermission(String,String)): Suppress warning about actions variable being unused. (implies(Permission)): Add @Override. (equals(Object)): Likewise. (hashCode()): Likewise. (getActions()): Likewise. (newPermissionCollection()): Likewise. (AllPermissionCollection()): Add public constructor to avoid generating a synthetic accessor method. * java/security/BasicPermission.java: Remove unneeded Serializable reference. (BasicPermission(String,String)): Suppress warnings about actions variable being unused. (getActions()): Add @Override. (newPermissionCollection()): Likewise. * java/security/Certificate.java: Mark with @Deprecated. Fix typo in documentation. * java/security/DigestInputStream.java: (read()): Add @Override. (read(byte[],int,int)): Likewise. (toString()): Likewise. * java/security/DigestOutputStream.java: (write(int)): Add @Override. (write(byte[],int,int)): Likewise. (toString()): Likewise. * java/security/DummyKeyPairGenerator.java: (clone()): Add @Override. (initialize(int,SecureRandom)): Likewise. (initialize(AlgorithmParameterSpec,SecureRandom)): Likewise. (generateKeyPair()): Likewise. * java/security/DummyMessageDigest.java: (clone()): Add @Override. (engineDigest()): Likewise. (engineDigest(byte[],int,int)): Likewise. (engineGetDigestLength()): Likewise. (engineReset()): Likewise. (engineUpdate(byte)): Likewise. (engineUpdate(byte[],int,int)): Likewise. * java/security/Identity.java: Mark as @Deprecated. Fix typo in documentation. (getName()): Add @Override. (equals(Object)): Likewise. (toString()): Likewise. (toString(boolean)): Remove unnecessary else clause. (hashCode()): Add @Override. * java/security/IdentityScope.java: Mark as @Deprecated. (toString()): Add @Override. * java/security/IntersectingDomainCombiner.java: (combine(ProtectionDomain[],ProtectionDomain[])): Add @Override. * java/security/KeyPairGenerator.java: (generateKeyPair()): Add @Override. * java/security/KeyPairGeneratorSpi.java: (initialize(AlgorithmParameterSpec,SecureRandom)): Suppress warning about making this method static. Intended to be overridden by subclasses. (clone()): Add @Override. * java/security/KeyStore.java: (getInstance(String,Provider)): Fix typo in documentation. (getDefaultType()): Add @Override to run() in anonymous inner class. * java/security/MessageDigest.java: (toString()): Add @Override. (clone()): Likewise. * java/security/MessageDigestSpi.java: (engineGetDigestLength()): Suppress warning about making this method static. Intended to be overridden by subclasses. (clone()): Add @Override. * java/security/Permission.java: (checkGuard(Object)): Add @Override. (equals(Object)): Likewise. (hashCode()): Likewise. (newPermissionCollection()): Likewise. (toString()): Likewise. * java/security/PermissionCollection.java: (toString()): Add @Override. * java/security/Permissions.java: Remove unneeded Serializable reference. (elements()): Add @Override to hasMoreElements and nextElement methods in anonymous inner class. (PermissionsHash.PermissionsHash()): Add explicit constructor to avoid a synthetic accessor method. (add(Permission)): Mark synchronized. (implies(Permission)): Likewise. * java/security/Policy.java: (implies(ProtectionDomain,Permission)): Remove unnecessary cast. * java/security/Principal.java: (equals(Object)): Add @Override. (toString()): Likewise. (hashCode()): Likewise. * java/security/PrivilegedActionException.java: (getCause()): Add @Override. (toString()): Removed; pointless as it just calls superclass version. * java/security/ProtectionDomain.java: (ProtectionDomain(CodeSource,PermissionCollection, ClassLoader,Principal[],boolean)): Remove unnecessary cast. (getPrincipals()): Add @Override. (toString()): Likewise. * java/security/Provider.java: Remove unneeded Serializable reference. (put(Object,Object)): Add @Override. Suppress warnings about overridding a synchronized method as all collection modifications are made in synchronized superclass method. (get(Object)): Likewise. (remove(Object)): Likewise. (clear()): Likewise. (toString()): Add @Override. Suppress warning about overridding a synchronized method as the collection isn't used. (toCanonicalKey(Object)): Make static. * java/security/SecureClassLoader.java: (getPermissions(CodeSource)): Suppress warning about making this method static; may potentially be overridden by subclasses. Avoid unnecessary variable policy. * java/security/SecureRandom.java: (setSeed(byte[])): Make synchronized to prevent concurrent access to secureRandomSpi. (setSeed(long)): Add @Override and make synchronized. (nextBytes(byte[])): Likewise. (next(int)): Likewise. (generateSeed(byte[])): Make synchronized. * java/security/Security.java: (getAlgorithmProperty(String,String)): Add @Deprecated. (getProvider(String)): Remove unnecessary else clause. (getAlgorithm(String)): Use provs instead of providers to avoid shadowing class variable. (provides(Provider,String,String,String,String)): Set serviceDotAlgorithm to the empty string to avoid null pointer issues. * java/security/SecurityPermission.java: (SecurityPermission(String,String)): Suppress warning due to nothing being done with actions. * java/security/Signature.java: (sign()): Remove unnecessary else clause. (sign(byte[],int,int)): Likewise. (verify(byte[])): Likewise. (toString()): Mark @Override. (setParameter(String,Object)): Add @Deprecated. (getParameter(String)): Likewise. (clone()): Add @Override. * java/security/SignatureSpi.java: (engineSetParameter(String,Object)): Add @Deprecated. (engineSetParameter(AlgorithmParameterSpec)): Suppress warnings about unused variables, unthrown exceptions and ability to be a static method. Subclasses override this. (engineGetParameters()): Suppress warnings about making this method static. (engineGetParameter(String)): Add @Deprecated. * java/security/SignedObject.java: (getSignature()): Remove unnecessary cast. (readObject(ObjectInputStream)): Likewise x 2. * java/security/Signer.java: Mark as @Deprecated. (toString()): Add @Override. * java/security/UnresolvedPermission.java: (getUnresolvedCerts()): Remove unnecessaary cast. (UnresolvedPermissionCollection.elements()): Add @Override to hasMoreElements and nextElement. * java/security/acl/Acl.java: (toString()): Add @Override. * java/security/acl/AclEntry.java: (setPrincipal(Principal)): Fix formatting of documentation. (addPermission(Permission)): Likewise. (removePermission(Permission)): Likewise. (checkPermission(Permission)): Likewise. (toString()): Add @Override. * java/security/acl/Permission.java: (equals(Object)): Add @Override. (toString()): Likewise. * java/security/cert/CRL.java: (toString()): Add @Override. * java/security/cert/CertPath.java: (equals(Object)): Add @Override. (hashCode()): Likewise. (toString()): Likewise. * java/security/cert/CertPathBuilderException.java: (CertPathBuilderException(Throwable)): Just call superclass constructor. (CertPathBuilderException(String,Throwable)): Likewise. (getMessage()): Removed; provided by superclass. (getCause()): Likewise. (toString()): Likewise. (printStackTrace()): Likewise. (printStackTrace(PrintStream)): Likewise. (printStackTrace(PrintWriter)): Likewise. * java/security/cert/CertPathValidatorException.java: (CertPathValidatorException(String,Throwable)): Just call superclass with both arguments, rather than initCause. (getMessage()): Removed; provided by superclass. (getCause()): Likewise. (toString()): Likewise. (printStackTrace()): Likewise. (printStackTrace(PrintStream)): Likewise. (printStackTrace(PrintWriter)): Likewise. * java/security/cert/CertStoreException.java: (CertStoreException(Throwable)): Just call superclass constructor. (CertStoreException(String,Throwable)): Likewise. (getMessage()): Removed; provided by superclass. (getCause()): Likewise. (toString()): Likewise. (printStackTrace()): Likewise. (printStackTrace(PrintStream)): Likewise. (printStackTrace(PrintWriter)): Likewise. * java/security/cert/CertStoreSpi.java: (CertStoreSpi(CertStoreParameters)): Suppress warnings about exception not being thrown. Present for subclasses. * java/security/cert/Certificate.java: (equals(Object)): Add @Override. (hashCode()): Likewise. (toString()): Likewise. * java/security/cert/CertificateFactorySpi.java: (engineGenerateCertPath(InputStream)): Suppress warnings about unused arguments, exceptions not being thrown and method can be static. Provided for subclass implementations. (engineGenerateCertPath(InputStream,String)): Likewise. (engineGenerateCertPath(List)): Likewise. (engineGetCertPathEncodings()): Likewise. * java/security/cert/CollectionCertStoreParameters.java: (toString()): Add @Override. * java/security/cert/LDAPCertStoreParameters.java: (clone()): Add @Override. (toString()): Likewise. * java/security/cert/PKIXBuilderParameters.java: (toString()): Likewise. * java/security/cert/PKIXCertPathBuilderResult.java: (getCertPath()): Add @Override. (toString()): Likewise. * java/security/cert/PKIXCertPathChecker.java: (clone()): Add @Override. * java/security/cert/PKIXCertPathValidatorResult.java: (clone()): Add @Override. (toString()): Likewise. * java/security/cert/PKIXParameters.java: (clone()): Add @Overrride. (toString()): Likewise. * java/security/cert/PolicyQualifierInfo.java: (PolicyQualifierInfo(byte[])): Remove unnecessary cast. (getEncoded()): Likewise. (toString()): Add @Override. * java/security/cert/TrustAnchor.java: (TrustAnchor(X509Certificate,byte[])): Remove unnecessary cast. (TrustAnchor(String,PublicKey,byte[])): Document exceptions. Catch IOException and throw as IllegalArgumentException. Remove unnecessary casts. (toString()): Add @Override. * java/security/cert/X509CRL.java: (equals(Object)): Add @Override. (hashCode()): Likewise. (getIssuerX500Principal()): Suppress warning about making this static. Should be overridden by subclasses. * java/security/cert/X509CRLEntry.java: (equals(Object):: Add @Override. (hashCode()): Likewise. (toString()): Likewise. * java/security/cert/X509CRLSelector.java: Remove unneeded Cloneable reference. (getIssuerNames()): Remove unneeded else block. (toString()): Add @Override. (match(CRL)): Likewise. (clone()): LIkewise. * java/security/cert/X509CertSelector.java: Remove unneeded Cloneable reference. (makeName(int,String)): Re-use earlier result of Kind.forTag(id). Add default case. (clone()): Add @Override. (getAuthorityKeyIdentifier()): Remove unneeded else block and cast. (getCertificateValid()): Remove unneeded else block. (getExtendedKeyUsage()): Likewise. (getIssuerAsBytes()): Likewise. (getIssuerAsString()): Likewise. (getKeyUsage()): Likewise and remove unneeded cast. (getNameConstraints()): Likewise. (getPathToNames()): Explicitly convert int to Integer. (getPrivateKeyValid()): Suppress static method warning. Method is deliberately useless. (getSubjectAlternativeNames()): Explicitly convert int to Integer. (getSubjectAsBytes()): Remove unneeded else block. (getSubjectAsString()): Likewise. (getSubjectKeyIdentifier()): Likewise and remove unneeded cast. (match(Certificate)): Add @Override. Rename cert to other to avoid shadowing. (setNameConstraints(byte[])): Remove unnecessary cast. Suppress warnings about NameConstraints instance being unused. (setPrivateKeyValid()): Suppress unused variable warning. Method is deliberately useless. (setSubjectPublicKey(PublicKey)): Remove unneeded cast. (toString()): Add @Override. * java/security/cert/X509Certificate.java: (getExtendedKeyUsage()): Suppress unthrown exception warning and static method suggestion. Overridden by subclasses. (getSubjectAlternativeNames()): Likewise. (getIssuerAlternativeNames()): Likewise. (getSubjectX500Principal()): Suppress static method suggestion. Overridden by subclasses. (getIssuerX500Principal()): Likewise. * java/security/spec/DSAParameterSpec.java: (getP()): Add @Override. (getQ()): Likewise. (getG()): Likewise. * java/security/spec/PKCS8EncodedKeySpec.java: (getEncoded()): Add @Override. (getFormat()): Likewise. * java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java: (RSAMultiPrimePrivateCrtKeySpec(BigInteger,BigInteger,BigInteger, BigInteger,BigInteger,BigInteger,BigInteger,BigInteger, RSAOtherPrimeInfo[])): Remove unneeded else block. * java/security/spec/X509EncodedKeySpec.java: (getEncoded()): Add @Override. (getFormat()): Likewise. * javax/security/auth/Policy.java: Add @Deprecated. * javax/security/auth/PrivateCredentialPermission.java: Remove unneeded Serializable reference. (equals(Object)): Add @Override. Rename principals to thisPrincipals to avoid shadowing. (getActions()): Add @Override. (hashCode()): Likewise. (implies(Permission)): Likewise. Rename principals to thisPrincipals to avoid shadowing. (newPermissionCollection()): Add @Override to method and anonymous inner class implementations of equals(Object) & hashCode(). * javax/security/auth/SubjectDomainCombiner.java: (combine(ProtectionDomain[],ProtectionDomain[])): Add @Override. * javax/security/auth/callback/ConfirmationCallback.java: (setOptions(String[],int)): Move reference to options.length to after options null check. * javax/security/auth/kerberos/KerberosKey.java: Remove unneeded Serializable reference. (getAlgorithm()): Add @Override. (getFormat()): Likewise. (getEncoded()): Likewise and remove unnecessary cast. (destroy()): Add @Override. (isDestroyed()): Likewise. (toString()): Likewise. * javax/security/auth/kerberos/KerberosPrincipal.java: (getName()): Add @Override. (hashCode()): Likewise. (equals(Object)): Likewise. (toString()): Likewise. * javax/security/auth/kerberos/KerberosTicket.java: (asn1Encoding): Remove @SuppressWarnings. (KerberosTicket(byte[],KerberosPrincipal,KerberosPrincipal, byte[],int,boolean[],Date,Date,Date,Date,InetAddress[])): Remove unnecessary cast. Remove duplicate assignment to flags. (destroy()): Add @Override. (isDestroyed()): Likewise. (isCurrent()): Likewise. (refresh()): Likewise. (getFlags()): Remove unnecessary cast. (getEncoded()): Likewise. (toString()): Add @Override. * javax/security/auth/kerberos/KeyImpl.java: Remove unneeded Serializable reference. (KeyImpl(byte[],int)): Remove unnecessary cast. (getAlgorithm()): Add @Override. (getEncoded()): Likewise. (getFormat()): Likewise. (toString()): Likewise. * javax/security/auth/login/AppConfigurationEntry.java: (toString()): Add @Override. (LoginModuleControlFlag.toString()): Likewise. * javax/security/auth/login/Configuration.java: (getConfig()): Use GetSecurityPropertyAction rather than a bespoke PrivilegedAction implementation. * javax/security/auth/login/LoginContext.java: (LoginContext(String,Subject,CallbackHandler,Configuration)): Rename entries to appEntries to avoid shadowing. (lookupModule(AppConfigurationEntry,Subject,Map)): Rename subject to subj to avoid shadowing. Check module is null rather than cause is non-null. * javax/security/auth/login/NullConfiguration.java: (getAppConfigurationEntry(String)): Add @Override. (refresh()): Likewise. * javax/security/auth/x500/X500Principal.java: (hashCode()): Add @Override. (equals(Object)): Likewise. (getEncoded()): Remove unnecessary cast. (getName()): Add @Override. (toString()): Likewise. (readAttributeType(Reader)): Make static. (parseDer(InputStream)): Rename encoded to encodedStream to avoid shadowing. * javax/security/auth/x500/X500PrivateCredential.java: (destroy()): Add @Override. (isDestroyed()): Likewise. * javax/security/cert/Certificate.java: (equals(Object)): Add @Override. (hashCode()): Likewise. (toString()): Likewise. * javax/security/cert/X509CertBridge.java: (getEncoded()): Add @Override. (verify(PublicKey)): Likewise. (verify(PublicKey,String)): Likewise. (toString()): Likewise. (getPublicKey()): Likewise. (checkValidity()): Likewise. (checkValidity(Date)): Likewise. (getVersion()): Likewise. (getSerialNumber()): Likewise. (getIssuerDN()): Likewise. (getSubjectDN()): Likewise. (getNotBefore()): Likewise. (getNotAfter()): Likewise. (getSigAlgName()): Likewise. (getSigAlgOID()): Likewise. (getSigAlgParams()): Likewise. * javax/security/sasl/Sasl.java: (createSaslClient(String[],String,String,String,Map,CallbackHandler)): Remove unnecessary else clause and pointless result assignment. (createSaslServer(String,String,String,Map,CallbackHandler)): Likewise. * javax/security/sasl/SaslException.java: Remove unneeded Serializable reference. (SaslException(String,Throwable)): Add cause to superclass call. (getCause()): Add @Override. (printStackTrace()): Removed; provided by superclass. (printStackTrace(PrintStream)): Likewise. (printStackTrace(PrintWriter)): Likewise. (initCause(Throwable)): Call superclass version, then sync the local copy. (toString()): Add @Override.
* PR64902: Keys returned by KeyPairGenerator don't use standardised algorithm ↵Andrew John Hughes2015-02-103-109/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | names PR64904: KeyPairGenerator.genKeyPair() fails if not explicitly initialised 2015-02-02 Andrew John Hughes <gnu_andrew@member.fsf.org> PR classpath/64902 PR classpath/64904 * NEWS: Updated. * gnu/java/security/jce/sig/KeyPairGeneratorAdapter.java: (KeyPairGeneratorAdapter(String)): Filter incoming generator names so all standardised names are handled (e.g. the DiffieHellman alias for DH. (generateKeyPair()): Check whether the generator has been initialized and initialize it with defaults if not. (getAlgorithm()): Return the standardised name, not the internal one. (localiseName(String)): Convert requested standardised name to the internal equivalent. * gnu/java/security/key/IKeyPairGenerator.java: (isInitialized()): New method to check whether the generator has been initialized. (getDefaultKeySize()): Return the default key size used by the generator. * gnu/java/security/key/dss/DSSKey.java: (getAlgorithm()): Return standard "DSA" rather than "dsa". * gnu/java/security/key/dss/DSSKeyPairGenerator.java: (initialized): Flag to indicate whether the generator has been initialized or not. (initLock): Lock to prevent multiple concurrent initializations. (setup(Map)): Wrap initialization in a lock and set initialized flag when done. (isInitialized()): Returns the value of the initialized flag. (getDefaultKeySize()): Returns the default key size. * gnu/java/security/key/rsa/GnuRSAKey.java: (getAlgorithm()): Return standard "RSA" rather than "rsa". * gnu/java/security/key/rsa/RSAKeyPairGenerator.java: (initialized): Flag to indicate whether the generator has been initialized or not. (initLock): Lock to prevent multiple concurrent initializations. (setup(Map)): Wrap initialization in a lock and set initialized flag when done. (isInitialized()): Returns the value of the initialized flag. (getDefaultKeySize()): Returns the default key size. * gnu/javax/crypto/key/dh/GnuDHKey.java: (getAlgorithm()): Return standard "DH" rather than "dh". * gnu/javax/crypto/key/dh/GnuDHKeyPairGenerator.java: (initialized): Flag to indicate whether the generator has been initialized or not. (initLock): Lock to prevent multiple concurrent initializations. (setup(Map)): Wrap initialization in a lock and set initialized flag when done. (isInitialized()): Returns the value of the initialized flag. (getDefaultKeySize()): Returns the default key size. * gnu/javax/crypto/key/srp6/SRPKeyPairGenerator.java: (initialized): Flag to indicate whether the generator has been initialized or not. (initLock): Lock to prevent multiple concurrent initializations. (setup(Map)): Wrap initialization in a lock and set initialized flag when done. (isInitialized()): Returns the value of the initialized flag. (getDefaultKeySize()): Returns the default key size.
* Fix majority of warnings in gnu.java.security.* and java.security.*.Andrew John Hughes2014-10-1320-135/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fixes PR58688 as a consequence. 2014-10-09 Andrew John Hughes <gnu_andrew@member.fsf.org> * NEWS: Updated. * gnu/java/security/util/IntegerUtil.java: Removed. Methods are available in java.lang.Integer. * gnu/java/security/Engine.java: Add missing type parameters to Class, Constructor and Enumeration. * gnu/java/security/OID.java: Add type parameter to Comparable implementation. (compareTo(OID)): Changed from compareTo(Object). Remove now redundant cast. * gnu/java/security/Properties.java: Add type parameters to HashMap. (getProperty(String)): Remove redundant cast. (init()): Use generic implementation of PrivilegedAction. Add properties in a for-each loop to get correct types. * gnu/java/security/action/SetAccessibleAction.java: Use generic implementation of PrivilegedAction. * gnu/java/security/ber/BEREncodingException.java: Add explicit serialVersionUID. * gnu/java/security/der/BitString.java: Add type parameter to Comparable implementation. (compareTo(BitString)): Changed from compareTo(Object). Remove now redundant cast. * gnu/java/security/der/DEREncodingException.java: Add explicit serialVersionUID. * gnu/java/security/der/DERWriter.java: (write(OutputStream,DERValue)): Cast List and Set to correct generic versions. (writeSequence(OutputStream,List)): Add type parameters. Drop now redundant cast. (writeSet(OutputStream,Set)): Likewise. * gnu/java/security/hash/HashFactory.java: (getNames()): Add type parameters. * gnu/java/security/hash/Whirlpool.java: Drop unused byte array. * gnu/java/security/jce/prng/HavalRandomSpi.java: Add explicit serialVersionUID. * gnu/java/security/jce/prng/MD2RandomSpi.java: Likewise. * gnu/java/security/jce/prng/MD4RandomSpi.java: Likewise. * gnu/java/security/jce/prng/MD5RandomSpi.java: Likewise. * gnu/java/security/jce/prng/RipeMD128RandomSpi.java: Likewise. * gnu/java/security/jce/prng/RipeMD160RandomSpi.java: Likewise. * gnu/java/security/jce/prng/SecureRandomAdapter.java: Likewise. Drop unused mdName variable. Remove redundant casts. Add Override annotation to interface implementation. * gnu/java/security/jce/prng/Sha160RandomSpi.java: Add explicit serialVersionUID. * gnu/java/security/jce/prng/Sha256RandomSpi.java: Likewise. * gnu/java/security/jce/prng/Sha384RandomSpi.java: Likewise. * gnu/java/security/jce/prng/Sha512RandomSpi.java: Likewise. * gnu/java/security/jce/prng/TigerRandomSpi.java: Likewise. * gnu/java/security/jce/prng/WhirlpoolRandomSpi.java: Likewise. * gnu/java/security/jce/sig/DSSKeyFactory.java: Add Override annotation to interface implementation. (engineGetKeySpec(Key,Class)): Update return type. Use keySpec.cast to cast newly created instances to the correct type. * gnu/java/security/jce/sig/DSSKeyPairGeneratorSpi.java: Add missing type parameters and Override annotations. * gnu/java/security/jce/sig/DSSParameters.java: Add Override annotation to interface implementation. (engineGetParameterSpec(Class)): Update return type. Use paramSpec.cast to cast new instances to correct type. (engineGetEncoded()): Add missing type parameter to list. * gnu/java/security/jce/sig/EncodedKeyFactory.java: Add type parameters and Override annotations. (engineGetKeySpec(Key,Class)): Update return type. Use keySpec.cast to cast new instances to correct type. * gnu/java/security/jce/sig/RSAKeyFactory.java: Add @Override annotation. Drop unused variables. (engineGetKeySpec(Key,Class)): Update return type. Use keySpec.cast to cast new instances to correct type. * gnu/java/security/jce/sig/RSAKeyPairGeneratorSpi.java: Add type parameters. * gnu/java/security/jce/sig/SignatureAdapter.java: Add type parameters and Override annotation. * gnu/java/security/key/IKeyPairGenerator.java: (setup(Map)): Add type parameters. * gnu/java/security/key/KeyPairCodecFactory.java: Add type parameters. * gnu/java/security/key/KeyPairGeneratorFactory.java: Likewise. * gnu/java/security/key/dss/DSSKey.java: Add explicit serialVersionUID. * gnu/java/security/key/dss/DSSKeyPairGenerator.java: Add type parameters and Override annotations. * gnu/java/security/key/dss/DSSKeyPairPKCS8Codec.java: Likewise. * gnu/java/security/key/dss/DSSKeyPairX509Codec.java: Add type parameters. * gnu/java/security/key/dss/DSSPrivateKey.java: Add explicit serialVersionUID. * gnu/java/security/key/dss/DSSPublicKey.java: Likewise. * gnu/java/security/key/rsa/GnuRSAKey.java: Likewise. * gnu/java/security/key/rsa/GnuRSAPrivateKey.java: Likewise. * gnu/java/security/key/rsa/GnuRSAPublicKey.java: Likewise. * gnu/java/security/key/rsa/RSAKeyPairGenerator.java: Add Override annotations and type parameters. * gnu/java/security/key/rsa/RSAKeyPairPKCS8Codec.java: Add missing type parameters on ArrayList instances. * gnu/java/security/key/rsa/RSAKeyPairX509Codec.java: Add Override annotations and type parameters. * gnu/java/security/pkcs/PKCS7SignedData.java: (PKCS7SignedData(BERReader)): Add a type parameter to the algId list and ensure all additions are homogenous. Add other missing type parameters. (PKCS7SignedData(Set,PKCS7Data,Certificate[],X509CRL[],Set)): Add missing type parameters. (getDigestAlgorithms()): Do a deep copy of the set. (getSignerInfos()): Add type parameters. (encode(OutputStream)): Likewise. * gnu/java/security/pkcs/SignerInfo.java: Drop unused variable, count. Add type parameters. (encode(OutputStream)): Include derAuthenticatedAttributes and derUnauthenticatedAttributes in signerInfo. * gnu/java/security/prng/BasePRNG.java: Add type parameters and Override annotations. * gnu/java/security/prng/IRandom.java: Add type parameters. * gnu/java/security/prng/LimitReachedException.java: Add explicit serialVersionUID. * gnu/java/security/prng/MDGenerator.java: Add type parameters and Override annotations. * gnu/java/security/prng/PRNGFactory.java: Add missing type parameters. * gnu/java/security/prng/RandomEvent.java: Add explicit serialVersionUID. * gnu/java/security/provider/CollectionCertStoreImpl.java: Add Override annotation and missing type parameters. * gnu/java/security/provider/Gnu.java: Add explicit serialVersionUID. Parameterise implementation of PrivilegedAction. * gnu/java/security/provider/PKIXCertPathValidatorImpl.java: Add missing type parameters. Remove unused qualifierInfos variable. * gnu/java/security/provider/X509CertificateFactory.java: Add Override annotations and type parameters. * gnu/java/security/sig/BaseSignature.java: Likewise. * gnu/java/security/sig/ISignature.java: Add type parameters. * gnu/java/security/sig/SignatureCodecFactory.java: Likewise. * gnu/java/security/sig/SignatureFactory.java: Likewise. * gnu/java/security/sig/dss/DSSSignature.java: Add Override annotations and type parameters. * gnu/java/security/sig/dss/DSSSignatureX509Codec.java: Add type parameter to ArrayList instance. * gnu/java/security/sig/rsa/EMSA_PKCS1_V1_5.java: Remove unused hLen variable. * gnu/java/security/sig/rsa/RSASignatureFactory.java: Add type parameters. * gnu/java/security/util/PRNG.java: (getInstance()): Move initialisation code to shared method, initialiseDelegate. (nextBytes(byte[],int,int)): Call out to initialiseDelegate to re-initialise. (initialiseDelegate(IRandom)): New common method for shared code. * gnu/java/security/util/Sequence.java: Add Override annotation and type parameters. * gnu/java/security/util/SimpleList.java: Add type parameters. * gnu/java/security/x509/GnuPKIExtension.java: Likewise. * gnu/java/security/x509/PolicyNodeImpl.java: Add type parameters and Override annotations. (addAllPolicyQualifiers(Collection)): Qualify reference to addAll. * gnu/java/security/x509/X500DistinguishedName.java: Add type parameters. * gnu/java/security/x509/X509CRL.java: Remove unused variable algParams. Add type parameters and Override annotations. * gnu/java/security/x509/X509CRLEntry.java: Add type parameters and Override annotations. * gnu/java/security/x509/X509CRLSelectorImpl.java: Likewise. * gnu/java/security/x509/X509CertPath.java: Add type parameters. (pkcsEncoded): Renamed from pkcs_encoded. (pkiEncoded): Renamed from pki_encoded. * gnu/java/security/x509/X509CertSelectorImpl.java: Add type parameters and Override annotations. * gnu/java/security/x509/X509Certificate.java: Likewise. * gnu/java/security/x509/ext/BasicConstraints.java: Add type parameters. * gnu/java/security/x509/ext/CertificatePolicies.java: Likewise. * gnu/java/security/x509/ext/PolicyMappings.java: Likewise. * gnu/javax/crypto/cipher/IBlockCipher.java: Add type parameters. * gnu/javax/crypto/jce/prng/FortunaImpl.java: (engineSetSeed(byte[])): Add cast for singletonMap invocation. * gnu/javax/crypto/key/dh/DHKeyPairPKCS8Codec.java: Add type parameters. * gnu/javax/crypto/key/dh/DHKeyPairX509Codec.java: Likewise. * gnu/javax/crypto/mac/IMac.java: Likewise. * gnu/javax/crypto/mode/BaseMode.java: Add Override annotations and type parameters. * gnu/javax/crypto/mode/EAX.java: Add Override annotations, type parameters and casts for singletonMap invocations. * gnu/javax/crypto/prng/Fortuna.java: Likewise. * gnu/javax/net/ssl/Session.java: Add Override annotations and type parameters. * gnu/javax/net/ssl/provider/AbstractHandshake.java: Fix type parameters. * gnu/javax/net/ssl/provider/SSLRandom.java: Add Override annotations and type parameters. * gnu/javax/net/ssl/provider/TLSRandom.java: Likewise. (hmacSHA): Renamed from hmac_sha. (hmacMD5): Renamed from hmac_md5. * gnu/javax/net/ssl/provider/Util.java: (transform(Object,Class,String,Object[])): Use a type parameter T rather than Object. * gnu/javax/net/ssl/provider/X509KeyManagerFactory.java: Add type parameters. * gnu/javax/net/ssl/provider/X509TrustManagerFactory.java: Likewise. * gnu/javax/security/auth/callback/AWTCallbackHandler.java: Replace calls to deprecated show() with setVisible(true). (ACTION_NO): Remove unused variable. (ACTION_YES): Likewise. * gnu/javax/security/auth/callback/ConsoleCallbackHandler.java: Add type parameters. * gnu/javax/security/auth/callback/GnuCallbacks.java: Add explicit serialVersionUID. Convert PrivilegedAction implementation to parameterised version. * gnu/javax/security/auth/login/ConfigFileParser.java: Add type parameters. * gnu/javax/security/auth/login/GnuConfiguration.java: Likewise. Fix typo. * java/security/AccessControlContext.java: Add type parameters. * java/security/AllPermission.java: Add Override annotations. (AllPermissionCollection.elements()): Add type parameter to return type and return appropriately typed enumerations. * java/security/BasicPermission.java: Add type parameters and Override annotations. * java/security/CodeSource.java: Likewise. * java/security/DummySignature.java: Add Override annotations. * java/security/Identity.java: Add type parameters. * java/security/IntersectingDomainCombiner.java: Likewise. * java/security/KeyPairGenerator.java: Add Override annotations. * java/security/Permissions.java: Add type parameters and Override annotations. (elements()): Rename main_enum and sub_enum to mainEnum and subEnum respectively. * java/security/Policy.java: Add type parameters. * java/security/SecureRandom.java: Add missing type parameter. Remove unused imports. * java/security/Security.java: Add type parameters. Fix mis-spelling of 'query'. * java/security/SignatureSpi.java: Add Override annotation. * java/security/UnresolvedPermission.java: Add Override annotations and type parameters. (elements()): Rename main_enum and sub_enum to mainEnum and subEnum respectively. * java/security/cert/CertPath.java: Add type parameters. * java/security/cert/CertPathValidator.java: (getDefaultType()): Use GetSecurityPropertyAction rather than implementing PrivilegedAction locally. * java/security/cert/CertStore.java: (getDefaultType()): Use GetSecurityPropertyAction rather than implementing PrivilegedAction locally. * java/security/cert/CollectionCertStoreParameters.java: Add type parameters and Override annotations. * java/security/cert/PKIXParameters.java: Add type parameters. * java/security/cert/X509CRLSelector.java: Add type parameters. (getIssuerNames()): Return a deep copy. * java/security/cert/X509CertSelector.java: Add type parameters. * java/util/Properties.java: Add type parameters. (stringPropertyNames()): Implemented. * javax/naming/directory/BasicAttribute.java: Add Override annotations and missing type parameter. * javax/security/auth/AuthPermission.java: Add explicit serialVersionUID. * javax/security/auth/DestroyFailedException.java: Likewise. * javax/security/auth/PrivateCredentialPermission.java: Add type parameters. (equals(Object)): Use thatPrincipals instead of that_principals. (implies(Permission)): Likewise. (CredOwner): Add explicit serialVersionUID. * javax/security/auth/RefreshFailedException.java: Add explicit serialVersionUID. * javax/security/auth/Subject.java: Add type parameters and Override annotations. * javax/security/auth/SubjectDomainCombiner.java: Add type parameters. * javax/security/auth/callback/ChoiceCallback.java: Add explicit serialVersionUID. * javax/security/auth/callback/ConfirmationCallback.java: Likewise. * javax/security/auth/callback/LanguageCallback.java: Likewise. * javax/security/auth/callback/NameCallback.java: Likewise. * javax/security/auth/callback/PasswordCallback.java: Likewise. * javax/security/auth/callback/TextInputCallback.java: Likewise. * javax/security/auth/callback/TextOutputCallback.java: Likewise. * javax/security/auth/callback/UnsupportedCallbackException.java: Likewise. * javax/security/auth/kerberos/DelegationPermission.java: Re-enable explicit serialVersionUID. Add Override annotations and type parameters. * javax/security/auth/kerberos/KerberosPrincipal.java: Re-enable explicit serialVersionUID. * javax/security/auth/kerberos/KerberosTicket.java: Suppress warning about unused asn1Encoding variable. * javax/security/auth/kerberos/KeyImpl.java: Re-enable explicit serialVersionUID. * javax/security/auth/kerberos/ServicePermission.java: Re-enable explicit serialVersionUID. Add Override annotations and type parameters. * javax/security/auth/login/AppConfigurationEntry.java: Add type parameters. * javax/security/auth/login/Configuration.java: Likewise. * javax/security/auth/login/LoginContext.java: Likewise. * javax/security/auth/x500/X500Principal.java: Likewise. (fixed): Remove unused variable. * javax/security/cert/CertificateEncodingException.java: Add explicit serialVersionUID. * javax/security/cert/CertificateException.java: Likewise. * javax/security/cert/CertificateExpiredException.java: Likewise. * javax/security/cert/CertificateNotYetValidException.java: Likewise. * javax/security/cert/CertificateParsingException.java: Likewise. * javax/security/sasl/AuthenticationException.java: Likewise. * javax/security/sasl/RealmCallback.java: Likewise. * javax/security/sasl/RealmChoiceCallback.java: Likewise. * javax/security/sasl/Sasl.java: Add type parameters. * tools/gnu/classpath/tools/jarsigner/SFHelper.java: Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Java warnings cleanup for javax.sound.* and gnu.javax.sound.*Andrew John Hughes2012-10-106-33/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-10-09 Andrew John Hughes <gnu_andrew@member.fsf.org> * gnu/javax/sound/midi/dssi/DSSIMidiDeviceProvider.java: (DSSIInfo.copyright): Added field. (DSSIInfo(String,String,String,String,String,String,long)): Extended constructor to store copyright. (examineLibrary(String)): Add type parameter. Fix call to new DSSIInfo constructor. (static): Add type parameters. * gnu/javax/sound/midi/dssi/DSSISynthesizer.java: (instruments): Add type parameter. (resources): Likewise. (getResources()): Remove redundant cast. (getInstruments()): Likewise. (getInstrument(Patch)): Add type parameter and remove redundant cast. (soundbanks): Add type parameter. (getAvailableInstruments()): Add type parameters and remove redundant casts. * gnu/javax/sound/midi/file/MidiFileReader.java: (getSequence(InputStream)): Don't store length as not used. * gnu/javax/sound/midi/file/MidiFileWriter.java: (computeTrackLength(Track,MidiDataOutputStream)): Drop unused count variable. * gnu/javax/sound/sampled/WAV/WAVReader.java: (getAudioFileFormat(InputStream)): Drop unused blockAlign variable. * gnu/javax/sound/sampled/gstreamer/GStreamerMixer.java: (getLine(Line.Info)): Add type parameter to Class. * javax/sound/midi/MidiSystem.java: (getMidiDeviceInfo()): Add type parameters. Remove unnecessary cast. (getMidiDevice(MidiDevice.Info)): Add type parameter. (getSoundbank(InputStream)): Add type parameters and remove unnecessary casts. (getSoundbank(URL)): Likewise. (getSoundbank(File)): Likewise. (getMidiFileFormat(InputStream)): Likewise. (getMidiFileFormat(URL)): Likewise. (getMidiFileFormat(File)): Likewise. (getSequence(InputStream)): Likewise. (getSequence(URL)): Likewise. (getSequence(File)): Likewise. (getMidiFileTypes()): Likewise. (isFileTypeSupported(int)): Likewise. (getMidiFileTypes(Sequence)): Likewise. (isFileTypeSupported(int,Sequence)): Likewise. (write(Sequence,int,OutputStream)): Likewise. (write(Sequence,int,File)): Likewise. * javax/sound/midi/SoundbankResource.java: (dataClass): Add type parameter. * javax/sound/midi/Track.java: (events): Add type parameter. (eventSet): Likewise. (add(MidiEvent)): Remove redundant cast. (get(int)): Likewise. (ticks()): Likewise. * javax/sound/sampled/AudioSystem.java: (getAudioFileFormat(File)): Add type parameters and remove unnecessary casts. (getAudioFileFormat(InputStream)): Likewise. (getAudioFileFormat(URL)): Likewise. (getAudioFileTypes()): Likewise. (getAudioFileTypes(AudioInputStream)): Likewise. (getAudioInputStream(AudioFormat.Encoding,AudioInputStream)): Likewise. (getAudioInputStream(AudioFormat,AudioInputStream)): Likewise. (getAudioInputStream(File)): Likewise. (getAudioInputStream(InputStream)): Likewise. (getAudioInputStream(URL)): Likewise. (getMixer(Mixer.Info)): Likewise. (getMixerInfo()): Likewise. (getTargetEncodings(AudioFormat.Encoding)): Likewise. (getTargetEncodings(AudioFormat)): Likewise. (getTargetFormats(AudioFormat.Encoding,AudioFormat)): Likewise. (isConversionSupported(AudioFormat.Encoding,AudioFormat)): Likewise. (isConversionSupported(AudioFormat,AudioFormat)): Likewise. (write(AudioInputStream,AudioFileFormat.Type,File)): Likewise. (write(AudioInputStream,AudioFileFormat.Type,OutputStream)): Likewise. * javax/sound/sampled/Line.java: (klass): Add type parameter. * m4/ac_prog_javac.m4: (ECJ_OPTS): Turn of unused private field warnings for now, as some may be used from native code. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Fix block-wise chosen-plaintext against SSL/TLS (BEAST) (CVE-2011-3389)Andrew John Hughes2011-12-213-53/+99
| | | | | | | | | | | | | | | | | | | | | | | | | 2011-12-01 Andrew John Hughes <ahughes@redhat.com> * gnu/javax/net/ssl/provider/CipherSuite.java: Pass CBC mode to the static CipherSuite instances. (isCBCMode): New variable. (CipherSuite(CipherAlgorithm, KeyExchangeAlgorithm, SignatureAlgorithm, MacAlgorithm, int, int, int, String, boolean)): Allow isCBCMode to be specified. (CipherSuite(CipherAlgorithm, KeyExchangeAlgorithm, boolean, SignatureAlgorithm, MacAlgorithm, int, int, int, String, boolean)): Likewise. (cipher()): Generalise setting of 'alg' to work with any suite that does not use CBC, not just "RC4". (isCBCMode()): New method. Returns true if the CBC mode is used. * gnu/javax/net/ssl/provider/OutputSecurityParameters.java: (enableCBCProtection): Set to true by default of if jsse.enableCBCProtection is true. (needToSplitPayload()): Returns true if TLS < 1.1 is in use with a CBC mode cipher and CBC protection is enabled. * gnu/javax/net/ssl/provider/SSLEngineImpl.java: (wrap(ByteBuffer[], int, int, ByteBuffer)): Send application data as two packets (1 and n - 1) if CBC protection is enabled.
* Only initialise loggers when Configuration.DEBUG is true.Andrew John Hughes2010-09-0228-79/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid floating point arithmetic when computing 1.5 * length. Cast instance generated by reflection to correct type. Remove redundant super() calls and initialisations. Drop unused variable. 2010-05-09 Ivan Maidanski <ivmai@mail.ru> * gnu/java/security/Properties.java: Only initialise log if Configuration.DEBUG is true. * gnu/java/security/der/DERWriter.java: (toUtf8(String)): Calculate 1.5 * len using len + (len >> 1) to avoid multiplication by a floating-point number. * gnu/java/security/hash/Whirlpool.java: Only initialise log if Configuration.DEBUG is true. * gnu/java/security/jce/sig/EncodedKeyFactory.java: Likewise. * gnu/java/security/jce/sig/SignatureAdapter.java: Likewise. * gnu/java/security/key/dss/DSSKeyPairGenerator.java: Likewise. * gnu/java/security/key/dss/DSSKeyPairPKCS8Codec.java: Likewise. * gnu/java/security/key/rsa/RSAKeyPairGenerator.java: Likewise. * gnu/java/security/key/rsa/RSAKeyPairPKCS8Codec.java: Likewise. * gnu/java/security/key/rsa/RSAKeyPairX509Codec.java: Likewise. * gnu/java/security/pkcs/PKCS7SignedData.java: Likewise. * gnu/java/security/pkcs/SignerInfo.java: Likewise. (SignerInfo(BERReader)): Only print version if Configuration.DEBUG is true, as with other output. * gnu/java/security/provider/PKIXCertPathValidatorImpl.java: Only initialise log if Configuration.DEBUG is true. * gnu/java/security/sig/rsa/EMSA_PSS.java: Likewise. * gnu/java/security/sig/rsa/RSAPSSSignature.java: Likewise. * gnu/java/security/x509/X509CRL.java: Likewise. * gnu/java/security/x509/X509CRLEntry.java: Likewise. * gnu/java/security/x509/ext/Extension.java: Likewise. * gnu/javax/crypto/cipher/Anubis.java: Likewise. * gnu/javax/crypto/cipher/BaseCipher.java: Likewise. * gnu/javax/crypto/cipher/Khazad.java: Likewise. * gnu/javax/crypto/cipher/Rijndael.java: Likewise. * gnu/javax/crypto/cipher/Twofish.java: Likewise. * gnu/javax/crypto/jce/cipher/KeyWrappingAlgorithmAdapter.java: Likewise. * gnu/javax/crypto/jce/keyring/GnuKeyring.java: Likewise. * gnu/javax/crypto/jce/params/BlockCipherParameters.java: Likewise. * gnu/javax/crypto/jce/prng/ICMRandomSpi.java: Likewise. * gnu/javax/crypto/jce/prng/UMacRandomSpi.java: Likewise. * gnu/javax/crypto/key/dh/GnuDHKeyPairGenerator.java: Likewise. (sha): Drop unused variable. (rnd): Use implicit initialisation to null as with other variables. * gnu/javax/crypto/key/srp6/SRPKeyPairGenerator.java: Only initialise log if Configuration.DEBUG is true. * gnu/javax/crypto/keyring/Entry.java: Likewise. * gnu/javax/crypto/keyring/EnvelopeEntry.java: Likewise. * gnu/javax/crypto/keyring/GnuPublicKeyring.java: Likewise. * gnu/javax/crypto/mac/OMAC.java: Likewise. * gnu/javax/crypto/pad/BasePad.java: Likewise. * gnu/javax/crypto/pad/PKCS1_V1_5.java: Likewise. * gnu/javax/crypto/pad/PKCS7.java: Likewise. * gnu/javax/crypto/pad/TBC.java: Likewise. * gnu/javax/crypto/prng/CSPRNG.java: Likewise. (getSystemInstance()): Clarify bracketing of for loop and ignorance of exceptions in the OTHER case. * gnu/javax/crypto/sasl/SaslInputStream.java: Only initialise log if Configuration.DEBUG is true. * gnu/javax/crypto/sasl/SaslOutputStream.java: Likewise. * gnu/javax/crypto/sasl/srp/SRPClient.java: Likewise. * gnu/javax/crypto/sasl/srp/SRPServer.java: Likewise. * gnu/javax/security/auth/login/ConfigFileParser.java: Likewise. (map): Make final. * gnu/javax/security/auth/login/ConfigFileTokenizer.java: Only initialise log if Configuration.DEBUG is true. (br): Make final. (ConfigFileTokenizer(Reader)): Remove explicit initialisation of initialised and call to superclass when superclass is Object. * gnu/javax/security/auth/login/GnuConfiguration.java: Only iniialise log if Configuration.DEBUG is true. * java/math/BigInteger.java: Likewise.
* Cleanup warning in Demo.java and rename message bundles to avoid class name ↵Andrew John Hughes2010-06-211-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | collisions. 2010-06-21 Andrew John Hughes <ahughes@redhat.com> * tools/Makefile.am: Fix patch to message bundles. 2010-04-12 Ivan Maidanski <ivmai@mail.ru> * examples/gnu/classpath/examples/swing/Demo.java: (mkMenuBar): Don't pass null as a second argument to getMethod() (to suppress a warning). * resource/gnu/javax/print/PrinterDialog.properties: Rename to "MessagesBundle.properties" (to prevent class name collision in case the properties file is converted to a class). * resource/gnu/javax/print/PrinterDialog_de.properties: Likewise. * gnu/javax/print/PrinterDialog.java (messages): Get resources from "gnu.javax.print.MessagesBundle" bundle instead of "gnu/javax/print/PrinterDialog" one. * tools/gnu/classpath/tools/common/Messages.java (BUNDLE_NAME): Convert "gnu.classpath.tools.common.Messages" to lowercase (to be consistent with other tools resource bundle names and to prevent class name collision in case the properties file is converted to a class). * tools/resource/gnu/classpath/tools/common/Messages.properties: Rename to "messages.properties". * tools/resource/gnu/classpath/tools/getopt/Messages.properties: Likewise. * testsuite/javax.swing.text.html.parser/test/gnu/javax/swing/text/html/parser/Parser_Test.java: Rename "enum" local variable to "en". * testsuite/javax.swing.text.html.parser/test/gnu/javax/swing/text/html/parser/ParserTest.java: Likewise.
* Normalise whitespace.Andrew John Hughes2010-06-03443-4495/+4475
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2010-06-03 Andrew John Hughes <ahughes@redhat.com> * examples/gnu/classpath/examples/CORBA/NamingService/Demo.java, * examples/gnu/classpath/examples/CORBA/SimpleCommunication/Demo.java, * examples/gnu/classpath/examples/CORBA/SimpleCommunication/communication/StructureToPass.java, * examples/gnu/classpath/examples/CORBA/SimpleCommunication/communication/StructureToReturn.java, * examples/gnu/classpath/examples/CORBA/SimpleCommunication/communication/TreeNode.java, * examples/gnu/classpath/examples/CORBA/SimpleCommunication/communication/WeThrowThisException.java, * examples/gnu/classpath/examples/CORBA/SimpleCommunication/communication/WeThrowThisExceptionHelper.java, * examples/gnu/classpath/examples/CORBA/SimpleCommunication/communication/_DemoTesterImplBase.java, * examples/gnu/classpath/examples/CORBA/SimpleCommunication/communication/_DemoTesterStub.java, * examples/gnu/classpath/examples/CORBA/swing/x5/CanvasWorld.java, * examples/gnu/classpath/examples/CORBA/swing/x5/ChatConstants.java, * examples/gnu/classpath/examples/CORBA/swing/x5/ClientFrame.java, * examples/gnu/classpath/examples/CORBA/swing/x5/Demo.java, * examples/gnu/classpath/examples/CORBA/swing/x5/GameManager.java, * examples/gnu/classpath/examples/CORBA/swing/x5/GameManagerImpl.java, * examples/gnu/classpath/examples/CORBA/swing/x5/IorReader.java, * examples/gnu/classpath/examples/CORBA/swing/x5/OrbStarter.java, * examples/gnu/classpath/examples/CORBA/swing/x5/Player.java, * examples/gnu/classpath/examples/CORBA/swing/x5/PlayerImpl.java, * examples/gnu/classpath/examples/CORBA/swing/x5/PlayingDesk.java, * examples/gnu/classpath/examples/CORBA/swing/x5/State.java, * examples/gnu/classpath/examples/CORBA/swing/x5/X5Server.java, * examples/gnu/classpath/examples/CORBA/swing/x5/_GameManagerImpl_Tie.java, * examples/gnu/classpath/examples/CORBA/swing/x5/_GameManager_Stub.java, * examples/gnu/classpath/examples/CORBA/swing/x5/_PlayerImpl_Tie.java, * examples/gnu/classpath/examples/CORBA/swing/x5/_Player_Stub.java, * examples/gnu/classpath/examples/awt/AicasGraphicsBenchmark.java, * examples/gnu/classpath/examples/awt/Demo.java, * examples/gnu/classpath/examples/awt/HintingDemo.java, * examples/gnu/classpath/examples/datatransfer/Demo.java, * examples/gnu/classpath/examples/html/Demo.java, * examples/gnu/classpath/examples/java2d/J2dBenchmark.java, * examples/gnu/classpath/examples/java2d/J2dBenchmarkGUI.java, * examples/gnu/classpath/examples/java2d/JNIOverhead.java, * examples/gnu/classpath/examples/jawt/DemoJAWT.java, * examples/gnu/classpath/examples/management/TestClassLoading.java, * examples/gnu/classpath/examples/management/TestCompilation.java, * examples/gnu/classpath/examples/management/TestGarbageCollector.java, * examples/gnu/classpath/examples/management/TestMemory.java, * examples/gnu/classpath/examples/management/TestMemoryManager.java, * examples/gnu/classpath/examples/management/TestMemoryPool.java, * examples/gnu/classpath/examples/management/TestThread.java, * examples/gnu/classpath/examples/midi/Demo.java, * examples/gnu/classpath/examples/print/Demo.java, * examples/gnu/classpath/examples/sound/AudioPlayerSample.java, * examples/gnu/classpath/examples/swing/BrowserEditorKit.java, * examples/gnu/classpath/examples/swing/ButtonDemo.java, * examples/gnu/classpath/examples/swing/ComboBoxDemo.java, * examples/gnu/classpath/examples/swing/Demo.java, * examples/gnu/classpath/examples/swing/DemoFactory.java, * examples/gnu/classpath/examples/swing/DocumentFilterDemo.java, * examples/gnu/classpath/examples/swing/FileChooserDemo.java, * examples/gnu/classpath/examples/swing/HtmlDemo.java, * examples/gnu/classpath/examples/swing/ListDemo.java, * examples/gnu/classpath/examples/swing/MetalThemeEditor.java, * examples/gnu/classpath/examples/swing/NavigationFilterDemo.java, * examples/gnu/classpath/examples/swing/ScrollBarDemo.java, * examples/gnu/classpath/examples/swing/SliderDemo.java, * examples/gnu/classpath/examples/swing/SpinnerDemo.java, * examples/gnu/classpath/examples/swing/TabbedPaneDemo.java, * examples/gnu/classpath/examples/swing/TableDemo.java, * examples/gnu/classpath/examples/swing/TextAreaDemo.java, * examples/gnu/classpath/examples/swing/TextFieldDemo.java, * examples/gnu/classpath/examples/swing/TreeDemo.java, * gnu/CORBA/BigDecimalHelper.java, * gnu/CORBA/CDR/AbstractCdrInput.java, * gnu/CORBA/CDR/AbstractCdrOutput.java, * gnu/CORBA/CDR/AbstractDataInput.java, * gnu/CORBA/CDR/AbstractDataOutput.java, * gnu/CORBA/CDR/AligningInput.java, * gnu/CORBA/CDR/AligningOutput.java, * gnu/CORBA/CDR/ArrayValueHelper.java, * gnu/CORBA/CDR/BigEndianInputStream.java, * gnu/CORBA/CDR/BigEndianOutputStream.java, * gnu/CORBA/CDR/BufferedCdrOutput.java, * gnu/CORBA/CDR/BufferredCdrInput.java, * gnu/CORBA/CDR/HeadlessInput.java, * gnu/CORBA/CDR/IDLTypeHelper.java, * gnu/CORBA/CDR/LittleEndianOutputStream.java, * gnu/CORBA/CDR/UnknownExceptionCtxHandler.java, * gnu/CORBA/CDR/VMVio.java, * gnu/CORBA/CDR/Vio.java, * gnu/CORBA/CDR/gnuRuntime.java, * gnu/CORBA/CDR/gnuValueStream.java, * gnu/CORBA/CdrEncapsCodecImpl.java, * gnu/CORBA/CollocatedOrbs.java, * gnu/CORBA/Connected_objects.java, * gnu/CORBA/DefaultSocketFactory.java, * gnu/CORBA/DuplicateNameHolder.java, * gnu/CORBA/DynAn/AbstractAny.java, * gnu/CORBA/DynAn/DivideableAny.java, * gnu/CORBA/DynAn/NameValuePairHolder.java, * gnu/CORBA/DynAn/RecordAny.java, * gnu/CORBA/DynAn/ValueChangeListener.java, * gnu/CORBA/DynAn/gnuDynAny.java, * gnu/CORBA/DynAn/gnuDynAnyFactory.java, * gnu/CORBA/DynAn/gnuDynArray.java, * gnu/CORBA/DynAn/gnuDynEnum.java, * gnu/CORBA/DynAn/gnuDynFixed.java, * gnu/CORBA/DynAn/gnuDynSequence.java, * gnu/CORBA/DynAn/gnuDynUnion.java, * gnu/CORBA/DynAn/gnuDynValue.java, * gnu/CORBA/DynAn/gnuDynValueBox.java, * gnu/CORBA/DynAnySeqHolder.java, * gnu/CORBA/EmptyExceptionHolder.java, * gnu/CORBA/ForwardRequestHelper.java, * gnu/CORBA/GIOP/CharSets_OSF.java, * gnu/CORBA/GIOP/CloseMessage.java, * gnu/CORBA/GIOP/ErrorMessage.java, * gnu/CORBA/GIOP/MessageHeader.java, * gnu/CORBA/GIOP/ServiceContext.java, * gnu/CORBA/GIOP/v1_2/RequestHeader.java, * gnu/CORBA/GeneralHolder.java, * gnu/CORBA/IOR.java, * gnu/CORBA/Interceptor/ClientRequestInterceptors.java, * gnu/CORBA/Interceptor/ForwardRequestHolder.java, * gnu/CORBA/Interceptor/IORInterceptors.java, * gnu/CORBA/Interceptor/Registrator.java, * gnu/CORBA/Interceptor/ServerRequestInterceptors.java, * gnu/CORBA/Interceptor/gnuClientRequestInfo.java, * gnu/CORBA/Interceptor/gnuIcCurrent.java, * gnu/CORBA/Interceptor/gnuIorInfo.java, * gnu/CORBA/Interceptor/gnuServerRequestInfo.java, * gnu/CORBA/IorDelegate.java, * gnu/CORBA/IorObject.java, * gnu/CORBA/Minor.java, * gnu/CORBA/NameDynAnyPairHolder.java, * gnu/CORBA/NameDynAnyPairSeqHolder.java, * gnu/CORBA/NameValuePairHolder.java, * gnu/CORBA/NameValuePairSeqHolder.java, * gnu/CORBA/NamingService/NameParser.java, * gnu/CORBA/NamingService/NamingMap.java, * gnu/CORBA/NamingService/NamingServiceTransient.java, * gnu/CORBA/NamingService/TransientContext.java, * gnu/CORBA/ObjectCreator.java, * gnu/CORBA/OrbFocused.java, * gnu/CORBA/OrbFunctional.java, * gnu/CORBA/OrbRestricted.java, * gnu/CORBA/Poa/AOM.java, * gnu/CORBA/Poa/AccessiblePolicy.java, * gnu/CORBA/Poa/DynamicImpHandler.java, * gnu/CORBA/Poa/ForwardRequestHolder.java, * gnu/CORBA/Poa/ForwardedServant.java, * gnu/CORBA/Poa/InvalidPolicyHolder.java, * gnu/CORBA/Poa/LocalDelegate.java, * gnu/CORBA/Poa/LocalRequest.java, * gnu/CORBA/Poa/LocalServerRequest.java, * gnu/CORBA/Poa/ORB_1_4.java, * gnu/CORBA/Poa/ServantDelegateImpl.java, * gnu/CORBA/Poa/StandardPolicies.java, * gnu/CORBA/Poa/gnuAdapterActivator.java, * gnu/CORBA/Poa/gnuForwardRequest.java, * gnu/CORBA/Poa/gnuIdAssignmentPolicy.java, * gnu/CORBA/Poa/gnuIdUniquenessPolicy.java, * gnu/CORBA/Poa/gnuImplicitActivationPolicy.java, * gnu/CORBA/Poa/gnuLifespanPolicy.java, * gnu/CORBA/Poa/gnuPOA.java, * gnu/CORBA/Poa/gnuPOAManager.java, * gnu/CORBA/Poa/gnuPoaCurrent.java, * gnu/CORBA/Poa/gnuRequestProcessingPolicy.java, * gnu/CORBA/Poa/gnuServantObject.java, * gnu/CORBA/Poa/gnuServantRetentionPolicy.java, * gnu/CORBA/Poa/gnuThreadPolicy.java, * gnu/CORBA/ServiceRequestAdapter.java, * gnu/CORBA/SetOverrideTypeHolder.java, * gnu/CORBA/SimpleDelegate.java, * gnu/CORBA/SocketRepository.java, * gnu/CORBA/StreamHolder.java, * gnu/CORBA/TypeCodeHelper.java, * gnu/CORBA/TypeKindNamer.java, * gnu/CORBA/Version.java, * gnu/CORBA/_PolicyImplBase.java, * gnu/CORBA/gnuAny.java, * gnu/CORBA/gnuCodecFactory.java, * gnu/CORBA/gnuEnvironment.java, * gnu/CORBA/gnuRequest.java, * gnu/CORBA/gnuValueHolder.java, * gnu/CORBA/interfaces/SocketFactory.java, * gnu/CORBA/typecodes/AliasTypeCode.java, * gnu/CORBA/typecodes/ArrayTypeCode.java, * gnu/CORBA/typecodes/FixedTypeCode.java, * gnu/CORBA/typecodes/GeneralTypeCode.java, * gnu/CORBA/typecodes/PrimitiveTypeCode.java, * gnu/CORBA/typecodes/RecordTypeCode.java, * gnu/CORBA/typecodes/RecursiveTypeCode.java, * gnu/CORBA/typecodes/StringTypeCode.java, * gnu/classpath/Pair.java, * gnu/classpath/Pointer.java, * gnu/classpath/Pointer32.java, * gnu/classpath/Pointer64.java, * gnu/classpath/ServiceFactory.java, * gnu/classpath/ServiceProviderLoadingAction.java, * gnu/classpath/SystemProperties.java, * gnu/classpath/debug/Component.java, * gnu/classpath/debug/PreciseFilter.java, * gnu/classpath/debug/SystemLogger.java, * gnu/classpath/debug/TeeInputStream.java, * gnu/classpath/debug/TeeReader.java, * gnu/classpath/jdwp/Jdwp.java, * gnu/classpath/jdwp/JdwpConstants.java, * gnu/classpath/jdwp/event/BreakpointEvent.java, * gnu/classpath/jdwp/event/ClassPrepareEvent.java, * gnu/classpath/jdwp/event/ClassUnloadEvent.java, * gnu/classpath/jdwp/event/Event.java, * gnu/classpath/jdwp/event/EventManager.java, * gnu/classpath/jdwp/event/EventRequest.java, * gnu/classpath/jdwp/event/ExceptionEvent.java, * gnu/classpath/jdwp/event/MethodEntryEvent.java, * gnu/classpath/jdwp/event/MethodExitEvent.java, * gnu/classpath/jdwp/event/SingleStepEvent.java, * gnu/classpath/jdwp/event/ThreadEndEvent.java, * gnu/classpath/jdwp/event/VmDeathEvent.java, * gnu/classpath/jdwp/event/VmInitEvent.java, * gnu/classpath/jdwp/event/filters/ClassExcludeFilter.java, * gnu/classpath/jdwp/event/filters/ClassMatchFilter.java, * gnu/classpath/jdwp/event/filters/ClassOnlyFilter.java, * gnu/classpath/jdwp/event/filters/ExceptionOnlyFilter.java, * gnu/classpath/jdwp/event/filters/FieldOnlyFilter.java, * gnu/classpath/jdwp/event/filters/InstanceOnlyFilter.java, * gnu/classpath/jdwp/event/filters/StepFilter.java, * gnu/classpath/jdwp/event/filters/ThreadOnlyFilter.java, * gnu/classpath/jdwp/exception/InvalidClassException.java, * gnu/classpath/jdwp/exception/InvalidClassLoaderException.java, * gnu/classpath/jdwp/exception/InvalidEventTypeException.java, * gnu/classpath/jdwp/exception/InvalidFieldException.java, * gnu/classpath/jdwp/exception/InvalidFrameException.java, * gnu/classpath/jdwp/exception/InvalidLocationException.java, * gnu/classpath/jdwp/exception/InvalidMethodException.java, * gnu/classpath/jdwp/exception/InvalidObjectException.java, * gnu/classpath/jdwp/exception/InvalidSlotException.java, * gnu/classpath/jdwp/exception/InvalidStringException.java, * gnu/classpath/jdwp/exception/InvalidThreadException.java, * gnu/classpath/jdwp/exception/InvalidThreadGroupException.java, * gnu/classpath/jdwp/exception/NativeMethodException.java, * gnu/classpath/jdwp/exception/NotImplementedException.java, * gnu/classpath/jdwp/id/JdwpId.java, * gnu/classpath/jdwp/id/NullObjectId.java, * gnu/classpath/jdwp/processor/ArrayReferenceCommandSet.java, * gnu/classpath/jdwp/processor/ArrayTypeCommandSet.java, * gnu/classpath/jdwp/processor/ClassLoaderReferenceCommandSet.java, * gnu/classpath/jdwp/processor/ClassObjectReferenceCommandSet.java, * gnu/classpath/jdwp/processor/ClassTypeCommandSet.java, * gnu/classpath/jdwp/processor/CommandSet.java, * gnu/classpath/jdwp/processor/EventRequestCommandSet.java, * gnu/classpath/jdwp/processor/FieldCommandSet.java, * gnu/classpath/jdwp/processor/InterfaceTypeCommandSet.java, * gnu/classpath/jdwp/processor/MethodCommandSet.java, * gnu/classpath/jdwp/processor/ObjectReferenceCommandSet.java, * gnu/classpath/jdwp/processor/PacketProcessor.java, * gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java, * gnu/classpath/jdwp/processor/StackFrameCommandSet.java, * gnu/classpath/jdwp/processor/StringReferenceCommandSet.java, * gnu/classpath/jdwp/processor/ThreadGroupReferenceCommandSet.java, * gnu/classpath/jdwp/processor/ThreadReferenceCommandSet.java, * gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java, * gnu/classpath/jdwp/transport/JdwpCommandPacket.java, * gnu/classpath/jdwp/transport/JdwpConnection.java, * gnu/classpath/jdwp/transport/JdwpPacket.java, * gnu/classpath/jdwp/transport/JdwpReplyPacket.java, * gnu/classpath/jdwp/transport/SocketTransport.java, * gnu/classpath/jdwp/transport/TransportFactory.java, * gnu/classpath/jdwp/util/JdwpString.java, * gnu/classpath/jdwp/util/LineTable.java, * gnu/classpath/jdwp/util/Location.java, * gnu/classpath/jdwp/util/MethodResult.java, * gnu/classpath/jdwp/util/MonitorInfo.java, * gnu/classpath/jdwp/util/Signature.java, * gnu/classpath/jdwp/util/VariableTable.java, * gnu/classpath/jdwp/value/ArrayValue.java, * gnu/classpath/jdwp/value/BooleanValue.java, * gnu/classpath/jdwp/value/ByteValue.java, * gnu/classpath/jdwp/value/CharValue.java, * gnu/classpath/jdwp/value/DoubleValue.java, * gnu/classpath/jdwp/value/FloatValue.java, * gnu/classpath/jdwp/value/IntValue.java, * gnu/classpath/jdwp/value/LongValue.java, * gnu/classpath/jdwp/value/ObjectValue.java, * gnu/classpath/jdwp/value/ShortValue.java, * gnu/classpath/jdwp/value/StringValue.java, * gnu/classpath/jdwp/value/Value.java, * gnu/classpath/jdwp/value/ValueFactory.java, * gnu/classpath/jdwp/value/VoidValue.java, * gnu/classpath/toolkit/DefaultDaemonThreadFactory.java, * gnu/java/awt/AWTUtilities.java, * gnu/java/awt/BitMaskExtent.java, * gnu/java/awt/BitwiseXORComposite.java, * gnu/java/awt/Buffers.java, * gnu/java/awt/ClasspathGraphicsEnvironment.java, * gnu/java/awt/ClasspathToolkit.java, * gnu/java/awt/ComponentDataBlitOp.java, * gnu/java/awt/EmbeddedWindow.java, * gnu/java/awt/GradientPaintContext.java, * gnu/java/awt/color/CieXyzConverter.java, * gnu/java/awt/color/ClutProfileConverter.java, * gnu/java/awt/color/ColorLookUpTable.java, * gnu/java/awt/color/GrayProfileConverter.java, * gnu/java/awt/color/GrayScaleConverter.java, * gnu/java/awt/color/LinearRGBConverter.java, * gnu/java/awt/color/ProfileHeader.java, * gnu/java/awt/color/RgbProfileConverter.java, * gnu/java/awt/color/SrgbConverter.java, * gnu/java/awt/color/ToneReproductionCurve.java, * gnu/java/awt/dnd/GtkMouseDragGestureRecognizer.java, * gnu/java/awt/dnd/peer/gtk/GtkDragSourceContextPeer.java, * gnu/java/awt/dnd/peer/gtk/GtkDropTargetContextPeer.java, * gnu/java/awt/dnd/peer/gtk/GtkDropTargetPeer.java, * gnu/java/awt/font/FontDelegate.java, * gnu/java/awt/font/FontFactory.java, * gnu/java/awt/font/GNUGlyphVector.java, * gnu/java/awt/font/OpenTypeFontPeer.java, * gnu/java/awt/font/autofit/GlyphHints.java, * gnu/java/awt/font/autofit/Latin.java, * gnu/java/awt/font/autofit/Utils.java, * gnu/java/awt/font/opentype/CharGlyphMap.java, * gnu/java/awt/font/opentype/GlyphNamer.java, * gnu/java/awt/font/opentype/MacResourceFork.java, * gnu/java/awt/font/opentype/NameDecoder.java, * gnu/java/awt/font/opentype/OpenTypeFont.java, * gnu/java/awt/font/opentype/OpenTypeFontFactory.java, * gnu/java/awt/font/opentype/truetype/GlyphLoader.java, * gnu/java/awt/font/opentype/truetype/GlyphLocator.java, * gnu/java/awt/font/opentype/truetype/GlyphMeasurer.java, * gnu/java/awt/font/opentype/truetype/Point.java, * gnu/java/awt/font/opentype/truetype/TrueTypeScaler.java, * gnu/java/awt/font/opentype/truetype/VirtualMachine.java, * gnu/java/awt/font/opentype/truetype/Zone.java, * gnu/java/awt/font/opentype/truetype/ZonePathIterator.java, * gnu/java/awt/image/AsyncImage.java, * gnu/java/awt/image/ImageConverter.java, * gnu/java/awt/image/ImageDecoder.java, * gnu/java/awt/image/XBMDecoder.java, * gnu/java/awt/java2d/AbstractGraphics2D.java, * gnu/java/awt/java2d/AlphaCompositeContext.java, * gnu/java/awt/java2d/CubicSegment.java, * gnu/java/awt/java2d/LineSegment.java, * gnu/java/awt/java2d/PixelCoverage.java, * gnu/java/awt/java2d/QuadSegment.java, * gnu/java/awt/java2d/RasterGraphics.java, * gnu/java/awt/java2d/ScanlineConverter.java, * gnu/java/awt/java2d/ScanlineCoverage.java, * gnu/java/awt/java2d/Segment.java, * gnu/java/awt/java2d/TexturePaintContext.java, * gnu/java/awt/peer/ClasspathDesktopPeer.java, * gnu/java/awt/peer/ClasspathFontPeer.java, * gnu/java/awt/peer/GLightweightPeer.java, * gnu/java/awt/peer/GnomeDesktopPeer.java, * gnu/java/awt/peer/KDEDesktopPeer.java, * gnu/java/awt/peer/gtk/AsyncImage.java, * gnu/java/awt/peer/gtk/BufferedImageGraphics.java, * gnu/java/awt/peer/gtk/CairoGraphics2D.java, * gnu/java/awt/peer/gtk/CairoSurface.java, * gnu/java/awt/peer/gtk/CairoSurfaceGraphics.java, * gnu/java/awt/peer/gtk/ComponentGraphics.java, * gnu/java/awt/peer/gtk/ComponentGraphicsCopy.java, * gnu/java/awt/peer/gtk/FreetypeGlyphVector.java, * gnu/java/awt/peer/gtk/GdkFontPeer.java, * gnu/java/awt/peer/gtk/GdkGraphicsConfiguration.java, * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java, * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java, * gnu/java/awt/peer/gtk/GdkRobotPeer.java, * gnu/java/awt/peer/gtk/GdkScreenGraphicsDevice.java, * gnu/java/awt/peer/gtk/GtkButtonPeer.java, * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java, * gnu/java/awt/peer/gtk/GtkChoicePeer.java, * gnu/java/awt/peer/gtk/GtkClipboard.java, * gnu/java/awt/peer/gtk/GtkComponentPeer.java, * gnu/java/awt/peer/gtk/GtkContainerPeer.java, * gnu/java/awt/peer/gtk/GtkCursor.java, * gnu/java/awt/peer/gtk/GtkDialogPeer.java, * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java, * gnu/java/awt/peer/gtk/GtkFramePeer.java, * gnu/java/awt/peer/gtk/GtkGenericPeer.java, * gnu/java/awt/peer/gtk/GtkImage.java, * gnu/java/awt/peer/gtk/GtkImageConsumer.java, * gnu/java/awt/peer/gtk/GtkLabelPeer.java, * gnu/java/awt/peer/gtk/GtkListPeer.java, * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java, * gnu/java/awt/peer/gtk/GtkMenuPeer.java, * gnu/java/awt/peer/gtk/GtkMouseInfoPeer.java, * gnu/java/awt/peer/gtk/GtkPanelPeer.java, * gnu/java/awt/peer/gtk/GtkPopupMenuPeer.java, * gnu/java/awt/peer/gtk/GtkScrollbarPeer.java, * gnu/java/awt/peer/gtk/GtkSelection.java, * gnu/java/awt/peer/gtk/GtkToolkit.java, * gnu/java/awt/peer/gtk/GtkVolatileImage.java, * gnu/java/awt/peer/gtk/GtkWindowPeer.java, * gnu/java/awt/peer/gtk/VolatileImageGraphics.java, * gnu/java/awt/peer/headless/HeadlessGraphicsEnvironment.java, * gnu/java/awt/peer/qt/MainQtThread.java, * gnu/java/awt/peer/qt/QMatrix.java, * gnu/java/awt/peer/qt/QPainterPath.java, * gnu/java/awt/peer/qt/QPen.java, * gnu/java/awt/peer/qt/QtAudioClip.java, * gnu/java/awt/peer/qt/QtButtonPeer.java, * gnu/java/awt/peer/qt/QtCheckboxPeer.java, * gnu/java/awt/peer/qt/QtChoicePeer.java, * gnu/java/awt/peer/qt/QtComponentGraphics.java, * gnu/java/awt/peer/qt/QtComponentPeer.java, * gnu/java/awt/peer/qt/QtContainerPeer.java, * gnu/java/awt/peer/qt/QtDialogPeer.java, * gnu/java/awt/peer/qt/QtEmbeddedWindowPeer.java, * gnu/java/awt/peer/qt/QtFileDialogPeer.java, * gnu/java/awt/peer/qt/QtFontMetrics.java, * gnu/java/awt/peer/qt/QtFontPeer.java, * gnu/java/awt/peer/qt/QtFramePeer.java, * gnu/java/awt/peer/qt/QtGraphics.java, * gnu/java/awt/peer/qt/QtGraphicsEnvironment.java, * gnu/java/awt/peer/qt/QtImage.java, * gnu/java/awt/peer/qt/QtImageConsumer.java, * gnu/java/awt/peer/qt/QtImageDirectGraphics.java, * gnu/java/awt/peer/qt/QtImageGraphics.java, * gnu/java/awt/peer/qt/QtLabelPeer.java, * gnu/java/awt/peer/qt/QtListPeer.java, * gnu/java/awt/peer/qt/QtMenuBarPeer.java, * gnu/java/awt/peer/qt/QtMenuComponentPeer.java, * gnu/java/awt/peer/qt/QtMenuItemPeer.java, * gnu/java/awt/peer/qt/QtMenuPeer.java, * gnu/java/awt/peer/qt/QtPanelPeer.java, * gnu/java/awt/peer/qt/QtPopupMenuPeer.java, * gnu/java/awt/peer/qt/QtRepaintThread.java, * gnu/java/awt/peer/qt/QtScreenDevice.java, * gnu/java/awt/peer/qt/QtScreenDeviceConfiguration.java, * gnu/java/awt/peer/qt/QtScrollPanePeer.java, * gnu/java/awt/peer/qt/QtScrollbarPeer.java, * gnu/java/awt/peer/qt/QtTextAreaPeer.java, * gnu/java/awt/peer/qt/QtTextFieldPeer.java, * gnu/java/awt/peer/qt/QtToolkit.java, * gnu/java/awt/peer/qt/QtVolatileImage.java, * gnu/java/awt/peer/qt/QtWindowPeer.java, * gnu/java/awt/peer/swing/SwingButtonPeer.java, * gnu/java/awt/peer/swing/SwingCheckboxPeer.java, * gnu/java/awt/peer/swing/SwingComponent.java, * gnu/java/awt/peer/swing/SwingComponentPeer.java, * gnu/java/awt/peer/swing/SwingContainerPeer.java, * gnu/java/awt/peer/swing/SwingLabelPeer.java, * gnu/java/awt/peer/swing/SwingListPeer.java, * gnu/java/awt/peer/swing/SwingMenuItemPeer.java, * gnu/java/awt/peer/swing/SwingMenuPeer.java, * gnu/java/awt/peer/swing/SwingTextAreaPeer.java, * gnu/java/awt/peer/swing/SwingTextFieldPeer.java, * gnu/java/awt/peer/x/GLGraphics.java, * gnu/java/awt/peer/x/KeyboardMapping.java, * gnu/java/awt/peer/x/XEventPump.java, * gnu/java/awt/peer/x/XFontPeer.java, * gnu/java/awt/peer/x/XFramePeer.java, * gnu/java/awt/peer/x/XGraphics2D.java, * gnu/java/awt/peer/x/XGraphicsConfiguration.java, * gnu/java/awt/peer/x/XGraphicsDevice.java, * gnu/java/awt/peer/x/XGraphicsEnvironment.java, * gnu/java/awt/peer/x/XImage.java, * gnu/java/awt/peer/x/XToolkit.java, * gnu/java/awt/peer/x/XWindowPeer.java, * gnu/java/awt/print/JavaPrinterGraphics.java, * gnu/java/awt/print/JavaPrinterJob.java, * gnu/java/awt/print/PostScriptGraphics2D.java, * gnu/java/awt/print/SpooledDocument.java, * gnu/java/beans/BeanInfoEmbryo.java, * gnu/java/beans/DefaultExceptionListener.java, * gnu/java/beans/ExplicitBeanInfo.java, * gnu/java/beans/IntrospectionIncubator.java, * gnu/java/beans/decoder/AbstractContext.java, * gnu/java/beans/decoder/AbstractCreatableObjectContext.java, * gnu/java/beans/decoder/AbstractElementHandler.java, * gnu/java/beans/decoder/AbstractObjectContext.java, * gnu/java/beans/decoder/ArrayContext.java, * gnu/java/beans/decoder/ArrayHandler.java, * gnu/java/beans/decoder/AssemblyException.java, * gnu/java/beans/decoder/BooleanHandler.java, * gnu/java/beans/decoder/ByteHandler.java, * gnu/java/beans/decoder/CharHandler.java, * gnu/java/beans/decoder/ClassHandler.java, * gnu/java/beans/decoder/ConstructorContext.java, * gnu/java/beans/decoder/Context.java, * gnu/java/beans/decoder/DecoderContext.java, * gnu/java/beans/decoder/DoubleHandler.java, * gnu/java/beans/decoder/DummyContext.java, * gnu/java/beans/decoder/DummyHandler.java, * gnu/java/beans/decoder/ElementHandler.java, * gnu/java/beans/decoder/FloatHandler.java, * gnu/java/beans/decoder/GrowableArrayContext.java, * gnu/java/beans/decoder/IndexContext.java, * gnu/java/beans/decoder/IntHandler.java, * gnu/java/beans/decoder/JavaHandler.java, * gnu/java/beans/decoder/LongHandler.java, * gnu/java/beans/decoder/MethodContext.java, * gnu/java/beans/decoder/MethodFinder.java, * gnu/java/beans/decoder/NullHandler.java, * gnu/java/beans/decoder/ObjectContext.java, * gnu/java/beans/decoder/ObjectHandler.java, * gnu/java/beans/decoder/PersistenceParser.java, * gnu/java/beans/decoder/PropertyContext.java, * gnu/java/beans/decoder/ShortHandler.java, * gnu/java/beans/decoder/SimpleHandler.java, * gnu/java/beans/decoder/StaticMethodContext.java, * gnu/java/beans/decoder/StringHandler.java, * gnu/java/beans/decoder/VoidHandler.java, * gnu/java/beans/editors/ColorEditor.java, * gnu/java/beans/editors/FontEditor.java, * gnu/java/beans/editors/NativeBooleanEditor.java, * gnu/java/beans/editors/NativeByteEditor.java, * gnu/java/beans/editors/NativeDoubleEditor.java, * gnu/java/beans/editors/NativeFloatEditor.java, * gnu/java/beans/editors/NativeIntEditor.java, * gnu/java/beans/editors/NativeLongEditor.java, * gnu/java/beans/editors/NativeShortEditor.java, * gnu/java/beans/editors/StringEditor.java, * gnu/java/beans/encoder/ArrayPersistenceDelegate.java, * gnu/java/beans/encoder/ClassPersistenceDelegate.java, * gnu/java/beans/encoder/CollectionPersistenceDelegate.java, * gnu/java/beans/encoder/Context.java, * gnu/java/beans/encoder/GenericScannerState.java, * gnu/java/beans/encoder/IgnoringScannerState.java, * gnu/java/beans/encoder/MapPersistenceDelegate.java, * gnu/java/beans/encoder/ObjectId.java, * gnu/java/beans/encoder/PrimitivePersistenceDelegate.java, * gnu/java/beans/encoder/ReportingScannerState.java, * gnu/java/beans/encoder/Root.java, * gnu/java/beans/encoder/ScanEngine.java, * gnu/java/beans/encoder/ScannerState.java, * gnu/java/beans/encoder/StAXWriter.java, * gnu/java/beans/encoder/Writer.java, * gnu/java/beans/encoder/elements/ArrayInstantiation.java, * gnu/java/beans/encoder/elements/Array_Get.java, * gnu/java/beans/encoder/elements/ClassResolution.java, * gnu/java/beans/encoder/elements/Element.java, * gnu/java/beans/encoder/elements/List_Get.java, * gnu/java/beans/encoder/elements/List_Set.java, * gnu/java/beans/encoder/elements/MethodInvocation.java, * gnu/java/beans/encoder/elements/NullObject.java, * gnu/java/beans/encoder/elements/ObjectInstantiation.java, * gnu/java/beans/encoder/elements/ObjectReference.java, * gnu/java/beans/encoder/elements/PrimitiveInstantiation.java, * gnu/java/beans/encoder/elements/StaticFieldAccess.java, * gnu/java/beans/encoder/elements/StaticMethodInvocation.java, * gnu/java/beans/encoder/elements/StringReference.java, * gnu/java/io/ASN1ParsingException.java, * gnu/java/io/Base64InputStream.java, * gnu/java/io/ClassLoaderObjectInputStream.java, * gnu/java/io/NullOutputStream.java, * gnu/java/io/ObjectIdentityMap2Int.java, * gnu/java/io/ObjectIdentityWrapper.java, * gnu/java/io/PlatformHelper.java, * gnu/java/lang/CPStringBuilder.java, * gnu/java/lang/CharData.java, * gnu/java/lang/InstrumentationImpl.java, * gnu/java/lang/MainThread.java, * gnu/java/lang/management/BeanImpl.java, * gnu/java/lang/management/ClassLoadingMXBeanImpl.java, * gnu/java/lang/management/CompilationMXBeanImpl.java, * gnu/java/lang/management/GarbageCollectorMXBeanImpl.java, * gnu/java/lang/management/MemoryMXBeanImpl.java, * gnu/java/lang/management/MemoryManagerMXBeanImpl.java, * gnu/java/lang/management/MemoryPoolMXBeanImpl.java, * gnu/java/lang/management/OperatingSystemMXBeanImpl.java, * gnu/java/lang/management/RuntimeMXBeanImpl.java, * gnu/java/lang/management/ThreadMXBeanImpl.java, * gnu/java/lang/reflect/TypeSignature.java, * gnu/java/locale/LocaleHelper.java, * gnu/java/math/Fixed.java, * gnu/java/math/GMP.java, * gnu/java/math/MPN.java, * gnu/java/net/CRLFInputStream.java, * gnu/java/net/CRLFOutputStream.java, * gnu/java/net/DefaultContentHandlerFactory.java, * gnu/java/net/DefaultProxySelector.java, * gnu/java/net/EmptyX509TrustManager.java, * gnu/java/net/GetLocalHostAction.java, * gnu/java/net/HeaderFieldHelper.java, * gnu/java/net/IndexListParser.java, * gnu/java/net/LineInputStream.java, * gnu/java/net/PlainDatagramSocketImpl.java, * gnu/java/net/PlainSocketImpl.java, * gnu/java/net/loader/FileResource.java, * gnu/java/net/loader/FileURLLoader.java, * gnu/java/net/loader/JarURLLoader.java, * gnu/java/net/loader/JarURLResource.java, * gnu/java/net/loader/RemoteResource.java, * gnu/java/net/loader/RemoteURLLoader.java, * gnu/java/net/loader/Resource.java, * gnu/java/net/loader/URLLoader.java, * gnu/java/net/protocol/file/Connection.java, * gnu/java/net/protocol/file/Handler.java, * gnu/java/net/protocol/ftp/ActiveModeDTP.java, * gnu/java/net/protocol/ftp/BlockInputStream.java, * gnu/java/net/protocol/ftp/BlockOutputStream.java, * gnu/java/net/protocol/ftp/CompressedInputStream.java, * gnu/java/net/protocol/ftp/CompressedOutputStream.java, * gnu/java/net/protocol/ftp/DTP.java, * gnu/java/net/protocol/ftp/DTPInputStream.java, * gnu/java/net/protocol/ftp/DTPOutputStream.java, * gnu/java/net/protocol/ftp/FTPConnection.java, * gnu/java/net/protocol/ftp/FTPException.java, * gnu/java/net/protocol/ftp/FTPResponse.java, * gnu/java/net/protocol/ftp/FTPURLConnection.java, * gnu/java/net/protocol/ftp/Handler.java, * gnu/java/net/protocol/ftp/PassiveModeDTP.java, * gnu/java/net/protocol/ftp/StreamInputStream.java, * gnu/java/net/protocol/ftp/StreamOutputStream.java, * gnu/java/net/protocol/http/Authenticator.java, * gnu/java/net/protocol/http/ByteArrayRequestBodyWriter.java, * gnu/java/net/protocol/http/ChunkedInputStream.java, * gnu/java/net/protocol/http/Cookie.java, * gnu/java/net/protocol/http/CookieManager.java, * gnu/java/net/protocol/http/Credentials.java, * gnu/java/net/protocol/http/HTTPConnection.java, * gnu/java/net/protocol/http/HTTPDateFormat.java, * gnu/java/net/protocol/http/HTTPURLConnection.java, * gnu/java/net/protocol/http/Handler.java, * gnu/java/net/protocol/http/Headers.java, * gnu/java/net/protocol/http/Request.java, * gnu/java/net/protocol/http/RequestBodyWriter.java, * gnu/java/net/protocol/http/Response.java, * gnu/java/net/protocol/http/ResponseHeaderHandler.java, * gnu/java/net/protocol/http/SimpleCookieManager.java, * gnu/java/net/protocol/https/Handler.java, * gnu/java/net/protocol/jar/Connection.java, * gnu/java/net/protocol/jar/Handler.java, * gnu/java/nio/ChannelInputStream.java, * gnu/java/nio/ChannelOutputStream.java, * gnu/java/nio/ChannelReader.java, * gnu/java/nio/ChannelWriter.java, * gnu/java/nio/DatagramChannelImpl.java, * gnu/java/nio/DatagramChannelSelectionKey.java, * gnu/java/nio/EpollSelectionKeyImpl.java, * gnu/java/nio/EpollSelectorImpl.java, * gnu/java/nio/FileChannelImpl.java, * gnu/java/nio/FileLockImpl.java, * gnu/java/nio/InputStreamChannel.java, * gnu/java/nio/KqueueSelectionKeyImpl.java, * gnu/java/nio/KqueueSelectorImpl.java, * gnu/java/nio/NIODatagramSocket.java, * gnu/java/nio/NIOServerSocket.java, * gnu/java/nio/NIOSocket.java, * gnu/java/nio/NIOSocketImpl.java, * gnu/java/nio/OutputStreamChannel.java, * gnu/java/nio/PipeImpl.java, * gnu/java/nio/SelectionKeyImpl.java, * gnu/java/nio/SelectorImpl.java, * gnu/java/nio/SelectorProviderImpl.java, * gnu/java/nio/ServerSocketChannelImpl.java, * gnu/java/nio/ServerSocketChannelSelectionKey.java, * gnu/java/nio/SocketChannelImpl.java, * gnu/java/nio/SocketChannelSelectionKey.java, * gnu/java/nio/SocketChannelSelectionKeyImpl.java, * gnu/java/nio/VMChannelOwner.java, * gnu/java/nio/charset/ByteCharset.java, * gnu/java/nio/charset/ByteDecodeLoopHelper.java, * gnu/java/nio/charset/ByteEncodeLoopHelper.java, * gnu/java/nio/charset/Cp424.java, * gnu/java/nio/charset/Cp437.java, * gnu/java/nio/charset/Cp737.java, * gnu/java/nio/charset/Cp775.java, * gnu/java/nio/charset/Cp850.java, * gnu/java/nio/charset/Cp852.java, * gnu/java/nio/charset/Cp855.java, * gnu/java/nio/charset/Cp857.java, * gnu/java/nio/charset/Cp860.java, * gnu/java/nio/charset/Cp861.java, * gnu/java/nio/charset/Cp862.java, * gnu/java/nio/charset/Cp863.java, * gnu/java/nio/charset/Cp864.java, * gnu/java/nio/charset/Cp865.java, * gnu/java/nio/charset/Cp866.java, * gnu/java/nio/charset/Cp869.java, * gnu/java/nio/charset/Cp874.java, * gnu/java/nio/charset/EncodingHelper.java, * gnu/java/nio/charset/ISO_8859_1.java, * gnu/java/nio/charset/ISO_8859_13.java, * gnu/java/nio/charset/ISO_8859_15.java, * gnu/java/nio/charset/ISO_8859_2.java, * gnu/java/nio/charset/ISO_8859_3.java, * gnu/java/nio/charset/ISO_8859_4.java, * gnu/java/nio/charset/ISO_8859_5.java, * gnu/java/nio/charset/ISO_8859_6.java, * gnu/java/nio/charset/ISO_8859_7.java, * gnu/java/nio/charset/ISO_8859_8.java, * gnu/java/nio/charset/ISO_8859_9.java, * gnu/java/nio/charset/KOI_8.java, * gnu/java/nio/charset/MS874.java, * gnu/java/nio/charset/MacCentralEurope.java, * gnu/java/nio/charset/MacCroatian.java, * gnu/java/nio/charset/MacCyrillic.java, * gnu/java/nio/charset/MacDingbat.java, * gnu/java/nio/charset/MacGreek.java, * gnu/java/nio/charset/MacIceland.java, * gnu/java/nio/charset/MacRoman.java, * gnu/java/nio/charset/MacRomania.java, * gnu/java/nio/charset/MacSymbol.java, * gnu/java/nio/charset/MacThai.java, * gnu/java/nio/charset/MacTurkish.java, * gnu/java/
* Add generic types to IppResponse and IppPrintServiceAndrew John Hughes2010-04-2810-114/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2010-04-28 Andrew John Hughes <ahughes@redhat.com> * gnu/javax/print/ipp/IppPrintService.java: (printerAttr): Add generic typing. (printServiceAttributeListener): Likewise. (flavors): Likewise. (printerUris): Likewise. (IppPrintService(URI uri, String username, String password)): Use generic types in initialising listener set. (getPrinterAttributes()): Add generic types. Remove cast. (getPrinterAttributeSet(Class<T>)): Return a set containing attributes of type T. Now creates a new set and checks that all elements of the original set can be cast and added to this new set. (getPrinterDefaultAttribute(Class<? extends Attribute>)): Add generic types. (processResponse()): Add generic types. (getAttribute(Class<T>)): Use generic types corresponding to parent interface. (getSupportedAttributeCategories()): Use generic types. (getSupportedAttributeValues()): Likewise. (handleSupportedAttributeValuesResponse(IppResponse,Class<? extends Attribute>)): Likewise. (isAttributeCategorySupported(Class<? extends Attribute>)): Likewise. * gnu/javax/print/ipp/IppResponse.java: (parseResponse(InputStream)): Use generic types. (parseAttributes(Map<Class<? extends Attribute>, Set<Attribute>, DataInputStream)): Likewise. (addAttribute(Map<Class<? extends Attribute>, Set<Attribute>>, Attribute): Likewise. (IppResponse(URI, short)): Create lists with appropriate type parameters. (getJobAttributes()): Use generic return type. (getOperationAttributes()): Likewise. (getPrinterAttributes()): Likewise. (getUnsupportedAttributes()): Likewise. * gnu/javax/print/ipp/attribute/supported/CompressionSupported.java: (getAssociatedAttributeArray(Set<Attribute>)): Use superclass Attribute as set type parameter and cast when looping over it. * gnu/javax/print/ipp/attribute/supported/FinishingsSupported.java, (getAssociatedAttributeArray(Set<Attribute>)): Use superclass Attribute as set type parameter and cast when looping over it. * gnu/javax/print/ipp/attribute/supported/JobSheetsSupported.java, (getAssociatedAttributeArray(Set<Attribute>)): Use superclass Attribute as set type parameter and cast when looping over it. * gnu/javax/print/ipp/attribute/supported/MediaSupported.java, (getAssociatedAttributeArray(Set<Attribute>)): Use superclass Attribute as set type parameter and cast when looping over it. * gnu/javax/print/ipp/attribute/supported/MultipleDocumentHandlingSupported.java, (getAssociatedAttributeArray(Set<Attribute>)): Use superclass Attribute as set type parameter and cast when looping over it. * gnu/javax/print/ipp/attribute/supported/OrientationRequestedSupported.java, (getAssociatedAttributeArray(Set<Attribute>)): Use superclass Attribute as set type parameter and cast when looping over it. * gnu/javax/print/ipp/attribute/supported/PrintQualitySupported.java, (getAssociatedAttributeArray(Set<Attribute>)): Use superclass Attribute as set type parameter and cast when looping over it. * gnu/javax/print/ipp/attribute/supported/PrinterResolutionSupported.java, (getAssociatedAttributeArray(Set<Attribute>)): Use superclass Attribute as set type parameter and cast when looping over it.
* Add generic types.Andrew John Hughes2010-04-271-16/+18
| | | | | | | | | | | | | | | | | 2010-04-28 Andrew John Hughes <ahughes@redhat.com> * gnu/javax/print/ipp/IppUtilities.java: (INTEGER_CLASS_ARRAY): Use generic typing. (TEXT_CLASS_ARRAY): Likewise. (classesByName): Likewise. (instanceByClass): Likewise. (getClass(String)): Remove cast. Return generic type. (getSupportedAttrName(Class<? extends Attribute>)): Remove cast. Add generic type to parameter. (getSupportedCategory(Class<?> extends Attribute>)): Likewise. (getEnumAttribute(String,Object)): Add missing generic types on Class. (getIntegerAttribute(String,int)): Likewise and on Constructor. (getTextAttribute(String,byte,byte[])): Likewise.
* Fix return value of getCategory() and mutability of private variables in ↵Andrew John Hughes2010-04-2736-45/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RequestedAttributes.java. 2010-04-27 Andrew John Hughes <ahughes@redhat.com> * gnu/javax/print/ipp/IppRequest.java: (write(RequestedAttributes)): Fix for change in return value of RequestedAttributes.getValues(). * gnu/javax/print/ipp/attribute/DetailedStatusMessage.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/DocumentAccessError.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/RequestedAttributes.java: (RequestedAttributes()): Use appropriate generic type with attributes ArrayList. (getValues()): Return an array-based snapshot of the current state of attributes rather than providing direct mutable access to it. * gnu/javax/print/ipp/attribute/StatusMessage.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/UnknownAttribute.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/defaults/CopiesDefault.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/defaults/DocumentFormatDefault.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/defaults/FinishingsDefault.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/defaults/JobHoldUntilDefault.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/defaults/JobPriorityDefault.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/defaults/JobSheetsDefault.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/defaults/MediaDefault.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/defaults/MultipleDocumentHandlingDefault.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/defaults/NumberUpDefault.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/defaults/OrientationRequestedDefault.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/defaults/PrintQualityDefault.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/defaults/PrinterResolutionDefault.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/defaults/SidesDefault.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/job/AttributesCharset.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/job/AttributesNaturalLanguage.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/job/JobDetailedStatusMessages.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/job/JobDocumentAccessErrors.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/job/JobId.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/job/JobMoreInfo.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/job/JobPrinterUri.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/job/JobStateMessage.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/job/JobUri.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/printer/CharsetConfigured.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/printer/DocumentFormat.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/printer/MultipleOperationTimeOut.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/printer/NaturalLanguageConfigured.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/printer/PrinterCurrentTime.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/printer/PrinterDriverInstaller.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/printer/PrinterStateMessage.java: (getCategory()): Fix return value. * gnu/javax/print/ipp/attribute/printer/PrinterUpTime.java: (getCategory()): Fix return value.
* Normalise whitespace usage.Andrew John Hughes2010-04-2757-1317/+1317
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2010-04-27 Andrew John Hughes <ahughes@redhat.com> * gnu/javax/print/CupsIppOperation.java, * gnu/javax/print/CupsMediaMapping.java, * gnu/javax/print/CupsPrintService.java, * gnu/javax/print/CupsPrintServiceLookup.java, * gnu/javax/print/CupsServer.java, * gnu/javax/print/PrintAttributeException.java, * gnu/javax/print/PrintFlavorException.java, * gnu/javax/print/PrintUriException.java, * gnu/javax/print/PrinterDialog.java, * gnu/javax/print/ipp/DocPrintJobImpl.java, * gnu/javax/print/ipp/IppDelimiterTag.java, * gnu/javax/print/ipp/IppException.java, * gnu/javax/print/ipp/IppMultiDocPrintService.java, * gnu/javax/print/ipp/IppRequest.java, * gnu/javax/print/ipp/IppResponse.java, * gnu/javax/print/ipp/IppStatusCode.java, * gnu/javax/print/ipp/IppUtilities.java, * gnu/javax/print/ipp/IppValueTag.java, * gnu/javax/print/ipp/MultiDocPrintJobImpl.java, * gnu/javax/print/ipp/attribute/CharsetSyntax.java, * gnu/javax/print/ipp/attribute/DefaultValueAttribute.java, * gnu/javax/print/ipp/attribute/DetailedStatusMessage.java, * gnu/javax/print/ipp/attribute/DocumentAccessError.java, * gnu/javax/print/ipp/attribute/NaturalLanguageSyntax.java, * gnu/javax/print/ipp/attribute/RequestedAttributes.java, * gnu/javax/print/ipp/attribute/StatusMessage.java, * gnu/javax/print/ipp/attribute/UnknownAttribute.java, * gnu/javax/print/ipp/attribute/defaults/CopiesDefault.java, * gnu/javax/print/ipp/attribute/defaults/DocumentFormatDefault.java, * gnu/javax/print/ipp/attribute/defaults/FinishingsDefault.java, * gnu/javax/print/ipp/attribute/defaults/JobHoldUntilDefault.java, * gnu/javax/print/ipp/attribute/defaults/JobPriorityDefault.java, * gnu/javax/print/ipp/attribute/defaults/JobSheetsDefault.java, * gnu/javax/print/ipp/attribute/defaults/MediaDefault.java, * gnu/javax/print/ipp/attribute/defaults/MultipleDocumentHandlingDefault.java, * gnu/javax/print/ipp/attribute/defaults/NumberUpDefault.java, * gnu/javax/print/ipp/attribute/defaults/OrientationRequestedDefault.java, * gnu/javax/print/ipp/attribute/defaults/PrintQualityDefault.java, * gnu/javax/print/ipp/attribute/defaults/PrinterResolutionDefault.java, * gnu/javax/print/ipp/attribute/defaults/SidesDefault.java, * gnu/javax/print/ipp/attribute/job/AttributesCharset.java, * gnu/javax/print/ipp/attribute/job/AttributesNaturalLanguage.java, * gnu/javax/print/ipp/attribute/job/JobDetailedStatusMessages.java, * gnu/javax/print/ipp/attribute/job/JobDocumentAccessErrors.java, * gnu/javax/print/ipp/attribute/job/JobId.java, * gnu/javax/print/ipp/attribute/job/JobMoreInfo.java, * gnu/javax/print/ipp/attribute/job/JobPrinterUri.java, * gnu/javax/print/ipp/attribute/job/JobStateMessage.java, * gnu/javax/print/ipp/attribute/job/JobUri.java, * gnu/javax/print/ipp/attribute/printer/CharsetConfigured.java, * gnu/javax/print/ipp/attribute/printer/DocumentFormat.java, * gnu/javax/print/ipp/attribute/printer/MultipleOperationTimeOut.java, * gnu/javax/print/ipp/attribute/printer/NaturalLanguageConfigured.java, * gnu/javax/print/ipp/attribute/printer/PrinterCurrentTime.java, * gnu/javax/print/ipp/attribute/printer/PrinterDriverInstaller.java, * gnu/javax/print/ipp/attribute/printer/PrinterStateMessage.java, * gnu/javax/print/ipp/attribute/printer/PrinterUpTime.java: Normalise whitespace; replace tabs with spaces and removing trailing whitespace.
* Fix getCategory and getAssociatedAttributeArray warnings. Whitespace cleanup.Andrew John Hughes2010-04-2721-613/+613
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2010-04-27 Andrew John Hughes <ahughes@redhat.com> * gnu/javax/print/ipp/IppPrintService.java: Fix whitespace. Use correct generic type for printerAttr map. (getPrinterAttributeSet(Class<? extends Attribute>)): Add appropriate generic type. * gnu/javax/print/ipp/attribute/supported/CharsetSupported.java: Fix whitespace. (getCategory()): Fix return type. * gnu/javax/print/ipp/attribute/supported/CompressionSupported.java: Fix whitespace. (getCategory()): Fix return type. (getAssociatedAttributeArray(Set<CompressionSupported>)): Add generic type to set and use for-each loop. * gnu/javax/print/ipp/attribute/supported/DocumentFormatSupported.java: Fix whitespace. (getCategory()): Fix return type. * gnu/javax/print/ipp/attribute/supported/FinishingsSupported.java: Fix whitespace. (getCategory()): Fix return type. (getAssociatedAttributeArray(Set<FinishingsSupported>)): Add generic type to set and use for-each loop. * gnu/javax/print/ipp/attribute/supported/GeneratedNaturalLanguageSupported.java: Fix whitespace. (getCategory()): Fix return type. * gnu/javax/print/ipp/attribute/supported/IppVersionsSupported.java: Fix whitespace. (getCategory()): Fix return type. * gnu/javax/print/ipp/attribute/supported/JobHoldUntilSupported.java: Fix whitespace. (getCategory()): Fix return type. * gnu/javax/print/ipp/attribute/supported/JobSheetsSupported.java: Fix whitespace. (getCategory()): Fix return type. (getAssociatedAttributeArray(Set<JobSheetsSupported>)): Add generic type to set and use for-each loop. * gnu/javax/print/ipp/attribute/supported/MediaSupported.java: Fix whitespace. (getCategory()): Fix return type. (getAssociatedAttributeArray(Set<MediaSupported>)): Add generic type to set and use for-each loop. * gnu/javax/print/ipp/attribute/supported/MultipleDocumentHandlingSupported.java: Fix whitespace. (getCategory()): Fix return type. (getAssociatedAttributeArray(Set<MultipleDocumentHandlingSupported>)): Add generic type to set and use for-each loop. * gnu/javax/print/ipp/attribute/supported/MultipleDocumentJobsSupported.java, Fix whitespace. (getCategory()): Fix return type. * gnu/javax/print/ipp/attribute/supported/OperationsSupported.java, Fix whitespace. (getCategory()): Fix return type. * gnu/javax/print/ipp/attribute/supported/OrientationRequestedSupported.java, Fix whitespace. (getCategory()): Fix return type. (getAssociatedAttributeArray(Set<OrientationRequestedSupported>)): Add generic type to set and use for-each loop. * gnu/javax/print/ipp/attribute/supported/PageRangesSupported.java, Fix whitespace. (getCategory()): Fix return type. * gnu/javax/print/ipp/attribute/supported/PrintQualitySupported.java, Fix whitespace. (getCategory()): Fix return type. (getAssociatedAttributeArray(Set<PrintQualitySupported>)): Add generic type to set and use for-each loop. * gnu/javax/print/ipp/attribute/supported/PrinterResolutionSupported.java, Fix whitespace. (getCategory()): Fix return type. (getAssociatedAttributeArray(Set<PrinterResolutionSupported>)): Add generic type to set and use for-each loop. * gnu/javax/print/ipp/attribute/supported/PrinterUriSupported.java, Fix whitespace. (getCategory()): Fix return type. * gnu/javax/print/ipp/attribute/supported/SidesSupported.java, Fix whitespace. (getCategory()): Fix return type. * gnu/javax/print/ipp/attribute/supported/UriAuthenticationSupported.java, Fix whitespace. (getCategory()): Fix return type. * gnu/javax/print/ipp/attribute/supported/UriSecuritySupported.java, Fix whitespace. (getCategory()): Fix return type.
* 2010-04-27 Andrew Haley <aph@redhat.com>Andrew Haley2010-04-273-5/+25
| | | | | | | | | | * gnu/javax/print/ipp/IppResponse.java (parseAttributes): Handle IppValueTag.UNKNOWN. * gnu/javax/print/ipp/IppRequest.java (writeOperationAttributes): Handle RequestedAttributes. * gnu/javax/print/ipp/IppPrintService.java (processResponse): Add DocFlavor.SERVICE_FORMATTED.PAGEABLE and DocFlavor.SERVICE_FORMATTED.PRINTABLE.
* 2009-08-14 Jakub Jelinek <jakub@redhat.com>Andrew Haley2009-08-141-0/+63
| | | | | | | * gnu/javax/swing/text/html/parser/HTML_401F.java (defineElements): Split this huge method into... (defineElements1, defineElements2, defineElements3, defineElements4, defineElements5, defineElements6): ... these smaller methods.
* More warning fixes.Andrew John Hughes2009-03-091-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-03-09 Andrew John Hughes <ahughes@redhat.com> * gnu/javax/swing/text/html/css/Selector.java: Use CPStringBuilder. Use typed list of maps rather than an array for type safety. * javax/swing/text/html/HTMLEditorKit.java, * javax/swing/text/html/HTMLWriter.java: Add generic typing where appropriate. * javax/swing/text/html/ImageView.java: Remove unused AttributeSet variables. * javax/swing/text/html/MinimalHTMLWriter.java: Switch to an ArrayDeque to avoid unnecessary internal synchronisation on a private variable. Add generic typing. * javax/swing/text/html/MultiAttributeSet.java: Add generic typing. * javax/swing/text/html/MultiStyle.java: Add generic typing, make class package-private as not part of the standard classes. * javax/swing/text/html/ObjectView.java, * javax/swing/text/html/StyleSheet.java: Add generic typing. * javax/swing/text/html/TableView.java: Remove unused variable. * javax/swing/tree/DefaultMutableTreeNode.java: Add generic typing, mute warnings where necessary. * javax/swing/tree/FixedHeightLayoutCache.java: Add generic typing. * javax/swing/tree/TreeNode.java: Mute warnings where necessary. * javax/swing/tree/VariableHeightLayoutCache.java, * javax/swing/undo/StateEdit.java, * javax/swing/undo/UndoableEditSupport.java, * org/ietf/jgss/GSSManager.java: Add generic typing.
* Fix typo and access to VMSecureRandom.Andrew John Hughes2009-02-031-1/+1
| | | | | | | | | | | | | | | | 2009-02-03 Andrew John Hughes <ahughes@redhat.com> PR classpath/38417: * gnu/java/security/jce/prng/SecureRandomAdapter.java: Remove unneeded import. * gnu/javax/crypto/jce/prng/FortunaImpl.java: Fix typo. * java/security/SecureRandom.java: Remove duplicate use of VMSecureRandom, call SecureRandomAdapter instead. * vm/reference/gnu/java/security/jce/prng/VMSecureRandom.java: Moved from java/security so SecureRandomAdapter can access it.
* 2009-01-22 Mario Torre <neugens@aicas.com>Andrew John Hughes2009-02-036-42/+53
| | | | | | | | | | | | | | | | | | | | | | | | | PR classpath/38417: * gnu/java/security/jce/prng/SecureRandomAdapter.java: (getSeed(int)): New; retrieve seed from source specified by securerandom.source property or failing that, use VMSecureRandom. * gnu/javax/crypto/jce/prng/ARCFourRandomSpi.java: (engineGenerateSeed(int)): Use SecureRandomAdapter. (engineNextBytes(byte[])): Initialise using new seed. * gnu/javax/crypto/jce/prng/CSPRNGSpi.java: (engineGenerateSeed(int)): Use SecureRandomAdapter. (engineNextBytes(byte[])): Initialise using new seed. * gnu/javax/crypto/jce/prng/FortunaImpl.java: (engineSetSeed(byte[])): Initialise with new seed if unused. (engineGenerateSeed(int)): Use SecureRandomAdapter. * gnu/javax/crypto/jce/prng/ICMRandomSpi.java: (engineGenerateSeed(int)): Use SecureRandomAdapter. (engineNextBytes(byte[])): Initialise using new seed. * gnu/javax/crypto/jce/prng/UMacRandomSpi.java: (engineGenerateSeed(int)): Use SecureRandomAdapter. (engineNextBytes(byte[])): Initialise using new seed. * gnu/javax/crypto/prng/ICMGenerator.java: (setup(Map)): Call fillBlock().
* Improve message for key size exception.Andrew John Hughes2008-11-161-1/+2
| | | | | | | 2008-11-16 Andrew John Hughes <gnu_andrew@member.fsf.org> * gnu/javax/crypto/jce/key/SecretKeyGeneratorImpl.java: (init(int,SecureRandom)): Improve exception message.
* Fix FindBugs issues.Andrew John Hughes2008-09-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 2008-09-01 Andrew John Hughes <gnu_andrew@member.fsf.org> * gnu/java/util/regex/RETokenStart.java: (getMaximumLength()): Add Override annotation. (matchThis(CharIndexed, REMatch)): Likewise. (returnsFixedLengthMatches()): Renamed from returnsFixedLengthmatches and added Override annotation. (findFixedLengthMatches(CharIndexed,REMatch,int)): Add Override annotation. (dump(CPStringBuilder)): Likewise. * gnu/javax/print/ipp/IppRequest.java: (RequestWriter.writeOperationAttributes(AttributeSet)): Throw exception, don't just create and drop it. * javax/management/MBeanServerPermission.java: (MBeanServerPermissionCollection.add(Permission)): Compare against individual Strings not the entire array, and store the result of replace. * javax/swing/text/html/StyleSheet.java: (setBaseFontSize(size)): Store result of trim().
* 2008-08-26 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-08-271-35/+36
| | | | | | | | | | | | | | | | | | | | | | | PR classpath/35487: * gnu/javax/management/Server.java: (beans): Change to ConcurrentHashMap. (defaultDomain): Make final. (outer): Likewise. (LazyListenersHolder): Added to wrap listeners, also now a ConcurrentHashMap, providing lazy initialisation safely. (sequenceNumber): Documented. (getBean(ObjectName)): Remove redundant cast. (addNotificationListener(ObjectName,NotificationListener, NotificationFilter,Object)): Remove map initialisation and use holder. (getObjectInstance(ObjectName)): Remove redundant cast. (registerMBean(Object,ObjectName)): Add bean atomically. (removeNotificationListener(ObjectName,NotificationListener)): Simplified. (removeNotificationListener(ObjectName,NotificationListener, NotificationFilter,Object)): Likewise. (notify(ObjectName,String)): Documented.
* 2008-08-26 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-08-271-32/+28
| | | | | * gnu/javax/management/Server.java: Genericised.
* 2008-08-26 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-08-261-21/+21
| | | | | * gnu/javax/management/Translator.java: Genericised.
* 2008-08-25 Mario Torre <neugens@aicas.com>Mario Torre2008-08-251-2/+3
| | | | | * gnu/javax/rmi/CORBA/RmiUtilities.java (readValue): check if sender is null to avoid NPE.
* Import GNU JAF.Andrew John Hughes2008-08-173-0/+338
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-17 Andrew John Hughes <gnu_andrew@member.fsf.org> * gnu/javax/activation/viewers/ImageViewer.java, * gnu/javax/activation/viewers/TextEditor.java, * gnu/javax/activation/viewers/TextViewer.java, * javax/activation/ActivationDataFlavor.java, * javax/activation/CommandInfo.java, * javax/activation/CommandMap.java, * javax/activation/CommandObject.java, * javax/activation/DataContentHandler.java, * javax/activation/DataContentHandlerFactory.java, * javax/activation/DataHandler.java, * javax/activation/DataHandlerDataSource.java, * javax/activation/DataSource.java, * javax/activation/DataSourceDataContentHandler.java, * javax/activation/FileDataSource.java, * javax/activation/FileTypeMap.java, * javax/activation/MailcapCommandMap.java, * javax/activation/MimeType.java, * javax/activation/MimeTypeParameterList.java, * javax/activation/MimeTypeParseException.java, * javax/activation/MimetypesFileTypeMap.java, * javax/activation/ObjectDataContentHandler.java, * javax/activation/URLDataSource.java, * javax/activation/UnsupportedDataTypeException.java, * javax/activation/package.html, * resource/META-INF/mailcap.default, * resource/META-INF/mimetypes.default: Import GNU JAF CVS as of 17/08/2008. 2006-04-25 Archit Shah <ashah@redhat.com> * javax/activation/MimeTypeParameterList.java: Insert ';' separator before parameter list. 2005-06-29 Xavier Poinsard <xpoinsard@openpricer.com> * javax/activation/ObjectDataContentHandler.java: Fixed typo. 2005-05-28 Chris Burdess <dog@bluezoo.org> * javax/activation/CommandMap.java, * javax/activation/MailcapCommandMap.java: Updated to JAF 1.1. 2004-06-09 Chris Burdess <dog@bluezoo.org> * javax/activation/MailcapCommandMap.java: Fixed bug whereby x-java prefix was not attempted.
* 2008-06-15 Mario Torre <neugens@aicas.com>Mario Torre2008-06-152-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/java2d/AbstractGraphics2D.java (setColor): delegate to setPaint. (setPaint): fix to set paint context and foreground color. (imageCache): new field. (drawImage): new codepath for scaling images. (prepareImage): new method. (getPaintContext): set paintContext appropriately. * gnu/java/awt/java2d/RasterGraphics.java (renderScanline): new method, override from superclass to detect correct value of y while rendering the scanline. * gnu/java/awt/java2d/ScanlineConverter.java (renderShape): revert previous patch. * gnu/java/awt/peer/x/XEventPump.java (findMouseEventTarget): new method. (handleButtonPress): use of findMouseEventTarget to detect the correct target. (handleButtonRelease): likewise. * gnu/java/awt/peer/x/XGraphics2D.java (rawDrawImage): clip the target image so that it is completely contained in the destination pixmaps, as per X11 specification. * gnu/java/awt/peer/x/XToolkit.java (createTextField): method implemented. (createButton): likewise. (prepareImage): likewise. (createLabel): likewise. (checkImage): likewise. (createTextArea): likewise. (createCheckbox): likewise. (checkHeadLess): new method. * gnu/javax/imageio/bmp/BMPImageWriter.java (write): don't close the stream. * gnu/javax/imageio/bmp/BMPImageWriterSpi.java (names): added new names to the list of known names for BMP. * java/awt/image/WritableRaster.java (createWritableTranslatedChild): * javax/imageio/ImageIO.java (write): call dispose on ImageWriter after writing of the image.
* 2008-05-06 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-05-054-23/+31
| | | | | | | | | PR classpath/21869 * gnu/javax/swing/text/html/parser/htmlValidator.java, * gnu/javax/swing/text/html/parser/models/list.java, * gnu/javax/swing/text/html/parser/models/node.java, * gnu/javax/swing/text/html/parser/support/Parser.java: Swap use of StringBuffer for CPStringBuilder,
* 2008-05-05 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-05-0514-25/+53
| | | | | | | | | | | | | | | | | | | | | PR classpath/21869 * gnu/java/lang/CPStringBuilder.java: (substring(int)): Added. * gnu/javax/naming/giop/CorbalocParser.java, * gnu/javax/naming/giop/GiopNamingServiceFactory.java, * gnu/javax/naming/giop/ListBindingsEnumeration.java, * gnu/javax/naming/giop/ListEnumeration.java, * gnu/javax/naming/ictxImpl/trans/GnuName.java, * gnu/javax/net/ssl/PrivateCredentials.java, * gnu/javax/net/ssl/Session.java, * gnu/javax/net/ssl/provider/HelloRequest.java, * gnu/javax/net/ssl/provider/Util.java, * gnu/javax/print/ipp/attribute/RequestedAttributes.java, * gnu/javax/rmi/CORBA/RmiUtilities.java, * gnu/javax/security/auth/callback/AWTCallbackHandler.java, * gnu/javax/security/auth/login/ConfigFileTokenizer.java, * gnu/javax/sound/sampled/gstreamer/io/GstAudioFileReader.java: Swap use of StringBuffer for CPStringBuilder,
* 2008-05-05 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-05-0514-20/+48
| | | | | | | | | | | | | | | | | | | PR classpath/21869 * gnu/javax/crypto/assembly/TransformerException.java, * gnu/javax/crypto/cipher/BaseCipher.java, * gnu/javax/crypto/jce/sig/DHParameters.java, * gnu/javax/crypto/key/KeyAgreementException.java, * gnu/javax/crypto/mode/BaseMode.java, * gnu/javax/crypto/pad/BasePad.java, * gnu/javax/crypto/sasl/crammd5/CramMD5Util.java, * gnu/javax/crypto/sasl/crammd5/PasswordFile.java, * gnu/javax/crypto/sasl/plain/PasswordFile.java, * gnu/javax/crypto/sasl/plain/PlainClient.java, * gnu/javax/crypto/sasl/srp/PasswordFile.java, * gnu/javax/crypto/sasl/srp/SRPClient.java, * gnu/javax/crypto/sasl/srp/SRPServer.java, * gnu/javax/crypto/sasl/srp/ServerStore.java: Swap use of StringBuffer for CPStringBuilder,
* 2008-02-21 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-211-8/+12
| | | | | | | * gnu/javax/management/Translator.java: (fromJava(Object[],Method)): Don't cast to Class<?>. (fromJava(Object,Type)): Use ParameterizedType and don't assume that List will work for Sets.
* 2008-01-09 Stefan Huehner <stefan@huehner.org>Andrew John Hughes2008-01-097-15/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * examples/gnu/classpath/examples/java2d/J2dBenchmark.java, * gnu/CORBA/OrbFocused.java, * gnu/CORBA/CDR/HeadlessInput.java, * gnu/java/awt/peer/gtk/CairoGraphics2D.java, * gnu/java/awt/peer/gtk/GtkFramePeer.java, * gnu/java/awt/peer/qt/QtMenuPeer.java, * gnu/java/nio/FileChannelImpl.java, * gnu/java/nio/SocketChannelSelectionKeyImpl.java, * gnu/java/security/Engine.java, * gnu/javax/imageio/jpeg/JPEGComponent.java, * gnu/javax/imageio/jpeg/JPEGDecoder.java, * gnu/javax/imageio/jpeg/JPEGFrame.java, * gnu/javax/print/PrinterDialog.java, * gnu/javax/security/auth/Password.java, * gnu/javax/swing/text/html/parser/support/Parser.java, * gnu/javax/swing/text/html/parser/support/parameterDefaulter.java, * gnu/xml/pipeline/DomConsumer.java, * java/awt/AWTKeyStroke.java, * java/awt/DefaultKeyboardFocusManager.java, * java/awt/GridBagLayout.java, * java/awt/dnd/DragGestureRecognizer.java, * java/awt/geom/Arc2D.java, * java/awt/geom/CubicCurve2D.java, * java/awt/geom/QuadCurve2D.java, * java/awt/im/InputContext.java, * java/awt/image/AffineTransformOp.java, * java/beans/Encoder.java, * java/io/ObjectInputStream.java, * java/io/ObjectStreamClass.java, * java/net/ResolverCache.java, * java/nio/charset/Charset.java, * java/security/SecureClassLoader.java, * java/text/MessageFormat.java, * java/util/jar/Manifest.java, * javax/accessibility/AccessibleRelationSet.java, * javax/imageio/ImageReader.java, * javax/imageio/metadata/IIOMetadataNode.java, * javax/print/attribute/standard/MediaSize.java, * javax/print/attribute/standard/PrinterStateReasons.java, * javax/swing/JTree.java, * javax/swing/table/DefaultTableColumnModel.java, * javax/swing/text/html/MinimalHTMLWriter.java, * javax/swing/text/html/parser/DTD.java, * javax/swing/tree/DefaultMutableTreeNode.java, * javax/swing/undo/UndoManager.java, * org/omg/CosNaming/NamingContextExtPOA.java, * org/omg/CosNaming/NamingContextPOA.java, * org/omg/CosNaming/_NamingContextExtImplBase.java, * org/omg/CosNaming/_NamingContextImplBase.java, * tools/gnu/classpath/tools/appletviewer/CommonAppletStub.java: Remove unneeded casts
* 2008-01-04 Stefan Huehner <stefan@huehner.org>Andrew John Hughes2008-01-0710-31/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/CORBA/BigDecimalHelper.java, * gnu/CORBA/CDR/AbstractCdrInput.java, * gnu/CORBA/CDR/AbstractCdrOutput.java, * gnu/CORBA/CDR/HeadlessInput.java, * gnu/CORBA/CDR/gnuRuntime.java, * gnu/CORBA/Connected_objects.java, * gnu/CORBA/GIOP/CancelHeader.java, * gnu/CORBA/GIOP/v1_0/CancelHeader.java, * gnu/CORBA/IOR.java, * gnu/CORBA/Interceptor/Registrator.java, * gnu/CORBA/IorDelegate.java, * gnu/CORBA/NamingService/NameTransformer.java, * gnu/CORBA/ObjectCreator.java, * gnu/CORBA/OrbFunctional.java, * gnu/CORBA/Poa/AOM.java, * gnu/CORBA/Poa/gnuPOA.java, * gnu/CORBA/Poa/gnuPOAManager.java, * gnu/CORBA/Poa/gnuServantObject.java, * gnu/CORBA/typecodes/FixedTypeCode.java, * gnu/CORBA/typecodes/RecursiveTypeCode.java, * gnu/java/awt/AWTUtilities.java, * gnu/java/awt/peer/gtk/CairoGraphics2D.java, * gnu/java/awt/peer/gtk/CairoSurface.java, * gnu/java/awt/peer/swing/SwingMenuBarPeer.java, * gnu/java/text/AttributedFormatBuffer.java, * gnu/java/util/regex/REToken.java, * gnu/javax/imageio/gif/GIFFile.java, * gnu/javax/imageio/png/PNGDecoder.java, * gnu/javax/management/Server.java, * gnu/javax/naming/giop/ContextContinuation.java, * gnu/javax/naming/jndi/url/rmi/ContextContinuation.java, * gnu/javax/swing/text/html/css/Selector.java, * gnu/javax/swing/text/html/parser/models/node.java, * gnu/javax/swing/text/html/parser/support/Parser.java, * gnu/javax/swing/text/html/parser/support/low/ReaderTokenizer.java, * gnu/javax/swing/text/html/parser/support/textPreProcessor.java, * gnu/xml/util/Resolver.java, * java/awt/image/AreaAveragingScaleFilter.java, * java/beans/Beans.java, * java/beans/XMLDecoder.java, * java/beans/beancontext/BeanContextServicesSupport.java, * java/beans/beancontext/BeanContextSupport.java, * java/io/CharArrayWriter.java, * java/lang/System.java, * java/net/ResolverCache.java, * java/util/Calendar.java, * java/util/Collections.java, * java/util/Formatter.java, * javax/accessibility/AccessibleEditableText.java, * javax/imageio/ImageReader.java, * javax/imageio/ImageTypeSpecifier.java, * javax/imageio/ImageWriter.java, * javax/imageio/spi/ServiceRegistry.java, * javax/imageio/stream/ImageInputStream.java, * javax/management/MBeanPermission.java, * javax/rmi/CORBA/PortableRemoteObjectDelegate.java, * javax/rmi/CORBA/Util.java, * javax/rmi/CORBA/UtilDelegate.java, * javax/rmi/CORBA/ValueHandler.java, * javax/rmi/PortableRemoteObject.java, * org/ietf/jgss/GSSContext.java, * tools/gnu/classpath/tools/appletviewer/PluginAppletWindow.java, * tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java, * tools/gnu/classpath/tools/appletviewer/TagParser.java, * vm/reference/gnu/java/nio/VMChannel.java: Correct javadoc to match the functions' parameters * gnu/java/awt/peer/swing/SwingTextFieldPeer.java: Rename start_pos parameter to startPos to conform to style.
* 2007-12-02 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2007-12-021-28/+30
| | | | | | | | PR classpath/34276: * gnu/javax/management/Translator.java: (translate(String)): Select only public methods from a composite type, try this translation in all cases and exit only when no fields are translated.
* 2007-11-30 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2007-11-301-2/+9
| | | | | | | | | | | | | | | | PR classpath/34276: * gnu/java/lang/management/BeanImpl.java: (getDescription(MBeanConstructorInfo,MBeanParameterInfo,int)): Added to provide a default description if the current one is null. (getDescription(MBeanOperationInfo,MBeanParameterInfo,int)): Likewise. (getParameterName(MBeanConstructorInfo,MBeanParameterInfo,int)): Likewise for the name. (getParameterName(MBeanOperationInfo,MBeanParameterInfo,int)): Likewise. * gnu/javax/management/Server.java: (getMBeanInfo()): Try using a StandardMBean wrapper if reflection fails to find getMBeanInfo().
* 2007-11-01 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2007-11-012-7/+7
| | | | | | | | | | | | | | | | | | | * gnu/java/awt/java2d/ScanlineCoverage.java, * gnu/javax/net/ssl/provider/ServerHandshake.java: Fix non-ASCII characters in the Javadoc comments. * gnu/java/lang/management/BeanImpl.java, * gnu/javax/management/Server.java, * gnu/xml/pipeline/EventFilter.java, * java/awt/AWTKeyStroke.java, * java/beans/DefaultPersistenceDelegate.java, * java/beans/EventHandler.java, * java/io/ObjectStreamClass.java, * java/lang/Class.java, * java/lang/reflect/Proxy.java, * javax/management/NotificationBroadcasterSupport.java, * javax/management/StandardMBean.java, * javax/swing/TransferHandler.java: Fix warnings from use of varargs methods.
* 2007-10-12 Mario Torre <neugens@limasoftware.net>Mario Torre2007-10-121-3/+3
| | | | | | | | * gnu/javax/swing/text/html/css/FontSize.java (mapPercent): (mapPoints): prevent a NumberFormatException when a floating point is given instead of a integer. (mapPixels): likewise. (mapPercent): likewise.
* 2007-10-12 Mario Torre <neugens@limasoftware.net>Mario Torre2007-10-121-0/+71
| | | | | | * gnu/javax/sound/AudioSecurityManager.java: Added Copyright header. (Permission): added miissing javadoc. (checkPermissions): likewise.
* 2007-09-27 Mario Torre <neugens@limasoftware.net>Mario Torre2007-09-273-61/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/javax/sound/sampled/gstreamer/io/GstAudioFileReaderNativePeer.java: (gstreamer_get_audio_format_stream): Removed parameter from javadoc. (gstreamer_get_audio_format_file): likewise. * gnu/javax/sound/sampled/gstreamer/lines/GstPipeline.java: Added class javadoc and implementation notes. (READ): new constant. (WRITE): likewise. (QUEUED): likewise. (CAPACITY_KEY): likewise. (lock): likewise. (prefs): new variable. (GstPipeline constructor): added OS independent rutines to detect filesystem pipes size plus save and restores this information via preferences. Now closes open pipe on user abort at VM exit. (open_native_pipe): new native method. (close_native_pipe): likewise. (detect_pipe_size): likewise. (createForWrite): update to use new native methods. (setState): removed hack to synchronize reading and writing of the filesystme named pipe. (available): implemented. (drain): new implementation, now correctly waits for data to be consumed in the pipeline. (prepareWrite): removed hack to synchronize reading and writing of the filesystme named pipe. (CleanPipeline): new inner class, used for cleaning of native pipelines still opened at VM exit. * gnu/javax/sound/sampled/gstreamer/lines/GstSourceDataLine: (getFramePosition): method still stubbed, now output "implement me" note when called (used for testing). (getLongFramePosition): likewise. (getMicrosecondPosition): likewise. * include/gnu_javax_sound_sampled_gstreamer_lines_GstPipeline.h: regenerated. * native/jni/gstreamer-peer/gst_native_data_line.c: (setup_pipeline): Changed signature, now uses a file descriptor instead of char with the name of the native pipeline. Also changed to use "fdsrc" when creating the GStreamer pipeline. (Java_gnu_javax_sound_sampled_gstreamer_lines_GstNativeDataLine_setup_1sink_1pipeline): now uses gst_native_pipeline_get_pipeline_fd to get the file descriptor of the native pipeline, instead of gst_native_pipeline_get_pipeline_name. Chaged to use "autoaudiosink" as GStreamer audio sink. (gst_newpad): fix indentation. * native/jni/gstreamer-peer/gst_native_pipeline.c: include new headers for compilation. (capacityFID): new filed for caching. (GST_DETECTED_PIPE_CAPACITY): new field. (enum): maps READ and WRITE in GstPipeline class. (_GstNativePipelinePrivate.fd): new field. (create_name): new function. (init_pointer_IDs): likewise. (get_free_space): likewise. (Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_init_1id_1cache): cache capacityFID. (Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_init_1instance): get value for GST_DETECTED_PIPE_CAPACITY from mapped class. (Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_set_1state): removed "unused" attribute from parameters, clean pipeline name on exit. (Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_open_1native_1pipe): new function. (Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_close_1native_1pipe): likewise. (Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_create_1named_1pipe): pipe name created with a dedicated function. (Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_available): new function. * native/jni/gstreamer-peer/gst_native_pipeline.h: (gst_native_pipeline_clean): removed. (gst_native_pipeline_get_pipeline_fd): new function. * native/jni/gstreamer-peer/gst_peer.h: new defines used by the peer. * native/jni/gstreamer-peer/gstreamer_io_peer.c: (_GST_MALLOC_SIZE_): moved in gst_peer.h.
* 2007-09-21 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-09-213-7/+4
| | | | | | | | | | | | | | | * gnu/CORBA/CDR/AbstractCdrInput.java, gnu/CORBA/CDR/Vio.java, gnu/CORBA/DynAn/gnuDynUnion.java, gnu/CORBA/GIOP/MessageHeader.java, gnu/CORBA/IorDelegate.java, gnu/java/security/key/dss/FIPS186.java, gnu/javax/crypto/key/dh/RFC2631.java, gnu/javax/swing/text/html/parser/support/Parser.java, gnu/javax/swing/text/html/parser/support/low/ReaderTokenizer.java, gnu/xml/aelfred2/XmlParser.java, java/awt/im/InputContext.java: Removed unused labels.
* 2007-09-18 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-09-1838-127/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * examples/gnu/classpath/examples/management/TestMemoryPool.java, examples/gnu/classpath/examples/swing/DocumentFilterDemo.java, examples/gnu/classpath/examples/swing/TableDemo.java, gnu/CORBA/BigDecimalHelper.java, gnu/CORBA/ByteArrayComparator.java, gnu/CORBA/CollocatedOrbs.java, gnu/CORBA/EmptyExceptionHolder.java, gnu/CORBA/IorDelegate.java, gnu/CORBA/OrbRestricted.java, gnu/CORBA/ServiceRequestAdapter.java, gnu/CORBA/gnuContextList.java, gnu/CORBA/gnuExceptionList.java, gnu/CORBA/gnuRequest.java, gnu/CORBA/CDR/LittleEndianInputStream.java, gnu/CORBA/DynAn/DivideableAny.java, gnu/CORBA/DynAn/gnuDynArray.java, gnu/CORBA/GIOP/CodeSetServiceContext.java, gnu/CORBA/Interceptor/IORInterceptors.java, gnu/CORBA/NamingService/NameParser.java, gnu/CORBA/Poa/gnuPOAManager.java, gnu/classpath/jdwp/event/filters/StepFilter.java, gnu/classpath/jdwp/processor/ObjectReferenceCommandSet.java, gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java, gnu/java/awt/ClasspathToolkit.java, gnu/java/awt/EmbeddedWindow.java, gnu/java/awt/peer/KDEDesktopPeer.java, gnu/java/awt/peer/gtk/CairoSurface.java, gnu/java/awt/peer/swing/SwingCheckboxPeer.java, gnu/java/awt/peer/swing/SwingTextAreaPeer.java, gnu/java/awt/peer/swing/SwingTextFieldPeer.java, gnu/java/awt/print/PostScriptGraphics2D.java, gnu/java/awt/print/SpooledDocument.java, gnu/java/io/PlatformHelper.java, gnu/java/lang/management/BeanImpl.java, gnu/java/locale/LocaleHelper.java, gnu/java/net/protocol/http/Request.java, gnu/java/nio/DatagramChannelImpl.java, gnu/java/nio/KqueueSelectionKeyImpl.java, gnu/java/nio/NIOSocket.java, gnu/java/nio/ServerSocketChannelImpl.java, gnu/java/nio/SocketChannelImpl.java, gnu/java/rmi/server/RMIObjectInputStream.java, gnu/java/util/regex/RE.java, gnu/javax/imageio/bmp/DecodeBF16.java, gnu/javax/imageio/bmp/EncodeRGB32.java, gnu/javax/imageio/jpeg/JPEGDecoder.java, gnu/javax/imageio/jpeg/JPEGException.java, gnu/javax/imageio/jpeg/JPEGImageInputStream.java, gnu/javax/imageio/png/PNGChunk.java, gnu/javax/imageio/png/PNGEncoder.java, gnu/javax/imageio/png/PNGFile.java, gnu/javax/imageio/png/PNGGamma.java, gnu/javax/net/ssl/SSLRecordHandler.java, gnu/javax/net/ssl/StaticTrustAnchors.java, gnu/javax/net/ssl/provider/CertificateRequestBuilder.java, gnu/javax/net/ssl/provider/ClientHandshake.java, gnu/javax/net/ssl/provider/ClientPSKParameters.java, gnu/javax/net/ssl/provider/ClientRSA_PSKParameters.java, gnu/javax/net/ssl/provider/ContentType.java, gnu/javax/net/ssl/provider/EncryptedPreMasterSecret.java, gnu/javax/net/ssl/provider/Handshake.java, gnu/javax/net/ssl/provider/InputSecurityParameters.java, gnu/javax/net/ssl/provider/OutputSecurityParameters.java, gnu/javax/net/ssl/provider/ProtocolVersion.java, gnu/javax/net/ssl/provider/Random.java, gnu/javax/net/ssl/provider/SRPTrustManagerFactory.java, gnu/javax/net/ssl/provider/ServerDHE_PSKParameters.java, gnu/javax/net/ssl/provider/SessionImpl.java, gnu/javax/net/ssl/provider/Signature.java, gnu/javax/net/ssl/provider/SimpleSessionContext.java, gnu/javax/net/ssl/provider/TLSHMac.java, gnu/javax/net/ssl/provider/TrustedAuthorities.java, gnu/javax/net/ssl/provider/UnresolvedExtensionValue.java, gnu/javax/net/ssl/provider/X509KeyManagerFactory.java, gnu/javax/security/auth/Password.java, gnu/javax/sound/midi/dssi/DSSIMidiDeviceProvider.java, gnu/javax/sound/midi/file/MidiFileWriter.java, gnu/javax/sound/sampled/AU/AUReader.java, gnu/jav gnu/javax/sound/sampled/gstreamer/io/G gnu/xml/dom/html2/DomHTMLButtonElement.java, gnu/xml/dom/html2/DomHTMLCollection.java, gnu/xml/dom/html2/DomHTMLParser.java, gnu/xml/stream/EndDocumentImpl.java, gnu/xml/stream/SAXParser.java, gnu/xml/stream/XIncludeFilter.java, gnu/xml/stream/XMLEventImpl.java, gnu/xml/transform/StreamSerializer.java, gnu/xml/transform/Stylesheet.java, gnu/xml/validation/datatype/Ba gnu/xml/validation/datatype/BooleanTy gnu/xml/validation/datatype/De gnu/xml/validation/datatype/Doub gnu/xml/validation/datatyp gnu/xml/validation/datatype/HexBinaryType.j gnu/xml/validation/datatype/Notatio gnu/xml/validation/datatype/Simpl gnu/xml/validation/datatype/StringType.jav gnu/xml/validation/datatype/Type.java, gnu/xml/validation/datatype/TypeBuilder.java, gnu/xml/validation/relaxng/FullSy gnu/xml/validation/xmlschema/XMLSchemaAttributeTy gnu/xml/validation/xmlschema/XMLSchemaBuilder.java, gnu/xml/validation/xmlschema/XMLSchemaElementTypeInfo.java, gnu/xml/xpath/XPathParser.java, java/awt/MenuShortcut.java, java/awt/font/LineBreakMeasurer.java, java/awt/font/TextMeasurer.java, java/awt/image/BufferedImage.java, java/beans/beancontext/BeanContextServicesSupport.java, java/security/SecureClassLoader.java, java/security/cert/CertificateFactory.java, javax/imageio/metadata/IIOMetadataFormatImpl.java, javax/imageio/stream/MemoryCacheImageInputStream.java, javax/management/ObjectName.java, javax/management/openmbean/ArrayType.java, javax/net/ssl/HttpsURLConnection.java, javax/print/attribute/standard/JobStateReasons.java javax/swing/RepaintManager.java, javax/swing/plaf/basic/BasicDirectory javax/swing/plaf/basic/BasicFileChooserUI. javax/swing/plaf/basic/BasicLabelUI. javax/swing/plaf/metal/MetalScrollButton.java, javax/swing/table/DefaultTableCellRenderer.java, javax/swing/text/ParagraphView.java, javax/swing/text/html/ResetableToggleButtonModel.java, javax/swing/text/html/parser/Entity.java, javax/swing/tree/DefaultTreeCellRenderer.java, javax/xml/datatype/DatatypeFactory.java, javax/xml/stream/XMLEventFactory.java, javax/xml/stream/XMLInputFactory.java, org/omg/IOP/TaggedComponentHelper.java, sun/reflect/annotation/ExceptionProxy.java, tools/gnu/classpath/tools/appletviewer/Main.java, tools/gnu/classpath/tools/appletviewer/PluginAppletWindow.java, tools/gnu/classpath/tools/orbd/Main.java, tools/gnu/classpath/tools/rmic/ClassRmicCompiler.java, tools/gnu/classpath/tools/rmic/Main.java, tools/gnu/classpath/tools/rmid/Main.java, tools/gnu/classpath/tools/tnameserv/Main.java, vm/reference/gnu/classpath/jdwp/VMVirtualMachine.java, vm/reference/java/lang/VMClass.java, vm/reference/java/security/VMSecureRandom.java: Removed unused imports.
* 2007-09-05 Andrew Haley <aph@redhat.com>Andrew Haley2007-09-051-2/+1
| | | | | * gnu/javax/crypto/jce/DiffieHellmanImpl.java (engineDoPhase): Don't check the length of q.
* 2007-08-19 Mario Torre <neugens@limasoftware.net>Mario Torre2007-08-193-24/+61
| | | | | | | | | | | * gnu/javax/sound/sampled/gstreamer/io/GstAudioFileReader.java: (getAudioFileFormat (File)): method implemented. (getAudioFileFormat (InputStream)): likewise. (getAudioFileFormat(InputStream, String)): new method. (getAudioInputStream): better exception handling. * gnu/javax/sound/sampled/gstreamer/io/GstAudioFileReaderNativePeer.java (getAudioFormat): added basic extension detection for known files. * gnu/javax/sound/sampled/gstreamer/GStreamerMixer.java:
* 2007-08-18 Mario Torre <neugens@limasoftware.net>Mario Torre2007-08-189-65/+519
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * examples/gnu/classpath/examples/sound/AudioPlayerSample.java: new file. * gnu/javax/sound/sampled/gstreamer/GStreamerMixer.java: removed unused import. * gnu/javax/sound/sampled/gstreamer/io/GstAudioFileWriter.java: likewise. * gnu/javax/sound/sampled/gstreamer/io/GstAudioFileReaderNativePeer.java: (gstreamer_get_audio_format_stream): changed signature tu accept a Pointer object instead of a BufferedInputStream. (GstHeader): (getAudioFormat(InputStream, GstHeader)): new private method. (getAudioFormat(public)): refactored to use the private getAudioFormat with shared functionality. (getAudioFormat(GstHeader header)): removed a redundant check. (init_id_cache): new native method. * gnu/javax/sound/sampled/gstreamer/io/GstInputStream.java: new file. * gnu/javax/sound/sampled/gstreamer/lines/GstDataLine.java: (GstDataLine.State): removed enum. (state): removed local variable. (isRunning): removed method. (open): likewise. (setFormat): new methods. (setOpen): likewise. (setBufferSize): likewise. * gnu/javax/sound/sampled/gstreamer/lines/GstNativeDataLine.java: (createSourcePipeline): new method. (setup_sink_pipeline): likewise. (init_id_cache): likewise. Added to the static initializer. * gnu/javax/sound/sampled/gstreamer/lines/GstPipeline.java: (GstPipeline.State): new enum. (state): new local variable. (name): likewise. (output): likewise. (source): likewise. (ready): likewise. (getState): new method. (closePipe): likewise. (create_named_pipe): likewise. (set_state): likewise. (available): likewise. (drain): likewise. (GstPipeline): likewise. (close): likewise. (prepareWrite): likewise. (flush): likewise. (write): likewise. (init_instance): likewise. (read): likewise. (createForWrite): likewise. (setState): likewise. (getNativeClass): likewise. (init_id_cache): likewise. * gnu/javax/sound/sampled/gstreamer/lines/GstSourceDataLine.java: (pipeline): new local variable. (opne): likewise. (isActive): method implemented. (stop): likewise. (open): likewise. (flush): likewise. (isRunning): likewise. (start): likewise. (write): likewise. (available): likewise. (drain): likewise. (close): likewise. * include/Makefile.am: added entry to generate new header file. * include/gnu_javax_sound_sampled_gstreamer_io_GstAudioFileReaderNativePeer.h: regenerated. * include/gnu_javax_sound_sampled_gstreamer_io_GstInputStream.h: likewise. * include/gnu_javax_sound_sampled_gstreamer_lines_GstNativeDataLine.h: likewise. * include/gnu_javax_sound_sampled_gstreamer_lines_GstPipeline.h: likewise. * native/jni/gstreamer-peer/gstclasspathsrc.c: removed. * native/jni/gstreamer-peer/gstinputstream.c: likewise. * native/jni/gstreamer-peer/GStreamerIOPeer.c: likewise. * native/jni/gstreamer-peer/gstinputstream.h: likewise. * native/jni/gstreamer-peer/gstclasspathsrc.h: likewise. * native/jni/gstreamer-peer/Makefile.am: new file added for compilation. code reformat to keep the 80 columns constraint. * native/jni/gstreamer-peer/gst_native_pipeline.h: new file. * native/jni/gstreamer-peer/gst_input_stream.c: likewise. * native/jni/gstreamer-peer/gst_input_stream.h: likewise. * native/jni/gstreamer-peer/gst_classpath_src.c: likewise. * native/jni/gstreamer-peer/gst_native_pipeline.c: likewise. * native/jni/gstreamer-peer/gst_native_data_line.c: likewise. * native/jni/gstreamer-peer/gst_classpath_src.h: likewise. * native/jni/gstreamer-peer/gstreamer_io_peer.c: likewise. * native/jni/gstreamer-peer/gst_peer.c: likewise. * native/jni/gstreamer-peer/gst_peer.h: likewise.
* 2007-07-08 Mario Torre <neugens@limasoftware.net>Mario Torre2007-07-0910-0/+1261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/javax/sound/sampled/gstreamer: new package hierarchy. * gnu/javax/sound/sampled/gstreamer/io/GstAudioFileReader.java: new file. * gnu/javax/sound/sampled/gstreamer/io/GstAudioFileReaderNativePeer.java: likewise. * gnu/javax/sound/sampled/gstreamer/lines/GstDataLine.java: likewise. * gnu/javax/sound/sampled/gstreamer/GStreamerMixer.java: likewise. * gnu/javax/sound/sampled/gstreamer/GStreamerMixerProvider.java: likewise. * gnu/javax/sound/AudioSecurityManager.java: likewise. * gnu/javax/sound/sampled/gstreamer/lines/GstNativeDataLine.java: likewise. * gnu/javax/sound/sampled/gstreamer/lines/GstSourceDataLine.java: likewise. * gnu/javax/sound/sampled/gstreamer/lines/GstPipeline.java: likewise. * gnu/javax/sound/sampled/gstreamer/io/GstAudioFileWriter.java: likewise. * resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader.in: likewise. * resource/META-INF/services/javax.sound.sampled.spi.MixerProvider.in: likewise. * resource/META-INF/services/javax.sound.sampled.spi.MixerProvider: likewise. * native/jni/gstreamer-peer/gstclasspathsrc.c: likewise. * native/jni/gstreamer-peer/gstclasspathsrc.h: likewise. * native/jni/gstreamer-peer/gstinputstream.c: likewise. * native/jni/gstreamer-peer/gstinputstream.h: likewise. * native/jni/gstreamer-peer/GStreamerIOPeer.c: likewise. * native/jni/gstreamer-peer/Makefile.am: likewise. * native/jni/gstreamer-peer/.cvsignore: likewise. * include/gnu_javax_sound_sampled_gstreamer_io_GstAudioFileReaderNativePeer.h: likewise. * include/Makefile.am: add gstreamer generated headers. * configure.ac: add gstreamer sound backend configuration. The backend is currently disabled by default. * native/jni/Makefile.am: code to allow compilation of the gstreamer sound backend. * javax/sound/sampled/spi/MixerProvider.java (isMixerSupported): indentation fixes. * javax/sound/sampled/AudioFormat.java (toString): fix method to display informations only when available. * javax/sound/sampled/DataLine.java: (Info.isFormatSupported): indentation fixes. (Info): indentation fixes. (Info.toString): indentation fixes. (Info.matches): indentation fixes.
* 2007-05-03 Andrew Haley <aph@redhat.com>Andrew Haley2007-05-031-0/+21
| | | | | | | * gnu/javax/management/Server.java (Server): Record the delegate. (registerMBean): Notify the delegate. (unregisterMBean): Likewise. (notify): New method.
* 2007-04-19 Casey Marshall <csm@gnu.org>Tom Tromey2007-04-191-0/+8
| | | | | | PR classpath/31626: * gnu/javax/net/ssl/provider/SSLSocketFactoryImpl.java (createSocket): New method.
* 2007-04-17 Casey Marshall <csm@gnu.org>Mark Wielaard2007-04-171-131/+38
| | | | | | | | | | | | | | | | PR classpath/31302: * gnu/javax/net/ssl/provider/SSLSocketImpl.java (SSLSocketImpl): Always make a new socket. (bind, connect, getInetAddress, getLocalAddress, getPort, getLocalPort, getRemoteSocketAddress, getLocalSocketAddress, setTcpNoDelay, getTcpNoDelay, setSoLinger, getSoLinger, setOOBInline, getOOBInline, setSoTimeout, getSoTimeout, setSendBufferSize, getSendBufferSize, setReceiveBufferSize, getReceiveBufferSize, setKeepAlive, getKeepAlive, setTrafficClass, getTrafficClass, setReuseAddress, getReuseAddress, close, shutdownInput, shutdownOutput, isConnected, isBound, isClosed, isInputShutdown, isOutputShutdown): Always use 'underlyingSocket'.
* https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=236614Tom Tromey2007-04-161-11/+9
| | | | | * gnu/javax/net/ssl/provider/SSLSocketFactoryImpl.java (createSocket): Change order of delegation.