bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public synchronized void setColumns(int columns) { if (columns < 0) throw new IllegalArgumentException("Value is less than zero: " + columns); this.columns = columns; // FIXME: How to we communicate this to our peer? } | public synchronized void setColumns(int columns) { if (columns < 0) throw new IllegalArgumentException("Value is less than zero: " + columns); this.columns = columns; // FIXME: How to we communicate this to our peer? } | 36,457 |
public synchronized void setColumns(int columns) { if (columns < 0) throw new IllegalArgumentException("Value is less than zero: " + columns); this.columns = columns; // FIXME: How to we communicate this to our peer? } | public synchronized void setColumns(int columns) { if (columns < 0) throw new IllegalArgumentException("Value is less than zero: " + columns); this.columns = columns; // FIXME: How to we communicate this to our peer? } | 36,458 |
public synchronized void setColumns(int columns) { if (columns < 0) throw new IllegalArgumentException("Value is less than zero: " + columns); this.columns = columns; // FIXME: How to we communicate this to our peer? } | publicsynchronizedvoidsetColumns(intcolumns){ if(columns<0) thrownewIllegalArgumentException("Valueislessthanzero:"+columns); this.columns=columns; //FIXME:Howtowecommunicatethistoourpeer? } | 36,459 |
public synchronized void setRows(int rows) { if (rows < 1) throw new IllegalArgumentException("Value is less than one: " + rows); this.rows = rows; // FIXME: How to we communicate this to our peer? } | public synchronized void setRows(int rows) { if (rows < 1) throw new IllegalArgumentException("Value is less than one: " + rows); this.rows = rows; // FIXME: How to we communicate this to our peer? } | 36,460 |
public synchronized void setRows(int rows) { if (rows < 1) throw new IllegalArgumentException("Value is less than one: " + rows); this.rows = rows; // FIXME: How to we communicate this to our peer? } | public synchronized void setRows(int rows) { if (rows < 1) throw new IllegalArgumentException("Value is less than one: " + rows); this.rows = rows; // FIXME: How to we communicate this to our peer? } | 36,461 |
public synchronized void setRows(int rows) { if (rows < 1) throw new IllegalArgumentException("Value is less than one: " + rows); this.rows = rows; // FIXME: How to we communicate this to our peer? } | publicsynchronizedvoidsetRows(introws){ if(rows<1) thrownewIllegalArgumentException("Valueislessthanone:"+rows); this.rows=rows; //FIXME:Howtowecommunicatethistoourpeer? } | 36,462 |
public static Properties getInitProperties() { final String arch; final Vm vm = Vm.getVm(); arch = Unsafe.getCurrentProcessor().getArchitecture().getName(); Unsafe.debug("arch="); Unsafe.debug(arch); final Properties res = new Properties(); res.put("java.version", "1... | public static Properties getInitProperties() { final String arch; final Vm vm = Vm.getVm(); arch = Unsafe.getCurrentProcessor().getArchitecture().getName(); Unsafe.debug("arch="); Unsafe.debug(arch); final Properties res = new Properties(); res.put("java.version", "1... | 36,463 |
public PrivateKey decodePrivateKey(byte[] input) { throw new IllegalArgumentException("Wrong format for private keys"); } | public PrivateKey decodePrivateKey(byte[] input) { throw new InvalidParameterException("Wrong format for private keys"); } | 36,464 |
public byte[] encodePrivateKey(PrivateKey key) { throw new IllegalArgumentException("Wrong format for private keys"); } | public byte[] encodePrivateKey(PrivateKey key) { throw new InvalidParameterException("Wrong format for private keys"); } | 36,465 |
public static TypeCode type() { ORB orb = Restricted_ORB.Singleton; return orb.create_alias_tc(id(), "RepositoryId", orb.create_string_tc(0)); } | public static TypeCode type() { ORB orb = OrbRestricted.Singleton; return orb.create_alias_tc(id(), "RepositoryId", orb.create_string_tc(0)); } | 36,466 |
public Date parse (String source) throws ParseException { ParsePosition pos = new ParsePosition(0); Date result = parse (source, pos); if (result == null) { int index = pos.getErrorIndex(); if (index < 0) index = pos.getIndex(); throw new ParseException("invalid Date syntax", index); } return... | public Date parse (String source) throws ParseException { ParsePosition pos = new ParsePosition(0); Date result = parse (source, pos); if (result == null) { int index = pos.getErrorIndex(); if (index < 0) index = pos.getIndex(); throw new ParseException("invalid Date syntax in \"" + source + '\"', in... | 36,467 |
public void setSelectionModel(SingleSelectionModel model) { if (selectionModel != model) { SingleSelectionModel oldModel = this.selectionModel; } } | public void setSelectionModel(SingleSelectionModel model) { if (selectionModel != model) { SingleSelectionModel oldModel = this.selectionModel; } } | 36,468 |
public Attr createAttribute(String name) { if (checkingCharacters) { checkName(name, "1.1".equals(version)); } if (name.startsWith("xml:")) { return createAttributeNS(XMLConstants.XML_NS_URI, name); } else if (XMLConstants.XMLNS_ATTRIBUTE.equals(name) || name.st... | public Attr createAttribute(String name) { if (checkingCharacters) { checkName(name, "1.1".equals(version)); } if (name.startsWith("xml:")) { return createAttributeNS(XMLConstants.XML_NS_URI, name); } else if (XMLConstants.XMLNS_ATTRIBUTE.equals(name) || name.st... | 36,469 |
public Element createElement(String name) { Element element; if (checkingCharacters) { checkName(name, "1.1".equals(version)); } if (name.startsWith("xml:")) { element = createElementNS(null, name); } else { element = new DomElement(this, null, name); ... | public Element createElement(String name) { Element element; if (checkingCharacters) { checkName(name, "1.1".equals(version)); } if (name.startsWith("xml:")) { element = createElementNS(null, name); } else { DomElement domElement = new DomElement(this, nu... | 36,470 |
public int compare(Object o1, Object o2) { if (o1 instanceof JComponent && o2 instanceof JComponent) { JComponent c1 = (JComponent) o1; JComponent c2 = (JComponent) o2; return getDepth(c1) - getDepth(c2); } else throw new ClassCastException("This comparat... | public int compare(Object o1, Object o2) { if (o1 instanceof JComponent && o2 instanceof JComponent) { JComponent c1 = (JComponent) o1; JComponent c2 = (JComponent) o2; Rectangle d2 = (Rectangle) dirtyComponents.get(c2); return d2.width * d2.height - d1.width * d1.height; ... | 36,471 |
public int compare(Object o1, Object o2) { if (o1 instanceof JComponent && o2 instanceof JComponent) { JComponent c1 = (JComponent) o1; JComponent c2 = (JComponent) o2; return getDepth(c1) - getDepth(c2); } else throw new ClassCastException("This comparat... | public int compare(Object o1, Object o2) { if (o1 instanceof JComponent && o2 instanceof JComponent) { JComponent c1 = (JComponent) o1; JComponent c2 = (JComponent) o2; return getDepth(c1) - getDepth(c2); } throw new ClassCastException("This comparator ca... | 36,472 |
public void run() { ThreadGroup threadGroup = Thread.currentThread().getThreadGroup(); RepaintManager rm = (RepaintManager) currentRepaintManagers.get(threadGroup); setLive(false); rm.validateInvalidComponents(); rm.paintDirtyRegions(); } | public void run() { ThreadGroup threadGroup = Thread.currentThread().getThreadGroup(); RepaintManager rm = (RepaintManager) currentRepaintManagers.get(threadGroup); rm.validateInvalidComponents(); rm.paintDirtyRegions(); } | 36,473 |
public RepaintManager() { dirtyComponents = new HashMap(); workDirtyComponents = new HashMap(); repaintOrder = new ArrayList(); workRepaintOrder = new ArrayList(); invalidComponents = new ArrayList(); workInvalidComponents = new ArrayList(); repaintWorker = new RepaintWorker(); doubleBufferMa... | public RepaintManager() { dirtyComponents = new HashMap(); workDirtyComponents = new HashMap(); repaintOrder = new ArrayList(); workRepaintOrder = new ArrayList(); invalidComponents = new ArrayList(); workInvalidComponents = new ArrayList(); repaintWorker = new RepaintWorker(); doubleBufferMa... | 36,475 |
public RepaintManager() { dirtyComponents = new HashMap(); workDirtyComponents = new HashMap(); repaintOrder = new ArrayList(); workRepaintOrder = new ArrayList(); invalidComponents = new ArrayList(); workInvalidComponents = new ArrayList(); repaintWorker = new RepaintWorker(); doubleBufferMa... | public RepaintManager() { dirtyComponents = new HashMap(); workDirtyComponents = new HashMap(); repaintOrder = new ArrayList(); workRepaintOrder = new ArrayList(); invalidComponents = new ArrayList(); repaintWorker = new RepaintWorker(); doubleBufferMaximumSize = new Dimension(2000,2000); ... | 36,476 |
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w == 0 || h == 0 || !component.isShowing()) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)d... | public void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w == 0 || h == 0 || !component.isShowing()) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)dirtyComponent... | 36,477 |
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w == 0 || h == 0 || !component.isShowing()) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)d... | public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w <= 0 || h <= 0 || !component.isShowing()) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)d... | 36,478 |
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w == 0 || h == 0 || !component.isShowing()) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)d... | public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w == 0 || h == 0 || !component.isShowing()) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)d... | 36,479 |
public synchronized void addInvalidComponent(JComponent component) { Component ancestor = component.getParent(); while (ancestor != null && (! (ancestor instanceof JComponent) || ! ((JComponent) ancestor).isValidateRoot() )) ancestor = ancestor.getParent(); if (ancestor != null ... | public void addInvalidComponent(JComponent component) { Component ancestor = component.getParent(); while (ancestor != null && (! (ancestor instanceof JComponent) || ! ((JComponent) ancestor).isValidateRoot() )) ancestor = ancestor.getParent(); if (ancestor != null && anc... | 36,481 |
public void markCompletelyClean(JComponent component) { synchronized (this) { dirtyComponents.remove(component); } component.isCompletelyDirty = false; } | public void markCompletelyClean(JComponent component) { synchronized (dirtyComponents) { dirtyComponents.remove(component); } component.isCompletelyDirty = false; } | 36,483 |
public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th... | public void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(this) { ... | 36,484 |
public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th... | public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th... | 36,485 |
public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th... | public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th... | 36,486 |
public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th... | public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th... | 36,487 |
public synchronized void removeInvalidComponent(JComponent component) { invalidComponents.remove(component); } | public void removeInvalidComponent(JComponent component) { synchronized (invalidComponents) { invalidComponents.remove(component); } | 36,488 |
public void validateInvalidComponents() { // In order to keep the blocking of application threads minimal, we switch // the invalidComponents field with the workInvalidComponents field and // work with the workInvalidComponents field. synchronized(this) { ArrayList swap = invalidComponents; ... | public void validateInvalidComponents() { // In order to keep the blocking of application threads minimal, we switch // the invalidComponents field with the workInvalidComponents field and // work with the workInvalidComponents field. synchronized(this) { ArrayList swap = invalidComponents; ... | 36,490 |
public void validateInvalidComponents() { // In order to keep the blocking of application threads minimal, we switch // the invalidComponents field with the workInvalidComponents field and // work with the workInvalidComponents field. synchronized(this) { ArrayList swap = invalidComponents; ... | public void validateInvalidComponents() { // In order to keep the blocking of application threads minimal, we switch // the invalidComponents field with the workInvalidComponents field and // work with the workInvalidComponents field. synchronized(this) { ArrayList swap = invalidComponents; ... | 36,491 |
public void validateInvalidComponents() { // In order to keep the blocking of application threads minimal, we switch // the invalidComponents field with the workInvalidComponents field and // work with the workInvalidComponents field. synchronized(this) { ArrayList swap = invalidComponents; ... | public void validateInvalidComponents() { // In order to keep the blocking of application threads minimal, we switch // the invalidComponents field with the workInvalidComponents field and // work with the workInvalidComponents field. synchronized(this) { ArrayList swap = invalidComponents; ... | 36,492 |
public int showDialog(Component parent, String approveButtonText) { return 0; // TODO } // showDialog() | public int showDialog(Component parent, String approveButtonText) { return CANCEL_OPTION; // TODO } // showDialog() | 36,493 |
public int showOpenDialog(Component parent) { return 0; // TODO } // showOpenDialog() | public int showOpenDialog(Component parent) { return CANCEL_OPTION; // TODO } // showOpenDialog() | 36,494 |
public int showSaveDialog(Component parent) { return 0; // TODO } // showSaveDialog() | public int showSaveDialog(Component parent) { return CANCEL_OPTION; // TODO } // showSaveDialog() | 36,495 |
ActivationMonitor activeGroup (ActivationGroupID id, ActivationInstantiator group, long incarnation) throws UnknownGroupException, ActivationException, RemoteException; | ActivationMonitor activeGroup(ActivationGroupID id, ActivationInstantiator group, long incarnation) throws UnknownGroupException, ActivationException, RemoteException; | 36,496 |
public ActivationGroupDesc(String className, String location, MarshalledObject data, Properties overrides, ActivationGroupDesc.CommandEnvironment cmd) { throw new Error("Not implemented");} | public ActivationGroupDesc(String className, String location, MarshalledObject data, Properties overrides, ActivationGroupDesc.CommandEnvironment cmd) { throw new Error("Not implemented");} | 36,497 |
ActivationGroupID registerGroup (ActivationGroupDesc desc) throws ActivationException, RemoteException; | ActivationGroupID registerGroup(ActivationGroupDesc groupDesc) throws ActivationException, RemoteException; | 36,498 |
public Shape modelToView(int pos, Shape a, Bias b) throws BadLocationException { Segment s = getLineBuffer(); int lineHeight = metrics.getHeight(); Rectangle rect = a.getBounds(); // Return a rectangle with width 1 and height equal to the height // of the text rect.hei... | public Shape modelToView(int pos, Shape a, Bias b) throws BadLocationException { Segment s = getLineBuffer(); int lineHeight = metrics.getHeight(); // Return a rectangle with width 1 and height equal to the height // of the text rect.height = lineHeight; rect.widt... | 36,501 |
void updateDamage (Rectangle a) { // If the allocation area is empty we can't do anything useful. // As determining the number of lines is impossible in that state we // reset it to an invalid value which can then be recalculated at a // later point. if (a.isEmpty()) { nu... | void updateDamage (Rectangle a) { // If the allocation area is empty we can't do anything useful. // As determining the number of lines is impossible in that state we // reset it to an invalid value which can then be recalculated at a // later point. if (a == null || a.isEmpty()) ... | 36,502 |
add(Menu menu){ if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; menus.addElement(menu); if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; mp.addMenu (menu); } return(menu);} | add(Menu menu){ if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; menus.addElement(menu); if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; mp.addMenu (menu); } return(menu);} | 36,503 |
countMenus(){ // FIXME: How does the help menu fit in here? return menus.size ();} | countMenus(){ // FIXME: How does the help menu fit in here? return menus.size ();} | 36,505 |
setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } if (menu.parent != null) menu.parent.remove (menu); if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; ... | setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } if (menu.parent != null) menu.parent.remove (menu); if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; ... | 36,506 |
setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } if (menu.parent != null) menu.parent.remove (menu); if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; ... | setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } if (menu.parent != null) menu.parent.remove (menu); if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; ... | 36,507 |
public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)... | public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)... | 36,508 |
public Observable() { observers = new LinkedHashSet(); } | public Observable() { observers = new LinkedHashSet(); } | 36,513 |
public synchronized void addObserver(Observer observer) { observers.add(observer); } | public synchronized void addObserver(Observer observer) { observers.add(observer); } | 36,514 |
protected synchronized void clearChanged() { changed = false; } | protected synchronized void clearChanged() { changed = false; } | 36,515 |
public synchronized int countObservers() { return observers.size(); } | public synchronized int countObservers() { return observers.size(); } | 36,516 |
public synchronized void deleteObserver(Observer victim) { observers.remove(victim); } | public synchronized void deleteObserver(Observer victim) { observers.remove(victim); } | 36,517 |
public synchronized void deleteObservers() { observers.clear(); } | public synchronized void deleteObservers() { observers.clear(); } | 36,518 |
public synchronized boolean hasChanged() { return changed; } | public synchronized boolean hasChanged() { return changed; } | 36,519 |
public void notifyObservers() { notifyObservers(null); } | public void notifyObservers() { notifyObservers(null); } | 36,520 |
protected synchronized void setChanged() { changed = true; } | protected synchronized void setChanged() { changed = true; } | 36,521 |
public BasicMenuItemUI() { mouseInputListener = createMouseInputListener(menuItem); menuDragMouseListener = createMenuDragMouseListener(menuItem); menuKeyListener = createMenuKeyListener(menuItem); propertyChangeListener = new PropertyChangeHandler(); itemListener = new ItemHandler(); } | public BasicMenuItemUI() { mouseInputListener = createMouseInputListener(menuItem); menuDragMouseListener = createMenuDragMouseListener(menuItem); menuKeyListener = createMenuKeyListener(menuItem); itemListener = new ItemHandler(); } | 36,522 |
protected void installListeners() { menuItem.addMouseListener(mouseInputListener); menuItem.addMouseMotionListener(mouseInputListener); menuItem.addMenuDragMouseListener(menuDragMouseListener); menuItem.addMenuKeyListener(menuKeyListener); menuItem.addPropertyChangeListener(propertyChangeListener); ... | protected void installListeners() { menuItem.addMouseListener(mouseInputListener); menuItem.addMouseMotionListener(mouseInputListener); menuItem.addMenuDragMouseListener(menuDragMouseListener); menuItem.addMenuKeyListener(menuKeyListener); menuItem.addItemListener(itemListener); } | 36,523 |
protected void uninstallListeners() { menuItem.removeMouseListener(mouseInputListener); menuItem.removeMenuDragMouseListener(menuDragMouseListener); menuItem.removeMenuKeyListener(menuKeyListener); menuItem.removePropertyChangeListener(propertyChangeListener); menuItem.removeItemListener(itemListener)... | protected void uninstallListeners() { menuItem.removeMouseListener(mouseInputListener); menuItem.removeMenuDragMouseListener(menuDragMouseListener); menuItem.removeMenuKeyListener(menuKeyListener); menuItem.removeItemListener(itemListener); } | 36,524 |
public DatagramSocketImpl() { } | public DatagramSocketImpl() { } | 36,525 |
protected FileDescriptor getFileDescriptor() { return fd; } | protected FileDescriptor getFileDescriptor() { return fd; } | 36,526 |
protected byte getTTL() throws IOException { return (byte)getTimeToLive(); } | protected byte getTTL() throws IOException { return (byte)getTimeToLive(); } | 36,527 |
protected abstract void joinGroup( SocketAddress mcastaddr, NetworkInterface netIf) throws IOException; | protected abstract void joinGroup( SocketAddress mcastaddr, NetworkInterface netIf) throws IOException; | 36,528 |
protected abstract void leaveGroup( SocketAddress mcastaddr, NetworkInterface netIf) throws IOException; | protected abstract void leaveGroup( SocketAddress mcastaddr, NetworkInterface netIf) throws IOException; | 36,529 |
protected void setTTL(byte ttl) throws IOException { setTimeToLive(ttl); } | protected void setTTL(byte ttl) throws IOException { setTimeToLive(ttl); } | 36,530 |
public void delete(File file) throws IOException { final File parent = file.getParentFile(); if (parent == null) { throw new IOException("There is no parent of " + file); } final FSEntry parentEntry = getEntry(parent); if (parentEntry == null) { throw new IOException("Parent of " + file + " not found"); } i... | public void delete(File file) throws IOException { final File parent = file.getParentFile(); if (parent == null) { throw new IOException("There is no parent of " + file); } final FSEntry parentEntry = getEntry(parent); if (parentEntry == null) { throw new IOException("Parent of " + file + " not found"); } i... | 36,531 |
public VMFileHandle open(File file, VMOpenMode mode) throws IOException { FSEntry entry = getEntry(file); if ((entry != null) && !entry.isFile()) { throw new IOException("Not a file " + file); } if (entry == null) { if (mode.canWrite()) { // Try to create the file final FSEntry parent = getEntry(file.get... | public VMFileHandle open(File file, VMOpenMode mode) throws IOException { FSEntry entry = getEntry(file); if ((entry != null) && !entry.isFile()) { throw new IOException("Not a file " + file); } if (entry == null) { if (mode.canWrite()) { // Try to create the file final FSEntry parent = getEntry(file.get... | 36,532 |
public Insets getBorderInsets(Component c) { return new Insets(0, 0, 0, 0); } | public Insets getBorderInsets(Component c) { return new Insets(2, 2, 2, 2); } | 36,533 |
public boolean isBorderOpaque() { return false; } | public boolean isBorderOpaque() { return true; } | 36,534 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Rectangle bounds = getBounds(); Color saved = g.getColor(); g.setColor(highlight); g.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height); g.drawLine(bounds.x, bounds.y, bounds.x + bounds.width, bo... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Rectangle bounds = getBounds(); Color saved = g.getColor(); g.setColor(highlight); g.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height); g.drawLine(bounds.x, bounds.y, bounds.x + bounds.width, bo... | 36,535 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Rectangle bounds = getBounds(); Color saved = g.getColor(); g.setColor(highlight); g.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height); g.drawLine(bounds.x, bounds.y, bounds.x + bounds.width, bo... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(highlight); g.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height); g.drawLine(bounds.x, bounds.y, bounds.x + bounds.width, bounds.y); g.setColor(shadow);... | 36,536 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Rectangle bounds = getBounds(); Color saved = g.getColor(); g.setColor(highlight); g.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height); g.drawLine(bounds.x, bounds.y, bounds.x + bounds.width, bo... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Rectangle bounds = getBounds(); Color saved = g.getColor(); g.setColor(highlight); g.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height); g.drawLine(bounds.x, bounds.y, bounds.x + bounds.width, bo... | 36,537 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Rectangle bounds = getBounds(); Color saved = g.getColor(); g.setColor(highlight); g.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height); g.drawLine(bounds.x, bounds.y, bounds.x + bounds.width, bo... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Rectangle bounds = getBounds(); Color saved = g.getColor(); g.setColor(highlight); g.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height); g.drawLine(bounds.x, bounds.y, bounds.x + bounds.width, bo... | 36,538 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Rectangle bounds = getBounds(); Color saved = g.getColor(); g.setColor(highlight); g.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height); g.drawLine(bounds.x, bounds.y, bounds.x + bounds.width, bo... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Rectangle bounds = getBounds(); Color saved = g.getColor(); g.setColor(highlight); g.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height); g.drawLine(bounds.x, bounds.y, bounds.x + bounds.width, bo... | 36,539 |
public void paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled) { Polygon arrow = getArrow(direction, size); arrowIcon arrowI = new arrowIcon(arrow); arrowI.setSize(size); Color arrowColor; if (isEnabled()) arrowColor = darkShadow; els... | public void paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled) { Polygon arrow = getArrow(direction, size); arrowIcon arrowI = new arrowIcon(arrow); arrowI.setSize(size); Color arrowColor; if (isEnabled()) arrowColor = darkShadow; els... | 36,540 |
public void paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled) { Polygon arrow = getArrow(direction, size); arrowIcon arrowI = new arrowIcon(arrow); arrowI.setSize(size); Color arrowColor; if (isEnabled()) arrowColor = darkShadow; els... | public void paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled) { Polygon arrow = getArrow(direction, size); arrowIcon arrowI = new arrowIcon(arrow); arrowI.setSize(size); Color arrowColor; if (isEnabled()) arrowColor = darkShadow; els... | 36,541 |
public void paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled) { Polygon arrow = getArrow(direction, size); arrowIcon arrowI = new arrowIcon(arrow); arrowI.setSize(size); Color arrowColor; if (isEnabled()) arrowColor = darkShadow; els... | public void paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled) { Polygon arrow = getArrow(direction, size); arrowIcon arrowI = new arrowIcon(arrow); arrowI.setSize(size); Color arrowColor; if (isEnabled()) arrowColor = darkShadow; els... | 36,542 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | 36,543 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | 36,544 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | 36,545 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | 36,546 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | 36,547 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | 36,548 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | 36,549 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | 36,550 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | 36,551 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | 36,552 |
public T next() { final Map.Entry e = (Map.Entry) super.next(); return (T) new Map.Entry() { /** * Returns <code>true</code> if the object, o, is also a map entry with an * identical key and value. * * @param o the object to compare. ... | public T next() { final Map.Entry e = (Map.Entry) super.next(); return (T) new Map.Entry() { /** * Returns <code>true</code> if the object, o, is also a map entry with an * identical key and value. * * @param o the object to compare. ... | 36,553 |
SynchronizedSet(Object sync, Set<T> s) { super(sync, s); } | SynchronizedSet(Set<T> s) { super(sync, s); } | 36,554 |
SynchronizedSet(Object sync, Set<T> s) { super(sync, s); } | SynchronizedSet(Object sync, Set<T> s) { super(s); } | 36,555 |
public static final <T> List<T> emptyList() { return EMPTY_LIST; } | public static final <T> List<T> emptyList() { return EMPTY_LIST; } | 36,556 |
public static final <K,V> Map<K,V> emptyMap() { return EMPTY_MAP; } | public static final <K,V> Map<K,V> emptyMap() { return EMPTY_MAP; } | 36,557 |
public static final <T> Set<T> emptySet() { return EMPTY_SET; } | public static final <T> Set<T> emptySet() { return EMPTY_SET; } | 36,558 |
public static <T> Comparator<T> reverseOrder() { return (Comparator<T>) rcInstance; } | public static <T> Comparator<T> reverseOrder(final Comparator<T> c) { return (Comparator<T>) rcInstance; } | 36,559 |
public static <T> Comparator<T> reverseOrder() { return (Comparator<T>) rcInstance; } | public static <T> Comparator<T> reverseOrder() { if (c == null) return (Comparator<T>) rcInstance; return new ReverseComparator<T> () { public int compare(T a, T b) { return - c.compare(a, b); } }; } | 36,560 |
public static void rotate(List<? super Object> list, int distance) { int size = list.size(); if (size == 0) return; distance %= size; if (distance == 0) return; if (distance < 0) distance += size; if (isSequential(list)) { reverse(list); reverse(list.subList(0, dis... | public static void rotate(List<?> list, int distance) { int size = list.size(); if (size == 0) return; distance %= size; if (distance == 0) return; if (distance < 0) distance += size; if (isSequential(list)) { reverse(list); reverse(list.subList(0, distance)); ... | 36,561 |
public static void rotate(List<? super Object> list, int distance) { int size = list.size(); if (size == 0) return; distance %= size; if (distance == 0) return; if (distance < 0) distance += size; if (isSequential(list)) { reverse(list); reverse(list.subList(0, dis... | public static void rotate(List<? super Object> list, int distance) { int size = list.size(); if (size == 0) return; distance %= size; if (distance == 0) return; if (distance < 0) distance += size; if (isSequential(list)) { reverse(list); reverse(list.subList(0, dis... | 36,562 |
public static void rotate(List<? super Object> list, int distance) { int size = list.size(); if (size == 0) return; distance %= size; if (distance == 0) return; if (distance < 0) distance += size; if (isSequential(list)) { reverse(list); reverse(list.subList(0, dis... | public static void rotate(List<? super Object> list, int distance) { int size = list.size(); if (size == 0) return; distance %= size; if (distance == 0) return; if (distance < 0) distance += size; if (isSequential(list)) { reverse(list); reverse(list.subList(0, dis... | 36,563 |
public static void shuffle(List<? super Object> l) { if (defaultRandom == null) { synchronized (Collections.class) { if (defaultRandom == null) defaultRandom = new Random(); } } shuffle(l, defaultRandom); } | public static void shuffle(List<?> l) { if (defaultRandom == null) { synchronized (Collections.class) { if (defaultRandom == null) defaultRandom = new Random(); } } shuffle(l, defaultRandom); } | 36,564 |
public static void swap(List<? super Object> l, int i, int j) { l.set(i, l.set(j, l.get(i))); } | public static void swap(List<?> l, int i, int j) { l.set(i, l.set(j, l.get(i))); } | 36,565 |
public static void swap(List<? super Object> l, int i, int j) { l.set(i, l.set(j, l.get(i))); } | public static void swap(List<? super Object> l, int i, int j) { List<Object> list = (List<Object>) l; list.set(i, list.set(j, list.get(i))); } | 36,566 |
public Vm(String version, VmArchitecture arch, VmHeapManager heapManager, VmStatics statics, boolean debugMode) { instance = this; this.version = version; this.debugMode = debugMode; this.bootstrap = true; this.arch = arch; this.heapManager = heapManager; this.statics = statics; this.processors = new BootableA... | public Vm(String version, VmArchitecture arch, VmHeapManager heapManager, VmStatics statics, boolean debugMode) { instance = this; this.version = version; this.debugMode = debugMode; this.bootstrap = true; this.arch = arch; this.heapManager = heapManager; this.statics = statics; this.processors = new BootableA... | 36,567 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.