rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
System.out.println("vclk_freq=" + vclk_freq + ", fbdiv=" + feedback_div + ", postdiv=" + pll_output_freq + ", bitvalue=" + bitvalue); | public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d5c7e362050b699d43eb4aaacfb042cb5a39e2bc/PllRegs.java/clean/gui/src/driver/org/jnode/driver/video/ati/radeon/PllRegs.java | |
System.out.println(msg); for (int i = 0; i <= 0x2e; i++) { System.out.println("PLL[" + NumberUtils.hex(i, 2) + "]=" + NumberUtils.hex(io.getPLL(i))); | if (false) { System.out.println(msg); for (int i = 0; i <= 0x2e; i++) { System.out.println("PLL[" + NumberUtils.hex(i, 2) + "]=" + NumberUtils.hex(io.getPLL(i))); } } else { System.out.println(msg); System.out.println("PPLL_DIV_3 0x" + NumberUtils.hex(io.getPLL(PPLL_DIV_3))); System.out.println("PPLL_REF_DIV 0x" + Nu... | private void dumpPLLRegs(RadeonVgaIO io, String msg) { if (false) { System.out.println(msg); for (int i = 0; i <= 0x2e; i++) { System.out.println("PLL[" + NumberUtils.hex(i, 2) + "]=" + NumberUtils.hex(io.getPLL(i))); } } else { System.out.println(msg); System.out.println("PPLL_DIV_3 0x" + Number... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d5c7e362050b699d43eb4aaacfb042cb5a39e2bc/PllRegs.java/clean/gui/src/driver/org/jnode/driver/video/ati/radeon/PllRegs.java |
} else { System.out.println(msg); System.out.println("PPLL_DIV_3 0x" + NumberUtils.hex(io.getPLL(PPLL_DIV_3))); System.out.println("PPLL_REF_DIV 0x" + NumberUtils.hex(io.getPLL(PPLL_REF_DIV))); System.out.println("HTOTAL_CNTL 0x" + NumberUtils.hex(io.getPLL(HTOTAL_CNTL))); | private void dumpPLLRegs(RadeonVgaIO io, String msg) { if (false) { System.out.println(msg); for (int i = 0; i <= 0x2e; i++) { System.out.println("PLL[" + NumberUtils.hex(i, 2) + "]=" + NumberUtils.hex(io.getPLL(i))); } } else { System.out.println(msg); System.out.println("PPLL_DIV_3 0x" + Number... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d5c7e362050b699d43eb4aaacfb042cb5a39e2bc/PllRegs.java/clean/gui/src/driver/org/jnode/driver/video/ati/radeon/PllRegs.java | |
tracker.removeImage(image, id - 1); | protected void loadImage(Image image) { try { tracker.addImage(image, id); id++; tracker.waitForID(id - 1); } catch (InterruptedException ex) { // Ignore this for now. } finally { loadStatus = tracker.statusID(id - 1, false); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/ImageIcon.java/buggy/core/src/classpath/javax/javax/swing/ImageIcon.java | |
{ | public void itemStateChanged(ItemEvent e) { ComboBoxModel model = comboBox.getModel(); Object v = model.getSelectedItem(); if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), v); } comboBox.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
} | public void itemStateChanged(ItemEvent e) { ComboBoxModel model = comboBox.getModel(); Object v = model.getSelectedItem(); if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), v); } comboBox.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
public void keyPressed(KeyEvent e) { // FIXME: This method calls JComboBox.selectWithKeyChar if the key that was // pressed is not a navigation key. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | ||
{ | public void contentsChanged(ListDataEvent e) { if (e.getIndex0() != -1 || e.getIndex1() != -1) { isMinimumSizeDirty = true; comboBox.revalidate(); } if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), comboBo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
} | public void contentsChanged(ListDataEvent e) { if (e.getIndex0() != -1 || e.getIndex1() != -1) { isMinimumSizeDirty = true; comboBox.revalidate(); } if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), comboBo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
{ | public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
} | public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
Component comp = renderer.getListCellRendererComponent(listBox, model.getElementAt(i), -1, false, false); | Component comp = renderer.getListCellRendererComponent(listBox, model.getElementAt(i), -1, false, false); | public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java |
{ | public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
} | public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
{ | public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
} | public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
comboBox.getEditor().getEditorComponent().setEnabled(comboBox .isEnabled()); | comboBox.getEditor().getEditorComponent().setEnabled( comboBox.isEnabled()); | public void propertyChange(PropertyChangeEvent e) { // Lets assume every change invalidates the minimumsize. isMinimumSizeDirty = true; if (e.getPropertyName().equals("enabled")) { arrowButton.setEnabled(comboBox.isEnabled()); if (comboBox.isEditable()) comboBox.getEditor().getEdito... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java |
throws NotImplementedException | public Accessible getAccessibleChild(JComponent c, int i) { // FIXME: Need to implement return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
throws NotImplementedException | public int getAccessibleChildrenCount(JComponent c) { // FIXME: Need to implement return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
" ", -1, false, false); | " ", -1, false, false); | protected Dimension getDefaultSize() { Component comp = DEFAULT_RENDERER.getListCellRendererComponent(listBox, " ", -1, false, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java |
throws NotImplementedException | protected void installKeyboardActions() throws NotImplementedException { // FIXME: Need to implement. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
SwingUtilities.replaceUIInputMap(comboBox, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, (InputMap) UIManager.get("ComboBox.ancestorInputMap")); | protected void installKeyboardActions() throws NotImplementedException { // FIXME: Need to implement. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
protected boolean isNavigationKey(int keyCode) { return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | ||
comboBox.getSelectedItem(), -1, true, false); | comboBox.getSelectedItem(), -1, true, false); | public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); /* Gets the component to be drawn for the current value. * If there is currently no selected item we will take an empty * String ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java |
comboBox.getSelectedItem(), -1, false, false); | comboBox.getSelectedItem(), -1, false, false); | public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); /* Gets the component to be drawn for the current value. * If there is currently no selected item we will take an empty * String ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java |
{ | public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) { Color saved = g.getColor(); if (comboBox.isEnabled()) { g.setColor(UIManager.getColor("UIManager.background")); } else { g.setColor(UIManager.getCol... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
} | public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) { Color saved = g.getColor(); if (comboBox.isEnabled()) { g.setColor(UIManager.getColor("UIManager.background")); } else { g.setColor(UIManager.getCol... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
{ | public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) { Color saved = g.getColor(); if (comboBox.isEnabled()) { g.setColor(UIManager.getColor("UIManager.background")); } else { g.setColor(UIManager.getCol... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
} | public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) { Color saved = g.getColor(); if (comboBox.isEnabled()) { g.setColor(UIManager.getColor("UIManager.background")); } else { g.setColor(UIManager.getCol... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
{ | protected Rectangle rectangleForCurrentValue() { int w = comboBox.getWidth(); int h = comboBox.getHeight(); Insets i = comboBox.getInsets(); int arrowSize = h - (i.top + i.bottom); if (arrowButton != null) { arrowSize = arrowButton.getWidth(); } return new Rectangle(i.left, i.top, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
} | protected Rectangle rectangleForCurrentValue() { int w = comboBox.getWidth(); int h = comboBox.getHeight(); Insets i = comboBox.getInsets(); int arrowSize = h - (i.top + i.bottom); if (arrowButton != null) { arrowSize = arrowButton.getWidth(); } return new Rectangle(i.left, i.top, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
throws NotImplementedException | protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: Need to implement. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
SwingUtilities.replaceUIInputMap(comboBox, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); | protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: Need to implement. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | |
} | } | protected AccessibleJFileChooser() { // Nothing to do here.} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8a49a412752cdcc88a774cac2de160a23c6f550/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java |
private static final BigInteger add(int x, int y) | private static BigInteger add(int x, int y) | private static final BigInteger add(int x, int y) { return valueOf((long) x + (long) y); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/BigInteger.java/clean/core/src/classpath/java/java/math/BigInteger.java |
private static final int[] euclidInv(int a, int b, int prevDiv) | private static int[] euclidInv(int a, int b, int prevDiv) | private static final int[] euclidInv(int a, int b, int prevDiv) { if (b == 0) throw new ArithmeticException("not invertible"); if (b == 1) // Success: values are indeed invertible! // Bottom of the recursion reached; start unwinding. return new int[] { -prevDiv, 1 }; int[] xy = euclidInv(b, a % b, a /... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/BigInteger.java/clean/core/src/classpath/java/java/math/BigInteger.java |
private static final int gcd(int a, int b) | private static int gcd(int a, int b) | private static final int gcd(int a, int b) { // Euclid's algorithm, copied from libg++. int tmp; if (b > a) { tmp = a; a = b; b = tmp; } for(;;) { if (b == 0) return a; if (b == 1) return b; tmp = b; b = a % b; a = tmp; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/BigInteger.java/clean/core/src/classpath/java/java/math/BigInteger.java |
private final boolean isNegative() | private boolean isNegative() | private final boolean isNegative() { return (words == null ? ival : words[ival - 1]) < 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/BigInteger.java/clean/core/src/classpath/java/java/math/BigInteger.java |
private final boolean isOne() | private boolean isOne() | private final boolean isOne() { return words == null && ival == 1; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/BigInteger.java/clean/core/src/classpath/java/java/math/BigInteger.java |
private final boolean isZero() | private boolean isZero() | private final boolean isZero() { return words == null && ival == 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/BigInteger.java/clean/core/src/classpath/java/java/math/BigInteger.java |
private final void set(long y) | private void set(long y) | private final void set(long y) { int i = (int) y; if ((long) i == y) { ival = i; words = null; } else { realloc(2); words[0] = i; words[1] = (int) (y >> 32); ival = 2; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/BigInteger.java/clean/core/src/classpath/java/java/math/BigInteger.java |
private static final BigInteger times(BigInteger x, int y) | private static BigInteger times(BigInteger x, int y) | private static final BigInteger times(BigInteger x, int y) { if (y == 0) return ZERO; if (y == 1) return x; int[] xwords = x.words; int xlen = x.ival; if (xwords == null) return valueOf((long) xlen * (long) y); boolean negative; BigInteger result = BigInteger.alloc(xlen + 1); i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/BigInteger.java/clean/core/src/classpath/java/java/math/BigInteger.java |
private NumericShaper (int ranges, int context) | private NumericShaper (int key, int mask) | private NumericShaper (int ranges, int context) { this.ranges = ranges; this.context = context; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/NumericShaper.java/buggy/core/src/classpath/java/java/awt/font/NumericShaper.java |
this.ranges = ranges; this.context = context; | this.key = Integer.numberOfTrailingZeros(key); this.mask = mask; | private NumericShaper (int ranges, int context) { this.ranges = ranges; this.context = context; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/NumericShaper.java/buggy/core/src/classpath/java/java/awt/font/NumericShaper.java |
public boolean equals (Object obj) { if (! (obj instanceof NumericShaper)) return false; NumericShaper tmp = (NumericShaper) obj; return (ranges == tmp.ranges && context == tmp.context); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/NumericShaper.java/buggy/core/src/classpath/java/java/awt/font/NumericShaper.java | ||
return (ranges == tmp.ranges && context == tmp.context); | return key == tmp.key && mask == tmp.mask; | public boolean equals (Object obj) { if (! (obj instanceof NumericShaper)) return false; NumericShaper tmp = (NumericShaper) obj; return (ranges == tmp.ranges && context == tmp.context); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/NumericShaper.java/buggy/core/src/classpath/java/java/awt/font/NumericShaper.java |
throw new Error ("not implemented"); | if ((ranges & ~ALL_RANGES) != 0) throw new IllegalArgumentException("argument out of range"); return new NumericShaper(EUROPEAN, ranges); | public static NumericShaper getContextualShaper (int ranges) { throw new Error ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/NumericShaper.java/buggy/core/src/classpath/java/java/awt/font/NumericShaper.java |
return ranges; | return mask & ALL_RANGES; | public int getRanges () { return ranges; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/NumericShaper.java/buggy/core/src/classpath/java/java/awt/font/NumericShaper.java |
throw new Error ("not implemented"); | if (Integer.bitCount(singleRange) != 1) throw new IllegalArgumentException("more than one bit set in argument"); if ((singleRange & ~ALL_RANGES) != 0) throw new IllegalArgumentException("argument out of range"); return new NumericShaper(singleRange, Integer.MIN_VALUE | singleRange); | public static NumericShaper getShaper (int singleRange) { throw new Error ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/NumericShaper.java/buggy/core/src/classpath/java/java/awt/font/NumericShaper.java |
throw new Error ("not implemented"); | return key ^ mask; | public int hashCode () { throw new Error ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/NumericShaper.java/buggy/core/src/classpath/java/java/awt/font/NumericShaper.java |
throw new Error ("not implemented"); | return mask > 0; | public boolean isContextual () { throw new Error ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/NumericShaper.java/buggy/core/src/classpath/java/java/awt/font/NumericShaper.java |
shape (text, start, count, context); | shape (text, start, count, 1 << key); | public void shape (char[] text, int start, int count) { shape (text, start, count, context); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/NumericShaper.java/buggy/core/src/classpath/java/java/awt/font/NumericShaper.java |
throw new Error ("not implemented"); | return "key=" + key + "; mask=" + mask; | public String toString () { throw new Error ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/NumericShaper.java/buggy/core/src/classpath/java/java/awt/font/NumericShaper.java |
public int getIconHeight() { return 10; } | public int getIconHeight() { return 10; } | public int getIconHeight() { return 10; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicIconFactory.java |
public int getIconWidth() { return 10; } | public int getIconWidth() { return 10; } | public int getIconWidth() { return 10; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicIconFactory.java |
listenerList.add (HyperlinkListener.class, listener); | listenerList.add(HyperlinkListener.class, listener); | public void addHyperlinkListener(HyperlinkListener listener) { listenerList.add (HyperlinkListener.class, listener); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JEditorPane.java/buggy/core/src/classpath/javax/javax/swing/JEditorPane.java |
void setPage(URL page) throws IOException | public void setPage(String url) throws IOException | void setPage(URL page) throws IOException { // Sets the current URL being displayed. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JEditorPane.java/buggy/core/src/classpath/javax/javax/swing/JEditorPane.java |
void setPage(URL page) throws IOException { // Sets the current URL being displayed. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JEditorPane.java/buggy/core/src/classpath/javax/javax/swing/JEditorPane.java | ||
critOids = new HashSet(); nonCritOids = new HashSet(); | public X509CRL(InputStream encoded) throws CRLException, IOException { super(); revokedCerts = new HashMap(); extensions = new HashMap(); critOids = new HashSet(); nonCritOids = new HashSet(); try { parse(encoded); } catch (IOException ioe) { ioe.printStackTrace(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java | |
return ((X509CRL) o).revokedCerts.equals(revokedCerts); | if (!(o instanceof X509CRL)) return false; return ((X509CRL) o).getRevokedCertificates().equals(revokedCerts.values()); | public boolean equals(Object o) { return ((X509CRL) o).revokedCerts.equals(revokedCerts); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
return Collections.unmodifiableSet(critOids); | HashSet s = new HashSet(); for (Iterator it = extensions.values().iterator(); it.hasNext(); ) { Extension e = (Extension) it.next(); if (e.isCritical()) s.add(e.getOid().toString()); } return Collections.unmodifiableSet(s); | public Set getCriticalExtensionOIDs() { return Collections.unmodifiableSet(critOids); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
byte[] ext = (byte[]) extensions.get(oid); if (ext != null) return (byte[]) ext.clone(); | Extension e = getExtension(new OID(oid)); if (e != null) { return e.getValue().getEncoded(); } | public byte[] getExtensionValue(String oid) { byte[] ext = (byte[]) extensions.get(oid); if (ext != null) return (byte[]) ext.clone(); return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
return issuerDN; | return new X500Principal(issuerDN.getDer()); | public X500Principal getIssuerX500Principal() { return issuerDN; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
return Collections.unmodifiableSet(nonCritOids); | HashSet s = new HashSet(); for (Iterator it = extensions.values().iterator(); it.hasNext(); ) { Extension e = (Extension) it.next(); if (!e.isCritical()) s.add(e.getOid().toString()); } return Collections.unmodifiableSet(s); | public Set getNonCriticalExtensionOIDs() { return Collections.unmodifiableSet(nonCritOids); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
public X509CRLEntry getRevokedCertificate(BigInteger serialNo) | public java.security.cert.X509CRLEntry getRevokedCertificate(BigInteger serialNo) | public X509CRLEntry getRevokedCertificate(BigInteger serialNo) { return (X509CRLEntry) revokedCerts.get(serialNo); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
return (X509CRLEntry) revokedCerts.get(serialNo); | return (java.security.cert.X509CRLEntry) revokedCerts.get(serialNo); | public X509CRLEntry getRevokedCertificate(BigInteger serialNo) { return (X509CRLEntry) revokedCerts.get(serialNo); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
return false; | for (Iterator it = extensions.values().iterator(); it.hasNext(); ) { Extension e = (Extension) it.next(); if (e.isCritical() && !e.isSupported()) return true; } return false; | public boolean hasUnsupportedCriticalExtension() { return false; // XXX } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
throw new ASN1ParsingException("malformed CertificateList"); | throw new IOException("malformed CertificateList"); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
throw new ASN1ParsingException("malformed TBSCertList"); | throw new IOException("malformed TBSCertList"); debug("start tbsCertList len == " + val.getLength()); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
throw new ASN1ParsingException("malformed AlgorithmIdentifier"); | throw new IOException("malformed AlgorithmIdentifier"); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
issuerDN = new X500Principal(in); | val = der.read(); issuerDN = new X500DistinguishedName(val.getEncoded()); der.skip(val.getLength()); debug("read issuer == " + issuerDN); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
X509CRLEntry entry = new gnu.java.security.x509.X509CRLEntry(version, in); | X509CRLEntry entry = new X509CRLEntry(version, der); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
if (version >= 2 && val.getTagClass() != DER.UNIVERSAL && val.getTag() == 0) | if (val.getTagClass() != DER.UNIVERSAL && val.getTag() == 0) | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
val = der.read(); | if (version < 2) throw new IOException("extra data in CRL"); DERValue exts = der.read(); if (!exts.isConstructed()) throw new IOException("malformed Extensions"); debug("start Extensions len == " + exts.getLength()); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
while (len < val.getLength()) | while (len < exts.getLength()) | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
OID extId = (OID) der.read().getValue(); DERValue val2 = der.read(); Boolean crit = Boolean.valueOf(false); if (val2.getValue() instanceof Boolean) { crit = (Boolean) val2.getValue(); val2 = der.read(); } byte[] extVal = (byte[]) val2.getValue(); extensions.put(extId.toString(), extVal); if (crit.booleanValue()) critOi... | if (!ext.isConstructed()) throw new IOException("malformed Extension"); Extension e = new Extension(ext.getEncoded()); extensions.put(e.getOid(), e); der.skip(ext.getLength()); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
val = der.read(); | debug("read tag == " + val.getTag()); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
throw new ASN1ParsingException("malformed AlgorithmIdentifier"); | throw new IOException("malformed AlgorithmIdentifier"); debug("start AlgorithmIdentifier len == " + val.getLength()); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
debug("read tag = " + val.getTag()); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java | |
return gnu.java.security.x509.X509CRL.class.getName(); | return X509CRL.class.getName(); | public String toString() { return gnu.java.security.x509.X509CRL.class.getName(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/X509CRL.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509CRL.java |
byte b1[] = getEncoded(); byte b2[] = x.getEncoded(); | byte[] b1 = getEncoded(); byte[] b2 = x.getEncoded(); | public boolean equals(Object other) { if( other instanceof X509CRL ) { try { X509CRL x = (X509CRL) other; if( getEncoded().length != x.getEncoded().length ) return false; byte b1[] = getEncoded(); byte b2[] = x.getEncoded(); for( int i = 0; i < b1.length; i++ ) if( b1[i] != b2[i] ) return false; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/X509CRL.java/buggy/core/src/classpath/java/java/security/cert/X509CRL.java |
if (type == Operand.LONG) { return null; } if (type == Operand.FLOAT || type == Operand.DOUBLE) { return null; } | if (type == Operand.LONG || type == Operand.DOUBLE) { return null; } | public Register request(int type, Object owner) { if (type == Operand.LONG) { return null; } if (type == Operand.FLOAT || type == Operand.DOUBLE) { return null; } for (int i = regCount-1; i >= 0; i--) { final RegisterUsage ru = registers[i]; if (ru.request(owner)) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/X86RegisterPool.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86RegisterPool.java |
public BufferedImage filter(BufferedImage src, BufferedImage dst) | public final BufferedImage filter(BufferedImage src, BufferedImage dst) | public BufferedImage filter(BufferedImage src, BufferedImage dst) { if (src.getColorModel() instanceof IndexColorModel) throw new IllegalArgumentException("LookupOp.filter: IndexColorModel " + "not allowed"); if (dst == null) dst = createCompatibleDestImage(src, src.getColorModel()); // Set u... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/LookupOp.java/clean/core/src/classpath/java/java/awt/image/LookupOp.java |
public Rectangle2D getBounds2D(BufferedImage src) | public final Rectangle2D getBounds2D(BufferedImage src) | public Rectangle2D getBounds2D(BufferedImage src) { return src.getRaster().getBounds(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/LookupOp.java/clean/core/src/classpath/java/java/awt/image/LookupOp.java |
public Point2D getPoint2D(Point2D src, Point2D dst) | public final Point2D getPoint2D(Point2D src, Point2D dst) | public Point2D getPoint2D(Point2D src, Point2D dst) { if (dst == null) return (Point2D) src.clone(); dst.setLocation(src); return dst; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/LookupOp.java/clean/core/src/classpath/java/java/awt/image/LookupOp.java |
public RenderingHints getRenderingHints() | public final RenderingHints getRenderingHints() | public RenderingHints getRenderingHints() { return hints; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/LookupOp.java/clean/core/src/classpath/java/java/awt/image/LookupOp.java |
public LookupTable getTable() | public final LookupTable getTable() | public LookupTable getTable() { return lut; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/LookupOp.java/clean/core/src/classpath/java/java/awt/image/LookupOp.java |
SecurityManager sm = Runtime.securityManager; | SecurityManager sm = SecurityManager.current; | public static String getenv(String name) { if (name == null) throw new NullPointerException(); SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPermission(new RuntimePermission("getenv." + name)); return VMSystem.getenv(name); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/206de32e8ebd7bc5080236c5c9ea198dd5243913/System.java/buggy/core/src/classpath/java/java/lang/System.java |
public ScrollPane() { | ScrollPane() { | public ScrollPane() { this(SCROLLBARS_AS_NEEDED); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ScrollPane.java/buggy/core/src/classpath/java/java/awt/ScrollPane.java |
} | } | public ScrollPane() { this(SCROLLBARS_AS_NEEDED); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ScrollPane.java/buggy/core/src/classpath/java/java/awt/ScrollPane.java |
public final void addImpl(Component component, Object constraints, int index) { | protected final void addImpl (Component component, Object constraints, int index) { | public final void addImpl(Component component, Object constraints, int index) { Component[] list = getComponents(); if ((list != null) && (list.length > 0)) remove(list[0]); super.addImpl(component, constraints, -1); doLayout(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ScrollPane.java/buggy/core/src/classpath/java/java/awt/ScrollPane.java |
} | } | public final void addImpl(Component component, Object constraints, int index) { Component[] list = getComponents(); if ((list != null) && (list.length > 0)) remove(list[0]); super.addImpl(component, constraints, -1); doLayout(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ScrollPane.java/buggy/core/src/classpath/java/java/awt/ScrollPane.java |
public void addNotify() { if (getPeer() == null) | addNotify() { if (!isDisplayable ()) | public void addNotify() { if (getPeer() == null) return; setPeer((ComponentPeer) getToolkit().createScrollPane(this)); if (hAdjustable != null) hAdjustable.addNotify(); if (vAdjustable != null) vAdjustable.removeNotify(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ScrollPane.java/buggy/core/src/classpath/java/java/awt/ScrollPane.java |
setPeer((ComponentPeer) getToolkit().createScrollPane(this)); if (hAdjustable != null) hAdjustable.addNotify(); if (vAdjustable != null) vAdjustable.removeNotify(); } | setPeer((ComponentPeer)getToolkit().createScrollPane(this)); super.addNotify(); } | public void addNotify() { if (getPeer() == null) return; setPeer((ComponentPeer) getToolkit().createScrollPane(this)); if (hAdjustable != null) hAdjustable.addNotify(); if (vAdjustable != null) vAdjustable.removeNotify(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ScrollPane.java/buggy/core/src/classpath/java/java/awt/ScrollPane.java |
public void doLayout() { Component[] list = getComponents(); if ((list != null) && (list.length > 0)) { Dimension dim = list[0].getPreferredSize(); list[0].resize(dim); Point p = getScrollPosition(); if (p.x > dim.width) p.x = dim.width; if (p.y > dim.height) p.y = dim.height; setScrollPosition(p); } } | doLayout() { layout (); } | public void doLayout() { Component[] list = getComponents(); if ((list != null) && (list.length > 0)) { Dimension dim = list[0].getPreferredSize(); list[0].resize(dim); Point p = getScrollPosition(); if (p.x > dim.width) p.x = dim.width; if (p.y > dim.height) p.y = dim.height; setScrollPosition(p);... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ScrollPane.java/buggy/core/src/classpath/java/java/awt/ScrollPane.java |
public Adjustable getHAdjustable() { return (hAdjustable); } | getHAdjustable() { return(hAdjustable); } | public Adjustable getHAdjustable() { return (hAdjustable); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ScrollPane.java/buggy/core/src/classpath/java/java/awt/ScrollPane.java |
public int getHScrollbarHeight() { ScrollPanePeer spp = (ScrollPanePeer) getPeer(); | getHScrollbarHeight() { ScrollPanePeer spp = (ScrollPanePeer)getPeer(); | public int getHScrollbarHeight() { ScrollPanePeer spp = (ScrollPanePeer) getPeer(); if (spp != null) return (spp.getHScrollbarHeight()); else return (0); // FIXME: What to do here? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ScrollPane.java/buggy/core/src/classpath/java/java/awt/ScrollPane.java |
return (spp.getHScrollbarHeight()); | return(spp.getHScrollbarHeight()); | public int getHScrollbarHeight() { ScrollPanePeer spp = (ScrollPanePeer) getPeer(); if (spp != null) return (spp.getHScrollbarHeight()); else return (0); // FIXME: What to do here? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ScrollPane.java/buggy/core/src/classpath/java/java/awt/ScrollPane.java |
return (0); } | return(0); } | public int getHScrollbarHeight() { ScrollPanePeer spp = (ScrollPanePeer) getPeer(); if (spp != null) return (spp.getHScrollbarHeight()); else return (0); // FIXME: What to do here? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ScrollPane.java/buggy/core/src/classpath/java/java/awt/ScrollPane.java |
public Point getScrollPosition() { | getScrollPosition() { | public Point getScrollPosition() { int x = 0; int y = 0; Adjustable v = getVAdjustable(); Adjustable h = getHAdjustable(); if (v != null) y = v.getValue(); if (h != null) x = h.getValue(); return (new Point(x, y)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ScrollPane.java/buggy/core/src/classpath/java/java/awt/ScrollPane.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.