rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
Object obj = impl.getOption(SocketOptions.IP_TOS); | Object obj = getImpl().getOption(SocketOptions.IP_TOS); | public int getTrafficClass() throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); Object obj = impl.getOption(SocketOptions.IP_TOS); if (obj instanceof Integer) return ((Integer)obj).intValue(); else throw new SocketException("Unexpected type"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
return ((Integer)obj).intValue(); | return ((Integer) obj).intValue(); | public int getTrafficClass() throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); Object obj = impl.getOption(SocketOptions.IP_TOS); if (obj instanceof Integer) return ((Integer)obj).intValue(); else throw new SocketException("Unexpected type"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
public boolean isBound() { return getLocalAddress() != null; | public boolean isBound() { return bound; | public boolean isBound() { return getLocalAddress() != null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
public boolean isConnected() { return impl.getInetAddress() != null; | public boolean isConnected() { try { if (getImpl() == null) return false; return getImpl().getInetAddress() != null; } catch (SocketException e) { return false; } | public boolean isConnected() { return impl.getInetAddress() != null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
public boolean isInputShutdown() { | public boolean isInputShutdown() { | public boolean isInputShutdown() { return inputShutdown; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
public boolean isOutputShutdown() { | public boolean isOutputShutdown() { | public boolean isOutputShutdown() { return outputShutdown; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
public void sendUrgentData(int data) throws IOException { impl.sendUrgentData(data); | public void sendUrgentData(int data) throws IOException { if (isClosed()) throw new SocketException("socket is closed"); getImpl().sendUrgentData(data); | public void sendUrgentData(int data) throws IOException { impl.sendUrgentData(data); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
public void setOOBInline(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); | public void setOOBInline(boolean on) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); | public void setOOBInline(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); impl.setOption(SocketOptions.SO_OOBINLINE, new Boolean(on)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
impl.setOption(SocketOptions.SO_OOBINLINE, new Boolean(on)); | getImpl().setOption(SocketOptions.SO_OOBINLINE, Boolean.valueOf(on)); | public void setOOBInline(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); impl.setOption(SocketOptions.SO_OOBINLINE, new Boolean(on)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
public void setReceiveBufferSize(int size) throws SocketException { if (impl == null) throw new SocketException("Not connected"); | public void setReceiveBufferSize(int size) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); | public void setReceiveBufferSize(int size) throws SocketException { if (impl == null) throw new SocketException("Not connected"); if (size <= 0) throw new IllegalArgumentException("SO_RCVBUF value must be > 0"); impl.setOption(SocketOptions.SO_RCVBUF, new Integer(size)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
impl.setOption(SocketOptions.SO_RCVBUF, new Integer(size)); | getImpl().setOption(SocketOptions.SO_RCVBUF, new Integer(size)); | public void setReceiveBufferSize(int size) throws SocketException { if (impl == null) throw new SocketException("Not connected"); if (size <= 0) throw new IllegalArgumentException("SO_RCVBUF value must be > 0"); impl.setOption(SocketOptions.SO_RCVBUF, new Integer(size)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
public void setReuseAddress(boolean on) throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); | public void setReuseAddress(boolean reuseAddress) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); | public void setReuseAddress(boolean on) throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); impl.setOption(SocketOptions.SO_REUSEADDR, new Boolean(on)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
impl.setOption(SocketOptions.SO_REUSEADDR, new Boolean(on)); | getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(reuseAddress)); | public void setReuseAddress(boolean on) throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); impl.setOption(SocketOptions.SO_REUSEADDR, new Boolean(on)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
public void setSendBufferSize(int size) throws SocketException { if (impl == null) throw new SocketException("Not connected"); | public void setSendBufferSize(int size) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); | public void setSendBufferSize(int size) throws SocketException { if (impl == null) throw new SocketException("Not connected"); if (size <= 0) throw new IllegalArgumentException("SO_SNDBUF value must be > 0"); impl.setOption(SocketOptions.SO_SNDBUF, new Integer(size)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
impl.setOption(SocketOptions.SO_SNDBUF, new Integer(size)); | getImpl().setOption(SocketOptions.SO_SNDBUF, new Integer(size)); | public void setSendBufferSize(int size) throws SocketException { if (impl == null) throw new SocketException("Not connected"); if (size <= 0) throw new IllegalArgumentException("SO_SNDBUF value must be > 0"); impl.setOption(SocketOptions.SO_SNDBUF, new Integer(size)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
public void setSoLinger(boolean on, int linger) throws SocketException { if (impl == null) throw new SocketException("No socket created"); | public void setSoLinger(boolean on, int linger) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); | public void setSoLinger(boolean on, int linger) throws SocketException { if (impl == null) throw new SocketException("No socket created"); if (on == true) { if (linger < 0) throw new IllegalArgumentException("SO_LINGER must be >= 0"); if (linger > 65535) linger = 65535; impl.setOption(SocketOptions.SO_... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
if (on == true) { | if (on) { | public void setSoLinger(boolean on, int linger) throws SocketException { if (impl == null) throw new SocketException("No socket created"); if (on == true) { if (linger < 0) throw new IllegalArgumentException("SO_LINGER must be >= 0"); if (linger > 65535) linger = 65535; impl.setOption(SocketOptions.SO_... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
impl.setOption(SocketOptions.SO_LINGER, new Integer(linger)); } else { impl.setOption(SocketOptions.SO_LINGER, new Boolean(false)); | getImpl().setOption(SocketOptions.SO_LINGER, new Integer(linger)); | public void setSoLinger(boolean on, int linger) throws SocketException { if (impl == null) throw new SocketException("No socket created"); if (on == true) { if (linger < 0) throw new IllegalArgumentException("SO_LINGER must be >= 0"); if (linger > 65535) linger = 65535; impl.setOption(SocketOptions.SO_... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
else getImpl().setOption(SocketOptions.SO_LINGER, Boolean.valueOf(false)); | public void setSoLinger(boolean on, int linger) throws SocketException { if (impl == null) throw new SocketException("No socket created"); if (on == true) { if (linger < 0) throw new IllegalArgumentException("SO_LINGER must be >= 0"); if (linger > 65535) linger = 65535; impl.setOption(SocketOptions.SO_... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java | |
throws IOException { | throws IOException { | public static synchronized void setSocketImplFactory(SocketImplFactory fac) throws IOException { // See if already set if (factory != null) throw new SocketException("SocketImplFactory already defined"); // Check permissions SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSetFactory... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
public void setTrafficClass(int tc) throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); | public void setTrafficClass(int tc) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); | public void setTrafficClass(int tc) throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); if (tc < 0 || tc > 255) throw new IllegalArgumentException(); impl.setOption(SocketOptions.IP_TOS, new Integer(tc)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
impl.setOption(SocketOptions.IP_TOS, new Integer(tc)); | getImpl().setOption(SocketOptions.IP_TOS, new Integer(tc)); | public void setTrafficClass(int tc) throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); if (tc < 0 || tc > 255) throw new IllegalArgumentException(); impl.setOption(SocketOptions.IP_TOS, new Integer(tc)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
public void shutdownInput() throws IOException { if (impl != null) impl.shutdownInput(); | public void shutdownInput() throws IOException { if (isClosed()) throw new SocketException("socket is closed"); | public void shutdownInput() throws IOException { if (impl != null) impl.shutdownInput(); inputShutdown = true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
getImpl().shutdownInput(); | public void shutdownInput() throws IOException { if (impl != null) impl.shutdownInput(); inputShutdown = true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java | |
public void shutdownOutput() throws IOException { if (impl != null) impl.shutdownOutput(); | public void shutdownOutput() throws IOException { if (isClosed()) throw new SocketException("socket is closed"); | public void shutdownOutput() throws IOException { if (impl != null) impl.shutdownOutput(); outputShutdown = true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
getImpl().shutdownOutput(); | public void shutdownOutput() throws IOException { if (impl != null) impl.shutdownOutput(); outputShutdown = true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java | |
public String toString() { return ("Socket " + impl); | public String toString() { try { if (isConnected()) return ("Socket[addr=" + getImpl().getInetAddress() + ",port=" + getImpl().getPort() + ",localport=" + getImpl().getLocalPort() + "]"); } catch (SocketException e) { | public String toString() { return ("Socket " + impl); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java |
return "Socket[unconnected]"; } | public String toString() { return ("Socket " + impl); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java | |
JPopupMenu.this.revalidate(); JPopupMenu.this.repaint(); | public void propertyChange(PropertyChangeEvent evt) { JPopupMenu.this.revalidate(); JPopupMenu.this.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/JPopupMenu.java/buggy/core/src/classpath/javax/javax/swing/JPopupMenu.java | |
super.setSize(null); | if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { public void run() { show(); } }); } setSize(getPreferredSize()); | public void pack() { super.setSize(null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/JPopupMenu.java/buggy/core/src/classpath/javax/javax/swing/JPopupMenu.java |
GridBagConstraints constraints = new GridBagConstraints(); constraints.fill = GridBagConstraints.BOTH; constraints.weightx = 100.0; constraints.weighty = 100.0; Component[] items = getComponents(); for (int i = index; i < items.length; i++) { constraints.gridy = i; super.add(items[i], constraints, i); } this.setSize(... | revalidate(); | public void remove(int index) { super.remove(index); GridBagConstraints constraints = new GridBagConstraints(); constraints.fill = GridBagConstraints.BOTH; constraints.weightx = 100.0; constraints.weighty = 100.0; Component[] items = getComponents(); for (int i = index; i < items.length; i++) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/JPopupMenu.java/buggy/core/src/classpath/javax/javax/swing/JPopupMenu.java |
if (popupLocation == null) popupLocation = new Point(); popupLocation.x = x; popupLocation.y = y; | popupLocationX = x; popupLocationY = y; | public void setLocation(int x, int y) { if (popupLocation == null) popupLocation = new Point(); popupLocation.x = x; popupLocation.y = y; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/JPopupMenu.java/buggy/core/src/classpath/javax/javax/swing/JPopupMenu.java |
public void setVisible(boolean visible) | public void setVisible(final boolean visible) | public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/JPopupMenu.java/buggy/core/src/classpath/javax/javax/swing/JPopupMenu.java |
Container rootContainer = (Container) SwingUtilities.getRoot(invoker); Dimension screenSize = getToolkit().getScreenSize(); | public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/JPopupMenu.java/buggy/core/src/classpath/javax/javax/swing/JPopupMenu.java | |
boolean fit = true; Dimension size = getSize(); if (size.width == 0 && size.height == 0) { size = getPreferredSize(); setSize(size); } if ((size.width > (rootContainer.getWidth() - popupLocation.x)) || (size.height > (rootContainer.getHeight() - popupLocation.y))) fit = false; if (lightWeightPopupEnabled && fit) popup ... | PopupFactory pf = PopupFactory.getSharedInstance(); popup = pf.getPopup(invoker, this, popupLocationX, popupLocationY); pack(); popup.show(); | public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/JPopupMenu.java/buggy/core/src/classpath/javax/javax/swing/JPopupMenu.java |
public abstract int getCaretPosition(); | int getCaretPosition(); | public abstract int getCaretPosition(); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/TextComponentPeer.java/clean/core/src/classpath/java/java/awt/peer/TextComponentPeer.java |
public abstract int getSelectionEnd(); | int getSelectionEnd(); | public abstract int getSelectionEnd(); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/TextComponentPeer.java/clean/core/src/classpath/java/java/awt/peer/TextComponentPeer.java |
public abstract int getSelectionStart(); | int getSelectionStart(); | public abstract int getSelectionStart(); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/TextComponentPeer.java/clean/core/src/classpath/java/java/awt/peer/TextComponentPeer.java |
public abstract void select(int start_pos, int end_pos); | void select(int start_pos, int end_pos); | public abstract void select(int start_pos, int end_pos); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/TextComponentPeer.java/clean/core/src/classpath/java/java/awt/peer/TextComponentPeer.java |
public abstract void setCaretPosition(int pos); | void setCaretPosition(int pos); | public abstract void setCaretPosition(int pos); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/TextComponentPeer.java/clean/core/src/classpath/java/java/awt/peer/TextComponentPeer.java |
public abstract void setEditable(boolean editable); | void setEditable(boolean editable); | public abstract void setEditable(boolean editable); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/TextComponentPeer.java/clean/core/src/classpath/java/java/awt/peer/TextComponentPeer.java |
public abstract void setText(String text); | void setText(String text); | public abstract void setText(String text); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/TextComponentPeer.java/clean/core/src/classpath/java/java/awt/peer/TextComponentPeer.java |
Object value = Toolkit.getDefaultToolkit().getDesktopProperty(systemPropertyName); | Object value = Toolkit.getDefaultToolkit().getDesktopProperty( systemPropertyName); | public static Object getDesktopPropertyValue(String systemPropertyName, Object fallbackValue) { Object value = Toolkit.getDefaultToolkit().getDesktopProperty(systemPropertyName); return value != null ? value : fallbackValue; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/LookAndFeel.java/clean/core/src/classpath/javax/javax/swing/LookAndFeel.java |
public static JTextComponent.KeyBinding[] makeKeyBindings(Object[] keyBindingList) | public static JTextComponent.KeyBinding[] makeKeyBindings( Object[] keyBindingList) | public static JTextComponent.KeyBinding[] makeKeyBindings(Object[] keyBindingList) { JTextComponent.KeyBinding[] retBindings = new JTextComponent.KeyBinding[keyBindingList.length / 2]; for (int i = 0; i < keyBindingList.length - 1; i+= 2) { KeyStroke stroke; if (keyBindingList[i] i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/LookAndFeel.java/clean/core/src/classpath/javax/javax/swing/LookAndFeel.java |
retBindings[i/2] = new JTextComponent.KeyBinding(stroke, (String)keyBindingList[i+1]); | retBindings[i/2] = new JTextComponent.KeyBinding(stroke, (String) keyBindingList[i+1]); | public static JTextComponent.KeyBinding[] makeKeyBindings(Object[] keyBindingList) { JTextComponent.KeyBinding[] retBindings = new JTextComponent.KeyBinding[keyBindingList.length / 2]; for (int i = 0; i < keyBindingList.length - 1; i+= 2) { KeyStroke stroke; if (keyBindingList[i] i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/LookAndFeel.java/clean/core/src/classpath/javax/javax/swing/LookAndFeel.java |
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java | ||
int width = Utilities.getTabbedTextWidth(txt, g.getFontMetrics(), bounds.x, tabEx, txt.offset); | public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java | |
} | public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java | |
Utilities.drawTabbedText(txt, bounds.x, bounds.y - height / 2, g, tabEx, txt.offset); | Utilities.drawTabbedText(txt, bounds.x, bounds.y + ascent - height / 2, g, tabEx, txt.offset); | public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
Utilities.drawTabbedText(txt, bounds.x, bounds.y + height / 2, g, tabEx, txt.offset); | Utilities.drawTabbedText(txt, bounds.x, bounds.y + ascent + height / 2, g, tabEx, txt.offset); | public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
Utilities.drawTabbedText(txt, bounds.x, bounds.y, g, tabEx, | Utilities.drawTabbedText(txt, bounds.x, bounds.y + ascent, g, tabEx, | public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
g.setColor(oldColor); | public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java | |
startOffset = element.getStartOffset(); endOffset = element.getEndOffset(); | startOffset = -1; endOffset = -1; | public GlyphView(Element element) { super(element); startOffset = element.getStartOffset(); endOffset = element.getEndOffset(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
if (p1 != getEndOffset()) | public View createFragment(int p0, int p1) { GlyphView fragment = (GlyphView) clone(); fragment.startOffset = p0; fragment.endOffset = p1; return fragment; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java | |
return StyleConstants.getBackground(atts); | return (Color) atts.getAttribute(StyleConstants.Background); | public Color getBackground() { Element el = getElement(); AttributeSet atts = el.getAttributes(); return StyleConstants.getBackground(atts); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
int spanX = (int) getPreferredSpan(X_AXIS); int spanY = (int) getPreferredSpan(Y_AXIS); Rectangle dummyAlloc = new Rectangle(0, 0, spanX, spanY); Position.Bias[] biasRet = new Position.Bias[1]; int offset1 = viewToModel(pos, spanY / 2, dummyAlloc, biasRet); int offset2 = viewToModel(pos, spanY / 2, dummyAlloc, biasRet... | weight = GoodBreakWeight; | public int getBreakWeight(int axis, float pos, float len) { int weight; if (axis == Y_AXIS) weight = super.getBreakWeight(axis, pos, len); else { // Determine the model locations at pos and pos + len. int spanX = (int) getPreferredSpan(X_AXIS); int spanY = (int) getPreferredSp... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
return endOffset; | int end = endOffset; if (end < 0) end = super.getEndOffset(); return end; | public int getEndOffset() { return endOffset; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
return startOffset; | int start = startOffset; if (start < 0) start = super.getStartOffset(); return start; | public int getStartOffset() { return startOffset; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
getParent().preferenceChanged(this, true, false); | preferenceChanged(this, true, false); | public void insertUpdate(DocumentEvent e, Shape a, ViewFactory vf) { getParent().preferenceChanged(this, true, false); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
private boolean isNameCharacter(int c) | public static boolean isNameCharacter(int c, boolean xml11) | private boolean isNameCharacter(int c) { if (input.xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || (c >= 0x0030 && c <= 0x0039) || c == 0x3a | c == 0x5f | c == 0x2d | c == 0x2e | c == 0xB... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLParser.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (input.xml11) | if (xml11) | private boolean isNameCharacter(int c) { if (input.xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || (c >= 0x0030 && c <= 0x0039) || c == 0x3a | c == 0x5f | c == 0x2d | c == 0x2e | c == 0xB... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLParser.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
private boolean isNameStartCharacter(int c) | public static boolean isNameStartCharacter(int c, boolean xml11) | private boolean isNameStartCharacter(int c) { if (input.xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || c == 0x3a | c == 0x5f | (c >= 0xC0 && c <= 0xD6) || (c >= 0xD8 && c <= 0xF6) || (c >= 0xF8 && c ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLParser.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (input.xml11) | if (xml11) | private boolean isNameStartCharacter(int c) { if (input.xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || c == 0x3a | c == 0x5f | (c >= 0xC0 && c <= 0xD6) || (c >= 0xD8 && c <= 0xF6) || (c >= 0xF8 && c ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLParser.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (!isNameStartCharacter(cp[0])) | if (!isNameStartCharacter(cp[0], input.xml11)) | private boolean isNmtoken(String text, boolean isName) { try { int[] cp = UnicodeReader.toCodePointArray(text); if (cp.length == 0) return false; if (isName) { if (!isNameStartCharacter(cp[0])) return false; } else { if (!isNameCh... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLParser.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (!isNameCharacter(cp[0])) | if (!isNameCharacter(cp[0], input.xml11)) | private boolean isNmtoken(String text, boolean isName) { try { int[] cp = UnicodeReader.toCodePointArray(text); if (cp.length == 0) return false; if (isName) { if (!isNameStartCharacter(cp[0])) return false; } else { if (!isNameCh... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLParser.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (!isNameCharacter(cp[i])) | if (!isNameCharacter(cp[i], input.xml11)) | private boolean isNmtoken(String text, boolean isName) { try { int[] cp = UnicodeReader.toCodePointArray(text); if (cp.length == 0) return false; if (isName) { if (!isNameStartCharacter(cp[0])) return false; } else { if (!isNameCh... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLParser.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
private boolean isXML11Char(int c) | public static boolean isXML11Char(int c) | private boolean isXML11Char(int c) { return ((c >= 0x0001 && c <= 0xD7FF) || (c >= 0xE000 && c < 0xFFFD) || // NB exclude 0xfffd (c >= 0x10000 && c <= 0x10FFFF)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLParser.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
private boolean isXML11RestrictedChar(int c) | public static boolean isXML11RestrictedChar(int c) | private boolean isXML11RestrictedChar(int c) { return ((c >= 0x0001 && c <= 0x0008) || (c >= 0x000B && c <= 0x000C) || (c >= 0x000E && c <= 0x001F) || (c >= 0x007F && c <= 0x0084) || (c >= 0x0086 && c <= 0x009F)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLParser.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (!isNameStartCharacter(cp[0])) | if (!isNameStartCharacter(cp[0], input.xml11)) | private void readEntityDecl(boolean inExternalSubset) throws IOException, XMLStreamException { int flags = 0; // Check if parameter entity boolean peFlag = false; expandPE = false; requireWhitespace(); if (tryRead('%')) { peFlag = true; requireWhitespace(); } expandPE ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLParser.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (!isNameCharacter(cp[i])) | if (!isNameCharacter(cp[i], input.xml11)) | private void readEntityDecl(boolean inExternalSubset) throws IOException, XMLStreamException { int flags = 0; // Check if parameter entity boolean peFlag = false; expandPE = false; requireWhitespace(); if (tryRead('%')) { peFlag = true; requireWhitespace(); } expandPE ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLParser.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (!isValidCodePoint(codePoint)) throw new IllegalArgumentException("Illegal Unicode code point : " + codePoint); | public static char[] toChars(int codePoint) { char[] result = new char[charCount(codePoint)]; int ignore = toChars(codePoint, result, 0); return result; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/Character.java/buggy/core/src/classpath/5.0/java/lang/Character.java | |
public X500DistinguishedName(String name) | public X500DistinguishedName() | public X500DistinguishedName(String name) { if (name == null) throw new NullPointerException(); try { parseDN(name, true); } catch (Exception e) { parseDN(name, false); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X500DistinguishedName.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X500DistinguishedName.java |
if (name == null) throw new NullPointerException(); try { parseDN(name, true); } catch (Exception e) { parseDN(name, false); } | components = new LinkedList(); currentRdn = new LinkedHashMap(); components.add(currentRdn); | public X500DistinguishedName(String name) { if (name == null) throw new NullPointerException(); try { parseDN(name, true); } catch (Exception e) { parseDN(name, false); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X500DistinguishedName.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X500DistinguishedName.java |
return (commonName != null && commonName.equals(((X500DistinguishedName) o).commonName)) && (country != null && country.equals(((X500DistinguishedName) o).country)) && (locality != null && locality.equals(((X500DistinguishedName) o).locality)) && (orgUnit != null && orgUnit.equals(((X500DistinguishedName) o).orgUnit)) ... | if (!(o instanceof X500DistinguishedName)) return false; if (size() != ((X500DistinguishedName) o).size()) return false; for (int i = 0; i < size(); i++) { Map m = (Map) components.get(i); for (Iterator it2 = m.entrySet().iterator(); it2.hasNext(); ) { Map.Entry e = (Map.Entry) it2.next(); OID oid = (OID) e.getKey(); S... | public boolean equals(Object o) { return (commonName != null && commonName.equals(((X500DistinguishedName) o).commonName)) && (country != null && country.equals(((X500DistinguishedName) o).country)) && (locality != null && locality.equals(((X500DistinguishedName) o).locality)) &&... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X500DistinguishedName.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X500DistinguishedName.java |
cfg.addRoute(new IPv4Address(hdr.getServerIPAddress()), null, device, false); | cfg.addRoute(network_address, null, device, false); | protected void configureNetwork(Device device, BOOTPHeader hdr) throws NetworkException { log.info("Got Client IP address : " + hdr.getClientIPAddress()); log.info("Got Your IP address : " + hdr.getYourIPAddress()); log.info("Got Server IP address : " + hdr.getServerIPAddress()); log.info("Got ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8cff0edc93083c876c53c095d00f35cbe65479e5/BOOTPClient.java/clean/net/src/net/org/jnode/net/ipv4/bootp/BOOTPClient.java |
cfg.addRoute(new IPv4Address(hdr.getServerIPAddress()), new IPv4Address(hdr.getGatewayIPAddress()), device, false); | cfg.addRoute(network_address, new IPv4Address(hdr.getGatewayIPAddress()), device, false); | protected void configureNetwork(Device device, BOOTPHeader hdr) throws NetworkException { log.info("Got Client IP address : " + hdr.getClientIPAddress()); log.info("Got Your IP address : " + hdr.getYourIPAddress()); log.info("Got Server IP address : " + hdr.getServerIPAddress()); log.info("Got ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8cff0edc93083c876c53c095d00f35cbe65479e5/BOOTPClient.java/clean/net/src/net/org/jnode/net/ipv4/bootp/BOOTPClient.java |
if( isLightweight() ) setCursor( getCursor() ); | protected void processMouseEvent(MouseEvent e) { if (mouseListener == null) return; switch (e.id) { case MouseEvent.MOUSE_CLICKED: mouseListener.mouseClicked(e); break; case MouseEvent.MOUSE_ENTERED: mouseListener.mouseEntered(e); break; case MouseEvent.MOUSE_EXITED: mo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/Component.java/clean/core/src/classpath/java/java/awt/Component.java | |
ret.addNodeName("embed"); | public HTMLCollection getApplets() { DomHTMLCollection ret = new DomHTMLCollection(this, this); ret.addNodeName("object"); ret.addNodeName("applet"); ret.evaluate(); return ret; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a41d0899aa65f05fc526d9fb2ea0b096d1ff3f8c/DomHTMLDocument.java/buggy/core/src/classpath/gnu/gnu/xml/dom/html2/DomHTMLDocument.java | |
if (approveButtonText == null) return getUI().getApproveButtonText(this); else | public String getApproveButtonText() { if (approveButtonText == null) return getUI().getApproveButtonText(this); else return approveButtonText; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/JFileChooser.java/clean/core/src/classpath/javax/javax/swing/JFileChooser.java | |
return getFileView().getDescription(f); | String result = null; if (fv != null) result = fv.getDescription(f); if (result == null) result = getUI().getFileView(this).getDescription(f); return result; | public String getDescription(File f) { return getFileView().getDescription(f); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/JFileChooser.java/clean/core/src/classpath/javax/javax/swing/JFileChooser.java |
if (dialogTitle == null) return getUI().getDialogTitle(this); else | public String getDialogTitle() { if (dialogTitle == null) return getUI().getDialogTitle(this); else return dialogTitle; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/JFileChooser.java/clean/core/src/classpath/javax/javax/swing/JFileChooser.java | |
if (fv == null) return getUI().getFileView(this); else | public FileView getFileView() { if (fv == null) return getUI().getFileView(this); else return fv; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/JFileChooser.java/clean/core/src/classpath/javax/javax/swing/JFileChooser.java | |
return getFileView().getIcon(f); | Icon result = null; if (fv != null) result = fv.getIcon(f); if (result == null) result = getUI().getFileView(this).getIcon(f); return result; | public Icon getIcon(File f) { return getFileView().getIcon(f); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/JFileChooser.java/clean/core/src/classpath/javax/javax/swing/JFileChooser.java |
return getFileView().getName(f); | String name = null; if (fv != null) name = fv.getName(f); if (name == null) name = getUI().getFileView(this).getName(f); return name; | public String getName(File f) { return getFileView().getName(f); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/JFileChooser.java/clean/core/src/classpath/javax/javax/swing/JFileChooser.java |
return getFileView().getTypeDescription(f); | String result = null; if (fv != null) result = getFileView().getTypeDescription(f); if (result == null) result = getUI().getFileView(this).getTypeDescription(f); return result; | public String getTypeDescription(File f) { return getFileView().getTypeDescription(f); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/JFileChooser.java/clean/core/src/classpath/javax/javax/swing/JFileChooser.java |
if (!(ctx instanceof DomDoctype)) { return; } | public void elementDecl(String name, String model) throws SAXException { if (interrupted) { return; } DomDoctype doctype = (DomDoctype) ctx; doctype.elementDecl(name, model); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/20002e10b15f0b6d4dcc01a9b59f8f854f0731b1/SAXEventSink.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/SAXEventSink.java | |
for (int xp = x; xp < (x + w); xp++) for (int yp = y; yp < (y + h); yp++) | for (int yp = 0; yp < h; yp++) | public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int offset, int scansize) { for (int xp = x; xp < (x + w); xp++) for (int yp = y; yp < (y + h); yp++) { pixels[offset] = filterRGB(xp, yp, pixels[offset]); offset++; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/389a8c811e91dbf626693fbb413506535b9ebd2e/RGBImageFilter.java/buggy/core/src/classpath/java/java/awt/image/RGBImageFilter.java |
pixels[offset] = filterRGB(xp, yp, pixels[offset]); offset++; | for (int xp = 0; xp < w; xp++) { pixels[offset + xp] = filterRGB(xp + x, yp + y, pixels[offset + xp]); } offset += scansize; | public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int offset, int scansize) { for (int xp = x; xp < (x + w); xp++) for (int yp = y; yp < (y + h); yp++) { pixels[offset] = filterRGB(xp, yp, pixels[offset]); offset++; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/389a8c811e91dbf626693fbb413506535b9ebd2e/RGBImageFilter.java/buggy/core/src/classpath/java/java/awt/image/RGBImageFilter.java |
out.println("t - List all threads"); out.println("r - List all running threads"); out.println("w - List all waiting threads"); out.println("n - Next thread in list"); out.println("Alt-SysRq - Quit debugger"); | final TreeMap map = new TreeMap(); map.put(".", "Print state trace"); map.put("p", "Print current state"); map.put("h", "Print usage information"); state.fillHelp(map); for (Iterator i = map.entrySet().iterator(); i.hasNext();) { Map.Entry entry = (Map.Entry) i.next(); out.println(entry.getKey() + " - " + entry.getValu... | private void help(PrintStream out) { out.println("Usage:"); out.println("t - List all threads"); out.println("r - List all running threads"); out.println("w - List all waiting threads"); out.println("n - Next thread in list"); out.println("Al... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1eb4825e3762472d179761266ebc626016010d15/Debugger.java/buggy/core/src/core/org/jnode/debugger/Debugger.java |
threads = null; threadIterator = null; | state = new RootState(); | private void reset() { threads = null; threadIterator = null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1eb4825e3762472d179761266ebc626016010d15/Debugger.java/buggy/core/src/core/org/jnode/debugger/Debugger.java |
switch (event.getKeyChar()) { case 't': showThreadList(out, ST_ALL, "[All threads]"); break; case 'r': showThreadList(out, ST_RUNNING, "[Running threads]"); break; case 'w': showThreadList(out, ST_WAITING, "[Waiting threads]"); break; case 'n': showNextThread(out); break; case 'h': case '?': case 'H': help(out); | DebugState st = this.state; while ((st != null) && (!event.isConsumed())) { final DebugState newState = st.process(event); if (event.isConsumed()) { newState.print(out); this.state = newState; out.println(); } else { st = st.getParent(); } } if (!event.isConsumed()) { switch (event.getKeyChar()) { case 'p': state.pri... | public Object run() { final PrintStream out = VmSystem.getOut(); switch (event.getKeyChar()) { case 't': showThreadList(out, ST_ALL, "[All threads]"); break; case 'r': showThreadList(out, ST_RUNNING, "[Running threads]"); break; case 'w'... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1eb4825e3762472d179761266ebc626016010d15/Debugger.java/buggy/core/src/core/org/jnode/debugger/Debugger.java |
} else { System.out.println(); | public void systemTrigger(SystemEvent event) { event.consume(); if (!enabled) { reset(); setPreferredListener(); VmSystem.getOut().println("[Debugger ('h' for help)]"); } enabled = !enabled; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1eb4825e3762472d179761266ebc626016010d15/Debugger.java/buggy/core/src/core/org/jnode/debugger/Debugger.java | |
protected Rectangle getBox(Rectangle r) { if (!progressBar.isIndeterminate()) return null; if (r == null) r = new Rectangle(); Rectangle vr = new Rectangle(); SwingUtilities.calculateInnerArea(progressBar, vr); // Recalculate the metrics only when size of the progressbar has changed. if (... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8a49a412752cdcc88a774cac2de160a23c6f550/BasicProgressBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicProgressBarUI.java | ||
public int[] getRowsForPaths(TreePath[] path); | int[] getRowsForPaths(TreePath[] path); | public int[] getRowsForPaths(TreePath[] path); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/RowMapper.java/buggy/core/src/classpath/javax/javax/swing/tree/RowMapper.java |
protected boolean accept(Component current) | protected boolean accept (Component current) | protected boolean accept(Component current) { return current.visible && current.isDisplayable() && current.enabled && current.focusable; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/buggy/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java |
return current.visible && current.isDisplayable() && current.enabled && current.focusable; | return (current.visible && current.isDisplayable () && current.enabled && current.focusable); | protected boolean accept(Component current) { return current.visible && current.isDisplayable() && current.enabled && current.focusable; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/buggy/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java |
streamRequest sr = (streamRequest) output; | StreamBasedRequest sr = (StreamBasedRequest) output; | public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9344cb85925e12da0e0cccb4ba0521d8696a226/LocalDelegate.java/clean/core/src/classpath/gnu/gnu/CORBA/Poa/LocalDelegate.java |
if (handler instanceof dynImpHandler) | if (handler instanceof DynamicImpHandler) | public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9344cb85925e12da0e0cccb4ba0521d8696a226/LocalDelegate.java/clean/core/src/classpath/gnu/gnu/CORBA/Poa/LocalDelegate.java |
cdrOutput buf = sr.createEncapsulation(); | AbstractCdrOutput buf = sr.createEncapsulation(); | public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9344cb85925e12da0e0cccb4ba0521d8696a226/LocalDelegate.java/clean/core/src/classpath/gnu/gnu/CORBA/Poa/LocalDelegate.java |
} | public LocalRequest(gnuServantObject local_object, gnuPOA a_poa, byte[] an_id) { Id = an_id; poa = a_poa; // Instantiate the cookie holder only if required. if (poa.servant_locator != null) cookie = new CookieHolder(); object = local_object; prepareStream(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/LocalRequest.java/buggy/core/src/classpath/gnu/gnu/CORBA/Poa/LocalRequest.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.