bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
private int readStartElement() throws IOException, XMLStreamException { //System.err.println("readStartElement"); // Read element name String elementName = readNmtoken(true); attrs.clear(); // Push namespace context if (namespaceAware) { if (":".equals(elementName)) error("X... | private int readStartElement() throws IOException, XMLStreamException { //System.err.println("readStartElement"); // Read element name String elementName = readNmtoken(true); attrs.clear(); // Push namespace context if (namespaceAware) { if (":".equals(elementName)) error("X... | 21,286 |
private int readStartElement() throws IOException, XMLStreamException { //System.err.println("readStartElement"); // Read element name String elementName = readNmtoken(true); attrs.clear(); // Push namespace context if (namespaceAware) { if (":".equals(elementName)) error("X... | private int readStartElement() throws IOException, XMLStreamException { //System.err.println("readStartElement"); // Read element name String elementName = readNmtoken(true); attrs.clear(); // Push namespace context if (namespaceAware) { if (":".equals(elementName)) error("X... | 21,287 |
private int readStartElement() throws IOException, XMLStreamException { //System.err.println("readStartElement"); // Read element name String elementName = readNmtoken(true); attrs.clear(); // Push namespace context if (namespaceAware) { if (":".equals(elementName)) error("X... | private int readStartElement() throws IOException, XMLStreamException { //System.err.println("readStartElement"); // Read element name String elementName = readNmtoken(true); attrs.clear(); // Push namespace context if (namespaceAware) { if (":".equals(elementName)) error("X... | 21,288 |
private void readTextDecl() throws IOException, XMLStreamException { final int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; requireWhitespace(); if (tryRead("version")) { readEq(); String v = readLiteral(flags); if ("1.0".equals(v)) input.xml11 = false;... | private void readTextDecl() throws IOException, XMLStreamException { final int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; requireWhitespace(); if (tryRead("version")) { readEq(); String v = readLiteral(flags, false); if ("1.0".equals(v)) input.xml11 =... | 21,289 |
private void readTextDecl() throws IOException, XMLStreamException { final int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; requireWhitespace(); if (tryRead("version")) { readEq(); String v = readLiteral(flags); if ("1.0".equals(v)) input.xml11 = false;... | private void readTextDecl() throws IOException, XMLStreamException { final int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; requireWhitespace(); if (tryRead("version")) { readEq(); String v = readLiteral(flags); if ("1.0".equals(v)) input.xml11 = false;... | 21,290 |
private void readUntil(String delim) throws IOException, XMLStreamException { int startLine = input.line; try { while (!tryRead(delim)) { char c = readCh(); if (c == '\uffff') throw new EOFException(); else if (c < 32 && c != 10 && c != 9 &&... | private void readUntil(String delim) throws IOException, XMLStreamException { int startLine = input.line; try { while (!tryRead(delim)) { char c = readCh(); if (c == '\uffff') throw new EOFException(); else if (c < 32 && c != 10 && c != 9 &&... | 21,292 |
private void readUntil(String delim) throws IOException, XMLStreamException { int startLine = input.line; try { while (!tryRead(delim)) { char c = readCh(); if (c == '\uffff') throw new EOFException(); else if (c < 32 && c != 10 && c != 9 &&... | private void readUntil(String delim) throws IOException, XMLStreamException { int startLine = input.line; try { while (!tryRead(delim)) { char c = readCh(); if (c == '\uffff') throw new EOFException(); else if (c < 32 && c != 10 && c != 9 &&... | 21,293 |
private void readXMLDecl() throws IOException, XMLStreamException { final int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; requireWhitespace(); require("version"); readEq(); xmlVersion = readLiteral(flags); if ("1.0".equals(xmlVersion)) input.xml11 = false; else if (... | private void readXMLDecl() throws IOException, XMLStreamException { final int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; requireWhitespace(); require("version"); readEq(); xmlVersion = readLiteral(flags, false); if ("1.0".equals(xmlVersion)) input.xml11 = false; el... | 21,294 |
private void readXMLDecl() throws IOException, XMLStreamException { final int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; requireWhitespace(); require("version"); readEq(); xmlVersion = readLiteral(flags); if ("1.0".equals(xmlVersion)) input.xml11 = false; else if (... | private void readXMLDecl() throws IOException, XMLStreamException { final int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; requireWhitespace(); require("version"); readEq(); xmlVersion = readLiteral(flags); if ("1.0".equals(xmlVersion)) input.xml11 = false; else if (... | 21,295 |
private void readXMLDecl() throws IOException, XMLStreamException { final int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; requireWhitespace(); require("version"); readEq(); xmlVersion = readLiteral(flags); if ("1.0".equals(xmlVersion)) input.xml11 = false; else if (... | private void readXMLDecl() throws IOException, XMLStreamException { final int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; requireWhitespace(); require("version"); readEq(); xmlVersion = readLiteral(flags); if ("1.0".equals(xmlVersion)) input.xml11 = false; else if (... | 21,296 |
private void reset() throws IOException { input.reset(); //System.out.println("\t(reset)"); } | privatevoidreset()throwsIOException{input.reset();//System.out.println("\t(reset)");} | 21,298 |
private void skipWhitespace() throws IOException, XMLStreamException { boolean white; do { mark(1); char c = readCh(); while (c == '\uffff' && inputStack.size() > 1) { popInput(); c = readCh(); } white = (c == ' ' || c == '\t' || c == ... | private void skipWhitespace() throws IOException, XMLStreamException { boolean white; do { mark(1); char c = readCh(); while (c == '\uffff' && inputStack.size() > 1) { popInput(); c = readCh(); } white = (c == ' ' || c == '\t' || c == ... | 21,299 |
private void skipWhitespace() throws IOException, XMLStreamException { boolean white; do { mark(1); char c = readCh(); while (c == '\uffff' && inputStack.size() > 1) { popInput(); c = readCh(); } white = (c == ' ' || c == '\t' || c == ... | private void skipWhitespace() throws IOException, XMLStreamException { boolean white; do { mark(1); char c = readCh(); while (c == '\uffff' && inputStack.size() > 1) { popInput(); c = readCh(); } white = (c == 0x20 || c == 0x09 || c ==... | 21,300 |
private boolean tryRead(char delim) throws IOException, XMLStreamException { mark(1); char c = readCh(); if (delim != c) { reset(); return false; } return true; } | private boolean tryRead(char delim) throws IOException, XMLStreamException { mark(1); int c = readCh(); if (delim != c) { reset(); return false; } return true; } | 21,301 |
private boolean tryWhitespace() throws IOException, XMLStreamException { boolean white; boolean ret = false; do { mark(1); char c = readCh(); white = (c == ' ' || c == '\t' || c == '\n' || c == '\r'); if (white) ret = true; else if (c == '\uffff') ... | private boolean tryWhitespace() throws IOException, XMLStreamException { boolean white; boolean ret = false; do { mark(1); char c = readCh(); white = (c == ' ' || c == '\t' || c == '\n' || c == '\r'); if (white) ret = true; else if (c == '\uffff') ... | 21,302 |
private boolean tryWhitespace() throws IOException, XMLStreamException { boolean white; boolean ret = false; do { mark(1); char c = readCh(); white = (c == ' ' || c == '\t' || c == '\n' || c == '\r'); if (white) ret = true; else if (c == '\uffff') ... | private boolean tryWhitespace() throws IOException, XMLStreamException { boolean white; boolean ret = false; do { mark(1); char c = readCh(); white = (c == ' ' || c == '\t' || c == '\n' || c == '\r'); if (white) ret = true; else if (c == '\uffff') ... | 21,303 |
public abstract IntBuffer put (int b); | public abstract IntBuffer put (int b); | 21,304 |
public static KeyPairGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) {} } throw new NoSuchAlgorith... | public static KeyPairGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) {} } throw new NoSuchAlgorith... | 21,305 |
public static KeyPairGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) {} } throw new NoSuchAlgorith... | publicstaticKeyPairGeneratorgetInstance(Stringalgorithm)throwsNoSuchAlgorithmException{Provider[]p=Security.getProviders();for(inti=0;i<p.length;i++){ try { returngetInstance(algorithm,p[i]); } catch(NoSuchAlgorithmExceptionignored){}}thrownewNoSuchAlgorithmException(algorithm);} | 21,306 |
public int hashCode () { // FIXME: Check what SUN calculates here. return super.hashCode (); } | public int hashCode () { // FIXME: Check what SUN calculates here. int hashCode = get(position()) + 31; int multiplier = 1; for (int i = position() + 1; i < limit(); ++i) { multiplier *= 31; hashCode += (get(i) + 30)*multiplier; } return hashCode; } | 21,307 |
final public static IntBuffer wrap (int[] array, int offset, int length) { return new IntBufferImpl (array, 0, array.length, offset + length, offset, -1, false); } | public static final IntBuffer wrap (int[] array, int offset, int length) { return new IntBufferImpl (array, 0, array.length, offset + length, offset, -1, false); } | 21,308 |
private Channels() {} | private Channels() {} | 21,309 |
public static InputStream newInputStream(ReadableByteChannel ch) { if (ch instanceof FileChannelImpl) return newInputStream((FileChannelImpl) ch); return new ChannelInputStream(ch); } | public static InputStream newInputStream(ReadableByteChannel ch) { if (ch instanceof FileChannelImpl) return newInputStream((FileChannelImpl) ch); return new ChannelInputStream(ch); } | 21,310 |
public static OutputStream newOutputStream(WritableByteChannel ch) { if (ch instanceof FileChannelImpl) return newOutputStream((FileChannelImpl) ch); return new ChannelOutputStream(ch); } | public static OutputStream newOutputStream(WritableByteChannel ch) { if (ch instanceof FileChannelImpl) return newOutputStream((FileChannelImpl) ch); return new ChannelOutputStream(ch); } | 21,311 |
LookAndFeelInfo(String name, String clazz) { this.name = name; this.clazz = clazz; } | public LookAndFeelInfo(String name, String clazz) { this.name = name; this.clazz = clazz; } | 21,313 |
String getClassName() { return clazz; } | String getClassName() { return clazz; } | 21,314 |
String getName() { return name; } | String getName() { return name; } | 21,315 |
public static Dimension getDimension(Object key) { System.out.println("UIManager.getDim"); return new Dimension(200,100); } | public static Dimension getDimension(Object key) { System.out.println("UIManager.getDim"); return new Dimension(200,100); } | 21,316 |
public Dimension preferredLayoutSize ( Container c ) { Dimension p = super.preferredLayoutSize(c); return p; } | public Dimension preferredLayoutSize ( Container c ) { Dimension p = super.preferredLayoutSize(c); return p; } | 21,317 |
JRootPane() { setLayout(createRootLayout()); setBackground(UIManager.getColor("control")); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI(); } | JRootPane() { setLayout(createRootLayout()); setBackground(UIManager.getColor("control")); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI(); } | 21,318 |
JRootPane() { setLayout(createRootLayout()); setBackground(UIManager.getColor("control")); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI(); } | JRootPane(){ setLayout(createRootLayout()); setBackground(UIManager.getColor("control")); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI();} | 21,319 |
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); //System.out.println("don't do that !"); } | protectedvoidaddImpl(Componentcomp, Objectconstraints, intindex){ super.addImpl(comp,constraints,index); //System.out.println("don'tdothat!");} | 21,320 |
JComponent createContentPane() { JPanel p = new JPanel(); p.setName(this.getName()+".contentPane"); p.setLayout(new BorderLayout()); // p.setVisible(true); System.out.println("Created ContentPane: " + p); return p; } | JComponent createContentPane() { JPanel p = new JPanel(); p.setName(this.getName()+".contentPane"); p.setLayout(new BorderLayout()); // p.setVisible(true); System.out.println("Created ContentPane: " + p); return p; } | 21,321 |
Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName()+".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); System.out.println("created the glasspane: "+p); return p; } | Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName()+".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); System.out.println("created the glasspane: "+p); return p; } | 21,322 |
public String getUIClassID() { return "RootPaneUI"; } | public String getUIClassID() { return "RootPaneUI"; } | 21,324 |
void setJMenuBar(JMenuBar m) { menuBar = m; } | void setJMenuBar(JMenuBar m) { menuBar = m; } | 21,325 |
public FSEntryIterator(INode iNode) { //this.iNode = iNode; lastBlockIndex = -1; blockIndex = 0; //the byte index where the directory parsing has reached index=0; //the Ext2DirectoryRecord that has been read last current = null; log.debug("FSEntryIterator()"); } | public FSEntryIterator(INode iNode) { //this.iNode = iNode; lastBlockIndex = -1; blockIndex = 0; //the byte index where the directory parsing has reached index=0; //the Ext2DirectoryRecord that has been read last current = null; log.debug("FSEntryIterator()"); } | 21,326 |
public boolean hasNext() { log.debug("FSEntryIterator.hasNext()"); if(noMoreEntries) return false; if(index>=iNode.getSize()) return false; //read the inode number of the next entry: blockIndex = Ext2Directory.this.translateToBlock( index ); blockOffset= Ext2Directory.this.translateToOffset( ... | public boolean hasNext() { log.debug("FSEntryIterator.hasNext()"); if(noMoreEntries) return false; if(index>=iNode.getSize()) return false; //read the inode number of the next entry: blockIndex = Ext2Directory.this.translateToBlock( index ); blockOffset= Ext2Directory.this.translateToOffset( ... | 21,327 |
public boolean hasNext() { log.debug("FSEntryIterator.hasNext()"); if(noMoreEntries) return false; if(index>=iNode.getSize()) return false; //read the inode number of the next entry: blockIndex = Ext2Directory.this.translateToBlock( index ); blockOffset= Ext2Directory.this.translateToOffset( ... | public boolean hasNext() { log.debug("FSEntryIterator.hasNext()"); if(noMoreEntries) return false; if(index>=iNode.getSize()) return false; //read the inode number of the next entry: blockIndex = Ext2Directory.this.translateToBlock( index ); blockOffset= Ext2Directory.this.translateToOffset( ... | 21,328 |
public Object next() { log.debug("FSEntryIterator.next()"); if(current == null) { //hasNext actually reads the next element if(!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; current = null; try{ return new Ext2Entry( ((Ext2FileSystem)getFileSystem())... | public Object next() { log.debug("FSEntryIterator.next()"); if(current == null) { //hasNext actually reads the next element if(!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; current = null; try{ return new Ext2Entry( ((Ext2FileSystem)getFileSystem())... | 21,329 |
public Object next() { log.debug("FSEntryIterator.next()"); if(current == null) { //hasNext actually reads the next element if(!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; current = null; try{ return new Ext2Entry( ((Ext2FileSystem)getFileSystem())... | public Object next() { log.debug("FSEntryIterator.next()"); if(current == null) { //hasNext actually reads the next element if(!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; current = null; try{ return new Ext2Entry( ((Ext2FileSystem)getFileSystem())... | 21,330 |
public Object next() { log.debug("FSEntryIterator.next()"); if(current == null) { //hasNext actually reads the next element if(!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; current = null; try{ return new Ext2Entry( ((Ext2FileSystem)getFileSystem())... | public Object next() { log.debug("FSEntryIterator.next()"); if(current == null) { //hasNext actually reads the next element if(!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; current = null; try{ return new Ext2Entry( ((Ext2FileSystem)getFileSystem())... | 21,331 |
public Object next() { log.debug("FSEntryIterator.next()"); if(current == null) { //hasNext actually reads the next element if(!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; current = null; try{ return new Ext2Entry( ((Ext2FileSystem)getFileSystem())... | public Object next() { log.debug("FSEntryIterator.next()"); if(current == null) { //hasNext actually reads the next element if(!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; current = null; try{ return new Ext2Entry( ((Ext2FileSystem)getFileSystem())... | 21,332 |
public Ext2Directory(INode iNode) { this.iNode=iNode; valid=true; } | public Ext2Directory(INode iNode) { this.iNode=iNode; valid=true; } | 21,333 |
public FSEntry addDirectory(String name) throws IOException { throw new IOException("EXT2 implementation is currently readonly"); } | public FSEntry addDirectory(String name) throws IOException { throw new IOException("EXT2 implementation is currently readonly"); } | 21,335 |
public FSEntry addFile(String name) throws IOException { throw new IOException("EXT2 implementation is currently readonly"); } | public FSEntry addFile(String name) throws IOException { throw new IOException("EXT2 implementation is currently readonly"); } | 21,336 |
public FSEntry getEntry(String name) { //parse the directory and search for the file Iterator iterator=iterator(); while(iterator.hasNext()) { FSEntry entry = (FSEntry)iterator.next(); if(entry.getName().equals(name)) return entry; } return null; } | public FSEntry getEntry(String name) { //parse the directory and search for the file Iterator iterator=iterator(); while(iterator.hasNext()) { FSEntry entry = (FSEntry)iterator.next(); if(entry.getName().equals(name)) return entry; } return null; } | 21,337 |
public Iterator iterator() { log.debug("Ext2Directory.Iterator()"); return new FSEntryIterator(iNode); } | public Iterator iterator() { log.debug("Ext2Directory.Iterator()"); return new FSEntryIterator(iNode); } | 21,338 |
public void remove(String name) throws IOException { throw new IOException("EXT2 implementation is currently readonly"); } | public void remove(String name) throws IOException { throw new IOException("EXT2 implementation is currently readonly"); } | 21,339 |
public Ext2DirectoryRecord(byte[] data, int offset) { iNodeNr = (int) Ext2Utils.get32(data, offset); recLen = Ext2Utils.get16(data, offset + 4); nameLen = Ext2Utils.get8(data, offset + 6); type = Ext2Utils.get8(data, offset + 7); name = new StringBuffer(); if (iNodeNr != 0) { //XXX character conversion for (... | public Ext2DirectoryRecord(byte[] data, int offset) { iNodeNr = (int) Ext2Utils.get32(data, offset); recLen = Ext2Utils.get16(data, offset + 4); nameLen = Ext2Utils.get8(data, offset + 6); type = Ext2Utils.get8(data, offset + 7); name = new StringBuffer(); if (iNodeNr != 0) { //XXX character conversion for (... | 21,340 |
public int getRecLen() { return recLen; } | public int getRecLen() { return recLen; } | 21,341 |
public int getINodeNr() { return iNodeNr; } | public int getINodeNr() { return iNodeNr; } | 21,342 |
public short getType() { return type; } | public short getType() { return type; } | 21,344 |
public static FontMetrics getFontMetrics ( Font font ) { return Toolkit.getDefaultToolkit().getFontMetrics(font); } | public static FontMetrics getFontMetrics ( Font font ) { return Toolkit.getDefaultToolkit().getFontMetrics(font); } | 21,345 |
static void updateComponentTreeUI(JFrame comp) { } | static void updateComponentTreeUI(JFrame comp) { } | 21,346 |
public Object put(Object reason, Object severity) { if (reason == null) throw new NullPointerException("reason is null"); if (severity == null) throw new NullPointerException("severity is null"); return put((PrinterStateReason) reason, (Severity) severity); } | public Object put(Object reason, Object severity) { if (reason == null) throw new NullPointerException("reason is null"); if (severity == null) throw new NullPointerException("severity is null"); return super.put((PrinterStateReason) reason, (Severity) severity); } | 21,347 |
private void updateLFN() { //System.out.println("Update LFN"); Iterator allEntries = shortNameIndex.values().iterator(); Vector destination = new Vector(); while (allEntries.hasNext()) { LfnEntry currentEntry = (LfnEntry)allEntries.next(); FatBasicDirEntry[] encoded = currentEntry.compactForm(); for (int i =... | private void updateLFN() { //System.out.println("Update LFN"); Iterator allEntries = shortNameIndex.values().iterator(); Vector destination = new Vector(); while (allEntries.hasNext()) { LfnEntry currentEntry = (LfnEntry)allEntries.next(); FatBasicDirEntry[] encoded = currentEntry.compactForm(); for (int i =... | 21,348 |
private void updateLFN() { //System.out.println("Update LFN"); Iterator allEntries = shortNameIndex.values().iterator(); Vector destination = new Vector(); while (allEntries.hasNext()) { LfnEntry currentEntry = (LfnEntry)allEntries.next(); FatBasicDirEntry[] encoded = currentEntry.compactForm(); for (int i =... | private void updateLFN() { //System.out.println("Update LFN"); Iterator allEntries = shortNameIndex.values().iterator(); Vector destination = new Vector(); while (allEntries.hasNext()) { LfnEntry currentEntry = (LfnEntry)allEntries.next(); FatBasicDirEntry[] encoded = currentEntry.compactForm(); for (int i =... | 21,349 |
private void updateLFN() { //System.out.println("Update LFN"); Iterator allEntries = shortNameIndex.values().iterator(); Vector destination = new Vector(); while (allEntries.hasNext()) { LfnEntry currentEntry = (LfnEntry)allEntries.next(); FatBasicDirEntry[] encoded = currentEntry.compactForm(); for (int i =... | private void updateLFN() { //System.out.println("Update LFN"); Iterator allEntries = shortNameIndex.values().iterator(); Vector destination = new Vector(); while (allEntries.hasNext()) { LfnEntry currentEntry = (LfnEntry)allEntries.next(); FatBasicDirEntry[] encoded = currentEntry.compactForm(); for (int i =... | 21,350 |
private void updateLFN() { //System.out.println("Update LFN"); Iterator allEntries = shortNameIndex.values().iterator(); Vector destination = new Vector(); while (allEntries.hasNext()) { LfnEntry currentEntry = (LfnEntry)allEntries.next(); FatBasicDirEntry[] encoded = currentEntry.compactForm(); for (int i =... | private void updateLFN() { //System.out.println("Update LFN"); Iterator allEntries = shortNameIndex.values().iterator(); Vector destination = new Vector(); while (allEntries.hasNext()) { LfnEntry currentEntry = (LfnEntry)allEntries.next(); FatBasicDirEntry[] encoded = currentEntry.compactForm(); for (int i =... | 21,351 |
protected AccessibleContainerHandler() { } | protected AccessibleContainerHandler() { } | 21,353 |
public void componentAdded(ContainerEvent e) { AccessibleAWTContainer.this.firePropertyChange(ACCESSIBLE_CHILD_PROPERTY, null, e.getChild()); } | public void componentAdded(ContainerEvent e) { AccessibleAWTContainer.this.firePropertyChange(ACCESSIBLE_CHILD_PROPERTY, null, e.getChild()); } | 21,354 |
public void componentRemoved(ContainerEvent e) { AccessibleAWTContainer.this.firePropertyChange(ACCESSIBLE_CHILD_PROPERTY, e.getChild(), null); } | public void componentRemoved(ContainerEvent e) { AccessibleAWTContainer.this.firePropertyChange(ACCESSIBLE_CHILD_PROPERTY, e.getChild(), null); } | 21,355 |
protected AccessibleAWTContainer() { Container.this.addContainerListener(accessibleContainerHandler); } | protected AccessibleAWTContainer() { Container.this.addContainerListener(accessibleContainerHandler); } | 21,356 |
public Accessible getAccessibleAt(Point p) { Component c = getComponentAt(p.x, p.y); return c != Container.this && c instanceof Accessible ? (Accessible) c : null; } | public Accessible getAccessibleAt(Point p) { Component c = getComponentAt(p.x, p.y); return c != Container.this && c instanceof Accessible ? (Accessible) c : null; } | 21,357 |
public Accessible getAccessibleChild(int i) { synchronized (getTreeLock()) { if (component == null) return null; int index = -1; while (i >= 0 && ++index < component.length) if (component[index] instanceof Accessible) i--; if (i < 0) return (Accessible) component[index]; return null;... | public Accessible getAccessibleChild(int i) { synchronized (getTreeLock()) { if (component == null) return null; int index = -1; while (i >= 0 && ++index < component.length) if (component[index] instanceof Accessible) i--; if (i < 0) return (Accessible) component[index]; return null;... | 21,358 |
public int getAccessibleChildrenCount() { synchronized (getTreeLock()) { int count = 0; int i = component == null ? 0 : component.length; while (--i >= 0) if (component[i] instanceof Accessible) count++; return count; } } | public int getAccessibleChildrenCount() { synchronized (getTreeLock()) { int count = 0; int i = component == null ? 0 : component.length; while (--i >= 0) if (component[i] instanceof Accessible) count++; return count; } } | 21,359 |
public void visit(Component c, Graphics gfx) { c.paintAll(gfx); } | public void visit(Component c, Graphics gfx) { c.paintAll(gfx); } | 21,360 |
public void visit(Component c, Graphics gfx) { c.paint(gfx); } | public void visit(Component c, Graphics gfx) { c.paint(gfx); } | 21,361 |
public void visit(Component c, Graphics gfx) { c.printAll(gfx); } | public void visit(Component c, Graphics gfx) { c.printAll(gfx); } | 21,362 |
public void visit(Component c, Graphics gfx) { c.print(gfx); } | public void visit(Component c, Graphics gfx) { c.print(gfx); } | 21,363 |
public Container() { } | public Container() { } | 21,364 |
public Component add(Component comp) { addImpl(comp, null, -1); return comp; } | public Component add(Component comp) { addImpl(comp, null, -1); return comp; } | 21,365 |
public synchronized void addContainerListener(ContainerListener l) { containerListener = AWTEventMulticaster.add(containerListener, l); } | public synchronized void addContainerListener(ContainerListener l) { containerListener = AWTEventMulticaster.add(containerListener, l); } | 21,366 |
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar... | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar... | 21,367 |
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar... | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar... | 21,368 |
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar... | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar... | 21,369 |
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar... | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar... | 21,370 |
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar... | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar... | 21,371 |
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar... | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar... | 21,372 |
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar... | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar... | 21,373 |
public void addNotify() { addNotifyContainerChildren(); super.addNotify(); } | public void addNotify() { addNotifyContainerChildren(); super.addNotify(); } | 21,374 |
private void addNotifyContainerChildren() { synchronized (getTreeLock()) { for (int i = ncomponents; --i >= 0;) { component[i].addNotify(); if (component[i].isLightweight()) enableEvents(component[i].eventMask); } } } | private void addNotifyContainerChildren() { synchronized (getTreeLock()) { for (int i = ncomponents; --i >= 0;) { component[i].addNotify(); if (component[i].isLightweight()) enableEvents(component[i].eventMask); } } } | 21,375 |
public void addPropertyChangeListener(PropertyChangeListener l) { } | public void addPropertyChangeListener(PropertyChangeListener l) { } | 21,376 |
public void applyComponentOrientation(ComponentOrientation o) { if (orientation == null) throw new NullPointerException(); } | public void applyComponentOrientation(ComponentOrientation o) { if (orientation == null) throw new NullPointerException(); } | 21,377 |
public boolean areFocusTraversalKeysSet(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); re... | public boolean areFocusTraversalKeysSet(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); re... | 21,378 |
public boolean areFocusTraversalKeysSet(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); re... | public boolean areFocusTraversalKeysSet(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); re... | 21,379 |
public int countComponents() { return getComponentCount(); } | public int countComponents() { return getComponentCount(); } | 21,380 |
public void deliverEvent(Event e) { } | public void deliverEvent(Event e) { } | 21,381 |
void dispatchEventImpl(AWTEvent e) { if ((e.id <= ContainerEvent.CONTAINER_LAST && e.id >= ContainerEvent.CONTAINER_FIRST) && (containerListener != null || (eventMask & AWTEvent.CONTAINER_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); } | void dispatchEventImpl(AWTEvent e) { if ((e.id <= ContainerEvent.CONTAINER_LAST && e.id >= ContainerEvent.CONTAINER_FIRST) && (containerListener != null || (eventMask & AWTEvent.CONTAINER_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); } | 21,382 |
public void doLayout() { if (layoutMgr != null) layoutMgr.layoutContainer(this); } | public void doLayout() { if (layoutMgr != null) layoutMgr.layoutContainer(this); } | 21,383 |
public Component findComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; // We d... | public Component findComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; // We d... | 21,384 |
public Component findComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; // We d... | public Component findComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; // We d... | 21,385 |
public Component findComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; // We d... | public Component findComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; // We d... | 21,386 |
public Component findComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; // We d... | public Component findComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; // We d... | 21,387 |
Component findNextFocusComponent(Component child) { synchronized (getTreeLock()) { int start, end; if (child != null) { for (start = 0; start < ncomponents; ++start) { if (component[start] == child) break; } end = start; // This special case lets us be sure to terminate. if (end == 0) ... | Component findNextFocusComponent(Component child) { synchronized (getTreeLock()) { int start, end; if (child != null) { for (start = 0; start < ncomponents; ++start) { if (component[start] == child) break; } end = start; // This special case lets us be sure to terminate. if (end == 0) ... | 21,388 |
Component findNextFocusComponent(Component child) { synchronized (getTreeLock()) { int start, end; if (child != null) { for (start = 0; start < ncomponents; ++start) { if (component[start] == child) break; } end = start; // This special case lets us be sure to terminate. if (end == 0) ... | Component findNextFocusComponent(Component child) { synchronized (getTreeLock()) { int start, end; if (child != null) { for (start = 0; start < ncomponents; ++start) { if (component[start] == child) break; } end = start; // This special case lets us be sure to terminate. if (end == 0) ... | 21,389 |
Component findNextFocusComponent(Component child) { synchronized (getTreeLock()) { int start, end; if (child != null) { for (start = 0; start < ncomponents; ++start) { if (component[start] == child) break; } end = start; // This special case lets us be sure to terminate. if (end == 0) ... | Component findNextFocusComponent(Component child) { synchronized (getTreeLock()) { int start, end; if (child != null) { for (start = 0; start < ncomponents; ++start) { if (component[start] == child) break; } end = start; // This special case lets us be sure to terminate. if (end == 0) ... | 21,390 |
public float getAlignmentX() { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.getLayoutAlignmentX(this); } else return super.getAlignmentX(); } | public float getAlignmentX() { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.getLayoutAlignmentX(this); } else return super.getAlignmentX(); } | 21,391 |
public float getAlignmentY() { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.getLayoutAlignmentY(this); } else return super.getAlignmentY(); } | public float getAlignmentY() { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.getLayoutAlignmentY(this); } else return super.getAlignmentY(); } | 21,392 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.