bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
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(); } } } | 36,568 |
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(); } } | 36,569 |
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(); } } | 36,570 |
public Scrollbar() { this(VERTICAL); } | public Scrollbar() { this(VERTICAL); } | 36,571 |
public Scrollbar() { this(VERTICAL); } | public Scrollbar() { this(VERTICAL); } | 36,572 |
public synchronized void addAdjustmentListener(AdjustmentListener listener) { adjustment_listeners = AWTEventMulticaster.add(adjustment_listeners, listener); enableEvents(AWTEvent.ADJUSTMENT_EVENT_MASK); } | public synchronized void addAdjustmentListener(AdjustmentListener listener) { adjustment_listeners = AWTEventMulticaster.add(adjustment_listeners, listener); enableEvents(AWTEvent.ADJUSTMENT_EVENT_MASK); } | 36,573 |
public synchronized void addAdjustmentListener(AdjustmentListener listener) { adjustment_listeners = AWTEventMulticaster.add(adjustment_listeners, listener); enableEvents(AWTEvent.ADJUSTMENT_EVENT_MASK); } | public synchronized void addAdjustmentListener(AdjustmentListener listener) { adjustment_listeners = AWTEventMulticaster.add(adjustment_listeners, listener); enableEvents(AWTEvent.ADJUSTMENT_EVENT_MASK); } | 36,574 |
public synchronized void addNotify() { if (peer == null) peer = getToolkit().createScrollbar(this); super.addNotify(); } | public synchronized void addNotify() { if (peer == null) peer = getToolkit().createScrollbar(this); super.addNotify(); } | 36,575 |
public synchronized void addNotify() { if (peer == null) peer = getToolkit().createScrollbar(this); super.addNotify(); } | public synchronized void addNotify() { if (peer == null) peer = getToolkit().createScrollbar(this); super.addNotify(); } | 36,576 |
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); } | 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); } | 36,577 |
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); } | 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); } | 36,578 |
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); } | 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); } | 36,579 |
public int getBlockIncrement() { return (pageIncrement); } | public int getBlockIncrement() { return (pageIncrement); } | 36,580 |
public int getLineIncrement() { return (lineIncrement); } | public int getLineIncrement() { return (lineIncrement); } | 36,581 |
public int getMaximum() { return (maximum); } | public int getMaximum() { return (maximum); } | 36,582 |
public int getMinimum() { return (minimum); } | public int getMinimum() { return (minimum); } | 36,583 |
public int getOrientation() { return (orientation); } | public int getOrientation() { return (orientation); } | 36,584 |
public int getPageIncrement() { return (pageIncrement); } | public int getPageIncrement() { return (pageIncrement); } | 36,585 |
public int getUnitIncrement() { return (lineIncrement); } | public int getUnitIncrement() { return (lineIncrement); } | 36,586 |
public int getValue() { return (value); } | public int getValue() { return (value); } | 36,587 |
public int getVisible() { return (getVisibleAmount()); } | public int getVisible() { return (getVisibleAmount()); } | 36,588 |
public int getVisibleAmount() { return (visibleAmount); } | public int getVisibleAmount() { return (visibleAmount); } | 36,589 |
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... | 36,590 |
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... | 36,591 |
protected void processAdjustmentEvent(AdjustmentEvent event) { if (adjustment_listeners != null) adjustment_listeners.adjustmentValueChanged(event); } | protected void processAdjustmentEvent(AdjustmentEvent event) { if (adjustment_listeners != null) adjustment_listeners.adjustmentValueChanged(event); } | 36,592 |
protected void processAdjustmentEvent(AdjustmentEvent event) { if (adjustment_listeners != null) adjustment_listeners.adjustmentValueChanged(event); } | protected void processAdjustmentEvent(AdjustmentEvent event) { if (adjustment_listeners != null) adjustment_listeners.adjustmentValueChanged(event); } | 36,593 |
protected void processEvent(AWTEvent event) { if (event instanceof AdjustmentEvent) processAdjustmentEvent((AdjustmentEvent) event); else super.processEvent(event); } | protected void processEvent(AWTEvent event) { if (event instanceof AdjustmentEvent) processAdjustmentEvent((AdjustmentEvent) event); else super.processEvent(event); } | 36,594 |
protected void processEvent(AWTEvent event) { if (event instanceof AdjustmentEvent) processAdjustmentEvent((AdjustmentEvent) event); else super.processEvent(event); } | protected void processEvent(AWTEvent event) { if (event instanceof AdjustmentEvent) processAdjustmentEvent((AdjustmentEvent) event); else super.processEvent(event); } | 36,595 |
protected void processEvent(AWTEvent event) { if (event instanceof AdjustmentEvent) processAdjustmentEvent((AdjustmentEvent) event); else super.processEvent(event); } | protected void processEvent(AWTEvent event) { if (event instanceof AdjustmentEvent) processAdjustmentEvent((AdjustmentEvent) event); else super.processEvent(event); } | 36,596 |
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); } | 36,597 |
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... | 36,598 |
public void setLineIncrement(int lineIncrement) { setUnitIncrement(lineIncrement); } | public void setLineIncrement(int lineIncrement) { setUnitIncrement(lineIncrement); } | 36,599 |
public void setMaximum(int maximum) { setValues(value, visibleAmount, minimum, maximum); } | public void setMaximum(int maximum) { setValues(value, visibleAmount, minimum, maximum); } | 36,601 |
public void setMaximum(int maximum) { setValues(value, visibleAmount, minimum, maximum); } | public void setMaximum(int maximum) { setValues(value, visibleAmount, minimum, maximum); } | 36,602 |
public void setMinimum(int minimum) { setValues(value, visibleAmount, minimum, maximum); } | public void setMinimum(int minimum) { setValues(value, visibleAmount, minimum, maximum); } | 36,603 |
public void setMinimum(int minimum) { setValues(value, visibleAmount, minimum, maximum); } | public void setMinimum(int minimum) { setValues(value, visibleAmount, minimum, maximum); } | 36,604 |
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; } | 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; } | 36,605 |
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; } | 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; } | 36,606 |
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; } | 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; } | 36,607 |
public void setPageIncrement(int pageIncrement) { setBlockIncrement(pageIncrement); } | public void setPageIncrement(int pageIncrement) { setBlockIncrement(pageIncrement); } | 36,608 |
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 == ... | 36,610 |
public void setValue(int value) { setValues(value, visibleAmount, minimum, maximum); } | public void setValue(int value) { setValues(value, visibleAmount, minimum, maximum); } | 36,611 |
public void setValue(int value) { setValues(value, visibleAmount, minimum, maximum); } | public void setValue(int value) { setValues(value, visibleAmount, minimum, maximum); } | 36,612 |
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... | 36,613 |
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... | 36,614 |
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... | 36,615 |
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... | 36,616 |
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... | 36,617 |
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... | 36,618 |
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... | 36,619 |
public void setVisibleAmount(int visibleAmount) { setValues(value, visibleAmount, minimum, maximum); } | public void setVisibleAmount(int visibleAmount) { setValues(value, visibleAmount, minimum, maximum); } | 36,621 |
public void setVisibleAmount(int visibleAmount) { setValues(value, visibleAmount, minimum, maximum); } | public void setVisibleAmount(int visibleAmount) { setValues(value, visibleAmount, minimum, maximum); } | 36,622 |
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.info("BestConfig:" + config); // Calculate new configuration final DisplayMode mode = config.getDisplayMode(); final int width = mode.getW... | 36,625 |
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 =... | 36,626 |
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... | 36,627 |
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... | 36,628 |
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... | 36,630 |
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... | 36,631 |
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... | 36,632 |
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) {int h = (rowHeight + rowMargin); int delta = h * direction; // FIXME: I don't exactly know what sun does here. in both cases theyint h = (rowHeight + rowMargin); int delta = h * direction; // pick values which do *not* si... | 36,633 |
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... | 36,634 |
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... | 36,635 |
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... | 36,637 |
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... | 36,639 |
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... | 36,640 |
remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);} | remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);} | 36,642 |
remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);} | remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);} | 36,643 |
remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);} | remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);} | 36,644 |
public AccessibleRole getAccessibleRole() { return null; } | public AccessibleRole getAccessibleRole() { return AccessibleRole.SLIDER; } | 36,646 |
public AccessibleStateSet getAccessibleStateSet() { return null; } | public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet result = super.getAccessibleStateSet(); if (orientation == JSlider.HORIZONTAL) result.add(AccessibleState.HORIZONTAL); else if (orientation == JSlider.VERTICAL) result.add(AccessibleState.VERTICAL); return result; } | 36,647 |
public AccessibleValue getAccessibleValue() { return null; } | public AccessibleValue getAccessibleValue() { return this; } | 36,648 |
public Number getCurrentAccessibleValue() { return null; } | public Number getCurrentAccessibleValue() { return new Integer(getValue()); } | 36,649 |
public Number getMaximumAccessibleValue() { return null; } | public Number getMaximumAccessibleValue() { return new Integer(getMaximum()); } | 36,650 |
public Number getMinimumAccessibleValue() { return null; } | public Number getMinimumAccessibleValue() { return new Integer(getMinimum()); } | 36,651 |
public boolean setCurrentAccessibleValue(Number value0) { return false; } | public boolean setCurrentAccessibleValue(Number value) { return false; } | 36,652 |
public static String getProperty(String key) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("getProperty." + key); return secprops.getProperty(key); } | public static String getProperty(String key) { SecurityManager sm = System.getSecurityManager(); if (sm != null && VMStackWalker.getCallingClassLoader() != null) sm.checkSecurityAccess("getProperty." + key); return secprops.getProperty(key); } | 36,654 |
private static boolean loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return false; boolean result = true; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); ... | private static boolean loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return false; boolean result = true; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); ... | 36,656 |
public MetalLookAndFeel() { } | public MetalLookAndFeel() { } | 36,657 |
public String getDescription() { return "Metal look and feel"; } | public String getDescription() { return "Metal look and feel"; } | 36,658 |
public String getID() { return "MetalLookAndFeel"; } | public String getID() { return "MetalLookAndFeel"; } | 36,659 |
public String getName() { return "MetalLookAndFeel"; } | public String getName() { return "MetalLookAndFeel"; } | 36,660 |
public boolean isNativeLookAndFeel() { return true; } | public boolean isNativeLookAndFeel() { return true; } | 36,661 |
public boolean isSupportedLookAndFeel() { return true; } | public boolean isSupportedLookAndFeel() { return true; } | 36,662 |
private RefItem(int kind, Register reg, VmConstString val, int offsetToFP) { super(kind, reg, offsetToFP); this.value = val; } | private RefItem(int kind, Register reg, VmConstString val, int offsetToFP) { super(kind, reg, offsetToFP); this.value = val; } | 36,663 |
static RefItem createConst(VmConstString value) { return new RefItem(Kind.CONSTANT, null, value, 0); } | static RefItem createConst(VmConstString value) { return new RefItem(Kind.CONSTANT, null, value, 0); } | 36,664 |
static RefItem createLocal(int offsetToFP) { return new RefItem(Kind.LOCAL, null, null, offsetToFP); } | static RefItem createLocal(int offsetToFP) { return new RefItem(Kind.LOCAL, null, null, offsetToFP); } | 36,665 |
static RefItem createRegister(Register reg) { return new RefItem(Kind.REGISTER, reg, null, 0); } | static RefItem createRegister(Register reg) { return new RefItem(Kind.REGISTER, reg, null, 0); } | 36,666 |
static RefItem createStack() { return new RefItem(Kind.STACK, null, null, 0); } | static RefItem createStack() { return new RefItem(Kind.STACK, null, null, 0); } | 36,667 |
int getType() { return JvmType.REFERENCE; } | int getType() { return JvmType.REFERENCE; } | 36,668 |
VmConstString getValue() { assertCondition(getKind() == Kind.CONSTANT, "kind == Kind.CONSTANT"); return value; } | VmConstString getValue() { assertCondition(getKind() == Kind.CONSTANT, "kind == Kind.CONSTANT"); return value; } | 36,669 |
protected void loadToConstant(EmitterContext ec, AbstractX86Stream os, Register reg) { if (value == null) { os.writeMOV_Const(reg, value); } else { X86CompilerHelper helper = ec.getHelper(); Label l = new Label(Long.toString(labelCounter++)); helper.writeGet... | protected void loadToConstant(EmitterContext ec, AbstractX86Stream os, Register reg) { if (value == null) { os.writeMOV_Const(reg, value); } else { X86CompilerHelper helper = ec.getHelper(); Label l = new Label(Long.toString(labelCounter++)); helper.writeGet... | 36,670 |
protected void popFromFPU(AbstractX86Stream os, Register reg, int disp) { notImplemented(); } | protected void popFromFPU(AbstractX86Stream os, Register reg, int disp) { notImplemented(); } | 36,671 |
protected void pushConstant(EmitterContext ec, AbstractX86Stream os) { if (value == null) { os.writePUSH_Const(null); } else { X86CompilerHelper helper = ec.getHelper(); Label l = new Label(Long.toString(labelCounter++)); helper.writePushStaticsEntry(l, valu... | protected void pushConstant(EmitterContext ec, AbstractX86Stream os) { if (value == null) { os.writePUSH_Const(null); } else { X86CompilerHelper helper = ec.getHelper(); Label l = new Label(Long.toString(labelCounter++)); helper.writePushStaticsEntry(l, valu... | 36,672 |
protected void pushToFPU(AbstractX86Stream os, Register reg, int disp) { notImplemented(); } | protected void pushToFPU(AbstractX86Stream os, Register reg, int disp) { notImplemented(); } | 36,673 |
public Set<Map.Entry<K, V>> entrySet() { if (entries == null) { entries = new AbstractSet<Map.Entry<K, V>>() { public int size() { return cardinality; } public Iterator<Map.Entry<K, V>> iterator() { return new Iterator<Map.Entry<K, V>>() { int count = 0; int index = -1; ... | public Set<Map.Entry<K, V>> entrySet() { if (entries == null) { entries = new AbstractSet<Map.Entry<K, V>>() { public int size() { return cardinality; } public Iterator<Map.Entry<K, V>> iterator() { return new Iterator<Map.Entry<K, V>>() { int count = 0; int index = -1; ... | 36,682 |
public Iterator<Map.Entry<K, V>> iterator() { return new Iterator<Map.Entry<K, V>>() { int count = 0; int index = -1; public boolean hasNext() { return count < cardinality; } public Map.Entry<K,V> next() { ++count; for (++index; store[index] == emptySlot; ++inde... | public Iterator<Map.Entry<K, V>> iterator() { return new Iterator<Map.Entry<K, V>>() { int count = 0; int index = -1; public boolean hasNext() { return count < cardinality; } public Map.Entry<K,V> next() { ++count; for (++index; store[index] == emptySlot; ++inde... | 36,683 |
public Map.Entry<K,V> next() { ++count; for (++index; store[index] == emptySlot; ++index) ; // FIXME: we could just return something that // only knows the index. That would be cleaner. return new AbstractMap.BasicMapEntry<K, V>(enumClass.getEnumConstants()[index], store[index]) { pub... | public Map.Entry<K,V> next() { ++count; for (++index; store[index] == emptySlot; ++index) ; // FIXME: we could just return something that // only knows the index. That would be cleaner. return new AbstractMap.BasicMapEntry<K, V>(enumClass.getEnumConstants()[index], store[index]) { pub... | 36,684 |
protected void doResolveMember(AbstractVmClassLoader clc) { VmType vmClass = getConstClass().getResolvedVmClass(); vmResolvedField = vmClass.getField(getName()); if (vmResolvedField == null) { throw new NoSuchFieldError(toString() + " in class " + getClassName()); } } | protected void doResolveMember(AbstractVmClassLoader clc) { VmType vmClass = getConstClass().getResolvedVmClass(); vmResolvedField = vmClass.getField(getName()); if (vmResolvedField == null) { throw new NoSuchFieldError(toString() + " in class " + getClassName()); } } | 36,685 |
private void writeRoot() throws BackingStoreException, IOException { bw.write(" <root type=\""); if (prefs.isUserNode()) { bw.write("user"); } else { bw.write("system"); } bw.write("\"/>"); writeRootMap(); writeNode(); bw.write(" </root... | private void writeRoot() throws BackingStoreException, IOException { bw.write(" <root type=\""); if (prefs.isUserNode()) { bw.write("user"); } else { bw.write("system"); } bw.write("\">"); writeRootMap(); writeNode(); bw.write(" </root>... | 36,686 |
private void postEvent(int id, long time, int modifiers, int keyCode, char keyChar) { JNodeToolkit tk = (JNodeToolkit) JNodeToolkit.getDefaultToolkit(); Component source = tk.getFocusHandler().getFocusedComponent(); if (source == null) source = tk.getTop(); KeyEvent me = new KeyEvent(sou... | private void postEvent(int id, long time, int modifiers, int keyCode, char keyChar) { RawJNodeToolkit tk = (RawJNodeToolkit) RawJNodeToolkit.getDefaultToolkit(); Component source = tk.getFocusHandler().getFocusedComponent(); if (source == null) source = tk.getTop(); KeyEvent me = new Key... | 36,687 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.