bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public int getNativeFD() { return ((DatagramChannelImpl) ch).getNativeFD(); }
public int getNativeFD() { NIODatagramSocket socket = (NIODatagramSocket) ((DatagramChannelImpl) ch).socket(); return socket.getPlainDatagramSocketImpl().getNativeFD(); }
20,642
public String getInputMethodDisplayName(Locale inputLocale, Locale displayLanguage);
String getInputMethodDisplayName(Locale inputLocale, Locale displayLanguage);
20,643
public Image getInputMethodIcon(Locale inputLocale);
Image getInputMethodIcon(Locale inputLocale);
20,644
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); if (Configuration.DEBUG) log.fine("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed Ce...
20,645
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
20,646
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
20,647
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
20,648
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
20,649
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
20,650
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
20,651
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
20,652
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
20,653
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
20,654
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
20,655
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
20,656
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
20,657
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
20,658
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
20,659
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ...
20,660
public synchronized Surface open(FrameBufferConfiguration config) throws UnknownConfigurationException, AlreadyOpenException, DeviceException { if (currentConfig != null) { throw new AlreadyOpenException(); } else if (config.equals(CONFIGS[0])) { try { vga = new VGASurface(this); currentConfig = config; ...
public synchronized Surface open(FrameBufferConfiguration config) throws UnknownConfigurationException, AlreadyOpenException, DeviceException { if (currentConfig != null) { throw new AlreadyOpenException(); } catch (DriverException ex) { throw new DeviceException(ex); } else if (config.equals(CONFIGS[0])) { try ...
20,661
public void updateUI() { setUI((ToolTipUI) UIManager.getUI(this)); revalidate(); repaint(); }
public void updateUI() { setUI((ToolTipUI) UIManager.getUI(this)); revalidate(); repaint(); }
20,662
private void readObject(ObjectInputStream in) throws IOException, NotActiveException, ClassNotFoundException { byte[] buf = (byte[]) in.readObject(); name = new X500DistinguishedName(buf); }
private void readObject(ObjectInputStream in) throws IOException, NotActiveException, ClassNotFoundException { byte[] buf = (byte[]) in.readObject(); parseDer (new ByteArrayInputStream (buf)); }
20,663
private void writeObject(ObjectOutputStream out) throws IOException { out.writeObject(name.getEncoded()); }
private void writeObject(ObjectOutputStream out) throws IOException { if (encoded != null) encodeDer(); out.writeObject (encoded); }
20,664
public boolean shouldScroll(int direction) { int value; if (scrollbar.getOrientation() == HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (thumbRect.contains(currentMouseX, currentMouseY)) return false; if (direction ==...
boolean shouldScroll(int direction) { int value; if (scrollbar.getOrientation() == HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (thumbRect.contains(currentMouseX, currentMouseY)) return false; if (direction == POSITI...
20,667
void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += (scrollbar.getMaximum() - scrollbar.getMinimum()); ...
void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += 16; height = UIManager.getInt("ScrollBar.width"); ...
20,668
void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += (scrollbar.getMaximum() - scrollbar.getMinimum()); ...
void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += (scrollbar.getMaximum() - scrollbar.getMinimum()); ...
20,669
protected void installDefaults() { int orientation = scrollbar.getOrientation(); switch (orientation) { case (JScrollBar.HORIZONTAL): incrButton = createIncreaseButton(EAST); decrButton = createDecreaseButton(WEST); break; default: incrButton = createIncreaseButton(SO...
protected void installDefaults() { int orientation = scrollbar.getOrientation(); switch (orientation) { case (JScrollBar.HORIZONTAL): incrButton = createIncreaseButton(EAST); decrButton = createDecreaseButton(WEST); break; default: incrButton = createIncreaseButton(SO...
20,671
public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) throws NotImplementedException { // XXX Implement. Sun uses undocumented implementation class // sun.java2d.SunComposi...
public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) { // XXX Implement. Sun uses undocumented implementation class // sun.java2d.SunCompositeContext. throw new Error(...
20,672
public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) throws NotImplementedException { // XXX Implement. Sun uses undocumented implementation class // sun.java2d.SunComposi...
public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) throws NotImplementedException { // XXX Implement. Sun uses undocumented implementation class // sun.java2d.SunComposi...
20,673
public static Object instantiate(ClassLoader cl, String beanName) throws IOException, ClassNotFoundException { Object bean; InputStream serStream; if(cl == null) { serStream = ClassLoader.getSystemResourceAsStream(beanName.replace('.','/')+".ser"); } else { serStream = cl.getResourceAsStream(beanName.replace('...
public static Object instantiate(ClassLoader cl, String beanName) throws IOException, ClassNotFoundException { Object bean; InputStream serStream; if(cl == null) { serStream = ClassLoader.getSystemResourceAsStream(beanName.replace('.','/')+".ser"); } else { serStream = cl.getResourceAsStream(beanName.replace('...
20,675
public static Object instantiate(ClassLoader cl, String beanName) throws IOException, ClassNotFoundException { Object bean; InputStream serStream; if(cl == null) { serStream = ClassLoader.getSystemResourceAsStream(beanName.replace('.','/')+".ser"); } else { serStream = cl.getResourceAsStream(beanName.replace('...
public static Object instantiate(ClassLoader cl, String beanName) throws IOException, ClassNotFoundException { Object bean; InputStream serStream; if(cl == null) { serStream = ClassLoader.getSystemResourceAsStream(beanName.replace('.','/')+".ser"); } else { serStream = cl.getResourceAsStream(beanName.replace('...
20,676
public static Object instantiate(ClassLoader cl, String beanName) throws IOException, ClassNotFoundException { Object bean; InputStream serStream; if(cl == null) { serStream = ClassLoader.getSystemResourceAsStream(beanName.replace('.','/')+".ser"); } else { serStream = cl.getResourceAsStream(beanName.replace('...
public static Object instantiate(ClassLoader cl, String beanName) throws IOException, ClassNotFoundException { Object bean; InputStream serStream; if(cl == null) { serStream = ClassLoader.getSystemResourceAsStream(beanName.replace('.','/')+".ser"); } else { serStream = cl.getResourceAsStream(beanName.replace('...
20,677
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
20,678
public TextRenderer getTextRenderer(Font font) { TextRenderer r = (TextRenderer) renderers.get(font); if (r == null) { r = new TTFTextRenderer(getFontData(font), font.getSize()); renderers.put(font, r); } return r; }
public TextRenderer getTextRenderer(Font font) { TextRenderer r = (TextRenderer) renderers.get(font); if (r == null) { r = new TTFTextRenderer(renderCache, getFontData(font), font.getSize()); renderers.put(font, r); } return r; }
20,679
public ThreadOnlyFilter (ThreadId tid) throws InvalidThreadException { if (tid == null | tid.getReference().get () == null) throw new InvalidThreadException (tid.getId ()); _tid = tid; }
public ThreadOnlyFilter (ThreadId tid) throws InvalidThreadException { if (tid.getReference().get () == null) throw new InvalidThreadException (tid.getId ()); _tid = tid; }
20,681
private static final NumberFormat computeInstance (Locale loc, String resource, String def) { ResourceBundle res; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc, ClassLoader.getSystemClassLoader()); } catch (MissingResourceException x) { res...
private static final NumberFormat computeInstance (Locale loc, String resource, String def) { ResourceBundle res; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc, ClassLoader.getSystemClassLoader()); } catch (MissingResourceException x) { res...
20,682
private final void secureSetAccessible(boolean flag) { if (flag && (this instanceof Constructor && ((Constructor) this).getDeclaringClass() == Class.class)) throw new SecurityException("Cannot make object accessible: " + this); this.flag = flag; }
private void secureSetAccessible(boolean flag) { if (flag && (this instanceof Constructor && ((Constructor) this).getDeclaringClass() == Class.class)) throw new SecurityException("Cannot make object accessible: " + this); this.flag = flag; }
20,683
public final Class getCategory() { return PDLOverrideSupported.class; }
public Class getCategory() { return PDLOverrideSupported.class; }
20,684
public final String getName() { return "pdl-override-supported"; }
public String getName() { return "pdl-override-supported"; }
20,685
public int getModifiers() { return vmMethod.getModifiers(); }
public int getModifiers() { return vmMethod.getModifiers(); }
20,686
static StringBuffer toString(int mod, StringBuffer r) { if (isPublic(mod)) r.append("public "); if (isProtected(mod)) r.append("protected "); if (isPrivate(mod)) r.append("private "); if (isAbstract(mod)) r.append("abstract "); if (isStatic(mod)) r.append("static "); if (is...
static StringBuffer toString(int mod, StringBuffer r) { if (isPublic(mod)) r.append("public "); if (isProtected(mod)) r.append("protected "); if (isPrivate(mod)) r.append("private "); if (isAbstract(mod)) r.append("abstract "); if (isStatic(mod)) r.append("static "); if (is...
20,687
public abstract void initialize(AbstractVmClassLoader loader);
public abstract void initialize(VmClassLoader loader);
20,688
public void putValue(String key, Object value) { Object old = getValue(key); if (old != value) { store.put(key, value); firePropertyChange(key, old, value); } }
public void putValue(String key, Object value) { Object old = getValue(key); if (old == null || !old.equals(value)) { store.put(key, value); firePropertyChange(key, old, value); } }
20,689
protected void addMessageComponents(Container container, GridBagConstraints cons, Object msg, int maxll, boolean internallyCreated) { if (msg == null) return; hasCustomComponents = internallyCreated; if (msg instanceof Object[]) ...
protected void addMessageComponents(Container container, GridBagConstraints cons, Object msg, int maxll, boolean internallyCreated) { if (msg == null) return; hasCustomComponents = internallyCreated; if (msg instanceof Object[]) ...
20,690
protected void burstStringInto(Container c, String d, int maxll) { // FIXME: Verify that this is the correct behaviour. // One interpretation of the spec is that this method // should recursively call itself to create (and add) // JLabels to the container if the length of the String d // is greater t...
protected void burstStringInto(Container c, String d, int maxll) { // FIXME: Verify that this is the correct behaviour. // One interpretation of the spec is that this method // should recursively call itself to create (and add) // JLabels to the container if the length of the String d // is greater t...
20,691
final void compare(boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final X86Register reg; reg = prepareForOperation(os, ec, vstack, fpuStack, v2, v1, false); // We need reg to be ST1. ...
final void compare(boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final X86Register reg; reg = prepareForOperation(os, ec, vstack, fpuStack, v2, v1, false); // We need reg to be ST1. ...
20,693
final void compare(boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final X86Register reg; reg = prepareForOperation(os, ec, vstack, fpuStack, v2, v1, false); // We need reg to be ST1. ...
final void compare(boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final X86Register reg; reg = prepareForOperation(os, ec, vstack, fpuStack, v2, v1, false); // We need reg to be ST1. ...
20,694
public final void disableReschedule(boolean claimSchedulerLock, ProcessorLock otherLock) { getTSIAddress().atomicOr(Word.fromIntSignExtend(TSI_BLOCK_SWITCH)); lockCount++; if (claimSchedulerLock) { scheduler.lock(otherLock); } }
public final void disableReschedule(boolean claimSchedulerLock) { getTSIAddress().atomicOr(Word.fromIntSignExtend(TSI_BLOCK_SWITCH)); lockCount++; if (claimSchedulerLock) { scheduler.lock(otherLock); } }
20,695
public final void disableReschedule(boolean claimSchedulerLock, ProcessorLock otherLock) { getTSIAddress().atomicOr(Word.fromIntSignExtend(TSI_BLOCK_SWITCH)); lockCount++; if (claimSchedulerLock) { scheduler.lock(otherLock); } }
public final void disableReschedule(boolean claimSchedulerLock, ProcessorLock otherLock) { getTSIAddress().atomicOr(Word.fromIntSignExtend(TSI_BLOCK_SWITCH)); lockCount++; if (claimSchedulerLock) { scheduler.lock(otherLock); } }
20,696
public final void enableReschedule(boolean releaseSchedulerLock, ProcessorLock otherLock) { if (releaseSchedulerLock) { scheduler.unlock(otherLock); } lockCount--; if (lockCount == 0) { getTSIAddress() .atomicAnd(Word.fromIntSignExtend(~TSI_BLOCK_...
public final void enableReschedule(boolean releaseSchedulerLock) { if (releaseSchedulerLock) { scheduler.unlock(otherLock); } lockCount--; if (lockCount == 0) { getTSIAddress() .atomicAnd(Word.fromIntSignExtend(~TSI_BLOCK_SWITCH)); } }
20,697
public final void enableReschedule(boolean releaseSchedulerLock, ProcessorLock otherLock) { if (releaseSchedulerLock) { scheduler.unlock(otherLock); } lockCount--; if (lockCount == 0) { getTSIAddress() .atomicAnd(Word.fromIntSignExtend(~TSI_BLOCK_...
public final void enableReschedule(boolean releaseSchedulerLock, ProcessorLock otherLock) { if (releaseSchedulerLock) { scheduler.unlock(); } lockCount--; if (lockCount == 0) { getTSIAddress() .atomicAnd(Word.fromIntSignExtend(~TSI_BLOCK_SWITCH));...
20,698
final void reschedule() { // Unsafe.debug("R"); this.nextThread = null; try { // Get the current thread final VmThread current = currentThread; this.nextThread = current; // Process kernel debugger data if (Unsafe.isKdbEnabled()) { ...
final void reschedule() { // Unsafe.debug("R"); this.nextThread = null; try { // Get the current thread final VmThread current = currentThread; this.nextThread = current; // Process kernel debugger data if (Unsafe.isKdbEnabled()) { ...
20,699
final void reschedule() { // Unsafe.debug("R"); this.nextThread = null; try { // Get the current thread final VmThread current = currentThread; this.nextThread = current; // Process kernel debugger data if (Unsafe.isKdbEnabled()) { ...
final void reschedule() { // Unsafe.debug("R"); this.nextThread = null; try { // Get the current thread final VmThread current = currentThread; this.nextThread = current; // Process kernel debugger data if (Unsafe.isKdbEnabled()) { ...
20,700
final void suspend(boolean releaseSchedulerLock, ProcessorLock otherLock) { if (lockCount != 1) { Unsafe.debug("Suspend with invalid lockCount: "); Unsafe.debug(lockCount); architecture.getStackReader().debugStackTrace(); Unsafe.die("suspend"); } fina...
final void suspend(boolean releaseSchedulerLock) { if (lockCount != 1) { Unsafe.debug("Suspend with invalid lockCount: "); Unsafe.debug(lockCount); architecture.getStackReader().debugStackTrace(); Unsafe.die("suspend"); } final VmThread t = this.curre...
20,702
final void suspend(boolean releaseSchedulerLock, ProcessorLock otherLock) { if (lockCount != 1) { Unsafe.debug("Suspend with invalid lockCount: "); Unsafe.debug(lockCount); architecture.getStackReader().debugStackTrace(); Unsafe.die("suspend"); } fina...
final void suspend(boolean releaseSchedulerLock, ProcessorLock otherLock) { if (lockCount != 1) { Unsafe.debug("Suspend with invalid lockCount: "); Unsafe.debug(lockCount); architecture.getStackReader().debugStackTrace(); Unsafe.die("suspend"); } fina...
20,703
final void yield() { threadSwitchIndicator = threadSwitchIndicator.or(Word .fromIntZeroExtend(TSI_SWITCH_NEEDED)); if (threadSwitchIndicator.NE(Word .fromIntZeroExtend(TSI_SWITCH_REQUESTED))) { Unsafe.debug("Yield with invalid tsi: " + threadSwitchIndicator); ...
final void yield(boolean ignorePriority) { final VmThread t = this.currentThread; t.setYieldingState(); scheduler.addToReadyQueue(t, ignorePriority, "proc.yield"); threadSwitchIndicator = threadSwitchIndicator.or(Word .fromIntZeroExtend(TSI_SWITCH_NEEDED)); if (threadSwitchIndicator.NE(...
20,704
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp, i; i = 0; for( xp = x; xp < ( x + w); xp++ ) for( yp = y; yp < (y + h); yp++ ) { pixels[i] = filterRGB( xp, yp, pixels[i] ); i++; } }
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp, i; i = 0; for( xp = x; xp < ( x + w); xp++ ) for( yp = y; yp < (y + h); yp++ ) { pixels[i] = filterRGB( xp, yp, pixels[i] ); i++; } }
20,706
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp, i; i = 0; for( xp = x; xp < ( x + w); xp++ ) for( yp = y; yp < (y + h); yp++ ) { pixels[i] = filterRGB( xp, yp, pixels[i] ); i++; } }
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp, i; i = 0; for( xp = x; xp < ( x + w); xp++ ) for( yp = y; yp < (y + h); yp++ ) { pixels[i] = filterRGB( xp, yp, pixels[i] ); i++; } }
20,707
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp, i; i = 0; for( xp = x; xp < ( x + w); xp++ ) for( yp = y; yp < (y + h); yp++ ) { pixels[i] = filterRGB( xp, yp, pixels[i] ); i++; } }
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp, i; i = 0; for( xp = x; xp < ( x + w); xp++ ) for( yp = y; yp < (y + h); yp++ ) { pixels[i] = filterRGB( xp, yp, pixels[i] ); i++; } }
20,708
public Dimension getPreferredSize() { return super.getPreferredSize(); }
public Dimension getPreferredSize() { Dimension pref = super.getPreferredSize(); if (getScrollableTracksViewportWidth()) pref.width = getUI().getMinimumSize(this).width; if (getScrollableTracksViewportHeight()) pref.height = getUI().getMinimumSize(this).height; return pref; }
20,709
public boolean getScrollableTracksViewportHeight() { /* Container parent = getParent(); return (parent instanceof JViewport && parent.isValid());*/ return isValid(); }
public boolean getScrollableTracksViewportHeight() { /* Container parent = getParent(); return (parent instanceof JViewport && parent.isValid());*/ Container parent = getParent(); return parent instanceof JViewport && parent.getHeight() > getUI().getMinimumSize(this).height; }
20,710
public boolean getScrollableTracksViewportWidth() { /*Container parent = getParent(); return (parent instanceof JViewport && parent.isValid());*/ return isValid(); }
public boolean getScrollableTracksViewportWidth() { /*Container parent = getParent(); return (parent instanceof JViewport && parent.isValid());*/ Container parent = getParent(); return parent != null && parent instanceof JViewport && parent.getWidth() > getUI().getMinimumSize(this).width; }
20,711
public void setText(String t) { try { // Remove the current content. Document doc = getDocument(); doc.remove(0, doc.getLength()); if (t == null || t == "") return; // Let the EditorKit read the text into the Document. getEditorKit().read(new StringReader(t), doc...
public void setText(String t) { try { // Remove the current content. Document doc = getDocument(); doc.remove(0, doc.getLength()); if (t == null || t.equals("")) return; // Let the EditorKit read the text into the Document. getEditorKit().read(new StringReader(t)...
20,712
public AccessibleJTabbedPane(JTabbedPane c) { super(c); }
public AccessibleJTabbedPane() { super(c); }
20,713
public AccessibleJTabbedPane(JTabbedPane c) { super(c); }
public AccessibleJTabbedPane(JTabbedPane c) { super(); }
20,714
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJTabbedPane(this); return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJTabbedPane(); return accessibleContext; }
20,716
public Object nextElement() { ZipEntry zip = (ZipEntry) entries.nextElement(); JarEntry jar = new JarEntry(zip); Manifest manifest; try { manifest = jarfile.getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jar.attr = manifest.getAttributes(ja...
public Object nextElement() { ZipEntry zip = (ZipEntry) entries.nextElement(); JarEntry jar = new JarEntry(zip); Manifest manifest; try { manifest = jarfile.getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jar.attr = manifest.getAttributes(ja...
20,718
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) { Rectangle r0 = null; Rectangle r1 = null; Rectangle rect = bounds.getBounds(); try { r0 = c.modelToView(p0); r1 = c.modelToView(p1); } catch (BadLocationException e) { // This should...
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent t) { Rectangle r0 = null; Rectangle r1 = null; Rectangle rect = bounds.getBounds(); try { r0 = c.modelToView(p0); r1 = c.modelToView(p1); } catch (BadLocationException e) { // This should...
20,719
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) { Rectangle r0 = null; Rectangle r1 = null; Rectangle rect = bounds.getBounds(); try { r0 = c.modelToView(p0); r1 = c.modelToView(p1); } catch (BadLocationException e) { // This should...
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) { Rectangle r0 = null; Rectangle r1 = null; Rectangle rect = bounds.getBounds(); try { r0 = c.modelToView(p0); r1 = c.modelToView(p1); } catch (BadLocationException e) { // This should...
20,720
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) { Rectangle r0 = null; Rectangle r1 = null; Rectangle rect = bounds.getBounds(); try { r0 = c.modelToView(p0); r1 = c.modelToView(p1); } catch (BadLocationException e) { // This should...
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) { Rectangle r0 = null; Rectangle r1 = null; Rectangle rect = bounds.getBounds(); try { r0 = c.modelToView(p0); r1 = c.modelToView(p1); } catch (BadLocationException e) { // This should...
20,721
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) { Rectangle r0 = null; Rectangle r1 = null; Rectangle rect = bounds.getBounds(); try { r0 = c.modelToView(p0); r1 = c.modelToView(p1); } catch (BadLocationException e) { // This should...
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) { Rectangle r0 = null; Rectangle r1 = null; Rectangle rect = bounds.getBounds(); try { r0 = c.modelToView(p0); r1 = c.modelToView(p1); } catch (BadLocationException e) { // This should...
20,722
protected byte[] padBuffer() { // pad out to 118 mod 128. other 10 bytes have special use. int n = (int) (count % BLOCK_SIZE); int padding = (n < 118) ? (118 - n) : (246 - n); byte[] result = new byte[padding + 10]; result[0] = (byte) 0x01; // save the version number (LSB 3), the number of rounds ...
protected byte[] padBuffer() { // pad out to 118 mod 128. other 10 bytes have special use. int n = (int) (count % BLOCK_SIZE); int padding = (n < 118) ? (118 - n) : (246 - n); byte[] result = new byte[padding + 10]; result[0] = (byte) 0x01; // save the version number (LSB 3), the number of rounds ...
20,723
public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new Haval().digest()))); } return valid.booleanValue(); }
public boolean selfTest() { if (valid == null) { String d = Util.toString(new Haval().digest()); valid = Boolean.valueOf(DIGEST0.equals(d)); } return valid.booleanValue(); }
20,724
protected synchronized void transform(byte[] in, int i) { int X0 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X1 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X2 = (in[i++] & 0xFF...
protected synchronized void transform(byte[] in, int i) { int X0 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X1 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X2 = (in[i++] & 0xFF...
20,725
protected synchronized void transform(byte[] in, int i) { int X0 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X1 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X2 = (in[i++] & 0xFF...
protected synchronized void transform(byte[] in, int i) { int X0 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X1 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X2 = (in[i++] & 0xFF...
20,726
public MarshalledObject(Object obj) throws java.io.IOException { ByteArrayOutputStream objStream = new ByteArrayOutputStream(); RMIMarshalledObjectOutputStream stream = new RMIMarshalledObjectOutputStream(objStream); stream.writeObject(obj); stream.flush(); objBytes = objStream.toByteArray(); locBy...
public MarshalledObject(Object obj) throws IOException { ByteArrayOutputStream objStream = new ByteArrayOutputStream(); RMIMarshalledObjectOutputStream stream = new RMIMarshalledObjectOutputStream(objStream); stream.writeObject(obj); stream.flush(); objBytes = objStream.toByteArray(); locBytes = st...
20,727
public static Class getCallingClass() { Class[] ctx = getClassContext(); if (ctx.length < 3) return null; return ctx[2]; }
public static Class getCallingClass() { Class[] ctx = getClassContext(); if (ctx.length < 5) return null; return ctx[2]; }
20,728
public static Class getCallingClass() { Class[] ctx = getClassContext(); if (ctx.length < 3) return null; return ctx[2]; }
public static Class getCallingClass() { Class[] ctx = getClassContext(); if (ctx.length < 3) return null; return ctx[4]; }
20,729
protected Object parse(String number) throws AssemblyException { if (number.equals("true")) return new Boolean(true); if (number.equals("false")) return new Boolean(false); throw new AssemblyException(new IllegalArgumentException("Element contained no valid boolean value.")); }
protected Object parse(String number) throws AssemblyException { if (number.equals("true")) return Boolean.TRUE; if (number.equals("false")) return new Boolean(false); throw new AssemblyException(new IllegalArgumentException("Element contained no valid boolean value.")); }
20,730
protected Object parse(String number) throws AssemblyException { if (number.equals("true")) return new Boolean(true); if (number.equals("false")) return new Boolean(false); throw new AssemblyException(new IllegalArgumentException("Element contained no valid boolean value.")); }
protected Object parse(String number) throws AssemblyException { if (number.equals("true")) return new Boolean(true); if (number.equals("false")) return Boolean.FALSE; throw new AssemblyException(new IllegalArgumentException("Element contained no valid boolean value.")); }
20,731
public abstract Context create_child(String parm1);
public abstract Context create_child(String child);
20,732
public Object clone() throws CloneNotSupportedException { return null; // TODO }
public Object clone() throws CloneNotSupportedException, NotImplementedException { return null; // TODO }
20,733
public TreeSelectionEvent(Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath) { super(source);//TODO this.paths = new TreePath[1]{path};//TODO this.areNew = new boolean[1]{isNew}; this.oldLeadSelectionPath = oldLeadSelectionPath; this.newLeadSel...
public TreeSelectionEvent(Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath) { super(source);//TODO this.paths = new TreePath[1]{path};//TODO this.areNew = new boolean[1]{isNew}; this.oldLeadSelectionPath = oldLeadSelectionPath; this.newLeadSel...
20,741
public BufferedImage filter(BufferedImage src, BufferedImage dst) { // TODO Make sure premultiplied alpha is handled correctly. // TODO See that color conversion is handled. // TODO figure out how to use rendering hints. if (scale.length != offsets.length) throw new IllegalArgumentException(); Co...
public final BufferedImage filter(BufferedImage src, BufferedImage dst) { // TODO Make sure premultiplied alpha is handled correctly. // TODO See that color conversion is handled. // TODO figure out how to use rendering hints. if (scale.length != offsets.length) throw new IllegalArgumentException();...
20,743
public Point2D getPoint2D(Point2D src, Point2D dst) { if (dst == null) dst = (Point2D) src.clone(); else dst.setLocation(src); return dst; }
public final Point2D getPoint2D(Point2D src, Point2D dst) { if (dst == null) dst = (Point2D) src.clone(); else dst.setLocation(src); return dst; }
20,744
private synchronized static long allocateSeqNum() { lastSeqNum += 1; return lastSeqNum; }
private static synchronized long allocateSeqNum() { lastSeqNum += 1; return lastSeqNum; }
20,745
public void setMaximumFractionDigits (int newValue) { maximumFractionDigits = newValue; if (getMinimumFractionDigits () > maximumFractionDigits) setMinimumFractionDigits (maximumFractionDigits); }
public void setMaximumFractionDigits (int digits) { maximumFractionDigits = newValue; if (getMinimumFractionDigits () > maximumFractionDigits) setMinimumFractionDigits (maximumFractionDigits); }
20,746
public void setMaximumFractionDigits (int newValue) { maximumFractionDigits = newValue; if (getMinimumFractionDigits () > maximumFractionDigits) setMinimumFractionDigits (maximumFractionDigits); }
public void setMaximumFractionDigits (int newValue) { maximumFractionDigits = digits; if (getMinimumFractionDigits () > maximumFractionDigits) setMinimumFractionDigits (maximumFractionDigits); }
20,747
public void setMaximumIntegerDigits (int newValue) { maximumIntegerDigits = newValue; if (getMinimumIntegerDigits () > maximumIntegerDigits) setMinimumIntegerDigits (maximumIntegerDigits); }
public void setMaximumIntegerDigits (int digits) { maximumIntegerDigits = newValue; if (getMinimumIntegerDigits () > maximumIntegerDigits) setMinimumIntegerDigits (maximumIntegerDigits); }
20,748
public void setMaximumIntegerDigits (int newValue) { maximumIntegerDigits = newValue; if (getMinimumIntegerDigits () > maximumIntegerDigits) setMinimumIntegerDigits (maximumIntegerDigits); }
public void setMaximumIntegerDigits (int newValue) { maximumIntegerDigits = digits; if (getMinimumIntegerDigits () > maximumIntegerDigits) setMinimumIntegerDigits (maximumIntegerDigits); }
20,749
public void setMinimumFractionDigits (int newValue) { minimumFractionDigits = newValue; if (getMaximumFractionDigits () < minimumFractionDigits) setMaximumFractionDigits (minimumFractionDigits); }
public void setMinimumFractionDigits (int digits) { minimumFractionDigits = newValue; if (getMaximumFractionDigits () < minimumFractionDigits) setMaximumFractionDigits (minimumFractionDigits); }
20,750
public void setMinimumFractionDigits (int newValue) { minimumFractionDigits = newValue; if (getMaximumFractionDigits () < minimumFractionDigits) setMaximumFractionDigits (minimumFractionDigits); }
public void setMinimumFractionDigits (int newValue) { minimumFractionDigits = digits; if (getMaximumFractionDigits () < minimumFractionDigits) setMaximumFractionDigits (minimumFractionDigits); }
20,751
public void setMinimumIntegerDigits (int newValue) { minimumIntegerDigits = newValue; if (getMaximumIntegerDigits () < minimumIntegerDigits) setMaximumIntegerDigits (minimumIntegerDigits); }
public void setMinimumIntegerDigits (int digits) { minimumIntegerDigits = newValue; if (getMaximumIntegerDigits () < minimumIntegerDigits) setMaximumIntegerDigits (minimumIntegerDigits); }
20,752
public void setMinimumIntegerDigits (int newValue) { minimumIntegerDigits = newValue; if (getMaximumIntegerDigits () < minimumIntegerDigits) setMaximumIntegerDigits (minimumIntegerDigits); }
public void setMinimumIntegerDigits (int newValue) { minimumIntegerDigits = digits; if (getMaximumIntegerDigits () < minimumIntegerDigits) setMaximumIntegerDigits (minimumIntegerDigits); }
20,753
public void setSelectedColor (Color color) { this.selectedColor = color; }
public void setSelectedColor(Color color) { if (color == null) throw new Error("ColorSelectionModel cannot be set to have null color."); if (color != selectedColor) { this.selectedColor = color; }
20,755
public DynAny copy() { try { gnuDynUnion other = new gnuDynUnion(official_type, final_type, factory, orb); other.discriminator = discriminator.copy(); ((abstractDynAny) other.discriminator).listener = other; if (array.length == 1) { other.array = new D...
public DynAny copy() { try { gnuDynUnion other = new gnuDynUnion(official_type, final_type, factory, orb); other.discriminator = discriminator.copy(); ((AbstractAny) other.discriminator).listener = other; if (array.length == 1) { other.array = new DynA...
20,758
public gnuDynUnion(TypeCode oType, TypeCode aType, gnuDynAnyFactory aFactory, ORB anOrb ) throws InconsistentTypeCode { super(oType, aType, aFactory, anOrb); try { discriminator = factory.create_dyn_any_from_type_code(final_type.discrimin...
public gnuDynUnion(TypeCode oType, TypeCode aType, gnuDynAnyFactory aFactory, ORB anOrb ) throws InconsistentTypeCode { super(oType, aType, aFactory, anOrb); try { discriminator = factory.create_dyn_any_from_type_code(final_type.discrimin...
20,759
public InconsistentTypeCode(String why) { super(why); }
public InconsistentTypeCode() { super(why); }
20,760
public InconsistentTypeCode(String why) { super(why); }
public InconsistentTypeCode(String why) { }
20,761
public static ComponentUI createUI(final JComponent c) { return new BasicToggleButtonUI(); }
public static ComponentUI createUI(final JComponent component) { return new BasicToggleButtonUI(); }
20,762