bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public SwingContainerPeer(Component awtCont) { init(awtCont, null); } | public SwingContainerPeer(Container awtCont) { init(awtCont, null); } | 19,682 |
public SwingContainerPeer(Component awtCont) { init(awtCont, null); } | public SwingContainerPeer(Component awtCont) { heavyweightDescendents = new LinkedList(); } | 19,683 |
public Insets getInsets() { Insets retVal; if (swingComponent != null) retVal = swingComponent.getJComponent().getInsets(); else retVal = new Insets(0, 0, 0, 0); return retVal; } | public Insets getInsets() { Insets retVal; if (swingComponent != null) retVal = swingComponent.getJComponent().getInsets(); else retVal = new Insets(0, 0, 0, 0); return retVal; } | 19,684 |
protected void handleMouseEvent(MouseEvent ev) { Component comp = awtComponent.getComponentAt(ev.getPoint()); if(comp == null) comp = awtComponent; if (comp != null) { ComponentPeer peer = comp.getPeer(); if (awtComponent != comp && !comp.isLightweight() && peer instanceof SwingComponentPeer... | protected void handleMouseEvent(MouseEvent ev) { Component comp = awtComponent.getComponentAt(ev.getPoint()); if(comp == null) comp = awtComponent; if (comp != null) { ComponentPeer peer = comp.getPeer(); if (awtComponent != comp && !comp.isLightweight() && peer instanceof SwingComponentPeer... | 19,685 |
protected void handleMouseEvent(MouseEvent ev) { Component comp = awtComponent.getComponentAt(ev.getPoint()); if(comp == null) comp = awtComponent; if (comp != null) { ComponentPeer peer = comp.getPeer(); if (awtComponent != comp && !comp.isLightweight() && peer instanceof SwingComponentPeer... | protected void handleMouseEvent(MouseEvent ev) { Component comp = awtComponent.getComponentAt(ev.getPoint()); if(comp == null) comp = awtComponent; if (comp != null) { ComponentPeer peer = comp.getPeer(); if (awtComponent != comp && !comp.isLightweight() && peer instanceof SwingComponentPeer... | 19,686 |
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | protected void peerPaint(Graphics g, boolean update) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false;... | 19,687 |
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | 19,688 |
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | 19,689 |
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | 19,690 |
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | 19,691 |
public int hashCode () { // FIXME: Check what SUN calculates here. return super.hashCode (); } | public int hashCode () { // FIXME: Check what SUN calculates here. int hashCode = get(position()) + 31; int multiplier = 1; for (int i = position() + 1; i < limit(); ++i) { multiplier *= 31; hashCode += (get(i) + 30)*multiplier; } return hashCode; } | 19,692 |
public static byte[] read(InputStream input) { OctetSeqHolder h = new OctetSeqHolder(); h._read(input); return h.value; } | public static byte[] read(InputStream input) { OctetSeqHolder h = new OctetSeqHolder(); h._read(input); return h.value; } | 19,693 |
public static void write(OutputStream output, byte[] value) { OctetSeqHolder h = new OctetSeqHolder(value); h._write(output); } | public static void write(OutputStream output, byte[] value) { OctetSeqHolder h = new OctetSeqHolder(value); h._write(output); } | 19,694 |
public BeanContextServicesSupport () { this (null, null, true, true); } | public BeanContextServicesSupport () { super(); } | 19,695 |
public void addBeanContextServicesListener (BeanContextServicesListener bcsl) { throw new Error ("Not implemented"); } | public void addBeanContextServicesListener (BeanContextServicesListener listener) { throw new Error ("Not implemented"); } | 19,696 |
public void addBeanContextServicesListener (BeanContextServicesListener bcsl) { throw new Error ("Not implemented"); } | public void addBeanContextServicesListener (BeanContextServicesListener bcsl) { if (! bcsListeners.contains(listener)) bcsListeners.add(listener); } | 19,697 |
fireServiceRevoked (BeanContextServiceRevokedEvent bcsre) { throw new Error ("Not implemented"); } | protected final void fireServiceRevoked(BeanContextServiceRevokedEvent event) { throw new Error ("Not implemented"); } | 19,698 |
public void initialize () { throw new Error ("Not implemented"); } | public void initialize () { super.initialize(); bcsListeners = new ArrayList(); services = new HashMap(); } | 19,699 |
removeBeanContextServicesListener (BeanContextServicesListener bcsl) { throw new Error ("Not implemented"); } | public void removeBeanContextServicesListener (BeanContextServicesListener listener) { throw new Error ("Not implemented"); } | 19,700 |
removeBeanContextServicesListener (BeanContextServicesListener bcsl) { throw new Error ("Not implemented"); } | removeBeanContextServicesListener (BeanContextServicesListener bcsl) { int index = bcsListeners.indexOf(listener); if (index > -1) bcsListeners.remove(index); } | 19,701 |
public IPv4Address(String addrStr) throws IllegalArgumentException { final StringTokenizer tok = new StringTokenizer(addrStr, "."); if (tok.countTokens() != length) { throw new IllegalArgumentException("Not an IPv4 address " + addrStr); } address = new byte[length]; for (int i = 0; i < length; i++) { try { ... | public IPv4Address(String addrStr) throws IllegalArgumentException { final StringTokenizer tok = new StringTokenizer(addrStr, "."); if (tok.countTokens() != length) { throw new IllegalArgumentException("Not an IPv4 address " + addrStr); } address = new byte[length]; for (int i = 0; i < length; i++) { try { ... | 19,703 |
public IPv4Address(String addrStr) throws IllegalArgumentException { final StringTokenizer tok = new StringTokenizer(addrStr, "."); if (tok.countTokens() != length) { throw new IllegalArgumentException("Not an IPv4 address " + addrStr); } address = new byte[length]; for (int i = 0; i < length; i++) { try { ... | public IPv4Address(String addrStr) throws IllegalArgumentException { final StringTokenizer tok = new StringTokenizer(addrStr, "."); if (tok.countTokens() != length) { throw new IllegalArgumentException("Not an IPv4 address " + addrStr); } address = new byte[length]; for (int i = 0; i < length; i++) { try { ... | 19,704 |
public void addChangeListener(ChangeListener listener) { listenerList.add(ChangeListener.class, listener); } // addChangeListener() | public void addChangeListener(ChangeListener listener) { listenerList.add(ChangeListener.class, listener); } // addChangeListener() | 19,705 |
public void clearSelection() { // Set Data index = -1; // Notify Listeners fireStateChanged(); } // clearSelection() | public void clearSelection() { // Set Data index = -1; // Notify Listeners fireStateChanged(); } // clearSelection() | 19,706 |
public void clearSelection() { // Set Data index = -1; // Notify Listeners fireStateChanged(); } // clearSelection() | public void clearSelection() { // Set Data index = -1; // Notify Listeners fireStateChanged(); } // clearSelection() | 19,707 |
protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[inde... | protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[inde... | 19,708 |
protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[inde... | protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[inde... | 19,709 |
protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[inde... | protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[inde... | 19,710 |
public EventListener[] getListeners(Class listenerClass) { return listenerList.getListeners(listenerClass); } // getListeners() | public EventListener[] getListeners(Class listenerClass) { return listenerList.getListeners(listenerClass); } // getListeners() | 19,711 |
public int getSelectedIndex() { return index; } // getSelectedIndex() | public int getSelectedIndex() { return index; } // getSelectedIndex() | 19,712 |
public boolean isSelected() { return (index == -1); } // isSelected() | public boolean isSelected() { return (index == -1); } // isSelected() | 19,713 |
public void removeChangeListener(ChangeListener listener) { listenerList.remove(ChangeListener.class, listener); } // removeChangeListener() | public void removeChangeListener(ChangeListener listener) { listenerList.remove(ChangeListener.class, listener); } // removeChangeListener() | 19,714 |
public void setSelectedIndex(int index) { // Set Data this.index = index; // Notify Listeners fireStateChanged(); } // setSelectedIndex() | public void setSelectedIndex(int index) { // Set Data this.index = index; // Notify Listeners fireStateChanged(); } // setSelectedIndex() | 19,715 |
public void setSelectedIndex(int index) { // Set Data this.index = index; // Notify Listeners fireStateChanged(); } // setSelectedIndex() | public void setSelectedIndex(int index) { // Set Data this.index = index; // Notify Listeners fireStateChanged(); } // setSelectedIndex() | 19,716 |
public Element getElement(String element_name) { Element e = newElement(element_name); return e; } | public Element getElement(String element_name) { Element e = newElement(element_name); return e; } | 19,717 |
public Object put(Object key, Object value) { Object old = super.put(key, value); if (key instanceof String && old != value) firePropertyChange((String) key, old, value); return old; } | public Object put(Object key, Object value) { Object old; if (value != null) old = super.put(key, value); else old = super.remove(key); if (key instanceof String && old != value) firePropertyChange((String) key, old, value); return old; } | 19,718 |
public synchronized void release() { log.debug("io.release"); io.release(); log.debug("irq.release"); irq.release(); } | public synchronized void release() { log.debug("io.release"); io.release(); log.debug("irq.release"); irq.release(); } | 19,719 |
public JMenuItem() { super(null, null); } | public JMenuItem() { super(); } | 19,721 |
DefaultButtonModel(JComponent a) { comp = a; } | DefaultButtonModel(JComponent a) { comp = a; } | 19,722 |
public void handleEvent(AWTEvent event) { switch (event.getID()) { case PaintEvent.PAINT: { Graphics g = jComponent.getGraphics(); //Point p = component.getLocationOnScreen(); //g.translate(p.x, p.y); ((Component)component).paint(g); ... | public void handleEvent(AWTEvent event) { switch (event.getID()) { case PaintEvent.PAINT: { Graphics g = jComponent.getGraphics(); //Point p = component.getLocationOnScreen(); //g.translate(p.x, p.y); ((Component)component).paint(g); ... | 19,723 |
public void handleEvent(AWTEvent event) { switch (event.getID()) { case PaintEvent.PAINT: { Graphics g = jComponent.getGraphics(); //Point p = component.getLocationOnScreen(); //g.translate(p.x, p.y); ((Component)component).paint(g); ... | public void handleEvent(AWTEvent event) { switch (event.getID()) { case PaintEvent.PAINT: { Graphics g = jComponent.getGraphics(); //Point p = component.getLocationOnScreen(); //g.translate(p.x, p.y); ((Component)component).paint(g); ... | 19,724 |
public synchronized void setLength(long length) throws IOException { if (closed) { throw new IOException("File closed"); } if (readOnly) { throw new IOException("Cannot write"); } file.setLength(length); if (length > fileOffset) { fileOffset = length; } } | public synchronized void setLength(long length) throws IOException { if (closed) { throw new IOException("File closed"); } if (readOnly) { throw new IOException("Cannot write"); } file.setLength(length); if (length > fileOffset) { fileOffset = length; } } | 19,726 |
public synchronized void setLength(long length) throws IOException { if (closed) { throw new IOException("File closed"); } if (readOnly) { throw new IOException("Cannot write"); } file.setLength(length); if (length > fileOffset) { fileOffset = length; } } | public synchronized void setLength(long length) throws IOException { if (closed) { throw new IOException("File closed"); } if (readOnly) { throw new IOException("Cannot write"); } file.setLength(length); if (length > fileOffset) { fileOffset = length; } } | 19,727 |
final public static ByteBuffer wrap (byte[] array) { return wrap (array, 0, array.length); } | public static final ByteBuffer wrap (byte[] array, int offset, int length) { return wrap (array, 0, array.length); } | 19,728 |
final public static ByteBuffer wrap (byte[] array) { return wrap (array, 0, array.length); } | final public static ByteBuffer wrap (byte[] array) { return wrap (array, 0, array.length); } | 19,729 |
public static String decode(String s, String encoding) throws UnsupportedEncodingException { // First convert all '+' characters to spaces. String str = s.replace('+', ' '); // Then go through the whole string looking for byte encoded characters int i; int start = 0; byte[] bytes = null; ... | public static String decode(String s, String encoding) throws UnsupportedEncodingException { // First convert all '+' characters to spaces. String str = s.replace('+', ' '); // Then go through the whole string looking for byte encoded characters int i; int start = 0; byte[] bytes = null; ... | 19,730 |
public static String decode(String s, String encoding) throws UnsupportedEncodingException { // First convert all '+' characters to spaces. String str = s.replace('+', ' '); // Then go through the whole string looking for byte encoded characters int i; int start = 0; byte[] bytes = null; ... | public static String decode(String s, String encoding) throws UnsupportedEncodingException { // First convert all '+' characters to spaces. String str = s.replace('+', ' '); // Then go through the whole string looking for byte encoded characters int i; int start = 0; byte[] bytes = null; ... | 19,731 |
public static String decode(String s, String encoding) throws UnsupportedEncodingException { // First convert all '+' characters to spaces. String str = s.replace('+', ' '); // Then go through the whole string looking for byte encoded characters int i; int start = 0; byte[] bytes = null; ... | public static String decode(String s, String encoding) throws UnsupportedEncodingException { // First convert all '+' characters to spaces. String str = s.replace('+', ' '); // Then go through the whole string looking for byte encoded characters int i; int start = 0; byte[] bytes = null; ... | 19,732 |
public static String decode(String s, String encoding) throws UnsupportedEncodingException { // First convert all '+' characters to spaces. String str = s.replace('+', ' '); // Then go through the whole string looking for byte encoded characters int i; int start = 0; byte[] bytes = null; ... | public static String decode(String s, String encoding) throws UnsupportedEncodingException { // First convert all '+' characters to spaces. String str = s.replace('+', ' '); // Then go through the whole string looking for byte encoded characters int i; int start = 0; byte[] bytes = null; ... | 19,733 |
public static Constant getInstance(Object value) { return new ReferenceConstant(value); } | public static Constant getInstance(Object value) { return new ReferenceConstant(value); } | 19,734 |
Container getContentPane() { return getRootPane().getContentPane(); } | Container getContentPane() { return getRootPane().getContentPane(); } | 19,735 |
void setContentPane(Container contentPane) { getRootPane().setContentPane(contentPane); } | void setContentPane(Container contentPane) { getRootPane().setContentPane(contentPane); } | 19,736 |
void setDefaultCloseOperation(int operation) { close_action = operation; } | void setDefaultCloseOperation(int operation) { close_action = operation; } | 19,737 |
void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); } | void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); } | 19,738 |
public final PrivateKey generatePrivate(KeySpec keySpec) throws InvalidKeySpecException { return keyFacSpi.engineGeneratePrivate(keySpec); } | public final PrivateKey generatePrivate(KeySpec keySpec) throws InvalidKeySpecException { return keyFacSpi.engineGeneratePrivate(keySpec); } | 19,739 |
public final PublicKey generatePublic(KeySpec keySpec) throws InvalidKeySpecException { return keyFacSpi.engineGeneratePublic(keySpec); } | public final PublicKey generatePublic(KeySpec keySpec) throws InvalidKeySpecException { return keyFacSpi.engineGeneratePublic(keySpec); } | 19,740 |
public static KeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty("KeyFactory." + algorithm); if (classname != null) return getInstance(classname, algorithm, p[i]); ... | publicstaticKeyFactorygetInstance(Stringalgorithm)throwsNoSuchAlgorithmException{Provider[]p=Security.getProviders();for(inti=0;i<p.length;i++){ Stringclassname=p[i].getProperty("KeyFactory."+algorithm); if(classname!=null) returngetInstance(classname,algorithm,p[i]);}thrownewNoSuchAlgorithmException(algorithm);} | 19,741 |
public static KeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty("KeyFactory." + algorithm); if (classname != null) return getInstance(classname, algorithm, p[i]); ... | public static KeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty("KeyFactory." + algorithm); if (classname != null) return getInstance(classname, algorithm, p[i]); ... | 19,742 |
public int hashCode () { // FIXME: check what SUN does here. return affineTransform == null ? 0 : affineTransform.hashCode (); } | public int hashCode () { // FIXME: check what SUN does here. int code = ( isAntiAliased ? 1 : 0 ) + ( usesFractionalMetrics ? 2 : 0 ); if( affineTransform != null && !affineTransform.isIdentity() ) code ^= affineTransform.hashCode(); return code; } | 19,744 |
public static String[] getISOCountries() { return new String[] { "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AN", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BM", "BN", "BO", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CF"... | public static String[] getISOCountries() { if (countryCache == null) { "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AN", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BM", "BN", "BO", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC"... | 19,747 |
public static String[] getISOCountries() { return new String[] { "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AN", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BM", "BN", "BO", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CF"... | public static String[] getISOCountries() { return new String[] { "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AN", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BM", "BN", "BO", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CF"... | 19,748 |
public static String[] getISOLanguages() { return new String[] { "aa", "ab", "af", "am", "ar", "as", "ay", "az", "ba", "be", "bg", "bh", "bi", "bn", "bo", "br", "ca", "co", "cs", "cy", "da", "de", "dz", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fj", "fo", "fr", "fy", "ga", "gd", "gl"... | public static String[] getISOLanguages() { if (languageCache == null) { "aa", "ab", "af", "am", "ar", "as", "ay", "az", "ba", "be", "bg", "bh", "bi", "bn", "bo", "br", "ca", "co", "cs", "cy", "da", "de", "dz", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fj", "fo", "fr", "fy", "ga", "gd... | 19,749 |
public static String[] getISOLanguages() { return new String[] { "aa", "ab", "af", "am", "ar", "as", "ay", "az", "ba", "be", "bg", "bh", "bi", "bn", "bo", "br", "ca", "co", "cs", "cy", "da", "de", "dz", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fj", "fo", "fr", "fy", "ga", "gd", "gl"... | public static String[] getISOLanguages() { return new String[] { "aa", "ab", "af", "am", "ar", "as", "ay", "az", "ba", "be", "bg", "bh", "bi", "bn", "bo", "br", "ca", "co", "cs", "cy", "da", "de", "dz", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fj", "fo", "fr", "fy", "ga", "gd", "gl"... | 19,750 |
protected AccessibleJRadioButtonMenuItem(JRadioButtonMenuItem component) { super(component); // TODO } // AccessibleJRadioButtonMenuItem() | protected AccessibleJRadioButtonMenuItem(JRadioButtonMenuItem component) { super(component); // TODO } // AccessibleJRadioButtonMenuItem() | 19,751 |
public AccessibleRole getAccessibleRole() { return AccessibleRole.RADIO_BUTTON; } // getAccessibleRole() | public AccessibleRole getAccessibleRole() { return AccessibleRole.RADIO_BUTTON; } // getAccessibleRole() | 19,752 |
public JRadioButtonMenuItem() { // TODO } // JRadioButtonMenuItem() | public JRadioButtonMenuItem() { // TODO } // JRadioButtonMenuItem() | 19,753 |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJRadioButtonMenuItem(this); } // if return accessibleContext; } // getAccessibleContext() | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJRadioButtonMenuItem(this); } // if return accessibleContext; } // getAccessibleContext() | 19,754 |
public String getUIClassID() { return uiClassID; } // getUIClassID() | public String getUIClassID() { return uiClassID; } // getUIClassID() | 19,755 |
protected String paramString() { return null; // TODO } // paramString() | protected String paramString() { return null; // TODO } // paramString() | 19,756 |
public void requestFocus() { // TODO } // requestFocus() | public void requestFocus() { // TODO } // requestFocus() | 19,757 |
public void requestFocus() { // TODO } // requestFocus() | public void requestFocus() { // TODO } // requestFocus() | 19,758 |
private void writeObject(ObjectOutputStream stream) throws IOException { // TODO } // writeObject() | private void writeObject(ObjectOutputStream stream) throws IOException { // TODO } // writeObject() | 19,759 |
private void writeObject(ObjectOutputStream stream) throws IOException { // TODO } // writeObject() | private void writeObject(ObjectOutputStream stream) throws IOException { // TODO } // writeObject() | 19,760 |
public boolean containsCustomComponents(JOptionPane pane) { boolean result = false; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { OptionPaneUI ui = (OptionPaneUI) iterator.next(); result = ui.containsCustomComponents(pane);... | public boolean containsCustomComponents(JOptionPane pane) { boolean result = false; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { OptionPaneUI ui = (OptionPaneUI) iterator.next(); result = ui.containsCustomComponents(pane);... | 19,762 |
public void selectInitialValue(JOptionPane pane) { Iterator iterator = uis.iterator(); while (iterator.hasNext()) { OptionPaneUI ui = (OptionPaneUI) iterator.next(); ui.selectInitialValue(pane); } } | public void selectInitialValue(JOptionPane pane) { Iterator iterator = uis.iterator(); while (iterator.hasNext()) { OptionPaneUI ui = (OptionPaneUI) iterator.next(); ui.selectInitialValue(pane); } } | 19,763 |
protected final void doTransmit(SocketBuffer skbuf, HardwareAddress destination) throws NetworkException { skbuf.insert(ETH_HLEN); if (destination != null) { destination.writeTo(skbuf, 0); } else { EthernetAddress.BROADCAST.writeTo(skbuf, 0); } getAddress().writeTo(skbuf, 6); ... | protected final void doTransmit(SocketBuffer skbuf, HardwareAddress destination) throws NetworkException { skbuf.insert(ETH_HLEN); if (destination != null) { destination.writeTo(skbuf, 0); } else { EthernetAddress.BROADCAST.writeTo(skbuf, 0); } getAddress().writeTo(skbuf, 6); ... | 19,764 |
protected final void doTransmit(SocketBuffer skbuf, HardwareAddress destination) throws NetworkException { skbuf.insert(ETH_HLEN); if (destination != null) { destination.writeTo(skbuf, 0); } else { EthernetAddress.BROADCAST.writeTo(skbuf, 0); } getAddress().writeTo(skbuf, 6); ... | protected final void doTransmit(SocketBuffer skbuf, HardwareAddress destination) throws NetworkException { skbuf.insert(ETH_HLEN); if (destination != null) { destination.writeTo(skbuf, 0); } else { EthernetAddress.BROADCAST.writeTo(skbuf, 0); } getAddress().writeTo(skbuf, 6); ... | 19,765 |
public HardwareAddress getAddress() { return hwAddress; } | public HardwareAddress getAddress() { return hwAddress; } | 19,766 |
protected String getDevicePrefix() { return LOOPBACK_DEVICE_PREFIX; } | protected String getDevicePrefix() { return LOOPBACK_DEVICE_PREFIX; } | 19,767 |
public int getMTU() { return ETH_DATA_LEN; } | public int getMTU() { return ETH_DATA_LEN; } | 19,768 |
public void onReceive(SocketBuffer skbuf) throws NetworkException { // Extract ethernet header final EthernetHeader hdr = new EthernetHeader(skbuf); skbuf.setLinkLayerHeader(hdr); skbuf.setProtocolID(EthernetUtils.getProtocol(hdr)); skbuf.pull(hdr.getLength()); // Send to PM super.onReceive(skbu... | public void onReceive(SocketBuffer skbuf) throws NetworkException { // Extract ethernet header final EthernetHeader hdr = new EthernetHeader(skbuf); skbuf.setLinkLayerHeader(hdr); skbuf.setProtocolID(EthernetUtils.getProtocol(hdr)); skbuf.pull(hdr.getLength()); // Send to PM super.onReceive(skbu... | 19,769 |
public void onReceive(SocketBuffer skbuf) throws NetworkException { // Extract ethernet header final EthernetHeader hdr = new EthernetHeader(skbuf); skbuf.setLinkLayerHeader(hdr); skbuf.setProtocolID(EthernetUtils.getProtocol(hdr)); skbuf.pull(hdr.getLength()); // Send to PM super.onReceive(skbu... | public void onReceive(SocketBuffer skbuf) throws NetworkException { // Extract ethernet header final EthernetHeader hdr = new EthernetHeader(skbuf); skbuf.setLinkLayerHeader(hdr); skbuf.setProtocolID(EthernetUtils.getProtocol(hdr)); skbuf.pull(hdr.getLength()); // Send to PM super.onReceive(skbu... | 19,770 |
public void onReceive(SocketBuffer skbuf) throws NetworkException { // Extract ethernet header final EthernetHeader hdr = new EthernetHeader(skbuf); skbuf.setLinkLayerHeader(hdr); skbuf.setProtocolID(EthernetUtils.getProtocol(hdr)); skbuf.pull(hdr.getLength()); // Send to PM super.onReceive(skbu... | public void onReceive(SocketBuffer skbuf) throws NetworkException { // Extract ethernet header final EthernetHeader hdr = new EthernetHeader(skbuf); skbuf.setLinkLayerHeader(hdr); skbuf.setProtocolID(EthernetUtils.getProtocol(hdr)); skbuf.pull(hdr.getLength()); // Send to PM super.onReceive(skbu... | 19,771 |
public int following (int pos) { int save = iter.getIndex(); iter.setIndex(pos); int r = next (); return r; } | public int following (int pos) { iter.setIndex(pos); int r = next (); return r; } | 19,772 |
protected Node getChildElement(String name) { for (Node child = getFirstChild(); child != null; child = child.getNextSibling()) { if (name.equalsIgnoreCase(child.getLocalName())) { return child; } } return null; } | protected Node getChildElement(String name) { for (Node child = getFirstChild(); child != null; child = child.getNextSibling()) { String childName = child.getLocalName(); if (childName == null) { childName = child.getLocalName(); } if (name.equalsIgnoreCase(childName)) { re... | 19,773 |
protected Node getParentElement(String name) { for (Node parent = getParentNode(); parent != null; parent = parent.getParentNode()) { if (name.equalsIgnoreCase(parent.getLocalName())) { return parent; } } return null; } | protected Node getParentElement(String name) { for (Node parent = getParentNode(); parent != null; parent = parent.getParentNode()) { String parentName = parent.getLocalName(); if (parentName == null) { parentName = parent.getNodeName(); } if (name.equalsIgnoreCase(parentName)) { ... | 19,775 |
public static char[] read(InputStream input) { CharSeqHolder h = new CharSeqHolder(); h._read(input); return h.value; } | public static char[] read(InputStream input) { CharSeqHolder h = new CharSeqHolder(); h._read(input); return h.value; } | 19,777 |
public static void write(OutputStream output, char[] value) { CharSeqHolder h = new CharSeqHolder(value); h._write(output); } | public static void write(OutputStream output, char[] value) { CharSeqHolder h = new CharSeqHolder(value); h._write(output); } | 19,778 |
public static Date getDateForNTFSTimes(long _100ns) { long timeoffset = Math.abs((369 * 365 + 89) * 24 * 3600 * 10000000); long time = (Math.abs(_100ns) - timeoffset); System.out.println("hours" + ((Math.abs(time) / 1000) / 60) / 60); Date date = new Date(time); System.out.println... | public static Date getDateForNTFSTimes(long _100ns) { long timeoffset = Math.abs((369 * 365 + 89) * 24 * 3600 * 10000000); long time = (Math.abs(_100ns) - timeoffset); System.out.println("hours" + ((Math.abs(time) / 1000) / 60) / 60); Date date = new Date(time); System.out.println... | 19,779 |
public String getTypeString(int type) { try { return types [ type ]; } catch (ArrayIndexOutOfBoundsException ex) { return "unknown type (" + type + ")"; } } | public String getTypeString(int type) { try { return types[type]; } catch (ArrayIndexOutOfBoundsException ex) { return "unknown type (" + type + ")"; } } | 19,780 |
public void read(java.io.InputStream istream) throws MARSHAL { try { byte[] xMagic = new byte[ MAGIC.length ]; istream.read(xMagic); if (!Arrays.equals(xMagic, MAGIC)) { MARSHAL m = new MARSHAL("Not a GIOP message"); m.minor = Minor.Giop; ... | public void read(java.io.InputStream istream) throws MARSHAL { try { byte[] xMagic = new byte[MAGIC.length]; istream.read(xMagic); if (!Arrays.equals(xMagic, MAGIC)) { MARSHAL m = new MARSHAL("Not a GIOP message"); m.minor = Minor.Giop; ... | 19,781 |
public void write(java.io.OutputStream out) { try { AbstractDataOutput dout; if (isBigEndian()) dout = new BigEndianOutputStream(out); else dout = new LittleEndianOutputStream(out); // Write magic sequence. dout.write(MAGIC); // Write version number... | publicvoidwrite(java.io.OutputStreamout){try{AbstractDataOutputdout;if(isBigEndian())dout=newBigEndianOutputStream(out);elsedout=newLittleEndianOutputStream(out);//Writemagicsequence.dout.write(MAGIC);//Writeversionnumber.version.write((OutputStream)dout);dout.write(flags);dout.write(message_type);dout.writeInt(message... | 19,782 |
public void write(java.io.OutputStream out) { try { AbstractDataOutput dout; if (isBigEndian()) dout = new BigEndianOutputStream(out); else dout = new LittleEndianOutputStream(out); // Write magic sequence. dout.write(MAGIC); // Write version number... | publicvoidwrite(java.io.OutputStreamout){try{AbstractDataOutputdout;if(isBigEndian())dout=newBigEndianOutputStream(out);elsedout=newLittleEndianOutputStream(out);//Writemagicsequence.dout.write(MAGIC);//Writeversionnumber.version.write((OutputStream)dout);dout.write(flags);dout.write(message_type);dout.writeInt(message... | 19,783 |
public void write(java.io.OutputStream out) { try { AbstractDataOutput dout; if (isBigEndian()) dout = new BigEndianOutputStream(out); else dout = new LittleEndianOutputStream(out); // Write magic sequence. dout.write(MAGIC); // Write version number... | publicvoidwrite(java.io.OutputStreamout){try{AbstractDataOutputdout;if(isBigEndian())dout=newBigEndianOutputStream(out);elsedout=newLittleEndianOutputStream(out);//Writemagicsequence.dout.write(MAGIC);//Writeversionnumber.version.write((OutputStream)dout);dout.write(flags);dout.write(message_type);dout.writeInt(message... | 19,784 |
public RepaintManager() { dirtyComponents = new Hashtable(); invalidComponents = new Vector(); repaintWorker = new RepaintWorker(); doubleBufferMaximumSize = new Dimension(2000,2000); doubleBufferingEnabled = true; } | public RepaintManager() { dirtyComponents = new Hashtable(); invalidComponents = new Vector(); repaintWorker = new RepaintWorker(); doubleBufferMaximumSize = new Dimension(2000,2000); doubleBufferingEnabled = true; } | 19,785 |
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w == 0 || h == 0) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)dirtyComponents.get(compone... | public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w == 0 || h == 0 || !component.isShowing()) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)d... | 19,786 |
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w == 0 || h == 0) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)dirtyComponents.get(compone... | publicsynchronizedvoidaddDirtyRegion(JComponentcomponent,intx,inty,intw,inth){if(w==0||h==0)return;Rectangler=newRectangle(x,y,w,h);if(dirtyComponents.containsKey(component))r=r.union((Rectangle)dirtyComponents.get(component));dirtyComponents.put(component,r);if(!repaintWorker.isLive()){repaintWorker.setLive(true);Swin... | 19,787 |
public Rectangle getDirtyRegion(JComponent component) { return (Rectangle) dirtyComponents.get(component); } | public Rectangle getDirtyRegion(JComponent component) { Rectangle dirty = (Rectangle) dirtyComponents.get(component); if (dirty == null) dirty = new Rectangle(); return dirty; } | 19,789 |
public boolean isCompletelyDirty(JComponent component) { Rectangle dirty = (Rectangle) dirtyComponents.get(component); if (dirty == null) return false; Rectangle r = component.getBounds(); if (r == null) return true; return dirty.contains(r); } | public boolean isCompletelyDirty(JComponent component) { Rectangle dirty = (Rectangle) dirtyComponents.get(component); if (dirty == null) return false; Rectangle r = component.getBounds(); if (r == null) return true; return dirty.contains(r); } | 19,790 |
public boolean isCompletelyDirty(JComponent component) { Rectangle dirty = (Rectangle) dirtyComponents.get(component); if (dirty == null) return false; Rectangle r = component.getBounds(); if (r == null) return true; return dirty.contains(r); } | public boolean isCompletelyDirty(JComponent component) { Rectangle dirty = (Rectangle) dirtyComponents.get(component); if (dirty == null) return false; Rectangle r = component.getBounds(); if (r == null) return true; return dirty.contains(r); } | 19,791 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.