bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
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); }
13,271
LookAndFeelInfo(String name, String clazz) { this.name = name; this.clazz = clazz; }
public LookAndFeelInfo(String name, String clazz) { this.name = name; this.clazz = clazz; }
13,273
String getClassName() { return clazz; }
public String getClassName() { return clazz; }
13,274
String getName() { return name; }
public String getName() { return name; }
13,275
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); }
13,276
public Dimension preferredLayoutSize ( Container c ) { Dimension p = super.preferredLayoutSize(c); return p; }
public Dimension preferredLayoutSize ( Container c ) { Dimension p = super.preferredLayoutSize(c); return p; }
13,277
JRootPane() { setLayout(createRootLayout()); setBackground(UIManager.getColor("control")); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI(); }
JRootPane() { setLayout(createRootLayout()); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI(); }
13,278
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); return p; }
13,279
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); return p; }
13,280
void setJMenuBar(JMenuBar m) { menuBar = m; }
void setJMenuBar(JMenuBar m) { menuBar = m; getLayeredPane().add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); }
13,282
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()"); }
13,283
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( ...
13,284
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( ...
13,285
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() { 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()).getINode(dr.getINodeNr()), ...
13,286
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())...
13,287
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("Root cause: "+e.getMessage()); } Ext2DirectoryRecord dr = current; current = null; try{ return new Ext2Entry( ((Ex...
13,288
public Ext2Directory(INode iNode) { this.iNode=iNode; valid=true; }
public Ext2Directory(INode iNode, Ext2FileSystem fs) { this.iNode=iNode; valid=true; }
13,289
public FSEntry addDirectory(String name) throws IOException { throw new IOException("EXT2 implementation is currently readonly"); }
public FSEntry addDirectory(String name) throws IOException { if(getMode()==Ext2FileSystem.RO) throw new IOException("Filesystem or directory is mounted read-only!"); INode newINode; Ext2DirectoryRecord dr; try{ int rights = 0xFFFF & (Ext2Constants.EXT2_S_IRWXU | Ext2Constants.EXT2_S_IRWXG | Ext2Constants.EXT2_S_I...
13,291
public FSEntry addFile(String name) throws IOException { throw new IOException("EXT2 implementation is currently readonly"); }
public FSEntry addFile(String name) throws IOException { if(getMode()==Ext2FileSystem.RO) throw new IOException("Filesystem or directory is mounted read-only!"); INode newINode; Ext2DirectoryRecord dr; try{ int rights = 0xFFFF & (Ext2Constants.EXT2_S_IRWXU | Ext2Constants.EXT2_S_IRWXG | Ext2Constants.EXT2_S_IRWXO)...
13,292
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) throws IOException{ //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; }
13,293
public Iterator iterator() { log.debug("Ext2Directory.Iterator()"); return new FSEntryIterator(iNode); }
public Iterator iterator() throws IOException { log.debug("Ext2Directory.Iterator()"); return new FSEntryIterator(iNode); }
13,294
public void remove(String name) throws IOException { throw new IOException("EXT2 implementation is currently readonly"); }
public void remove(String name) throws IOException { if(getMode()==Ext2FileSystem.RO) throw new IOException("Filesystem or directory is mounted read-only!"); throw new IOException("remove not yet implemented"); }
13,295
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 (...
13,296
public int getRecLen() { return recLen; }
public int getRecLen() { return Ext2Utils.get16(data, offset+4); }
13,297
public int getINodeNr() { return iNodeNr; }
public int getINodeNr() { return (int)Ext2Utils.get32(data, offset); }
13,298
public short getType() { return type; }
public short getType() { return type; }
13,300
static void updateComponentTreeUI(JFrame comp) { }
static void updateComponentTreeUI(JFrame comp) { }
13,301
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); }
13,302
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() throws IOException{ //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...
13,303
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 =...
13,304
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 =...
13,305
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 =...
13,306
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...
13,308
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...
13,309
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...
13,310
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...
13,311
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...
13,312
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...
13,313
public void addNotify() { addNotifyContainerChildren(); super.addNotify(); }
public void addNotify() { addNotifyContainerChildren(); super.addNotify(); }
13,314
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); } } }
13,315
public void addPropertyChangeListener(PropertyChangeListener l) { }
public void addPropertyChangeListener(PropertyChangeListener l) { }
13,316
public void applyComponentOrientation(ComponentOrientation o) { if (orientation == null) throw new NullPointerException(); }
public void applyComponentOrientation(ComponentOrientation o) { if (orientation == null) throw new NullPointerException(); }
13,317
public int countComponents() { return getComponentCount(); }
public int countComponents() { return getComponentCount(); }
13,318
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); }
13,319
public void doLayout() { if (layoutMgr != null) layoutMgr.layoutContainer(this); }
public void doLayout() { if (layoutMgr != null) layoutMgr.layoutContainer(this); }
13,320
public Component getComponentAt(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; if (comp...
public Component getComponentAt(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; if (comp...
13,321
public int getComponentCount() { return ncomponents; }
public int getComponentCount() { return ncomponents; }
13,322
public Insets getInsets() { if (peer == null) return new Insets(0, 0, 0, 0); return ((ContainerPeer) peer).getInsets(); }
public Insets getInsets() { if (peer == null) return new Insets(0, 0, 0, 0); return ((ContainerPeer) peer).getInsets(); }
13,323
public Dimension getMinimumSize() { if (layoutMgr != null) return layoutMgr.minimumLayoutSize(this); else return super.getMinimumSize(); }
public Dimension getMinimumSize() { if (layoutMgr != null) return layoutMgr.minimumLayoutSize(this); else return super.getMinimumSize(); }
13,324
public Dimension getPreferredSize() { if (layoutMgr != null) return layoutMgr.preferredLayoutSize(this); else return super.getPreferredSize(); }
public Dimension getPreferredSize() { if (layoutMgr != null) return layoutMgr.preferredLayoutSize(this); else return super.getPreferredSize(); }
13,325
public Insets insets() { return getInsets(); }
public Insets insets() { return getInsets(); }
13,326
public void layout() { doLayout(); }
public void layout() { doLayout(); }
13,327
public Component locate(int x, int y) { return getComponentAt(x, y); }
public Component locate(int x, int y) { return getComponentAt(x, y); }
13,328
public Dimension minimumSize() { return getMinimumSize(); }
public Dimension minimumSize() { return getMinimumSize(); }
13,329
public void paint(Graphics g) { if (!isShowing()) return; super.paint(g); visitChildren(g, GfxPaintVisitor.INSTANCE, true); }
public void paint(Graphics g) { if (!isShowing()) return; super.paint(g); visitChildren(g, GfxPaintVisitor.INSTANCE, true); }
13,330
public Dimension preferredSize() { return getPreferredSize(); }
public Dimension preferredSize() { return getPreferredSize(); }
13,331
public void setFocusTraversalKeys(int id, Set keys) { 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();...
public void setFocusTraversalKeys(int id, Set keys) { 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();...
13,332
public void validate() { synchronized (getTreeLock()) { if (!isValid()) { validateTree(); } } }
public void validate() { synchronized (getTreeLock()) { if (!isValid()) { validateTree(); } } }
13,333
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle clip = gfx.getClipBounds().intersection(bounds); if (clip.isEmpty()) return; Graphics gfx2 = gfx.create(); gfx2.setClip(clip.x, clip.y, clip.width, clip.height); gfx2.translate(bounds.x, b...
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle clip = gfx.getClipBounds().intersection(bounds); if (clip.isEmpty()) return; Graphics gfx2 = gfx.create(); gfx2.setClip(clip.x, clip.y, clip.width, clip.height); gfx2.translate(bounds.x, b...
13,334
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle clip = gfx.getClipBounds().intersection(bounds); if (clip.isEmpty()) return; Graphics gfx2 = gfx.create(); gfx2.setClip(clip.x, clip.y, clip.width, clip.height); gfx2.translate(bounds.x, b...
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle clip = gfx.getClipBounds().intersection(bounds); if (clip.isEmpty()) return; Graphics gfx2 = gfx.create(); gfx2.setClip(clip.x, clip.y, clip.width, clip.height); gfx2.translate(bounds.x, b...
13,335
private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { synchronized (getTreeLock()) { for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; boolean applicable = comp.isVisible() && (comp.isLightweight() || !lightweightOnly); if (applicable) visitChild(g...
private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { synchronized (getTreeLock()) { for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; boolean applicable = comp.isVisible() && (comp.isLightweight() || !lightweightOnly); if (applicable) visitChild(g...
13,336
LightweightDispatcher(Container c) { }
LightweightDispatcher(Container c) { }
13,337
void enableEvents(long l) { }
void enableEvents(long l) { }
13,338
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, ...
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, ...
13,340
public ImageWriteParam(Locale locale) { this.locale = locale; }
protected ImageWriteParam() { this.locale = locale; }
13,357
public ImageWriteParam(Locale locale) { this.locale = locale; }
public ImageWriteParam(Locale locale) { }
13,358
public void connect() throws IOException { if (connected) { return; } String host = url.getHost(); int port = url.getPort(); String username = url.getUserInfo(); String password = null; if (username != null) { int ci = username.indexOf(':'); if (ci != -1) ...
public void connect() throws IOException { if (connected) { return; } String host = url.getHost(); int port = url.getPort(); String username = url.getUserInfo(); String password = null; if (username != null) { int ci = username.indexOf(':'); if (ci != -1) ...
13,359
public String getApproveButtonText(JFileChooser fc) { if (fc.getApproveButtonText() != null) return fc.getApproveButtonText(); else if (fc.getDialogType() == JFileChooser.SAVE_DIALOG) return saveButtonText; else return openButtonText; }
public String getApproveButtonText(JFileChooser fc) { if (fc.getApproveButtonText() != null) return fc.getApproveButtonText(); else if (fc.getDialogType() == JFileChooser.SAVE_DIALOG) return saveButtonText; else return openButtonText; }
13,360
public FileView getFileView(JFileChooser fc) { if (fc.getFileView() != null) return fc.getFileView(); return fv; }
public FileView getFileView(JFileChooser fc) { if (fc.getFileView() != null) return fc.getFileView(); return fv; }
13,361
public Node adoptNode(Node source) { switch (source.getNodeType()) { case DOCUMENT_NODE: case DOCUMENT_TYPE_NODE: throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR); case ENTITY_NODE: case NOTATION_NODE: throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_E...
public Node adoptNode(Node source) { int sourceNodeType = source.getNodeType(); switch (sourceNodeType) { case DOCUMENT_NODE: case DOCUMENT_TYPE_NODE: throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR); case ENTITY_NODE: case NOTATION_NODE: throw new DomDOMException(D...
13,363
public Node adoptNode(Node source) { switch (source.getNodeType()) { case DOCUMENT_NODE: case DOCUMENT_TYPE_NODE: throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR); case ENTITY_NODE: case NOTATION_NODE: throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_E...
public Node adoptNode(Node source) { switch (source.getNodeType()) { case DOCUMENT_NODE: case DOCUMENT_TYPE_NODE: throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR); case ENTITY_NODE: case NOTATION_NODE: throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_E...
13,364
public synchronized StringBuffer delete(int start, int end) { if (start < 0 || start > count || start > end) throw new StringIndexOutOfBoundsException(start); if (end > count) end = count; // This will unshare if required. ensureCapacity_unsynchronized(count); if (count - end != 0) Syst...
public synchronized StringBuffer delete(int start, int end) { if (start < 0 || start > count || start > end) throw new StringIndexOutOfBoundsException(start); if (end > count) end = count; // This will unshare if required. ensureCapacity_unsynchronized(count); if (count - end != 0) VMSy...
13,365
private void ensureCapacity_unsynchronized(int minimumCapacity) { if (shared || minimumCapacity > value.length) { // We don't want to make a larger vector when `shared' is // set. If we do, then setLength becomes very inefficient // when repeatedly reusing a StringBuffer in a loop. ...
private void ensureCapacity_unsynchronized(int minimumCapacity) { if (shared || minimumCapacity > value.length) { // We don't want to make a larger vector when `shared' is // set. If we do, then setLength becomes very inefficient // when repeatedly reusing a StringBuffer in a loop. ...
13,366
public synchronized void getChars(int srcOffset, int srcEnd, char[] dst, int dstOffset) { if (srcOffset < 0 || srcEnd > count || srcEnd < srcOffset) throw new StringIndexOutOfBoundsException(); System.arraycopy(value, srcOffset, dst, dstOffset, srcEnd - srcOffset); }
public synchronized void getChars(int srcOffset, int srcEnd, char[] dst, int dstOffset) { if (srcOffset < 0 || srcEnd > count || srcEnd < srcOffset) throw new StringIndexOutOfBoundsException(); VMSystem.arraycopy(value, srcOffset, dst, dstOffset, srcEnd - srcOffset); }
13,367
public synchronized StringBuffer insert(int offset, char[] str, int str_offset, int len) { if (offset < 0 || offset > count || len < 0 || str_offset < 0 || str_offset > str.length - len) throw new StringIndexOutOfBoundsException(); ensureCapacity_unsynchroni...
public synchronized StringBuffer insert(int offset, char[] str, int str_offset, int len) { if (offset < 0 || offset > count || len < 0 || str_offset < 0 || str_offset > str.length - len) throw new StringIndexOutOfBoundsException(); ensureCapacity_unsynchroni...
13,368
public synchronized StringBuffer replace(int start, int end, String str) { if (start < 0 || start > count || start > end) throw new StringIndexOutOfBoundsException(start); int len = str.count; // Calculate the difference in 'count' after the replace. int delta = len - (end > count ? count : end) + s...
public synchronized StringBuffer replace(int start, int end, String str) { if (start < 0 || start > count || start > end) throw new StringIndexOutOfBoundsException(start); int len = str.count; // Calculate the difference in 'count' after the replace. int delta = len - (end > count ? count : end) + s...
13,369
private void resolveNeutralTypes() { // This implements rules N1 and N2. final int runCount = getRunCount(); int previousLevel = baseEmbedding; for (int run = 0; run < runCount; ++run) { int start = getRunStart(run); int end = getRunLimit(run); int level = getRunLevel(run); ...
private void resolveNeutralTypes() { // This implements rules N1 and N2. final int runCount = getRunCount(); int previousLevel = baseEmbedding; for (int run = 0; run < runCount; ++run) { int start = getRunStart(run); int end = getRunLimit(run); int level = getRunLevel(run); ...
13,370
public static long getSize(String size) { if((size == null) || size.trim().equals("")) return 0; int multiplier = 1; if(size.endsWith("T")) { multiplier = T; size = size.substring(0, size.length() - 1); } else if(size.endsWith("G")) { ...
public static long getSize(String size) { if((size == null) || size.trim().equals("")) return 0; int multiplier = 1; if(size.endsWith("T")) { multiplier = T; size = size.substring(0, size.length() - 1); } else if(size.endsWith("G")) { ...
13,371
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "B"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
13,372
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "KB"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } //...
13,373
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "MB"; } //...
13,374
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
13,375
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
13,376
public boolean desiredAssertionStatus() { ClassLoader c = getClassLoader(); Object status; if (c == null) return VMClassLoader.defaultAssertionStatus(); if (c.classAssertionStatus != null) synchronized (c) { status = c.classAssertionStatus.get(getName...
public boolean desiredAssertionStatus() { ClassLoader c = getClassLoader(); Object status; if (c == null) return VMClassLoader.defaultAssertionStatus(); if (c.classAssertionStatus != null) synchronized (c) { status = c.classAssertionStatus.get(getName...
13,377
public final VmMethod getDeclaredMethod(String name, String signature) { return getMethod(name, signature, true, false, VmMember.calcHashCode( name, signature)); }
public final VmMethod getDeclaredMethod(String name, String signature) { return getMethod(name, signature, true, false, VmMember.calcHashCode( name, signature)); }
13,379
public final VmField getDeclaredField(String name) { return getDeclaredField(name, null); }
public final VmField getDeclaredField(String name) { return getDeclaredField(name, null); }
13,380
public NoSuchFieldException(String s) { super(s); }
public NoSuchFieldException() { super(s); }
13,381
public NoSuchFieldException(String s) { super(s); }
public NoSuchFieldException(String s) { }
13,382
public final VmMethod getMethod(String name, VmType[] argTypes) { return getMethod(name, argTypes, false); }
public final VmMethod getMethod(String name, VmType[] argTypes) { return getMethod(name, argTypes, false); }
13,383
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
13,384
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, notifier, catchExceptions); }
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, notifier, catchExceptions); }
13,386
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, notifier, catchExceptions); }
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, null, false); }
13,387
public char[] getPassword() { return (password); }
public char[] getPassword() { return password; }
13,388
public String getUserName() { return (username); }
public String getUserName() { return username; }
13,389
public boolean isSelected () { return (index == -1); }
public boolean isSelected () { return (index != -1); }
13,390
AbstractButton FindButton(ButtonModel m) { for (int i = 0; i < v.size(); i++) { AbstractButton a = (AbstractButton) v.get(i); if (a.getModel() == m) { return a; } } return null; }
AbstractButton FindButton(ButtonModel m) { for (int i = 0; i < v.size(); i++) { AbstractButton a = (AbstractButton) v.get(i); if (a.getModel() == m) { return a; } } return null; }
13,391
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = FindButton(sel);...
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = FindButton(sel);...
13,393
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = FindButton(sel);...
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } System.out.println("DESELECTING: " + sel); sel.setSelected(!b); System.out.println("DESELECTING: " + sel); sel.setSelected...
13,394
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = FindButton(sel);...
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = FindButton(sel);...
13,395
public abstract boolean addEntry(Principal caller, AclEntry entry) throws NotOwnerException;
boolean addEntry(Principal caller, AclEntry entry) throws NotOwnerException;
13,396