rem stringlengths 0 912 | add stringlengths 0 1.44k | context stringlengths 20 43.7k | meta stringlengths 169 231 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
{ if (path != null) | { if (path != null) | public Rectangle getPathBounds(JTree tree, TreePath path) { if (path != null) { Object cell = path.getLastPathComponent(); TreeModel mod = tree.getModel(); if (mod != null) { Object root = mod.getRoot(); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(root))) root = getNextNode(root); Point loc = getCellLocation(0, 0, tree, mod, cell, root); return getCellBounds(loc.x, loc.y, cell); } } return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13264,
4339,
5694,
12,
46,
2471,
2151,
16,
4902,
743,
589,
13,
202,
95,
1377,
309,
261,
803,
480,
446,
13,
1377,
288,
540,
1033,
2484,
273,
589,
18,
588,
3024,
743,
1841,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13264,
4339,
5694,
12,
46,
2471,
2151,
16,
4902,
743,
589,
13,
202,
95,
1377,
309,
261,
803,
480,
446,
13,
1377,
288,
540,
1033,
2484,
273,
589,
18,
588,
3024,
743,
1841,
56... |
public void setShowsRootHandles(boolean flag) { if (showsRootHandles == flag) return; boolean oldValue = showsRootHandles; showsRootHandles = flag; firePropertyChange(SHOWS_ROOT_HANDLES_PROPERTY, oldValue, flag); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
24548,
2375,
8788,
12,
6494,
2982,
13,
225,
288,
565,
309,
261,
4500,
87,
2375,
8788,
422,
2982,
13,
1377,
327,
31,
565,
1250,
11144,
273,
17975,
2375,
8788,
31,
565,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
24548,
2375,
8788,
12,
6494,
2982,
13,
225,
288,
565,
309,
261,
4500,
87,
2375,
8788,
422,
2982,
13,
1377,
327,
31,
565,
1250,
11144,
273,
17975,
2375,
8788,
31,
565,
17... | ||
} | } | protected ContainerListener createToolBarContListener() { return new ToolBarContListener(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4039,
2223,
752,
6364,
5190,
660,
2223,
1435,
565,
288,
565,
327,
394,
13288,
5190,
660,
2223,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4039,
2223,
752,
6364,
5190,
660,
2223,
1435,
565,
288,
565,
327,
394,
13288,
5190,
660,
2223,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
{ | { | public boolean getScrollableTracksViewportWidth() { if (getParent() instanceof JViewport) return ((JViewport) getParent()).getWidth() > getPreferredSize().width; return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
11971,
30453,
22138,
22743,
2384,
1435,
565,
288,
565,
309,
261,
588,
3054,
1435,
1276,
804,
22743,
13,
1377,
327,
14015,
46,
22743,
13,
5089,
1435,
2934,
588,
2384,
1435,
405,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
11971,
30453,
22138,
22743,
2384,
1435,
565,
288,
565,
309,
261,
588,
3054,
1435,
1276,
804,
22743,
13,
1377,
327,
14015,
46,
22743,
13,
5089,
1435,
2934,
588,
2384,
1435,
405,
... |
} | } | public void treeExpanded(TreeExpansionEvent event) { tree.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
2151,
17957,
12,
2471,
2966,
12162,
1133,
871,
13,
202,
202,
95,
1377,
2151,
18,
14462,
1598,
5621,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
2151,
17957,
12,
2471,
2966,
12162,
1133,
871,
13,
202,
202,
95,
1377,
2151,
18,
14462,
1598,
5621,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
setExpandedIcon(defaults.getIcon("Tree.openIcon")); setCollapsedIcon(defaults.getIcon("Tree.closedIcon")); | setExpandedIcon(defaults.getIcon("Tree.expandedIcon")); setCollapsedIcon(defaults.getIcon("Tree.collapsedIcon")); | public void installUI(JComponent c) { tree = (JTree) c; configureLayoutCache(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tree.setFont(defaults.getFont("Tree.font")); tree.setForeground(defaults.getColor("Tree.foreground")); tree.setBackground(defaults.getColor("Tree.background")); tree.setOpaque(true); tree.setScrollsOnExpand(defaults.getBoolean("Tree.scrollsOnExpand")); rightChildIndent = defaults.getInt("Tree.rightChildIndent"); leftChildIndent = defaults.getInt("Tree.leftChildIndent"); setRowHeight(defaults.getInt("Tree.rowHeight")); tree.requestFocusInWindow(false); setExpandedIcon(defaults.getIcon("Tree.openIcon")); setCollapsedIcon(defaults.getIcon("Tree.closedIcon")); currentCellRenderer = createDefaultCellRenderer(); rendererPane = createCellRendererPane(); createdRenderer = true; setCellEditor(createDefaultCellEditor()); createdCellEditor = true; TreeModel mod = tree.getModel(); setModel(mod); if (mod != null) { TreePath path = new TreePath(mod.getRoot()); if (!tree.isExpanded(path)) toggleExpandState(path); } treeSelectionModel = tree.getSelectionModel(); drawingCache = new Hashtable(); nodeDimensions = createNodeDimensions(); propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); treeSelectionListener = createTreeSelectionListener(); mouseInputListener = new MouseInputHandler(null, null, null); keyListener = createKeyListener(); selectionModelPropertyChangeListener = createSelectionModelPropertyChangeListener(); componentListener = createComponentListener(); cellEditorListener = createCellEditorListener(); treeExpansionListener = createTreeExpansionListener(); treeModelListener = createTreeModelListener(); editingRow = -1; lastSelectedRow = -1; installKeyboardActions(); tree.addPropertyChangeListener(propertyChangeListener); tree.addFocusListener(focusListener); tree.addTreeSelectionListener(treeSelectionListener); tree.addMouseListener(mouseInputListener); tree.addKeyListener(keyListener); tree.addPropertyChangeListener(selectionModelPropertyChangeListener); tree.addComponentListener(componentListener); tree.addTreeExpansionListener(treeExpansionListener); if (treeModel != null) treeModel.addTreeModelListener(treeModelListener); completeUIInstall(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/MetalTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3799,
5370,
12,
46,
1841,
276,
13,
225,
288,
565,
2151,
273,
261,
46,
2471,
13,
276,
31,
565,
5068,
3744,
1649,
5621,
3639,
10034,
73,
643,
87,
3467,
273,
6484,
1318,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3799,
5370,
12,
46,
1841,
276,
13,
225,
288,
565,
2151,
273,
261,
46,
2471,
13,
276,
31,
565,
5068,
3744,
1649,
5621,
3639,
10034,
73,
643,
87,
3467,
273,
6484,
1318,
18,
5... |
Object message, String title, int messageType, Icon icon) | Object message) | public static void showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon) { JOptionPane pane = new JOptionPane(message, messageType); pane.setIcon(icon); JDialog dialog = pane.createDialog(parentComponent, title); dialog.pack(); dialog.show(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2405,
1079,
6353,
12,
1841,
982,
1841,
16,
4766,
4202,
1033,
883,
16,
514,
2077,
16,
4766,
4202,
509,
22402,
16,
16011,
4126,
13,
225,
288,
565,
804,
1895,
8485,
13618,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2405,
1079,
6353,
12,
1841,
982,
1841,
16,
4766,
4202,
1033,
883,
16,
514,
2077,
16,
4766,
4202,
509,
22402,
16,
16011,
4126,
13,
225,
288,
565,
804,
1895,
8485,
13618,
... |
return null; | Accessible child = null; switch (i) { case 0: if (popup instanceof Accessible) { AccessibleContext ctx = ((Accessible) popup).getAccessibleContext(); ctx.setAccessibleParent(comboBox); child = (Accessible) popup; } break; case 1: if (comboBox.isEditable() && editor instanceof Accessible) { AccessibleContext ctx = ((Accessible) editor).getAccessibleContext(); ctx.setAccessibleParent(comboBox); child = (Accessible) editor; } break; } return child; | public Accessible getAccessibleChild(JComponent c, int i) throws NotImplementedException { // FIXME: Need to implement return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicComboBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5016,
1523,
336,
10451,
1763,
12,
46,
1841,
276,
16,
509,
277,
13,
565,
1216,
10051,
503,
225,
288,
565,
368,
9852,
30,
12324,
358,
2348,
282,
5016,
1523,
1151,
273,
446,
31,
1620... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5016,
1523,
336,
10451,
1763,
12,
46,
1841,
276,
16,
509,
277,
13,
565,
1216,
10051,
503,
225,
288,
565,
368,
9852,
30,
12324,
358,
2348,
282,
5016,
1523,
1151,
273,
446,
31,
1620... |
for (int i = 0; i < stop; i++) { String key = (String) cloneObj.attribOrder.get(i); XMLAttribute XMLAttributeValue = (XMLAttribute) this.attribHash.get(key); cloneObj.attribHash.put(key, XMLAttributeValue.clone()); | synchronized (cloneObj.attribHash) { cloneObj.attribHash = new Hashtable(); Enumeration keys = this.attribHash.keys(); while (keys.hasMoreElements()) { String key = (String) keys.nextElement(); XMLAttribute XMLAttributeValue = (XMLAttribute) this.attribHash.get(key); cloneObj.attribHash.put(key, XMLAttributeValue.clone()); } | public Object clone () throws CloneNotSupportedException{ //shallow copy for fields BaseObject cloneObj = (BaseObject) super.clone(); // Clone the fields cloneObj.attribOrder = Collections.synchronizedList(new ArrayList()); int stop = this.attribOrder.size(); for (int i = 0; i < stop; i++) { cloneObj.attribOrder.add(new String((String) this.attribOrder.get(i))); } // XMLAttributes Clone cloneObj.attribHash = new Hashtable(); Enumeration keys = this.attribHash.keys(); synchronized (this.attribHash) { for (int i = 0; i < stop; i++) { String key = (String) cloneObj.attribOrder.get(i); XMLAttribute XMLAttributeValue = (XMLAttribute) this.attribHash.get(key); cloneObj.attribHash.put(key, XMLAttributeValue.clone()); } }// cloneObj.classXDFNodeName = this.classXDFNodeName;// cloneObj.attribOrder = this.attribOrder;// cloneObj.groupMemberHash = Collections.synchronizedSet(new HashSet());// cloneObj.openGroupNodeHash = Collections.synchronizedSet(new HashSet()); /** This field stores object references to those group objects to which a given object belongs. */ return (Object) cloneObj; } | 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 | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
3236,
1832,
1216,
12758,
25482,
95,
377,
368,
674,
5965,
1610,
364,
1466,
377,
3360,
921,
3236,
2675,
273,
261,
2171,
921,
13,
2240,
18,
14056,
5621,
377,
368,
12758,
326,
146... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
3236,
1832,
1216,
12758,
25482,
95,
377,
368,
674,
5965,
1610,
364,
1466,
377,
3360,
921,
3236,
2675,
273,
261,
2171,
921,
13,
2240,
18,
14056,
5621,
377,
368,
12758,
326,
146... |
public void write(DataOutput out) throws IOException { | public void write(DataOutput out) throws IOException { | public void write(DataOutput out) throws IOException { out.writeInt(unique); out.writeLong(time); out.writeShort(count);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/UID.java/buggy/core/src/classpath/java/java/rmi/server/UID.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1045,
12,
751,
1447,
596,
13,
1216,
1860,
288,
202,
659,
18,
2626,
1702,
12,
6270,
1769,
202,
659,
18,
2626,
3708,
12,
957,
1769,
202,
659,
18,
2626,
4897,
12,
1883,
1769,
97,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1045,
12,
751,
1447,
596,
13,
1216,
1860,
288,
202,
659,
18,
2626,
1702,
12,
6270,
1769,
202,
659,
18,
2626,
3708,
12,
957,
1769,
202,
659,
18,
2626,
4897,
12,
1883,
1769,
97,
2... |
this.contents = contents; | if (oldOwner != null) oldOwner.lostOwnership(this, oldContents); } FlavorListener[] fs = getFlavorListeners(); if (fs.length > 0) { boolean newFlavors = ((contents != null && oldContents == null) || (contents == null && oldContents != null)); if (!newFlavors && contents != null && oldContents != null) { DataFlavor[] df1 = contents.getTransferDataFlavors(); DataFlavor[] df2 = oldContents.getTransferDataFlavors(); newFlavors = df1.length != df2.length; for (int i = 0; !newFlavors && i < df1.length; i++) newFlavors = !df1[i].equals(df2[i]); } if (newFlavors) { FlavorEvent e = new FlavorEvent(this); for (int i = 0; i < fs.length; i++) fs[i].flavorsChanged(e); } } | public synchronized void setContents(Transferable contents, ClipboardOwner owner) { if (this.owner != owner) if (this.owner != null) this.owner.lostOwnership(this, contents); this.owner = owner; this.contents = contents; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1e7aa2954f7fa9e45a7b68da25c13d3846158a39/Clipboard.java/buggy/core/src/classpath/java/java/awt/datatransfer/Clipboard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
444,
6323,
12,
5912,
429,
2939,
16,
385,
3169,
3752,
5541,
3410,
13,
225,
288,
225,
309,
261,
2211,
18,
8443,
480,
3410,
13,
565,
309,
261,
2211,
18,
8443,
480,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
444,
6323,
12,
5912,
429,
2939,
16,
385,
3169,
3752,
5541,
3410,
13,
225,
288,
225,
309,
261,
2211,
18,
8443,
480,
3410,
13,
565,
309,
261,
2211,
18,
8443,
480,
446,
... |
return toLowerCase(Locale.getDefault()); | boolean turkish = "tr".equals(loc.getLanguage()); int i = count; int x = offset - 1; while (--i >= 0) { char ch = value[++x]; if ((turkish && ch == '\u0049') || ch != Character.toLowerCase(ch)) break; } if (i < 0) return this; char[] newStr = (char[]) value.clone(); do { char ch = value[x]; newStr[x++] = (turkish && ch == '\u0049') ? '\u0131' : Character.toLowerCase(ch); } while (--i >= 0); return new String(newStr, offset, count, true); | public String toLowerCase() { return toLowerCase(Locale.getDefault()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d8df9982463a273f994e73e8e16990f8349f7cc2/String.java/buggy/core/src/classpath/5.0/java/lang/String.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
5914,
1435,
225,
288,
377,
1250,
268,
20628,
1468,
273,
315,
313,
9654,
14963,
12,
1829,
18,
588,
3779,
10663,
509,
277,
273,
1056,
31,
509,
619,
273,
1384,
300,
404,
31,
132... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
5914,
1435,
225,
288,
377,
1250,
268,
20628,
1468,
273,
315,
313,
9654,
14963,
12,
1829,
18,
588,
3779,
10663,
509,
277,
273,
1056,
31,
509,
619,
273,
1384,
300,
404,
31,
132... |
{ return collapsedIcon; } | { return collapsedIcon; } | public Icon getCollapsedIcon() { return collapsedIcon; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16011,
25440,
13886,
5554,
1435,
202,
95,
202,
202,
2463,
17027,
5554,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16011,
25440,
13886,
5554,
1435,
202,
95,
202,
202,
2463,
17027,
5554,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Object[] path = getPathToRoot(getParent(mod.getRoot(), node), depth + 1); | Object[] path = getPathToRoot(getParent(treeModel.getRoot(), node), depth + 1); | Object[] getPathToRoot(Object node, int depth) { TreeModel mod = tree.getModel(); if (node == null) { if (depth == 0) return null; return new Object[depth]; } Object[] path = getPathToRoot(getParent(mod.getRoot(), node), depth + 1); path[path.length - depth - 1] = node; return path; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1033,
8526,
4339,
774,
2375,
12,
921,
756,
16,
509,
3598,
13,
225,
288,
565,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
565,
309,
261,
2159,
422,
446,
13,
1377,
288,
3639,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1033,
8526,
4339,
774,
2375,
12,
921,
756,
16,
509,
3598,
13,
225,
288,
565,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
565,
309,
261,
2159,
422,
446,
13,
1377,
288,
3639,
309,
... |
return indexOf(str, 0); | return indexOf(ch, 0); | public int indexOf(String str) { return indexOf(str, 0); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d8df9982463a273f994e73e8e16990f8349f7cc2/String.java/buggy/core/src/classpath/5.0/java/lang/String.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
3133,
12,
780,
609,
13,
225,
288,
565,
327,
3133,
12,
343,
16,
374,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
3133,
12,
780,
609,
13,
225,
288,
565,
327,
3133,
12,
343,
16,
374,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
char ac = codePage.getASCIIChar(x); | char ac = codePage.ebcdic2uni(x); | private void loadList(String which) { lm.clear(); lm.removeAllElements(); if (which.equals(LangTool.getString("key.labelKeys"))) { Vector lk = new Vector(mnemonicData.length); for (int x = 0; x < mnemonicData.length; x++) { lk.addElement(new KeyDescription(LangTool.getString("key."+mnemonicData[x]),x)); } Collections.sort(lk,new KeyDescriptionCompare()); for (int x = 0; x < mnemonicData.length; x++) { lm.addElement(lk.get(x)); } macros = false; special = false; } else { if (which.equals(LangTool.getString("key.labelMacros"))) { Vector macrosVector = new Vector(); if (macrosList != null) for (int x = 0; x < macrosList.length; x++) { macrosVector.add(macrosList[x]); } scriptDir("scripts",macrosVector); loadListModel(lm,macrosVector,null,0); macros = true; special = false; } else { // we will use a collator here so that we can take advantage of the locales Collator collator = Collator.getInstance(); CollationKey key = null; StringBuffer sb = new StringBuffer(); Set set = new TreeSet(); for (int x =0;x < 256; x++) { char c = codePage.ebcdic2uni(x); char ac = codePage.getASCIIChar(x); if (!Character.isISOControl(c)) { sb.setLength(0); if (Integer.toHexString(ac).length() == 1){ sb.append("0x0" + Integer.toHexString(ac).toUpperCase()); } else { sb.append("0x" + Integer.toHexString(ac).toUpperCase()); } sb.append(" - " + c + " - " + getUnicodeString(c)); key = collator.getCollationKey(sb.toString()); set.add(key); } } Iterator iterator = set.iterator(); while (iterator.hasNext()) { CollationKey keyc = (CollationKey)iterator.next(); lm.addElement(keyc.getSourceString()); } macros = false; special = true; } } if (!lm.isEmpty()) functions.setSelectedIndex(0); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d4104819203aa6b5361aa997d2cd29a076f417a7/KeyConfigure.java/buggy/tn5250j/src/org/tn5250j/tools/KeyConfigure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
1262,
682,
12,
780,
1492,
13,
288,
1377,
14966,
18,
8507,
5621,
1377,
14966,
18,
4479,
1595,
3471,
5621,
1377,
309,
261,
12784,
18,
14963,
12,
7275,
6364,
18,
588,
780,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
1262,
682,
12,
780,
1492,
13,
288,
1377,
14966,
18,
8507,
5621,
1377,
14966,
18,
4479,
1595,
3471,
5621,
1377,
309,
261,
12784,
18,
14963,
12,
7275,
6364,
18,
588,
780,
2932,
... |
throws NotImplementedException | public void keyPressed(KeyEvent e) throws NotImplementedException { // FIXME: This method calls JComboBox.selectWithKeyChar if the key that // was pressed is not a navigation key. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicComboBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
498,
24624,
12,
653,
1133,
425,
13,
540,
288,
1377,
368,
9852,
30,
1220,
707,
4097,
804,
22199,
18,
4025,
1190,
653,
2156,
309,
326,
498,
716,
4202,
368,
1703,
19504,
353,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
498,
24624,
12,
653,
1133,
425,
13,
540,
288,
1377,
368,
9852,
30,
1220,
707,
4097,
804,
22199,
18,
4025,
1190,
653,
2156,
309,
326,
498,
716,
4202,
368,
1703,
19504,
353,
48... | |
if (tree.isVisible(current)) return next; | if (tree.isVisible(current)) return next; | Object getNextVisibleNode(Object node) { Object next = null; TreePath current = null; if (node != null) next = getNextNode(node); if (next != null) { current = new TreePath(getPathToRoot(next, 0)); if (tree.isVisible(current)) return next; while (next != null && !tree.isVisible(current)) { next = getNextNode(next); if (next != null) current = new TreePath(getPathToRoot(next, 0)); } } return next; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1033,
6927,
6207,
907,
12,
921,
756,
13,
282,
288,
565,
1033,
1024,
273,
446,
31,
1377,
4902,
743,
783,
273,
446,
31,
1377,
309,
261,
2159,
480,
446,
13,
1377,
1024,
273,
6927,
907,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1033,
6927,
6207,
907,
12,
921,
756,
13,
282,
288,
565,
1033,
1024,
273,
446,
31,
1377,
4902,
743,
783,
273,
446,
31,
1377,
309,
261,
2159,
480,
446,
13,
1377,
1024,
273,
6927,
907,
1... |
private RefItem(int kind, Register reg, VmConstString val, int offsetToFP) { super(kind, reg, offsetToFP); this.value = val; | RefItem(ItemFactory factory) { super(factory); | private RefItem(int kind, Register reg, VmConstString val, int offsetToFP) { super(kind, reg, offsetToFP); this.value = val; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/RefItem.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/RefItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3941,
1180,
12,
474,
3846,
16,
5433,
960,
16,
776,
81,
9661,
780,
1244,
16,
509,
1384,
774,
30246,
13,
288,
202,
202,
9565,
12,
9224,
16,
960,
16,
1384,
774,
30246,
1769,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3941,
1180,
12,
474,
3846,
16,
5433,
960,
16,
776,
81,
9661,
780,
1244,
16,
509,
1384,
774,
30246,
13,
288,
202,
202,
9565,
12,
9224,
16,
960,
16,
1384,
774,
30246,
1769,
2... |
{ if (newLSM != null) { treeSelectionModel = newLSM; tree.setSelectionModel(treeSelectionModel); } } | { if (newLSM != null) { treeSelectionModel = newLSM; tree.setSelectionModel(treeSelectionModel); } } | protected void setSelectionModel(TreeSelectionModel newLSM) { if (newLSM != null) { treeSelectionModel = newLSM; tree.setSelectionModel(treeSelectionModel); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
444,
6233,
1488,
12,
2471,
6233,
1488,
394,
3045,
49,
13,
202,
95,
202,
202,
430,
261,
2704,
3045,
49,
480,
446,
13,
202,
202,
95,
1082,
202,
3413,
6233,
1488,
273,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
444,
6233,
1488,
12,
2471,
6233,
1488,
394,
3045,
49,
13,
202,
95,
202,
202,
430,
261,
2704,
3045,
49,
480,
446,
13,
202,
202,
95,
1082,
202,
3413,
6233,
1488,
273,
39... |
{ | { | protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && ed.shouldSelectCell(event) && ed.isCellEditable(event)) { editingPath = path; editingRow = tree.getRowForPath(editingPath); Object val = editingPath.getLastPathComponent(); cellEditor.addCellEditorListener(cellEditorListener); stopEditingInCompleteEditing = false; boolean expanded = tree.isExpanded(editingPath); isEditing = true; editingComponent = ed.getTreeCellEditorComponent(tree, val, true, expanded, isLeaf(editingRow), editingRow); editingComponent.getParent().setVisible(true); editingComponent.getParent().validate(); tree.add(editingComponent.getParent()); editingComponent.getParent().validate(); ((JTextField) editingComponent).requestFocusInWindow(false); editorTimer.start(); return true; } return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
787,
28029,
12,
2471,
743,
589,
16,
17013,
1133,
871,
13,
202,
95,
565,
509,
619,
31,
565,
509,
677,
31,
565,
309,
261,
2575,
422,
446,
13,
1377,
288,
3639,
13264,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
787,
28029,
12,
2471,
743,
589,
16,
17013,
1133,
871,
13,
202,
95,
565,
509,
619,
31,
565,
509,
677,
31,
565,
309,
261,
2575,
422,
446,
13,
1377,
288,
3639,
13264,
49... |
model.setSelectedIndex(index); | model.setSelectedIndex(index); } | public void setSelectedIndex(int index) { checkIndex(index, -1, tabs.size()); if (index != getSelectedIndex()) { if (getSelectedIndex() != -1 && getSelectedComponent() != null) getSelectedComponent().hide(); if (index != -1 && getComponentAt(index) != null) getComponentAt(index).show(); model.setSelectedIndex(index); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTabbedPane.java/buggy/core/src/classpath/javax/javax/swing/JTabbedPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
23006,
1016,
12,
474,
770,
13,
225,
288,
565,
866,
1016,
12,
1615,
16,
300,
21,
16,
10920,
18,
1467,
10663,
565,
309,
261,
1615,
480,
16625,
1016,
10756,
1377,
288,
202,
430,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
23006,
1016,
12,
474,
770,
13,
225,
288,
565,
866,
1016,
12,
1615,
16,
300,
21,
16,
10920,
18,
1467,
10663,
565,
309,
261,
1615,
480,
16625,
1016,
10756,
1377,
288,
202,
430,... |
} | } | public static ComponentUI createUI(JComponent c) { return new BasicToolBarUI(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
5435,
5370,
752,
5370,
12,
46,
1841,
276,
13,
565,
288,
565,
327,
394,
7651,
6364,
5190,
5370,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
5435,
5370,
752,
5370,
12,
46,
1841,
276,
13,
565,
288,
565,
327,
394,
7651,
6364,
5190,
5370,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
protected DividerLayout() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicSplitPaneDivider.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneDivider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1850,
293,
436,
320,
268,
425,
276,
268,
425,
302,
282,
463,
277,
331,
277,
302,
425,
436,
511,
279,
677,
320,
582,
268,
261,
262,
540,
288,
540,
289,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1850,
293,
436,
320,
268,
425,
276,
268,
425,
302,
282,
463,
277,
331,
277,
302,
425,
436,
511,
279,
677,
320,
582,
268,
261,
262,
540,
288,
540,
289,
225,
2,
-100,
-100,
-100,
-100,
-100,... | ||
{ | { | protected PropertyChangeListener createPropertyListener() { return new PropertyListener(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4276,
15744,
31318,
2223,
1435,
565,
288,
565,
327,
394,
4276,
2223,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4276,
15744,
31318,
2223,
1435,
565,
288,
565,
327,
394,
4276,
2223,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
} else { | } else { | protected final boolean negotiate(byte abyte0[]) throws IOException { int i = 0; // from server negotiations if (abyte0[i] == IAC) { // -1 while (i < abyte0.length && abyte0[i++] == -1) // while(i < abyte0.length && (abyte0[i] == -1 || abyte0[i++] == // 0x20)) switch (abyte0[i++]) { // we will not worry about what it WONT do case WONT: // -4 default: break; case DO: //-3 switch (abyte0[i]) { case TERMINAL_TYPE: // 24 baosp.write(IAC); baosp.write(WILL); baosp.write(TERMINAL_TYPE); writeByte(baosp.toByteArray()); baosp.reset(); break; case OPT_END_OF_RECORD: // 25 baosp.write(IAC); baosp.write(WILL); baosp.write(OPT_END_OF_RECORD); writeByte(baosp.toByteArray()); baosp.reset(); break; case TRANSMIT_BINARY: // 0 baosp.write(IAC); baosp.write(WILL); baosp.write(TRANSMIT_BINARY); writeByte(baosp.toByteArray()); baosp.reset(); break; case TIMING_MARK: // 6 rfc860 // System.out.println("Timing Mark Received and notifying " // + // "the server that we will not do it"); baosp.write(IAC); baosp.write(WONT); baosp.write(TIMING_MARK); writeByte(baosp.toByteArray()); baosp.reset(); break; case NEW_ENVIRONMENT: // 39 rfc1572 if (devName == null && user == null) { baosp.write(IAC); baosp.write(WONT); baosp.write(NEW_ENVIRONMENT); writeByte(baosp.toByteArray()); baosp.reset(); } else { baosp.write(IAC); baosp.write(WILL); baosp.write(NEW_ENVIRONMENT); writeByte(baosp.toByteArray()); baosp.reset(); } break; default: // every thing else we will not do at this time baosp.write(IAC); baosp.write(WONT); baosp.write(abyte0[i]); // either writeByte(baosp.toByteArray()); baosp.reset(); break; } i++; break; case WILL: switch (abyte0[i]) { case OPT_END_OF_RECORD: // 25 baosp.write(IAC); baosp.write(DO); baosp.write(OPT_END_OF_RECORD); writeByte(baosp.toByteArray()); baosp.reset(); break; case TRANSMIT_BINARY: // '\0' baosp.write(IAC); baosp.write(DO); baosp.write(TRANSMIT_BINARY); writeByte(baosp.toByteArray()); baosp.reset(); break; } i++; break; case SB: // -6 if (abyte0[i] == NEW_ENVIRONMENT && abyte0[i + 1] == 1) { negNewEnvironment(); while (++i < abyte0.length && abyte0[i + 1] != IAC) ; } if (abyte0[i] == TERMINAL_TYPE && abyte0[i + 1] == 1) { baosp.write(IAC); baosp.write(SB); baosp.write(TERMINAL_TYPE); baosp.write(QUAL_IS); if (!support132) baosp.write("IBM-3179-2".getBytes()); else baosp.write("IBM-3477-FC".getBytes()); baosp.write(IAC); baosp.write(SE); writeByte(baosp.toByteArray()); baosp.reset(); i++; } i++; break; } return true; } else { return false; } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/f8bbcf3d0c0f6b720f52a411edeba50f36e6fc11/tnvt.java/clean/tn5250j/src/org/tn5250j/tnvt.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
1250,
17257,
3840,
12,
7229,
1223,
28354,
20,
63,
5717,
1216,
1860,
288,
202,
202,
474,
277,
273,
374,
31,
202,
202,
759,
628,
1438,
17257,
77,
1012,
202,
202,
430,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
1250,
17257,
3840,
12,
7229,
1223,
28354,
20,
63,
5717,
1216,
1860,
288,
202,
202,
474,
277,
273,
374,
31,
202,
202,
759,
628,
1438,
17257,
77,
1012,
202,
202,
430,
261,... |
TreePath current = null; | TreePath current = null; | Object getPreviousVisibleNode(Object node) { Object prev = null; TreePath current = null; if (node != null) prev = getPreviousNode(node); if (prev != null) { current = new TreePath(getPathToRoot(prev, 0)); if (tree.isVisible(current)) return prev; while (prev != null && !tree.isVisible(current)) { prev = getPreviousNode(prev); if (prev != null) current = new TreePath(getPathToRoot(prev, 0)); } } return prev; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1033,
17225,
6207,
907,
12,
921,
756,
13,
282,
288,
565,
1033,
2807,
273,
446,
31,
1377,
4902,
743,
783,
273,
446,
31,
1377,
309,
261,
2159,
480,
446,
13,
1377,
2807,
273,
17225,
907,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1033,
17225,
6207,
907,
12,
921,
756,
13,
282,
288,
565,
1033,
2807,
273,
446,
31,
1377,
4902,
743,
783,
273,
446,
31,
1377,
309,
261,
2159,
480,
446,
13,
1377,
2807,
273,
17225,
907,
... |
if (DEBUG) debug("IO error reading " + propFile + ": " + ioe.getMessage()); | if (Configuration.DEBUG) log.fine("IO error reading " + propFile + ": " + ioe.getMessage()); | private void init() { // default values props.put(REPRODUCIBLE_PRNG, (reproducible ? "true" : "false")); props.put(CHECK_WEAK_KEYS, (checkForWeakKeys ? "true" : "false")); props.put(DO_RSA_BLINDING, (doRSABlinding ? "true" : "false")); // 1. allow site-wide override by reading a properties file String propFile = null; try { propFile = (String) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { return System.getProperty(PROPERTIES_FILE); } }); } catch (SecurityException se) { if (DEBUG) debug("Reading property " + PROPERTIES_FILE + " not allowed. Ignored."); } if (propFile != null) { try { final java.util.Properties temp = new java.util.Properties(); final FileInputStream fin = new FileInputStream(propFile); temp.load(fin); temp.list(System.out); props.putAll(temp); } catch (IOException ioe) { if (DEBUG) debug("IO error reading " + propFile + ": " + ioe.getMessage()); } catch (SecurityException se) { if (DEBUG) debug("Security error reading " + propFile + ": " + se.getMessage()); } } // 2. allow vm-specific override by allowing -D options in launcher handleBooleanProperty(REPRODUCIBLE_PRNG); handleBooleanProperty(CHECK_WEAK_KEYS); handleBooleanProperty(DO_RSA_BLINDING); // re-sync the 'known' properties reproducible = new Boolean((String) props.get(REPRODUCIBLE_PRNG)).booleanValue(); checkForWeakKeys = new Boolean((String) props.get(CHECK_WEAK_KEYS)).booleanValue(); doRSABlinding = new Boolean((String) props.get(DO_RSA_BLINDING)).booleanValue(); // This does not change. props.put(VERSION, Registry.VERSION_STRING); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7172738fba4eab23190cf62c40a31b7348ab1677/Properties.java/clean/core/src/classpath/gnu/gnu/java/security/Properties.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1208,
1435,
225,
288,
565,
368,
805,
924,
565,
3458,
18,
458,
12,
862,
8025,
1212,
57,
7266,
38,
900,
67,
8025,
4960,
16,
261,
266,
11776,
71,
1523,
692,
315,
3767,
6,
294,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1208,
1435,
225,
288,
565,
368,
805,
924,
565,
3458,
18,
458,
12,
862,
8025,
1212,
57,
7266,
38,
900,
67,
8025,
4960,
16,
261,
266,
11776,
71,
1523,
692,
315,
3767,
6,
294,... |
TreeModel mod = tree.getModel(); | if (treeModel != null) { Object root = treeModel.getRoot(); | public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; TreeModel mod = tree.getModel(); if (mod != null) { Object root = mod.getRoot(); if (!tree.isRootVisible()) tree.expandPath(new TreePath(root)); paintRecursive(g, 0, 0, 0, 0, tree, mod, root); if (hasControlIcons()) paintControlIcons(g, 0, 0, 0, 0, tree, mod, root); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12574,
12,
17558,
314,
16,
29058,
276,
13,
202,
95,
202,
202,
46,
2471,
2151,
273,
261,
46,
2471,
13,
276,
31,
202,
202,
430,
261,
3413,
1488,
480,
446,
13,
288,
1033,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12574,
12,
17558,
314,
16,
29058,
276,
13,
202,
95,
202,
202,
46,
2471,
2151,
273,
261,
46,
2471,
13,
276,
31,
202,
202,
430,
261,
3413,
1488,
480,
446,
13,
288,
1033,
... |
FileInputStream in = new FileInputStream(configurationResource); sesProps.load(in); | if (loadDefaults) { Properties schemaProps = new Properties(); java.net.URL file=null; ClassLoader cl = this.getClass().getClassLoader(); if (cl == null) cl = ClassLoader.getSystemClassLoader(); file = cl.getResource("tn5250jSchemas.properties"); schemaProps.load(file.openStream()); String prefix = schemaProps.getProperty("schemaDefault"); sesProps.setProperty("colorBg",schemaProps.getProperty(prefix + ".colorBg")); sesProps.setProperty("colorRed",schemaProps.getProperty(prefix + ".colorRed")); sesProps.setProperty("colorTurq",schemaProps.getProperty(prefix + ".colorTurq")); sesProps.setProperty("colorCursor",schemaProps.getProperty(prefix + ".colorCursor")); sesProps.setProperty("colorGUIField",schemaProps.getProperty(prefix + ".colorGUIField")); sesProps.setProperty("colorWhite",schemaProps.getProperty(prefix + ".colorWhite")); sesProps.setProperty("colorYellow",schemaProps.getProperty(prefix + ".colorYellow")); sesProps.setProperty("colorGreen",schemaProps.getProperty(prefix + ".colorGreen")); sesProps.setProperty("colorPink",schemaProps.getProperty(prefix + ".colorPink")); sesProps.setProperty("colorBlue",schemaProps.getProperty(prefix + ".colorBlue")); sesProps.setProperty("colorSep",schemaProps.getProperty(prefix + ".colorSep")); sesProps.setProperty("colorHexAttr",schemaProps.getProperty(prefix + ".colorHexAttr")); } else { FileInputStream in = new FileInputStream(configurationResource); sesProps.load(in); } | private void loadConfigurationResource() { sesProps = new Properties(); if (configurationResource == null || configurationResource == "") configurationResource = "TN5250JDefaults.props"; try {// FileInputStream in = new FileInputStream(((GlobalConfigure)ConfigureFactory.getInstance()).settingsDirectory()// + configurationResource); FileInputStream in = new FileInputStream(configurationResource); //InputStream in = getClass().getClassLoader().getResourceAsStream(propFileName); sesProps.load(in); } catch (IOException ioe) { System.out.println("Information Message: Properties file is being " + "created for first time use: File name " + configurationResource); } catch (SecurityException se) { System.out.println(se.getMessage()); } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30f98b37d145e16ed4c5e314b8cf6d272bab1023/SessionConfig.java/clean/tn5250j/src/org/tn5250j/SessionConfig.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
1262,
1750,
1420,
1435,
288,
1377,
24138,
5047,
273,
394,
6183,
5621,
1377,
309,
261,
7025,
1420,
422,
446,
747,
1664,
1420,
422,
1408,
13,
540,
1664,
1420,
273,
315,
56,
50,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
1262,
1750,
1420,
1435,
288,
1377,
24138,
5047,
273,
394,
6183,
5621,
1377,
309,
261,
7025,
1420,
422,
446,
747,
1664,
1420,
422,
1408,
13,
540,
1664,
1420,
273,
315,
56,
50,
... |
return mod.getChild(parent, index); | return treeModel.getChild(parent, index); | Object getPreviousSibling(Object node) { TreeModel mod = tree.getModel(); Object parent = getParent(mod.getRoot(), node); if (parent == null) return null; int index = mod.getIndexOfChild(parent, node) - 1; int size = 0; if (!mod.isLeaf(parent)) size = mod.getChildCount(parent); if (index < 0 || index >= size) return null; return mod.getChild(parent, index); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1033,
17225,
10291,
12,
921,
756,
13,
225,
288,
565,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
565,
1033,
982,
273,
5089,
12,
1711,
18,
588,
2375,
9334,
756,
1769,
565,
309,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1033,
17225,
10291,
12,
921,
756,
13,
225,
288,
565,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
565,
1033,
982,
273,
5089,
12,
1711,
18,
588,
2375,
9334,
756,
1769,
565,
309,
261,... |
return path; } | return path; } | public TreePath getClosestPathForLocation(JTree tree, int x, int y) { // FIXME: what if root is hidden? should not depend on (0,0) // should start counting rows from where root is. int row = Math.round(y / getRowHeight()); TreePath path = getPathForRow(tree, row); // no row is visible at this node while (row > 0 && path == null) { --row; path = getPathForRow(tree, row); } return path; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4902,
743,
1927,
383,
7781,
743,
1290,
2735,
12,
46,
2471,
2151,
16,
509,
619,
16,
509,
677,
13,
202,
95,
565,
368,
9852,
30,
4121,
309,
1365,
353,
5949,
35,
1410,
486,
2447... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4902,
743,
1927,
383,
7781,
743,
1290,
2735,
12,
46,
2471,
2151,
16,
509,
619,
16,
509,
677,
13,
202,
95,
565,
368,
9852,
30,
4121,
309,
1365,
353,
5949,
35,
1410,
486,
2447... |
{ return false; } | { return false; } | public boolean isEnabled() { return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
12047,
1435,
202,
202,
95,
1082,
202,
2463,
629,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
12047,
1435,
202,
202,
95,
1082,
202,
2463,
629,
31,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
else throw new ClassNotFoundException(className + ": delegate == null"); | public static Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { if(delegate != null) return delegate.loadClass(className, remoteCodebase, loader); else throw new ClassNotFoundException(className + ": delegate == null"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Util.java/buggy/core/src/classpath/javax/javax/rmi/CORBA/Util.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1659,
16038,
12,
780,
2658,
16,
514,
2632,
1085,
1969,
16,
9403,
4088,
13,
565,
1216,
10403,
225,
288,
565,
309,
12,
22216,
480,
446,
13,
1377,
327,
7152,
18,
945,
797,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1659,
16038,
12,
780,
2658,
16,
514,
2632,
1085,
1969,
16,
9403,
4088,
13,
565,
1216,
10403,
225,
288,
565,
309,
12,
22216,
480,
446,
13,
1377,
327,
7152,
18,
945,
797,
12,
... | |
int paintControlIcons(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object node) { int h = descent; int rowHeight = getRowHeight(); Icon ei = UIManager.getLookAndFeelDefaults().getIcon("Tree.expandedIcon"); Icon ci = UIManager.getLookAndFeelDefaults().getIcon("Tree.collapsedIcon"); Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; if (mod.isLeaf(node)) descent += rowHeight; else { if (depth > 0 || tree.isRootVisible()) descent += rowHeight; int max = 0; if (!mod.isLeaf(node)) max = mod.getChildCount(node); if (tree.isExpanded(new TreePath(getPathToRoot(node, 0)))) { if (!node.equals(mod.getRoot())) ei.paintIcon(tree, g, indentation - rightChildIndent - 3, h); for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (depth == 0 && !tree.isRootVisible()) indent = -1; descent = paintControlIcons(g, indent, descent, i, depth + 1, tree, mod, mod.getChild(node, i)); } } else if (!node.equals(mod.getRoot())) ci.paintIcon(tree, g, indentation - rightChildIndent - 3, descent - getRowHeight()); } return descent; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
509,
12574,
3367,
27510,
12,
17558,
314,
16,
509,
12018,
16,
509,
3044,
319,
16,
13491,
509,
1151,
1854,
16,
509,
3598,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
13491,
1033,
756,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
509,
12574,
3367,
27510,
12,
17558,
314,
16,
509,
12018,
16,
509,
3044,
319,
16,
13491,
509,
1151,
1854,
16,
509,
3598,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
13491,
1033,
756,
1... | ||
if (comboBox.getModel().getSize() != 0 && comboBox.isEnabled()) { if (! isNavigationKey(e.getKeyCode())) { if (! comboBox.isEditable()) if (comboBox.selectWithKeyChar(e.getKeyChar())) e.consume(); } else { if (e.getKeyCode() == KeyEvent.VK_UP && comboBox.isPopupVisible()) selectPreviousPossibleValue(); else if (e.getKeyCode() == KeyEvent.VK_DOWN) { if (comboBox.isPopupVisible()) selectNextPossibleValue(); else comboBox.showPopup(); } else if (e.getKeyCode() == KeyEvent.VK_ENTER || e.getKeyCode() == KeyEvent.VK_ESCAPE) popup.hide(); } } | public void keyPressed(KeyEvent e) throws NotImplementedException { // FIXME: This method calls JComboBox.selectWithKeyChar if the key that // was pressed is not a navigation key. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicComboBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
25053,
3514,
18,
588,
1488,
7675,
588,
1225,
1435,
480,
374,
597,
16778,
3514,
18,
291,
1526,
10756,
288,
309,
16051,
8197,
6417,
653,
12,
73,
18,
588,
653,
1085,
1435,
3719,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
25053,
3514,
18,
588,
1488,
7675,
588,
1225,
1435,
480,
374,
597,
16778,
3514,
18,
291,
1526,
10756,
288,
309,
16051,
8197,
6417,
653,
12,
73,
18,
588,
653,
1085,
1435,
3719,
288,
... | |
public String toString() { | public String toString() { | public String toString() { return null; // TODO } // toString() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/SizeRequirements.java/clean/core/src/classpath/javax/javax/swing/SizeRequirements.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
2463,
446,
31,
368,
2660,
202,
97,
368,
1762,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
2463,
446,
31,
368,
2660,
202,
97,
368,
1762,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return createDefaultCellRenderer(); } | return createDefaultCellRenderer(); } | protected TreeCellRenderer getCellRenderer() { if (currentCellRenderer != null) return currentCellRenderer; return createDefaultCellRenderer(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4902,
4020,
6747,
16458,
6747,
1435,
202,
95,
202,
202,
430,
261,
2972,
4020,
6747,
480,
446,
13,
1082,
202,
2463,
783,
4020,
6747,
31,
202,
202,
2463,
27346,
4020,
6747,
5621,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4902,
4020,
6747,
16458,
6747,
1435,
202,
95,
202,
202,
430,
261,
2972,
4020,
6747,
480,
446,
13,
1082,
202,
2463,
783,
4020,
6747,
31,
202,
202,
2463,
27346,
4020,
6747,
5621,... |
System.out.println("getKeyStrokeText " + lastKeyMnemonic); | public final static String getKeyStrokeText(KeyEvent ke,boolean isAltGr) { if (!workStroke.equals(ke,isAltGr)) { workStroke.setAttributes(ke,isAltGr); lastKeyMnemonic = (String)mappedKeys.get(workStroke); } return lastKeyMnemonic; } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/69e4ad8b79244d7a9ead6ae9be5f21d5cf302742/KeyMapper.java/buggy/tn5250j/src/org/tn5250j/tools/KeyMapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
2332,
18,
659,
18,
8222,
2932,
588,
653,
14602,
1528,
315,
397,
29928,
29668,
20918,
1769,
565,
2332,
18,
659,
18,
8222,
2932,
588,
653,
14602,
1528,
315,
397,
29928,
29668,
20918,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
2332,
18,
659,
18,
8222,
2932,
588,
653,
14602,
1528,
315,
397,
29928,
29668,
20918,
1769,
565,
2332,
18,
659,
18,
8222,
2932,
588,
653,
14602,
1528,
315,
397,
29928,
29668,
20918,
1769,
... | |
} | } | public void setCaretPosition(int position) { if (doc == null) return; if (position < 0 || position > doc.getLength()) throw new IllegalArgumentException(); caret.setDot(position); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
11440,
20731,
2555,
12,
474,
1754,
13,
565,
288,
565,
309,
261,
2434,
422,
446,
13,
1377,
327,
31,
565,
309,
261,
3276,
411,
374,
747,
1754,
405,
997,
18,
588,
1782,
10756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
11440,
20731,
2555,
12,
474,
1754,
13,
565,
288,
565,
309,
261,
2434,
422,
446,
13,
1377,
327,
31,
565,
309,
261,
3276,
411,
374,
747,
1754,
405,
997,
18,
588,
1782,
10756,
... |
return !isExpanded(path); | return !isExpanded(path); | public boolean isCollapsed(TreePath path) { return !isExpanded(path); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
28084,
12,
2471,
743,
589,
13,
225,
288,
202,
202,
2463,
401,
291,
17957,
12,
803,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
28084,
12,
2471,
743,
589,
13,
225,
288,
202,
202,
2463,
401,
291,
17957,
12,
803,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
boolean expanded, Rectangle size) { return null; } | boolean expanded, Rectangle size) { return null; } | public Rectangle getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle size) { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
13264,
5973,
10796,
12,
921,
460,
16,
509,
1027,
16,
509,
3598,
16,
9506,
202,
6494,
8406,
16,
13264,
963,
13,
202,
202,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
13264,
5973,
10796,
12,
921,
460,
16,
509,
1027,
16,
509,
3598,
16,
9506,
202,
6494,
8406,
16,
13264,
963,
13,
202,
202,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
2,
-100... |
public static Class loadClass (String codebases, String name) | public static Class loadClass (String name) | public static Class loadClass (String codebases, String name) throws MalformedURLException, ClassNotFoundException { ClassLoader loader = Thread.currentThread().getContextClassLoader(); //try context class loader first try { return loader.loadClass (name); } catch (ClassNotFoundException e) { // class not found in the local classpath } if (codebases.length() == 0) //=="" { loader = defaultLoader; } else { loader = getClassLoader(codebases); } if (loader == null) { //do not throw NullPointerException throw new ClassNotFoundException ("Could not find class (" + name + ") at codebase (" + codebases + ")"); } return loader.loadClass (name); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c6ebf1f74ce34c04205e65bfd96c25a18c5a0861/RMIClassLoader.java/clean/core/src/classpath/java/java/rmi/server/RMIClassLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1659,
16038,
261,
780,
508,
13,
565,
1216,
20710,
16,
10403,
225,
288,
565,
9403,
4088,
273,
4884,
18,
2972,
3830,
7675,
29120,
7805,
5621,
565,
368,
698,
819,
667,
4088,
1122,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1659,
16038,
261,
780,
508,
13,
565,
1216,
20710,
16,
10403,
225,
288,
565,
9403,
4088,
273,
4884,
18,
2972,
3830,
7675,
29120,
7805,
5621,
565,
368,
698,
819,
667,
4088,
1122,... |
{ } | { } | public void focusGained(FocusEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
7155,
43,
8707,
12,
9233,
1133,
425,
13,
202,
202,
95,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
7155,
43,
8707,
12,
9233,
1133,
425,
13,
202,
202,
95,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
} | } | protected void uninstallListeners() { toolBar.removeFocusListener(toolBarFocusListener); toolBarFocusListener = null; floatFrame.removeWindowListener(windowListener); windowListener = null; toolBar.removeContainerListener(toolBarContListener); toolBarContListener = null; toolBar.removeMouseMotionListener(dockingListener); toolBar.removeMouseListener(dockingListener); dockingListener = null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
16577,
5583,
1435,
565,
288,
565,
5226,
5190,
18,
4479,
9233,
2223,
12,
6738,
5190,
9233,
2223,
1769,
565,
5226,
5190,
9233,
2223,
273,
446,
31,
565,
1431,
3219,
18,
4479,
3829... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
16577,
5583,
1435,
565,
288,
565,
5226,
5190,
18,
4479,
9233,
2223,
12,
6738,
5190,
9233,
2223,
1769,
565,
5226,
5190,
9233,
2223,
273,
446,
31,
565,
1431,
3219,
18,
4479,
3829... |
private void init() { // default values props.put(REPRODUCIBLE_PRNG, (reproducible ? "true" : "false")); props.put(CHECK_WEAK_KEYS, (checkForWeakKeys ? "true" : "false")); props.put(DO_RSA_BLINDING, (doRSABlinding ? "true" : "false")); // 1. allow site-wide override by reading a properties file String propFile = null; try { propFile = (String) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { return System.getProperty(PROPERTIES_FILE); } }); } catch (SecurityException se) { if (DEBUG) debug("Reading property " + PROPERTIES_FILE + " not allowed. Ignored."); } if (propFile != null) { try { final java.util.Properties temp = new java.util.Properties(); final FileInputStream fin = new FileInputStream(propFile); temp.load(fin); temp.list(System.out); props.putAll(temp); } catch (IOException ioe) { if (DEBUG) debug("IO error reading " + propFile + ": " + ioe.getMessage()); } catch (SecurityException se) { if (DEBUG) debug("Security error reading " + propFile + ": " + se.getMessage()); } } // 2. allow vm-specific override by allowing -D options in launcher handleBooleanProperty(REPRODUCIBLE_PRNG); handleBooleanProperty(CHECK_WEAK_KEYS); handleBooleanProperty(DO_RSA_BLINDING); // re-sync the 'known' properties reproducible = new Boolean((String) props.get(REPRODUCIBLE_PRNG)).booleanValue(); checkForWeakKeys = new Boolean((String) props.get(CHECK_WEAK_KEYS)).booleanValue(); doRSABlinding = new Boolean((String) props.get(DO_RSA_BLINDING)).booleanValue(); // This does not change. props.put(VERSION, Registry.VERSION_STRING); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7172738fba4eab23190cf62c40a31b7348ab1677/Properties.java/clean/core/src/classpath/gnu/gnu/java/security/Properties.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
2738,
1435,
95,
759,
1886,
2372,
9693,
18,
458,
12,
862,
8025,
1212,
57,
7266,
38,
900,
67,
8025,
4960,
16,
12,
266,
11776,
71,
1523,
7225,
3767,
15563,
5743,
7923,
1769,
9693,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
2738,
1435,
95,
759,
1886,
2372,
9693,
18,
458,
12,
862,
8025,
1212,
57,
7266,
38,
900,
67,
8025,
4960,
16,
12,
266,
11776,
71,
1523,
7225,
3767,
15563,
5743,
7923,
1769,
9693,
1... | ||
if (parentValue != null) { Object childValue = local.childValue(parentValue == NULL ? null : parentValue); local.valueMap.put(childThread, (childValue == null ? NULL : parentValue)); | if (parentValue != null) { Object childValue = local.childValue(parentValue == NULL ? null : parentValue); local.valueMap.put(childThread, (childValue == null ? NULL : parentValue)); | static void newChildThread(Thread childThread) { // The currentThread is the parent of the new thread. Thread parentThread = Thread.currentThread(); // Note that we don't have to synchronize, as only this thread will // ever modify the returned heritage. ArrayList heritage = (ArrayList)threadMap.get(parentThread); if (heritage != null) { threadMap.put(childThread, heritage.clone()); // Perform the inheritance. Iterator it = heritage.iterator(); int i = heritage.size(); while (--i >= 0) { InheritableThreadLocal local = (InheritableThreadLocal)it.next(); Object parentValue = local.valueMap.get(parentThread); if (parentValue != null) { Object childValue = local.childValue(parentValue == NULL ? null : parentValue); local.valueMap.put(childThread, (childValue == null ? NULL : parentValue)); } } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/InheritableThreadLocal.java/clean/core/src/classpath/java/java/lang/InheritableThreadLocal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
19783,
3830,
12,
3830,
1151,
3830,
13,
288,
202,
202,
759,
1021,
11800,
353,
326,
982,
434,
326,
394,
2650,
18,
202,
202,
3830,
982,
3830,
273,
4884,
18,
2972,
3830,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
19783,
3830,
12,
3830,
1151,
3830,
13,
288,
202,
202,
759,
1021,
11800,
353,
326,
982,
434,
326,
394,
2650,
18,
202,
202,
3830,
982,
3830,
273,
4884,
18,
2972,
3830,
562... |
{ | { | public boolean stopEditing(JTree tree) { if (isEditing(tree)) completeEditing(true, false, false); return !isEditing(tree); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
2132,
28029,
12,
46,
2471,
2151,
13,
202,
95,
565,
309,
261,
291,
28029,
12,
3413,
3719,
1377,
3912,
28029,
12,
3767,
16,
629,
16,
629,
1769,
565,
327,
401,
291,
28029,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
2132,
28029,
12,
46,
2471,
2151,
13,
202,
95,
565,
309,
261,
291,
28029,
12,
3413,
3719,
1377,
3912,
28029,
12,
3767,
16,
629,
16,
629,
1769,
565,
327,
401,
291,
28029,
... |
{ } | { currentCellRenderer = null; rendererPane = null; createdRenderer = false; setCellRenderer(currentCellRenderer); } | protected void uninstallComponents() { // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
16577,
7171,
1435,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
16577,
7171,
1435,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
waker.interrupt(); | waker.interrupt(); | public void stop() { running = false; if (waker != null) waker.interrupt(); synchronized (queueLock) { queue = 0; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/Timer.java/buggy/core/src/classpath/javax/javax/swing/Timer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2132,
1435,
225,
288,
565,
3549,
273,
629,
31,
565,
309,
261,
91,
6388,
480,
446,
13,
565,
341,
6388,
18,
31847,
5621,
565,
3852,
261,
4000,
2531,
13,
1377,
288,
202,
4000,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2132,
1435,
225,
288,
565,
3549,
273,
629,
31,
565,
309,
261,
91,
6388,
480,
446,
13,
565,
341,
6388,
18,
31847,
5621,
565,
3852,
261,
4000,
2531,
13,
1377,
288,
202,
4000,
... |
catch (ThreadDeath death) { throw death; } | public SecureRandom() { Provider[] p = Security.getProviders(); //Format of Key: SecureRandom.algname String key; String classname = null; int i; Enumeration e; for (i = 0; i < p.length; i++) { e = p[i].propertyNames(); while (e.hasMoreElements()) { key = (String) e.nextElement(); if (key.startsWith("SECURERANDOM.")) { if ((classname = p[i].getProperty(key)) != null) { try { secureRandomSpi = (SecureRandomSpi) Class. forName(classname).newInstance(); provider = p[i]; return; } catch (Throwable t) { // Ignore. } } } } } // Nothing found. Fall back to SHA1PRNG secureRandomSpi = new gnu.java.security.provider.SHA1PRNG(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c65f6a6914005749230b8f31c6890448761cd6f4/SecureRandom.java/buggy/core/src/classpath/java/java/security/SecureRandom.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1044,
261,
3830,
758,
421,
443,
421,
13,
288,
604,
443,
421,
31,
289,
225,
1044,
261,
3830,
758,
421,
443,
421,
13,
288,
604,
443,
421,
31,
289,
225,
1044,
261,
3830,
758,
421,
443,
421,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1044,
261,
3830,
758,
421,
443,
421,
13,
288,
604,
443,
421,
31,
289,
225,
1044,
261,
3830,
758,
421,
443,
421,
13,
288,
604,
443,
421,
31,
289,
225,
1044,
261,
3830,
758,
421,
443,
421,
... | |
{ | { | protected ContainerListener createToolBarContListener() { return new ToolBarContListener(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4039,
2223,
752,
6364,
5190,
660,
2223,
1435,
565,
288,
565,
327,
394,
13288,
5190,
660,
2223,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4039,
2223,
752,
6364,
5190,
660,
2223,
1435,
565,
288,
565,
327,
394,
13288,
5190,
660,
2223,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Dimension p = super.getPreferredSize(); return p; | if (prefSize == null) prefSize = super.getPreferredSize(); if (minimumSize != null && prefSize != null && (minimumSize.width > prefSize.width || minimumSize.height > prefSize.height)) prefSize = new Dimension(Math.max(minimumSize.width, prefSize.width), Math.max(minimumSize.height, prefSize.height)); return prefSize; | public Dimension getPreferredSize() { if (preferredSize != null) return preferredSize; if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) return s; } Dimension p = super.getPreferredSize(); return p; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13037,
12822,
4193,
1225,
1435,
202,
95,
565,
309,
261,
23616,
1225,
480,
446,
13,
1377,
327,
9119,
1225,
31,
202,
202,
430,
261,
4881,
480,
446,
13,
202,
202,
95,
1082,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13037,
12822,
4193,
1225,
1435,
202,
95,
565,
309,
261,
23616,
1225,
480,
446,
13,
1377,
327,
9119,
1225,
31,
202,
202,
430,
261,
4881,
480,
446,
13,
202,
202,
95,
1082,
202,
... |
/* FIXME: State might have changed in the peer... Must check. */ | public int getState () { /* FIXME: State might have changed in the peer... Must check. */ return (state & ICONIFIED) != 0 ? ICONIFIED : NORMAL; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/Frame.java/buggy/core/src/classpath/java/java/awt/Frame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
8997,
1832,
225,
288,
540,
327,
261,
2019,
473,
467,
2248,
13519,
13,
480,
374,
692,
467,
2248,
13519,
294,
16362,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
8997,
1832,
225,
288,
540,
327,
261,
2019,
473,
467,
2248,
13519,
13,
480,
374,
692,
467,
2248,
13519,
294,
16362,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
displayInfo(e,"Pressed "); | private void processVTKeyPressed(KeyEvent e){// displayInfo(e,"Pressed "); int keyCode = e.getKeyCode(); if (isLinux && keyCode == e.VK_ALT_GRAPH) { isAltGr = true; } // be careful with the control key if (keyCode == e.VK_UNDEFINED || keyCode == e.VK_CAPS_LOCK || keyCode == e.VK_SHIFT || keyCode == e.VK_ALT || keyCode == e.VK_ALT_GRAPH || keyCode == e.VK_CONTROL ) { return; } // be careful with the control key !!!!!! if (!e.isAltDown() || !e.isShiftDown() || !e.isControlDown() || keyCode != KeyEvent.VK_CONTROL && // be careful about removing this line !e.isActionKey()) {// if (keyCode == KeyEvent.VK_ESCAPE ||// keyCode == KeyEvent.VK_CONTROL ||// keyCode == KeyEvent.VK_BACK_SPACE) {// displayInfo(e,"Pressed added"); keyevent = e; dialog.setVisible(false); dialog.dispose();// } } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d4104819203aa6b5361aa997d2cd29a076f417a7/KeyConfigure.java/buggy/tn5250j/src/org/tn5250j/tools/KeyConfigure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2562,
966,
12,
73,
10837,
24624,
315,
1769,
2562,
966,
12,
73,
10837,
24624,
315,
1769,
2562,
966,
12,
73,
10837,
24624,
315,
1769,
2562,
966,
12,
73,
10837,
24624,
315,
1769,
2562,
966,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2562,
966,
12,
73,
10837,
24624,
315,
1769,
2562,
966,
12,
73,
10837,
24624,
315,
1769,
2562,
966,
12,
73,
10837,
24624,
315,
1769,
2562,
966,
12,
73,
10837,
24624,
315,
1769,
2562,
966,
12,
... | |
public boolean isExpanded(TreePath path) { if (path == null) return false; Object state = nodeStates.get(path); if ((state == null) || (state != EXPANDED)) return false; TreePath parent = path.getParentPath(); if (parent != null) return isExpanded(parent); return true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
17957,
12,
2471,
743,
589,
13,
225,
288,
565,
309,
261,
803,
422,
446,
13,
1377,
327,
629,
31,
565,
1033,
919,
273,
756,
7629,
18,
588,
12,
803,
1769,
565,
309,
14015... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
17957,
12,
2471,
743,
589,
13,
225,
288,
565,
309,
261,
803,
422,
446,
13,
1377,
327,
629,
31,
565,
1033,
919,
273,
756,
7629,
18,
588,
12,
803,
1769,
565,
309,
14015... | ||
if (editingComponent != null) { tree.cancelEditing(); editingComponent = null; } stopEditingTimer(); | realEditor.cancelCellEditing(); finish(); | public void cancelCellEditing() { if (editingComponent != null) { tree.cancelEditing(); editingComponent = null; } stopEditingTimer(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultTreeCellEditor.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3755,
4020,
28029,
1435,
225,
288,
565,
309,
261,
4619,
310,
1841,
480,
446,
13,
1377,
288,
3639,
2151,
18,
10996,
28029,
5621,
3639,
15755,
1841,
273,
446,
31,
1377,
289,
565,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3755,
4020,
28029,
1435,
225,
288,
565,
309,
261,
4619,
310,
1841,
480,
446,
13,
1377,
288,
3639,
2151,
18,
10996,
28029,
5621,
3639,
15755,
1841,
273,
446,
31,
1377,
289,
565,... |
{ | { | public Document getDocument() { return getElement().getDocument(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4319,
9956,
1435,
565,
288,
565,
327,
7426,
7675,
588,
2519,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4319,
9956,
1435,
565,
288,
565,
327,
7426,
7675,
588,
2519,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
} | } | public int getCaretPosition() { return caret.getDot(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
1927,
20731,
2555,
1435,
565,
288,
565,
327,
21683,
18,
588,
10412,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
1927,
20731,
2555,
1435,
565,
288,
565,
327,
21683,
18,
588,
10412,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public void paint(Graphics g, JComponent c) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/ComponentUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/ComponentUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
293,
225,
582,
225,
324,
225,
328,
225,
277,
225,
276,
377,
331,
225,
320,
225,
277,
225,
302,
377,
293,
225,
279,
225,
277,
225,
290,
225,
268,
225,
261,
225,
611,
225,
436,
225,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
293,
225,
582,
225,
324,
225,
328,
225,
277,
225,
276,
377,
331,
225,
320,
225,
277,
225,
302,
377,
293,
225,
279,
225,
277,
225,
290,
225,
268,
225,
261,
225,
611,
225,
436,
225,
2... | ||
AbstractButton button = FindButton(old); | AbstractButton button = findButton(old); | public void setSelected(ButtonModel m, boolean b) { if ((sel != m || b) && (! b || sel == m)) return; if (b && sel != m) { ButtonModel old = sel; sel = m; if (old != null) old.setSelected(false); AbstractButton button = FindButton(old); if (button != null) button.repaint(); } else if (!b && sel == m) m.setSelected(true); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/ButtonGroup.java/buggy/core/src/classpath/javax/javax/swing/ButtonGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23006,
12,
3616,
1488,
312,
16,
1250,
324,
13,
565,
288,
565,
309,
14015,
1786,
480,
312,
747,
324,
13,
597,
16051,
324,
747,
357,
422,
312,
3719,
202,
202,
2463,
31,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23006,
12,
3616,
1488,
312,
16,
1250,
324,
13,
565,
288,
565,
309,
14015,
1786,
480,
312,
747,
324,
13,
597,
16051,
324,
747,
357,
422,
312,
3719,
202,
202,
2463,
31,
202,
... |
protected AccessibleJProgressBar() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JProgressBar.java/buggy/core/src/classpath/javax/javax/swing/JProgressBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1850,
293,
436,
320,
268,
425,
276,
268,
425,
302,
282,
432,
276,
276,
425,
272,
272,
277,
324,
328,
425,
804,
453,
436,
320,
314,
436,
425,
272,
272,
605,
279,
436,
261,
262,
540,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1850,
293,
436,
320,
268,
425,
276,
268,
425,
302,
282,
432,
276,
276,
425,
272,
272,
277,
324,
328,
425,
804,
453,
436,
320,
314,
436,
425,
272,
272,
605,
279,
436,
261,
262,
540,
288,
... | ||
public void setClickCountToStart(int count) { | public void setClickCountToStart(int count) { | public void setClickCountToStart(int count) { // TODO } // setClickCountToStart() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/buggy/core/src/classpath/javax/javax/swing/DefaultCellEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
6563,
1380,
28939,
12,
474,
1056,
13,
288,
202,
202,
759,
2660,
202,
97,
368,
444,
6563,
1380,
28939,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
6563,
1380,
28939,
12,
474,
1056,
13,
288,
202,
202,
759,
2660,
202,
97,
368,
444,
6563,
1380,
28939,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (editingComponent != null) | boolean ret = false; if (realEditor.stopCellEditing()) | public boolean stopCellEditing() { if (editingComponent != null) { stopEditingTimer(); tree.stopEditing(); editingComponent = null; return true; } return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultTreeCellEditor.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
2132,
4020,
28029,
1435,
225,
288,
565,
1250,
325,
273,
629,
31,
309,
261,
7688,
6946,
18,
5681,
4020,
28029,
10756,
1377,
288,
3639,
2132,
28029,
6777,
5621,
3639,
2151,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
2132,
4020,
28029,
1435,
225,
288,
565,
1250,
325,
273,
629,
31,
309,
261,
7688,
6946,
18,
5681,
4020,
28029,
10756,
1377,
288,
3639,
2132,
28029,
6777,
5621,
3639,
2151,
18,
... |
super(reason); | public UserException(String reason) { super(reason); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72c2f223affb33a2850592b25490f4663c651bee/UserException.java/buggy/core/src/classpath/org/org/omg/CORBA/UserException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2177,
503,
12,
780,
3971,
13,
225,
288,
377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2177,
503,
12,
780,
3971,
13,
225,
288,
377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
} | } | public View getView(int index) { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4441,
8893,
12,
474,
770,
13,
565,
288,
565,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4441,
8893,
12,
474,
770,
13,
565,
288,
565,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
fm.getHeight()); | fm.getHeight()); | Rectangle getCellBounds(int x, int y, Object cell) { if (cell != null) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(f); if (s != null) return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s) + 4, fm.getHeight()); } return new Rectangle(x, y, 0, 0); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
13264,
16458,
5694,
12,
474,
619,
16,
509,
677,
16,
1033,
2484,
13,
225,
288,
1377,
309,
261,
3855,
480,
446,
13,
1377,
288,
202,
202,
780,
272,
273,
2484,
18,
10492,
5621,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
13264,
16458,
5694,
12,
474,
619,
16,
509,
677,
16,
1033,
2484,
13,
225,
288,
1377,
309,
261,
3855,
480,
446,
13,
1377,
288,
202,
202,
780,
272,
273,
2484,
18,
10492,
5621,
202,
202,
... |
} | } | protected void installNonRolloverBorders(JComponent c) { Component[] components = toolBar.getComponents(); for (int i = 0; i < components.length; i++) setBorderToNonRollover(components[i]); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3799,
3989,
4984,
21896,
21621,
12,
46,
1841,
276,
13,
565,
288,
565,
5435,
8526,
4085,
273,
5226,
5190,
18,
588,
7171,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3799,
3989,
4984,
21896,
21621,
12,
46,
1841,
276,
13,
565,
288,
565,
5435,
8526,
4085,
273,
5226,
5190,
18,
588,
7171,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,... |
return 0; | return 0; | public int getIndexAtPoint(Point value0) { return 0; // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
8088,
861,
2148,
12,
2148,
460,
20,
13,
565,
288,
1082,
202,
2463,
374,
31,
368,
2660,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
8088,
861,
2148,
12,
2148,
460,
20,
13,
565,
288,
1082,
202,
2463,
374,
31,
368,
2660,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
{ return false; } | { return (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.CONTIGUOUS_TREE_SELECTION); } | protected boolean isMultiSelectEvent(MouseEvent event) { // FIXME: not implemented return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
25129,
3391,
1133,
12,
9186,
1133,
871,
13,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
202,
202,
2463,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
25129,
3391,
1133,
12,
9186,
1133,
871,
13,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
202,
202,
2463,
629,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
throws NotImplementedException | public int getAccessibleChildrenCount(JComponent c) throws NotImplementedException { // FIXME: Need to implement return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicComboBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
336,
10451,
4212,
1380,
12,
46,
1841,
276,
13,
377,
288,
565,
368,
9852,
30,
12324,
358,
2348,
565,
327,
374,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
336,
10451,
4212,
1380,
12,
46,
1841,
276,
13,
377,
288,
565,
368,
9852,
30,
12324,
358,
2348,
565,
327,
374,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
public void fill(Shape shape, AffineTransform tx, Color color, int mode); | public void fill(Shape shape, Shape clip, AffineTransform tx, Color color, int mode); | public void fill(Shape shape, AffineTransform tx, Color color, int mode); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4557d0702a8d0890ae78e109ce9a6ba79d7a5beb/Surface.java/buggy/gui/src/driver/org/jnode/driver/video/Surface.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
12,
8500,
2179,
16,
23906,
558,
4059,
2229,
16,
5563,
2036,
16,
509,
1965,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
12,
8500,
2179,
16,
23906,
558,
4059,
2229,
16,
5563,
2036,
16,
509,
1965,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
{ } | { } | public void actionPerformed(ActionEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
202,
202,
95,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
202,
202,
95,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
{ | { | protected Border createNonRolloverBorder() { return new EtchedBorderUIResource(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
13525,
752,
3989,
4984,
21896,
8107,
1435,
565,
288,
565,
327,
394,
512,
88,
2049,
8107,
5370,
1420,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
13525,
752,
3989,
4984,
21896,
8107,
1435,
565,
288,
565,
327,
394,
512,
88,
2049,
8107,
5370,
1420,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
public void remove(int index) | public void remove(Component component) | public void remove(int index) { removeTabAt(index); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTabbedPane.java/buggy/core/src/classpath/javax/javax/swing/JTabbedPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
12,
1841,
1794,
13,
225,
288,
565,
1206,
5661,
861,
12,
1615,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
12,
1841,
1794,
13,
225,
288,
565,
1206,
5661,
861,
12,
1615,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
this.maxlen = length; | public synchronized void setLength(int length) { if (length < 0) throw new IllegalArgumentException("Invalid length: " + length); if (offset + length > buffer.length) throw new IllegalArgumentException("Potential buffer overflow - offset: " + offset + " length: " + length); this.length = length; } | 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 | [
1,
8585,
326,
22398,
316,
326,
981,
30,
333,
18,
1896,
1897,
273,
769,
31,
225,
202,
2211,
18,
1896,
1897,
273,
769,
31,
293,
2211,
18,
1896,
1897,
273,
769,
31,
225,
795,
291,
18,
1896,
1897,
273,
769,
31,
324,
2211,
18,
1896,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
333,
18,
1896,
1897,
273,
769,
31,
225,
202,
2211,
18,
1896,
1897,
273,
769,
31,
293,
2211,
18,
1896,
1897,
273,
769,
31,
225,
795,
291,
18,
1896,
1897,
273,
769,
31,
324,
2211,
18,
1896,
... | |
{ TreeModel mod = tree.getModel(); | { | public void actionPerformed(ActionEvent e) { TreeModel mod = tree.getModel(); Object last = tree.getLeadSelectionPath().getLastPathComponent(); if (e.getActionCommand().equals("selectParent")) { TreePath path = new TreePath(getPathToRoot(last, 0)); Object p = getParent(mod.getRoot(), last); if (!mod.isLeaf(last) && tree.isExpanded(path)) tree.collapsePath(path); else if (p != null) selectPath(tree, new TreePath(getPathToRoot(p, 0))); } else if (e.getActionCommand().equals("selectChild")) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!mod.isLeaf(last) && tree.isCollapsed(path)) tree.expandPath(path); else { Object next = getNextVisibleNode(last); if (next != null) selectPath(tree, new TreePath(getPathToRoot(next, 0))); } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
225,
288,
1377,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
1377,
1033,
1142,
273,
2151,
18,
588,
9678,
6233,
743,
7675,
588,
3024,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
225,
288,
1377,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
1377,
1033,
1142,
273,
2151,
18,
588,
9678,
6233,
743,
7675,
588,
3024,
... |
throw new InternalError ("not implemented"); | return super.getActions(); | public Action[] getActions () { throw new InternalError ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/20f5673386408fafdc5023d9aa75062c49b110c6/JFormattedTextField.java/clean/core/src/classpath/javax/javax/swing/JFormattedTextField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4382,
8526,
336,
6100,
1832,
225,
288,
377,
327,
2240,
18,
588,
6100,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4382,
8526,
336,
6100,
1832,
225,
288,
377,
327,
2240,
18,
588,
6100,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
{ | { | public void setText(String text) { try { doc.remove(0, doc.getLength()); doc.insertString(0, text, null); } catch (BadLocationException e) { // This can never happen. } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7883,
12,
780,
977,
13,
565,
288,
565,
775,
565,
288,
202,
2434,
18,
4479,
12,
20,
16,
997,
18,
588,
1782,
10663,
202,
2434,
18,
6387,
780,
12,
20,
16,
977,
16,
446,
1769... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7883,
12,
780,
977,
13,
565,
288,
565,
775,
565,
288,
202,
2434,
18,
4479,
12,
20,
16,
997,
18,
588,
1782,
10663,
202,
2434,
18,
6387,
780,
12,
20,
16,
977,
16,
446,
1769... |
if (config == null) { String conf = (String) AccessController.doPrivileged (new PrivilegedAction() { public Object run() { return Security.getProperty ("login.configuration.provider"); } }); try { if (conf != null) config = (Configuration) Class.forName (conf).newInstance(); else config = new NullConfiguration(); } catch (Exception x) { config = new NullConfiguration(); } } | static Configuration getConfig() { return config; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045a5b41cdfa747889101d3993040acf89788bc4/Configuration.java/buggy/core/src/classpath/javax/javax/security/auth/login/Configuration.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1425,
422,
446,
13,
288,
514,
2195,
273,
261,
780,
13,
25556,
18,
2896,
18845,
261,
2704,
24897,
1435,
288,
1071,
1033,
1086,
1435,
288,
327,
6036,
18,
588,
1396,
7566,
5819,
18,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1425,
422,
446,
13,
288,
514,
2195,
273,
261,
780,
13,
25556,
18,
2896,
18845,
261,
2704,
24897,
1435,
288,
1071,
1033,
1086,
1435,
288,
327,
6036,
18,
588,
1396,
7566,
5819,
18,
7... | |
return null; | return null; | getAlignedSizeRequirements(SizeRequirements[] children) { return null; // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/SizeRequirements.java/buggy/core/src/classpath/javax/javax/swing/SizeRequirements.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
336,
28495,
1225,
15465,
12,
1225,
15465,
8526,
2325,
13,
225,
288,
202,
202,
2463,
446,
31,
368,
2660,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
336,
28495,
1225,
15465,
12,
1225,
15465,
8526,
2325,
13,
225,
288,
202,
202,
2463,
446,
31,
368,
2660,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
revalidate(); repaint(); } | revalidate(); repaint(); } | public void setDocument(Document newDoc) { Document oldDoc = doc; doc = newDoc; firePropertyChange("document", oldDoc, newDoc); revalidate(); repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
2519,
12,
2519,
394,
1759,
13,
225,
288,
565,
4319,
1592,
1759,
273,
997,
31,
565,
997,
273,
394,
1759,
31,
565,
4452,
1396,
3043,
2932,
5457,
3113,
1592,
1759,
16,
394,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
2519,
12,
2519,
394,
1759,
13,
225,
288,
565,
4319,
1592,
1759,
273,
997,
31,
565,
997,
273,
394,
1759,
31,
565,
4452,
1396,
3043,
2932,
5457,
3113,
1592,
1759,
16,
394,... |
boolean isLeaf) { | boolean isLeaf) { | void paintNode(Graphics g, int x, int y, JTree tree, Object node, boolean isLeaf) { TreePath curr = new TreePath(getPathToRoot(node, 0)); boolean selected = tree.isPathSelected(curr); boolean expanded = false; boolean hasIcons = false; if (tree.isVisible(curr)) { if (!isLeaf) expanded = tree.isExpanded(curr); if (editingComponent != null && editingPath != null && isEditing(tree) && node.equals(editingPath.getLastPathComponent())) { Rectangle bounds = getPathBounds(tree, editingPath); rendererPane.paintComponent(g, editingComponent.getParent(), null, new Rectangle(0, 0, bounds.width, bounds.height)); } else { TreeCellRenderer dtcr = tree.getCellRenderer(); if (dtcr == null) dtcr = createDefaultCellRenderer(); int row = getRowForPath(tree, curr); Component c = dtcr.getTreeCellRendererComponent(tree, node, selected, expanded, isLeaf, row, false); rendererPane.paintComponent(g, c, c.getParent(), getCellBounds(x, y, node)); } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
918,
12574,
907,
12,
17558,
314,
16,
509,
619,
16,
509,
677,
16,
804,
2471,
2151,
16,
1033,
756,
16,
540,
1250,
31356,
13,
202,
95,
565,
4902,
743,
4306,
273,
394,
4902,
743,
12,
588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
918,
12574,
907,
12,
17558,
314,
16,
509,
619,
16,
509,
677,
16,
804,
2471,
2151,
16,
1033,
756,
16,
540,
1250,
31356,
13,
202,
95,
565,
4902,
743,
4306,
273,
394,
4902,
743,
12,
588,... |
} | } | public int getScrollableUnitIncrement(Rectangle visible, int orientation, int direction) { // We return 1/10 of the visible area as documented in Sun's API docs. if (orientation == SwingConstants.HORIZONTAL) return visible.width / 10; else if (orientation == SwingConstants.VERTICAL) return visible.height / 10; else throw new IllegalArgumentException("orientation must be either " + "javax.swing.SwingConstants.VERTICAL " + "or " + "javax.swing.SwingConstants.HORIZONTAL" ); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
11971,
30453,
2802,
10798,
12,
19463,
6021,
16,
509,
9820,
16,
4766,
3639,
509,
4068,
13,
565,
288,
565,
368,
1660,
327,
404,
19,
2163,
434,
326,
6021,
5091,
487,
23051,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
11971,
30453,
2802,
10798,
12,
19463,
6021,
16,
509,
9820,
16,
4766,
3639,
509,
4068,
13,
565,
288,
565,
368,
1660,
327,
404,
19,
2163,
434,
326,
6021,
5091,
487,
23051,
316,
... |
TreeModel mod = tree.getModel(); | private Object findNode(Object root, Object node) { TreeModel mod = tree.getModel(); int size = 0; if (!mod.isLeaf(root)) size = mod.getChildCount(root); for (int i = 0; i < size; i++) { if (mod.getIndexOfChild(root, node) != -1) return root; Object n = findNode(mod.getChild(root, i), node); if (n != null) return n; } return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1033,
1104,
907,
12,
921,
1365,
16,
1033,
756,
13,
225,
288,
4202,
509,
963,
273,
374,
31,
565,
309,
16051,
1711,
18,
291,
9858,
12,
3085,
3719,
1377,
963,
273,
681,
18,
588,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1033,
1104,
907,
12,
921,
1365,
16,
1033,
756,
13,
225,
288,
4202,
509,
963,
273,
374,
31,
565,
309,
16051,
1711,
18,
291,
9858,
12,
3085,
3719,
1377,
963,
273,
681,
18,
588,
17... | |
} | } | public void setEditable(boolean newValue) { if (editable == newValue) return; if (newValue == true) caretBlinkTimer.start(); else { caretBlinkTimer.stop(); caret.setVisible(false); } boolean oldValue = editable; editable = newValue; firePropertyChange("editable", oldValue, newValue); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
15470,
12,
6494,
6129,
13,
565,
288,
565,
309,
261,
19653,
422,
6129,
13,
1377,
327,
31,
565,
309,
261,
2704,
620,
422,
638,
13,
1377,
21683,
38,
1232,
6777,
18,
1937,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
15470,
12,
6494,
6129,
13,
565,
288,
565,
309,
261,
19653,
422,
6129,
13,
1377,
327,
31,
565,
309,
261,
2704,
620,
422,
638,
13,
1377,
21683,
38,
1232,
6777,
18,
1937,
... |
} | } | public void updateUI() { setUI((TextUI) UIManager.getUI(this)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1089,
5370,
1435,
565,
288,
565,
444,
5370,
12443,
1528,
5370,
13,
6484,
1318,
18,
588,
5370,
12,
2211,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1089,
5370,
1435,
565,
288,
565,
444,
5370,
12443,
1528,
5370,
13,
6484,
1318,
18,
588,
5370,
12,
2211,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
} | } | protected TreeCellEditor createDefaultCellEditor() { if (currentCellRenderer != null) return new DefaultTreeCellEditor(tree, (DefaultTreeCellRenderer) currentCellRenderer, cellEditor); return new DefaultTreeCellEditor(tree, (DefaultTreeCellRenderer) createDefaultCellRenderer(), cellEditor); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4902,
4020,
6946,
27346,
4020,
6946,
1435,
202,
95,
565,
309,
261,
2972,
4020,
6747,
480,
446,
13,
1377,
327,
394,
2989,
2471,
4020,
6946,
12,
3413,
16,
4766,
4202,
261,
1868,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4902,
4020,
6946,
27346,
4020,
6946,
1435,
202,
95,
565,
309,
261,
2972,
4020,
6747,
480,
446,
13,
1377,
327,
394,
2989,
2471,
4020,
6946,
12,
3413,
16,
4766,
4202,
261,
1868,
... |
public InternalError(String s) { super(s); | public InternalError() { | public InternalError(String s) { super(s); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/InternalError.java/buggy/core/src/classpath/java/java/lang/InternalError.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3186,
668,
12,
780,
272,
13,
225,
202,
95,
3196,
202,
9565,
12,
87,
1769,
225,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3186,
668,
12,
780,
272,
13,
225,
202,
95,
3196,
202,
9565,
12,
87,
1769,
225,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
protected final boolean negotiate(byte abyte0[]) throws IOException { int i = 0; // from server negotiations if (abyte0[i] == IAC) { // -1 while (i < abyte0.length && abyte0[i++] == -1) // while(i < abyte0.length && (abyte0[i] == -1 || abyte0[i++] == // 0x20)) switch (abyte0[i++]) { // we will not worry about what it WONT do case WONT: // -4 default: break; case DO: //-3 switch (abyte0[i]) { case TERMINAL_TYPE: // 24 baosp.write(IAC); baosp.write(WILL); baosp.write(TERMINAL_TYPE); writeByte(baosp.toByteArray()); baosp.reset(); break; case OPT_END_OF_RECORD: // 25 baosp.write(IAC); baosp.write(WILL); baosp.write(OPT_END_OF_RECORD); writeByte(baosp.toByteArray()); baosp.reset(); break; case TRANSMIT_BINARY: // 0 baosp.write(IAC); baosp.write(WILL); baosp.write(TRANSMIT_BINARY); writeByte(baosp.toByteArray()); baosp.reset(); break; case TIMING_MARK: // 6 rfc860 // System.out.println("Timing Mark Received and notifying " // + // "the server that we will not do it"); baosp.write(IAC); baosp.write(WONT); baosp.write(TIMING_MARK); writeByte(baosp.toByteArray()); baosp.reset(); break; case NEW_ENVIRONMENT: // 39 rfc1572 if (devName == null && user == null) { baosp.write(IAC); baosp.write(WONT); baosp.write(NEW_ENVIRONMENT); writeByte(baosp.toByteArray()); baosp.reset(); } else { baosp.write(IAC); baosp.write(WILL); baosp.write(NEW_ENVIRONMENT); writeByte(baosp.toByteArray()); baosp.reset(); } break; default: // every thing else we will not do at this time baosp.write(IAC); baosp.write(WONT); baosp.write(abyte0[i]); // either writeByte(baosp.toByteArray()); baosp.reset(); break; } i++; break; case WILL: switch (abyte0[i]) { case OPT_END_OF_RECORD: // 25 baosp.write(IAC); baosp.write(DO); baosp.write(OPT_END_OF_RECORD); writeByte(baosp.toByteArray()); baosp.reset(); break; case TRANSMIT_BINARY: // '\0' baosp.write(IAC); baosp.write(DO); baosp.write(TRANSMIT_BINARY); writeByte(baosp.toByteArray()); baosp.reset(); break; } i++; break; case SB: // -6 if (abyte0[i] == NEW_ENVIRONMENT && abyte0[i + 1] == 1) { negNewEnvironment(); while (++i < abyte0.length && abyte0[i + 1] != IAC) ; } if (abyte0[i] == TERMINAL_TYPE && abyte0[i + 1] == 1) { baosp.write(IAC); baosp.write(SB); baosp.write(TERMINAL_TYPE); baosp.write(QUAL_IS); if (!support132) baosp.write("IBM-3179-2".getBytes()); else baosp.write("IBM-3477-FC".getBytes()); baosp.write(IAC); baosp.write(SE); writeByte(baosp.toByteArray()); baosp.reset(); i++; } i++; break; } return true; } else { return false; } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/f8bbcf3d0c0f6b720f52a411edeba50f36e6fc11/tnvt.java/clean/tn5250j/src/org/tn5250j/tnvt.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
1250,
17257,
3840,
12,
7229,
1223,
28354,
20,
63,
5717,
1216,
1860,
288,
202,
202,
474,
277,
273,
374,
31,
202,
202,
759,
628,
1438,
17257,
77,
1012,
202,
202,
430,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
1250,
17257,
3840,
12,
7229,
1223,
28354,
20,
63,
5717,
1216,
1860,
288,
202,
202,
474,
277,
273,
374,
31,
202,
202,
759,
628,
1438,
17257,
77,
1012,
202,
202,
430,
261,... | ||
} | } | public void setText(String text) { try { doc.remove(0, doc.getLength()); doc.insertString(0, text, null); } catch (BadLocationException e) { // This can never happen. } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7883,
12,
780,
977,
13,
565,
288,
565,
775,
565,
288,
202,
2434,
18,
4479,
12,
20,
16,
997,
18,
588,
1782,
10663,
202,
2434,
18,
6387,
780,
12,
20,
16,
977,
16,
446,
1769... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7883,
12,
780,
977,
13,
565,
288,
565,
775,
565,
288,
202,
2434,
18,
4479,
12,
20,
16,
997,
18,
588,
1782,
10663,
202,
2434,
18,
6387,
780,
12,
20,
16,
977,
16,
446,
1769... |
if (mod != null) { Object root = mod.getRoot(); if (!tree.isRootVisible()) tree.expandPath(new TreePath(root)); paintRecursive(g, 0, 0, 0, 0, tree, mod, root); if (hasControlIcons()) paintControlIcons(g, 0, 0, 0, 0, tree, mod, root); } | paintRecursive(g, 0, 0, 0, 0, tree, treeModel, root); if (hasControlIcons()) paintControlIcons(g, 0, 0, 0, 0, tree, treeModel, root); } | public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; TreeModel mod = tree.getModel(); if (mod != null) { Object root = mod.getRoot(); if (!tree.isRootVisible()) tree.expandPath(new TreePath(root)); paintRecursive(g, 0, 0, 0, 0, tree, mod, root); if (hasControlIcons()) paintControlIcons(g, 0, 0, 0, 0, tree, mod, root); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12574,
12,
17558,
314,
16,
29058,
276,
13,
202,
95,
202,
202,
46,
2471,
2151,
273,
261,
46,
2471,
13,
276,
31,
202,
202,
2471,
1488,
681,
273,
2151,
18,
588,
1488,
5621... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12574,
12,
17558,
314,
16,
29058,
276,
13,
202,
95,
202,
202,
46,
2471,
2151,
273,
261,
46,
2471,
13,
276,
31,
202,
202,
2471,
1488,
681,
273,
2151,
18,
588,
1488,
5621... |
installKeyboardActions(); | installKeyboardActions(); | public void installUI(JComponent c) { super.installUI(c); tree = (JTree) c; installDefaults(); currentCellRenderer = createDefaultCellRenderer(); rendererPane = createCellRendererPane(); createdRenderer = true; setCellEditor(createDefaultCellEditor()); createdCellEditor = true; isEditing = false; TreeModel mod = tree.getModel(); setModel(mod); tree.setRootVisible(true); if (mod != null) tree.expandPath(new TreePath(mod.getRoot())); treeSelectionModel = tree.getSelectionModel(); installKeyboardActions(); installListeners(); completeUIInstall(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3799,
5370,
12,
46,
1841,
276,
13,
202,
95,
202,
202,
9565,
18,
5425,
5370,
12,
71,
1769,
202,
202,
3413,
273,
261,
46,
2471,
13,
276,
31,
565,
3799,
7019,
5621,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3799,
5370,
12,
46,
1841,
276,
13,
202,
95,
202,
202,
9565,
18,
5425,
5370,
12,
71,
1769,
202,
202,
3413,
273,
261,
46,
2471,
13,
276,
31,
565,
3799,
7019,
5621,
3639,
... |
throw new IllegalArgumentException(); | throw new IllegalArgumentException("address may not be null"); | public void setSocketAddress(SocketAddress address) throws IllegalArgumentException { if (address == null) throw new IllegalArgumentException(); InetSocketAddress tmp = (InetSocketAddress) address; this.address = tmp.getAddress(); this.port = tmp.getPort(); } | 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 | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
15520,
12,
15520,
1758,
13,
1216,
2754,
288,
202,
202,
430,
261,
2867,
422,
446,
13,
1082,
202,
12849,
394,
2754,
5621,
202,
202,
382,
278,
15520,
1853,
273,
261,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
15520,
12,
15520,
1758,
13,
1216,
2754,
288,
202,
202,
430,
261,
2867,
422,
446,
13,
1082,
202,
12849,
394,
2754,
5621,
202,
202,
382,
278,
15520,
1853,
273,
261,
38... |
private void init() { // default values props.put(REPRODUCIBLE_PRNG, (reproducible ? "true" : "false")); props.put(CHECK_WEAK_KEYS, (checkForWeakKeys ? "true" : "false")); props.put(DO_RSA_BLINDING, (doRSABlinding ? "true" : "false")); // 1. allow site-wide override by reading a properties file String propFile = null; try { propFile = (String) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { return System.getProperty(PROPERTIES_FILE); } }); } catch (SecurityException se) { if (DEBUG) debug("Reading property " + PROPERTIES_FILE + " not allowed. Ignored."); } if (propFile != null) { try { final java.util.Properties temp = new java.util.Properties(); final FileInputStream fin = new FileInputStream(propFile); temp.load(fin); temp.list(System.out); props.putAll(temp); } catch (IOException ioe) { if (DEBUG) debug("IO error reading " + propFile + ": " + ioe.getMessage()); } catch (SecurityException se) { if (DEBUG) debug("Security error reading " + propFile + ": " + se.getMessage()); } } // 2. allow vm-specific override by allowing -D options in launcher handleBooleanProperty(REPRODUCIBLE_PRNG); handleBooleanProperty(CHECK_WEAK_KEYS); handleBooleanProperty(DO_RSA_BLINDING); // re-sync the 'known' properties reproducible = new Boolean((String) props.get(REPRODUCIBLE_PRNG)).booleanValue(); checkForWeakKeys = new Boolean((String) props.get(CHECK_WEAK_KEYS)).booleanValue(); doRSABlinding = new Boolean((String) props.get(DO_RSA_BLINDING)).booleanValue(); // This does not change. props.put(VERSION, Registry.VERSION_STRING); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7172738fba4eab23190cf62c40a31b7348ab1677/Properties.java/clean/core/src/classpath/gnu/gnu/java/security/Properties.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
2738,
1435,
95,
759,
1886,
2372,
9693,
18,
458,
12,
862,
8025,
1212,
57,
7266,
38,
900,
67,
8025,
4960,
16,
12,
266,
11776,
71,
1523,
7225,
3767,
15563,
5743,
7923,
1769,
9693,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
2738,
1435,
95,
759,
1886,
2372,
9693,
18,
458,
12,
862,
8025,
1212,
57,
7266,
38,
900,
67,
8025,
4960,
16,
12,
266,
11776,
71,
1523,
7225,
3767,
15563,
5743,
7923,
1769,
9693,
1... | ||
} | } | public boolean isEditable() { return editable; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
15470,
1435,
565,
288,
565,
327,
13754,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
15470,
1435,
565,
288,
565,
327,
13754,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public TreeCancelEditingAction() { } | public TreeCancelEditingAction(String name) { } | public TreeCancelEditingAction() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
4902,
6691,
28029,
1803,
1435,
202,
202,
95,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
4902,
6691,
28029,
1803,
1435,
202,
202,
95,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
this(orientation, 0, 10, 0, 100); | this(SwingConstants.VERTICAL, 0, 10, 0, 100); | public JScrollBar(int orientation) { this(orientation, 0, 10, 0, 100); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JScrollBar.java/buggy/core/src/classpath/javax/javax/swing/JScrollBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
6806,
5190,
12,
474,
9820,
13,
225,
288,
565,
333,
12,
6050,
310,
2918,
18,
21654,
10109,
16,
374,
16,
1728,
16,
374,
16,
2130,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
6806,
5190,
12,
474,
9820,
13,
225,
288,
565,
333,
12,
6050,
310,
2918,
18,
21654,
10109,
16,
374,
16,
1728,
16,
374,
16,
2130,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-... |
{ | { | public ViewFactory getViewFactory() { View parent = getParent(); return parent != null ? parent.getViewFactory() : null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4441,
1733,
8893,
1733,
1435,
565,
288,
565,
4441,
982,
273,
5089,
5621,
565,
327,
982,
480,
446,
692,
982,
18,
588,
1767,
1733,
1435,
294,
446,
31,
225,
289,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4441,
1733,
8893,
1733,
1435,
565,
288,
565,
4441,
982,
273,
5089,
5621,
565,
327,
982,
480,
446,
692,
982,
18,
588,
1767,
1733,
1435,
294,
446,
31,
225,
289,
2,
-100,
-100,
-100,... |
} else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.CONTIGUOUS_TREE_SELECTION) { | } else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.CONTIGUOUS_TREE_SELECTION) { | void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION) { tree.addSelectionPath(path); tree.setLeadSelectionPath(path); } else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.CONTIGUOUS_TREE_SELECTION) { // TODO } else { tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); tree.getSelectionModel().clearSelection(); tree.addSelectionPath(path); tree.setLeadSelectionPath(path); } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
918,
2027,
743,
12,
46,
2471,
2151,
16,
4902,
743,
589,
13,
282,
288,
1377,
309,
261,
803,
480,
446,
13,
1377,
288,
3639,
309,
261,
3413,
18,
588,
6233,
1488,
7675,
588,
6233,
2309,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
918,
2027,
743,
12,
46,
2471,
2151,
16,
4902,
743,
589,
13,
282,
288,
1377,
309,
261,
803,
480,
446,
13,
1377,
288,
3639,
309,
261,
3413,
18,
588,
6233,
1488,
7675,
588,
6233,
2309,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.