rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
try { return (url.openConnection() != null ? DUMMY_CLIP : null); } catch (IOException ioe) { return null; } | return Applet.newAudioClip(url); | public AudioClip getAudioClip(URL url) { try { return (url.openConnection() != null ? DUMMY_CLIP : null); } catch (IOException ioe) { return null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/206323a9a1de1e11c769011a5cbcb03397404977/DummyAppletContext.java/buggy/core/src/classpath/gnu/gnu/java/beans/DummyAppletContext.java |
case KeyEvent.VK_X: { console.getManager().unregisterConsole(console); break;} | case KeyEvent.VK_Q: { console.getManager().unregisterConsole(console); break;} | public void keyPressed(KeyboardEvent e) { int k = e.getKeyCode(); if(e.isControlDown()) switch (k) { case KeyEvent.VK_UP: {if(fy > 0) fy --; break;} case KeyEvent.VK_DOWN: {if(fy < my() - cym) fy ++; break;} case KeyEvent.VK_LEFT: {if(fx > 0) fx ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac23c1464eb321e4d91bd88305196be02517e310/TextEditor.java/clean/distr/src/apps/org/jnode/apps/editor/TextEditor.java |
if(c == 0) return; | if(c == 0 && k != KeyEvent.VK_DELETE) return; | public void keyPressed(KeyboardEvent e) { int k = e.getKeyCode(); if(e.isControlDown()) switch (k) { case KeyEvent.VK_UP: {if(fy > 0) fy --; break;} case KeyEvent.VK_DOWN: {if(fy < my() - cym) fy ++; break;} case KeyEvent.VK_LEFT: {if(fx > 0) fx ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac23c1464eb321e4d91bd88305196be02517e310/TextEditor.java/clean/distr/src/apps/org/jnode/apps/editor/TextEditor.java |
if(!f.exists()) return; BufferedReader br = new BufferedReader(new FileReader(f)); int c; StringBuilder sb = new StringBuilder(); while((c = br.read()) != -1){ if(c == '\n'){ sb.append((char) c); | if(f.exists()){ BufferedReader br = new BufferedReader(new FileReader(f)); int c; StringBuilder sb = new StringBuilder(); while((c = br.read()) != -1){ if(c == '\n'){ sb.append((char) c); ls.add(sb); sb = new StringBuilder(); } else { sb.append((char) c); } } if(sb.length() > 0) | public void loadFile(File f) throws IOException { ls.clear(); if(!f.exists()) return; BufferedReader br = new BufferedReader(new FileReader(f)); int c; StringBuilder sb = new StringBuilder(); while((c = br.read()) != -1){ if(c == '\n'){ sb.append(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac23c1464eb321e4d91bd88305196be02517e310/TextEditor.java/clean/distr/src/apps/org/jnode/apps/editor/TextEditor.java |
sb = new StringBuilder(); } else { sb.append((char) c); } | public void loadFile(File f) throws IOException { ls.clear(); if(!f.exists()) return; BufferedReader br = new BufferedReader(new FileReader(f)); int c; StringBuilder sb = new StringBuilder(); while((c = br.read()) != -1){ if(c == '\n'){ sb.append(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac23c1464eb321e4d91bd88305196be02517e310/TextEditor.java/clean/distr/src/apps/org/jnode/apps/editor/TextEditor.java | |
if(sb.length() > 0) ls.add(sb); | public void loadFile(File f) throws IOException { ls.clear(); if(!f.exists()) return; BufferedReader br = new BufferedReader(new FileReader(f)); int c; StringBuilder sb = new StringBuilder(); while((c = br.read()) != -1){ if(c == '\n'){ sb.append(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac23c1464eb321e4d91bd88305196be02517e310/TextEditor.java/clean/distr/src/apps/org/jnode/apps/editor/TextEditor.java | |
/* FileWriter fw = new FileWriter(file); fw.write(textArea.getText()); fw.flush(); fw.close(); */ | private void saveFile() { if(file == null) { System.out.println("No file."); return; } AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { StringBuilder buf = new StringBuilder(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac23c1464eb321e4d91bd88305196be02517e310/TextEditor.java/clean/distr/src/apps/org/jnode/apps/editor/TextEditor.java | |
/* FileWriter fw = new FileWriter(file); fw.write(textArea.getText()); fw.flush(); fw.close(); */ | public Object run() { try { StringBuilder buf = new StringBuilder(); FileWriter fw = new FileWriter(file); for(StringBuilder sb : ls) buf.append(sb); fw.write(buf.toString()); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac23c1464eb321e4d91bd88305196be02517e310/TextEditor.java/clean/distr/src/apps/org/jnode/apps/editor/TextEditor.java | |
public ImageReaderIterator(Iterator it) | public ImageReaderIterator(Iterator it, Object readerExtension) | public ImageReaderIterator(Iterator it) { this.it = it; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
this.readerExtension = readerExtension; | public ImageReaderIterator(Iterator it) { this.it = it; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java | |
return ((ImageReaderSpi) it.next()).createReaderInstance(); | return ((ImageReaderSpi) it.next()).createReaderInstance(readerExtension); | public Object next() { try { return ((ImageReaderSpi) it.next()).createReaderInstance(); } catch (IOException e) { return null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
public ImageWriterIterator(Iterator it) | public ImageWriterIterator(Iterator it, Object writerExtension) | public ImageWriterIterator(Iterator it) { this.it = it; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
this.writerExtension = writerExtension; | public ImageWriterIterator(Iterator it) { this.it = it; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java | |
return ((ImageWriterSpi) it.next()).createWriterInstance(); | return ((ImageWriterSpi) it.next()).createWriterInstance(writerExtension); | public Object next() { try { return ((ImageWriterSpi) it.next()).createWriterInstance(); } catch (IOException e) { return null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
if (provider instanceof ImageReaderSpi) | if (provider instanceof ImageWriterSpi) | public boolean filter(Object provider) { if (provider instanceof ImageReaderSpi) { ImageReaderSpi spi = (ImageReaderSpi) provider; String[] formatNames = spi.getFormatNames(); for (int i = formatNames.length - 1; i >= 0; --i) if (formatName.equals(formatNames[i])) return true; } retu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
ImageReaderSpi spi = (ImageReaderSpi) provider; | ImageWriterSpi spi = (ImageWriterSpi) provider; | public boolean filter(Object provider) { if (provider instanceof ImageReaderSpi) { ImageReaderSpi spi = (ImageReaderSpi) provider; String[] formatNames = spi.getFormatNames(); for (int i = formatNames.length - 1; i >= 0; --i) if (formatName.equals(formatNames[i])) return true; } retu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
if (provider instanceof ImageReaderSpi) | if (provider instanceof ImageWriterSpi) | public boolean filter(Object provider) { if (provider instanceof ImageReaderSpi) { ImageWriterSpi spi = (ImageWriterSpi) provider; String[] mimetypes = spi.getMIMETypes(); for (int i = mimetypes.length - 1; i >= 0; --i) if (MIMEType.equals(mimetypes[i])) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
if (provider instanceof ImageReaderSpi) | if (provider instanceof ImageWriterSpi) | public boolean filter(Object provider) { if (provider instanceof ImageReaderSpi) { ImageWriterSpi spi = (ImageWriterSpi) provider; String[] suffixes = spi.getFileSuffixes(); for (int i = suffixes.length - 1; i >= 0; --i) if (fileSuffix.equals(suffixes[i])) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
new ReaderFormatFilter(formatName)); | new ReaderFormatFilter(formatName), formatName); | public static Iterator getImageReadersByFormatName(String formatName) { if (formatName == null) throw new IllegalArgumentException("formatName may not be null"); return getReadersByFilter(ImageReaderSpi.class, new ReaderFormatFilter(formatName)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
new ReaderMIMETypeFilter(MIMEType)); | new ReaderMIMETypeFilter(MIMEType), MIMEType); | public static Iterator getImageReadersByMIMEType(String MIMEType) { if (MIMEType == null) throw new IllegalArgumentException("MIMEType may not be null"); return getReadersByFilter(ImageReaderSpi.class, new ReaderMIMETypeFilter(MIMEType)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
new ReaderSuffixFilter(fileSuffix)); | new ReaderSuffixFilter(fileSuffix), fileSuffix); | public static Iterator getImageReadersBySuffix(String fileSuffix) { if (fileSuffix == null) throw new IllegalArgumentException("formatName may not be null"); return getReadersByFilter(ImageReaderSpi.class, new ReaderSuffixFilter(fileSuffix)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
new WriterFormatFilter(formatName)); | new WriterFormatFilter(formatName), formatName); | public static Iterator getImageWritersByFormatName(String formatName) { if (formatName == null) throw new IllegalArgumentException("formatName may not be null"); return getWritersByFilter(ImageWriterSpi.class, new WriterFormatFilter(formatName)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
new WriterMIMETypeFilter(MIMEType)); | new WriterMIMETypeFilter(MIMEType), MIMEType); | public static Iterator getImageWritersByMIMEType(String MIMEType) { if (MIMEType == null) throw new IllegalArgumentException("MIMEType may not be null"); return getWritersByFilter(ImageWriterSpi.class, new WriterMIMETypeFilter(MIMEType)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
new WriterSuffixFilter(fileSuffix)); | new WriterSuffixFilter(fileSuffix), fileSuffix); | public static Iterator getImageWritersBySuffix(String fileSuffix) { if (fileSuffix == null) throw new IllegalArgumentException("fileSuffix may not be null"); return getWritersByFilter(ImageWriterSpi.class, new WriterSuffixFilter(fileSuffix)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
ServiceRegistry.Filter filter) | ServiceRegistry.Filter filter, Object readerExtension) | private static Iterator getReadersByFilter(Class type, ServiceRegistry.Filter filter) { try { Iterator it = getRegistry().getServiceProviders(type, filter, true); return new ImageReaderIterator(it); } catch (IllegalArgumentException e) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
return new ImageReaderIterator(it); | return new ImageReaderIterator(it, readerExtension); | private static Iterator getReadersByFilter(Class type, ServiceRegistry.Filter filter) { try { Iterator it = getRegistry().getServiceProviders(type, filter, true); return new ImageReaderIterator(it); } catch (IllegalArgumentException e) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
ServiceRegistry.Filter filter) | ServiceRegistry.Filter filter, Object writerExtension) | private static Iterator getWritersByFilter(Class type, ServiceRegistry.Filter filter) { try { Iterator it = getRegistry().getServiceProviders(type, filter, true); return new ImageWriterIterator(it); } catch (IllegalArgumentException e) { return Collections.EMPTY_SET... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
return new ImageWriterIterator(it); | return new ImageWriterIterator(it, writerExtension); | private static Iterator getWritersByFilter(Class type, ServiceRegistry.Filter filter) { try { Iterator it = getRegistry().getServiceProviders(type, filter, true); return new ImageWriterIterator(it); } catch (IllegalArgumentException e) { return Collections.EMPTY_SET... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageIO.java/clean/core/src/classpath/javax/javax/imageio/ImageIO.java |
if (types[i].equals(output.getClass())) | if (types[i].isInstance(output)) | public void setOutput(Object output) { if (output != null) { // Check if its a valid output object. boolean found = false; Class[] types = null; if (originatingProvider != null) types = originatingProvider.getOutputTypes(); if (types != null) for (int i = types.length - 1; i >= 0; --i) if (types[i].... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ImageWriter.java/buggy/core/src/classpath/javax/javax/imageio/ImageWriter.java |
if (!"tr".equalsIgnoreCase(ctx.getLocalName())) | String ctxName = ctx.getLocalName(); if (ctxName == null) { ctxName = ctx.getNodeName(); } if (!"tr".equalsIgnoreCase(ctxName)) | Node getRow(final int index) { int i = 0; Node thead = getChildElement("thead"); if (thead != null) { for (Node ctx = thead.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (!"tr".equalsIgnoreCase(ctx.getLocalName())) { c... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/DomHTMLTableElement.java/buggy/core/src/classpath/gnu/gnu/xml/dom/html2/DomHTMLTableElement.java |
if (!"tr".equalsIgnoreCase(ctx.getLocalName())) | String ctxName = ctx.getLocalName(); if (ctxName == null) { ctxName = ctx.getNodeName(); } if (!"tr".equalsIgnoreCase(ctxName)) | Node getRow(final int index) { int i = 0; Node thead = getChildElement("thead"); if (thead != null) { for (Node ctx = thead.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (!"tr".equalsIgnoreCase(ctx.getLocalName())) { c... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/DomHTMLTableElement.java/buggy/core/src/classpath/gnu/gnu/xml/dom/html2/DomHTMLTableElement.java |
if (!"tr".equalsIgnoreCase(ctx.getLocalName())) | String ctxName = ctx.getLocalName(); if (ctxName == null) { ctxName = ctx.getNodeName(); } if (!"tr".equalsIgnoreCase(ctxName)) | Node getRow(final int index) { int i = 0; Node thead = getChildElement("thead"); if (thead != null) { for (Node ctx = thead.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (!"tr".equalsIgnoreCase(ctx.getLocalName())) { c... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/DomHTMLTableElement.java/buggy/core/src/classpath/gnu/gnu/xml/dom/html2/DomHTMLTableElement.java |
} else { setText(""); setIcon(null); } | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { FileView v = getFileView(getFileChooser()); File f = (File) value; setText(v.getName(f)); setIcon(v.getIcon(f)); setOpaque(true); if (isSelected) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
if (file == null || !file.isFile()) | if (file == null) | public void propertyChange(PropertyChangeEvent e) { JFileChooser filechooser = getFileChooser(); String n = e.getPropertyName(); if (n.equals(JFileChooser.MULTI_SELECTION_ENABLED_CHANGED_PROPERTY)) { int mode = -1; if (filechooser.isMultiSelectionEnabled()) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
directoryLabel = save; dirLabel.setText(directoryLabel); | public void propertyChange(PropertyChangeEvent e) { JFileChooser filechooser = getFileChooser(); String n = e.getPropertyName(); if (n.equals(JFileChooser.MULTI_SELECTION_ENABLED_CHANGED_PROPERTY)) { int mode = -1; if (filechooser.isMultiSelectionEnabled()) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
bounds.x += icon.getIconWidth() + 4; | { int padding = icon.getIconWidth() + 4; bounds.x += padding; bounds.width -= padding; } | void editFile(int index) { Rectangle bounds = list.getCellBounds(index, index); list.scrollRectToVisible(bounds); editFile = (File) list.getModel().getElementAt(index); if (editFile.canWrite()) { startEditing = true; editField = new JTextField(editFile.getName()); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
scrollPane.setVerticalScrollBarPolicy (JScrollPane.VERTICAL_SCROLLBAR_NEVER); fileList.setLayoutOrientation(JList.VERTICAL_WRAP); | protected JPanel createList(JFileChooser fc) { if (fileList == null) { fileListPanel = new JPanel(new BorderLayout()); fileList = new JList(getModel()); scrollPane = new JScrollPane(fileList); // FIXME: fileList.setLayoutOrientation(JList.VERTICAL_WRAP); fileList.setCellRenderer(ne... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
scrollPane.setViewport(new JViewport()); | protected JPanel createList(JFileChooser fc) { if (fileList == null) { fileListPanel = new JPanel(new BorderLayout()); fileList = new JList(getModel()); scrollPane = new JScrollPane(fileList); // FIXME: fileList.setLayoutOrientation(JList.VERTICAL_WRAP); fileList.setCellRenderer(ne... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
Dimension bup = buttonPanel.getMinimumSize(); Dimension fl = fileList.getMinimumSize(); return new Dimension((tp.width + bp.width + bup.width + fl.width), (tp.height + bp.height + bup.height + fl.height)); | Dimension fl = fileListPanel.getMinimumSize(); return new Dimension(fl.width, tp.height + bp.height + fl.height); | public Dimension getMinimumSize(JComponent c) { Dimension tp = topPanel.getMinimumSize(); Dimension bp = bottomPanel.getMinimumSize(); Dimension bup = buttonPanel.getMinimumSize(); Dimension fl = fileList.getMinimumSize(); return new Dimension((tp.width + bp.width + bup.width + fl.width), ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
Dimension bup = buttonPanel.getPreferredSize(); Dimension fl = fileList.getPreferredSize(); return new Dimension((tp.width + bp.width + bup.width + fl.width), (tp.height + bp.height + bup.height + fl.height)); | Dimension fl = fileListPanel.getPreferredSize(); return new Dimension(fl.width, tp.height + bp.height + fl.height); | public Dimension getPreferredSize(JComponent c) { Dimension tp = topPanel.getPreferredSize(); Dimension bp = bottomPanel.getPreferredSize(); Dimension bup = buttonPanel.getPreferredSize(); Dimension fl = fileList.getPreferredSize(); return new Dimension((tp.width + bp.width + bup.width + fl.wid... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
topPanel.add(new JLabel(directoryLabel), BorderLayout.WEST); | dirLabel = new JLabel(directoryLabel); topPanel.add(dirLabel, BorderLayout.WEST); | public void installComponents(JFileChooser fc) { fc.setLayout(new BorderLayout()); topPanel = new JPanel(new BorderLayout()); topPanel.add(new JLabel(directoryLabel), BorderLayout.WEST); this.controls = new JPanel(); addControlButtons(); JPanel dirPanel = new JPanel(new VerticalMidLayout()); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
dirPanel.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 0)); | public void installComponents(JFileChooser fc) { fc.setLayout(new BorderLayout()); topPanel = new JPanel(new BorderLayout()); topPanel.add(new JLabel(directoryLabel), BorderLayout.WEST); this.controls = new JPanel(); addControlButtons(); JPanel dirPanel = new JPanel(new VerticalMidLayout()); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
fc.add(createList(fc), BorderLayout.CENTER); | JPanel list = createList(fc); list.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8)); fc.add(list, BorderLayout.CENTER); | public void installComponents(JFileChooser fc) { fc.setLayout(new BorderLayout()); topPanel = new JPanel(new BorderLayout()); topPanel.add(new JLabel(directoryLabel), BorderLayout.WEST); this.controls = new JPanel(); addControlButtons(); JPanel dirPanel = new JPanel(new VerticalMidLayout()); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
JPanel filterPanel = new JPanel(new VerticalMidLayout()); filterPanel.add(fileFilterCombo); | public void installComponents(JFileChooser fc) { fc.setLayout(new BorderLayout()); topPanel = new JPanel(new BorderLayout()); topPanel.add(new JLabel(directoryLabel), BorderLayout.WEST); this.controls = new JPanel(); addControlButtons(); JPanel dirPanel = new JPanel(new VerticalMidLayout()); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
row2.add(filterPanel); | row2.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 5)); row2.add(fileFilterCombo); | public void installComponents(JFileChooser fc) { fc.setLayout(new BorderLayout()); topPanel = new JPanel(new BorderLayout()); topPanel.add(new JLabel(directoryLabel), BorderLayout.WEST); this.controls = new JPanel(); addControlButtons(); JPanel dirPanel = new JPanel(new VerticalMidLayout()); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
buttonPanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 0)); | public void installComponents(JFileChooser fc) { fc.setLayout(new BorderLayout()); topPanel = new JPanel(new BorderLayout()); topPanel.add(new JLabel(directoryLabel), BorderLayout.WEST); this.controls = new JPanel(); addControlButtons(); JPanel dirPanel = new JPanel(new VerticalMidLayout()); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
bottomPanel.add(buttonPanel); | bottomPanel.add(buttonPanel, BorderLayout.SOUTH); bottomPanel.setBorder(BorderFactory.createEmptyBorder(0, 8, 8, 8)); | public void installComponents(JFileChooser fc) { fc.setLayout(new BorderLayout()); topPanel = new JPanel(new BorderLayout()); topPanel.add(new JLabel(directoryLabel), BorderLayout.WEST); this.controls = new JPanel(); addControlButtons(); JPanel dirPanel = new JPanel(new VerticalMidLayout()); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
fc.add(getAccessoryPanel(), BorderLayout.EAST); | public void installComponents(JFileChooser fc) { fc.setLayout(new BorderLayout()); topPanel = new JPanel(new BorderLayout()); topPanel.add(new JLabel(directoryLabel), BorderLayout.WEST); this.controls = new JPanel(); addControlButtons(); JPanel dirPanel = new JPanel(new VerticalMidLayout()); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
directoryLabel = "Look In: "; | look = "Look In: "; save = "Save In: "; if (fc.getDialogType() == JFileChooser.SAVE_DIALOG) directoryLabel = save; else directoryLabel = look; | protected void installStrings(JFileChooser fc) { super.installStrings(fc); directoryLabel = "Look In: "; fileLabel = "File Name: "; filterLabel = "Files of Type: "; this.cancelButtonMnemonic = 0; this.cancelButtonText = "Cancel"; this.cancelButtonToolTipText = "Abort file chooser di... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
scrollPane.setViewport(new JViewport()); | JPanel updateTable() { DefaultTableModel mod = (DefaultTableModel) fileTable.getModel(); ListModel lm = fileList.getModel(); DateFormat dt = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT); File curr = null; int size = lm.getSize(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
scrollPane.getViewport().setScrollMode(JViewport.BACKINGSTORE_SCROLL_MODE); | JPanel updateTable() { DefaultTableModel mod = (DefaultTableModel) fileTable.getModel(); ListModel lm = fileList.getModel(); DateFormat dt = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT); File curr = null; int size = lm.getSize(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
{ | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ProcessingInstructionNode(name); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ProcessingInstructionNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/ProcessingInstructionNode.java | |
} | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ProcessingInstructionNode(name); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ProcessingInstructionNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/ProcessingInstructionNode.java | |
{ | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ProcessingInstructionNode(name); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ProcessingInstructionNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/ProcessingInstructionNode.java | |
} | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ProcessingInstructionNode(name); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ProcessingInstructionNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/ProcessingInstructionNode.java | |
{ | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ProcessingInstructionNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/ProcessingInstructionNode.java | |
} | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ProcessingInstructionNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/ProcessingInstructionNode.java | |
{ | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ProcessingInstructionNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/ProcessingInstructionNode.java | |
} | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ProcessingInstructionNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/ProcessingInstructionNode.java | |
{ | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ProcessingInstructionNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/ProcessingInstructionNode.java | |
} | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ProcessingInstructionNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/ProcessingInstructionNode.java | |
StringBuffer buf = new StringBuffer(getClass().getName()); | StringBuffer buf = new StringBuffer("processing-instruction"); | public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("name="); buf.append(name); buf.append(']'); return buf.toString(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ProcessingInstructionNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/ProcessingInstructionNode.java |
if (selection.length == 0) return; | public void processKeyEvent(KeyEvent e) { MenuElement[] selection = (MenuElement[]) selectedPath.toArray(new MenuElement[selectedPath.size()]); MenuElement[] path; for (int index = selection.length - 1; index >= 0; index--) { MenuElement el = selection[index]; // This m... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/MenuSelectionManager.java/clean/core/src/classpath/javax/javax/swing/MenuSelectionManager.java | |
if (!shouldProcess) { | if (!shouldProcess) { | public void receive(SocketBuffer skbuf, NetDeviceAPI deviceAPI) throws SocketException { // Update statistics stat.ipackets.inc(); // Get IP header final IPv4Header hdr = new IPv4Header(skbuf); if (!hdr.isChecksumOk()) { stat.badsum.inc(); //log.de... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2ac403ab14f1548d68e02329b228978ab8ebedd8/IPv4NetworkLayer.java/clean/net/src/net/org/jnode/net/ipv4/layer/IPv4NetworkLayer.java |
public UDPProtocol(IPv4Service ipService) throws NetworkException { this.ipService = ipService; this.icmp = new ICMPUtils(ipService); try { dsiFactory = new UDPDatagramSocketImplFactory(this); try { AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws IOException { DatagramSocket.s... | public UDPProtocol(IPv4Service ipService) throws NetworkException { this.ipService = ipService; this.icmp = new ICMPUtils(ipService); try { dsiFactory = new UDPDatagramSocketImplFactory(this); try { AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws IOException { DatagramSocket.s... | public UDPProtocol(IPv4Service ipService) throws NetworkException { this.ipService = ipService; this.icmp = new ICMPUtils(ipService); try { dsiFactory = new UDPDatagramSocketImplFactory(this); try { AccessController.doPrivileged(new PrivilegedExceptionAction... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4f39ad021d5f8146afc0905ccf235ac9bd5f949/UDPProtocol.java/buggy/net/src/net/org/jnode/net/ipv4/udp/UDPProtocol.java |
catch (IOException ex) { throw new NetworkException(ex); } } | public UDPProtocol(IPv4Service ipService) throws NetworkException { this.ipService = ipService; this.icmp = new ICMPUtils(ipService); try { dsiFactory = new UDPDatagramSocketImplFactory(this); try { AccessController.doPrivileged(new PrivilegedExceptionAction... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4f39ad021d5f8146afc0905ccf235ac9bd5f949/UDPProtocol.java/buggy/net/src/net/org/jnode/net/ipv4/udp/UDPProtocol.java | |
if (title == null || title.charAt(index) != mnemonicKey) | if (title == null || mnemonicKey == 0 || title.charAt(index) != mnemonicKey) | public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || title != null && index >= title.length()) throw new IllegalArgumentException(); if (title == null || title.charAt(index) != mnemonicKey) index = -1; underlinedChar... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java |
{ | TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } TemplateNode ret = new ForEachNode(select.clone(stylesheet), s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ForEachNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ForEachNode.java | |
} | TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } TemplateNode ret = new ForEachNode(select.clone(stylesheet), s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ForEachNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ForEachNode.java | |
{ | TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } TemplateNode ret = new ForEachNode(select.clone(stylesheet), s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ForEachNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ForEachNode.java | |
} | TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } TemplateNode ret = new ForEachNode(select.clone(stylesheet), s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ForEachNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ForEachNode.java | |
{ | TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } TemplateNode ret = new ForEachNode(select.clone(stylesheet), s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ForEachNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ForEachNode.java | |
} | TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } TemplateNode ret = new ForEachNode(select.clone(stylesheet), s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ForEachNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ForEachNode.java | |
{ | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { // Set current template to null Template saved = stylesheet.currentTemplate; stylesheet.currentT... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ForEachNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ForEachNode.java | |
} | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { // Set current template to null Template saved = stylesheet.currentTemplate; stylesheet.currentT... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ForEachNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ForEachNode.java | |
{ | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { // Set current template to null Template saved = stylesheet.currentTemplate; stylesheet.currentT... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ForEachNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ForEachNode.java | |
} | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { // Set current template to null Template saved = stylesheet.currentTemplate; stylesheet.currentT... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ForEachNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ForEachNode.java | |
{ | public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (sortKeys != null) { for (Iterator i = sortKeys.iterator(); i.hasNext(); ) { if (((SortKey) i.next()).references(var)) { return t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ForEachNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ForEachNode.java | |
} | public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (sortKeys != null) { for (Iterator i = sortKeys.iterator(); i.hasNext(); ) { if (((SortKey) i.next()).references(var)) { return t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ForEachNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ForEachNode.java | |
{ | public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (sortKeys != null) { for (Iterator i = sortKeys.iterator(); i.hasNext(); ) { if (((SortKey) i.next()).references(var)) { return t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ForEachNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ForEachNode.java | |
} | public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (sortKeys != null) { for (Iterator i = sortKeys.iterator(); i.hasNext(); ) { if (((SortKey) i.next()).references(var)) { return t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ForEachNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ForEachNode.java | |
StringBuffer buf = new StringBuffer(getClass().getName()); | StringBuffer buf = new StringBuffer("for-each"); | public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("select="); buf.append(select); buf.append(']'); return buf.toString(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ForEachNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ForEachNode.java |
cObject(org.omg.CORBA.Object _object, int _port, byte[] _key) | cObject(org.omg.CORBA.Object _object, int _port, byte[] _key, java.lang.Object an_identity ) | cObject(org.omg.CORBA.Object _object, int _port, byte[] _key) { object = _object; port = _port; key = _key; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/dbc1cbd052dbda830a86b08d4cde2cef27bbaf55/Connected_objects.java/buggy/core/src/classpath/gnu/gnu/CORBA/Connected_objects.java |
identity = an_identity; | cObject(org.omg.CORBA.Object _object, int _port, byte[] _key) { object = _object; port = _port; key = _key; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/dbc1cbd052dbda830a86b08d4cde2cef27bbaf55/Connected_objects.java/buggy/core/src/classpath/gnu/gnu/CORBA/Connected_objects.java | |
return add(generateObjectKey(object), object, port); | return add(generateObjectKey(object), object, port, null); | public cObject add(org.omg.CORBA.Object object, int port) { return add(generateObjectKey(object), object, port); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/dbc1cbd052dbda830a86b08d4cde2cef27bbaf55/Connected_objects.java/buggy/core/src/classpath/gnu/gnu/CORBA/Connected_objects.java |
} | public cObject get(byte[] key) { return (cObject) objects.get(key); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/dbc1cbd052dbda830a86b08d4cde2cef27bbaf55/Connected_objects.java/buggy/core/src/classpath/gnu/gnu/CORBA/Connected_objects.java | |
if (stored_object.equals(ref.object)) | if (stored_object.equals(ref.object) || stored_object._is_equivalent(ref.object) ) | public cObject getKey(org.omg.CORBA.Object stored_object) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_object.equals(ref.object)) return... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/dbc1cbd052dbda830a86b08d4cde2cef27bbaf55/Connected_objects.java/buggy/core/src/classpath/gnu/gnu/CORBA/Connected_objects.java |
} | public cObject getKey(org.omg.CORBA.Object stored_object) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_object.equals(ref.object)) return... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/dbc1cbd052dbda830a86b08d4cde2cef27bbaf55/Connected_objects.java/buggy/core/src/classpath/gnu/gnu/CORBA/Connected_objects.java | |
} | public void remove(org.omg.CORBA.Object object) { cObject ref = getKey(object); if (ref != null) objects.remove(ref.key); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/dbc1cbd052dbda830a86b08d4cde2cef27bbaf55/Connected_objects.java/buggy/core/src/classpath/gnu/gnu/CORBA/Connected_objects.java | |
if (properties == null) return null; return properties.get(string); | if (string == null) throw new NullPointerException("The property name cannot be null."); Object result = Image.UndefinedProperty; if (properties != null) { Object v = properties.get(string); if (v != null) result = v; } return result; | public Object getProperty(String string) { if (properties == null) return null; return properties.get(string); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BufferedImage.java/buggy/core/src/classpath/java/java/awt/image/BufferedImage.java |
public String[] getPropertyNames() { // FIXME: implement return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BufferedImage.java/buggy/core/src/classpath/java/java/awt/image/BufferedImage.java | ||
if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = new TreePath[temp.length]; System.arraycopy(temp, 0, selection, 0, temp.len... | public void addSelectionPath(TreePath value0) { // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java | |
if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = v0;... | public void addSelectionPaths(TreePath[] value0) { // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java | |
selection = null; | public void clearSelection() { // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java | |
for (int i = listeners.length - 1; i >= 0; --i) | for (int i = 0; i < listeners.length; ++i) | protected void fireValueChanged(TreeSelectionEvent event) { TreeSelectionListener[] listeners = getTreeSelectionListeners(); for (int i = listeners.length - 1; i >= 0; --i) listeners[i].valueChanged(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java |
return rowMapper.getRowsForPaths(new TreePath[]{ leadPath })[0]; | return rowMapper.getRowsForPaths(new TreePath[] { leadPath })[0]; | public int getLeadSelectionRow() { if ((rowMapper == null) || (leadPath == null)) return -1; else return rowMapper.getRowsForPaths(new TreePath[]{ leadPath })[0]; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java |
if ((rowMapper == null) || (selection == null) || (selection.length == 0)) | if ((rowMapper == null) || (selection == null) || (selection.length == 0)) | public int getMaxSelectionRow() { if ((rowMapper == null) || (selection == null) || (selection.length == 0)) return -1; else { int[] rows = rowMapper.getRowsForPaths(selection); int maxRow = -1; for (int index = 0; index < rows.length; index++) maxRow = Math.max(maxRow, rows[index]);... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java |
else { | else { | public int getMaxSelectionRow() { if ((rowMapper == null) || (selection == null) || (selection.length == 0)) return -1; else { int[] rows = rowMapper.getRowsForPaths(selection); int maxRow = -1; for (int index = 0; index < rows.length; index++) maxRow = Math.max(maxRow, rows[index]);... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java |
if ((rowMapper == null) || (selection == null) || (selection.length == 0)) | if ((rowMapper == null) || (selection == null) || (selection.length == 0)) | public int getMinSelectionRow() { if ((rowMapper == null) || (selection == null) || (selection.length == 0)) return -1; else { int[] rows = rowMapper.getRowsForPaths(selection); int minRow = Integer.MAX_VALUE; for (int index = 0; index < rows.length; index++) minRow = Math.min(minRow... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java |
else { | else { | public int getMinSelectionRow() { if ((rowMapper == null) || (selection == null) || (selection.length == 0)) return -1; else { int[] rows = rowMapper.getRowsForPaths(selection); int minRow = Integer.MAX_VALUE; for (int index = 0; index < rows.length; index++) minRow = Math.min(minRow... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.