bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append(")").toString(); } return str; } | public String toString() { if (str == null) { String ls = (String) AccessController.doPrivileged (new GetPropertyAction("line.separator")); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append(")").toString... | 37,897 |
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append(")").toString(); } return str; } | public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append(")") .toString(); } return str; } | 37,898 |
public static GnuRSAPublicKey valueOf(final byte[] k) { // try RAW codec if (k[0] == Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0]) try { return (GnuRSAPublicKey) new RSAKeyPairRawCodec().decodePublicKey(k); } catch (IllegalArgumentException ignored) { } // try X.509 codec r... | publicstaticGnuRSAPublicKeyvalueOf(finalbyte[]k){//tryRAWcodecif(k[0]==Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0])try{return(GnuRSAPublicKey)newRSAKeyPairRawCodec().decodePublicKey(k);}catch(IllegalArgumentExceptionignored){}//tryX.509codecreturn(GnuRSAPublicKey)newRSAKeyPairX509Codec().decodePublicKey(k);} | 37,899 |
Resource getResource(String name) { try { File file = new File(dir, name).getCanonicalFile(); if (file.exists() && !file.isDirectory()) return new FileResource(this, file); } catch (IOException e) { // Fall through... } return null; } | Resource getResource(String name) { try { File file = new File(dir, name).getCanonicalFile(); if (file.exists() && !file.isDirectory()) return new FileResource(this, file); } catch (IOException e) { // Fall through... } return null; } | 37,900 |
public IllegalMechanismStateException(String detail) { super(detail); } | public IllegalMechanismStateException() { super(detail); } | 37,901 |
public IllegalMechanismStateException(String detail) { super(detail); } | public IllegalMechanismStateException(String detail) { super(); } | 37,902 |
public void setVisible(boolean v) { if (v != visible) { visible = v; if (visible) if (textComponent.isEnabled() && textComponent.isEditable()) { if (blinkTimer == null) initBlinkTimer(); blinkTimer.start(); } else ... | public void setVisible(boolean v) { if (v != visible) { visible = v; if (visible) if (textComponent.isEnabled() && textComponent.isEditable()) { if (blinkTimer == null) initBlinkTimer(); blinkTimer.start(); } else ... | 37,906 |
protected void finalize() { queue.setNullOnEmpty(true); } | protected void finalize() throws Throwable { queue.setNullOnEmpty(true); } | 37,909 |
public X509Certificate(InputStream encoded) throws CertificateException, IOException { super(); extensions = new HashMap(); critOids = new HashSet(); nonCritOids = new HashSet(); try { parse(encoded); } catch (IOException ioe) { throw ioe; } catch (Exception ... | public X509Certificate(InputStream encoded) throws CertificateException, IOException { super(); extensions = new HashMap(); critOids = new HashSet(); nonCritOids = new HashSet(); try { parse(encoded); } catch (IOException ioe) { throw ioe; } catch (Exception ... | 37,910 |
public X509Certificate(InputStream encoded) throws CertificateException, IOException { super(); extensions = new HashMap(); critOids = new HashSet(); nonCritOids = new HashSet(); try { parse(encoded); } catch (IOException ioe) { throw ioe; } catch (Exception ... | public X509Certificate(InputStream encoded) throws CertificateException, IOException { super(); extensions = new HashMap(); critOids = new HashSet(); nonCritOids = new HashSet(); try { parse(encoded); } catch (IOException ioe) { throw ioe; } catch (Exception ... | 37,911 |
private void doVerify(Signature sig, PublicKey key) throws CertificateException, InvalidKeyException, SignatureException { sig.initVerify(key); sig.update(tbsCertBytes); if (!sig.verify(signature)) throw new CertificateException("signature not validated"); } | private void doVerify(Signature sig, PublicKey key) throws CertificateException, InvalidKeyException, SignatureException { sig.initVerify(key); sig.update(tbsCertBytes); if (!sig.verify(signature)) { throw new CertificateException("signature not validated"); } } | 37,912 |
public int getBasicConstraints() { return basicConstraints; } | public int getBasicConstraints() { Extension e = getExtension(BasicConstraints.ID); if (e != null) { return ((BasicConstraints) e.getValue()).getPathLengthConstraint(); } return -1; } | 37,913 |
public Set getCriticalExtensionOIDs() { return Collections.unmodifiableSet(critOids); } | public Set getCriticalExtensionOIDs() { HashSet s = new HashSet(); for (Iterator it = extensions.values().iterator(); it.hasNext(); ) { Extension e = (Extension) it.next(); if (e.isCritical()) s.add(e.getOid().toString()); } return Collections.unmodifiableSet(s); } | 37,914 |
public List getExtendedKeyUsage() throws CertificateParsingException { byte[] ext = (byte[]) extensions.get("2.5.29.37"); if (ext == null) return null; LinkedList usages = new LinkedList(); try { DERReader der = new DERReader(new ByteArrayInputStream(ext)); DERValue seq = der.read... | public List getExtendedKeyUsage() throws CertificateParsingException { byte[] ext = (byte[]) extensions.get("2.5.29.37"); if (ext == null) return null; LinkedList usages = new LinkedList(); try { DERReader der = new DERReader(new ByteArrayInputStream(ext)); DERValue seq = der.read... | 37,915 |
public List getExtendedKeyUsage() throws CertificateParsingException { byte[] ext = (byte[]) extensions.get("2.5.29.37"); if (ext == null) return null; LinkedList usages = new LinkedList(); try { DERReader der = new DERReader(new ByteArrayInputStream(ext)); DERValue seq = der.read... | public List getExtendedKeyUsage() throws CertificateParsingException { byte[] ext = (byte[]) extensions.get("2.5.29.37"); if (ext == null) return null; LinkedList usages = new LinkedList(); try { DERReader der = new DERReader(new ByteArrayInputStream(ext)); DERValue seq = der.read... | 37,916 |
public List getExtendedKeyUsage() throws CertificateParsingException { byte[] ext = (byte[]) extensions.get("2.5.29.37"); if (ext == null) return null; LinkedList usages = new LinkedList(); try { DERReader der = new DERReader(new ByteArrayInputStream(ext)); DERValue seq = der.read... | public List getExtendedKeyUsage() throws CertificateParsingException { byte[] ext = (byte[]) extensions.get("2.5.29.37"); if (ext == null) return null; LinkedList usages = new LinkedList(); try { DERReader der = new DERReader(new ByteArrayInputStream(ext)); DERValue seq = der.read... | 37,917 |
public List getExtendedKeyUsage() throws CertificateParsingException { byte[] ext = (byte[]) extensions.get("2.5.29.37"); if (ext == null) return null; LinkedList usages = new LinkedList(); try { DERReader der = new DERReader(new ByteArrayInputStream(ext)); DERValue seq = der.read... | public List getExtendedKeyUsage() throws CertificateParsingException { byte[] ext = (byte[]) extensions.get("2.5.29.37"); if (ext == null) return null; LinkedList usages = new LinkedList(); try { DERReader der = new DERReader(new ByteArrayInputStream(ext)); DERValue seq = der.read... | 37,918 |
public List getExtendedKeyUsage() throws CertificateParsingException { byte[] ext = (byte[]) extensions.get("2.5.29.37"); if (ext == null) return null; LinkedList usages = new LinkedList(); try { DERReader der = new DERReader(new ByteArrayInputStream(ext)); DERValue seq = der.read... | public List getExtendedKeyUsage() throws CertificateParsingException { byte[] ext = (byte[]) extensions.get("2.5.29.37"); if (ext == null) return null; LinkedList usages = new LinkedList(); try { DERReader der = new DERReader(new ByteArrayInputStream(ext)); DERValue seq = der.read... | 37,919 |
public byte[] getExtensionValue(String oid) { byte[] ext = (byte[]) extensions.get(oid); if (ext != null) return (byte[]) ext.clone(); return null; } | public byte[] getExtensionValue(String oid) { byte[] ext = (byte[]) extensions.get(oid); if (ext != null) return (byte[]) ext.clone(); return null; } | 37,920 |
public Collection getIssuerAlternativeNames() throws CertificateParsingException { byte[] ext = getExtensionValue("2.5.29.18"); if (ext == null) return null; return getAltNames(ext); } | public Collection getIssuerAlternativeNames() throws CertificateParsingException { byte[] ext = getExtensionValue("2.5.29.18"); if (ext == null) return null; return getAltNames(ext); } | 37,921 |
public Collection getIssuerAlternativeNames() throws CertificateParsingException { byte[] ext = getExtensionValue("2.5.29.18"); if (ext == null) return null; return getAltNames(ext); } | public Collection getIssuerAlternativeNames() throws CertificateParsingException { byte[] ext = getExtensionValue("2.5.29.18"); if (ext == null) return null; } | 37,922 |
public Principal getIssuerDN() { return getIssuerX500Principal(); } | public Principal getIssuerDN() { return issuer; } | 37,923 |
public X500Principal getIssuerX500Principal() { return issuer; } | public X500Principal getIssuerX500Principal() { return new X500Principal(issuer.getDer()); } | 37,925 |
public boolean[] getKeyUsage() { if (keyUsage != null) return keyUsage.toBooleanArray(); return null; } | public boolean[] getKeyUsage() { if (keyUsage != null) return keyUsage.toBooleanArray(); return null; } | 37,926 |
public Set getNonCriticalExtensionOIDs() { return Collections.unmodifiableSet(nonCritOids); } | public Set getNonCriticalExtensionOIDs() { HashSet s = new HashSet(); for (Iterator it = extensions.values().iterator(); it.hasNext(); ) { Extension e = (Extension) it.next(); if (!e.isCritical()) s.add(e.getOid().toString()); } return Collections.unmodifiableSet(s); } | 37,927 |
public String getSigAlgName() { if (sigAlgId.equals(ID_DSA_WITH_SHA1)) return "SHA1withDSA"; if (sigAlgId.equals(ID_RSA_WITH_MD2 )) return "MD2withRSA"; if (sigAlgId.equals(ID_RSA_WITH_MD5 )) return "MD5withRSA"; if (sigAlgId.equals(ID_RSA_WITH_SHA1 )) return "SHA1withRSA"; return ... | public String getSigAlgName() { if (sigAlgId.equals(ID_DSA_WITH_SHA1)) return "SHA1withDSA"; } if (sigAlgId.equals(ID_RSA_WITH_MD2)) { return "MD2withRSA"; if (sigAlgId.equals(ID_RSA_WITH_MD5 )) return "MD5withRSA"; if (sigAlgId.equals(ID_RSA_WITH_SHA1 )) return "SHA1withRSA"; retu... | 37,928 |
public String getSigAlgName() { if (sigAlgId.equals(ID_DSA_WITH_SHA1)) return "SHA1withDSA"; if (sigAlgId.equals(ID_RSA_WITH_MD2 )) return "MD2withRSA"; if (sigAlgId.equals(ID_RSA_WITH_MD5 )) return "MD5withRSA"; if (sigAlgId.equals(ID_RSA_WITH_SHA1 )) return "SHA1withRSA"; return ... | public String getSigAlgName() { if (sigAlgId.equals(ID_DSA_WITH_SHA1)) return "SHA1withDSA"; if (sigAlgId.equals(ID_RSA_WITH_MD2 )) return "MD2withRSA"; } if (sigAlgId.equals(ID_RSA_WITH_MD5)) { return "MD5withRSA"; if (sigAlgId.equals(ID_RSA_WITH_SHA1 )) return "SHA1withRSA"; retu... | 37,929 |
public String getSigAlgName() { if (sigAlgId.equals(ID_DSA_WITH_SHA1)) return "SHA1withDSA"; if (sigAlgId.equals(ID_RSA_WITH_MD2 )) return "MD2withRSA"; if (sigAlgId.equals(ID_RSA_WITH_MD5 )) return "MD5withRSA"; if (sigAlgId.equals(ID_RSA_WITH_SHA1 )) return "SHA1withRSA"; return ... | public String getSigAlgName() { if (sigAlgId.equals(ID_DSA_WITH_SHA1)) return "SHA1withDSA"; if (sigAlgId.equals(ID_RSA_WITH_MD2 )) return "MD2withRSA"; if (sigAlgId.equals(ID_RSA_WITH_MD5 )) return "MD5withRSA"; } if (sigAlgId.equals(ID_RSA_WITH_SHA1)) { return "SHA1withRSA"; retu... | 37,930 |
public String getSigAlgName() { if (sigAlgId.equals(ID_DSA_WITH_SHA1)) return "SHA1withDSA"; if (sigAlgId.equals(ID_RSA_WITH_MD2 )) return "MD2withRSA"; if (sigAlgId.equals(ID_RSA_WITH_MD5 )) return "MD5withRSA"; if (sigAlgId.equals(ID_RSA_WITH_SHA1 )) return "SHA1withRSA"; return ... | publicStringgetSigAlgName(){if(sigAlgId.equals(ID_DSA_WITH_SHA1))return"SHA1withDSA";if(sigAlgId.equals(ID_RSA_WITH_MD2))return"MD2withRSA";if(sigAlgId.equals(ID_RSA_WITH_MD5))return"MD5withRSA";if(sigAlgId.equals(ID_RSA_WITH_SHA1))return"SHA1withRSA";return"unknown";//returnsigAlgId.getShortName();} | 37,931 |
public Collection getSubjectAlternativeNames() throws CertificateParsingException { byte[] ext = getExtensionValue("2.5.29.17"); if (ext == null) return null; return getAltNames(ext); } | public Collection getSubjectAlternativeNames() throws CertificateParsingException { byte[] ext = getExtensionValue("2.5.29.17"); if (ext == null) return null; return getAltNames(ext); } | 37,932 |
public Collection getSubjectAlternativeNames() throws CertificateParsingException { byte[] ext = getExtensionValue("2.5.29.17"); if (ext == null) return null; return getAltNames(ext); } | public Collection getSubjectAlternativeNames() throws CertificateParsingException { byte[] ext = getExtensionValue("2.5.29.17"); if (ext == null) return null; } | 37,933 |
public Principal getSubjectDN() { return getSubjectX500Principal(); } | public Principal getSubjectDN() { return subject; } | 37,934 |
public X500Principal getSubjectX500Principal() { return subject; } | public X500Principal getSubjectX500Principal() { return new X500Principal(subject.getDer()); } | 37,936 |
public boolean hasUnsupportedCriticalExtension() { for (Iterator it = critOids.iterator(); it.hasNext(); ) { String oid = (String) it.next(); if (!oid.equals("2.5.29.15") && !oid.equals("2.5.29.17") && !oid.equals("2.5.29.18") && !oid.equals("2.5.29.19") && !oid.equals("2.... | public boolean hasUnsupportedCriticalExtension() { for (Iterator it = extensions.values().iterator(); it.hasNext(); ) { String oid = (String) it.next(); if (!oid.equals("2.5.29.15") && !oid.equals("2.5.29.17") && !oid.equals("2.5.29.18") && !oid.equals("2.5.29.19") && !oid... | 37,937 |
public boolean hasUnsupportedCriticalExtension() { for (Iterator it = critOids.iterator(); it.hasNext(); ) { String oid = (String) it.next(); if (!oid.equals("2.5.29.15") && !oid.equals("2.5.29.17") && !oid.equals("2.5.29.18") && !oid.equals("2.5.29.19") && !oid.equals("2.... | public boolean hasUnsupportedCriticalExtension() { for (Iterator it = critOids.iterator(); it.hasNext(); ) { String oid = (String) it.next(); if (!oid.equals("2.5.29.15") && !oid.equals("2.5.29.17") && !oid.equals("2.5.29.18") && !oid.equals("2.5.29.19") && !oid.equals("2.... | 37,938 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new IOException("malformed Certificate"); } // TBSCertificate ::= SE... | 37,939 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | 37,940 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | privatevoidparse(InputStreamencoded)throwsException{DERReaderder=newDERReader(encoded);//Certificate::=SEQUENCE{DERValuecert=der.read();this.encoded=cert.getEncoded();if(!cert.isConstructed())thrownewASN1ParsingException("malformedCertificate");//TBSCertificate::=SEQUENCE{DERValuetbsCert=der.read();if(tbsCert.getValue(... | 37,941 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | 37,942 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | 37,943 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | 37,944 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | 37,945 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | 37,946 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | 37,947 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | 37,948 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | 37,949 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | 37,950 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) throw new ASN1ParsingException("malformed Certificate"); // TBSCertificate :... | 37,951 |
public String toString() { // XXX say more than this. return gnu.java.security.x509.X509Certificate.class.getName(); } | public String toString() { // XXX say more than this. StringWriter str = new StringWriter(); PrintWriter out = new PrintWriter(str); out.println(X509Certificate.class.getName() + " {"); out.println(" TBSCertificate {"); out.println(" version = " + version + ";"); out.println(" serialNo = " + serialNo + "... | 37,953 |
public RequestHeader() { service_context = new ServiceContext[] { cxCodeSet.STANDARD }; } | public RequestHeader() { service_context = new ServiceContext[] { CodeSetServiceContext.STANDARD }; } | 37,954 |
public void read(cdrInput in) { try { request_id = in.read_ulong(); response_flags = (byte) in.read(); // Skip 3 reserved octets: in.skip(3); // Read target address. AddressingDisposition = in.read_ushort(); switch (AddressingDisposition) { ... | public void read(AbstractCdrInput in) { try { request_id = in.read_ulong(); response_flags = (byte) in.read(); // Skip 3 reserved octets: in.skip(3); // Read target address. AddressingDisposition = in.read_ushort(); switch (AddressingDisposition) { ... | 37,955 |
public void read(cdrInput in) { try { request_id = in.read_ulong(); response_flags = (byte) in.read(); // Skip 3 reserved octets: in.skip(3); // Read target address. AddressingDisposition = in.read_ushort(); switch (AddressingDisposition) { ... | public void read(cdrInput in) { try { request_id = in.read_ulong(); response_flags = (byte) in.read(); // Skip 3 reserved octets: in.skip(3); // Read target address. AddressingDisposition = in.read_ushort(); switch (AddressingDisposition) { ... | 37,956 |
public void write(cdrOutput out) { out.write_ulong(request_id); out.write(response_flags); // Skip 3 reserved octets: out.write(0); out.write(0); out.write(0); // Write addressing disposition from IOR. // TODO FIXME add other addressing methods. out.write_ushort(KeyAddr); out.write_sequ... | public void write(AbstractCdrOutput out) { out.write_ulong(request_id); out.write(response_flags); // Skip 3 reserved octets: out.write(0); out.write(0); out.write(0); // Write addressing disposition from IOR. // TODO FIXME add other addressing methods. out.write_ushort(KeyAddr); out.wr... | 37,957 |
public void write(cdrOutput out) { out.write_ulong(request_id); out.write(response_flags); // Skip 3 reserved octets: out.write(0); out.write(0); out.write(0); // Write addressing disposition from IOR. // TODO FIXME add other addressing methods. out.write_ushort(KeyAddr); out.write_sequ... | public void write(cdrOutput out) { out.write_ulong(request_id); out.write(response_flags); // Skip 3 reserved octets: out.write(0); out.write(0); out.write(0); // Write addressing disposition from IOR. // TODO FIXME add other addressing methods. out.write_ushort(KeyAddr); out.write_sequ... | 37,958 |
public EEPRO100Core(EEPRO100Driver driver, ResourceOwner owner, PCIDevice device, Flags flags) throws ResourceNotFreeException, DriverException { this.driver = driver; this.flags = (EEPRO100Flags) flags; final PCIDeviceConfig config = device.getConfig(); final int irq = config.getInterru... | public EEPRO100Core(EEPRO100Driver driver, ResourceOwner owner, PCIDevice device, Flags flags) throws ResourceNotFreeException, DriverException { this.flags = (EEPRO100Flags) flags; final PCIDeviceConfig config = device.getConfig(); final int irq = config.getInterruptLine(); fina... | 37,959 |
public EEPRO100Core(EEPRO100Driver driver, ResourceOwner owner, PCIDevice device, Flags flags) throws ResourceNotFreeException, DriverException { this.driver = driver; this.flags = (EEPRO100Flags) flags; final PCIDeviceConfig config = device.getConfig(); final int irq = config.getInterru... | public EEPRO100Core(EEPRO100Driver driver, ResourceOwner owner, PCIDevice device, Flags flags) throws ResourceNotFreeException, DriverException { this.driver = driver; this.flags = (EEPRO100Flags) flags; final PCIDeviceConfig config = device.getConfig(); final int irq = config.getInterru... | 37,960 |
final int mdioWrite(int phy_id, int location, int value) { int val, boguscnt = 7; /* <64 usec. to complete, typ 27 ticks */ regs.setReg32(SCBCtrlMDI, 0x04000000 | (location << 16) | (phy_id << 21) | value); do { systemDelay(10); val = regs.getReg32(SCBCtrlMDI); ... | final int mdioWrite(int phy_id, int location, int value) { int val, boguscnt = 7; /* <64 usec. to complete, typ 27 ticks */ regs.setReg32(SCBCtrlMDI, 0x04000000 | (location << 16) | (phy_id << 21) | value); do { systemDelay(10); val = regs.getReg32(SCBCtrlMDI); ... | 37,961 |
public AbstractTableModel() { // TODO } | public AbstractTableModel() { // TODO } | 37,962 |
public void addTableModelListener (TableModelListener listener) { listenerList.add (TableModelListener.class, listener); } | public void addTableModelListener(TableModelListener listener) { listenerList.add (TableModelListener.class, listener); } | 37,963 |
public void addTableModelListener (TableModelListener listener) { listenerList.add (TableModelListener.class, listener); } | public void addTableModelListener (TableModelListener listener) { listenerList.add(TableModelListener.class, listener); } | 37,964 |
public int findColumn (String columnName) { int count = getColumnCount(); for (int index = 0; index < count; index++) { String name = getColumnName (index); if (name.equals (columnName)) return index; } // Unable to locate. return -1; } | public int findColumn(String columnName) { int count = getColumnCount(); for (int index = 0; index < count; index++) { String name = getColumnName (index); if (name.equals (columnName)) return index; } // Unable to locate. return -1; } | 37,965 |
public int findColumn (String columnName) { int count = getColumnCount(); for (int index = 0; index < count; index++) { String name = getColumnName (index); if (name.equals (columnName)) return index; } // Unable to locate. return -1; } | public int findColumn (String columnName) { int count = getColumnCount(); for (int index = 0; index < count; index++) { String name = getColumnName(index); if (name.equals (columnName)) return index; } // Unable to locate. return -1; } | 37,966 |
public int findColumn (String columnName) { int count = getColumnCount(); for (int index = 0; index < count; index++) { String name = getColumnName (index); if (name.equals (columnName)) return index; } // Unable to locate. return -1; } | public int findColumn (String columnName) { int count = getColumnCount(); for (int index = 0; index < count; index++) { String name = getColumnName (index); if (columnName.equals(name)) return index; } // Unable to locate. return -1; } | 37,967 |
public void fireTableCellUpdated (int row, int column) { fireTableChanged (new TableModelEvent (this, row, row, column)); } | public void fireTableCellUpdated (int row, int column) { fireTableChanged(new TableModelEvent(this, row, row, column)); } | 37,968 |
public void fireTableChanged (TableModelEvent event) { int index; TableModelListener listener; Object[] list = listenerList.getListenerList(); for (index = 0; index < list.length; index += 2) { listener = (TableModelListener) list [index + 1]; listener.tableChanged (event); } } | public void fireTableChanged(TableModelEvent event) { int index; TableModelListener listener; Object[] list = listenerList.getListenerList(); for (index = 0; index < list.length; index += 2) { listener = (TableModelListener) list [index + 1]; listener.tableChanged (event); } } | 37,969 |
public void fireTableDataChanged() { fireTableChanged (new TableModelEvent (this)); } | public void fireTableDataChanged() { fireTableChanged(new TableModelEvent(this, 0, Integer.MAX_VALUE)); } | 37,970 |
public void fireTableRowsDeleted(int firstRow, int lastRow) { fireTableChanged (new TableModelEvent (this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.DELETE)); } | public void fireTableRowsDeleted(int firstRow, int lastRow) { fireTableChanged(new TableModelEvent(this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.DELETE)); } | 37,971 |
public void fireTableRowsInserted (int firstRow, int lastRow) { fireTableChanged (new TableModelEvent (this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT)); } | public void fireTableRowsInserted (int firstRow, int lastRow) { fireTableChanged(new TableModelEvent(this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT)); } | 37,972 |
public void fireTableRowsUpdated (int firstRow, int lastRow) { fireTableChanged (new TableModelEvent (this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.UPDATE)); } | public void fireTableRowsUpdated (int firstRow, int lastRow) { fireTableChanged(new TableModelEvent(this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.UPDATE)); } | 37,973 |
public void fireTableStructureChanged() { fireTableChanged (new TableModelEvent (this, TableModelEvent.HEADER_ROW)); } | public void fireTableStructureChanged() { fireTableChanged(new TableModelEvent(this, TableModelEvent.HEADER_ROW)); } | 37,974 |
public Class getColumnClass (int columnIndex) { return Object.class; } | public Class getColumnClass(int columnIndex) { return Object.class; } | 37,975 |
public String getColumnName (int columnIndex) { int index = columnIndex + 1; StringBuffer buffer = new StringBuffer(); while (index > 0) { buffer.insert (0, (char) ('A' + ((index - 1) % 26))); index = (index - 1) / 26; } // Return column name. return buffer.toString(); } | public String getColumnName(int columnIndex) { int index = columnIndex + 1; StringBuffer buffer = new StringBuffer(); while (index > 0) { buffer.insert (0, (char) ('A' + ((index - 1) % 26))); index = (index - 1) / 26; } // Return column name. return buffer.toString(); } | 37,976 |
public String getColumnName (int columnIndex) { int index = columnIndex + 1; StringBuffer buffer = new StringBuffer(); while (index > 0) { buffer.insert (0, (char) ('A' + ((index - 1) % 26))); index = (index - 1) / 26; } // Return column name. return buffer.toString(); } | public String getColumnName (int columnIndex) { StringBuffer buffer = new StringBuffer(); while (index > 0) { buffer.insert (0, (char) ('A' + ((index - 1) % 26))); index = (index - 1) / 26; } // Return column name. return buffer.toString(); } | 37,977 |
public String getColumnName (int columnIndex) { int index = columnIndex + 1; StringBuffer buffer = new StringBuffer(); while (index > 0) { buffer.insert (0, (char) ('A' + ((index - 1) % 26))); index = (index - 1) / 26; } // Return column name. return buffer.toString(); } | public String getColumnName (int columnIndex) { int index = columnIndex + 1; StringBuffer buffer = new StringBuffer(); while (columnIndex >= 0) { buffer.insert (0, (char) ('A' + ((index - 1) % 26))); index = (index - 1) / 26; } // Return column name. return buffer.toString(); } | 37,978 |
public String getColumnName (int columnIndex) { int index = columnIndex + 1; StringBuffer buffer = new StringBuffer(); while (index > 0) { buffer.insert (0, (char) ('A' + ((index - 1) % 26))); index = (index - 1) / 26; } // Return column name. return buffer.toString(); } | public String getColumnName (int columnIndex) { int index = columnIndex + 1; StringBuffer buffer = new StringBuffer(); while (index > 0) { buffer.insert (0, (char) ('A' + ((index - 1) % 26))); index = (index - 1) / 26; } // Return column name. return buffer.toString(); } | 37,979 |
public String getColumnName (int columnIndex) { int index = columnIndex + 1; StringBuffer buffer = new StringBuffer(); while (index > 0) { buffer.insert (0, (char) ('A' + ((index - 1) % 26))); index = (index - 1) / 26; } // Return column name. return buffer.toString(); } | public String getColumnName (int columnIndex){int index = columnIndex + 1;StringBuffer buffer = new StringBuffer();while (index > 0){ buffer.insert (0, (char) ('A' + ((index - 1) % 26))); index = (index - 1) / 26;}// Return column name.return buffer.toString();} | 37,980 |
public EventListener[] getListeners (Class listenerType) { return listenerList.getListeners (listenerType); } | public EventListener[] getListeners(Class listenerType) { return listenerList.getListeners (listenerType); } | 37,981 |
public EventListener[] getListeners (Class listenerType) { return listenerList.getListeners (listenerType); } | public EventListener[] getListeners (Class listenerType) { return listenerList.getListeners(listenerType); } | 37,982 |
public TableModelListener[] getTableModelListeners() { return (TableModelListener[]) listenerList.getListeners (TableModelListener.class); } | public TableModelListener[] getTableModelListeners() { return (TableModelListener[]) listenerList.getListeners(TableModelListener.class); } | 37,983 |
public boolean isCellEditable (int rowIndex, int columnIndex) { return false; } | public boolean isCellEditable(int rowIndex, int columnIndex) { return false; } | 37,984 |
public void removeTableModelListener (TableModelListener listener) { listenerList.remove (TableModelListener.class, listener); } | public void removeTableModelListener(TableModelListener listener) { listenerList.remove (TableModelListener.class, listener); } | 37,985 |
public void removeTableModelListener (TableModelListener listener) { listenerList.remove (TableModelListener.class, listener); } | public void removeTableModelListener (TableModelListener listener) { listenerList.remove(TableModelListener.class, listener); } | 37,986 |
public void setValueAt (Object value, int rowIndex, int columnIndex) { // Do nothing... } | public void setValueAt(Object value, int rowIndex, int columnIndex) { // Do nothing... } | 37,987 |
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.SELFCERT_CMD, true); result.setHeader(Messages.getString("SelfCertCmd.14")); //$NON-NLS-1$ result.setFooter(Messages.getString("SelfCertCmd.15")); //$NON-NLS-1$ OptionG... | ParsergetParser(){log.entering(this.getClass().getName(),"getParser");//$NON-NLS-1$Parserresult=newClasspathToolParser(Main.SELFCERT_CMD,true);result.setHeader(Messages.getString("SelfCertCmd.14"));//$NON-NLS-1$result.setFooter(Messages.getString("SelfCertCmd.15"));//$NON-NLS-1$OptionGroupoptions=newOptionGroup(Message... | 37,988 |
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.SELFCERT_CMD, true); result.setHeader(Messages.getString("SelfCertCmd.14")); //$NON-NLS-1$ result.setFooter(Messages.getString("SelfCertCmd.15")); //$NON-NLS-1$ OptionG... | if (Configuration.DEBUG) if (Configuration.DEBUG) Parserif (Configuration.DEBUG) getParser()if (Configuration.DEBUG) if (Configuration.DEBUG) {if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) log.entering(this.getClass().getName(),if (Configuration.DEBUG) "getParser");... | 37,989 |
void setup() throws Exception { setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); setKeyPasswordNoPrompt(_password); setValidityParam(_validityStr); log.finer("-selfcert handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" + alias)... | void setup() throws Exception { setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); setKeyPasswordNoPrompt(_password); setValidityParam(_validityStr); log.finer("-selfcert handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" + alias)... | 37,990 |
void start() throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException, IOException, UnsupportedCallbackException, InvalidKeyException, SignatureException, CertificateException { log.entering(getClass().getName(), "start"); //$NON-NLS-1$ // 1. get the key entry and certificate cha... | voidstart()throwsKeyStoreException,NoSuchAlgorithmException,UnrecoverableKeyException,IOException,UnsupportedCallbackException,InvalidKeyException,SignatureException,CertificateException{log.entering(getClass().getName(),"start");//$NON-NLS-1$//1.getthekeyentryandcertificatechainassociatedtoaliasKeyprivateKey=getAliasP... | 37,991 |
void start() throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException, IOException, UnsupportedCallbackException, InvalidKeyException, SignatureException, CertificateException { log.entering(getClass().getName(), "start"); //$NON-NLS-1$ // 1. get the key entry and certificate cha... | if (Configuration.DEBUG) if (Configuration.DEBUG) voidif (Configuration.DEBUG) start()if (Configuration.DEBUG) throwsif (Configuration.DEBUG) KeyStoreException,if (Configuration.DEBUG) NoSuchAlgorithmException,if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Config... | 37,992 |
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();... | public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();... | 37,993 |
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();... | public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();... | 37,994 |
protected void defineElements() { /* Define the elements. */ defElement(PCDATA, 0, false, false, null, NONE, NONE, new AttributeList[ 0 ]); defElement(A, 0, false, false, null, new String[] { A } , new String[] { PCDATA, ABBR, ACRONYM, APPLET, B, BASEFONT,... | protected void defineElements() { /* Define the elements. */ defElement(PCDATA, 0, false, false, null, NONE, NONE, new AttributeList[ 0 ]); defElement(A, 0, false, false, null, new String[] { A } , new String[] { PCDATA, ABBR, ACRONYM, APPLET, B, BASEFONT,... | 37,995 |
LookAndFeelInfo(String name, String clazz) { this.name = name; this.clazz = clazz; } | LookAndFeelInfo(String name, String clazz) { this.name = name; this.clazz = clazz; } | 37,996 |
String getClassName() { return clazz; } | String getClassName() { return clazz; } | 37,997 |
String getName() { return name; } | String getName() { return name; } | 37,998 |
UIManager() { } | UIManager() { } | 37,999 |
public static void addAuxiliaryLookAndFeel(LookAndFeel l) { // Add a LookAndFeel to the list of auxiliary look and feels. if (aux_installed == null) { aux_installed = new LookAndFeel[1]; aux_installed[0] = l; return; } LookAndFeel[] T = new LookAndFeel[aux_installed.length + 1]; System.arraycopy(a... | public static void addAuxiliaryLookAndFeel(LookAndFeel l) { // Add a LookAndFeel to the list of auxiliary look and feels. if (aux_installed == null) { aux_installed = new LookAndFeel[1]; aux_installed[0] = l; return; } LookAndFeel[] T = new LookAndFeel[aux_installed.length + 1]; System.arraycopy(a... | 38,000 |
public static void addPropertyChangeListener(PropertyChangeListener listener) { // Add a PropertyChangeListener to the listener list. } | public static void addPropertyChangeListener(PropertyChangeListener listener) { // Add a PropertyChangeListener to the listener list. } | 38,001 |
public static Object get(Object key) { return getLookAndFeel().getDefaults().get(key); } | public static Object get(Object key) { return getLookAndFeel().getDefaults().get(key); } | 38,002 |
public static LookAndFeel[] getAuxiliaryLookAndFeels() { return aux_installed; } | public static LookAndFeel[] getAuxiliaryLookAndFeels() { return aux_installed; } | 38,003 |
public static Border getBorder(Object key) { return (Border) getLookAndFeel().getDefaults().get(key); } | public static Border getBorder(Object key) { return (Border) getLookAndFeel().getDefaults().get(key); } | 38,004 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.