bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void reshape(int x, int y, int width, int height) { super.reshape(x, y, width, height); //TODO fix it /* if (awtFrame.isVisible()) { Point p = awtFrame.getLocationOnScreen(); Insets ins = swingPeer.getInsets(); awtFr... | public void reshape(int x, int y, int width, int height) { super.reshape(x, y, width, height); //TODO fix it /* if (awtFrame.isVisible()) { Point p = awtFrame.getLocationOnScreen(); Insets ins = swingPeer.getInsets(); awtFr... | 23,675 |
BackwardAction() { super(backwardAction); } | BackwardAction() { super(backwardAction); } | 23,676 |
DownAction() { super(downAction); } | DownAction() { super(downAction, SwingConstants.SOUTH); } | 23,677 |
ForwardAction() { super(forwardAction); } | ForwardAction() { super(forwardAction); } | 23,678 |
public void actionPerformed(ActionEvent event) { try { JTextComponent t = getTextComponent(event); if (t != null) { int offs = Utilities.getNextWord(t, t.getCaretPosition()); Caret c = t.getCaret(); c.setDot(offs); ... | public void actionPerformed(ActionEvent event) { try { JTextComponent t = getTextComponent(event); if (t != null) { int offs = Utilities.getNextWord(t, t.getCaretPosition()); Caret c = t.getCaret(); c.setDot(offs); ... | 23,679 |
SelectionBackwardAction() { super(selectionBackwardAction); } | SelectionBackwardAction() { super(selectionBackwardAction, SwingConstants.WEST); } | 23,680 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { // TODO: There is a more efficent solution, but // viewToModel doesn't work properly. Point p = t.modelToView(t.getCaret().getDot()).getLocation(); int cur = t.getCaretPos... | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { // TODO: There is a more efficent solution, but // viewToModel doesn't work properly. Point p = t.modelToView(t.getCaret().getDot()).getLocation(); int cur = t.getCaretPos... | 23,681 |
SelectionDownAction() { super(selectionDownAction); } | SelectionDownAction() { super(selectionDownAction, SwingConstants.SOUTH); } | 23,682 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { Point p = t.modelToView(t.getCaret().getDot()).getLocation(); int cur = t.getCaretPosition(); int y = p.y; int length = t.getDocument().getLength(); while (y == p.y && cur... | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { Point p = t.modelToView(t.getCaret().getDot()).getLocation(); int cur = t.getCaretPosition(); int y = p.y; int length = t.getDocument().getLength(); while (y == p.y && cur... | 23,683 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { Point p = t.modelToView(t.getCaret().getDot()).getLocation(); int cur = t.getCaretPosition(); int y = p.y; int length = t.getDocument().getLength(); while (y == p.y && cur... | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { Point p = t.modelToView(t.getCaret().getDot()).getLocation(); int cur = t.getCaretPosition(); int y = p.y; int length = t.getDocument().getLength(); while (y == p.y && cur... | 23,684 |
SelectionForwardAction() { super(selectionForwardAction); } | SelectionForwardAction() { super(selectionForwardAction); } | 23,685 |
SelectionUpAction() { super(selectionUpAction); } | SelectionUpAction() { super(selectionUpAction); } | 23,686 |
UpAction() { super(upAction); } | UpAction() { super(upAction, SwingConstants.NORTH); } | 23,687 |
private final void writeLeInt(int value) throws IOException { writeLeShort(value); writeLeShort(value >> 16); } | private void writeLeInt(int value) throws IOException { writeLeShort(value); writeLeShort(value >> 16); } | 23,688 |
private final void writeLeShort(int value) throws IOException { out.write(value & 0xff); out.write((value >> 8) & 0xff); } | private void writeLeShort(int value) throws IOException { out.write(value & 0xff); out.write((value >> 8) & 0xff); } | 23,689 |
public AffineTransform createInverse() throws NoninvertibleTransformException { double det = getDeterminant(); if (det == 0) throw new NoninvertibleTransformException("can't invert transform"); return new AffineTransform(m11 / det, -m10 / det, m01 / det, -m00 / det, -m02, -m12); } | public AffineTransform createInverse() throws NoninvertibleTransformException { double det = getDeterminant(); if (det == 0) throw new NoninvertibleTransformException("can't invert transform"); double im00 = m11 / det; double im10 = -m10 / det; double im01 = -m01 / det; double im11 = m00 / det; double im02 = (m01... | 23,690 |
public void shear(double shx, double shy) { double n00 = m00 + shx * m01; double n01 = shx * m00 + m01; double n10 = m10 * shy + m11; double n11 = shx * m10 + m11; m00 = n00; m01 = n01; m10 = n10; m11 = n11; updateType(); } | public void shear(double shx, double shy) { double n00 = m00 + shx * m01; double n01 = shx * m00 + m01; double n10 = m10 * shy + m11; double n11 = shx * m10 + m11; m00 = n00; m01 = n01; m10 = n10; m11 = n11; updateType(); } | 23,691 |
public List getInetAddresses(VMNetDevice netDevice) { final ArrayList<InetAddress> list = new ArrayList<InetAddress>(); final SecurityManager sm = System.getSecurityManager(); try { final NetDeviceImpl netDeviceImpl = (NetDeviceImpl) netDevice; final NetDeviceAPI api = (Ne... | public List<InetAddress> getInetAddresses(VMNetDevice netDevice) { final ArrayList<InetAddress> list = new ArrayList<InetAddress>(); final SecurityManager sm = System.getSecurityManager(); try { final NetDeviceImpl netDeviceImpl = (NetDeviceImpl) netDevice; final NetDevice... | 23,692 |
public Collection getNetDevices() { final ArrayList<VMNetDevice> list = new ArrayList<VMNetDevice>(); final Collection<Device> devs = DeviceUtils .getDevicesByAPI(NetDeviceAPI.class); for (Device dev : devs) { list.add(new NetDeviceImpl(dev)); } return li... | public Collection<VMNetDevice> getNetDevices() { final ArrayList<VMNetDevice> list = new ArrayList<VMNetDevice>(); final Collection<Device> devs = DeviceUtils .getDevicesByAPI(NetDeviceAPI.class); for (Device dev : devs) { list.add(new NetDeviceImpl(dev)); } ... | 23,693 |
public String getApproveButtonText(JFileChooser fc) { if (fc.getDialogType() == JFileChooser.SAVE_DIALOG) return saveButtonText; else return openButtonText; } | public String getApproveButtonText(JFileChooser fc) { if (fc.getApproveButtonText() != null) return fc.getApproveButtonText(); else if (fc.getDialogType() == JFileChooser.SAVE_DIALOG) return saveButtonText; else return openButtonText; } | 23,694 |
public void doPass2(BootableHashMap liveVariables) { refs[0] = refs[0].simplify(); refs[1] = refs[1].simplify(); if (refs[0] instanceof Variable) { Variable v = (Variable) refs[0]; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } if (refs[1] instanceof Variable) { Variable v = (Variable)... | public void doPass2() { refs[0] = refs[0].simplify(); refs[1] = refs[1].simplify(); if (refs[0] instanceof Variable) { Variable v = (Variable) refs[0]; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } if (refs[1] instanceof Variable) { Variable v = (Variable) refs[1]; v.setLastUseAddre... | 23,695 |
public void doPass2(BootableHashMap liveVariables) { refs[0] = refs[0].simplify(); refs[1] = refs[1].simplify(); if (refs[0] instanceof Variable) { Variable v = (Variable) refs[0]; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } if (refs[1] instanceof Variable) { Variable v = (Variable)... | public void doPass2(BootableHashMap liveVariables) { refs[0] = refs[0].simplify(); refs[1] = refs[1].simplify(); if (refs[0] instanceof Variable) { Variable v = (Variable) refs[0]; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } if (refs[1] instanceof Variable) { Variable v = (Variable)... | 23,696 |
public void installUI(JComponent c) { super.installUI(c); if (c instanceof JScrollBar) { scrollbar = (JScrollBar) c; trackRect = new Rectangle(); thumbRect = new Rectangle(); scrollTimer = new Timer(); scrollTimer.setDelay(200); scrollTimer.setRepeats(true); installComponents(); installListeners(); instal... | public void installUI(JComponent c) { super.installUI(c); if (c instanceof JScrollBar) { scrollbar = (JScrollBar) c; trackRect = new Rectangle(); thumbRect = new Rectangle(); scrollTimer = new Timer(); scrollTimer.setDelay(200); scrollTimer.setRepeats(true); installComponents(); installListeners(); instal... | 23,697 |
protected void fireStateChanged () { ChangeListener[] listeners = getChangeListeners (); for (int i = 0; i < listeners.length; i++) { listeners [i].stateChanged (new ChangeEvent (this)); } } | protected void fireStateChanged () { ChangeListener[] listeners = getChangeListeners (); for (int i = 0; i < listeners.length; i++) { listeners [i].stateChanged (new ChangeEvent (this)); } } | 23,698 |
private MenuElement[] getPath (Component c) { ArrayList path = new ArrayList(); path.add(0, c); Component parent = c.getParent (); while (parent instanceof JMenu || parent instanceof JPopupMenu || parent instanceof JMenuItem || parent instanceof JMenuBar) { pa... | private MenuElement[] getPath (Component c) { ArrayList path = new ArrayList(); while (c instanceof MenuElement) { path.add(0, (MenuElement) c); Component parent = c.getParent (); while (parent instanceof JMenu || parent instanceof JPopupMenu || parent instanceof JMenuItem ... | 23,699 |
private MenuElement[] getPath (Component c) { ArrayList path = new ArrayList(); path.add(0, c); Component parent = c.getParent (); while (parent instanceof JMenu || parent instanceof JPopupMenu || parent instanceof JMenuItem || parent instanceof JMenuBar) { pa... | private MenuElement[] getPath (Component c) { ArrayList path = new ArrayList(); path.add(0, c); Component parent = c.getParent (); while (parent instanceof JMenu || parent instanceof JPopupMenu || parent instanceof JMenuItem || parent instanceof JMenuBar) { pa... | 23,700 |
public void actionPerformed(ActionEvent event) { getTextComponent(event).copy(); } | public void actionPerformed(ActionEvent event) { JTextComponent target = getTextComponent(event); if (target != null) target.copy(); } | 23,704 |
public void actionPerformed(ActionEvent event) { getTextComponent(event).cut(); } | public void actionPerformed(ActionEvent event) { JTextComponent target = getTextComponent(event); if (target != null) target.cut(); } | 23,705 |
public void actionPerformed(ActionEvent event) { getTextComponent(event).paste(); } | public void actionPerformed(ActionEvent event) { JTextComponent target = getTextComponent(event); if (target != null) target.paste(); } | 23,710 |
public DefaultTreeModel(TreeNode root) { if (root == null) root = new DefaultMutableTreeNode(); setRoot(root); } | public DefaultTreeModel(TreeNode root) { if (root == null) root = new DefaultMutableTreeNode(); setRoot(root); } | 23,718 |
public boolean equals(final Object obj) { if (obj == null) { return false; } if (!(obj instanceof RSAPublicKey)) { return false; } final RSAPublicKey that = (RSAPublicKey) obj; return super.equals(that) && getPublicExponent().equals(that.getPublicExponent()); ... | public boolean equals(final Object obj) if (obj == null) return false; } if (!(obj instanceof RSAPublicKey)) return false; } final RSAPublicKey that = (RSAPublicKey) obj; return super.equals(that) && getPublicExponent().equals(that.getPublicExponent()); } | 23,721 |
public boolean equals(final Object obj) { if (obj == null) { return false; } if (!(obj instanceof RSAPublicKey)) { return false; } final RSAPublicKey that = (RSAPublicKey) obj; return super.equals(that) && getPublicExponent().equals(that.getPublicExponent()); ... | public boolean equals(final Object obj) { if (obj == null) { return false; } if (!(obj instanceof RSAPublicKey)) { return false; } final RSAPublicKey that = (RSAPublicKey) obj; return super.equals(that) && getPublicExponent().equals(that.getPublicExponent()); ... | 23,722 |
public boolean equals(final Object obj) { if (obj == null) { return false; } if (!(obj instanceof RSAPublicKey)) { return false; } final RSAPublicKey that = (RSAPublicKey) obj; return super.equals(that) && getPublicExponent().equals(that.getPublicExponent()); ... | public boolean equals(final Object obj) { if (obj == null) { return false; if (!(obj instanceof RSAPublicKey)) { return false; final RSAPublicKey that = (RSAPublicKey) obj; return super.equals(that) && getPublicExponent().equals(that.getPublicExponent()); | 23,723 |
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... | 23,724 |
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()) return new FileResource(this, file); } catch (IOException e) { // Fall through... } return null; } | 23,725 |
public IllegalMechanismStateException(String detail) { super(detail); } | public IllegalMechanismStateException() { super(detail); } | 23,726 |
public IllegalMechanismStateException(String detail) { super(detail); } | public IllegalMechanismStateException(String detail) { super(); } | 23,727 |
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 ... | 23,730 |
protected void finalize() { queue.setNullOnEmpty(true); } | protected void finalize() throws Throwable { queue.setNullOnEmpty(true); } | 23,733 |
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 ... | 23,734 |
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 ... | 23,735 |
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"); } } | 23,736 |
public int getBasicConstraints() { return basicConstraints; } | public int getBasicConstraints() { Extension e = getExtension(BasicConstraints.ID); if (e != null) { return ((BasicConstraints) e.getValue()).getPathLengthConstraint(); } return -1; } | 23,737 |
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... | 23,738 |
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... | 23,739 |
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... | 23,740 |
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... | 23,741 |
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... | 23,742 |
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); } | 23,743 |
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; } | 23,744 |
public Principal getIssuerDN() { return getIssuerX500Principal(); } | public Principal getIssuerDN() { return issuer; } | 23,745 |
public X500Principal getIssuerX500Principal() { return issuer; } | public X500Principal getIssuerX500Principal() { return new X500Principal(issuer.getDer()); } | 23,747 |
public boolean[] getKeyUsage() { if (keyUsage != null) return keyUsage.toBooleanArray(); return null; } | public boolean[] getKeyUsage() { if (keyUsage != null) return keyUsage.toBooleanArray(); return null; } | 23,748 |
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... | 23,749 |
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... | 23,750 |
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... | 23,751 |
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); } | 23,752 |
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; } | 23,753 |
public Principal getSubjectDN() { return getSubjectX500Principal(); } | public Principal getSubjectDN() { return subject; } | 23,754 |
public X500Principal getSubjectX500Principal() { return subject; } | public X500Principal getSubjectX500Principal() { return new X500Principal(subject.getDer()); } | 23,756 |
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... | 23,757 |
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.... | 23,758 |
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... | 23,759 |
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 :... | 23,760 |
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 :... | 23,761 |
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 :... | 23,762 |
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 :... | 23,763 |
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 :... | 23,764 |
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 :... | 23,765 |
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 :... | 23,766 |
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 :... | 23,767 |
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 :... | 23,768 |
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 :... | 23,769 |
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 + ... | 23,771 |
public RequestHeader() { service_context = new ServiceContext[] { cxCodeSet.STANDARD }; } | public RequestHeader() { service_context = new ServiceContext[] { CodeSetServiceContext.STANDARD }; } | 23,772 |
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) { ... | 23,773 |
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) { ... | 23,774 |
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... | 23,775 |
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... | 23,776 |
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... | 23,777 |
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... | 23,778 |
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); ... | 23,779 |
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; } | 23,780 |
public void fireTableDataChanged() { fireTableChanged (new TableModelEvent (this)); } | public void fireTableDataChanged() { fireTableChanged(new TableModelEvent(this, 0, Integer.MAX_VALUE)); } | 23,781 |
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(); } | 23,782 |
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(); } | 23,783 |
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(); } | 23,784 |
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)... | 23,786 |
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();... | 23,788 |
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();... | 23,789 |
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,... | 23,790 |
UIManager() { } | UIManager() { } | 23,791 |
static UIDefaults getDefaults() { return getLookAndFeel().getDefaults(); } | static UIDefaults getDefaults() { return getLookAndFeel().getDefaults(); } | 23,792 |
static Dimension getDimension(Object key) { System.out.println("UIManager.getDim"); return new Dimension(200, 100); } | static Dimension getDimension(Object key) { System.out.println("UIManager.getDim"); return new Dimension(200, 100); } | 23,793 |
static Font getFont(Object key) // Returns a drawing font from the defaults table. { return (Font) getLookAndFeel().getDefaults().get(key); } | static Font getFont(Object key) // Returns a drawing font from the defaults table. { return (Font) getLookAndFeel().getDefaults().get(key); } | 23,794 |
static Icon getIcon(Object key) // Returns an Icon from the defaults table. { return (Icon) getLookAndFeel().getDefaults().get(key); } | static Icon getIcon(Object key) // Returns an Icon from the defaults table. { return (Icon) getLookAndFeel().getDefaults().get(key); } | 23,795 |
static Insets getInsets(Object key) // Returns an Insets object from the defaults table. { return (Insets) getLookAndFeel().getDefaults().getInsets(key); } | static Insets getInsets(Object key) // Returns an Insets object from the defaults table. { return (Insets) getLookAndFeel().getDefaults().getInsets(key); } | 23,796 |
static LookAndFeelInfo[] getInstalledLookAndFeels() { return installed; } | static LookAndFeelInfo[] getInstalledLookAndFeels() { return installed; } | 23,797 |
static int getInt(Object key) { Integer x = (Integer) getLookAndFeel().getDefaults().get(key); if (x == null) return 0; return x.intValue(); } | static int getInt(Object key) { Integer x = (Integer) getLookAndFeel().getDefaults().get(key); if (x == null) return 0; return x.intValue(); } | 23,798 |
static LookAndFeel getLookAndFeel() { return look_and_feel; } | static LookAndFeel getLookAndFeel() { return look_and_feel; } | 23,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.