rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public boolean isMultipleMode() { return (multipleMode); } | isMultipleMode() { return allowsMultipleSelections (); } | public boolean isMultipleMode() { return (multipleMode); } |
public boolean isSelected(int index) { return (isIndexSelected(index)); } | isSelected(int index) { int[] indexes = getSelectedIndexes (); for (int i = 0; i < indexes.length; i++) if (indexes[i] == index) return true; return false; } | public boolean isSelected(int index) { return (isIndexSelected(index)); } |
public synchronized void makeVisible(int index) throws IllegalArgumentException { | makeVisible(int index) throws IllegalArgumentException { | 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); } } |
l.makeVisible(index); } | 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); } } |
} | 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 Dimension minimumSize() { return (getMinimumSize(rows)); } | minimumSize() { return minimumSize (getRows ()); } | public Dimension minimumSize() { return (getMinimumSize(rows)); } |
protected String paramString() { | paramString() { | protected String paramString() { return "multiple=" + multipleMode + ",rows=" + rows + super.paramString(); } |
public Dimension preferredSize() { return (getPreferredSize(rows)); } | preferredSize() { return preferredSize (getRows ()); } | public Dimension preferredSize() { return (getPreferredSize(rows)); } |
protected void processEvent(AWTEvent event) { | processEvent(AWTEvent event) { | protected void processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); else if (event instanceof ItemEvent) processItemEvent((ItemEvent) event); else super.processEvent(event); } |
public void remove(int index) throws IllegalArgumentException { items.removeElementAt(index); if (peer != null) { ListPeer l = (ListPeer) peer; l.delItems(index, index); } } | remove(int index) throws IllegalArgumentException { delItem (index); } | public void remove(int index) throws IllegalArgumentException { items.removeElementAt(index); if (peer != null) { ListPeer l = (ListPeer) peer; l.delItems(index, index); } } |
public synchronized void removeAll() { items.clear(); if (peer != null) { ListPeer l = (ListPeer) peer; l.removeAll(); } } | removeAll() { clear (); } | public synchronized void removeAll() { items.clear(); if (peer != null) { ListPeer l = (ListPeer) peer; l.removeAll(); } } |
public void removeNotify() { | removeNotify() { | public void removeNotify() { super.removeNotify(); } |
public synchronized void replaceItem(String item, int index) throws IllegalArgumentException { remove(index); addItem(item, index); | replaceItem(String item, int index) throws IllegalArgumentException { if ((index < 0) || (index >= items.size())) throw new IllegalArgumentException("Bad list index: " + index); items.insertElementAt(item, index + 1); items.removeElementAt (index); if (peer != null) { ListPeer l = (ListPeer) peer; l.add (item, inde... | 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); } | |
public void setMultipleMode(boolean multipleMode) { this.multipleMode = multipleMode; if (peer != null) { ListPeer l = (ListPeer) peer; l.setMultipleMode(multipleMode); } } | setMultipleMode(boolean multipleMode) { setMultipleSelections (multipleMode); } | public void setMultipleMode(boolean multipleMode) { this.multipleMode = multipleMode; if (peer != null) { ListPeer l = (ListPeer) peer; l.setMultipleMode(multipleMode); } } |
public void setMultipleSelections(boolean multipleMode) { setMultipleMode(multipleMode); } | setMultipleSelections(boolean multipleMode) { this.multipleMode = multipleMode; ListPeer peer = (ListPeer) getPeer (); if (peer != null) peer.setMultipleMode (multipleMode); } | public void setMultipleSelections(boolean multipleMode) { setMultipleMode(multipleMode); } |
if (e.getPropertyName().equals("rollover")) | if (e.getPropertyName().equals("rollover") && toolBar != null) | public void propertyChange(PropertyChangeEvent e) { // FIXME: need name properties so can change floatFrame title. if (e.getPropertyName().equals("rollover")) setRolloverBorders(toolBar.isRollover()); } |
return new EtchedBorderUIResource(); | return new EtchedBorder(); | protected Border createNonRolloverBorder() { return new EtchedBorderUIResource(); } |
return new EtchedBorderUIResource() | return new EtchedBorder() | 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... |
setRolloverBorders(toolBar.isRollover()); | protected void installComponents() { floatFrame = (Window) createFloatingWindow(toolBar); dragWindow = createDragWindow(toolBar); nonRolloverBorder = createNonRolloverBorder(); rolloverBorder = createRolloverBorder(); borders = new Hashtable(); fillHashtable(); } | |
setRolloverBorders(toolBar.isRollover()); | protected void installDefaults() { LookAndFeel.installBorder(toolBar, "ToolBar.border"); LookAndFeel.installColorsAndFont(toolBar, "ToolBar.background", "ToolBar.foreground", "ToolBar.font"); dockingBorderColor = UIManager.getColor("ToolBar.dockingForeground"); docking... | |
toolBar.setOpaque(true); | public void installUI(JComponent c) { super.installUI(c); if (c instanceof JToolBar) { toolBar = (JToolBar) c; toolBar.setOpaque(true); installDefaults(); installComponents(); installListeners(); installKeyboardActions(); } } | |
if (c instanceof JButton) | if (c instanceof AbstractButton) | protected void setBorderToNonRollover(Component c) { if (c instanceof JButton) { JButton b = (JButton) c; b.setRolloverEnabled(false); b.setBorder(nonRolloverBorder); } } |
JButton b = (JButton) c; | AbstractButton b = (AbstractButton) c; | protected void setBorderToNonRollover(Component c) { if (c instanceof JButton) { JButton b = (JButton) c; b.setRolloverEnabled(false); b.setBorder(nonRolloverBorder); } } |
rolloverBorder = null; nonRolloverBorder = null; | protected void uninstallComponents() { installNormalBorders(toolBar); borders = null; rolloverBorder = null; nonRolloverBorder = null; cachedBounds = null; floatFrame = null; dragWindow = null; } | |
Locale[] l = new Locale[1]; l[0] = Locale.US; return l; | return Locale.getAvailableLocales(); | public static Locale[] getAvailableLocales () { // FIXME Locale[] l = new Locale[1]; l[0] = Locale.US; return l; } |
} | private int getContextPosition(Node ctx) { int pos = 1; for (ctx = ctx.getPreviousSibling(); ctx != null; ctx = ctx.getPreviousSibling()) pos++; return pos; } | |
} | private int getContextSize(Node ctx) { if (ctx.getNodeType() == Node.ATTRIBUTE_NODE) { Node owner = ((Attr) ctx).getOwnerElement(); return owner.getAttributes().getLength(); } int count = 1; Node sib = ctx.getPreviousSibling(); for (; sib != null; sib = sib.getPreviousSibling()) ... | |
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; break; case DESCENDANT_OR_SELF: return true; default: return false; } int tlen = tests.length; if (tlen > 0) { ... | return matches(context, getContextPosition(context), getContextSize(context)); | 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 int getElem(int i) { return data[i + offset] & 0xffff; | public int getElem(int i) { return data[i+offset]; | public int getElem(int i) { return data[i + offset] & 0xffff; // get unsigned short as int } |
public StateEdit(StateEditable value0) { } | public StateEdit(StateEditable obj) { init(obj, null); } | public StateEdit(StateEditable value0) { // TODO } // StateEdit() |
public void end() { } | public void end() { object.storeState(postState); removeRedundantState(); } | public void end() { // TODO } // end() |
public String getPresentationName() { return null; } | public String getPresentationName() { return undoRedoName; } | public String getPresentationName() { return null; // TODO } // getPresentationName() |
protected void init(StateEditable value0, String value1) { } | protected void init(StateEditable obj, String name) { object = obj; undoRedoName = name; preState = new Hashtable(); postState = new Hashtable(); obj.storeState(preState); } | protected void init(StateEditable value0, String value1) { // TODO } // init() |
public void redo() { } | public void redo() { super.redo(); object.restoreState(postState); } | public void redo() { // TODO } // redo() |
protected void removeRedundantState() { } | protected void removeRedundantState() { Iterator i = preState.keySet().iterator(); while (i.hasNext()) { Object key = i.next(); if (postState.containsKey(key)) { if (preState.get(key).equals(postState.get(key))) { i.remove(); postState.remove(key); } } } } | protected void removeRedundantState() { // TODO } // removeRedundantState() |
public void undo() { } | public void undo() { super.undo(); object.restoreState(preState); } | public void undo() { // TODO } // undo() |
KeyboardFocusManager fm = | KeyboardFocusManager m = | 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... |
if (fm instanceof FocusManager) return (FocusManager) fm; else { System.err.println("The Swing FocusManager API has been obsoleted by"); System.err.println("the new KeyboardFocusManager system."); System.err.println("You should either not use the Swing FocusManager"); System.err.println("API or set the system property"... | return new WrappingFocusManager(m); | 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... |
prepareWait(current, notifyQueue, "mon-notify"); | prepareWait(current, notifyQueue, waitState, "mon-notify"); | 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";... |
prepareWait(current, enterQueue, "mon-enter"); | prepareWait(current, enterQueue, VmThread.WAITING_ENTER, "mon-enter"); | 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... |
VmThreadQueue.ScheduleQueue queue, String queueName) { | VmThreadQueue.ScheduleQueue queue, int waitState, String queueName) { | 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... |
thread.prepareWait(this); | thread.prepareWait(this, waitState); | 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... |
public int compare(Object o1, Object o2) | public int compare(String o1, String o2) | public int compare(Object o1, Object o2) { return ((String) o1).compareToIgnoreCase((String) o2); } |
return ((String) o1).compareToIgnoreCase((String) o2); | return o1.compareToIgnoreCase(o2); | public int compare(Object o1, Object o2) { return ((String) o1).compareToIgnoreCase((String) o2); } |
public static int codePointBefore(CharSequence sequence, int index) | public static int codePointBefore(char[] chars, int index) | 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... |
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(index); if (! isHighSurrogate(high)) return low; return toCodePoint(high, low); | return codePointBefore(chars, index, 1); | 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... |
if (b.getMargin() == null || b.getMargin() instanceof UIResource) | protected void installDefaults(AbstractButton b) { String prefix = getPropertyPrefix(); LookAndFeel.installColorsAndFont(b, prefix + "background", prefix + "foreground", prefix + "font"); LookAndFeel.installBorder(b, prefix + "border"); b.setMargin(UIManager.getInsets(... | |
if (b.getMargin() instanceof UIResource) | protected void uninstallDefaults(AbstractButton b) { if (b.getFont() instanceof UIResource) b.setFont(null); b.setForeground(null); b.setBackground(null); b.setBorder(null); b.setIconTextGap(defaultTextIconGap); b.setMargin(null); } | |
protected AccessibleJSlider(JSlider value0) | protected AccessibleJSlider() | protected AccessibleJSlider(JSlider value0) { super(value0); } |
super(value0); | protected AccessibleJSlider(JSlider value0) { super(value0); } | |
accessibleContext = new AccessibleJSlider(this); | accessibleContext = new AccessibleJSlider(); | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJSlider(this); return accessibleContext; } |
{ if (!containsAlias(alias)) | 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; } | |
return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { | log.entering(this.getClass().getName(), "containsCertPath", alias); boolean result = false; if (containsAlias(alias)) for (Iterator it = get(alias).iterator(); it.hasNext();) | 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; } |
return true; } | result = true; break; | 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; } |
return false; | log.exiting(this.getClass().getName(), "containsCertPath", Boolean.valueOf(result)); return result; | 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; } |
if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { | log.entering(this.getClass().getName(), "containsPrivateKey", alias); boolean result = false; if (containsAlias(alias)) for (Iterator it = get(alias).iterator(); it.hasNext();) | 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... |
return true; } | result = true; break; | 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... |
return false; | log.exiting(this.getClass().getName(), "containsPrivateKey", Boolean.valueOf(result)); return result; | 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... |
{ if (!containsAlias(alias)) | 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; } | |
return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { | log.entering(this.getClass().getName(), "containsPublicKey", alias); boolean result = false; if (containsAlias(alias)) for (Iterator it = get(alias).iterator(); it.hasNext();) | 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; } |
return true; } | result = true; break; | 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; } |
return false; | log.exiting(this.getClass().getName(), "containsPublicKey", Boolean.valueOf(result)); return result; | 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; } |
if (!containsAlias(alias)) { return null; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) | log.entering(this.getClass().getName(), "getCertPath", alias); Certificate[] result = null; if (containsAlias(alias)) for (Iterator it = get(alias).iterator(); it.hasNext();) | 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... |
return ((CertPathEntry) e).getCertPath(); | result = ((CertPathEntry) e).getCertPath(); break; | 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... |
return null; | log.exiting(this.getClass().getName(), "getCertPath", result); return result; | 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... |
if (!containsAlias(alias)) | log.entering(this.getClass().getName(), "getPrivateKey", new Object[] { alias, String.valueOf(password) }); Key result = null; if (containsAlias(alias)) | 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();) ... |
return null; } List l = get(alias); | 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();) ... | |
for (Iterator it = l.iterator(); it.hasNext();) | for (Iterator it = get(alias).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();) ... |
if (e1 == null) | if (e1 != null) | 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();) ... |
return null; } | 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();) ... | |
if (e2 == null) | if (e2 != null) | 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();) ... |
return ((PrivateKeyEntry) e).getKey(); | result = ((PrivateKeyEntry) e).getKey(); break; } | 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();) ... |
return null; | } } log.exiting(this.getClass().getName(), "getPrivateKey", result); return result; | 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();) ... |
if (!containsAlias(alias)) { return null; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) | log.entering(this.getClass().getName(), "getPublicKey", alias); PublicKey result = null; if (containsAlias(alias)) for (Iterator it = get(alias).iterator(); it.hasNext();) | 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)... |
return ((PublicKeyEntry) e).getKey(); | result = ((PublicKeyEntry) e).getKey(); break; | 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)... |
return null; | log.exiting(this.getClass().getName(), "getPublicKey", result); return result; | 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)... |
{ throw new MalformedKeyringException( "expecting password-authenticated entry tag"); } keyring = PasswordAuthenticatedEntry.decode(new DataInputStream(in), password); | throw new MalformedKeyringException("expecting password-authenticated entry tag"); keyring = PasswordAuthenticatedEntry.decode(new DataInputStream(in), password); log.exiting(this.getClass().getName(), "load"); | 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( ... |
if (containsCertPath(alias)) | log.entering(this.getClass().getName(), "putCertPath", new Object[] { alias, path }); if (! containsCertPath(alias)) | 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)); } |
return; } | 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)); } | |
else log.finer("Keyring already contains alias: " + alias); log.exiting(this.getClass().getName(), "putCertPath"); } | 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)); } | |
if (containsPrivateKey(alias)) | log.entering(this.getClass().getName(), "putPrivateKey", new Object[] { alias, key, String.valueOf(password) }); if (! containsPrivateKey(alias)) | 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 ... |
return; } | 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 ... | |
PasswordEncryptedEntry enc = new PasswordEncryptedEntry(cipher, mode, keylen, new Properties()); PasswordAuthenticatedEntry auth = new PasswordAuthenticatedEntry( mac, maclen, new Properties()); | PasswordEncryptedEntry enc; enc = new PasswordEncryptedEntry(cipher, mode, keylen, new Properties()); | 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 ... |
catch (IOException ioe) | catch (IOException x) | 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 ... |
throw new IllegalArgumentException(ioe.toString()); | log.log(Level.FINER, "Exception while authenticating the encrypted " + "key. Rethrow as IllegalArgumentException", x); throw new IllegalArgumentException(x.toString()); | 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 ... |
else log.finer("Keyring already contains alias: " + alias); log.exiting(this.getClass().getName(), "putPrivateKey"); } | 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 ... | |
if (containsPublicKey(alias)) | log.entering(this.getClass().getName(), "putPublicKey", new Object[] { alias, key }); if (! containsPublicKey(alias)) | 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)); } |
return; } | 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)); } | |
else log.finer("Keyring already contains alias: " + alias); log.exiting(this.getClass().getName(), "putPublicKey"); } | 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)); } | |
configs = new ArrayList(); | configs = new HashMap(); | private ConfigManager() { configs = new ArrayList(); iterators = new HashMap(); initLog4j(); } |
configs.add(config); | List cfgs = (List) configs.get(config.getClass()); if(cfgs == null) { cfgs = new ArrayList(); configs.put(config.getClass(), cfgs); } cfgs.add(config); | public void addConfig(TestConfig config) { configs.add(config); } |
return new Font (name, 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, attrs }); } catch (IllegalAccessException e) { throw ne... | public Font getFont (String name, Map attrs) { return new Font (name, attrs); } |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return Copies.class; } |
public final String getName() | public String getName() | public final String getName() { return "copies"; } |
if( attributeMap == null) attributeMap = new HashMap(); attributeMap.put( attr, this ); | Attribute(String attr, boolean inherited, String def) { attStr = attr; isInherited = inherited; defaultValue = def; } | |
public BeanContextChild getBeanContextProxy(); | BeanContextChild getBeanContextProxy(); | public BeanContextChild getBeanContextProxy(); |
ReferenceTypeId refId = idMan.readReferenceTypeId(bb); | ClassReferenceTypeId refId = (ClassReferenceTypeId) idMan.readReferenceTypeId(bb); | 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... |
ObjectId oid = idMan.readObjectId(bb); Method method = (Method) oid.getObject(); LineTable lt = VMVirtualMachine.getLineTable(clazz, method); | VMMethod method = VMMethod.readId(clazz, bb); LineTable lt = method.getLineTable(); | 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... |
ReferenceTypeId refId = idMan.readReferenceTypeId(bb); | ClassReferenceTypeId refId = (ClassReferenceTypeId) idMan.readReferenceTypeId(bb); | 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.