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 |
|---|---|---|---|---|---|---|
} | } | public TreePath getEditingPath(JTree tree) { return editingPath; } | 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,
21221,
310,
743,
12,
46,
2471,
2151,
13,
202,
95,
565,
327,
15755,
743,
31,
202,
97,
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,
225,
202,
482,
4902,
743,
21221,
310,
743,
12,
46,
2471,
2151,
13,
202,
95,
565,
327,
15755,
743,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if (!tree.getModel().isLeaf(last)) { if (tree.isExpanded(path)) tree.collapsePath(path); else tree.expandPath(path); } | if (!treeModel.isLeaf(last)) toggleExpandState(path); | public void actionPerformed(ActionEvent e) { TreePath lead = tree.getLeadSelectionPath(); if (e.getActionCommand().equals("selectPreviousChangeLead") || e.getActionCommand().equals("selectPreviousExtendSelection") || e.getActionCommand().equals("selectPrevious") || e.getActionCommand().equals("selectNext") || e.getActionCommand().equals("selectNextExtendSelection") || e.getActionCommand().equals("selectNextChangeLead")) (new TreeIncrementAction(0, "")).actionPerformed(e); else if (e.getActionCommand().equals("selectParent") || e.getActionCommand().equals("selectChild")) (new TreeTraverseAction(0, "")).actionPerformed(e); else if (e.getActionCommand().equals("selectAll")) { TreePath[] paths = new TreePath[tree.getRowCount()]; Object curr = getNextVisibleNode(tree.getModel().getRoot()); int i = 0; while (curr != null && i < paths.length) { paths[i] = new TreePath(getPathToRoot(curr, 0)); i++; } tree.addSelectionPaths(paths); } else if (e.getActionCommand().equals("startEditing")) tree.startEditingAtPath(lead); else if (e.getActionCommand().equals("toggle")) { if (tree.isEditing()) tree.stopEditing(); else { Object last = lead.getLastPathComponent(); TreePath path = new TreePath(getPathToRoot(last, 0)); if (!tree.getModel().isLeaf(last)) { if (tree.isExpanded(path)) tree.collapsePath(path); else tree.expandPath(path); } } } else if (e.getActionCommand().equals("clearSelection")) tree.clearSelection(); if (tree.isEditing() && !e.getActionCommand().equals("startEditing")) tree.cancelEditing(); tree.scrollPathToVisible(lead); } | 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,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
565,
288,
1377,
4902,
743,
5871,
273,
2151,
18,
588,
9678,
6233,
743,
5621,
1377,
309,
261,
73,
18,
588,
1803,
2189,
7675,
14963,
2932,
4025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26100,
12,
1803,
1133,
425,
13,
565,
288,
1377,
4902,
743,
5871,
273,
2151,
18,
588,
9678,
6233,
743,
5621,
1377,
309,
261,
73,
18,
588,
1803,
2189,
7675,
14963,
2932,
4025,
... |
int halfHeight = getRowHeight() / 2; | int halfHeight = getRowHeight() / 2; | int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; boolean isRootVisible = tree.isRootVisible(); if (mod.isLeaf(curr)) { paintNode(g, indentation + 4, descent, tree, curr, true); descent += getRowHeight(); } else { if (depth > 0 || isRootVisible) { paintNode(g, indentation + 4, descent, tree, curr, false); descent += getRowHeight(); y0 += halfHeight; } int max = 0; if (!mod.isLeaf(curr)) max = mod.getChildCount(curr); if (tree.isExpanded(new TreePath(getPathToRoot(curr, 0)))) { for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (!isRootVisible && depth == 0) indent = 0; else if ((!isRootVisible && !curr.equals(mod.getRoot())) || isRootVisible) { g.setColor(getHashColor()); heightOfLine = descent + halfHeight; g.drawLine(indentation + halfWidth, heightOfLine, indentation + rightChildIndent, heightOfLine); } descent = paintRecursive(g, indent, descent, i, depth + 1, tree, mod, mod.getChild(curr, i)); } } } if (tree.isExpanded(new TreePath(getPathToRoot(curr, 0)))) if (y0 != heightOfLine && !mod.isLeaf(curr) && mod.getChildCount(curr) > 0) { g.setColor(getHashColor()); g.drawLine(indentation + halfWidth, y0, indentation + halfWidth, heightOfLine); } 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,
282,
509,
12574,
10483,
12,
17558,
314,
16,
509,
12018,
16,
509,
3044,
319,
16,
509,
1151,
1854,
16,
5397,
509,
3598,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
4306,
13,
225,
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,
282,
509,
12574,
10483,
12,
17558,
314,
16,
509,
12018,
16,
509,
3044,
319,
16,
509,
1151,
1854,
16,
5397,
509,
3598,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
4306,
13,
225,
288,
... |
{ return expandedIcon; } | { return expandedIcon; } | public Icon getExpandedIcon() { return expandedIcon; } | 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,
336,
17957,
5554,
1435,
202,
95,
202,
202,
2463,
8406,
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,
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,
336,
17957,
5554,
1435,
202,
95,
202,
202,
2463,
8406,
5554,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
{ 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,
225,
288,
1082,
202,
2463,
629,
31,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
288,
1082,
202,
2463,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
{ } | { if (isToggleSelectionEvent(event)) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else { tree.addSelectionPath(path); tree.setAnchorSelectionPath(path); } } else if (isMultiSelectEvent(event)) { TreePath anchor = tree.getAnchorSelectionPath(); if (anchor != null) { int aRow = getRowForPath(tree, anchor); tree.addSelectionInterval(aRow, getRowForPath(tree, path)); } else tree.addSelectionPath(path); } else tree.addSelectionPath(path); } | protected void selectPathForEvent(TreePath path, MouseEvent event) { // 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,
2027,
743,
1290,
1133,
12,
2471,
743,
589,
16,
17013,
1133,
871,
13,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
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,
918,
2027,
743,
1290,
1133,
12,
2471,
743,
589,
16,
17013,
1133,
871,
13,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
throw new Error("Not implemented for UtilDelegate"); | synchronized (m_Ties) { synchronized (m_Targets) { TieTargetRecord r = (TieTargetRecord) m_Ties.get(tie); if (r == null) { r = new TieTargetRecord(tie); m_Ties.put(tie, r); } if (target != null) { r.add(target); m_Targets.put(target, r); | public void registerTarget(Tie tie, Remote target) { throw new Error("Not implemented for UtilDelegate"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1744,
2326,
12,
56,
1385,
25318,
16,
6304,
1018,
13,
225,
288,
565,
3852,
261,
81,
67,
56,
606,
13,
288,
3852,
261,
81,
67,
9432,
13,
288,
399,
1385,
2326,
2115,
436,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1744,
2326,
12,
56,
1385,
25318,
16,
6304,
1018,
13,
225,
288,
565,
3852,
261,
81,
67,
56,
606,
13,
288,
3852,
261,
81,
67,
9432,
13,
288,
399,
1385,
2326,
2115,
436,
273,
... |
return getClass ().getName () | return getClass().getName() | public String toString(){ String styleString = ""; switch (getStyle ()) { case 0: styleString = "plain"; break; case 1: styleString = "bold"; break; case 2: styleString = "italic"; break; default: styleString = "unknown"; } return getClass ().getName () + "[family=" + getFamily () + ",name=" + getFontName () + ",style=" + styleString + ",size=" + getSize () + "]";} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/Font.java/buggy/core/src/classpath/java/java/awt/Font.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
95,
225,
514,
2154,
780,
273,
1408,
31,
225,
1620,
261,
588,
2885,
1832,
13,
565,
288,
565,
648,
374,
30,
1377,
2154,
780,
273,
315,
7446,
14432,
1377,
898,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1762,
1435,
95,
225,
514,
2154,
780,
273,
1408,
31,
225,
1620,
261,
588,
2885,
1832,
13,
565,
288,
565,
648,
374,
30,
1377,
2154,
780,
273,
315,
7446,
14432,
1377,
898,
31,
... |
return null; | return new NoPrinterJob(); | public static PrinterJob getPrinterJob() { // FIXME: Need to fix this to load a default implementation instance. return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/PrinterJob.java/buggy/core/src/classpath/java/java/awt/print/PrinterJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
2301,
2761,
2278,
8248,
2761,
2278,
1435,
225,
288,
202,
202,
759,
9852,
30,
12324,
358,
2917,
333,
358,
1262,
279,
805,
4471,
791,
18,
565,
327,
394,
2631,
12149,
2278,
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,
282,
1071,
760,
2301,
2761,
2278,
8248,
2761,
2278,
1435,
225,
288,
202,
202,
759,
9852,
30,
12324,
358,
2917,
333,
358,
1262,
279,
805,
4471,
791,
18,
565,
327,
394,
2631,
12149,
2278,
5621,
... |
int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { | int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { | Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getLevel(node)) * rightChildIndent), y); return new Point(x + ((getLevel(node) + 1) * rightChildIndent), y); } if (!mod.isLeaf(startNode) && tree.isExpanded(new TreePath(getPathToRoot(startNode, 0))) && !mod.isLeaf(startNode) && mod.getChildCount(startNode) > 0) { Object child = mod.getChild(startNode, 0); if (child != null) return getCellLocation(x, y + rowHeight, tree, mod, node, child); } return getCellLocation(x, y + rowHeight, tree, mod, node, getNextVisibleNode(startNode)); } | 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,
4686,
16458,
2735,
12,
474,
619,
16,
509,
677,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
756,
16,
13491,
1033,
25467,
13,
225,
288,
1377,
509,
1027,
2686,
273,
11835,
2686,
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,
282,
4686,
16458,
2735,
12,
474,
619,
16,
509,
677,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
756,
16,
13491,
1033,
25467,
13,
225,
288,
1377,
509,
1027,
2686,
273,
11835,
2686,
56... |
{ tree.addPropertyChangeListener(propertyChangeListener); tree.addFocusListener(focusListener); tree.addTreeSelectionListener(treeSelectionListener); tree.addMouseListener(mouseInputListener); tree.addKeyListener(keyListener); tree.addPropertyChangeListener(selectionModelPropertyChangeListener); tree.addComponentListener(componentListener); tree.addTreeExpansionListener(treeExpansionListener); | { tree.addPropertyChangeListener(propertyChangeListener); tree.addFocusListener(focusListener); tree.addTreeSelectionListener(treeSelectionListener); tree.addMouseListener(mouseInputListener); tree.addKeyListener(keyListener); tree.addPropertyChangeListener(selectionModelPropertyChangeListener); tree.addComponentListener(componentListener); tree.addTreeExpansionListener(treeExpansionListener); | protected void installListeners() { 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); } | 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,
3799,
5583,
1435,
202,
95,
202,
202,
3413,
18,
1289,
1396,
15744,
12,
4468,
15744,
1769,
202,
202,
3413,
18,
1289,
9233,
2223,
12,
13923,
2223,
1769,
202,
202,
3413,
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,
225,
202,
1117,
918,
3799,
5583,
1435,
202,
95,
202,
202,
3413,
18,
1289,
1396,
15744,
12,
4468,
15744,
1769,
202,
202,
3413,
18,
1289,
9233,
2223,
12,
13923,
2223,
1769,
202,
202,
3413,
18,
... |
public String nextToken() throws NoSuchElementException | public String nextToken(String delim) throws NoSuchElementException | public String nextToken() throws NoSuchElementException { if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len && delim.indexOf(str.charAt(pos)) < 0); return str.substring(start, pos); } throw new NoSuchElementException(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/StringTokenizer.java/buggy/core/src/classpath/java/java/util/StringTokenizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
9617,
12,
780,
10508,
13,
1216,
23104,
225,
288,
565,
309,
261,
917,
411,
562,
597,
10508,
18,
31806,
12,
701,
18,
3001,
861,
12,
917,
3719,
1545,
374,
13,
1377,
288,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9617,
12,
780,
10508,
13,
1216,
23104,
225,
288,
565,
309,
261,
917,
411,
562,
597,
10508,
18,
31806,
12,
701,
18,
3001,
861,
12,
917,
3719,
1545,
374,
13,
1377,
288,
1082,
... |
return convertPoint(source, aPoint.x, aPoint.y, destination); | Point pt = new Point(x, y); if (source == null && destination == null) return pt; if (source == null) source = getRoot(destination); if (destination == null) destination = getRoot(source); if (source.isShowing() && destination.isShowing()) { convertPointToScreen(pt, source); convertPointFromScreen(pt, destination); } return pt; | public static Point convertPoint(Component source, Point aPoint, Component destination) { return convertPoint(source, aPoint.x, aPoint.y, destination); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/SwingUtilities.java/buggy/core/src/classpath/javax/javax/swing/SwingUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
4686,
1765,
2148,
12,
1841,
1084,
16,
4686,
279,
2148,
16,
5435,
2929,
13,
225,
288,
565,
4686,
5818,
273,
394,
4686,
12,
92,
16,
677,
1769,
225,
309,
261,
3168,
422,
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,
760,
4686,
1765,
2148,
12,
1841,
1084,
16,
4686,
279,
2148,
16,
5435,
2929,
13,
225,
288,
565,
4686,
5818,
273,
394,
4686,
12,
92,
16,
677,
1769,
225,
309,
261,
3168,
422,
446,
... |
if (component[i] == comp) { remove(i); break; } } | ContainerEvent ce = new ContainerEvent(this, ContainerEvent.COMPONENT_REMOVED, r); getToolkit().getSystemEventQueue().postEvent(ce); | public void remove(Component comp) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0bcdc7c5655d1ed77837894a9de15b7556d346b/Container.java/buggy/core/src/classpath/java/java/awt/Container.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
12,
1841,
1161,
13,
225,
288,
565,
3852,
261,
588,
2471,
2531,
1832,
13,
1377,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
290,
8119,
31,
965,
77,
13,
1850... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
12,
1841,
1161,
13,
225,
288,
565,
3852,
261,
588,
2471,
2531,
1832,
13,
1377,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
290,
8119,
31,
965,
77,
13,
1850... |
{ UIDefaults defaults = UIManager.getLookAndFeelDefaults(); | { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); | protected void installDefaults() { 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); rightChildIndent = defaults.getInt("Tree.rightChildIndent"); leftChildIndent = defaults.getInt("Tree.leftChildIndent"); setRowHeight(defaults.getInt("Tree.rowHeight")); tree.requestFocusInWindow(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,
282,
4750,
918,
3799,
7019,
1435,
202,
95,
202,
202,
3060,
73,
643,
87,
3467,
273,
6484,
1318,
18,
588,
9794,
1876,
2954,
292,
7019,
5621,
202,
202,
3413,
18,
542,
5711,
12,
7606,
18,
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,
282,
4750,
918,
3799,
7019,
1435,
202,
95,
202,
202,
3060,
73,
643,
87,
3467,
273,
6484,
1318,
18,
588,
9794,
1876,
2954,
292,
7019,
5621,
202,
202,
3413,
18,
542,
5711,
12,
7606,
18,
588,
... |
{ } | { } | 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,
... |
if (!mod.isLeaf(parent)) size = mod.getChildCount(parent); | if (!treeModel.isLeaf(parent)) size = treeModel.getChildCount(parent); | 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,... |
public void draw(Shape shape, AffineTransform tx, Color color, int mode); | public void draw(Shape shape, Shape clip, AffineTransform tx, Color color, int mode); | public void draw(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,
3724,
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,
3724,
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 String toString(){ String styleString = ""; switch (getStyle ()) { case 0: styleString = "plain"; break; case 1: styleString = "bold"; break; case 2: styleString = "italic"; break; default: styleString = "unknown"; } return getClass ().getName () + "[family=" + getFamily () + ",name=" + getFontName () + ",style=" + styleString + ",size=" + getSize () + "]";} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/Font.java/buggy/core/src/classpath/java/java/awt/Font.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
95,
225,
514,
2154,
780,
273,
1408,
31,
225,
1620,
261,
588,
2885,
1832,
13,
565,
288,
565,
648,
374,
30,
1377,
2154,
780,
273,
315,
7446,
14432,
1377,
898,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1762,
1435,
95,
225,
514,
2154,
780,
273,
1408,
31,
225,
1620,
261,
588,
2885,
1832,
13,
565,
288,
565,
648,
374,
30,
1377,
2154,
780,
273,
315,
7446,
14432,
1377,
898,
31,
... |
{ } | { } | public SelectionModelPropertyChangeHandler() { } | 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,
12977,
1488,
1396,
3043,
1503,
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,
... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
12977,
1488,
1396,
3043,
1503,
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,
... |
public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) | public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer) | public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { setTree(tree); this.renderer = renderer; if (editor == null) editor = createTreeCellEditor(); realEditor = editor; lastPath = tree.getLeadSelectionPath(); tree.addTreeSelectionListener(this); editingContainer = createContainer(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setFont(defaults.getFont("Tree.font")); setBorderSelectionColor(defaults.getColor("Tree.selectionBorderColor")); editingIcon = renderer.getIcon(); timer = new javax.swing.Timer(1200, this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultTreeCellEditor.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2989,
2471,
4020,
6946,
12,
46,
2471,
2151,
16,
2989,
2471,
4020,
6747,
5690,
16,
1171,
9079,
4902,
4020,
6946,
4858,
13,
225,
288,
565,
444,
2471,
12,
3413,
1769,
565,
333,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2989,
2471,
4020,
6946,
12,
46,
2471,
2151,
16,
2989,
2471,
4020,
6747,
5690,
16,
1171,
9079,
4902,
4020,
6946,
4858,
13,
225,
288,
565,
444,
2471,
12,
3413,
1769,
565,
333,
18,
1... |
this(newOrientation, false, null, null); | if (newOrientation != HORIZONTAL_SPLIT && newOrientation != VERTICAL_SPLIT) throw new IllegalArgumentException("orientation is invalid."); orientation = newOrientation; continuousLayout = newContinuousLayout; setLeftComponent(newLeftComponent); setRightComponent(newRightComponent); updateUI(); | public JSplitPane(int newOrientation) { this(newOrientation, false, null, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JSplitPane.java/buggy/core/src/classpath/javax/javax/swing/JSplitPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
5521,
8485,
12,
474,
394,
14097,
13,
225,
288,
565,
309,
261,
2704,
14097,
480,
24606,
67,
17482,
597,
394,
14097,
480,
29109,
67,
17482,
13,
604,
394,
2754,
2932,
19235,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
804,
5521,
8485,
12,
474,
394,
14097,
13,
225,
288,
565,
309,
261,
2704,
14097,
480,
24606,
67,
17482,
597,
394,
14097,
480,
29109,
67,
17482,
13,
604,
394,
2754,
2932,
19235,
353,
... |
{ | { | int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; boolean isRootVisible = tree.isRootVisible(); if (mod.isLeaf(curr)) { paintNode(g, indentation + 4, descent, tree, curr, true); descent += getRowHeight(); } else { if (depth > 0 || isRootVisible) { paintNode(g, indentation + 4, descent, tree, curr, false); descent += getRowHeight(); y0 += halfHeight; } int max = 0; if (!mod.isLeaf(curr)) max = mod.getChildCount(curr); if (tree.isExpanded(new TreePath(getPathToRoot(curr, 0)))) { for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (!isRootVisible && depth == 0) indent = 0; else if ((!isRootVisible && !curr.equals(mod.getRoot())) || isRootVisible) { g.setColor(getHashColor()); heightOfLine = descent + halfHeight; g.drawLine(indentation + halfWidth, heightOfLine, indentation + rightChildIndent, heightOfLine); } descent = paintRecursive(g, indent, descent, i, depth + 1, tree, mod, mod.getChild(curr, i)); } } } if (tree.isExpanded(new TreePath(getPathToRoot(curr, 0)))) if (y0 != heightOfLine && !mod.isLeaf(curr) && mod.getChildCount(curr) > 0) { g.setColor(getHashColor()); g.drawLine(indentation + halfWidth, y0, indentation + halfWidth, heightOfLine); } 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,
282,
509,
12574,
10483,
12,
17558,
314,
16,
509,
12018,
16,
509,
3044,
319,
16,
509,
1151,
1854,
16,
5397,
509,
3598,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
4306,
13,
225,
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,
282,
509,
12574,
10483,
12,
17558,
314,
16,
509,
12018,
16,
509,
3044,
319,
16,
509,
1151,
1854,
16,
5397,
509,
3598,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
4306,
13,
225,
288,
... |
children[i].setBounds(offsetsX[i] + in.left, offsetsY[i] + in.top, spansX[i], spansY[i]); | children[i].setBounds(offsetsX[i] + in.left, offsetsY[i] + in.top, spansX[i], spansY[i]); | public void layoutContainer(Container parent) { synchronized(container.getTreeLock()) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); checkLayout(); Component[] children = container.getComponents(); Insets in = container.getInsets(); for (int i = 0; i < children.length; i++) children[i].setBounds(offsetsX[i] + in.left, offsetsY[i] + in.top, spansX[i], spansY[i]); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BoxLayout.java/clean/core/src/classpath/javax/javax/swing/BoxLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3511,
2170,
12,
2170,
982,
13,
225,
288,
565,
3852,
12,
3782,
18,
588,
2471,
2531,
10756,
1377,
288,
1377,
309,
261,
3782,
480,
982,
13,
3639,
604,
394,
432,
8588,
668,
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,
282,
1071,
918,
3511,
2170,
12,
2170,
982,
13,
225,
288,
565,
3852,
12,
3782,
18,
588,
2471,
2531,
10756,
1377,
288,
1377,
309,
261,
3782,
480,
982,
13,
3639,
604,
394,
432,
8588,
668,
2932,... |
{ return false; } | { return true; } | protected boolean isToggleEvent(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,
353,
17986,
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,
353,
17986,
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,
... |
return super.requestFocusInWindow(temporary); | if (isRequestFocusEnabled()) return super.requestFocusInWindow(); else return false; | public boolean requestFocusInWindow(boolean temporary) { return super.requestFocusInWindow(temporary); } | 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,
282,
1071,
1250,
590,
9233,
382,
3829,
12,
6494,
6269,
13,
225,
288,
565,
309,
261,
291,
691,
9233,
1526,
10756,
327,
2240,
18,
2293,
9233,
382,
3829,
5621,
469,
327,
629,
31,
225,
289,
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,
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,
590,
9233,
382,
3829,
12,
6494,
6269,
13,
225,
288,
565,
309,
261,
291,
691,
9233,
1526,
10756,
327,
2240,
18,
2293,
9233,
382,
3829,
5621,
469,
327,
629,
31,
225,
289,
2,
... |
public Object clone () throws CloneNotSupportedException{ | protected Object clone () throws CloneNotSupportedException{ | 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,
4750,
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,
4750,
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... |
} | } | protected void uninstallKeyboardActions() { // FIXME: implement. } | 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,
17872,
6100,
1435,
565,
288,
565,
368,
9852,
30,
2348,
18,
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,
... | [
1,
1,
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,
282,
4750,
918,
16577,
17872,
6100,
1435,
565,
288,
565,
368,
9852,
30,
2348,
18,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
{ | { prepareForUIUninstall(); | public void uninstallUI(JComponent c) { uninstallDefaults(); uninstallKeyboardActions(); uninstallListeners(); tree = null; completeUIUninstall(); } | 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,
16577,
5370,
12,
46,
1841,
276,
13,
202,
95,
2911,
1290,
5370,
31103,
5621,
565,
16577,
7019,
5621,
202,
202,
28872,
17872,
6100,
5621,
202,
202,
28872,
5583,
5621,
202,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
16577,
5370,
12,
46,
1841,
276,
13,
202,
95,
2911,
1290,
5370,
31103,
5621,
565,
16577,
7019,
5621,
202,
202,
28872,
17872,
6100,
5621,
202,
202,
28872,
5583,
5621,
202,
20... |
{ } | { } | public KeyHandler() { } | 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,
1929,
1503,
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,
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,
3196,
202,
482,
1929,
1503,
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,
-100,
-100,
-... |
Object node = mod.getRoot(); if (!tree.isRootVisible() && tree.isExpanded(new TreePath((getPathToRoot(node, 0))))) node = getNextNode(node); while (node != null) { count++; node = getNextVisibleNode(node); | Object node = treeModel.getRoot(); if (!tree.isRootVisible() && tree.isExpanded(new TreePath((getPathToRoot(node, 0))))) node = getNextNode(node); while (node != null) { count++; node = getNextVisibleNode(node); } | public int getRowCount(JTree tree) { TreeModel mod = tree.getModel(); int count = 0; if (mod != null) { Object node = mod.getRoot(); if (!tree.isRootVisible() && tree.isExpanded(new TreePath((getPathToRoot(node, 0))))) node = getNextNode(node); while (node != null) { count++; node = getNextVisibleNode(node); } } return count; } | 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,
509,
11835,
1380,
12,
46,
2471,
2151,
13,
202,
95,
565,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
565,
509,
1056,
273,
374,
31,
565,
309,
261,
1711,
480,
446,
13,
137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
11835,
1380,
12,
46,
2471,
2151,
13,
202,
95,
565,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
565,
509,
1056,
273,
374,
31,
565,
309,
261,
1711,
480,
446,
13,
137... |
throw new GetDelegateInstanceException ("Exception when trying to get delegate instance:" + dcname, e); | InternalError ierr = new InternalError("Exception when trying to get " + type + "delegate instance:" + dcname); ierr.initCause(e); throw ierr; | public static synchronized Object getInstance(String type) throws GetDelegateInstanceException { Object r = cache.get(type); if (r != null) return r; String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class"); if (dcname == null) { //throw new DelegateException // ("no javax.rmi.CORBA.XXXClass property sepcified."); dcname = "gnu.javax.rmi.CORBA." + type + "DelegateImpl"; } try { Class dclass = Class.forName(dcname, true, Thread.currentThread().getContextClassLoader()); r = dclass.newInstance(); cache.put(type, r); return r; } catch(Exception e) { throw new GetDelegateInstanceException ("Exception when trying to get delegate instance:" + dcname, e); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/DelegateFactory.java/buggy/core/src/classpath/gnu/gnu/javax/rmi/CORBA/DelegateFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3852,
1033,
3694,
12,
780,
618,
13,
565,
1216,
968,
9586,
1442,
503,
225,
288,
565,
1033,
436,
273,
1247,
18,
588,
12,
723,
1769,
565,
309,
261,
86,
480,
446,
13,
1377,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
1033,
3694,
12,
780,
618,
13,
565,
1216,
968,
9586,
1442,
503,
225,
288,
565,
1033,
436,
273,
1247,
18,
588,
12,
723,
1769,
565,
309,
261,
86,
480,
446,
13,
1377,
327... |
super(parent); | super(); | public URLClassLoader(URL[] urls, ClassLoader parent) throws SecurityException { super(parent); this.factory = null; this.securityContext = null; addURLs(urls); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/37d5fed12204d348d94cd6409a12ac3d0787ccc3/URLClassLoader.java/buggy/core/src/classpath/java/java/net/URLClassLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1976,
7805,
12,
1785,
8526,
6903,
16,
9403,
982,
13,
565,
1216,
17780,
225,
288,
565,
2240,
5621,
565,
333,
18,
6848,
273,
446,
31,
565,
333,
18,
7462,
1042,
273,
446,
31,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1976,
7805,
12,
1785,
8526,
6903,
16,
9403,
982,
13,
565,
1216,
17780,
225,
288,
565,
2240,
5621,
565,
333,
18,
6848,
273,
446,
31,
565,
333,
18,
7462,
1042,
273,
446,
31,
565,
... |
{ | { | 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... |
{ | { | 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... |
if (s == null) { Log.warn("in Structure.addStructure(), Structure passed in is null"); return null; } | public Structure addStructure(Structure s) { if (s == null) { Log.warn("in Structure.addStructure(), Structure passed in is null"); return null; } getStructList().add(s); return s; } | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/Structure.java/buggy/src/gov/nasa/gsfc/adc/xdf/Structure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13348,
527,
6999,
12,
6999,
272,
13,
288,
565,
309,
261,
87,
422,
446,
13,
288,
1377,
1827,
18,
8935,
2932,
267,
13348,
18,
1289,
6999,
9334,
13348,
2275,
316,
353,
446,
8863,
137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13348,
527,
6999,
12,
6999,
272,
13,
288,
565,
309,
261,
87,
422,
446,
13,
288,
1377,
1827,
18,
8935,
2932,
267,
13348,
18,
1289,
6999,
9334,
13348,
2275,
316,
353,
446,
8863,
137... | |
Object message, String title, int messageType) | Object message) | public static String showInputDialog(Component parentComponent, Object message, String title, int messageType) { JOptionPane pane = new JOptionPane(message, messageType); pane.setWantsInput(true); JDialog dialog = pane.createDialog(parentComponent, title); dialog.pack(); dialog.show(); return (String) pane.getInputValue(); } | 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,
514,
2405,
1210,
6353,
12,
1841,
982,
1841,
16,
4766,
4202,
1033,
883,
16,
514,
2077,
16,
4766,
4202,
509,
22402,
13,
225,
288,
565,
804,
1895,
8485,
13618,
273,
394,
804,
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,
760,
514,
2405,
1210,
6353,
12,
1841,
982,
1841,
16,
4766,
4202,
1033,
883,
16,
514,
2077,
16,
4766,
4202,
509,
22402,
13,
225,
288,
565,
804,
1895,
8485,
13618,
273,
394,
804,
18... |
protected synchronized void create() throws SocketException { throw new SocketException("Not implemented"); | protected synchronized void create() throws SocketException { try { channel.initSocket(false); } catch (SocketException se) { throw se; } catch (IOException ioe) { SocketException se = new SocketException(); se.initCause(ioe); throw se; } | protected synchronized void create() throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c6bd4d63622475fff01c1920f223e404234d976f/PlainDatagramSocketImpl.java/clean/core/src/classpath/gnu/gnu/java/net/PlainDatagramSocketImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
3852,
918,
752,
1435,
1216,
8758,
503,
288,
1377,
368,
632,
3489,
17,
12524,
1158,
290,
8785,
1377,
368,
6241,
2348,
1791,
1377,
604,
394,
8758,
503,
2932,
1248,
8249,
8863,
225,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
4750,
3852,
918,
752,
1435,
1216,
8758,
503,
288,
1377,
368,
632,
3489,
17,
12524,
1158,
290,
8785,
1377,
368,
6241,
2348,
1791,
1377,
604,
394,
8758,
503,
2932,
1248,
8249,
8863,
225,
28... |
{ return dockingColor; } | { return dockingColor; } | public Color getDockingColor() { return dockingColor; } | 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,
1071,
5563,
2343,
975,
310,
2957,
1435,
565,
288,
202,
2463,
5822,
310,
2957,
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,... | [
1,
1,
1,
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,
5563,
2343,
975,
310,
2957,
1435,
565,
288,
202,
2463,
5822,
310,
2957,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
{ | { | public void editingStopped(ChangeEvent e) { editingPath = null; editingRow = -1; stopEditingInCompleteEditing = false; if (editingComponent != null) { tree.remove(editingComponent.getParent()); editingComponent = null; } if (cellEditor != null) { newVal = ((JTextField) getCellEditor().getCellEditorValue()).getText(); completeEditing(false, false, true); if (cellEditor instanceof DefaultTreeCellEditor) tree.removeTreeSelectionListener((DefaultTreeCellEditor) cellEditor); cellEditor.removeCellEditorListener(cellEditorListener); setCellEditor(null); createdCellEditor = false; } isEditing = false; tree.requestFocusInWindow(false); editorTimer.stop(); } | 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,
15755,
15294,
12,
20930,
425,
13,
202,
202,
95,
1377,
15755,
743,
273,
446,
31,
1377,
15755,
1999,
273,
300,
21,
31,
1377,
2132,
28029,
382,
6322,
28029,
273,
629,
31,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15755,
15294,
12,
20930,
425,
13,
202,
202,
95,
1377,
15755,
743,
273,
446,
31,
1377,
15755,
1999,
273,
300,
21,
31,
1377,
2132,
28029,
382,
6322,
28029,
273,
629,
31,
1... |
public static synchronized Object getInstance(String type) throws GetDelegateInstanceException | public static Object getInstance(String type) throws InternalError | public static synchronized Object getInstance(String type) throws GetDelegateInstanceException { Object r = cache.get(type); if (r != null) return r; String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class"); if (dcname == null) { //throw new DelegateException // ("no javax.rmi.CORBA.XXXClass property sepcified."); dcname = "gnu.javax.rmi.CORBA." + type + "DelegateImpl"; } try { Class dclass = Class.forName(dcname, true, Thread.currentThread().getContextClassLoader()); r = dclass.newInstance(); cache.put(type, r); return r; } catch(Exception e) { throw new GetDelegateInstanceException ("Exception when trying to get delegate instance:" + dcname, e); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/DelegateFactory.java/buggy/core/src/classpath/gnu/gnu/javax/rmi/CORBA/DelegateFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3852,
1033,
3694,
12,
780,
618,
13,
565,
1216,
968,
9586,
1442,
503,
225,
288,
565,
1033,
436,
273,
1247,
18,
588,
12,
723,
1769,
565,
309,
261,
86,
480,
446,
13,
1377,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
1033,
3694,
12,
780,
618,
13,
565,
1216,
968,
9586,
1442,
503,
225,
288,
565,
1033,
436,
273,
1247,
18,
588,
12,
723,
1769,
565,
309,
261,
86,
480,
446,
13,
1377,
327... |
{ | { | 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,
... |
XTFRFile xtrf = new XTFRFile(me.frame,vt); | XTFRFile xtrf = new XTFRFile(me.getParentView((Session)this),vt); | private void doMeTransfer() { XTFRFile xtrf = new XTFRFile(me.frame,vt); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/a61dbdd53c996e8a76dc4165e5010c2379355b80/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
741,
4667,
5912,
1435,
288,
1377,
1139,
56,
9981,
812,
619,
313,
74,
273,
394,
1139,
56,
9981,
812,
12,
3501,
18,
588,
3054,
1767,
12443,
2157,
13,
2211,
3631,
11734,
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,
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,
565,
3238,
918,
741,
4667,
5912,
1435,
288,
1377,
1139,
56,
9981,
812,
619,
313,
74,
273,
394,
1139,
56,
9981,
812,
12,
3501,
18,
588,
3054,
1767,
12443,
2157,
13,
2211,
3631,
11734,
1769,
2... |
public String(byte[] data, int offset, int count, String encoding) throws UnsupportedEncodingException | public String() | public String(byte[] data, int offset, int count, String encoding) throws UnsupportedEncodingException { if (offset < 0 || count < 0 || offset + count > data.length) throw new StringIndexOutOfBoundsException(); try { CharsetDecoder csd = Charset.forName(encoding).newDecoder(); csd.onMalformedInput(CodingErrorAction.REPLACE); csd.onUnmappableCharacter(CodingErrorAction.REPLACE); CharBuffer cbuf = csd.decode(ByteBuffer.wrap(data, offset, count)); if(cbuf.hasArray()) { value = cbuf.array(); this.offset = cbuf.position(); this.count = cbuf.remaining(); } else { // Doubt this will happen. But just in case. value = new char[cbuf.remaining()]; cbuf.get(value); this.offset = 0; this.count = value.length; } } catch(CharacterCodingException e){ throw new UnsupportedEncodingException("Encoding: "+encoding+ " not found."); } catch(IllegalCharsetNameException e){ throw new UnsupportedEncodingException("Encoding: "+encoding+ " not found."); } catch(UnsupportedCharsetException e){ throw new UnsupportedEncodingException("Encoding: "+encoding+ " not found."); } } | 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,
12,
7229,
8526,
501,
16,
509,
1384,
16,
509,
1056,
16,
514,
2688,
13,
565,
1216,
15367,
225,
288,
565,
309,
261,
3348,
411,
374,
747,
1056,
411,
374,
747,
1384,
397,
1056,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
7229,
8526,
501,
16,
509,
1384,
16,
509,
1056,
16,
514,
2688,
13,
565,
1216,
15367,
225,
288,
565,
309,
261,
3348,
411,
374,
747,
1056,
411,
374,
747,
1384,
397,
1056,
... |
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getLevel(node)) * rightChildIndent), y); return new Point(x + ((getLevel(node) + 1) * rightChildIndent), y); } if (!mod.isLeaf(startNode) && tree.isExpanded(new TreePath(getPathToRoot(startNode, 0))) && !mod.isLeaf(startNode) && mod.getChildCount(startNode) > 0) { Object child = mod.getChild(startNode, 0); if (child != null) return getCellLocation(x, y + rowHeight, tree, mod, node, child); } return getCellLocation(x, y + rowHeight, tree, mod, node, getNextVisibleNode(startNode)); } | 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,
4686,
16458,
2735,
12,
474,
619,
16,
509,
677,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
756,
16,
13491,
1033,
25467,
13,
225,
288,
1377,
509,
1027,
2686,
273,
11835,
2686,
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,
282,
4686,
16458,
2735,
12,
474,
619,
16,
509,
677,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
756,
16,
13491,
1033,
25467,
13,
225,
288,
1377,
509,
1027,
2686,
273,
11835,
2686,
56... | ||
public JSplitPane(int newOrientation) | public JSplitPane(int newOrientation, boolean newContinuousLayout, Component newLeftComponent, Component newRightComponent) | public JSplitPane(int newOrientation) { this(newOrientation, false, null, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JSplitPane.java/buggy/core/src/classpath/javax/javax/swing/JSplitPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
5521,
8485,
12,
474,
394,
14097,
16,
1250,
394,
26509,
3744,
16,
5435,
394,
3910,
1841,
16,
5435,
394,
4726,
1841,
13,
225,
288,
565,
333,
12,
2704,
14097,
16,
629,
16,
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,
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,
5521,
8485,
12,
474,
394,
14097,
16,
1250,
394,
26509,
3744,
16,
5435,
394,
3910,
1841,
16,
5435,
394,
4726,
1841,
13,
225,
288,
565,
333,
12,
2704,
14097,
16,
629,
16,
446,
... |
} | } | protected MouseInputListener createDockingListener() { return new DockingListener(toolBar); } | 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,
17013,
1210,
2223,
752,
40,
975,
310,
2223,
1435,
565,
288,
565,
327,
394,
463,
975,
310,
2223,
12,
6738,
5190,
1769,
565,
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,
0,
0,
0,
0,
0,
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,
17013,
1210,
2223,
752,
40,
975,
310,
2223,
1435,
565,
288,
565,
327,
394,
463,
975,
310,
2223,
12,
6738,
5190,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
{ } | { } | public void mouseReleased(MouseEvent 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,
7644,
26363,
12,
9186,
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,
... | [
1,
1,
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,
918,
7644,
26363,
12,
9186,
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,
... |
if (disabeldIcon == null && default_icon instanceof ImageIcon) disabeldIcon = new ImageIcon(GrayFilter.createDisabledImage(((ImageIcon) default_icon).getImage())); | if (disabeldIcon == null && default_icon instanceof ImageIcon) { Image iconImage = ((ImageIcon) default_icon).getImage(); Image grayImage = GrayFilter.createDisabledImage(iconImage); disabeldIcon = new ImageIcon(grayImage); } | public Icon getDisabledIcon() { if (disabeldIcon == null && default_icon instanceof ImageIcon) disabeldIcon = new ImageIcon(GrayFilter.createDisabledImage(((ImageIcon) default_icon).getImage())); return disabeldIcon; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/AbstractButton.java/buggy/core/src/classpath/javax/javax/swing/AbstractButton.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
16011,
336,
8853,
5554,
1435,
225,
288,
565,
309,
261,
2251,
378,
488,
5554,
422,
446,
202,
10,
10,
805,
67,
3950,
1276,
3421,
5554,
13,
1377,
1015,
378,
488,
5554,
273,
394,
3421... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16011,
336,
8853,
5554,
1435,
225,
288,
565,
309,
261,
2251,
378,
488,
5554,
422,
446,
202,
10,
10,
805,
67,
3950,
1276,
3421,
5554,
13,
1377,
1015,
378,
488,
5554,
273,
394,
3421... |
return regionMatches(false, 0, prefix, 0, prefix.count); | return regionMatches(false, toffset, prefix, 0, prefix.count); | public boolean startsWith(String prefix) { return regionMatches(false, 0, prefix, 0, prefix.count); } | 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,
1250,
4969,
12,
780,
1633,
13,
225,
288,
565,
327,
3020,
6869,
12,
5743,
16,
358,
74,
988,
16,
1633,
16,
374,
16,
1633,
18,
1883,
1769,
225,
289,
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,
282,
1071,
1250,
4969,
12,
780,
1633,
13,
225,
288,
565,
327,
3020,
6869,
12,
5743,
16,
358,
74,
988,
16,
1633,
16,
374,
16,
1633,
18,
1883,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100... |
{ | { | protected RootPaneContainer createFloatingWindow(JToolBar toolbar) { // This one is used by default though. return new ToolBarDialog(); } | 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,
7450,
8485,
2170,
752,
28344,
3829,
12,
46,
6364,
5190,
12748,
13,
565,
288,
565,
368,
1220,
1245,
353,
1399,
635,
805,
11376,
18,
565,
327,
394,
13288,
5190,
6353,
5621,
565,
289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
4750,
7450,
8485,
2170,
752,
28344,
3829,
12,
46,
6364,
5190,
12748,
13,
565,
288,
565,
368,
1220,
1245,
353,
1399,
635,
805,
11376,
18,
565,
327,
394,
13288,
5190,
6353,
5621,
565,
289,
... |
if (node != null) | if (node != 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,
... |
editingRow = -1; lastSelectedRow = -1; } | editingRow = -1; lastSelectedRow = -1; } | public BasicTreeUI() { drawingCache = new Hashtable(); nodeDimensions = createNodeDimensions(); configureLayoutCache(); 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; } | 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,
7651,
2471,
5370,
1435,
202,
95,
202,
202,
9446,
310,
1649,
273,
394,
18559,
5621,
202,
202,
2159,
10796,
273,
24584,
10796,
5621,
202,
202,
14895,
3744,
1649,
5621,
202,
202,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7651,
2471,
5370,
1435,
202,
95,
202,
202,
9446,
310,
1649,
273,
394,
18559,
5621,
202,
202,
2159,
10796,
273,
24584,
10796,
5621,
202,
202,
14895,
3744,
1649,
5621,
202,
202,
4... |
public void addCustomEntriesToTable(UIDefaults table) { // Do nothing here. // This method needs to be overloaded to actuall do something. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c4eda97e6e5feb8e7650d83d5066d85580f1249c/MetalTheme.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalTheme.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
918,
225,
527,
3802,
5400,
774,
1388,
12,
3060,
73,
643,
87,
225,
1014,
13,
565,
288,
3639,
368,
225,
2256,
225,
5083,
225,
2674,
18,
3639,
368,
225,
1220,
225,
707,
225,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
918,
225,
527,
3802,
5400,
774,
1388,
12,
3060,
73,
643,
87,
225,
1014,
13,
565,
288,
3639,
368,
225,
2256,
225,
5083,
225,
2674,
18,
3639,
368,
225,
1220,
225,
707,
225,
4... | ||
if (selectedItem != null) { if(dataModel instanceof DefaultComboBoxModel) { | if (selectedItem != null) { if (dataModel instanceof DefaultComboBoxModel) | public int getSelectedIndex() { Object selectedItem = getSelectedItem(); if (selectedItem != null) { if(dataModel instanceof DefaultComboBoxModel) { // Uses special method of DefaultComboBoxModel to retrieve the index. return ((DefaultComboBoxModel) dataModel).getIndexOf(selectedItem); } else { // Iterates over all items to retrieve the index. int size = dataModel.getSize(); for(int i=0; i < size; i++) { Object o = dataModel.getElementAt(i); // XXX: Is special handling of ComparableS neccessary? if((selectedItem != null) ? selectedItem.equals(o) : o == null) { return i; } } } } // returns that no item is currently selected return -1; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/JComboBox.java/buggy/core/src/classpath/javax/javax/swing/JComboBox.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
16625,
1016,
1435,
225,
288,
565,
1033,
3170,
1180,
273,
16625,
1180,
5621,
3639,
309,
261,
8109,
1180,
480,
446,
13,
288,
1082,
202,
430,
12,
892,
1488,
1276,
2989,
22199,
148... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16625,
1016,
1435,
225,
288,
565,
1033,
3170,
1180,
273,
16625,
1180,
5621,
3639,
309,
261,
8109,
1180,
480,
446,
13,
288,
1082,
202,
430,
12,
892,
1488,
1276,
2989,
22199,
148... |
if (offset < 0 || count < 0 || offset + count > data.length) throw new StringIndexOutOfBoundsException(); try { CharsetDecoder csd = Charset.forName(encoding).newDecoder(); csd.onMalformedInput(CodingErrorAction.REPLACE); csd.onUnmappableCharacter(CodingErrorAction.REPLACE); CharBuffer cbuf = csd.decode(ByteBuffer.wrap(data, offset, count)); if(cbuf.hasArray()) { value = cbuf.array(); this.offset = cbuf.position(); this.count = cbuf.remaining(); } else { value = new char[cbuf.remaining()]; cbuf.get(value); this.offset = 0; this.count = value.length; } } catch(CharacterCodingException e){ throw new UnsupportedEncodingException("Encoding: "+encoding+ " not found."); } catch(IllegalCharsetNameException e){ throw new UnsupportedEncodingException("Encoding: "+encoding+ " not found."); } catch(UnsupportedCharsetException e){ throw new UnsupportedEncodingException("Encoding: "+encoding+ " not found."); } | value = "".value; offset = 0; count = 0; | public String(byte[] data, int offset, int count, String encoding) throws UnsupportedEncodingException { if (offset < 0 || count < 0 || offset + count > data.length) throw new StringIndexOutOfBoundsException(); try { CharsetDecoder csd = Charset.forName(encoding).newDecoder(); csd.onMalformedInput(CodingErrorAction.REPLACE); csd.onUnmappableCharacter(CodingErrorAction.REPLACE); CharBuffer cbuf = csd.decode(ByteBuffer.wrap(data, offset, count)); if(cbuf.hasArray()) { value = cbuf.array(); this.offset = cbuf.position(); this.count = cbuf.remaining(); } else { // Doubt this will happen. But just in case. value = new char[cbuf.remaining()]; cbuf.get(value); this.offset = 0; this.count = value.length; } } catch(CharacterCodingException e){ throw new UnsupportedEncodingException("Encoding: "+encoding+ " not found."); } catch(IllegalCharsetNameException e){ throw new UnsupportedEncodingException("Encoding: "+encoding+ " not found."); } catch(UnsupportedCharsetException e){ throw new UnsupportedEncodingException("Encoding: "+encoding+ " not found."); } } | 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,
12,
7229,
8526,
501,
16,
509,
1384,
16,
509,
1056,
16,
514,
2688,
13,
565,
1216,
15367,
225,
288,
565,
309,
261,
3348,
411,
374,
747,
1056,
411,
374,
747,
1384,
397,
1056,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
7229,
8526,
501,
16,
509,
1384,
16,
509,
1056,
16,
514,
2688,
13,
565,
1216,
15367,
225,
288,
565,
309,
261,
3348,
411,
374,
747,
1056,
411,
374,
747,
1384,
397,
1056,
... |
ensureCapacity_unsynchronized(count + 1); value[count++] = ch; return this; | return append(obj == null ? "null" : obj.toString()); | public synchronized StringBuffer append(char ch) { ensureCapacity_unsynchronized(count + 1); value[count++] = ch; return this; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/68a6301301378680519f2b146daec37812a1bc22/StringBuffer.java/buggy/core/src/classpath/java/java/lang/StringBuffer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
6674,
714,
12,
3001,
462,
13,
225,
288,
565,
3387,
7437,
67,
318,
22043,
12,
1883,
397,
404,
1769,
565,
460,
63,
1883,
9904,
65,
273,
462,
31,
565,
327,
333,
31,
225,
289,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
3852,
6674,
714,
12,
3001,
462,
13,
225,
288,
565,
3387,
7437,
67,
318,
22043,
12,
1883,
397,
404,
1769,
565,
460,
63,
1883,
9904,
65,
273,
462,
31,
565,
327,
333,
31,
225,
289,... |
TreeModel mod = tree.getModel(); Object parent = getParent(mod.getRoot(), node); | Object parent = getParent(treeModel.getRoot(), node); | 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,... |
FontMetrics fm = getToolkit().getFontMetrics(f); return new Dimension(SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); | size.height = renderer.getPreferredSize().height; | public Dimension getPreferredSize() { String s = getText(); Font f = getFont(); if (f != null) { FontMetrics fm = getToolkit().getFontMetrics(f); return new Dimension(SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); } return renderer.getPreferredSize(); } | 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,
377,
1071,
13037,
12822,
4193,
1225,
1435,
565,
288,
1377,
514,
272,
273,
6701,
5621,
1377,
10063,
284,
273,
18776,
5621,
1377,
309,
261,
74,
480,
446,
13,
3639,
288,
1850,
10063,
5653,
10940,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13037,
12822,
4193,
1225,
1435,
565,
288,
1377,
514,
272,
273,
6701,
5621,
1377,
10063,
284,
273,
18776,
5621,
1377,
309,
261,
74,
480,
446,
13,
3639,
288,
1850,
10063,
5653,
10940,
... |
{ int row = path.getPathCount(); if (tree.isVisible(path)) return row; path = path.getParentPath(); while (row > 0 && !tree.isVisible(path)) | { int row = 0; Object dest = path.getLastPathComponent(); Object curr = treeModel.getRoot(); while (curr != null && !curr.equals(dest)) | public int getRowForPath(JTree tree, TreePath path) { int row = path.getPathCount(); if (tree.isVisible(path)) return row; path = path.getParentPath(); while (row > 0 && !tree.isVisible(path)) { path = path.getParentPath(); row--; } return row; } | 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,
509,
11835,
25589,
12,
46,
2471,
2151,
16,
4902,
743,
589,
13,
202,
95,
565,
509,
1027,
273,
589,
18,
588,
743,
1380,
5621,
565,
309,
261,
3413,
18,
291,
6207,
12,
803,
3719... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
11835,
25589,
12,
46,
2471,
2151,
16,
4902,
743,
589,
13,
202,
95,
565,
509,
1027,
273,
589,
18,
588,
743,
1380,
5621,
565,
309,
261,
3413,
18,
291,
6207,
12,
803,
3719... |
{ return floatingColor; } | { return floatingColor; } | public Color getFloatingColor() { return floatingColor; } | 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,
1071,
5563,
28276,
310,
2957,
1435,
565,
288,
202,
2463,
13861,
2957,
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,
... | [
1,
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,
5563,
28276,
310,
2957,
1435,
565,
288,
202,
2463,
13861,
2957,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
} | } | public boolean isEditing(JTree tree) { return isEditing; } | 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,
353,
28029,
12,
46,
2471,
2151,
13,
202,
95,
565,
327,
353,
28029,
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,
... | [
1,
1,
1,
1,
1,
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,
1250,
353,
28029,
12,
46,
2471,
2151,
13,
202,
95,
565,
327,
353,
28029,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if (tree.isExpanded(new TreePath(getPathToRoot(node, 0)))) { if (!node.equals(mod.getRoot())) ei.paintIcon(tree, g, indentation - rightChildIndent - 3, h); | if (!node.equals(mod.getRoot())) icon.paintIcon(tree, g, indentation - rightChildIndent - 3, h); if (tree.isExpanded(path)) { | 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... |
public void writeRemoteObject(OutputStream out, Object obj) | public void writeRemoteObject(OutputStream an_output, Object object) | public void writeRemoteObject(OutputStream out, Object obj) { throw new Error("Not implemented for UtilDelegate"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1045,
5169,
921,
12,
4632,
392,
67,
2844,
16,
1033,
733,
13,
225,
288,
565,
604,
394,
1068,
2932,
1248,
8249,
364,
3564,
9586,
8863,
225,
289,
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,
0,
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,
1045,
5169,
921,
12,
4632,
392,
67,
2844,
16,
1033,
733,
13,
225,
288,
565,
604,
394,
1068,
2932,
1248,
8249,
364,
3564,
9586,
8863,
225,
289,
2,
-100,
-100,
-100,
-100,
-100... |
synchronized(SEND_LOCK) | synchronized (SEND_LOCK) | protected void send(DatagramPacket packet) throws IOException { synchronized(SEND_LOCK) { sendto(packet.getAddress(), packet.getPort(), packet.getData(), packet.getOffset(), packet.getLength()); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c6bd4d63622475fff01c1920f223e404234d976f/PlainDatagramSocketImpl.java/clean/core/src/classpath/gnu/gnu/java/net/PlainDatagramSocketImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1366,
12,
5139,
17049,
6667,
4414,
13,
1216,
1860,
225,
288,
565,
3852,
261,
21675,
67,
6589,
13,
1377,
288,
1377,
1366,
869,
12,
11482,
18,
588,
1887,
9334,
4414,
18,
588,
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,
282,
4750,
918,
1366,
12,
5139,
17049,
6667,
4414,
13,
1216,
1860,
225,
288,
565,
3852,
261,
21675,
67,
6589,
13,
1377,
288,
1377,
1366,
869,
12,
11482,
18,
588,
1887,
9334,
4414,
18,
588,
2... |
{ | { | public boolean canDock(Component c, Point p) { return areaOfClick(c, p) != -1; } | 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,
1071,
1250,
848,
40,
975,
12,
1841,
276,
16,
4686,
293,
13,
565,
288,
565,
327,
5091,
951,
6563,
12,
71,
16,
293,
13,
480,
300,
21,
31,
565,
289,
2,
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,
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,
1250,
848,
40,
975,
12,
1841,
276,
16,
4686,
293,
13,
565,
288,
565,
327,
5091,
951,
6563,
12,
71,
16,
293,
13,
480,
300,
21,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
if (mod != null) { TreePath path = new TreePath(mod.getRoot()); if (!tree.isExpanded(path)) toggleExpandState(path); } | 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... | |
public void processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicCheckBoxMenuItemUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
293,
582,
324,
328,
277,
276,
282,
331,
320,
277,
302,
282,
293,
436,
320,
276,
425,
272,
272,
490,
320,
582,
272,
425,
512,
331,
425,
290,
268,
261,
804,
490,
425,
290,
582,
467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1377,
293,
582,
324,
328,
277,
276,
282,
331,
320,
277,
302,
282,
293,
436,
320,
276,
425,
272,
272,
490,
320,
582,
272,
425,
512,
331,
425,
290,
268,
261,
804,
490,
425,
290,
582,
467,
... | ||
} | public void remove(Component comp) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0bcdc7c5655d1ed77837894a9de15b7556d346b/Container.java/buggy/core/src/classpath/java/java/awt/Container.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
289,
225,
289,
225,
289,
293,
97,
582,
97,
324,
97,
328,
97,
277,
97,
276,
97,
225,
289,
331,
97,
320,
97,
277,
97,
302,
97,
225,
289,
436,
97,
425,
97,
312,
97,
320,
97,
331,
97,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
289,
225,
289,
225,
289,
293,
97,
582,
97,
324,
97,
328,
97,
277,
97,
276,
97,
225,
289,
331,
97,
320,
97,
277,
97,
302,
97,
225,
289,
436,
97,
425,
97,
312,
97,
320,
97,
331,
97,
42... | |
Point click = e.getPoint(); int row = Math.round(click.y / getRowHeight()); | Point click = e.getPoint(); | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / getRowHeight()); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { boolean inBounds = false; boolean cntlClick = false; Rectangle bounds = getPathBounds(tree, path); bounds.x -= rightChildIndent - 4; bounds.width += rightChildIndent + 4; if (bounds.contains(click.x, click.y)) inBounds = true; else if (hasControlIcons() && (click.x < (bounds.x - rightChildIndent + 5) && click.x > (bounds.x - rightChildIndent - 5))) cntlClick = true; if ((inBounds || cntlClick) && tree.isVisible(path)) { selectPath(tree, path); if ((e.getClickCount() == 2 || cntlClick) && !isLeaf(row)) { if (tree.isExpanded(path)) tree.collapsePath(path); else tree.expandPath(path); } if (!cntlClick && tree.isEditable()) startEditing(path, 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,
377,
1071,
918,
7644,
24624,
12,
9186,
1133,
425,
13,
565,
288,
1082,
202,
2148,
4682,
273,
425,
18,
588,
2148,
5621,
1377,
509,
1027,
273,
2361,
18,
2260,
12,
7475,
18,
93,
342,
11835,
2686... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7644,
24624,
12,
9186,
1133,
425,
13,
565,
288,
1082,
202,
2148,
4682,
273,
425,
18,
588,
2148,
5621,
1377,
509,
1027,
273,
2361,
18,
2260,
12,
7475,
18,
93,
342,
11835,
2686... |
public SimpleAttributeSet(AttributeSet a) | public SimpleAttributeSet() | public SimpleAttributeSet(AttributeSet a) { tab = new Hashtable(); if (a != null) addAttributes(a); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/SimpleAttributeSet.java/buggy/core/src/classpath/javax/javax/swing/text/SimpleAttributeSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4477,
1499,
694,
1435,
225,
288,
565,
3246,
273,
394,
18559,
5621,
565,
309,
261,
69,
480,
446,
13,
565,
527,
2498,
12,
69,
1769,
225,
289,
2,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4477,
1499,
694,
1435,
225,
288,
565,
3246,
273,
394,
18559,
5621,
565,
309,
261,
69,
480,
446,
13,
565,
527,
2498,
12,
69,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public Object next() { | public FSEntry next() { | public Object next() { String fs = (String)fileSystemsRoots.next(); return new virtualFSEntry(fs); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d538379c9b0c745a5890964338071fced14d4c66/FileSystemAPIImpl.java/buggy/fs/src/fs/org/jnode/fs/service/def/FileSystemAPIImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1033,
1024,
1435,
288,
1082,
202,
780,
2662,
273,
261,
780,
13,
768,
31072,
17540,
18,
4285,
5621,
1082,
202,
2463,
394,
5024,
4931,
1622,
12,
2556,
1769,
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,
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,
1033,
1024,
1435,
288,
1082,
202,
780,
2662,
273,
261,
780,
13,
768,
31072,
17540,
18,
4285,
5621,
1082,
202,
2463,
394,
5024,
4931,
1622,
12,
2556,
1769,
202,
202,
97,
2,
-1... |
{ g.setColor(getHashColor()); heightOfLine = descent + halfHeight; g.drawLine(indentation + halfWidth, heightOfLine, indentation + rightChildIndent, heightOfLine); } | { g.setColor(getHashColor()); heightOfLine = descent + halfHeight; paintHorizontalLine(g, (JComponent) tree, heightOfLine, indentation + halfWidth, indentation + rightChildIndent); } | int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; boolean isRootVisible = tree.isRootVisible(); if (mod.isLeaf(curr)) { paintNode(g, indentation + 4, descent, tree, curr, true); descent += getRowHeight(); } else { if (depth > 0 || isRootVisible) { paintNode(g, indentation + 4, descent, tree, curr, false); descent += getRowHeight(); y0 += halfHeight; } int max = 0; if (!mod.isLeaf(curr)) max = mod.getChildCount(curr); if (tree.isExpanded(new TreePath(getPathToRoot(curr, 0)))) { for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (!isRootVisible && depth == 0) indent = 0; else if ((!isRootVisible && !curr.equals(mod.getRoot())) || isRootVisible) { g.setColor(getHashColor()); heightOfLine = descent + halfHeight; g.drawLine(indentation + halfWidth, heightOfLine, indentation + rightChildIndent, heightOfLine); } descent = paintRecursive(g, indent, descent, i, depth + 1, tree, mod, mod.getChild(curr, i)); } } } if (tree.isExpanded(new TreePath(getPathToRoot(curr, 0)))) if (y0 != heightOfLine && !mod.isLeaf(curr) && mod.getChildCount(curr) > 0) { g.setColor(getHashColor()); g.drawLine(indentation + halfWidth, y0, indentation + halfWidth, heightOfLine); } 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,
282,
509,
12574,
10483,
12,
17558,
314,
16,
509,
12018,
16,
509,
3044,
319,
16,
509,
1151,
1854,
16,
5397,
509,
3598,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
4306,
13,
225,
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,
282,
509,
12574,
10483,
12,
17558,
314,
16,
509,
12018,
16,
509,
3044,
319,
16,
509,
1151,
1854,
16,
5397,
509,
3598,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
4306,
13,
225,
288,
... |
} | } | public boolean getValueIsAdjusting() { return isAdjusting; } // getValueIsAdjusting() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/ListSelectionEvent.java/buggy/core/src/classpath/javax/javax/swing/event/ListSelectionEvent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
2366,
2520,
10952,
310,
1435,
288,
202,
202,
2463,
353,
10952,
310,
31,
202,
97,
368,
2366,
2520,
10952,
310,
1435,
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,
225,
202,
482,
1250,
2366,
2520,
10952,
310,
1435,
288,
202,
202,
2463,
353,
10952,
310,
31,
202,
97,
368,
2366,
2520,
10952,
310,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
disabledColor = textComponent.getDisabledTextColor(); | public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getForeground(); Rectangle rect = s.getBounds(); // FIXME: Text may be scrolled. Document document = textComponent.getDocument(); Element root = document.getDefaultRootElement(); int y = rect.y; for (int i = 0; i < root.getElementCount(); i++) { drawLine(i, g, rect.x, y); y += metrics.getHeight(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045a5b41cdfa747889101d3993040acf89788bc4/PlainView.java/clean/core/src/classpath/javax/javax/swing/text/PlainView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5673,
2957,
273,
977,
1841,
18,
588,
8853,
31061,
5621,
225,
5673,
2957,
273,
977,
1841,
18,
588,
8853,
31061,
5621,
225,
5673,
2957,
273,
977,
1841,
18,
588,
8853,
31061,
5621,
293,
9278,
295... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5673,
2957,
273,
977,
1841,
18,
588,
8853,
31061,
5621,
225,
5673,
2957,
273,
977,
1841,
18,
588,
8853,
31061,
5621,
225,
5673,
2957,
273,
977,
1841,
18,
588,
8853,
31061,
5621,
293,
9278,
295... | |
{ } | { } | public TreePageAction(int direction, String name) { } | 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,
1964,
1803,
12,
474,
4068,
16,
514,
508,
13,
225,
288,
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,
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,
4902,
1964,
1803,
12,
474,
4068,
16,
514,
508,
13,
225,
288,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
} | } | public void select(int start, int end) { int length = doc.getLength(); start = Math.max(start, 0); start = Math.min(start, length); end = Math.max(end, 0); end = Math.min(end, length); setCaretPosition(start); moveCaretPosition(end); } | 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,
2027,
12,
474,
787,
16,
509,
679,
13,
565,
288,
565,
509,
769,
273,
997,
18,
588,
1782,
5621,
3639,
787,
273,
2361,
18,
1896,
12,
1937,
16,
374,
1769,
565,
787,
273,
2361,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2027,
12,
474,
787,
16,
509,
679,
13,
565,
288,
565,
509,
769,
273,
997,
18,
588,
1782,
5621,
3639,
787,
273,
2361,
18,
1896,
12,
1937,
16,
374,
1769,
565,
787,
273,
2361,
... |
} } | } } | public void installUI(JComponent c) { super.installUI(c); if (c instanceof JToolBar) { toolBar = (JToolBar) c; toolBar.setOpaque(true); installDefaults(); installComponents(); installListeners(toolBar); installKeyboardActions(); } } | 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,
918,
3799,
5370,
12,
46,
1841,
276,
13,
565,
288,
202,
9565,
18,
5425,
5370,
12,
71,
1769,
202,
430,
261,
71,
1276,
804,
6364,
5190,
13,
202,
95,
202,
565,
5226,
5190,
273,
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,
377,
1071,
918,
3799,
5370,
12,
46,
1841,
276,
13,
565,
288,
202,
9565,
18,
5425,
5370,
12,
71,
1769,
202,
430,
261,
71,
1276,
804,
6364,
5190,
13,
202,
95,
202,
565,
5226,
5190,
273,
261,... |
public boolean getValueIsAdjusting() { | public boolean getValueIsAdjusting() { | public boolean getValueIsAdjusting() { return isAdjusting; } // getValueIsAdjusting() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/ListSelectionEvent.java/buggy/core/src/classpath/javax/javax/swing/event/ListSelectionEvent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
2366,
2520,
10952,
310,
1435,
288,
202,
202,
2463,
353,
10952,
310,
31,
202,
97,
368,
2366,
2520,
10952,
310,
1435,
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,
225,
202,
482,
1250,
2366,
2520,
10952,
310,
1435,
288,
202,
202,
2463,
353,
10952,
310,
31,
202,
97,
368,
2366,
2520,
10952,
310,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
public synchronized Object getOption(int option_id) throws SocketException { throw new SocketException("Not implemented"); | public synchronized Object getOption(int optionId) throws SocketException { if (optionId == SO_BINDADDR) { try { InetSocketAddress local = channel.getLocalAddress(); if (local == null) return null; return local.getAddress(); } catch (SocketException se) { throw se; } catch (IOException ioe) { SocketException se = new SocketException(); se.initCause(ioe); throw se; } } if (optionId == IP_MULTICAST_IF || optionId == IP_MULTICAST_IF2) return impl.getMulticastInterface(optionId); return impl.getOption(optionId); | public synchronized Object getOption(int option_id) throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c6bd4d63622475fff01c1920f223e404234d976f/PlainDatagramSocketImpl.java/clean/core/src/classpath/gnu/gnu/java/net/PlainDatagramSocketImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
1033,
5651,
12,
474,
1456,
67,
350,
13,
565,
1216,
8758,
503,
288,
1377,
368,
632,
3489,
17,
12524,
1158,
290,
8785,
1377,
368,
6241,
2348,
1791,
5411,
604,
394,
8758,
503,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
1033,
5651,
12,
474,
1456,
67,
350,
13,
565,
1216,
8758,
503,
288,
1377,
368,
632,
3489,
17,
12524,
1158,
290,
8785,
1377,
368,
6241,
2348,
1791,
5411,
604,
394,
8758,
503,
... |
cloneObj.attribHash = new Hashtable(); Enumeration keys = this.attribHash.keys(); | } | 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... |
revalidate(); repaint(); | public void setOpaque(boolean isOpaque) { boolean oldOpaque = opaque; opaque = isOpaque; firePropertyChange("opaque", oldOpaque, opaque); revalidate(); repaint(); } | 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,
282,
1071,
918,
444,
3817,
14886,
12,
6494,
353,
3817,
14886,
13,
202,
95,
565,
1250,
1592,
3817,
14886,
273,
22519,
31,
565,
22519,
273,
353,
3817,
14886,
31,
565,
4452,
1396,
3043,
2932,
556... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
3817,
14886,
12,
6494,
353,
3817,
14886,
13,
202,
95,
565,
1250,
1592,
3817,
14886,
273,
22519,
31,
565,
22519,
273,
353,
3817,
14886,
31,
565,
4452,
1396,
3043,
2932,
556... | |
int oldAlignment = verticalAlignment; verticalAlignment = checkVerticalKey(alignment, "verticalAlignment"); | int oldAlignment = verticalAlignment; verticalAlignment = checkVerticalKey(alignment, "verticalAlignment"); | public void setVerticalAlignment(int alignment) { if (alignment == verticalAlignment) return; int oldAlignment = verticalAlignment; verticalAlignment = checkVerticalKey(alignment, "verticalAlignment"); firePropertyChange("verticalAlignment", oldAlignment, verticalAlignment); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JLabel.java/buggy/core/src/classpath/javax/javax/swing/JLabel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
15704,
11535,
12,
474,
8710,
13,
225,
288,
565,
309,
261,
14409,
422,
9768,
11535,
13,
1377,
327,
31,
202,
474,
1592,
11535,
273,
9768,
11535,
31,
202,
17824,
11535,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15704,
11535,
12,
474,
8710,
13,
225,
288,
565,
309,
261,
14409,
422,
9768,
11535,
13,
1377,
327,
31,
202,
474,
1592,
11535,
273,
9768,
11535,
31,
202,
17824,
11535,
273,
... |
} | protected void determineOffset(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { renderer.getTreeCellRendererComponent(tree, value, isSelected, expanded, leaf, row, true); Icon c = renderer.getIcon(); if (c != null) offset = renderer.getIconTextGap() + c.getIconWidth(); else offset = 0; } | 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,
289,
225,
289,
225,
289,
293,
97,
436,
97,
320,
97,
268,
97,
425,
97,
276,
97,
268,
97,
425,
97,
302,
97,
225,
289,
331,
97,
320,
97,
277,
97,
302,
97,
225,
289,
302,
97,
425,
97,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
289,
225,
289,
225,
289,
293,
97,
436,
97,
320,
97,
268,
97,
425,
97,
276,
97,
268,
97,
425,
97,
302,
97,
225,
289,
331,
97,
320,
97,
277,
97,
302,
97,
225,
289,
302,
97,
425,
97,
26... | |
{ | { | public TextUI getUI() { return (TextUI) ui; } | 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,
3867,
5370,
336,
5370,
1435,
565,
288,
565,
327,
261,
1528,
5370,
13,
5915,
31,
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,
3867,
5370,
336,
5370,
1435,
565,
288,
565,
327,
261,
1528,
5370,
13,
5915,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
page.add(setPortAttributes); page.add(setLandAttributes); | JPanel pagePage = new JPanel(); | public void initPanel() throws Exception { setLayout(new BorderLayout()); contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); add(contentPane,BorderLayout.NORTH); // define ppPanel panel JPanel ppp = new JPanel(); ppp.setBorder(BorderFactory.createTitledBorder(LangTool.getString("sa.print"))); defaultPrinter = new JCheckBox(LangTool.getString("sa.defaultPrinter")); if (getStringProperty("defaultPrinter").equals("Yes")) defaultPrinter.setSelected(true); ppp.add(defaultPrinter); //--- Create a printerJob object PrinterJob printJob = PrinterJob.getPrinterJob (); // will have to remember this for the next time. // Always set a page format before call setPrintable to // set the orientation. PageFormat pf = printJob.defaultPage(); pappyPort = pf.getPaper(); pappyLand = pf.getPaper(); // Portrait paper parameters if (getStringProperty("print.portWidth").length() != 0 && getStringProperty("print.portHeight").length() != 0 && getStringProperty("print.portImageWidth").length() != 0 && getStringProperty("print.portImageHeight").length() != 0 && getStringProperty("print.portImage.X").length() != 0 && getStringProperty("print.portImage.Y").length() != 0) { pappyPort.setSize(Double.parseDouble(getStringProperty("print.portWidth")), Double.parseDouble(getStringProperty("print.portHeight"))); pappyPort.setImageableArea(Double.parseDouble(getStringProperty("print.portImage.X")), Double.parseDouble(getStringProperty("print.portImage.Y")), Double.parseDouble(getStringProperty("print.portImageWidth")), Double.parseDouble(getStringProperty("print.portImageHeight"))); } // Landscape paper parameters if (getStringProperty("print.landWidth").length() != 0 && getStringProperty("print.landHeight").length() != 0 && getStringProperty("print.landImageWidth").length() != 0 && getStringProperty("print.landImageHeight").length() != 0 && getStringProperty("print.landImage.X").length() != 0 && getStringProperty("print.landImage.Y").length() != 0) { pappyLand.setSize(Double.parseDouble(getStringProperty("print.landWidth")), Double.parseDouble(getStringProperty("print.landHeight"))); pappyLand.setImageableArea(Double.parseDouble(getStringProperty("print.landImage.X")), Double.parseDouble(getStringProperty("print.landImage.Y")), Double.parseDouble(getStringProperty("print.landImageWidth")), Double.parseDouble(getStringProperty("print.landImageHeight"))); } // define page panel JPanel page = new JPanel(); page.setBorder(BorderFactory.createTitledBorder( LangTool.getString("sa.pageParameters"))); setPortAttributes = new JButton(LangTool.getString("sa.columns24")); setPortAttributes.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { getPortraitAttributes(); } }); setLandAttributes = new JButton(LangTool.getString("sa.columns132")); setLandAttributes.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { getLandscapeAttributes(); } }); page.add(setPortAttributes); page.add(setLandAttributes); contentPane.add(ppp); contentPane.add(page);// contentPane.add(ppa); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/df65a89f3874249d9a0046d2eba72cb4360e1f37/PrinterAttributesPanel.java/clean/tn5250j/src/org/tn5250j/settings/PrinterAttributesPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1208,
5537,
1435,
1216,
1185,
225,
288,
1377,
18479,
12,
2704,
30814,
10663,
1377,
913,
8485,
273,
394,
24048,
5621,
1377,
913,
8485,
18,
542,
3744,
12,
2704,
8549,
3744,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1208,
5537,
1435,
1216,
1185,
225,
288,
1377,
18479,
12,
2704,
30814,
10663,
1377,
913,
8485,
273,
394,
24048,
5621,
1377,
913,
8485,
18,
542,
3744,
12,
2704,
8549,
3744,
12,
1... |
public abstract void insert_Value(Serializable x); | public abstract void insert_Value(Serializable x, TypeCode typecode); | public abstract void insert_Value(Serializable x); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72c2f223affb33a2850592b25490f4663c651bee/Any.java/buggy/core/src/classpath/org/org/omg/CORBA/Any.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8770,
918,
2243,
67,
620,
12,
21682,
619,
1769,
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,
0,
... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8770,
918,
2243,
67,
620,
12,
21682,
619,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
current = getParent(tree.getModel().getRoot(), current); | current = getParent(treeModel.getRoot(), current); | int getLevel(Object node) { int count = -1; Object current = node; do { current = getParent(tree.getModel().getRoot(), current); count++; } while (current != null); return count; } | 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,
509,
17236,
12,
921,
756,
13,
225,
288,
565,
509,
1056,
273,
300,
21,
31,
565,
1033,
783,
273,
756,
31,
565,
741,
1377,
288,
3639,
783,
273,
5089,
12,
3413,
1488,
18,
588,
2375,
9334,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
17236,
12,
921,
756,
13,
225,
288,
565,
509,
1056,
273,
300,
21,
31,
565,
1033,
783,
273,
756,
31,
565,
741,
1377,
288,
3639,
783,
273,
5089,
12,
3413,
1488,
18,
588,
2375,
9334,... |
{ return null; } | { return null; } | public AccessibleContext getAccessibleContext() { return null; } | 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,
5016,
1523,
1042,
336,
10451,
1042,
1435,
565,
288,
202,
2463,
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,
... | [
1,
1,
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,
1071,
5016,
1523,
1042,
336,
10451,
1042,
1435,
565,
288,
202,
2463,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
int mouseY) { } | int mouseY) { if (isLocationInExpandControl(path, mouseX, mouseY)) toggleExpandState(path); } | protected void checkForClickInExpandControl(TreePath path, int mouseX, int mouseY) { // 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,
13855,
6563,
382,
12271,
3367,
12,
2471,
743,
589,
16,
509,
7644,
60,
16,
1082,
202,
474,
7644,
61,
13,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
202,
97,
2,
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,
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,
225,
202,
1117,
918,
13855,
6563,
382,
12271,
3367,
12,
2471,
743,
589,
16,
509,
7644,
60,
16,
1082,
202,
474,
7644,
61,
13,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
202,
97,
2,
-100,
... |
TreeModel mod = tree.getModel(); | 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,
4202,
309,
261,
2159,
422,
446,
13,
1377,
288,
3639,
309,
261,
5979,
422,
374,
13,
1850,
327,
446,
31,
7734,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4202,
309,
261,
2159,
422,
446,
13,
1377,
288,
3639,
309,
261,
5979,
422,
374,
13,
1850,
327,
446,
31,
7734,
32... | |
{ | { | public Dimension getMaximumSize(JComponent c) { return getPreferredSize(c); } | 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,
1071,
13037,
25194,
1225,
12,
46,
1841,
276,
13,
565,
288,
565,
327,
12822,
4193,
1225,
12,
71,
1769,
565,
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,
1071,
13037,
25194,
1225,
12,
46,
1841,
276,
13,
565,
288,
565,
327,
12822,
4193,
1225,
12,
71,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
textComponent.setBackground(defaults.getColor(prefix + ".background")); textComponent.setForeground(defaults.getColor(prefix + ".foreground")); | protected void installDefaults() { Caret caret = textComponent.getCaret(); if (caret == null) { caret = createCaret(); textComponent.setCaret(caret); } Highlighter highlighter = textComponent.getHighlighter(); if (highlighter == null) textComponent.setHighlighter(createHighlighter()); String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); textComponent.setBackground(defaults.getColor(prefix + ".background")); textComponent.setForeground(defaults.getColor(prefix + ".foreground")); textComponent.setMargin(defaults.getInsets(prefix + ".margin")); textComponent.setBorder(defaults.getBorder(prefix + ".border")); textComponent.setFont(defaults.getFont(prefix + ".font")); caret.setBlinkRate(defaults.getInt(prefix + ".caretBlinkRate")); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045a5b41cdfa747889101d3993040acf89788bc4/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3799,
7019,
1435,
565,
288,
565,
385,
20731,
21683,
273,
977,
1841,
18,
588,
39,
20731,
5621,
565,
309,
261,
71,
20731,
422,
446,
13,
1377,
288,
3639,
21683,
273,
752,
39,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3799,
7019,
1435,
565,
288,
565,
385,
20731,
21683,
273,
977,
1841,
18,
588,
39,
20731,
5621,
565,
309,
261,
71,
20731,
422,
446,
13,
1377,
288,
3639,
21683,
273,
752,
39,
20... | |
if (next != null) | if (next != null) | 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... |
public String getToolTipText(MouseEvent event) { return getToolTipText(); } | public String getToolTipText() { return toolTipText; } | public String getToolTipText(MouseEvent event) { return getToolTipText(); } | 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,
514,
336,
29250,
1528,
12,
9186,
1133,
871,
13,
202,
95,
565,
327,
336,
29250,
1528,
5621,
202,
97,
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,
225,
202,
482,
514,
336,
29250,
1528,
12,
9186,
1133,
871,
13,
202,
95,
565,
327,
336,
29250,
1528,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
{ | { | 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,
... |
case MESSAGE_PING: DataOutputStream out = conn.getDataOutputStream(); out.writeByte(MESSAGE_PING_ACK); out.flush(); break; | public static void dispatch(UnicastConnection conn) throws Exception { switch (conn.getDataInputStream().readUnsignedByte()) { case MESSAGE_CALL: incomingMessageCall(conn); break; default: throw new Exception("bad method type"); }} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/UnicastServer.java/buggy/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
648,
9841,
67,
20002,
30,
225,
28680,
596,
273,
1487,
18,
588,
751,
4632,
5621,
596,
18,
2626,
3216,
12,
8723,
67,
20002,
67,
3649,
1769,
596,
18,
11330,
5621,
898,
31,
293,
3593,
9841,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
648,
9841,
67,
20002,
30,
225,
28680,
596,
273,
1487,
18,
588,
751,
4632,
5621,
596,
18,
2626,
3216,
12,
8723,
67,
20002,
67,
3649,
1769,
596,
18,
11330,
5621,
898,
31,
293,
3593,
9841,
67,
... | |
while (i < abyte0.length && abyte0[i++] == -1) switch (abyte0[i++]) { | while(i < abyte0.length && abyte0[i++] == -1) switch(abyte0[i++]) { | 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 synchronized String substring(int beginIndex, int endIndex) | public String substring(int beginIndex) | public synchronized String substring(int beginIndex, int endIndex) { int len = endIndex - beginIndex; if (beginIndex < 0 || endIndex > count || endIndex < beginIndex) throw new StringIndexOutOfBoundsException(); if (len == 0) return ""; // Don't copy unless substring is smaller than 1/4 of the buffer. boolean share_buffer = ((len << 2) >= value.length); if (share_buffer) this.shared = true; // Package constructor avoids an array copy. return new String(value, beginIndex, len, share_buffer); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/68a6301301378680519f2b146daec37812a1bc22/StringBuffer.java/buggy/core/src/classpath/java/java/lang/StringBuffer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
3019,
12,
474,
30929,
13,
225,
288,
565,
509,
562,
273,
13818,
300,
30929,
31,
565,
309,
261,
10086,
1016,
411,
374,
747,
13818,
405,
1056,
747,
13818,
411,
30929,
13,
1377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3019,
12,
474,
30929,
13,
225,
288,
565,
509,
562,
273,
13818,
300,
30929,
31,
565,
309,
261,
10086,
1016,
411,
374,
747,
13818,
405,
1056,
747,
13818,
411,
30929,
13,
1377,
... |
public boolean drawImage(Image image, int x, int y, Color bgcolor, ImageObserver observer) { | public final boolean drawImage(Image image, int x, int y, Color bgcolor, ImageObserver observer) { | public boolean drawImage(Image image, int x, int y, Color bgcolor, ImageObserver observer) { try { final Raster raster = getCompatibleRaster(image); surface.drawCompatibleRaster(raster, 0, 0, x, y, raster.getWidth(), raster.getHeight(), bgcolor); return true; } catch (InterruptedException ex) { return false; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4557d0702a8d0890ae78e109ce9a6ba79d7a5beb/AbstractSurfaceGraphics.java/buggy/gui/src/awt/org/jnode/awt/util/AbstractSurfaceGraphics.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
25783,
12,
2040,
1316,
16,
509,
619,
16,
509,
677,
16,
5563,
31509,
16,
3421,
11048,
9655,
13,
288,
202,
202,
698,
288,
1082,
202,
6385,
30757,
12553,
273,
336,
14599,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
25783,
12,
2040,
1316,
16,
509,
619,
16,
509,
677,
16,
5563,
31509,
16,
3421,
11048,
9655,
13,
288,
202,
202,
698,
288,
1082,
202,
6385,
30757,
12553,
273,
336,
14599,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.