rem
stringlengths 0
477k
| add
stringlengths 0
313k
| context
stringlengths 6
599k
| meta
stringlengths 141
403
|
---|---|---|---|
} | } | public void setReuseAddress(boolean on) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6cac04c48e1afad0cfbb014fb4ace224bd84bfaf/DatagramSocket.java/clean/core/src/classpath/java/java/net/DatagramSocket.java |
if (size < 0) throw new IllegalArgumentException("Buffer size is less than 0"); | if (size < 0) throw new IllegalArgumentException("Buffer size is less than 0"); | public void setSendBufferSize(int size) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); if (size < 0) throw new IllegalArgumentException("Buffer size is less than 0"); getImpl().setOption(SocketOptions.SO_SNDBUF, new Integer(size)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6cac04c48e1afad0cfbb014fb4ace224bd84bfaf/DatagramSocket.java/clean/core/src/classpath/java/java/net/DatagramSocket.java |
} | } | public void setSendBufferSize(int size) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); if (size < 0) throw new IllegalArgumentException("Buffer size is less than 0"); getImpl().setOption(SocketOptions.SO_SNDBUF, new Integer(size)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6cac04c48e1afad0cfbb014fb4ace224bd84bfaf/DatagramSocket.java/clean/core/src/classpath/java/java/net/DatagramSocket.java |
if (timeout < 0) | if (timeout < 0) | public synchronized void setSoTimeout(int timeout) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); if (timeout < 0) throw new IllegalArgumentException("Invalid timeout: " + timeout); getImpl().setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6cac04c48e1afad0cfbb014fb4ace224bd84bfaf/DatagramSocket.java/clean/core/src/classpath/java/java/net/DatagramSocket.java |
} | } | public synchronized void setSoTimeout(int timeout) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); if (timeout < 0) throw new IllegalArgumentException("Invalid timeout: " + timeout); getImpl().setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6cac04c48e1afad0cfbb014fb4ace224bd84bfaf/DatagramSocket.java/clean/core/src/classpath/java/java/net/DatagramSocket.java |
if (tc < 0 || tc > 255) throw new IllegalArgumentException(); | if (tc < 0 || tc > 255) throw new IllegalArgumentException(); | public void setTrafficClass(int tc) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); if (tc < 0 || tc > 255) throw new IllegalArgumentException(); getImpl().setOption(SocketOptions.IP_TOS, new Integer(tc)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6cac04c48e1afad0cfbb014fb4ace224bd84bfaf/DatagramSocket.java/clean/core/src/classpath/java/java/net/DatagramSocket.java |
} | } | public void setTrafficClass(int tc) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); if (tc < 0 || tc > 255) throw new IllegalArgumentException(); getImpl().setOption(SocketOptions.IP_TOS, new Integer(tc)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6cac04c48e1afad0cfbb014fb4ace224bd84bfaf/DatagramSocket.java/clean/core/src/classpath/java/java/net/DatagramSocket.java |
public synchronized void setAddress(InetAddress iaddr) { if (iaddr == null) | public synchronized void setAddress(InetAddress address) { if (address == null) | public synchronized void setAddress(InetAddress iaddr) { if (iaddr == null) throw new NullPointerException("Null address"); address = iaddr; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/DatagramPacket.java/buggy/core/src/classpath/java/java/net/DatagramPacket.java |
address = iaddr; | this.address = address; | public synchronized void setAddress(InetAddress iaddr) { if (iaddr == null) throw new NullPointerException("Null address"); address = iaddr; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/DatagramPacket.java/buggy/core/src/classpath/java/java/net/DatagramPacket.java |
public synchronized void setPort(int iport) { if (iport < 0 || iport > 65535) throw new IllegalArgumentException("Invalid port: " + iport); | public synchronized void setPort(int port) { if (port < 0 || port > 65535) throw new IllegalArgumentException("Invalid port: " + port); | public synchronized void setPort(int iport) { if (iport < 0 || iport > 65535) throw new IllegalArgumentException("Invalid port: " + iport); port = iport; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/DatagramPacket.java/buggy/core/src/classpath/java/java/net/DatagramPacket.java |
port = iport; | this.port = port; | public synchronized void setPort(int iport) { if (iport < 0 || iport > 65535) throw new IllegalArgumentException("Invalid port: " + iport); port = iport; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/DatagramPacket.java/buggy/core/src/classpath/java/java/net/DatagramPacket.java |
p.add( BigInteger.valueOf( 1 ).shiftLeft( pmin ).subtract( p ) ); | p = p.add( BigInteger.valueOf( 1 ).shiftLeft( pmin ).subtract( p ) ); | public static BigInteger generateRandomPrime( int pmin, int pmax, BigInteger f ) { BigInteger d; //Step 1 - generate prime BigInteger p = new BigInteger( (pmax + pmin)/2, new Random() ); if( p.compareTo( BigInteger.valueOf( 1 ).shiftLeft( pmin ) ) <= 0 ) { p.add( BigInteger.valueOf( 1 ).shiftLeft( pmin ).subtract( p ) ); } //Step 2 - test for even if( p.mod( BigInteger.valueOf(2) ).compareTo( BigInteger.valueOf( 0 )) == 0) p.add( BigInteger.valueOf( 1 ) ); for(;;) { //Step 3 if( p.compareTo( BigInteger.valueOf( 1 ).shiftLeft( pmax)) > 0) { //Step 3.1 p = p.subtract( BigInteger.valueOf( 1 ).shiftLeft( pmax) ); p = p.add( BigInteger.valueOf( 1 ).shiftLeft( pmin) ); p = p.subtract( BigInteger.valueOf( 1 ) ); //Step 3.2 // put step 2 code here so looping code is cleaner //Step 2 - test for even if( p.mod( BigInteger.valueOf(2) ).compareTo( BigInteger.valueOf( 0 )) == 0) p.add( BigInteger.valueOf( 1 ) ); continue; } //Step 4 - compute GCD d = p.subtract( BigInteger.valueOf(1) ); d = d.gcd( f ); //Step 5 - test d if( d.compareTo( BigInteger.valueOf( 1 ) ) == 0) { //Step 5.1 - test primality if( p.isProbablePrime( 1 ) == true ) { //Step 5.2; return p; } } //Step 6 p = p.add( BigInteger.valueOf( 2 ) ); //Step 7 } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Prime.java/clean/core/src/classpath/gnu/gnu/java/security/util/Prime.java |
p.add( BigInteger.valueOf( 1 ) ); | p = p.add( BigInteger.valueOf( 1 ) ); | public static BigInteger generateRandomPrime( int pmin, int pmax, BigInteger f ) { BigInteger d; //Step 1 - generate prime BigInteger p = new BigInteger( (pmax + pmin)/2, new Random() ); if( p.compareTo( BigInteger.valueOf( 1 ).shiftLeft( pmin ) ) <= 0 ) { p.add( BigInteger.valueOf( 1 ).shiftLeft( pmin ).subtract( p ) ); } //Step 2 - test for even if( p.mod( BigInteger.valueOf(2) ).compareTo( BigInteger.valueOf( 0 )) == 0) p.add( BigInteger.valueOf( 1 ) ); for(;;) { //Step 3 if( p.compareTo( BigInteger.valueOf( 1 ).shiftLeft( pmax)) > 0) { //Step 3.1 p = p.subtract( BigInteger.valueOf( 1 ).shiftLeft( pmax) ); p = p.add( BigInteger.valueOf( 1 ).shiftLeft( pmin) ); p = p.subtract( BigInteger.valueOf( 1 ) ); //Step 3.2 // put step 2 code here so looping code is cleaner //Step 2 - test for even if( p.mod( BigInteger.valueOf(2) ).compareTo( BigInteger.valueOf( 0 )) == 0) p.add( BigInteger.valueOf( 1 ) ); continue; } //Step 4 - compute GCD d = p.subtract( BigInteger.valueOf(1) ); d = d.gcd( f ); //Step 5 - test d if( d.compareTo( BigInteger.valueOf( 1 ) ) == 0) { //Step 5.1 - test primality if( p.isProbablePrime( 1 ) == true ) { //Step 5.2; return p; } } //Step 6 p = p.add( BigInteger.valueOf( 2 ) ); //Step 7 } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Prime.java/clean/core/src/classpath/gnu/gnu/java/security/util/Prime.java |
p.add( BigInteger.valueOf( 1 ) ); | p = p.add( BigInteger.valueOf( 1 ) ); | public static BigInteger generateRandomPrime( int pmin, int pmax, BigInteger f ) { BigInteger d; //Step 1 - generate prime BigInteger p = new BigInteger( (pmax + pmin)/2, new Random() ); if( p.compareTo( BigInteger.valueOf( 1 ).shiftLeft( pmin ) ) <= 0 ) { p.add( BigInteger.valueOf( 1 ).shiftLeft( pmin ).subtract( p ) ); } //Step 2 - test for even if( p.mod( BigInteger.valueOf(2) ).compareTo( BigInteger.valueOf( 0 )) == 0) p.add( BigInteger.valueOf( 1 ) ); for(;;) { //Step 3 if( p.compareTo( BigInteger.valueOf( 1 ).shiftLeft( pmax)) > 0) { //Step 3.1 p = p.subtract( BigInteger.valueOf( 1 ).shiftLeft( pmax) ); p = p.add( BigInteger.valueOf( 1 ).shiftLeft( pmin) ); p = p.subtract( BigInteger.valueOf( 1 ) ); //Step 3.2 // put step 2 code here so looping code is cleaner //Step 2 - test for even if( p.mod( BigInteger.valueOf(2) ).compareTo( BigInteger.valueOf( 0 )) == 0) p.add( BigInteger.valueOf( 1 ) ); continue; } //Step 4 - compute GCD d = p.subtract( BigInteger.valueOf(1) ); d = d.gcd( f ); //Step 5 - test d if( d.compareTo( BigInteger.valueOf( 1 ) ) == 0) { //Step 5.1 - test primality if( p.isProbablePrime( 1 ) == true ) { //Step 5.2; return p; } } //Step 6 p = p.add( BigInteger.valueOf( 2 ) ); //Step 7 } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Prime.java/clean/core/src/classpath/gnu/gnu/java/security/util/Prime.java |
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap)defaults.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMap(); action = new ListAction(); Object keys[] = focusInputMap.allKeys(); // Register key bindings in the UI InputMap-ActionMap pair // Note that we register key bindings with both the old and new modifier // masks: InputEvent.SHIFT_MASK and InputEvent.SHIFT_DOWN_MASK and so on. for (int i = 0; i < keys.length; i++) { parentInputMap.put(KeyStroke.getKeyStroke (((KeyStroke)keys[i]).getKeyCode(), convertModifiers (((KeyStroke)keys[i]).getModifiers())), (String)focusInputMap.get((KeyStroke)keys[i])); parentInputMap.put(KeyStroke.getKeyStroke (((KeyStroke)keys[i]).getKeyCode(), ((KeyStroke)keys[i]).getModifiers()), (String)focusInputMap.get((KeyStroke)keys[i])); parentActionMap.put ((String)focusInputMap.get((KeyStroke)keys[i]), new ActionListenerProxy (action, (String)focusInputMap.get((KeyStroke)keys[i]))); } parentInputMap.setParent(list.getInputMap().getParent()); parentActionMap.setParent(list.getActionMap().getParent()); list.getInputMap().setParent(parentInputMap); list.getActionMap().setParent(parentActionMap); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/804045622bd8dd509311bab751f88cfa2f79345a/BasicListUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java |
||
parentInputMap.put(KeyStroke.getKeyStroke (((KeyStroke)keys[i]).getKeyCode(), convertModifiers (((KeyStroke)keys[i]).getModifiers())), (String)focusInputMap.get((KeyStroke)keys[i])); | KeyStroke stroke = (KeyStroke)keys[i]; String actionString = (String) focusInputMap.get(stroke); parentInputMap.put(KeyStroke.getKeyStroke(stroke.getKeyCode(), stroke.getModifiers()), actionString); | protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap)defaults.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMap(); action = new ListAction(); Object keys[] = focusInputMap.allKeys(); // Register key bindings in the UI InputMap-ActionMap pair // Note that we register key bindings with both the old and new modifier // masks: InputEvent.SHIFT_MASK and InputEvent.SHIFT_DOWN_MASK and so on. for (int i = 0; i < keys.length; i++) { parentInputMap.put(KeyStroke.getKeyStroke (((KeyStroke)keys[i]).getKeyCode(), convertModifiers (((KeyStroke)keys[i]).getModifiers())), (String)focusInputMap.get((KeyStroke)keys[i])); parentInputMap.put(KeyStroke.getKeyStroke (((KeyStroke)keys[i]).getKeyCode(), ((KeyStroke)keys[i]).getModifiers()), (String)focusInputMap.get((KeyStroke)keys[i])); parentActionMap.put ((String)focusInputMap.get((KeyStroke)keys[i]), new ActionListenerProxy (action, (String)focusInputMap.get((KeyStroke)keys[i]))); } parentInputMap.setParent(list.getInputMap().getParent()); parentActionMap.setParent(list.getActionMap().getParent()); list.getInputMap().setParent(parentInputMap); list.getActionMap().setParent(parentActionMap); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/804045622bd8dd509311bab751f88cfa2f79345a/BasicListUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java |
parentInputMap.put(KeyStroke.getKeyStroke (((KeyStroke)keys[i]).getKeyCode(), ((KeyStroke)keys[i]).getModifiers()), (String)focusInputMap.get((KeyStroke)keys[i])); parentActionMap.put ((String)focusInputMap.get((KeyStroke)keys[i]), new ActionListenerProxy (action, (String)focusInputMap.get((KeyStroke)keys[i]))); | parentActionMap.put (actionString, new ActionListenerProxy(action, actionString)); | protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap)defaults.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMap(); action = new ListAction(); Object keys[] = focusInputMap.allKeys(); // Register key bindings in the UI InputMap-ActionMap pair // Note that we register key bindings with both the old and new modifier // masks: InputEvent.SHIFT_MASK and InputEvent.SHIFT_DOWN_MASK and so on. for (int i = 0; i < keys.length; i++) { parentInputMap.put(KeyStroke.getKeyStroke (((KeyStroke)keys[i]).getKeyCode(), convertModifiers (((KeyStroke)keys[i]).getModifiers())), (String)focusInputMap.get((KeyStroke)keys[i])); parentInputMap.put(KeyStroke.getKeyStroke (((KeyStroke)keys[i]).getKeyCode(), ((KeyStroke)keys[i]).getModifiers()), (String)focusInputMap.get((KeyStroke)keys[i])); parentActionMap.put ((String)focusInputMap.get((KeyStroke)keys[i]), new ActionListenerProxy (action, (String)focusInputMap.get((KeyStroke)keys[i]))); } parentInputMap.setParent(list.getInputMap().getParent()); parentActionMap.setParent(list.getActionMap().getParent()); list.getInputMap().setParent(parentInputMap); list.getActionMap().setParent(parentActionMap); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/804045622bd8dd509311bab751f88cfa2f79345a/BasicListUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java |
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap)defaults.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMap(); action = new ListAction(); Object keys[] = focusInputMap.allKeys(); // Register key bindings in the UI InputMap-ActionMap pair // Note that we register key bindings with both the old and new modifier // masks: InputEvent.SHIFT_MASK and InputEvent.SHIFT_DOWN_MASK and so on. for (int i = 0; i < keys.length; i++) { parentInputMap.put(KeyStroke.getKeyStroke (((KeyStroke)keys[i]).getKeyCode(), convertModifiers (((KeyStroke)keys[i]).getModifiers())), (String)focusInputMap.get((KeyStroke)keys[i])); parentInputMap.put(KeyStroke.getKeyStroke (((KeyStroke)keys[i]).getKeyCode(), ((KeyStroke)keys[i]).getModifiers()), (String)focusInputMap.get((KeyStroke)keys[i])); parentActionMap.put ((String)focusInputMap.get((KeyStroke)keys[i]), new ActionListenerProxy (action, (String)focusInputMap.get((KeyStroke)keys[i]))); } parentInputMap.setParent(list.getInputMap().getParent()); parentActionMap.setParent(list.getActionMap().getParent()); list.getInputMap().setParent(parentInputMap); list.getActionMap().setParent(parentActionMap); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/804045622bd8dd509311bab751f88cfa2f79345a/BasicListUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java |
||
return getUI().locationToIndex(this, r.getLocation()); | return getUI().locationToIndex(this, r.getLocation()); | public int getLastVisibleIndex() { ComponentOrientation or = getComponentOrientation(); Rectangle r = getVisibleRect(); r.translate(0, (int) r.getHeight() - 1); if (or == ComponentOrientation.LEFT_TO_RIGHT) r.translate((int) r.getWidth() - 1, 0); if (getUI().locationToIndex(this, r.getLocation()) == -1 && indexToLocation(getModel().getSize() - 1).y < r.y) return getModel().getSize() - 1; return getUI().locationToIndex(this, r.getLocation()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JList.java/buggy/core/src/classpath/javax/javax/swing/JList.java |
if (name != null && value != null) | if (name != null && value != null) | protected void setXMLAttributes (AttributeList attrs) { // set object attributes from an AttributeList if (attrs != null) { // whip thru the list, setting each value int size = attrs.getLength(); for (int i = 0; i < size; i++) { String name = attrs.getName(i); String value = attrs.getValue(i); if (name != null && value != null) ((XMLAttribute) this.attribHash.get(name)).setAttribValue(value); } } } | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/161a6723e174f89f58248382a4c2cc6e342e6bb2/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
public static Border createBevelBorder (int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner) | public static Border createBevelBorder(int type) | public static Border createBevelBorder (int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner) { return new BevelBorder (type, highlightOuter, highlightInner, shadowOuter, shadowInner); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
return new BevelBorder (type, highlightOuter, highlightInner, shadowOuter, shadowInner); | return new BevelBorder(type); | public static Border createBevelBorder (int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner) { return new BevelBorder (type, highlightOuter, highlightInner, shadowOuter, shadowInner); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
public static CompoundBorder createCompoundBorder () | public static CompoundBorder createCompoundBorder() | public static CompoundBorder createCompoundBorder () { return new CompoundBorder (); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
return new CompoundBorder (); | return new CompoundBorder(); | public static CompoundBorder createCompoundBorder () { return new CompoundBorder (); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
public static Border createEmptyBorder (int top, int left, int bottom, int right) | public static Border createEmptyBorder() | public static Border createEmptyBorder (int top, int left, int bottom, int right) { return new EmptyBorder (top, left, bottom, right); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
return new EmptyBorder (top, left, bottom, right); | return new EmptyBorder(0, 0, 0, 0); | public static Border createEmptyBorder (int top, int left, int bottom, int right) { return new EmptyBorder (top, left, bottom, right); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
public static Border createLineBorder (Color color, int thickness) | public static Border createLineBorder(Color color) | public static Border createLineBorder (Color color, int thickness) { return new LineBorder (color, thickness); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
return new LineBorder (color, thickness); | return null; | public static Border createLineBorder (Color color, int thickness) { return new LineBorder (color, thickness); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
public static Border createLoweredBevelBorder () | public static Border createLoweredBevelBorder() | public static Border createLoweredBevelBorder () { return new BevelBorder (BevelBorder.LOWERED); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
return new BevelBorder (BevelBorder.LOWERED); | return new BevelBorder(BevelBorder.LOWERED); | public static Border createLoweredBevelBorder () { return new BevelBorder (BevelBorder.LOWERED); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
public static MatteBorder createMatteBorder (int top, int left, int bottom, | public static MatteBorder createMatteBorder(int top, int left, int bottom, | public static MatteBorder createMatteBorder (int top, int left, int bottom, int right, Color color) { return new MatteBorder (top, left, bottom, right, color); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
return new MatteBorder (top, left, bottom, right, color); | return new MatteBorder(top, left, bottom, right, color); | public static MatteBorder createMatteBorder (int top, int left, int bottom, int right, Color color) { return new MatteBorder (top, left, bottom, right, color); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
public LineBorder(Color color, int thickness) | public LineBorder(Color color) | public LineBorder(Color color, int thickness) { this (color, thickness, /* roundedCorners */ false); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/LineBorder.java/buggy/core/src/classpath/javax/javax/swing/border/LineBorder.java |
this (color, thickness, /* roundedCorners */ false); | this(color, /* thickness */ 1, /* roundedCorners */ false); | public LineBorder(Color color, int thickness) { this (color, thickness, /* roundedCorners */ false); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/LineBorder.java/buggy/core/src/classpath/javax/javax/swing/border/LineBorder.java |
public Image createImage (int width, int height) | public Image createImage(ImageProducer producer) | public Image createImage (int width, int height) { Image returnValue = null; if (!GraphicsEnvironment.isHeadless ()) { if (isLightweight () && parent != null) returnValue = parent.createImage (width, height); else if (peer != null) returnValue = peer.createImage (width, height); } return returnValue; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/566e4ab93ebc97794094572536829e581d565b11/Component.java/buggy/core/src/classpath/java/java/awt/Component.java |
Image returnValue = null; if (!GraphicsEnvironment.isHeadless ()) { if (isLightweight () && parent != null) returnValue = parent.createImage (width, height); else if (peer != null) returnValue = peer.createImage (width, height); } return returnValue; | if (peer != null) return peer.createImage(producer); else return getToolkit().createImage(producer); | public Image createImage (int width, int height) { Image returnValue = null; if (!GraphicsEnvironment.isHeadless ()) { if (isLightweight () && parent != null) returnValue = parent.createImage (width, height); else if (peer != null) returnValue = peer.createImage (width, height); } return returnValue; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/566e4ab93ebc97794094572536829e581d565b11/Component.java/buggy/core/src/classpath/java/java/awt/Component.java |
Button(String label) | Button() | Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/698ac538b7482b0e4aac918befb43b8376e364e3/Button.java/buggy/core/src/classpath/java/java/awt/Button.java |
this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException (); | this(""); | Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/698ac538b7482b0e4aac918befb43b8376e364e3/Button.java/buggy/core/src/classpath/java/java/awt/Button.java |
Scrollbar(int orientation) throws IllegalArgumentException | Scrollbar() | Scrollbar(int orientation) throws IllegalArgumentException{ this(orientation, 0, 10, 0, 100);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/cdb624bf4a3742cc4374523f5c6856a06dcd8f92/Scrollbar.java/buggy/core/src/classpath/java/java/awt/Scrollbar.java |
this(orientation, 0, 10, 0, 100); | this(VERTICAL); | Scrollbar(int orientation) throws IllegalArgumentException{ this(orientation, 0, 10, 0, 100);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/cdb624bf4a3742cc4374523f5c6856a06dcd8f92/Scrollbar.java/buggy/core/src/classpath/java/java/awt/Scrollbar.java |
public JCheckBox(String text) { super(text); | public JCheckBox() { super(); | public JCheckBox(String text) { super(text); init(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JCheckBox.java/buggy/core/src/classpath/javax/javax/swing/JCheckBox.java |
{ return peer.getName (this); } | { return peer.getName(this); } | public String getName (){ return peer.getName (this);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/Font.java/buggy/core/src/classpath/java/java/awt/Font.java |
public JNodeBufferedImageGraphics(BufferedImage image) { super(new BufferedImageSurface(image), image.getWidth(), image.getHeight()); this.image = image; | public JNodeBufferedImageGraphics(JNodeBufferedImageGraphics src) { super(src); this.image = src.image; | public JNodeBufferedImageGraphics(BufferedImage image) { super(new BufferedImageSurface(image), image.getWidth(), image.getHeight()); this.image = image; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/JNodeBufferedImageGraphics.java/buggy/gui/src/awt/org/jnode/awt/image/JNodeBufferedImageGraphics.java |
public JTextPane() { } | public JTextPane() { setEditorKit(createDefaultEditorKit()); setDocument(null); } | public JTextPane() { // TODO } // JTextPane() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
public Style addStyle(String nm, Style parent) { return null; } | public Style addStyle(String nm, Style parent) { return getStyledDocument().addStyle(nm, parent); } | public Style addStyle(String nm, Style parent) { return null; // TODO } // addStyle() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
protected EditorKit createDefaultEditorKit() { return super.createDefaultEditorKit(); } | protected EditorKit createDefaultEditorKit() { return new StyledEditorKit(); } | protected EditorKit createDefaultEditorKit() { return super.createDefaultEditorKit(); // TODO } // createDefaultEditorKit() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
public AttributeSet getCharacterAttributes() { return null; } | public AttributeSet getCharacterAttributes() { StyledDocument doc = getStyledDocument(); Element el = doc.getCharacterElement(getCaretPosition()); return el.getAttributes(); } | public AttributeSet getCharacterAttributes() { return null; // TODO } // getCharacterAttributes() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
public MutableAttributeSet getInputAttributes() { return null; } | public MutableAttributeSet getInputAttributes() { return getStyledEditorKit().getInputAttributes(); } | public MutableAttributeSet getInputAttributes() { return null; // TODO } // getInputAttributes() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
public Style getLogicalStyle() { return null; } | public Style getLogicalStyle() { return getStyledDocument().getLogicalStyle(getCaretPosition()); } | public Style getLogicalStyle() { return null; // TODO } // getLogicalStyle() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
public AttributeSet getParagraphAttributes() { return null; } | public AttributeSet getParagraphAttributes() { StyledDocument doc = getStyledDocument(); Element el = doc.getParagraphElement(getCaretPosition()); return el.getAttributes(); } | public AttributeSet getParagraphAttributes() { return null; // TODO } // getParagraphAttributes() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
public Style getStyle(String nm) { return null; } | public Style getStyle(String nm) { return getStyledDocument().getStyle(nm); } | public Style getStyle(String nm) { return null; // TODO } // getStyle() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
public StyledDocument getStyledDocument() { return null; } | public StyledDocument getStyledDocument() { return (StyledDocument) super.getDocument(); } | public StyledDocument getStyledDocument() { return null; // TODO } // getStyledDocument() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
protected final StyledEditorKit getStyledEditorKit() { return null; } | protected final StyledEditorKit getStyledEditorKit() { return (StyledEditorKit) getEditorKit(); } | protected final StyledEditorKit getStyledEditorKit() { return null; // TODO } // getStyledEditorKit() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
public String getUIClassID() { return uiClassID; } | public String getUIClassID() { return "TextPaneUI"; } | public String getUIClassID() { return uiClassID; } // getUIClassID() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
public void insertComponent(Component component) { } | public void insertComponent(Component component) { } | public void insertComponent(Component component) { // TODO } // insertComponent() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
public void insertIcon(Icon icon) { } | public void insertIcon(Icon icon) { } | public void insertIcon(Icon icon) { // TODO } // insertIcon() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
protected String paramString() { | protected String paramString() { | protected String paramString() { return super.paramString(); // TODO } // paramString() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
} | } | protected String paramString() { return super.paramString(); // TODO } // paramString() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
public void removeStyle(String nm) { } | public void removeStyle(String nm) { getStyledDocument().removeStyle(nm); } | public void removeStyle(String nm) { // TODO } // removeStyle() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
public void replaceSelection(String content) { super.replaceSelection(content); } | public void replaceSelection(String content) { Caret caret = getCaret(); StyledDocument doc = getStyledDocument(); int dot = caret.getDot(); int mark = caret.getMark(); if (content == null) { caret.setDot(dot); return; } try { int start = getSelectionStart(); int end = getSelectionEnd(); int contentLength = content.length(); if (dot != mark) doc.remove(start, end - start); doc.insertString(start, content, null); doc.setCharacterAttributes(start, contentLength, getInputAttributes(), true); setCaretPosition(start + contentLength); } catch (BadLocationException e) { throw new AssertionError ("No BadLocationException should be thrown here"); } } | public void replaceSelection(String content) { super.replaceSelection(content); // TODO } // replaceSelection() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
boolean replace) { } | boolean replace) { int dot = getCaret().getDot(); int start = getSelectionStart(); int end = getSelectionEnd(); if (start == dot && end == dot) { MutableAttributeSet inputAttributes = getStyledEditorKit().getInputAttributes(); inputAttributes.addAttributes(attribute); } else getStyledDocument().setCharacterAttributes(start, end - start, attribute, replace); } | public void setCharacterAttributes(AttributeSet attribute, boolean replace) { // TODO } // setCharacterAttributes() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
public void setDocument(Document document) { super.setDocument(document); } | public void setDocument(Document document) { if (document != null && !(document instanceof StyledDocument)) throw new IllegalArgumentException ("JTextPane can only handle StyledDocuments"); setStyledDocument((StyledDocument) document); } | public void setDocument(Document document) { super.setDocument(document); // TODO } // setDocument() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
public final void setEditorKit(EditorKit editor) { super.setEditorKit(editor); } | public final void setEditorKit(EditorKit editor) { if (!(editor instanceof StyledEditorKit)) throw new IllegalArgumentException ("JTextPanes can only handle StyledEditorKits"); super.setEditorKit(editor); } | public final void setEditorKit(EditorKit editor) { super.setEditorKit(editor); // TODO } // setEditorKit() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
public void setLogicalStyle(Style style) { } | public void setLogicalStyle(Style style) { getStyledDocument().setLogicalStyle(getCaretPosition(), style); } | public void setLogicalStyle(Style style) { // TODO } // setLogicalStyle() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
boolean replace) { | boolean replace) { | public void setParagraphAttributes(AttributeSet attribute, boolean replace) { // TODO } // setParagraphAttributes() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
} | } | public void setParagraphAttributes(AttributeSet attribute, boolean replace) { // TODO } // setParagraphAttributes() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
public void setStyledDocument(StyledDocument document) { } | public void setStyledDocument(StyledDocument document) { super.setDocument(document); } | public void setStyledDocument(StyledDocument document) { // TODO } // setStyledDocument() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
void setCharacterAttributes(int offset, int length, AttributeSet set, boolean replace); | void setCharacterAttributes(int offset, int length, AttributeSet set, boolean replace); | void setCharacterAttributes(int offset, int length, AttributeSet set, boolean replace); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/StyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/StyledDocument.java |
return BasicTextUI.this; | ViewFactory factory = null; EditorKit editorKit = BasicTextUI.this.getEditorKit(getComponent()); factory = editorKit.getViewFactory(); if (factory == null) factory = BasicTextUI.this; return factory; | public ViewFactory getViewFactory() { // FIXME: Handle EditorKit somehow. return BasicTextUI.this; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
if (view == null) return null; return ((PlainView) view).modelToView(position, a, bias).getBounds(); | return ((View) view).modelToView(position, a, bias); | public Shape modelToView(int position, Shape a, Position.Bias bias) throws BadLocationException { if (view == null) return null; return ((PlainView) view).modelToView(position, a, bias).getBounds(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
v.setParent(null); | v.setParent(this); | public void setView(View v) { if (view != null) view.setParent(null); if (v != null) v.setParent(null); view = v; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
return 0; | return 0; | public int getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet) throws BadLocationException { return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
view.setParent(rootView); | protected final void setView(View view) { rootView.setView(view); view.setParent(rootView); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
|
protected void uninstallKeyboardActions() { // Do nothing here. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
||
log.info("screen updated -> " + sr + ", " + sc + ", " + er + ", " + ec); | public void onScreenChanged(int which, int sr, int sc, int er, int ec) {// workR.setBounds(sr, sc, ec, er);// if (screen.cursorShown)// this.drawCursor(); if (which == 3 || which == 4) {// log.info("cursor updated -> " + sr + ", " + sc + "-> active " +// screen.cursorActive + " -> shown " + screen.cursorShown); drawCursor(sr,sc); return; } if (hotSpots) screen.checkHotSpots(); log.info("screen updated -> " + sr + ", " + sc + ", " + er + ", " + ec); int rows = er - sr; int cols = 0; int lc = 0;// int lenScreen = screen.getScreenLength(); int lr = screen.getPos(sr,sc); int numCols = screen.getCols(); updateRect = new Data (sr,sc,er,ec); int clipX; int clipY; int clipWidth; int clipHeight; Rectangle clipper = new Rectangle(); int pos = 0;// while (rows-- >= 0) {// cols = ec - sc;// lc = lr;// while (cols-- >= 0) {// if (lc >= 0 && lc < lenScreen) {// drawChar(gg2d,pos++,screen.getRow(lc),screen.getCol(lc));// // drawChar(gg2d,pos++,sr-rows,lc);// lc++;// }// }// lr += numCols;// } lc = ec; clipper.x = sc * columnWidth; clipper.y = sr * rowHeight; clipper.width = ((ec - sc) + 1) * columnWidth; clipper.height = ((er - sr ) + 1) * rowHeight; gg2d.setClip(clipper.getBounds()); gg2d.setColor(colorBg); // System.out.println("PaintComponent " + r); gg2d.fillRect(clipper.x, clipper.y, clipper.width, clipper.height); while (sr <= er) { cols = ec - sc; lc = sc; while (cols-- >= 0) { if (sc + cols <= ec) {// drawChar(gg2d,pos++,screen.getRow(lc),screen.getCol(lc)); drawChar(gg2d,pos++,sr,lc);// if (clipper == null) {// clipper = new Rectangle(workR);// }// else {// clipper.union(workR);// } lc++; } } sr++; }// System.out.println(" clipping from screen change " + clipper// + " clipping region of paint " + gg2d.getClipBounds()); updateImage(clipper);// if (screen.cursorShown)// this.drawCursor();// screen.dumpScreen(); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e6f566dd6d1e23e7327cf1676228eb4318efd0d8/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java |
|
drawOIA(); | public void resize(int width, int height) { if (bi.getWidth() != width || bi.getHeight() != height) {// synchronized (lock) { bi = null; bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this.width = width; this.height = height; resized = true; getSettings(); // tell waiting threads to wake up// lock.notifyAll();// } } drawOIA(); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e6f566dd6d1e23e7327cf1676228eb4318efd0d8/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java |
|
public static TN5250jLogger getLogger (String clazzName) { TN5250jLogger logger = null; if (_loggers.containsKey(clazzName)) { logger = ( TN5250jLogger ) _loggers.get(clazzName); } else { if (customLogger != null) { try { Class classObject = Class.forName(customLogger); Object object = classObject.newInstance(); if (object instanceof TN5250jLogFactory) { logger = (TN5250jLogger) object; } } catch (Exception ex) { ; } } else { if (logger == null) { if (log4j) logger = new Log4jLogger(); else logger = new ConsoleLogger(); } logger.initialize(clazzName); _loggers.put(clazzName, logger); } } return logger; | public static TN5250jLogger getLogger (Class clazz) { return getLogger(clazz.getName()); | public static TN5250jLogger getLogger (String clazzName) { TN5250jLogger logger = null; if (_loggers.containsKey(clazzName)) { logger = ( TN5250jLogger ) _loggers.get(clazzName); } else { if (customLogger != null) { try { Class classObject = Class.forName(customLogger); Object object = classObject.newInstance(); if (object instanceof TN5250jLogFactory) { logger = (TN5250jLogger) object; } } catch (Exception ex) { ; } } else { if (logger == null) { if (log4j) logger = new Log4jLogger(); else // take the default logger. logger = new ConsoleLogger(); } logger.initialize(clazzName); _loggers.put(clazzName, logger); } } return logger; } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/68d8dfc1742dcfed0fb2d02fb4111f791863bc9c/TN5250jLogFactory.java/buggy/tn5250j/src/org/tn5250j/tools/logging/TN5250jLogFactory.java |
public String getFontName () { return peer.getFontName (this); } | public String getFontName() { return peer.getFontName(this); } | public String getFontName (){ return peer.getFontName (this);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/Font.java/buggy/core/src/classpath/java/java/awt/Font.java |
public float getSize2D () { | public float getSize2D() { | public float getSize2D (){ return pointSize;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/Font.java/buggy/core/src/classpath/java/java/awt/Font.java |
} | } | public float getSize2D (){ return pointSize;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/Font.java/buggy/core/src/classpath/java/java/awt/Font.java |
System.out.println("Copyright 2005 Free Software Foundation, Inc."); | System.out.println("Copyright 2006 Free Software Foundation, Inc."); | public static void version() { System.out.println("rmiregistry (" + System.getProperty("java.vm.name") + ") " + System.getProperty("java.vm.version")); System.out.println("Copyright 2005 Free Software Foundation, Inc."); System.out.println("This is free software; see the source for copying conditions. There is NO"); System.out.println("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."); System.exit(0);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/RegistryImpl.java/buggy/core/src/classpath/gnu/gnu/java/rmi/registry/RegistryImpl.java |
protected UnicastRemoteObject(RemoteRef ref) | protected UnicastRemoteObject() | protected UnicastRemoteObject(RemoteRef ref) throws RemoteException { super((UnicastServerRef) ref); exportObject(this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastRemoteObject.java/buggy/core/src/classpath/java/java/rmi/server/UnicastRemoteObject.java |
super((UnicastServerRef) ref); exportObject(this); | this(0); | protected UnicastRemoteObject(RemoteRef ref) throws RemoteException { super((UnicastServerRef) ref); exportObject(this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastRemoteObject.java/buggy/core/src/classpath/java/java/rmi/server/UnicastRemoteObject.java |
HashMap attributes = new HashMap(); attributes.put(DSSKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(DSSKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } adaptee.setup(attributes); | this.initialize(keysize, false, random); | public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(DSSKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(DSSKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } adaptee.setup(attributes); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/DSSKeyPairGeneratorSpi.java/buggy/core/src/classpath/gnu/gnu/java/security/jce/sig/DSSKeyPairGeneratorSpi.java |
public Argument(String name, String description) { this(name, description, SINGLE); | public Argument(String name, String description, boolean multi) { super(name, description); this.multi = multi; | public Argument(String name, String description) { this(name, description, SINGLE); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/Argument.java/buggy/shell/src/shell/org/jnode/shell/help/Argument.java |
public void connect(javax.rmi.ORB orb) | public void connect(ORB orb) | public void connect(javax.rmi.ORB orb) throws RemoteException { if(delegate != null) delegate.connect(this, orb); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Stub.java/clean/core/src/classpath/javax/javax/rmi/CORBA/Stub.java |
if(delegate != null) | if (m_orb != null && orb != null) { if (m_orb.equals(orb)) throw new RemoteException("Stub " + this + " is connected to another ORB, " + orb); else return; } m_orb = orb; | public void connect(javax.rmi.ORB orb) throws RemoteException { if(delegate != null) delegate.connect(this, orb); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Stub.java/clean/core/src/classpath/javax/javax/rmi/CORBA/Stub.java |
public boolean equals(Object obj) | public boolean equals(java.lang.Object obj) | public boolean equals(Object obj) { if(delegate != null) return delegate.equals(this, obj); else return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Stub.java/clean/core/src/classpath/javax/javax/rmi/CORBA/Stub.java |
if(delegate != null) | public boolean equals(Object obj) { if(delegate != null) return delegate.equals(this, obj); else return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Stub.java/clean/core/src/classpath/javax/javax/rmi/CORBA/Stub.java |
|
else return false; | public boolean equals(Object obj) { if(delegate != null) return delegate.equals(this, obj); else return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Stub.java/clean/core/src/classpath/javax/javax/rmi/CORBA/Stub.java |
|
if(delegate != null) return delegate.hashCode(this); else return 0; | if (m_hash == Integer.MIN_VALUE) m_hash = delegate.hashCode(this); return m_hash; | public int hashCode() { if(delegate != null) return delegate.hashCode(this); else return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Stub.java/clean/core/src/classpath/javax/javax/rmi/CORBA/Stub.java |
private void readObject(ObjectInputStream stream) | private void readObject(ObjectInputStream input) | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { if(delegate != null) delegate.readObject(this, stream); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Stub.java/clean/core/src/classpath/javax/javax/rmi/CORBA/Stub.java |
if(delegate != null) delegate.readObject(this, stream); | if (delegate instanceof StubDelegateImpl) ((StubDelegateImpl) delegate).readObject(this, input, m_orb); else delegate.readObject(this, input); | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { if(delegate != null) delegate.readObject(this, stream); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Stub.java/clean/core/src/classpath/javax/javax/rmi/CORBA/Stub.java |
String s = null; if(delegate != null) s = delegate.toString(this); if(s == null) s = super.toString(); return s; | if (m_ior == null) m_ior = delegate.toString(this); return m_ior; | public String toString() { String s = null; if(delegate != null) s = delegate.toString(this); if(s == null) s = super.toString(); return s; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Stub.java/clean/core/src/classpath/javax/javax/rmi/CORBA/Stub.java |
private void writeObject(ObjectOutputStream stream) | private void writeObject(ObjectOutputStream output) | private void writeObject(ObjectOutputStream stream) throws IOException { if(delegate != null) delegate.writeObject(this, stream); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Stub.java/clean/core/src/classpath/javax/javax/rmi/CORBA/Stub.java |
if(delegate != null) delegate.writeObject(this, stream); | if (delegate instanceof StubDelegateImpl) ((StubDelegateImpl) delegate).writeObject(this, output, m_orb); else delegate.writeObject(this, output); | private void writeObject(ObjectOutputStream stream) throws IOException { if(delegate != null) delegate.writeObject(this, stream); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Stub.java/clean/core/src/classpath/javax/javax/rmi/CORBA/Stub.java |
void connect(Stub self, javax.rmi.ORB orb) | void connect(Stub self, ORB orb) | void connect(Stub self, javax.rmi.ORB orb) throws RemoteException; | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/StubDelegate.java/buggy/core/src/classpath/javax/javax/rmi/CORBA/StubDelegate.java |
System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); | public void onScreenChanged(int inUpdate, int startRow, int startCol, int endRow, int endCol) { iOhioPosition inStart = new iOhioPosition(startRow,startCol); iOhioPosition inEnd = new iOhioPosition(endRow,endCol);// System.out.println("screen updated -> " + startRow + ", "// + startCol + ", " + endRow + ", " + endCol); lastScreenUpdate = inUpdate; switch (inUpdate) { case 1: case 2: case 3: case 4:// case iOhio.OHIO_UPDATE_HOST: Rectangle sr = modelToView(inStart); Rectangle er = modelToView(inEnd); addDirtyRectangle(sr.x, sr.y, er.x - sr.x + columnWidth, er.y - sr.y + rowHeight); break;// case 4:// Rectangle cs = modelToView(inStart);// Rectangle ce = modelToView(inEnd);// addDirtyRectangle(cs.x, cs.y, ce.x - cs.x + columnWidth, ce.y - cs.y + rowHeight);// break; } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e6f566dd6d1e23e7327cf1676228eb4318efd0d8/BasicScreenUI.java/buggy/tn5250j/src/org/tn5250j/swing/ui/BasicScreenUI.java |
|
int idx = mimeType.indexOf("/"); if (idx == -1) return(""); | int start = mimeType.indexOf("/"); if (start == -1) return ""; | getSubType(){ int idx = mimeType.indexOf("/"); if (idx == -1) return(""); String subtype = mimeType.substring(idx + 1); idx = subtype.indexOf(" "); if (idx == -1) return(subtype); else return(subtype.substring(0, idx));} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1e7aa2954f7fa9e45a7b68da25c13d3846158a39/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java |
String subtype = mimeType.substring(idx + 1); idx = subtype.indexOf(" "); if (idx == -1) return(subtype); | int end = mimeType.indexOf(";", start + 1); if (end == -1) return mimeType.substring(start + 1); | getSubType(){ int idx = mimeType.indexOf("/"); if (idx == -1) return(""); String subtype = mimeType.substring(idx + 1); idx = subtype.indexOf(" "); if (idx == -1) return(subtype); else return(subtype.substring(0, idx));} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1e7aa2954f7fa9e45a7b68da25c13d3846158a39/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.