bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
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; ...
22,854
public int showDialog(Component parent, String approveButtonText) { return 0; // TODO } // showDialog()
public int showDialog(Component parent, String approveButtonText) { return CANCEL_OPTION; // TODO } // showDialog()
22,855
public int showOpenDialog(Component parent) { return 0; // TODO } // showOpenDialog()
public int showOpenDialog(Component parent) { return CANCEL_OPTION; // TODO } // showOpenDialog()
22,856
public int showSaveDialog(Component parent) { return 0; // TODO } // showSaveDialog()
public int showSaveDialog(Component parent) { return CANCEL_OPTION; // TODO } // showSaveDialog()
22,857
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");}
22,858
ActivationGroupID registerGroup (ActivationGroupDesc desc) throws ActivationException, RemoteException;
ActivationGroupID registerGroup(ActivationGroupDesc groupDesc) throws ActivationException, RemoteException;
22,859
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.wid...
22,862
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()) ...
22,863
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);}
22,864
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 () + (getHelpMenu () == null ? 0 : 1);}
22,866
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; ...
22,867
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; ...
22,868
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)...
22,869
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(); }
22,874
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); }
22,875
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); }
22,876
protected byte getTTL() throws IOException { return (byte)getTimeToLive(); }
protected byte getTTL() throws IOException { return (byte)getTimeToLive(); }
22,877
protected void setTTL(byte ttl) throws IOException { setTimeToLive(ttl); }
protected void setTTL(byte ttl) throws IOException { setTimeToLive(ttl); }
22,878
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.getAbsoluteFile().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 + " ...
22,879
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...
22,880
public Insets getBorderInsets(Component c) { return new Insets(0, 0, 0, 0); }
public Insets getBorderInsets(Component c) { return new Insets(2, 2, 2, 2); }
22,881
public boolean isBorderOpaque() { return false; }
public boolean isBorderOpaque() { return true; }
22,882
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...
22,883
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...
22,884
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...
22,885
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...
22,886
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...
22,887
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...
22,888
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...
22,889
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, ...
22,890
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, ...
22,891
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, ...
22,892
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, ...
22,893
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, ...
22,894
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, ...
22,895
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, ...
22,896
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, ...
22,897
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, ...
22,898
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, ...
22,899
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. ...
22,900
SynchronizedSet(Object sync, Set<T> s) { super(sync, s); }
SynchronizedSet(Set<T> s) { super(sync, s); }
22,901
SynchronizedSet(Object sync, Set<T> s) { super(sync, s); }
SynchronizedSet(Object sync, Set<T> s) { super(s); }
22,902
public static final <T> List<T> emptyList() { return EMPTY_LIST; }
public static final <T> List<T> emptyList() { return EMPTY_LIST; }
22,903
public static final <K,V> Map<K,V> emptyMap() { return EMPTY_MAP; }
public static final <K,V> Map<K,V> emptyMap() { return EMPTY_MAP; }
22,904
public static final <T> Set<T> emptySet() { return EMPTY_SET; }
public static final <T> Set<T> emptySet() { return EMPTY_SET; }
22,905
public static <T> Comparator<T> reverseOrder() { return (Comparator<T>) rcInstance; }
public static <T> Comparator<T> reverseOrder(final Comparator<T> c) { return (Comparator<T>) rcInstance; }
22,906
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); } }; }
22,907
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)); ...
22,908
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...
22,909
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...
22,910
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); }
22,911
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))); }
22,912
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))); }
22,913
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...
22,914
static final void registerThread(VmThread thread) { getVm().allThreads.add(thread, true, "Vm"); }
static final void registerThread(VmThread thread) { final Vm vm = getVm(); final VmThreadQueue.AllThreadsQueue q = vm.allThreads; if (isWritingImage()) { q.add(thread, "Vm"); } else { final SpinLock lock = vm.allThreadsLock; lock.lock(); try { q.add(thread, "Vm"); } finally { lock.unlock(); } } }
22,915
static final void unregisterThread(VmThread thread) { getVm().allThreads.remove(thread); }
static final void unregisterThread(VmThread thread) { final Vm vm = getVm(); final SpinLock lock = vm.allThreadsLock; final VmThreadQueue.AllThreadsQueue q = vm.allThreads; lock.lock(); try { q.remove(thread); } finally { lock.unlock(); } }
22,916
static final boolean visitAllThreads(VmThreadVisitor visitor) { return getVm().allThreads.visit(visitor); }
static final boolean visitAllThreads(VmThreadVisitor visitor) { final Vm vm = getVm(); final SpinLock lock = vm.allThreadsLock; final VmThreadQueue.AllThreadsQueue q = vm.allThreads; lock.lock(); try { return q.visit(visitor); } finally { lock.unlock(); } }
22,917
public Scrollbar() { this(VERTICAL); }
Scrollbar() { this(VERTICAL); }
22,918
public synchronized void addAdjustmentListener(AdjustmentListener listener) { adjustment_listeners = AWTEventMulticaster.add(adjustment_listeners, listener); enableEvents(AWTEvent.ADJUSTMENT_EVENT_MASK); }
addAdjustmentListener(AdjustmentListener listener) { adjustment_listeners = AWTEventMulticaster.add(adjustment_listeners, listener); enableEvents(AWTEvent.ADJUSTMENT_EVENT_MASK); }
22,919
public synchronized void addNotify() { if (peer == null) peer = getToolkit().createScrollbar(this); super.addNotify(); }
addNotify() { if (peer == null) peer = getToolkit().createScrollbar(this); super.addNotify(); }
22,920
void dispatchEventImpl(AWTEvent e) { if (e.id <= AdjustmentEvent.ADJUSTMENT_LAST && e.id >= AdjustmentEvent.ADJUSTMENT_FIRST && (adjustment_listeners != null || (eventMask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
dispatchEventImpl(AWTEvent e) { if (e.id <= AdjustmentEvent.ADJUSTMENT_LAST && e.id >= AdjustmentEvent.ADJUSTMENT_FIRST && (adjustment_listeners != null || (eventMask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
22,921
public int getBlockIncrement() { return (pageIncrement); }
public int getBlockIncrement() { return (pageIncrement); }
22,922
public int getLineIncrement() { return (lineIncrement); }
public int getLineIncrement() { return (lineIncrement); }
22,923
public int getMaximum() { return (maximum); }
public int getMaximum() { return (maximum); }
22,924
public int getMinimum() { return (minimum); }
public int getMinimum() { return (minimum); }
22,925
public int getOrientation() { return (orientation); }
public int getOrientation() { return (orientation); }
22,926
public int getPageIncrement() { return (pageIncrement); }
public int getPageIncrement() { return (pageIncrement); }
22,927
public int getUnitIncrement() { return (lineIncrement); }
public int getUnitIncrement() { return (lineIncrement); }
22,928
public int getValue() { return (value); }
public int getValue() { return (value); }
22,929
public int getVisible() { return (getVisibleAmount()); }
public int getVisible() { return (getVisibleAmount()); }
22,930
public int getVisibleAmount() { return (visibleAmount); }
public int getVisibleAmount() { return (visibleAmount); }
22,931
protected String paramString() { return ( "value=" + getValue() + ",visibleAmount=" + getVisibleAmount() + ",minimum=" + getMinimum() + ",maximum=" + getMaximum() + ",pageIncrement=" + pageIncrement + ",lineIncrement=" + lineIncrement + ",orientation=" + (orientation == HORIZO...
protected String paramString() { return ( "value=" + getValue() + ",visibleAmount=" + getVisibleAmount() + ",minimum=" + getMinimum() + ",maximum=" + getMaximum() + ",pageIncrement=" + pageIncrement + ",lineIncrement=" + lineIncrement + ",orientation=" + (orientation == HORIZO...
22,932
protected void processAdjustmentEvent(AdjustmentEvent event) { if (adjustment_listeners != null) adjustment_listeners.adjustmentValueChanged(event); }
processAdjustmentEvent(AdjustmentEvent event) { value = event.getValue(); if (adjustment_listeners != null) adjustment_listeners.adjustmentValueChanged(event); }
22,933
protected void processEvent(AWTEvent event) { if (event instanceof AdjustmentEvent) processAdjustmentEvent((AdjustmentEvent) event); else super.processEvent(event); }
processEvent(AWTEvent event) { if (event instanceof AdjustmentEvent) processAdjustmentEvent((AdjustmentEvent) event); else super.processEvent(event); }
22,934
public synchronized void removeAdjustmentListener(AdjustmentListener listener) { adjustment_listeners = AWTEventMulticaster.remove(adjustment_listeners, listener); }
public synchronized void removeAdjustmentListener(AdjustmentListener listener) { adjustment_listeners = AWTEventMulticaster.remove(adjustment_listeners, listener); }
22,935
public synchronized void setBlockIncrement(int blockIncrement) { if (blockIncrement < 0) throw new IllegalArgumentException("Block increment less than zero."); int range = maximum - minimum; if (blockIncrement > range) { if (range == 0) blockIncrement = 1; else blockIncrement = range; } if (blockIncre...
public synchronized void setBlockIncrement(int blockIncrement) { if (blockIncrement < 0) throw new IllegalArgumentException("Block increment less than zero."); int range = maximum - minimum; if (blockIncrement > range) { if (range == 0) blockIncrement = 1; else blockIncrement = range; } if (blockIncre...
22,936
public void setLineIncrement(int lineIncrement) { setUnitIncrement(lineIncrement); }
public void setLineIncrement(int lineIncrement) { setUnitIncrement(lineIncrement); }
22,937
public void setMaximum(int maximum) { setValues(value, visibleAmount, minimum, maximum); }
setMaximum(int maximum) { setValues(value, visibleAmount, minimum, maximum); }
22,939
public void setMinimum(int minimum) { setValues(value, visibleAmount, minimum, maximum); }
setMinimum(int minimum) { setValues(value, visibleAmount, minimum, maximum); }
22,940
public void setOrientation(int orientation) { if ((orientation != HORIZONTAL) && (orientation != VERTICAL)) throw new IllegalArgumentException("Bad orientation value: " + orientation); // FIXME: Communicate to peer? Or must this be called before peer creation? this.orientation = orientation; }
setOrientation(int orientation) { if ((orientation != HORIZONTAL) && (orientation != VERTICAL)) throw new IllegalArgumentException("Bad orientation value: " + orientation); // FIXME: Communicate to peer? Or must this be called before peer creation? this.orientation = orientation; }
22,941
public void setPageIncrement(int pageIncrement) { setBlockIncrement(pageIncrement); }
public void setPageIncrement(int pageIncrement) { setBlockIncrement(pageIncrement); }
22,942
public synchronized void setUnitIncrement(int unitIncrement) { if (unitIncrement < 0) throw new IllegalArgumentException("Unit increment less than zero."); int range = maximum - minimum; if (unitIncrement > range) { if (range == 0) unitIncrement = 1; else unitIncrement = range; } if (unitIncrement == ...
public synchronized void setUnitIncrement(int unitIncrement) { if (unitIncrement < 0) throw new IllegalArgumentException("Unit increment less than zero."); int range = maximum - minimum; if (unitIncrement > range) { if (range == 0) unitIncrement = 1; else unitIncrement = range; } if (unitIncrement == ...
22,944
public void setValue(int value) { setValues(value, visibleAmount, minimum, maximum); }
setValue(int value) { setValues(value, visibleAmount, minimum, maximum); }
22,945
public synchronized void setValues(int value, int visibleAmount, int minimum, int maximum) { if (maximum < minimum) maximum = minimum; if (value < minimum) value = minimum; if (value > maximum) value = maximum; if (visibleAmount > value) visibleAmount = value; this.value = value; this.visibleAmount = vis...
setValues(int value, int visibleAmount, int minimum, int maximum) { if (maximum < minimum) maximum = minimum; if (value < minimum) value = minimum; if (value > maximum) value = maximum; if (visibleAmount > value) visibleAmount = value; this.value = value; this.visibleAmount = visibleAmount; this.minimum...
22,946
public synchronized void setValues(int value, int visibleAmount, int minimum, int maximum) { if (maximum < minimum) maximum = minimum; if (value < minimum) value = minimum; if (value > maximum) value = maximum; if (visibleAmount > value) visibleAmount = value; this.value = value; this.visibleAmount = vis...
public synchronized void setValues(int value, int visibleAmount, int minimum, int maximum) { if (maximum < minimum) maximum = minimum; if (value < minimum) value = minimum; if (value > maximum) value = maximum; if (visibleAmount > value) visibleAmount = value; this.value = value; this.visibleAmount = vis...
22,947
public synchronized void setValues(int value, int visibleAmount, int minimum, int maximum) { if (maximum < minimum) maximum = minimum; if (value < minimum) value = minimum; if (value > maximum) value = maximum; if (visibleAmount > value) visibleAmount = value; this.value = value; this.visibleAmount = vis...
public synchronized void setValues(int value, int visibleAmount, int minimum, int maximum) { if (maximum < minimum) maximum = minimum; if (value < minimum) value = minimum; if (value > maximum) value = maximum; if (visibleAmount > value) visibleAmount = value; this.value = value; this.visibleAmount = vis...
22,948
public synchronized void setValues(int value, int visibleAmount, int minimum, int maximum) { if (maximum < minimum) maximum = minimum; if (value < minimum) value = minimum; if (value > maximum) value = maximum; if (visibleAmount > value) visibleAmount = value; this.value = value; this.visibleAmount = vis...
public synchronized void setValues(int value, int visibleAmount, int minimum, int maximum) { if (maximum < minimum) maximum = minimum; if (value < minimum) value = minimum; if (value > maximum) value = maximum; if (visibleAmount > value) visibleAmount = value; this.value = value; this.visibleAmount = vis...
22,949
public synchronized void setValues(int value, int visibleAmount, int minimum, int maximum) { if (maximum < minimum) maximum = minimum; if (value < minimum) value = minimum; if (value > maximum) value = maximum; if (visibleAmount > value) visibleAmount = value; this.value = value; this.visibleAmount = vis...
public synchronized void setValues(int value, int visibleAmount, int minimum, int maximum) { if (maximum < minimum) maximum = minimum; if (value < minimum) value = minimum; if (value > maximum) value = maximum; if (visibleAmount > value) visibleAmount = value; this.value = value; this.visibleAmount = vis...
22,950
public void setVisibleAmount(int visibleAmount) { setValues(value, visibleAmount, minimum, maximum); }
setVisibleAmount(int visibleAmount) { setValues(value, visibleAmount, minimum, maximum); }
22,952
final RadeonSurface open(RadeonConfiguration config) throws ResourceNotFreeException { // Get the best matching config config = fbinfo.getBestConfiguration(config); log.info("BestConfig:" + config); // Calculate new configuration final DisplayMode mode = config.getDisplayMode(); final int width = mode.getW...
final RadeonSurface open(RadeonConfiguration config) throws ResourceNotFreeException { // Get the best matching config config = fbinfo.getBestConfiguration(config); log.debug("BestConfig:" + config); // Calculate new configuration final DisplayMode mode = config.getDisplayMode(); final int width = mode.get...
22,953
public boolean isComponentPartOfCurrentMenu(Component c) { MenuElement[] subElements; for (int i = 0; i < selectedPath.size(); i++) { subElements = ((MenuElement) selectedPath.get(i)).getSubElements(); for (int j = 0; j < subElements.length; j++) { MenuElement me = sub...
public boolean isComponentPartOfCurrentMenu(Component c) { MenuElement[] subElements; for (int i = 0; i < selectedPath.size(); i++) { MenuElement first = (MenuElement) selectedPath.get(i); if (SwingUtilities.isDescendingFrom(c, first.getComponent())) { ret = true; break; } else { subElements = ...
22,954
public boolean isComponentPartOfCurrentMenu(Component c) { MenuElement[] subElements; for (int i = 0; i < selectedPath.size(); i++) { subElements = ((MenuElement) selectedPath.get(i)).getSubElements(); for (int j = 0; j < subElements.length; j++) { MenuElement me = sub...
public boolean isComponentPartOfCurrentMenu(Component c) { MenuElement[] subElements; for (int i = 0; i < selectedPath.size(); i++) { subElements = ((MenuElement) selectedPath.get(i)).getSubElements(); for (int j = 0; j < subElements.length; j++) { MenuElement me = sub...
22,955
public boolean isComponentPartOfCurrentMenu(Component c) { MenuElement[] subElements; for (int i = 0; i < selectedPath.size(); i++) { subElements = ((MenuElement) selectedPath.get(i)).getSubElements(); for (int j = 0; j < subElements.length; j++) { MenuElement me = sub...
public boolean isComponentPartOfCurrentMenu(Component c) { MenuElement[] subElements; for (int i = 0; i < selectedPath.size(); i++) { subElements = ((MenuElement) selectedPath.get(i)).getSubElements(); for (int j = 0; j < subElements.length; j++) { MenuElement me = sub...
22,956
public int columnAtPoint(Point point) { if (point != null) { int ncols = getColumnCount(); Dimension gap = getIntercellSpacing(); TableColumnModel cols = getColumnModel(); int x = point.x; for (int i = 0; i < ncols; ++i) { int width = cols.getColumn(i).g...
public int columnAtPoint(Point point) { if (point != null) { int ncols = getColumnCount(); Dimension gap = getIntercellSpacing(); TableColumnModel cols = getColumnModel(); int x = point.x; for (int i = 0; i < ncols; ++i) { int width = cols.getColumn(i).g...
22,958
public int columnAtPoint(Point point) { if (point != null) { int ncols = getColumnCount(); Dimension gap = getIntercellSpacing(); TableColumnModel cols = getColumnModel(); int x = point.x; for (int i = 0; i < ncols; ++i) { int width = cols.getColumn(i).g...
public int columnAtPoint(Point point) { if (point != null) { int ncols = getColumnCount(); Dimension gap = getIntercellSpacing(); TableColumnModel cols = getColumnModel(); int x = point.x; for (int i = 0; i < ncols; ++i) { int width = cols.getColumn(i).g...
22,959
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { // FIXME: I don't exactly know what sun does here. in both cases they // pick values which do *not* simply expose the next cell in a given // scroll direction. if (orientation == SwingConstants.VERTICAL) r...
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { // FIXME: I don't exactly know what sun does here. in both cases they // pick values which do *not* simply expose the next cell in a given // scroll direction. if (orientation == SwingConstants.VERTICAL) r...
22,961
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { // FIXME: I don't exactly know what sun does here. in both cases they // pick values which do *not* simply expose the next cell in a given // scroll direction. if (orientation == SwingConstants.VERTICAL) r...
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { // FIXME: I don't exactly know what sun does here. in both cases they // pick values which do *not* simply expose the next cell in a given // scroll direction. if (orientation == SwingConstants.VERTICAL) r...
22,962
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte...
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte...
22,964
public void addNotify() { // Assume we're using ClasspathToolkit ClasspathToolkit tk = (ClasspathToolkit) getToolkit(); // Circumvent the package-privateness of the AWT internal // java.awt.Component.peer member variable. try { Field peerField = Component.class.getDeclaredField("peer"); AccessCon...
public void addNotify() { // Assume we're using ClasspathToolkit ClasspathToolkit tk = (ClasspathToolkit) getToolkit(); // Circumvent the package-privateness of the AWT internal // java.awt.Component.peer member variable. try { Field peerField = Component.class.getDeclaredField("peer"); AccessCon...
22,965
remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);}
remove(int index){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);}
22,967