bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
void dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else if ( e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMas... | void dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else if ( e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMas... | 23,090 |
public synchronized String[] getItems() { String[] l_items = new String[getItemCount()]; items.copyInto(l_items); return (l_items); } | getItems() { String[] l_items = new String[getItemCount()]; items.copyInto(l_items); return (l_items); } | 23,091 |
public Dimension getMinimumSize() { return (getMinimumSize(rows)); } | public Dimension getMinimumSize() { return (getMinimumSize(rows)); } | 23,092 |
public Dimension getPreferredSize() { return (getPreferredSize(rows)); } | public Dimension getPreferredSize() { return (getPreferredSize(rows)); } | 23,093 |
public int getRows() { return (rows); } | public int getRows() { return (rows); } | 23,094 |
public synchronized String getSelectedItem() { int index = getSelectedIndex(); if (index == -1) return (null); return ((String) items.elementAt(index)); } | getSelectedItem() { int index = getSelectedIndex(); if (index == -1) return (null); return ((String) items.elementAt(index)); } | 23,095 |
public synchronized String[] getSelectedItems() { int[] indexes = getSelectedIndexes(); if (indexes == null) return (new String[0]); String[] retvals = new String[indexes.length]; if (retvals.length > 0) for (int i = 0; i < retvals.length; i++) retvals[i] = (String) items.elementAt(indexes[i]); return (ret... | getSelectedItems() { int[] indexes = getSelectedIndexes(); if (indexes == null) return (new String[0]); String[] retvals = new String[indexes.length]; if (retvals.length > 0) for (int i = 0; i < retvals.length; i++) retvals[i] = (String) items.elementAt(indexes[i]); return (retvals); } | 23,096 |
public synchronized Object[] getSelectedObjects() { int[] indexes = getSelectedIndexes(); if (indexes == null) return (new Object[0]); Object[] retvals = new Object[indexes.length]; if (retvals.length > 0) for (int i = 0; i < retvals.length; i++) retvals[i] = items.elementAt(indexes[i]); return (retvals); ... | getSelectedObjects() { int[] indexes = getSelectedIndexes(); if (indexes == null) return (new Object[0]); Object[] retvals = new Object[indexes.length]; if (retvals.length > 0) for (int i = 0; i < retvals.length; i++) retvals[i] = items.elementAt(indexes[i]); return (retvals); } | 23,097 |
public int getVisibleIndex() { return (visibleIndex); } | public int getVisibleIndex() { return (visibleIndex); } | 23,098 |
public boolean isIndexSelected(int index) { int[] indexes = getSelectedIndexes(); for (int i = 0; i < indexes.length; i++) if (indexes[i] == index) return (true); return (false); } | public boolean isIndexSelected(int index) { int[] indexes = getSelectedIndexes(); for (int i = 0; i < indexes.length; i++) if (indexes[i] == index) return (true); return (false); } | 23,099 |
public boolean isMultipleMode() { return (multipleMode); } | public boolean isMultipleMode() { return (multipleMode); } | 23,100 |
public boolean isSelected(int index) { return (isIndexSelected(index)); } | public boolean isSelected(int index) { return (isIndexSelected(index)); } | 23,101 |
public synchronized void makeVisible(int index) throws IllegalArgumentException { if ((index < 0) || (index >= items.size())) throw new IllegalArgumentException("Bad list index: " + index); visibleIndex = index; if (peer != null) { ListPeer l = (ListPeer) peer; l.makeVisible(index); } } | makeVisible(int index) throws IllegalArgumentException { if ((index < 0) || (index >= items.size())) throw new IllegalArgumentException("Bad list index: " + index); visibleIndex = index; if (peer != null) { ListPeer l = (ListPeer) peer; l.makeVisible(index); } } | 23,102 |
public synchronized void makeVisible(int index) throws IllegalArgumentException { if ((index < 0) || (index >= items.size())) throw new IllegalArgumentException("Bad list index: " + index); visibleIndex = index; if (peer != null) { ListPeer l = (ListPeer) peer; l.makeVisible(index); } } | public synchronized void makeVisible(int index) throws IllegalArgumentException { if ((index < 0) || (index >= items.size())) throw new IllegalArgumentException("Bad list index: " + index); visibleIndex = index; if (peer != null) { ListPeer l = (ListPeer) peer; l.makeVisible(index); } } | 23,103 |
public Dimension minimumSize() { return (getMinimumSize(rows)); } | public Dimension minimumSize() { return (getMinimumSize(rows)); } | 23,105 |
protected String paramString() { return "multiple=" + multipleMode + ",rows=" + rows + super.paramString(); } | paramString() { return "multiple=" + multipleMode + ",rows=" + rows + super.paramString(); } | 23,106 |
public Dimension preferredSize() { return (getPreferredSize(rows)); } | public Dimension preferredSize() { return (getPreferredSize(rows)); } | 23,107 |
protected void processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); else if (event instanceof ItemEvent) processItemEvent((ItemEvent) event); else super.processEvent(event); } | processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); else if (event instanceof ItemEvent) processItemEvent((ItemEvent) event); else super.processEvent(event); } | 23,108 |
public void remove(int index) throws IllegalArgumentException { items.removeElementAt(index); if (peer != null) { ListPeer l = (ListPeer) peer; l.delItems(index, index); } } | public void remove(int index) throws IllegalArgumentException { items.removeElementAt(index); if (peer != null) { ListPeer l = (ListPeer) peer; l.delItems(index, index); } } | 23,109 |
public synchronized void removeAll() { items.clear(); if (peer != null) { ListPeer l = (ListPeer) peer; l.removeAll(); } } | public synchronized void removeAll() { items.clear(); if (peer != null) { ListPeer l = (ListPeer) peer; l.removeAll(); } } | 23,110 |
public void removeNotify() { super.removeNotify(); } | removeNotify() { super.removeNotify(); } | 23,111 |
public synchronized void replaceItem(String item, int index) throws IllegalArgumentException { remove(index); addItem(item, index); } | public synchronized void replaceItem(String item, int index) throws IllegalArgumentException { remove(index); addItem(item, index); } | 23,112 |
public void setMultipleMode(boolean multipleMode) { this.multipleMode = multipleMode; if (peer != null) { ListPeer l = (ListPeer) peer; l.setMultipleMode(multipleMode); } } | public void setMultipleMode(boolean multipleMode) { this.multipleMode = multipleMode; if (peer != null) { ListPeer l = (ListPeer) peer; l.setMultipleMode(multipleMode); } } | 23,114 |
public void setMultipleSelections(boolean multipleMode) { setMultipleMode(multipleMode); } | public void setMultipleSelections(boolean multipleMode) { setMultipleMode(multipleMode); } | 23,115 |
public void propertyChange(PropertyChangeEvent e) { // FIXME: need name properties so can change floatFrame title. if (e.getPropertyName().equals("rollover")) setRolloverBorders(toolBar.isRollover()); } | public void propertyChange(PropertyChangeEvent e) { // FIXME: need name properties so can change floatFrame title. if (e.getPropertyName().equals("rollover") && toolBar != null) setRolloverBorders(toolBar.isRollover()); } | 23,116 |
protected Border createNonRolloverBorder() { return new EtchedBorderUIResource(); } | protected Border createNonRolloverBorder() { return new EtchedBorder(); } | 23,117 |
protected Border createRolloverBorder() { return new EtchedBorderUIResource() { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { if (c instanceof JButton) { if (((JButton) c).getModel().isRollover()) super.paintBorder(c, g, x, y, wid... | protected Border createRolloverBorder() { return new EtchedBorder() { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { if (c instanceof JButton) { if (((JButton) c).getModel().isRollover()) super.paintBorder(c, g, x, y, width, height... | 23,118 |
protected void installDefaults() { LookAndFeel.installBorder(toolBar, "ToolBar.border"); LookAndFeel.installColorsAndFont(toolBar, "ToolBar.background", "ToolBar.foreground", "ToolBar.font"); dockingBorderColor = UIManager.getColor("ToolBar.dockingForeground"); docking... | protected void installDefaults() { LookAndFeel.installBorder(toolBar, "ToolBar.border"); LookAndFeel.installColorsAndFont(toolBar, "ToolBar.background", "ToolBar.foreground", "ToolBar.font"); dockingBorderColor = UIManager.getColor("ToolBar.dockingForeground"); docking... | 23,120 |
public void installUI(JComponent c) { super.installUI(c); if (c instanceof JToolBar) { toolBar = (JToolBar) c; toolBar.setOpaque(true); installDefaults(); installComponents(); installListeners(); installKeyboardActions(); } } | public void installUI(JComponent c) { super.installUI(c); if (c instanceof JToolBar) { toolBar = (JToolBar) c; installDefaults(); installComponents(); installListeners(); installKeyboardActions(); } } | 23,121 |
protected void setBorderToNonRollover(Component c) { if (c instanceof JButton) { JButton b = (JButton) c; b.setRolloverEnabled(false); b.setBorder(nonRolloverBorder); } } | protected void setBorderToNonRollover(Component c) { if (c instanceof AbstractButton) { JButton b = (JButton) c; b.setRolloverEnabled(false); b.setBorder(nonRolloverBorder); } } | 23,122 |
protected void setBorderToNonRollover(Component c) { if (c instanceof JButton) { JButton b = (JButton) c; b.setRolloverEnabled(false); b.setBorder(nonRolloverBorder); } } | protected void setBorderToNonRollover(Component c) { if (c instanceof JButton) { AbstractButton b = (AbstractButton) c; b.setRolloverEnabled(false); b.setBorder(nonRolloverBorder); } } | 23,123 |
protected void uninstallComponents() { installNormalBorders(toolBar); borders = null; rolloverBorder = null; nonRolloverBorder = null; cachedBounds = null; floatFrame = null; dragWindow = null; } | protected void uninstallComponents() { installNormalBorders(toolBar); borders = null; rolloverBorder = null; nonRolloverBorder = null; cachedBounds = null; floatFrame = null; dragWindow = null; } | 23,124 |
public static Locale[] getAvailableLocales () { // FIXME Locale[] l = new Locale[1]; l[0] = Locale.US; return l; } | public static Locale[] getAvailableLocales () { // FIXME Locale[] l = new Locale[1]; l[0] = Locale.US; return l; } | 23,125 |
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) return false; break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) return false; ... | public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) return false; break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) return false; ... | 23,128 |
public int getElem(int i) { return data[i + offset] & 0xffff; // get unsigned short as int } | public int getElem(int i) { return data[i + offset] & 0xffff; // get unsigned short as int } | 23,129 |
public StateEdit(StateEditable value0) { // TODO } // StateEdit() | public StateEdit(StateEditable value0) { // TODO } // StateEdit() | 23,130 |
public void end() { // TODO } // end() | public void end() { // TODO } // end() | 23,131 |
public String getPresentationName() { return null; // TODO } // getPresentationName() | public String getPresentationName() { return null; // TODO } // getPresentationName() | 23,132 |
protected void init(StateEditable value0, String value1) { // TODO } // init() | protected void init(StateEditable value0, String value1) { // TODO } // init() | 23,133 |
public void redo() { // TODO } // redo() | public void redo() { // TODO } // redo() | 23,134 |
protected void removeRedundantState() { // TODO } // removeRedundantState() | protected void removeRedundantState() { // TODO } // removeRedundantState() | 23,135 |
public void undo() { // TODO } // undo() | public void undo() { // TODO } // undo() | 23,136 |
public static FocusManager getCurrentManager() { KeyboardFocusManager fm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); if (fm instanceof FocusManager) return (FocusManager) fm; else { System.err.println("The Swing FocusManager API has been obsoleted by"); System.err.p... | public static FocusManager getCurrentManager() { KeyboardFocusManager m = KeyboardFocusManager.getCurrentKeyboardFocusManager(); if (fm instanceof FocusManager) return (FocusManager) fm; else { System.err.println("The Swing FocusManager API has been obsoleted by"); System.err.pr... | 23,137 |
public static FocusManager getCurrentManager() { KeyboardFocusManager fm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); if (fm instanceof FocusManager) return (FocusManager) fm; else { System.err.println("The Swing FocusManager API has been obsoleted by"); System.err.p... | public static FocusManager getCurrentManager() { KeyboardFocusManager fm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); if (fm instanceof FocusManager) return (FocusManager) fm; else { System.err.println("The Swing FocusManager API has been obsoleted by"); System.err.p... | 23,138 |
public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; if (owner != current) { exMsg = "Current thread is not the owner of this monitor";... | public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; if (owner != current) { exMsg = "Current thread is not the owner of this monitor";... | 23,139 |
private final void enterSlowPath() { // No yet owner, try to obtain the lock boolean loop = true; final Address lcAddr = getLCAddress(); while (loop) { // Get current thread final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // Try to... | private final void enterSlowPath() { // No yet owner, try to obtain the lock boolean loop = true; final Address lcAddr = getLCAddress(); while (loop) { // Get current thread final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // Try to... | 23,140 |
private final void prepareWait(VmThread thread, VmThreadQueue.ScheduleQueue queue, String queueName) { if (monitorLock != 1) { Unsafe.debug("MonitorLock not claimed"); Unsafe.die("prepareWait"); } thread.prepareWait(this); queue.add(thread, false, "mon.pr... | private final void prepareWait(VmThread thread, VmThreadQueue.ScheduleQueue queue, int waitState, String queueName) { if (monitorLock != 1) { Unsafe.debug("MonitorLock not claimed"); Unsafe.die("prepareWait"); } thread.prepareWait(this); queue.add(thread,... | 23,141 |
private final void prepareWait(VmThread thread, VmThreadQueue.ScheduleQueue queue, String queueName) { if (monitorLock != 1) { Unsafe.debug("MonitorLock not claimed"); Unsafe.die("prepareWait"); } thread.prepareWait(this); queue.add(thread, false, "mon.pr... | private final void prepareWait(VmThread thread, VmThreadQueue.ScheduleQueue queue, String queueName) { if (monitorLock != 1) { Unsafe.debug("MonitorLock not claimed"); Unsafe.die("prepareWait"); } thread.prepareWait(this, waitState); queue.add(thread, fal... | 23,142 |
public int compare(Object o1, Object o2) { return ((String) o1).compareToIgnoreCase((String) o2); } | public int compare(String o1, String o2) { return ((String) o1).compareToIgnoreCase((String) o2); } | 23,143 |
public int compare(Object o1, Object o2) { return ((String) o1).compareToIgnoreCase((String) o2); } | public int compare(Object o1, Object o2) { return o1.compareToIgnoreCase(o2); } | 23,144 |
public static int codePointBefore(CharSequence sequence, int index) { int len = sequence.length(); if (index < 1 || index > len) throw new IndexOutOfBoundsException(); --index; char low = sequence.charAt(index); if (! isLowSurrogate(low) || --index < 0) return low; char high = sequence.ch... | public static int codePointBefore(char[] chars, int index) { int len = sequence.length(); if (index < 1 || index > len) throw new IndexOutOfBoundsException(); --index; char low = sequence.charAt(index); if (! isLowSurrogate(low) || --index < 0) return low; char high = sequence.charAt(inde... | 23,145 |
public static int codePointBefore(CharSequence sequence, int index) { int len = sequence.length(); if (index < 1 || index > len) throw new IndexOutOfBoundsException(); --index; char low = sequence.charAt(index); if (! isLowSurrogate(low) || --index < 0) return low; char high = sequence.ch... | public static int codePointBefore(CharSequence sequence, int index) { int len = sequence.length(); if (index < 1 || index > len) throw new IndexOutOfBoundsException(); --index; char low = sequence.charAt(index); if (! isLowSurrogate(low) || --index < 0) return low; char high = sequence.ch... | 23,146 |
protected AccessibleJSlider(JSlider value0) { super(value0); } | protected AccessibleJSlider() { super(value0); } | 23,149 |
protected AccessibleJSlider(JSlider value0) { super(value0); } | protected AccessibleJSlider(JSlider value0) { } | 23,150 |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJSlider(this); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJSlider(); return accessibleContext; } | 23,151 |
public boolean containsCertPath(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof CertPathEntry) { return true; } } return false; } | public boolean containsCertPath(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof CertPathEntry) { return true; } } return false; } | 23,152 |
public boolean containsCertPath(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof CertPathEntry) { return true; } } return false; } | public boolean containsCertPath(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof CertPathEntry) { return true; } } return false; } | 23,153 |
public boolean containsCertPath(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof CertPathEntry) { return true; } } return false; } | public boolean containsCertPath(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof CertPathEntry) { return true; } } return false; } | 23,154 |
public boolean containsCertPath(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof CertPathEntry) { return true; } } return false; } | public boolean containsCertPath(String alias) { if (!containsAlias(alias)) { log.exiting(this.getClass().getName(), "containsCertPath", Boolean.valueOf(result)); return result; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof Cert... | 23,155 |
public boolean containsPrivateKey(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof PasswordAuthenticatedEntry) { return true; } } retu... | public boolean containsPrivateKey(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof PasswordAuthenticatedEntry) { return true; } } retu... | 23,156 |
public boolean containsPrivateKey(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof PasswordAuthenticatedEntry) { return true; } } retu... | public boolean containsPrivateKey(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof PasswordAuthenticatedEntry) { return true; } } retu... | 23,157 |
public boolean containsPrivateKey(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof PasswordAuthenticatedEntry) { return true; } } retu... | public boolean containsPrivateKey(String alias) { if (!containsAlias(alias)) { log.exiting(this.getClass().getName(), "containsPrivateKey", Boolean.valueOf(result)); return result; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof ... | 23,158 |
public boolean containsPublicKey(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof PublicKeyEntry) { return true; } } return false; } | public boolean containsPublicKey(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof PublicKeyEntry) { return true; } } return false; } | 23,159 |
public boolean containsPublicKey(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof PublicKeyEntry) { return true; } } return false; } | public boolean containsPublicKey(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof PublicKeyEntry) { return true; } } return false; } | 23,160 |
public boolean containsPublicKey(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof PublicKeyEntry) { return true; } } return false; } | public boolean containsPublicKey(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof PublicKeyEntry) { return true; } } return false; } | 23,161 |
public boolean containsPublicKey(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof PublicKeyEntry) { return true; } } return false; } | public boolean containsPublicKey(String alias) { if (!containsAlias(alias)) { log.exiting(this.getClass().getName(), "containsPublicKey", Boolean.valueOf(result)); return result; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof Pu... | 23,162 |
public Certificate[] getCertPath(String alias) { if (!containsAlias(alias)) { return null; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof CertPathEntry) { return ((CertPathEntry) e... | public Certificate[] getCertPath(String alias) { if (!containsAlias(alias)) { return null; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof CertPathEntry) { return ((CertPathEntry) e... | 23,163 |
public Certificate[] getCertPath(String alias) { if (!containsAlias(alias)) { return null; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof CertPathEntry) { return ((CertPathEntry) e... | public Certificate[] getCertPath(String alias) { if (!containsAlias(alias)) { return null; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof CertPathEntry) { result = ((CertPathEntry)... | 23,164 |
public Certificate[] getCertPath(String alias) { if (!containsAlias(alias)) { return null; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof CertPathEntry) { return ((CertPathEntry) e... | public Certificate[] getCertPath(String alias) { if (!containsAlias(alias)) { log.exiting(this.getClass().getName(), "getCertPath", result); return result; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instance... | 23,165 |
public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException { if (!containsAlias(alias)) { return null; } List l = get(alias); PasswordAuthenticatedEntry e1 = null; PasswordEncryptedEntry e2 = null; for (Iterator it = l.iterator(); it.hasNext();) ... | public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException { log.entering(this.getClass().getName(), "getPrivateKey", new Object[] { alias, String.valueOf(password) }); Key result = null; if (containsAlias(alias)) { return null; } List l = get(alias); Pas... | 23,166 |
public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException { if (!containsAlias(alias)) { return null; } List l = get(alias); PasswordAuthenticatedEntry e1 = null; PasswordEncryptedEntry e2 = null; for (Iterator it = l.iterator(); it.hasNext();) ... | public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException { if (!containsAlias(alias)) { return null; } List l = get(alias); PasswordAuthenticatedEntry e1 = null; PasswordEncryptedEntry e2 = null; for (Iterator it = l.iterator(); it.hasNext();) ... | 23,167 |
public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException { if (!containsAlias(alias)) { return null; } List l = get(alias); PasswordAuthenticatedEntry e1 = null; PasswordEncryptedEntry e2 = null; for (Iterator it = l.iterator(); it.hasNext();) ... | public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException { if (!containsAlias(alias)) { return null; } List l = get(alias); PasswordAuthenticatedEntry e1 = null; PasswordEncryptedEntry e2 = null; for (Iterator it = get(alias).iterator(); it.hasNext... | 23,168 |
public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException { if (!containsAlias(alias)) { return null; } List l = get(alias); PasswordAuthenticatedEntry e1 = null; PasswordEncryptedEntry e2 = null; for (Iterator it = l.iterator(); it.hasNext();) ... | public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException { if (!containsAlias(alias)) { return null; } List l = get(alias); PasswordAuthenticatedEntry e1 = null; PasswordEncryptedEntry e2 = null; for (Iterator it = l.iterator(); it.hasNext();) ... | 23,169 |
public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException { if (!containsAlias(alias)) { return null; } List l = get(alias); PasswordAuthenticatedEntry e1 = null; PasswordEncryptedEntry e2 = null; for (Iterator it = l.iterator(); it.hasNext();) ... | public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException { if (!containsAlias(alias)) { return null; } List l = get(alias); PasswordAuthenticatedEntry e1 = null; PasswordEncryptedEntry e2 = null; for (Iterator it = l.iterator(); it.hasNext();) ... | 23,170 |
public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException { if (!containsAlias(alias)) { return null; } List l = get(alias); PasswordAuthenticatedEntry e1 = null; PasswordEncryptedEntry e2 = null; for (Iterator it = l.iterator(); it.hasNext();) ... | public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException { if (!containsAlias(alias)) { return null; } List l = get(alias); PasswordAuthenticatedEntry e1 = null; PasswordEncryptedEntry e2 = null; for (Iterator it = l.iterator(); it.hasNext();) ... | 23,171 |
public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException { if (!containsAlias(alias)) { return null; } List l = get(alias); PasswordAuthenticatedEntry e1 = null; PasswordEncryptedEntry e2 = null; for (Iterator it = l.iterator(); it.hasNext();) ... | public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException { if (!containsAlias(alias)) { return null; } List l = get(alias); PasswordAuthenticatedEntry e1 = null; PasswordEncryptedEntry e2 = null; for (Iterator it = l.iterator(); it.hasNext();) ... | 23,172 |
public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException { if (!containsAlias(alias)) { return null; } List l = get(alias); PasswordAuthenticatedEntry e1 = null; PasswordEncryptedEntry e2 = null; for (Iterator it = l.iterator(); it.hasNext();) ... | public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException { if (!containsAlias(alias)) { } } log.exiting(this.getClass().getName(), "getPrivateKey", result); return result; } List l = get(alias); PasswordAuthenticatedEntry e1 = null; PasswordEncrypted... | 23,173 |
public PublicKey getPublicKey(String alias) { if (!containsAlias(alias)) { return null; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof PublicKeyEntry) { return ((PublicKeyEntry) e)... | public PublicKey getPublicKey(String alias) { if (!containsAlias(alias)) { return null; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof PublicKeyEntry) { return ((PublicKeyEntry) e)... | 23,174 |
public PublicKey getPublicKey(String alias) { if (!containsAlias(alias)) { return null; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof PublicKeyEntry) { return ((PublicKeyEntry) e)... | public PublicKey getPublicKey(String alias) { if (!containsAlias(alias)) { return null; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof PublicKeyEntry) { result = ((PublicKeyEntry) ... | 23,175 |
public PublicKey getPublicKey(String alias) { if (!containsAlias(alias)) { return null; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof PublicKeyEntry) { return ((PublicKeyEntry) e)... | public PublicKey getPublicKey(String alias) { if (!containsAlias(alias)) { log.exiting(this.getClass().getName(), "getPublicKey", result); return result; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof... | 23,176 |
protected void load(InputStream in, char[] password) throws IOException { if (in.read() != USAGE) { throw new MalformedKeyringException("incompatible keyring usage"); } if (in.read() != PasswordAuthenticatedEntry.TYPE) { throw new MalformedKeyringException( ... | protected void load(InputStream in, char[] password) throws IOException { if (in.read() != USAGE) { throw new MalformedKeyringException("incompatible keyring usage"); } if (in.read() != PasswordAuthenticatedEntry.TYPE) { throw new MalformedKeyringException( ... | 23,177 |
public void putCertPath(String alias, Certificate[] path) { if (containsCertPath(alias)) { return; } Properties p = new Properties(); p.put("alias", fixAlias(alias)); add(new CertPathEntry(path, new Date(), p)); } | public void putCertPath(String alias, Certificate[] path) { log.entering(this.getClass().getName(), "putCertPath", new Object[] { alias, path }); if (! containsCertPath(alias)) { return; } Properties p = new Properties(); p.put("alias", fixAlias(alias)); add(new CertPathEntry(path, new ... | 23,178 |
public void putCertPath(String alias, Certificate[] path) { if (containsCertPath(alias)) { return; } Properties p = new Properties(); p.put("alias", fixAlias(alias)); add(new CertPathEntry(path, new Date(), p)); } | public void putCertPath(String alias, Certificate[] path) { if (containsCertPath(alias)) { return; } Properties p = new Properties(); p.put("alias", fixAlias(alias)); add(new CertPathEntry(path, new Date(), p)); } | 23,179 |
public void putPrivateKey(String alias, Key key, char[] password) { if (containsPrivateKey(alias)) { return; } alias = fixAlias(alias); Properties p = new Properties(); p.put("alias", alias); PrivateKeyEntry pke = new PrivateKeyEntry(key, new Date(), p); PasswordEncryptedEntry enc ... | public void putPrivateKey(String alias, Key key, char[] password) { log.entering(this.getClass().getName(), "putPrivateKey", new Object[] { alias, key, String.valueOf(password) }); if (! containsPrivateKey(alias)) { return; } alias = fixAlias(alias); Properties p = new Properties(); p.p... | 23,181 |
public void putPrivateKey(String alias, Key key, char[] password) { if (containsPrivateKey(alias)) { return; } alias = fixAlias(alias); Properties p = new Properties(); p.put("alias", alias); PrivateKeyEntry pke = new PrivateKeyEntry(key, new Date(), p); PasswordEncryptedEntry enc ... | public void putPrivateKey(String alias, Key key, char[] password) { if (containsPrivateKey(alias)) { return; } alias = fixAlias(alias); Properties p = new Properties(); p.put("alias", alias); PrivateKeyEntry pke = new PrivateKeyEntry(key, new Date(), p); PasswordEncryptedEntry enc ... | 23,182 |
public void putPrivateKey(String alias, Key key, char[] password) { if (containsPrivateKey(alias)) { return; } alias = fixAlias(alias); Properties p = new Properties(); p.put("alias", alias); PrivateKeyEntry pke = new PrivateKeyEntry(key, new Date(), p); PasswordEncryptedEntry enc ... | public void putPrivateKey(String alias, Key key, char[] password) { if (containsPrivateKey(alias)) { return; } alias = fixAlias(alias); Properties p = new Properties(); p.put("alias", alias); PrivateKeyEntry pke = new PrivateKeyEntry(key, new Date(), p); PasswordEncryptedEntry enc ... | 23,183 |
public void putPrivateKey(String alias, Key key, char[] password) { if (containsPrivateKey(alias)) { return; } alias = fixAlias(alias); Properties p = new Properties(); p.put("alias", alias); PrivateKeyEntry pke = new PrivateKeyEntry(key, new Date(), p); PasswordEncryptedEntry enc ... | public void putPrivateKey(String alias, Key key, char[] password) { if (containsPrivateKey(alias)) { return; } alias = fixAlias(alias); Properties p = new Properties(); p.put("alias", alias); PrivateKeyEntry pke = new PrivateKeyEntry(key, new Date(), p); PasswordEncryptedEntry enc ... | 23,184 |
public void putPrivateKey(String alias, Key key, char[] password) { if (containsPrivateKey(alias)) { return; } alias = fixAlias(alias); Properties p = new Properties(); p.put("alias", alias); PrivateKeyEntry pke = new PrivateKeyEntry(key, new Date(), p); PasswordEncryptedEntry enc ... | public void putPrivateKey(String alias, Key key, char[] password) { if (containsPrivateKey(alias)) { return; } alias = fixAlias(alias); Properties p = new Properties(); p.put("alias", alias); PrivateKeyEntry pke = new PrivateKeyEntry(key, new Date(), p); PasswordEncryptedEntry enc ... | 23,185 |
public void putPublicKey(String alias, PublicKey key) { if (containsPublicKey(alias)) { return; } Properties p = new Properties(); p.put("alias", fixAlias(alias)); add(new PublicKeyEntry(key, new Date(), p)); } | public void putPublicKey(String alias, PublicKey key) { log.entering(this.getClass().getName(), "putPublicKey", new Object[] { alias, key }); if (! containsPublicKey(alias)) { return; } Properties p = new Properties(); p.put("alias", fixAlias(alias)); add(new PublicKeyEntry(key, new Dat... | 23,187 |
public void putPublicKey(String alias, PublicKey key) { if (containsPublicKey(alias)) { return; } Properties p = new Properties(); p.put("alias", fixAlias(alias)); add(new PublicKeyEntry(key, new Date(), p)); } | public void putPublicKey(String alias, PublicKey key) { if (containsPublicKey(alias)) { return; } Properties p = new Properties(); p.put("alias", fixAlias(alias)); add(new PublicKeyEntry(key, new Date(), p)); } | 23,188 |
private ConfigManager() { configs = new ArrayList(); iterators = new HashMap(); initLog4j(); } | private ConfigManager() { configs = new HashMap(); iterators = new HashMap(); initLog4j(); } | 23,190 |
public void addConfig(TestConfig config) { configs.add(config); } | public void addConfig(TestConfig config) { List cfgs = (List) configs.get(config.getClass()); if(cfgs == null) { cfgs = new ArrayList(); configs.put(config.getClass(), cfgs); } cfgs.add(config); } | 23,191 |
public Font getFont (String name, Map attrs) { return new Font (name, attrs); } | public Font getFont (String name, Map attrs) { Font f = null; try { Constructor fontConstructor = Font.class.getDeclaredConstructor (new Class[] { String.class, Map.class }); AccessController.doPrivileged (new SetAccessibleAction(fontConstructor)); f = (Font) fontConstructor.newInstance(new Object[] { name, a... | 23,192 |
public final Class getCategory() { return Copies.class; } | public Class getCategory() { return Copies.class; } | 23,193 |
public final String getName() { return "copies"; } | public String getName() { return "copies"; } | 23,194 |
public BeanContextChild getBeanContextProxy(); | BeanContextChild getBeanContextProxy(); | 23,196 |
private void executeLineTable(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ReferenceTypeId refId = idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); ObjectId oid = idMan.readObjectId(bb); Method method = (Method) oid.getObject(); LineTable lt = VMVirtualMach... | private void executeLineTable(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ClassReferenceTypeId refId = (ClassReferenceTypeId) idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); ObjectId oid = idMan.readObjectId(bb); Method method = (Method) oid.getObject(); ... | 23,197 |
private void executeLineTable(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ReferenceTypeId refId = idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); ObjectId oid = idMan.readObjectId(bb); Method method = (Method) oid.getObject(); LineTable lt = VMVirtualMach... | private void executeLineTable(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ReferenceTypeId refId = idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); ObjectId oid = idMan.readObjectId(bb); Method method = (Method) oid.getObject(); LineTable lt = VMVirtualMach... | 23,198 |
private void executeVariableTable(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ReferenceTypeId refId = idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); ObjectId oid = idMan.readObjectId(bb); Method method = (Method) oid.getObject(); VariableTable vt = VMVir... | private void executeVariableTable(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ClassReferenceTypeId refId = (ClassReferenceTypeId) idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); ObjectId oid = idMan.readObjectId(bb); Method method = (Method) oid.getObject();... | 23,199 |
private void executeVariableTable(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ReferenceTypeId refId = idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); ObjectId oid = idMan.readObjectId(bb); Method method = (Method) oid.getObject(); VariableTable vt = VMVir... | private void executeVariableTable(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ReferenceTypeId refId = idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); ObjectId oid = idMan.readObjectId(bb); Method method = (Method) oid.getObject(); VariableTable vt = VMVir... | 23,200 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.