rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
newfield.setFieldId(null); | newfield.setFieldId(findUniqueIdName(FieldObj, newfield.getFieldId())); FieldObj.put(newfield.getFieldId(), newfield); | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // create new object appropriately Field newfield = new Field(); newfield.setXMLAttributes(attrs); // set XML attributes from passed list // grab the field axis and add the field FieldAxis fiel... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/51c1f5110504af22199bf58d876ab8653c82dee0/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
newnote.setNoteId(null); | newnote.setNoteId(findUniqueIdName(NoteObj, newnote.getNoteId())); NoteObj.put(newnote.getNoteId(), newnote); | public Object action (SaxDocumentHandler handler, AttributeList attrs) { String parentNodeName = getParentNodeName(); // create new object appropriately Note newnote = new Note(); newnote.setXMLAttributes(attrs); // set XML attributes from passed list String n... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/51c1f5110504af22199bf58d876ab8653c82dee0/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); | FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); String readId = readObj.getReadId(); String readIdRef = readObj.getReadIdRef(); if (readId != null) { if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node... | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { FormattedXMLDataIOStyle readObj = new FormattedXMLDat... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/51c1f5110504af22199bf58d876ab8653c82dee0/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
AxisInterface FastAxis = (AxisInterface) CurrentArray.getAxisList().get(0); AxisInterface SlowAxis = (AxisInterface) CurrentArray.getAxisList().get(1); | private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {AxisInterface FastAxis = (AxisInterface) CurrentArray.getAxisList().get(0);AxisInte... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/51c1f5110504af22199bf58d876ab8653c82dee0/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java | |
Log.errorln("setData:["+thisString+"]["+dataLocator.getAxisLocation(FastAxis)+","+dataLocator.getAxisLocation(SlowAxis)+"]"); | private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {AxisInterface FastAxis = (AxisInterface) CurrentArray.getAxisList().get(0);AxisInte... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/51c1f5110504af22199bf58d876ab8653c82dee0/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java | |
if (Character.isWhitespace(thisData.charAt(0)) && !(formatObj instanceof StringDataFormat)) | if (Character.isWhitespace(thisData.charAt(0)) && !(formatObj instanceof StringDataFormat)) | private ArrayList formattedSplitStringIntoStringObjects ( String data , FormattedXMLDataIOStyle readObj ) { ArrayList stringObjList = new ArrayList(); List commandList = readObj... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/51c1f5110504af22199bf58d876ab8653c82dee0/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
Log.debugln("Got Data:["+thisData+"] ("+dataPosition+","+endDataPosition+")"); | Log.debugln("Got Formatted DataCell:["+thisData+"]"); | private ArrayList formattedSplitStringIntoStringObjects ( String data , FormattedXMLDataIOStyle readObj ) { ArrayList stringObjList = new ArrayList(); List commandList = readObj... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/51c1f5110504af22199bf58d876ab8653c82dee0/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
super.remove(component); | int index = indexOfComponent(component); if (index == -1) { Component[] cs = getComponents(); for (int i = 0; i< cs.length; i++) if (cs[i] == component) super.remove(i); } else removeTabAt(index); | public void remove(Component component) { super.remove(component); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/JTabbedPane.java/buggy/core/src/classpath/javax/javax/swing/JTabbedPane.java |
public void setModel(SingleSelectionModel model) | public void setModel(SingleSelectionModel m) | public void setModel(SingleSelectionModel model) { if (model != this.model) { SingleSelectionModel oldModel = this.model; this.model.removeChangeListener(changeListener); this.model = model; this.model.addChangeListener(changeListener); firePropertyChange("model", oldModel, this.model); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/JTabbedPane.java/buggy/core/src/classpath/javax/javax/swing/JTabbedPane.java |
if (model != this.model) | if (m != model) | public void setModel(SingleSelectionModel model) { if (model != this.model) { SingleSelectionModel oldModel = this.model; this.model.removeChangeListener(changeListener); this.model = model; this.model.addChangeListener(changeListener); firePropertyChange("model", oldModel, this.model); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/JTabbedPane.java/buggy/core/src/classpath/javax/javax/swing/JTabbedPane.java |
this.model.removeChangeListener(changeListener); this.model = model; this.model.addChangeListener(changeListener); | if (oldModel != null && changeListener != null) oldModel.removeChangeListener(changeListener); model = m; if (model != null) { if (changeListener != null) changeListener = createChangeListener(); model.addChangeListener(changeListener); } | public void setModel(SingleSelectionModel model) { if (model != this.model) { SingleSelectionModel oldModel = this.model; this.model.removeChangeListener(changeListener); this.model = model; this.model.addChangeListener(changeListener); firePropertyChange("model", oldModel, this.model); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/JTabbedPane.java/buggy/core/src/classpath/javax/javax/swing/JTabbedPane.java |
public void setSelectedIndex(int index) { checkIndex(index, -1, tabs.size()); if (index != getSelectedIndex()) { model.setSelectedIndex(index); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/JTabbedPane.java/buggy/core/src/classpath/javax/javax/swing/JTabbedPane.java | ||
throws NotImplementedException | protected void decodeLineStyle(Object lineStyleFlag) throws NotImplementedException { // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalTreeUI.java | |
if (lineStyleFlag == null || lineStyleFlag.equals(LINE_STYLE_VALUE_ANGLED)) lineStyle = LINE_STYLE_ANGLED; else if (lineStyleFlag.equals(LINE_STYLE_VALUE_HORIZONTAL)) lineStyle = LINE_STYLE_HORIZONTAL; else if (lineStyleFlag.equals(LINE_STYLE_VALUE_NONE)) lineStyle = LINE_STYLE_NONE; else lineStyle = LINE_STYLE_ANGLED;... | protected void decodeLineStyle(Object lineStyleFlag) throws NotImplementedException { // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalTreeUI.java | |
public void installUI(JComponent c) { // TODO: What to do here, if anything? super.installUI(c); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalTreeUI.java | ||
Object lineStyleProp = c.getClientProperty(LINE_STYLE_PROPERTY); decodeLineStyle(lineStyleProp); if (lineStyleListener == null) lineStyleListener = new LineStyleListener(); c.addPropertyChangeListener(lineStyleListener); | public void installUI(JComponent c) { // TODO: What to do here, if anything? super.installUI(c); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalTreeUI.java | |
if (lineStyle == LINE_STYLE_HORIZONTAL) paintHorizontalSeparators(g, c); | public void paint(Graphics g, JComponent c) { // Calls BasicTreeUI's paint since it takes care of painting all // types of icons. super.paint(g, c); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalTreeUI.java | |
if (lineStyle == LINE_STYLE_ANGLED) | protected void paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalTreeUI.java | |
throws NotImplementedException | protected void paintHorizontalSeparators(Graphics g, JComponent c) throws NotImplementedException { // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalTreeUI.java | |
g.setColor(UIManager.getColor("Tree.line")); Rectangle clip = g.getClipBounds(); int row0 = getRowForPath(tree, getClosestPathForLocation(tree, 0, clip.y)); int row1 = getRowForPath(tree, getClosestPathForLocation(tree, 0, clip.y + clip.height - 1)); if (row0 >= 0 && row1 >= 0) { for (int i = row0; i <= row1; i++) { Tr... | protected void paintHorizontalSeparators(Graphics g, JComponent c) throws NotImplementedException { // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalTreeUI.java | |
if (lineStyle == LINE_STYLE_ANGLED) | protected void paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) { super.paintVerticalPartOfLeg(g, clipBounds, insets, path); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalTreeUI.java | |
public void uninstallUI(JComponent c) { // TODO: What to do here? super.uninstallUI(c); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalTreeUI.java | ||
if (lineStyleListener != null) c.removePropertyChangeListener(lineStyleListener); lineStyleListener = null; | public void uninstallUI(JComponent c) { // TODO: What to do here? super.uninstallUI(c); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalTreeUI.java | |
keys.setKey(51, new Key('w', 'M',KeyEvent.VK_M)); | keys.setKey(51, new Key('w', 'W',KeyEvent.VK_M)); | protected void initKeys(Keys keys) { keys.setKey(1, new Key(KeyEvent.VK_ESCAPE)); keys.setKey(2, new Key('1', KeyEvent.VK_1, '!', KeyEvent.VK_EXCLAMATION_MARK)); keys.setKey(3, new Key('2', KeyEvent.VK_2, '@', KeyEvent.VK_AT)); keys.setKey(4, new Key('3', KeyEvent.VK_3, '#', KeyEvent.VK_NUMBER_SIGN, '', ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/85fb172f9489c040f68de8ce5e320c9df0de877a/KeyboardInterpreter_DV.java/clean/core/src/driver/org/jnode/driver/input/l10n/KeyboardInterpreter_DV.java |
private int loadLib(String filename) | private static int loadLib(String filename) | private int loadLib(String filename) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkLink(filename); return VMRuntime.nativeLoad(filename); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/37d5fed12204d348d94cd6409a12ac3d0787ccc3/Runtime.java/buggy/core/src/classpath/java/java/lang/Runtime.java |
sm.checkLink(filename); | sm.checkRead(filename); | private int loadLib(String filename) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkLink(filename); return VMRuntime.nativeLoad(filename); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/37d5fed12204d348d94cd6409a12ac3d0787ccc3/Runtime.java/buggy/core/src/classpath/java/java/lang/Runtime.java |
return null; | return Registry.RAW_ENCODING_SHORT_NAME; | public String getFormat() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/SRPKey.java/buggy/core/src/classpath/gnu/gnu/javax/crypto/key/srp6/SRPKey.java |
this.ipaddress = addr; | this.ipaddress = this.addr; | Inet6Address(byte[] addr, String host) { super(addr, host); this.ipaddress = addr; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fc10db4f3c7e4495c850eee76c5f5ea45b8979bc/Inet6Address.java/buggy/core/src/classpath/java/java/net/Inet6Address.java |
Inet6Address tmp = (Inet6Address) obj; return super.equals(tmp) && this.ipaddress == tmp.ipaddress; | return super.equals(obj); | public boolean equals(Object obj) { if (! (obj instanceof Inet6Address)) return false; Inet6Address tmp = (Inet6Address) obj; return super.equals(tmp) && this.ipaddress == tmp.ipaddress; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fc10db4f3c7e4495c850eee76c5f5ea45b8979bc/Inet6Address.java/buggy/core/src/classpath/java/java/net/Inet6Address.java |
return ipaddress; | return (byte[]) ipaddress.clone(); | public byte[] getAddress() { return ipaddress; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fc10db4f3c7e4495c850eee76c5f5ea45b8979bc/Inet6Address.java/buggy/core/src/classpath/java/java/net/Inet6Address.java |
addr = new byte[ipaddr.length]; | addr = (null == ipaddr) ? null : (byte[]) ipaddr.clone(); hostName = hostname; | InetAddress(byte[] ipaddr, String hostname) { addr = new byte[ipaddr.length]; for (int i = 0; i < ipaddr.length; i++) addr[i] = ipaddr[i]; this.hostName = hostname; lookup_time = System.currentTimeMillis(); family = 2; /* AF_INET */ } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fc10db4f3c7e4495c850eee76c5f5ea45b8979bc/InetAddress.java/buggy/core/src/classpath/java/java/net/InetAddress.java |
for (int i = 0; i < ipaddr.length; i++) addr[i] = ipaddr[i]; this.hostName = hostname; | InetAddress(byte[] ipaddr, String hostname) { addr = new byte[ipaddr.length]; for (int i = 0; i < ipaddr.length; i++) addr[i] = ipaddr[i]; this.hostName = hostname; lookup_time = System.currentTimeMillis(); family = 2; /* AF_INET */ } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fc10db4f3c7e4495c850eee76c5f5ea45b8979bc/InetAddress.java/buggy/core/src/classpath/java/java/net/InetAddress.java | |
public void actionPerformed(ActionEvent e) { if (desktop.getSelectedFrame() != null) { try { desktop.getSelectedFrame().setClosed(true); } catch (PropertyVetoException pve) { } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicDesktopPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicDesktopPaneUI.java | ||
public void actionPerformed(ActionEvent e) { if (desktop.getSelectedFrame() != null) { try { desktop.getSelectedFrame().setMaximum(true); } catch (PropertyVetoException pve) { } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicDesktopPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicDesktopPaneUI.java | ||
public void actionPerformed(ActionEvent e) { if (desktop.getSelectedFrame() != null) { try { desktop.getSelectedFrame().setIcon(true); } catch (PropertyVetoException pve) { } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicDesktopPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicDesktopPaneUI.java | ||
public void actionPerformed(ActionEvent e) { JInternalFrame frame = desktop.getSelectedFrame(); if (frame != null) { try { if (frame.isIcon()) frame.setIcon(false); else if (frame.isMaximum()) frame.setMaximum(false); } catch (PropertyVetoException pve) { } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicDesktopPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicDesktopPaneUI.java | ||
public BasicDesktopPaneUI() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicDesktopPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicDesktopPaneUI.java | ||
dispose(); | public void setClosed(boolean b) throws PropertyVetoException { if (b && ! isClosed()) { fireInternalFrameEvent(InternalFrameEvent.INTERNAL_FRAME_CLOSING); fireVetoableChange(IS_CLOSED_PROPERTY, false, true); isClosed = b; firePropertyChange(IS_CLOSED_PROPERTY, false, true); fireInternalFrameEvent(InternalFr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49ad2f4c3e74f0a8e99b839c938a312898850fa0/JInternalFrame.java/buggy/core/src/classpath/javax/javax/swing/JInternalFrame.java | |
} else if (jnodeField.getDeclaringClass().isMagicType()) { | } else if (jnodeField.isAddressType()) { | private void storeObject(int offset, Class<?> cls, Object obj, VmClassType<?> vmType) throws BuildException, ClassNotFoundException, JNodeClassNotFoundException { final Class< ? > sCls = cls.getSuperclass(); if (sCls != null) { final VmClassType< ? > vmSuperType = (VmC... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ce9edcec33b530946740848661effd8e7bab49d5/ObjectEmitter.java/buggy/builder/src/builder/org/jnode/build/ObjectEmitter.java |
os.writeWord(0); | os.setWord(fldOffset, 0); | private void storeObject(int offset, Class<?> cls, Object obj, VmClassType<?> vmType) throws BuildException, ClassNotFoundException, JNodeClassNotFoundException { final Class< ? > sCls = cls.getSuperclass(); if (sCls != null) { final VmClassType< ? > vmSuperType = (VmC... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ce9edcec33b530946740848661effd8e7bab49d5/ObjectEmitter.java/buggy/builder/src/builder/org/jnode/build/ObjectEmitter.java |
os.writeWord(uobj.toLong()); | os.setWord(fldOffset, uobj.toLong()); } else if (value instanceof Label) { final Label lbl = (Label)value; bis.setObjectRef(fldOffset, lbl); | private void storeObject(int offset, Class<?> cls, Object obj, VmClassType<?> vmType) throws BuildException, ClassNotFoundException, JNodeClassNotFoundException { final Class< ? > sCls = cls.getSuperclass(); if (sCls != null) { final VmClassType< ? > vmSuperType = (VmC... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ce9edcec33b530946740848661effd8e7bab49d5/ObjectEmitter.java/buggy/builder/src/builder/org/jnode/build/ObjectEmitter.java |
s.grabFocus(); | private void jbInit() throws Exception { this.setSize(new Dimension(400,300)); Properties sesProps = new Properties(); // Start loading properties - Host must exist sesProps.put(SESSION_HOST,getParameter("host")); if (isSpecified("-e")) sesProps.put(SESSION_TN_ENHANCED,"1"); if ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/1628a5b2ea01b3bfb66854e9d7b426faf9acd581/My5250App.java/buggy/tn5250j/src/org/tn5250j/My5250App.java | |
return getLayout().preferredLayoutSize(this); } | return getLayout().preferredLayoutSize(this); } | public Dimension getPreferredSize() { return getLayout().preferredLayoutSize(this); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/23b9082401e6c07b6befa90f25fb355bdb4ae9b5/TN5250jFileChooser.java/clean/tn5250j/src/org/tn5250j/gui/TN5250jFileChooser.java |
int buttonWidth = height - 2; | public void layoutContainer(Container c) { Dimension size = c.getSize(); Insets insets = c.getInsets(); int width = size.width - insets.left - insets.right; int height = size.height - insets.top - insets.bottom; // MenuBar is always present and located at the top left corner. Dimens... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameTitlePane.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java | |
loc -= buttonWidth + 2; closeButton.setBounds(loc, top, buttonWidth, buttonHeight); | int buttonWidth = closeIcon.getIconWidth(); loc -= buttonWidth + 2; closeButton.setBounds(loc, top, buttonWidth, buttonHeight); | public void layoutContainer(Container c) { Dimension size = c.getSize(); Insets insets = c.getInsets(); int width = size.width - insets.left - insets.right; int height = size.height - insets.top - insets.bottom; // MenuBar is always present and located at the top left corner. Dimens... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameTitlePane.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java |
loc -= buttonWidth + 2; maxButton.setBounds(loc, top, buttonWidth, buttonHeight); | int buttonWidth = maxIcon.getIconWidth(); loc -= buttonWidth + 2; maxButton.setBounds(loc, top, buttonWidth, buttonHeight); | public void layoutContainer(Container c) { Dimension size = c.getSize(); Insets insets = c.getInsets(); int width = size.width - insets.left - insets.right; int height = size.height - insets.top - insets.bottom; // MenuBar is always present and located at the top left corner. Dimens... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameTitlePane.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java |
loc -= buttonWidth + 2; iconButton.setBounds(loc, top, buttonWidth, buttonHeight); | int buttonWidth = iconIcon.getIconWidth(); loc -= buttonWidth + 2; iconButton.setBounds(loc, top, buttonWidth, buttonHeight); | public void layoutContainer(Container c) { Dimension size = c.getSize(); Insets insets = c.getInsets(); int width = size.width - insets.left - insets.right; int height = size.height - insets.top - insets.bottom; // MenuBar is always present and located at the top left corner. Dimens... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameTitlePane.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java |
maxButton.setText(null); | protected void createButtons() { closeButton = new PaneButton(closeAction); if (!frame.isClosable()) closeButton.setVisible(false); iconButton = new PaneButton(iconifyAction); if (!frame.isIconifiable()) iconButton.setVisible(false); maxButton = new PaneButton(maximizeAction); if (!frame.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameTitlePane.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java | |
protected void installDefaults() { // FIXME: move icons to defaults. UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setFont(defaults.getFont("InternalFrame.titleFont")); selectedTextColor = defaults.getColor("InternalFrame.activeTitleForeground"); selectedTitleColor = defaults.getColor("Int... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameTitlePane.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java | ||
setFont(defaults.getFont("InternalFrame.titleFont")); | title.setFont(defaults.getFont("InternalFrame.titleFont")); | protected void installDefaults() { // FIXME: move icons to defaults. UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setFont(defaults.getFont("InternalFrame.titleFont")); selectedTextColor = defaults.getColor("InternalFrame.activeTitleForeground"); selectedTitleColor = defaults.getColor("Int... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameTitlePane.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java |
closeIcon = UIManager.getIcon("InternalFrame.closeIcon"); iconIcon = UIManager.getIcon("InternalFrame.iconifyIcon"); maxIcon = UIManager.getIcon("InternalFrame.maximizeIcon"); | protected void installDefaults() { // FIXME: move icons to defaults. UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setFont(defaults.getFont("InternalFrame.titleFont")); selectedTextColor = defaults.getColor("InternalFrame.activeTitleForeground"); selectedTitleColor = defaults.getColor("Int... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameTitlePane.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java | |
propertyChangeListener = new PropertyChangeHandler(); | propertyChangeListener = createPropertyChangeListener(); | protected void installListeners() { propertyChangeListener = new PropertyChangeHandler(); frame.addPropertyChangeListener(propertyChangeListener); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameTitlePane.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java |
Font f = g.getFont(); FontMetrics fm = g.getFontMetrics(f); | public void paintComponent(Graphics g) { paintTitleBackground(g); Font f = g.getFont(); FontMetrics fm = g.getFontMetrics(f); if (frame.getTitle() != null && title != null) { Color saved = g.getColor(); if (frame.isSelected()) g.setColor(selectedTextColor); else g.setColor(notSelectedTextColor);... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameTitlePane.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java | |
Font f = title.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); | public void paintComponent(Graphics g) { paintTitleBackground(g); Font f = g.getFont(); FontMetrics fm = g.getFontMetrics(f); if (frame.getTitle() != null && title != null) { Color saved = g.getColor(); if (frame.isSelected()) g.setColor(selectedTextColor); else g.setColor(notSelectedTextColor);... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameTitlePane.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java | |
Icon icon = UIManager.getIcon("InternalFrame.closeIcon"); if (icon != null) closeButton.setIcon(icon); icon = UIManager.getIcon("InternalFrame.iconifyIcon"); if (icon != null) iconButton.setIcon(icon); icon = UIManager.getIcon("InternalFrame.maximizeIcon"); if (icon != null) maxButton.setIcon(icon); | if (closeIcon != null) closeButton.setIcon(closeIcon); if (iconIcon != null) iconButton.setIcon(iconIcon); if (maxIcon != null) maxButton.setIcon(maxIcon); | protected void setButtonIcons() { Icon icon = UIManager.getIcon("InternalFrame.closeIcon"); if (icon != null) closeButton.setIcon(icon); icon = UIManager.getIcon("InternalFrame.iconifyIcon"); if (icon != null) iconButton.setIcon(icon); icon = UIManager.getIcon("InternalFrame.maximizeIcon"); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameTitlePane.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java |
closeIcon = null; iconIcon = null; maxIcon = null; | protected void uninstallDefaults() { setFont(null); selectedTextColor = null; selectedTitleColor = null; notSelectedTextColor = null; notSelectedTitleColor = null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameTitlePane.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java | |
arrowButton.setFocusable(false); | public void configureArrowButton() { arrowButton.setEnabled(comboBox.isEnabled()); arrowButton.setFont(comboBox.getFont()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicComboBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
comboBox.addFocusListener(focusListener); listBox.addFocusListener(focusListener); | editor.addFocusListener(focusListener); | protected void installListeners() { // install combo box's listeners propertyChangeListener = createPropertyChangeListener(); comboBox.addPropertyChangeListener(propertyChangeListener); focusListener = createFocusListener(); comboBox.addFocusListener(focusListener); listBox.addFocusListener(focusLi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicComboBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java |
{ | public void setPopupVisible(JComboBox c, boolean v) { if (v) { popup.show(); popup.getList().requestFocus(); } else popup.hide(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicComboBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
popup.getList().requestFocus(); } | public void setPopupVisible(JComboBox c, boolean v) { if (v) { popup.show(); popup.getList().requestFocus(); } else popup.hide(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicComboBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
if (comboBox.isEditable()) editor.requestFocus(); else comboBox.requestFocus(); | public void setPopupVisible(JComboBox c, boolean v) { if (v) { popup.show(); popup.getList().requestFocus(); } else popup.hide(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicComboBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
if( o == null ) throw new NullPointerException(); | public static Object invoke(VmMethod method, Object o, Object[] args) throws InvocationTargetException { int argCount = method.getNoArguments(); int argsLength = (args == null) ? 0 : args.length; if (argCount != argsLength) { throw new IllegalArgumentException("Invalid number of arguments"); } if (!method.isS... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2a46e900dd95cae0037c97e92ab3e8cb99c0f651/VmReflection.java/buggy/core/src/core/org/jnode/vm/VmReflection.java | |
if (value != null) { if (value instanceof JTextField) return new JTextField(((JTextField)value).getText()); super.setText(value.toString()); } else super.setText(""); | setValue(value); | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/DefaultTableCellRenderer.java/clean/core/src/classpath/javax/javax/swing/table/DefaultTableCellRenderer.java |
super.setText((value!=null) ? value.toString() : ""); | if (value != null) setText(value.toString()); else setText(""); | protected void setValue(Object value) { super.setText((value!=null) ? value.toString() : ""); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/DefaultTableCellRenderer.java/clean/core/src/classpath/javax/javax/swing/table/DefaultTableCellRenderer.java |
public InstantiationException() { super(); | public InstantiationException() { | public InstantiationException() { super(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/InstantiationException.java/buggy/core/src/classpath/java/java/lang/InstantiationException.java |
super(); | this.panel = panel; | public SwingPanelPeer(Panel panel) { super(); SwingToolkit.add(panel, this); SwingToolkit.copyAwtProperties(panel, this); setLayout(null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9db4fc68ede9647d01b988919ce05ed61bf034/SwingPanelPeer.java/clean/gui/src/awt/org/jnode/awt/swingpeers/SwingPanelPeer.java |
public final boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time) { return true; | public final void requestFocus() { jComponent.requestFocus(); SwingComponentPeer oldFocusPeer; Component fc = toolkit.getFocusHandler().getFocusedComponent(); if (fc != null) { oldFocusPeer = (SwingComponentPeer) fc.getPeer(); } else { oldFocusPeer = null; } toolkit.getFocusHandler().setFocusedComponent((Component) c... | public final boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time) { return true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java |
public SwingMenuPeer(SwingToolkit toolkit, Menu menu, JComponent jComponent) { super(toolkit, menu, jComponent); | public SwingMenuPeer(SwingToolkit toolkit, Menu menu) { super(toolkit, menu, new JMenu()); | public SwingMenuPeer(SwingToolkit toolkit, Menu menu, JComponent jComponent) { super(toolkit, menu, jComponent); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/SwingMenuPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingMenuPeer.java |
Iterator it = (Iterator) iterators.get(key); if(it == null) | synchronized(iterators) | public TestConfig getConfig(Class configClazz, Class clazz, String testName) { TestKey key = new TestKey(clazz, testName); Iterator it = (Iterator) iterators.get(key); if(it == null) { List cfgs = (List) configs.get(configClazz); it = cfgs.iterator(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/359dd670fe8b3ea6182bac946519b5324763beac/ConfigManager.java/clean/fs/src/test/org/jnode/test/support/ConfigManager.java |
List cfgs = (List) configs.get(configClazz); it = cfgs.iterator(); iterators.put(key, it); } TestConfig cfg = (TestConfig) it.next(); log.info(key+" got config "+cfg); return cfg; | Iterator it = (Iterator) iterators.get(key); if(it == null) { List cfgs = (List) configs.get(configClazz); it = cfgs.iterator(); iterators.put(key, it); } TestConfig cfg = (TestConfig) it.next(); log.info(key+" got config "+cfg); return cfg; } | public TestConfig getConfig(Class configClazz, Class clazz, String testName) { TestKey key = new TestKey(clazz, testName); Iterator it = (Iterator) iterators.get(key); if(it == null) { List cfgs = (List) configs.get(configClazz); it = cfgs.iterator(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/359dd670fe8b3ea6182bac946519b5324763beac/ConfigManager.java/clean/fs/src/test/org/jnode/test/support/ConfigManager.java |
return currentField.isHiglightedEntry(); | if (currentField != null) return currentField.isHiglightedEntry(); else return false; | public boolean isCurrentFieldHighlightedEntry() { return currentField.isHiglightedEntry(); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/99debc0e39981c309029bd7389a7d7c50837d87b/ScreenFields.java/clean/tn5250j/src/org/tn5250j/ScreenFields.java |
masterMDT = currentField.mdt; | if (!masterMDT) masterMDT = currentField.mdt; | public ScreenField setField(int attr, int row, int col, int len, int ffw1, int ffw2, int fcw1, int fcw2) { ScreenField sf = null; screenFields[nextField] = new ScreenField(screen); screenFields[nextField].setField(attr,row,col,len,ffw1,ffw2,fcw1,fcw2); sf = screenFields[... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/99debc0e39981c309029bd7389a7d7c50837d87b/ScreenFields.java/clean/tn5250j/src/org/tn5250j/ScreenFields.java |
protected boolean gotoField(ScreenField f) { if (f != null) { goto_XY(f.startPos()); return true; | public boolean gotoField(int f) { int sizeFields = screenFields.getSize(); if (f > sizeFields || f <= 0) return false; screenFields.setCurrentField(screenFields.getField(f-1)); while (screenFields.isCurrentFieldBypassField() && f < sizeFields) { screenFields.setCurrentField(screenFields.getField(f++)); | protected boolean gotoField(ScreenField f) { if (f != null) { goto_XY(f.startPos()); return true; } else { return false; } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/0166767548ad2224376eff5004531d67a0ff55d6/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java |
else { return false; } | return gotoField(screenFields.getCurrentField()); | protected boolean gotoField(ScreenField f) { if (f != null) { goto_XY(f.startPos()); return true; } else { return false; } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/0166767548ad2224376eff5004531d67a0ff55d6/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java |
public ScreenField setField(int attr, int row, int col, int len, int ffw1, int ffw2, | public ScreenField setField(int attr, int len, int ffw1, int ffw2, | public ScreenField setField(int attr, int row, int col, int len, int ffw1, int ffw2, int fcw1, int fcw2) {// startRow = row;// startCol = col; startPos = (row * s.getCols()) + col; endPos = startPos + length -1; cursorProg = 0; fieldId = 0; length = len; en... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/a61dbdd53c996e8a76dc4165e5010c2379355b80/ScreenField.java/buggy/tn5250j/src/org/tn5250j/ScreenField.java |
startPos = (row * s.getCols()) + col; endPos = startPos + length -1; cursorProg = 0; fieldId = 0; length = len; endPos = startPos + length -1; this.attr = attr; setFFWs(ffw1,ffw2); setFCWs(fcw1,fcw2); next = null; prev = null; return this; | return setField(attr, s.getCurrentRow() - 1, s.getCurrentCol() - 1, len, ffw1, ffw2, fcw1, fcw2); | public ScreenField setField(int attr, int row, int col, int len, int ffw1, int ffw2, int fcw1, int fcw2) {// startRow = row;// startCol = col; startPos = (row * s.getCols()) + col; endPos = startPos + length -1; cursorProg = 0; fieldId = 0; length = len; en... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/a61dbdd53c996e8a76dc4165e5010c2379355b80/ScreenField.java/buggy/tn5250j/src/org/tn5250j/ScreenField.java |
this.checkBox = checkBox; | public SwingCheckboxPeer(Checkbox checkBox) { SwingToolkit.add(checkBox, this); SwingToolkit.copyAwtProperties(checkBox, this); setText(checkBox.getLabel()); setState(checkBox.getState()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9db4fc68ede9647d01b988919ce05ed61bf034/SwingCheckboxPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingCheckboxPeer.java | |
protected void setMessage(byte[] data, int length) throws InvalidMidiDataException | protected void setMessage(byte[] data, int length) throws InvalidMidiDataException | protected void setMessage(byte[] data, int length) throws InvalidMidiDataException { this.data = new byte[length]; System.arraycopy(data, 0, this.data, 0, length); this.length = length; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/MidiMessage.java/buggy/core/src/classpath/javax/javax/sound/midi/MidiMessage.java |
Principal[] principals = (Principal[]) subject.getPrincipals().toArray (new Principal[0]); | Principal[] principals = null; if (subject != null) principals = (Principal[]) subject.getPrincipals().toArray (new Principal[0]); | public ProtectionDomain[] combine (final ProtectionDomain[] current, final ProtectionDomain[] assigned) { LinkedList domains = new LinkedList(); Principal[] principals = (Principal[]) subject.getPrincipals().toArray (new Principal[0]); if (current != null) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/SubjectDomainCombiner.java/buggy/core/src/classpath/javax/javax/security/auth/SubjectDomainCombiner.java |
synchronized (lock) { | public void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { synchronized (lock) { gg2d.drawImage(bi.getSubimage(x,y,width,height),null,x,y); } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/a61dbdd53c996e8a76dc4165e5010c2379355b80/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java | |
} | public void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { synchronized (lock) { gg2d.drawImage(bi.getSubimage(x,y,width,height),null,x,y); } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/a61dbdd53c996e8a76dc4165e5010c2379355b80/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java | |
protected void updateImage(Rectangle r) { updateImage(r.x,r.y,r.width,r.height); | protected synchronized void updateImage(int x, int y , int width, int height) { if (gg2d == null) { gg2d = (Graphics2D)gui.getGraphics(); } if (gui.rubberband != null && gui.rubberband.isAreaSelected()) { gui.rubberband.erase(); } if (bi == null || gg2d == null) { if (bi == null) System.out.println("bi was null in ... | protected void updateImage(Rectangle r) { updateImage(r.x,r.y,r.width,r.height); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/0166767548ad2224376eff5004531d67a0ff55d6/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java |
if (id == null) throw new NullPointerException(); | public void setID(String id) { this.ID = id; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java | |
timezones0.put("CEST", tz); | static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java | |
public void focusGained(FocusEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java | ||
public void focusLost(FocusEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java | ||
public void mouseClicked(MouseEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java | ||
public void mouseEntered(MouseEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java | ||
public void mouseExited(MouseEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java | ||
public void mouseMoved(MouseEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java | ||
ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); | DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
if (e.getActionCommand().equals("selectPreviousRowExtendSelection")) | String command = e.getActionCommand(); if (command.equals("selectPreviousRowExtendSelection")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else if (e.getActionCommand().equals("selectLastColumn")) { table.clearSelection(); | else if (command.equals("selectLastColumn")) { | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else if (e.getActionCommand().equals("startEditing")) | else if (command.equals("startEditing")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else if (e.getActionCommand().equals("selectFirstRowExtendSelection")) | else if (command.equals("selectFirstRowExtendSelection")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else if (e.getActionCommand().equals("selectFirstColumn")) | else if (command.equals("selectFirstColumn")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else if (e.getActionCommand().equals("selectFirstColumnExtendSelection")) | else if (command.equals("selectFirstColumnExtendSelection")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else if (e.getActionCommand().equals("selectLastRow")) | else if (command.equals("selectLastRow")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else if (e.getActionCommand().equals("selectNextRowExtendSelection")) | else if (command.equals("selectNextRowExtendSelection")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else if (e.getActionCommand().equals("selectFirstRow")) | else if (command.equals("selectFirstRow")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.