rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
removeBeanContextServicesListener (BeanContextServicesListener bcsl) | public void removeBeanContextServicesListener (BeanContextServicesListener listener) | removeBeanContextServicesListener (BeanContextServicesListener bcsl) { throw new Error ("Not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/BeanContextServicesSupport.java/clean/core/src/classpath/java/java/beans/beancontext/BeanContextServicesSupport.java |
throw new Error ("Not implemented"); | int index = bcsListeners.indexOf(listener); if (index > -1) bcsListeners.remove(index); | removeBeanContextServicesListener (BeanContextServicesListener bcsl) { throw new Error ("Not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/BeanContextServicesSupport.java/clean/core/src/classpath/java/java/beans/beancontext/BeanContextServicesSupport.java |
if (hostname == null) { throw new UnknownHostException("null"); } if (resolver == null) { throw new UnknownHostException(hostname); } | public ProtocolAddress[] getByName(final String hostname) throws UnknownHostException { final PrivilegedExceptionAction action = new PrivilegedExceptionAction() { public Object run() throws UnknownHostException { ProtocolAddress[] protocolAddresses; protoco... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/ResolverImpl.java/buggy/net/src/net/org/jnode/net/ipv4/util/ResolverImpl.java | |
public IPv4Address(String addrStr) throws IllegalArgumentException { final StringTokenizer tok = new StringTokenizer(addrStr, "."); if (tok.countTokens() != length) { throw new IllegalArgumentException("Not an IPv4 address " + addrStr); } | public IPv4Address(byte[] src, int offset) { | 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 { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/IPv4Address.java/buggy/net/src/net/org/jnode/net/ipv4/IPv4Address.java |
for (int i = 0; i < length; i++) { try { address[i] = (byte)Integer.parseInt(tok.nextToken()); } catch (NumberFormatException ex) { throw new IllegalArgumentException("Not a valid IPv4 address " + addrStr); } } | System.arraycopy(src, offset, address, 0, length); | 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 { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/IPv4Address.java/buggy/net/src/net/org/jnode/net/ipv4/IPv4Address.java |
public void addChangeListener(ChangeListener listener) { listenerList.add(ChangeListener.class, listener); } | public void addChangeListener (ChangeListener listener) { listenerList.add (ChangeListener.class, listener); } | public void addChangeListener(ChangeListener listener) { listenerList.add(ChangeListener.class, listener); } // addChangeListener() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultSingleSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultSingleSelectionModel.java |
public void clearSelection() { | public void clearSelection () { index = -1; | public void clearSelection() { // Set Data index = -1; // Notify Listeners fireStateChanged(); } // clearSelection() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultSingleSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultSingleSelectionModel.java |
index = -1; fireStateChanged(); } | fireStateChanged (); } | public void clearSelection() { // Set Data index = -1; // Notify Listeners fireStateChanged(); } // clearSelection() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultSingleSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultSingleSelectionModel.java |
protected void fireStateChanged() { | protected void fireStateChanged () { ChangeListener listener; ChangeListener[] listeners; int index; | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultSingleSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultSingleSelectionModel.java |
ChangeListener listener; EventListener[] listeners; int index; | listeners = getChangeListeners (); | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultSingleSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultSingleSelectionModel.java |
listeners = listenerList.getListeners(ChangeListener.class); for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[index]; listener.stateChanged(changeEvent); } } | for (index = 0; index < listeners.length; index++) { listener = listeners [index]; listener.stateChanged (changeEvent); } } | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultSingleSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultSingleSelectionModel.java |
public EventListener[] getListeners(Class listenerClass) { return listenerList.getListeners(listenerClass); } | public EventListener[] getListeners (Class listenerClass) { return listenerList.getListeners (listenerClass); } | public EventListener[] getListeners(Class listenerClass) { return listenerList.getListeners(listenerClass); } // getListeners() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultSingleSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultSingleSelectionModel.java |
public int getSelectedIndex() { return index; } | public int getSelectedIndex () { return index; } | public int getSelectedIndex() { return index; } // getSelectedIndex() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultSingleSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultSingleSelectionModel.java |
public boolean isSelected() { return (index == -1); } | public boolean isSelected () { return (index == -1); } | public boolean isSelected() { return (index == -1); } // isSelected() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultSingleSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultSingleSelectionModel.java |
public void removeChangeListener(ChangeListener listener) { listenerList.remove(ChangeListener.class, listener); } | public void removeChangeListener (ChangeListener listener) { listenerList.remove (ChangeListener.class, listener); } | public void removeChangeListener(ChangeListener listener) { listenerList.remove(ChangeListener.class, listener); } // removeChangeListener() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultSingleSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultSingleSelectionModel.java |
public void setSelectedIndex(int index) { | public void setSelectedIndex (int index) { this.index = index; | public void setSelectedIndex(int index) { // Set Data this.index = index; // Notify Listeners fireStateChanged(); } // setSelectedIndex() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultSingleSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultSingleSelectionModel.java |
this.index = index; fireStateChanged(); } | fireStateChanged (); } | public void setSelectedIndex(int index) { // Set Data this.index = index; // Notify Listeners fireStateChanged(); } // setSelectedIndex() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultSingleSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultSingleSelectionModel.java |
Element e = newElement(element_name); return e; | return newElement(element_name); | public Element getElement(String element_name) { Element e = newElement(element_name); return e; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f6cb9e79af09b215e75e83abc60d3939720d4f89/DTD.java/clean/core/src/classpath/javax/javax/swing/text/html/parser/DTD.java |
Object old = super.put(key, value); | Object old; if (value != null) old = super.put(key, value); else old = super.remove(key); | 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; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/UIDefaults.java/buggy/core/src/classpath/javax/javax/swing/UIDefaults.java |
public synchronized void release() { log.debug("io.release"); | public void release() { | public synchronized void release() { log.debug("io.release"); io.release(); log.debug("irq.release"); irq.release(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b961043608c2c24a6dbe488310cbcd0f0bcc1461/_3c90xCore.java/buggy/net/src/driver/org/jnode/driver/net/_3c90x/_3c90xCore.java |
log.debug("end of release"); | public synchronized void release() { log.debug("io.release"); io.release(); log.debug("irq.release"); irq.release(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b961043608c2c24a6dbe488310cbcd0f0bcc1461/_3c90xCore.java/buggy/net/src/driver/org/jnode/driver/net/_3c90x/_3c90xCore.java | |
super(null, null); | super(); | public JMenuItem() { super(null, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JMenuItem.java/buggy/core/src/classpath/javax/javax/swing/JMenuItem.java |
DefaultButtonModel(JComponent a) { comp = a; } | public DefaultButtonModel() { stateMask = ENABLED; mnemonic = java.awt.event.KeyEvent.VK_UNDEFINED; listenerList = new EventListenerList(); changeEvent = new ChangeEvent(this); } | DefaultButtonModel(JComponent a) { comp = a; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/buggy/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
Graphics g = jComponent.getGraphics(); ((Component)component).paint(g); | final Graphics g = jComponent.getGraphics(); if (g != null) { ((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); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/250b715ef99c5e315989f8f537a626e103b40bb4/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java |
Graphics g = jComponent.getGraphics(); ((Component)component).update(getGraphics()); | final Graphics g = jComponent.getGraphics(); if (g != null) { ((Component)component).update(getGraphics()); } | 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); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/250b715ef99c5e315989f8f537a626e103b40bb4/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java |
if (!mode.canRead() && mode.canWrite()) { try { file.setLength(0); } catch (IOException e) {} } | public FileHandleImpl(FSFile file, VMOpenMode mode, FileHandleManager fhm) { this.mode = mode; this.file = file; this.readOnly = (mode == VMOpenMode.READ); this.fhm = fhm; this.closed = false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3239ed3832d9e6da355caea31f418f0c0d32d0c2/FileHandleImpl.java/buggy/fs/src/fs/org/jnode/fs/service/def/FileHandleImpl.java | |
if (length > fileOffset) { | 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; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3239ed3832d9e6da355caea31f418f0c0d32d0c2/FileHandleImpl.java/buggy/fs/src/fs/org/jnode/fs/service/def/FileHandleImpl.java | |
} | 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; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3239ed3832d9e6da355caea31f418f0c0d32d0c2/FileHandleImpl.java/buggy/fs/src/fs/org/jnode/fs/service/def/FileHandleImpl.java | |
final public static ByteBuffer wrap (byte[] array) | public static final ByteBuffer wrap (byte[] array, int offset, int length) | final public static ByteBuffer wrap (byte[] array) { return wrap (array, 0, array.length); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/ByteBuffer.java/buggy/core/src/classpath/java/java/nio/ByteBuffer.java |
return wrap (array, 0, array.length); | return new ByteBufferImpl (array, 0, array.length, offset + length, offset, -1, false); | final public static ByteBuffer wrap (byte[] array) { return wrap (array, 0, array.length); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/ByteBuffer.java/buggy/core/src/classpath/java/java/nio/ByteBuffer.java |
public static String decode(String s, String encoding) throws UnsupportedEncodingException | public static String decode(String s) | 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; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/URLDecoder.java/clean/core/src/classpath/java/java/net/URLDecoder.java |
String str = s.replace('+', ' '); int i; int start = 0; byte[] bytes = null; int length = str.length(); StringBuffer result = new StringBuffer(length); while ((i = str.indexOf('%', start)) >= 0) | try | 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; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/URLDecoder.java/clean/core/src/classpath/java/java/net/URLDecoder.java |
result.append(str.substring(start, i)); start = i; while ((i + 2 < length) && (str.charAt(i) == '%')) i += 3; if ((bytes == null) || (bytes.length < ((i - start) / 3))) bytes = new byte[((i - start) / 3)]; int index = 0; try { while (start < i) { String sub = str.substring(start + 1, start + 3); bytes[index] = (b... | return decode(s, "UTF-8"); | 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; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/URLDecoder.java/clean/core/src/classpath/java/java/net/URLDecoder.java |
if (start < str.length()) result.append(str.substring(start)); return result.toString(); | catch (UnsupportedEncodingException uee) { return s; } | 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; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/URLDecoder.java/clean/core/src/classpath/java/java/net/URLDecoder.java |
public static Constant getInstance(Object value) { return new ReferenceConstant(value); | public static Constant getInstance(byte value) { throw new IllegalArgumentException("constant not yet defined"); | public static Constant getInstance(Object value) { return new ReferenceConstant(value); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/83d771de58028a6bb6c7276fcab5b71bc8745234/Constant.java/clean/core/src/core/org/jnode/vm/compiler/ir/Constant.java |
Container getContentPane() { | public Container getContentPane() { | Container getContentPane() { return getRootPane().getContentPane(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/302fc3a75450b56b8f62e9cd31f864e8063b8f38/JFrame.java/clean/core/src/classpath/javax/javax/swing/JFrame.java |
void setContentPane(Container contentPane) { | public void setContentPane(Container contentPane) { | void setContentPane(Container contentPane) { getRootPane().setContentPane(contentPane); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/302fc3a75450b56b8f62e9cd31f864e8063b8f38/JFrame.java/clean/core/src/classpath/javax/javax/swing/JFrame.java |
void setDefaultCloseOperation(int operation) { | public void setDefaultCloseOperation(int operation) { | void setDefaultCloseOperation(int operation) { close_action = operation; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/302fc3a75450b56b8f62e9cd31f864e8063b8f38/JFrame.java/clean/core/src/classpath/javax/javax/swing/JFrame.java |
void setGlassPane(Component glassPane) { | public void setGlassPane(Component glassPane) { | void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/302fc3a75450b56b8f62e9cd31f864e8063b8f38/JFrame.java/clean/core/src/classpath/javax/javax/swing/JFrame.java |
public final PrivateKey generatePrivate(KeySpec keySpec) throws InvalidKeySpecException | public final PrivateKey generatePrivate(KeySpec keySpec) throws InvalidKeySpecException | public final PrivateKey generatePrivate(KeySpec keySpec) throws InvalidKeySpecException { return keyFacSpi.engineGeneratePrivate(keySpec); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/KeyFactory.java/buggy/core/src/classpath/java/java/security/KeyFactory.java |
public final PublicKey generatePublic(KeySpec keySpec) throws InvalidKeySpecException | public final PublicKey generatePublic(KeySpec keySpec) throws InvalidKeySpecException | public final PublicKey generatePublic(KeySpec keySpec) throws InvalidKeySpecException { return keyFacSpi.engineGeneratePublic(keySpec); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/KeyFactory.java/buggy/core/src/classpath/java/java/security/KeyFactory.java |
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]); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/KeyFactory.java/buggy/core/src/classpath/java/java/security/KeyFactory.java | ||
String classname = p[i].getProperty("KeyFactory." + algorithm); if (classname != null) return getInstance(classname, algorithm, p[i]); | return getInstance(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]); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/KeyFactory.java/buggy/core/src/classpath/java/java/security/KeyFactory.java |
catch (NoSuchAlgorithmException ignored) {} | 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]); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/KeyFactory.java/buggy/core/src/classpath/java/java/security/KeyFactory.java | |
return affineTransform == null ? 0 : affineTransform.hashCode (); | int code = ( isAntiAliased ? 1 : 0 ) + ( usesFractionalMetrics ? 2 : 0 ); if( affineTransform != null && !affineTransform.isIdentity() ) code ^= affineTransform.hashCode(); return code; | public int hashCode () { // FIXME: check what SUN does here. return affineTransform == null ? 0 : affineTransform.hashCode (); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac47f92e4c558fe929f5cc64f85d3154701fcd9c/FontRenderContext.java/buggy/core/src/classpath/java/java/awt/font/FontRenderContext.java |
else super.propertyChange(e); | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(FREE_STANDING_PROP)) { Boolean prop = (Boolean) e.getNewValue(); isFreeStanding = (prop == null ? true : prop.booleanValue()); increaseButton.setFreeStanding(isFreeStanding); decreas... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/MetalScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalScrollBarUI.java | |
thumbColor = defaults.getColor("ScrollBar.thumb"); thumbDarkShadowColor = defaults.getColor("ScrollBar.thumbDarkShadow"); thumbHighlightColor = defaults.getColor("ScrollBar.thumbHighlight"); thumbLightShadowColor = defaults.getColor("ScrollBar.thumbShadow"); | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollbar.setForeground(defaults.getColor("ScrollBar.foreground")); scrollbar.setBackground(defaults.getColor("ScrollBar.background")); scrollbar.setBorder(defaults.getBorder("ScrollBar.border")); scrollbar.se... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicScrollBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | |
return new String[] | if (countryCache == null) | 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"... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/Locale.java/clean/core/src/classpath/java/java/util/Locale.java |
"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", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CX", "CY", "CZ", "DE", "D... | countryCache = getISOStrings("territories"); } return countryCache; | 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"... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/Locale.java/clean/core/src/classpath/java/java/util/Locale.java |
return new String[] | if (languageCache == null) | 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"... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/Locale.java/clean/core/src/classpath/java/java/util/Locale.java |
"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", "gn", "gu", "ha", "he", "hi", "hr", "hu", "hy", "ia", "id", "ie", "ik", "in", "is", "it", "i... | languageCache = getISOStrings("languages"); } return languageCache; } | 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"... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/Locale.java/clean/core/src/classpath/java/java/util/Locale.java |
protected AccessibleJRadioButtonMenuItem(JRadioButtonMenuItem component) { super(component); } | protected AccessibleJRadioButtonMenuItem(JRadioButtonMenuItem component) { super(component); } | protected AccessibleJRadioButtonMenuItem(JRadioButtonMenuItem component) { super(component); // TODO } // AccessibleJRadioButtonMenuItem() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRadioButtonMenuItem.java/clean/core/src/classpath/javax/javax/swing/JRadioButtonMenuItem.java |
public AccessibleRole getAccessibleRole() { return AccessibleRole.RADIO_BUTTON; } | public AccessibleRole getAccessibleRole() { return AccessibleRole.RADIO_BUTTON; } | public AccessibleRole getAccessibleRole() { return AccessibleRole.RADIO_BUTTON; } // getAccessibleRole() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRadioButtonMenuItem.java/clean/core/src/classpath/javax/javax/swing/JRadioButtonMenuItem.java |
public JRadioButtonMenuItem() { } | public JRadioButtonMenuItem() { this(null, null); } | public JRadioButtonMenuItem() { // TODO } // JRadioButtonMenuItem() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRadioButtonMenuItem.java/clean/core/src/classpath/javax/javax/swing/JRadioButtonMenuItem.java |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJRadioButtonMenuItem(this); } return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJRadioButtonMenuItem(this); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJRadioButtonMenuItem(this); } // if return accessibleContext; } // getAccessibleContext() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRadioButtonMenuItem.java/clean/core/src/classpath/javax/javax/swing/JRadioButtonMenuItem.java |
public String getUIClassID() { return uiClassID; } | public String getUIClassID() { return uiClassID; } | public String getUIClassID() { return uiClassID; } // getUIClassID() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRadioButtonMenuItem.java/clean/core/src/classpath/javax/javax/swing/JRadioButtonMenuItem.java |
protected String paramString() { return null; } | protected String paramString() { return "JRadioButtonMenuItem"; } | protected String paramString() { return null; // TODO } // paramString() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRadioButtonMenuItem.java/clean/core/src/classpath/javax/javax/swing/JRadioButtonMenuItem.java |
public void requestFocus() { | public void requestFocus() { | public void requestFocus() { // TODO } // requestFocus() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRadioButtonMenuItem.java/clean/core/src/classpath/javax/javax/swing/JRadioButtonMenuItem.java |
} | } | public void requestFocus() { // TODO } // requestFocus() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRadioButtonMenuItem.java/clean/core/src/classpath/javax/javax/swing/JRadioButtonMenuItem.java |
private void writeObject(ObjectOutputStream stream) throws IOException { | private void writeObject(ObjectOutputStream stream) throws IOException { | private void writeObject(ObjectOutputStream stream) throws IOException { // TODO } // writeObject() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRadioButtonMenuItem.java/clean/core/src/classpath/javax/javax/swing/JRadioButtonMenuItem.java |
} | } | private void writeObject(ObjectOutputStream stream) throws IOException { // TODO } // writeObject() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRadioButtonMenuItem.java/clean/core/src/classpath/javax/javax/swing/JRadioButtonMenuItem.java |
} | protected void paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text) { Font f = menuItem.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); if (text != null && ! text.equals("")) { if (menuItem.isEnabled()) g.setColor(menuItem.getForegroun... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicMenuItemUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuItemUI.java | |
public boolean containsCustomComponents(JOptionPane pane) { | public boolean containsCustomComponents(JOptionPane 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);... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01bcf1d981a0d2c2251fcc9f4417c2f3b3c93627/MultiOptionPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/multi/MultiOptionPaneUI.java |
public void selectInitialValue(JOptionPane pane) { | public void selectInitialValue(JOptionPane pane) { | public void selectInitialValue(JOptionPane pane) { Iterator iterator = uis.iterator(); while (iterator.hasNext()) { OptionPaneUI ui = (OptionPaneUI) iterator.next(); ui.selectInitialValue(pane); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01bcf1d981a0d2c2251fcc9f4417c2f3b3c93627/MultiOptionPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/multi/MultiOptionPaneUI.java |
protected final void doTransmit(SocketBuffer skbuf, HardwareAddress destination) throws NetworkException { skbuf.insert(ETH_HLEN); if (destination != null) { destination.writeTo(skbuf, 0); | 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); skbuf.set16(12, skbuf.getProtocolID()); on... | 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); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/07114658a0ab2659d7b38ac5ad6a0b214fba24e9/LoopbackDriver.java/clean/net/src/driver/org/jnode/driver/net/loopback/LoopbackDriver.java |
else { EthernetAddress.BROADCAST.writeTo(skbuf, 0); } getAddress().writeTo(skbuf, 6); skbuf.set16(12, skbuf.getProtocolID()); onReceive(skbuf); } | 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); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/07114658a0ab2659d7b38ac5ad6a0b214fba24e9/LoopbackDriver.java/clean/net/src/driver/org/jnode/driver/net/loopback/LoopbackDriver.java | |
public HardwareAddress getAddress() { return hwAddress; } | public HardwareAddress getAddress() { return hwAddress; } | public HardwareAddress getAddress() { return hwAddress; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/07114658a0ab2659d7b38ac5ad6a0b214fba24e9/LoopbackDriver.java/clean/net/src/driver/org/jnode/driver/net/loopback/LoopbackDriver.java |
protected String getDevicePrefix() { return LOOPBACK_DEVICE_PREFIX; } | protected String getDevicePrefix() { return LOOPBACK_DEVICE_PREFIX; } | protected String getDevicePrefix() { return LOOPBACK_DEVICE_PREFIX; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/07114658a0ab2659d7b38ac5ad6a0b214fba24e9/LoopbackDriver.java/clean/net/src/driver/org/jnode/driver/net/loopback/LoopbackDriver.java |
public int getMTU() { return ETH_DATA_LEN; } | public int getMTU() { return ETH_DATA_LEN; } | public int getMTU() { return ETH_DATA_LEN; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/07114658a0ab2659d7b38ac5ad6a0b214fba24e9/LoopbackDriver.java/clean/net/src/driver/org/jnode/driver/net/loopback/LoopbackDriver.java |
public void onReceive(SocketBuffer skbuf) throws NetworkException { | public void onReceive(SocketBuffer skbuf) throws NetworkException { | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/07114658a0ab2659d7b38ac5ad6a0b214fba24e9/LoopbackDriver.java/clean/net/src/driver/org/jnode/driver/net/loopback/LoopbackDriver.java |
final EthernetHeader hdr = new EthernetHeader(skbuf); skbuf.setLinkLayerHeader(hdr); skbuf.setProtocolID(EthernetUtils.getProtocol(hdr)); skbuf.pull(hdr.getLength()); | final EthernetHeader hdr = new EthernetHeader(skbuf); skbuf.setLinkLayerHeader(hdr); skbuf.setProtocolID(EthernetUtils.getProtocol(hdr)); skbuf.pull(hdr.getLength()); | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/07114658a0ab2659d7b38ac5ad6a0b214fba24e9/LoopbackDriver.java/clean/net/src/driver/org/jnode/driver/net/loopback/LoopbackDriver.java |
super.onReceive(skbuf); } | super.onReceive(skbuf); } | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/07114658a0ab2659d7b38ac5ad6a0b214fba24e9/LoopbackDriver.java/clean/net/src/driver/org/jnode/driver/net/loopback/LoopbackDriver.java |
int save = iter.getIndex(); | public int following (int pos) { int save = iter.getIndex(); iter.setIndex(pos); int r = next (); return r; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e607bce31cfb856ba77722e6c4f9f876b63f1cf8/BaseBreakIterator.java/clean/core/src/classpath/gnu/gnu/java/text/BaseBreakIterator.java | |
if (name.equalsIgnoreCase(child.getLocalName())) | String childName = child.getLocalName(); if (childName == null) { childName = child.getLocalName(); } if (name.equalsIgnoreCase(childName)) | protected Node getChildElement(String name) { for (Node child = getFirstChild(); child != null; child = child.getNextSibling()) { if (name.equalsIgnoreCase(child.getLocalName())) { return child; } } return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/DomHTMLElement.java/buggy/core/src/classpath/gnu/gnu/xml/dom/html2/DomHTMLElement.java |
if (attrName == null) { attrName = attr.getNodeName(); } | protected String getHTMLAttribute(String name) { if (hasAttributes()) { NamedNodeMap attrs = getAttributes(); int len = attrs.getLength(); for (int i = 0; i < len; i++) { Node attr = attrs.item(i); String attrName = attr.getLocalName(); if (attrN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/DomHTMLElement.java/buggy/core/src/classpath/gnu/gnu/xml/dom/html2/DomHTMLElement.java | |
if (name.equalsIgnoreCase(parent.getLocalName())) | String parentName = parent.getLocalName(); if (parentName == null) { parentName = parent.getNodeName(); } if (name.equalsIgnoreCase(parentName)) | protected Node getParentElement(String name) { for (Node parent = getParentNode(); parent != null; parent = parent.getParentNode()) { if (name.equalsIgnoreCase(parent.getLocalName())) { return parent; } } return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/DomHTMLElement.java/buggy/core/src/classpath/gnu/gnu/xml/dom/html2/DomHTMLElement.java |
if (attrName == null) { attrName = attr.getNodeName(); } | protected void setHTMLAttribute(String name, String value) { Node attr; NamedNodeMap attrs = getAttributes(); int len = attrs.getLength(); for (int i = 0; i < len; i++) { attr = attrs.item(i); String attrName = attr.getLocalName(); if (attrName.equalsIgnoreCase(name)) {... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/DomHTMLElement.java/buggy/core/src/classpath/gnu/gnu/xml/dom/html2/DomHTMLElement.java | |
CharSeqHolder h = new CharSeqHolder(); h._read(input); return h.value; | char [] value = new char[ input.read_long() ]; input.read_char_array(value, 0, value.length); return value; | public static char[] read(InputStream input) { CharSeqHolder h = new CharSeqHolder(); h._read(input); return h.value; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/CharSeqHelper.java/clean/core/src/classpath/org/org/omg/CORBA/CharSeqHelper.java |
CharSeqHolder h = new CharSeqHolder(value); h._write(output); | output.write_long(value.length); output.write_char_array(value, 0, value.length); | public static void write(OutputStream output, char[] value) { CharSeqHolder h = new CharSeqHolder(value); h._write(output); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/CharSeqHelper.java/clean/core/src/classpath/org/org/omg/CORBA/CharSeqHelper.java |
System.out.println(date.toLocaleString()); | System.out.println(DateFormat.getInstance().format(date)); | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/982e1b1b1ed579528f868755d8a932bed0e03228/NTFSUTIL.java/buggy/fs/src/fs/org/jnode/fs/ntfs/NTFSUTIL.java |
return types [ type ]; | return types[type]; | public String getTypeString(int type) { try { return types [ type ]; } catch (ArrayIndexOutOfBoundsException ex) { return "unknown type (" + type + ")"; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/MessageHeader.java/clean/core/src/classpath/gnu/gnu/CORBA/GIOP/MessageHeader.java |
byte[] xMagic = new byte[ MAGIC.length ]; | byte[] xMagic = new byte[MAGIC.length]; | 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; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/MessageHeader.java/clean/core/src/classpath/gnu/gnu/CORBA/GIOP/MessageHeader.java |
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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/MessageHeader.java/clean/core/src/classpath/gnu/gnu/CORBA/GIOP/MessageHeader.java | ||
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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/MessageHeader.java/clean/core/src/classpath/gnu/gnu/CORBA/GIOP/MessageHeader.java | ||
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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/MessageHeader.java/clean/core/src/classpath/gnu/gnu/CORBA/GIOP/MessageHeader.java | ||
dirtyComponents = new Hashtable(); invalidComponents = new Vector(); | dirtyComponents = new HashMap(); workDirtyComponents = new HashMap(); repaintOrder = new ArrayList(); workRepaintOrder = new ArrayList(); invalidComponents = new ArrayList(); workInvalidComponents = new ArrayList(); | public RepaintManager() { dirtyComponents = new Hashtable(); invalidComponents = new Vector(); repaintWorker = new RepaintWorker(); doubleBufferMaximumSize = new Dimension(2000,2000); doubleBufferingEnabled = true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java |
if (w == 0 || h == 0) | if (w == 0 || h == 0 || !component.isShowing()) | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java |
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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java | ||
else insertInRepaintOrder(component); | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java | |
return (Rectangle) dirtyComponents.get(component); | Rectangle dirty = (Rectangle) dirtyComponents.get(component); if (dirty == null) dirty = new Rectangle(); return dirty; | public Rectangle getDirtyRegion(JComponent component) { return (Rectangle) dirtyComponents.get(component); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java |
Rectangle dirty = (Rectangle) dirtyComponents.get(component); if (dirty == null) | if (! dirtyComponents.containsKey(component)) | 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); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java |
Rectangle r = component.getBounds(); if (r == null) return true; return dirty.contains(r); | return component.isCompletelyDirty; | 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); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java |
component.isCompletelyDirty = false; } | public void markCompletelyClean(JComponent component) { dirtyComponents.remove(component); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java | |
component.isCompletelyDirty = true; | public void markCompletelyDirty(JComponent component) { Rectangle r = component.getBounds(); addDirtyRegion(component, r.x, r.y, r.width, r.height); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java | |
public void paintDirtyRegions() { HashMap roots = new HashMap(); for (Enumeration e = dirtyComponents.keys(); e.hasMoreElements(); ) | public synchronized void paintDirtyRegions() | public void paintDirtyRegions() { // step 1: pull out roots and calculate spanning damage HashMap roots = new HashMap(); for (Enumeration e = dirtyComponents.keys(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java |
JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) | synchronized(this) { ArrayList swap = workRepaintOrder; workRepaintOrder = repaintOrder; repaintOrder = swap; HashMap swap2 = workDirtyComponents; workDirtyComponents = dirtyComponents; dirtyComponents = swap2; } for (Iterator i = workRepaintOrder.iterator(); i.hasNext();) { JComponent comp = (JComponent) i.next();... | public void paintDirtyRegions() { // step 1: pull out roots and calculate spanning damage HashMap roots = new HashMap(); for (Enumeration e = dirtyComponents.keys(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java |
Rectangle damaged = getDirtyRegion(comp); if (damaged.width == 0 || damaged.height == 0) continue; JRootPane root = comp.getRootPane(); if (root == null) continue; Rectangle rootDamage = SwingUtilities.convertRectangle(comp, damaged, root); if (! roots.containsKey(root)) { roots.put(root, rootDamage); } else { roots.p... | comp.paintImmediately(damaged); | public void paintDirtyRegions() { // step 1: pull out roots and calculate spanning damage HashMap roots = new HashMap(); for (Enumeration e = dirtyComponents.keys(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java |
dirtyComponents.clear(); Iterator i = roots.entrySet().iterator(); while(i.hasNext()) { Map.Entry ent = (Map.Entry) i.next(); JRootPane root = (JRootPane) ent.getKey(); Rectangle rect = (Rectangle) ent.getValue(); root.paintImmediately(rect); } | workRepaintOrder.clear(); workDirtyComponents.clear(); | public void paintDirtyRegions() { // step 1: pull out roots and calculate spanning damage HashMap roots = new HashMap(); for (Enumeration e = dirtyComponents.keys(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java |
invalidComponents.removeElement(component); | invalidComponents.remove(component); | public synchronized void removeInvalidComponent(JComponent component) { invalidComponents.removeElement(component); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java |
for (Enumeration e = invalidComponents.elements(); e.hasMoreElements(); ) | synchronized(this) { ArrayList swap = invalidComponents; invalidComponents = workInvalidComponents; workInvalidComponents = swap; } for (Iterator i = workInvalidComponents.iterator(); i.hasNext(); ) | public void validateInvalidComponents() { for (Enumeration e = invalidComponents.elements(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) continue; comp.validate(); } invalidComponents.clear(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.