bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void setSeconds(int seconds) { this.sec = seconds; invalidate(); }
public void setSeconds(int seconds) { this.sec = seconds; invalidate(); }
20,403
public void setTime(long millis) { this.millis = millis; valid = false; mvalid = true; }
public void setTime(long millis) { this.millis = millis; valid = false; mvalid = true; }
20,404
public void setYear(int year) { this.year = year; invalidate(); }
public void setYear(int year) { this.year = year; invalidate(); }
20,405
public String toGMTString() { if (!isGMT) { Date d = new Date(this.millis); d.isGMT = true; return d.toGMTString(); } refresh_components(); return (date) + " " + months[month] + " " + (1900 + year) + " " + fixed_int(hrs) + ":" + fixed_int(min) + ":" + fixed_int(sec) + " " + "GMT"; }
public String toGMTString() { if (!isGMT) { Date d = new Date(this.millis); d.isGMT = true; return d.toGMTString(); } refresh_components(); return (date) + " " + months[month] + " " + (1900 + year) + " " + fixed_int(hrs) + ":" + fixed_int(min) + ":" + fixed_int(sec) + " " + "GMT"; }
20,406
public String toLocaleString() { return toString(); }
public String toLocaleString() { return toString(); }
20,407
public Label(String text) { this(text, LEFT); }
public Label(String text) { this(text, LEFT); }
20,408
public List(int rows, boolean multipleMode) { this.rows = rows; this.multipleMode = multipleMode; if (GraphicsEnvironment.isHeadless()) throw new HeadlessException(); }
public List(int rows, boolean multipleMode) { this.rows = rows; this.multipleMode = multipleMode; if (GraphicsEnvironment.isHeadless()) throw new HeadlessException(); }
20,409
public void add(String item) { add(item, -1); }
public void add(String item) { add(item, -1); }
20,410
public synchronized void select(int index) { ListPeer lp = (ListPeer) getPeer(); if (lp != null) lp.select(index); }
public synchronized void select(int index) { ListPeer lp = (ListPeer) getPeer(); if (lp != null) lp.select(index); }
20,411
public synchronized int[] getSelectedIndexes() { if (peer != null) { ListPeer l = (ListPeer) peer; selected = l.getSelectedIndexes(); } return selected; }
public synchronized int[] getSelectedIndexes() { if (peer != null) { ListPeer l = (ListPeer) peer; selected = l.getSelectedIndexes(); } return selected; }
20,412
public synchronized int getSelectedIndex() { if (peer != null) { ListPeer l = (ListPeer) peer; selected = l.getSelectedIndexes(); } if (selected == null || selected.length > 1) return -1; return selected[0]; }
public synchronized int getSelectedIndex() { if (peer != null) { ListPeer l = (ListPeer) peer; selected = l.getSelectedIndexes(); } if (selected == null || selected.length > 1) return -1; return selected[0]; }
20,413
public synchronized int getSelectedIndex() { if (peer != null) { ListPeer l = (ListPeer) peer; selected = l.getSelectedIndexes(); } if (selected == null || selected.length > 1) return -1; return selected[0]; }
public synchronized int getSelectedIndex() { if (peer != null) { ListPeer l = (ListPeer) peer; selected = l.getSelectedIndexes(); } if (selected == null || selected.length != 1) return -1; return selected[0]; }
20,414
public String getDisplayLanguage(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("languages."...
public String getDisplayLanguage(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("languages."...
20,415
public String getDisplayCountry(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("terri...
public String getDisplayCountry() { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("territories." + coun...
20,416
public String getDisplayCountry(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("terri...
public String getDisplayCountry(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("terri...
20,417
public String getDisplayVariant(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("varia...
public String getDisplayVariant() { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("variants." + variant...
20,418
public String getDisplayVariant(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("varia...
public String getDisplayVariant(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("varia...
20,419
public TextField() { this("", 1); }
TextField() { this("", 1); }
20,420
public synchronized void setText(String text) { if (text == null) text = ""; this.text = text; TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) tcp.setText(text); }
setText(String text) { if (text == null) text = ""; this.text = text; TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) tcp.setText(text); }
20,421
public synchronized void setText(String text) { if (text == null) text = ""; this.text = text; TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) tcp.setText(text); }
public synchronized void setText(String text) { if (text == null) text = ""; this.text = text; TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) tcp.setText(text); setCaretPosition(0); }
20,422
public void setEchoChar(char echoChar) { this.echoChar = echoChar; TextFieldPeer tfp = (TextFieldPeer) getPeer(); if (tfp != null) tfp.setEchoChar(echoChar); }
public void setEchoChar(char echoChar) { this.echoChar = echoChar; TextFieldPeer tfp = (TextFieldPeer) getPeer(); if (tfp != null) tfp.setEchoChar(echoChar); }
20,423
public void propertyChange(PropertyChangeEvent evt) { String propName = evt.getPropertyName(); if (propName.equals("closable")) { if (evt.getNewValue().equals(Boolean.TRUE)) closeButton.setVisible(true); else closeButton.setVisible(false); } else if (propName.equals("iconifiable")) { ...
public void propertyChange(PropertyChangeEvent evt) { String propName = evt.getPropertyName(); if (propName.equals("closable")) { if (evt.getNewValue().equals(Boolean.TRUE)) closeButton.setVisible(true); else closeButton.setVisible(false); } else if (propName.equals("iconable")) { if...
20,424
private void postEvent(int id, long time, int modifiers, int keyCode, char keyChar) { JNodeToolkit tk = (JNodeToolkit) Toolkit.getDefaultToolkit(); KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); Component source = kfm.getFocusOwner(); // TODO get th...
private void postEvent(int id, long time, int modifiers, int keyCode, char keyChar) { JNodeToolkit tk = (JNodeToolkit) Toolkit.getDefaultToolkit(); KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); Component source = kfm.getFocusOwner(); // TODO get th...
20,426
public DataBufferInt(int[] dataArray, int size) { super(TYPE_INT, size); data = dataArray; }
public DataBufferInt(int size) { super(TYPE_INT, size); data = dataArray; }
20,427
public DataBufferInt(int[] dataArray, int size) { super(TYPE_INT, size); data = dataArray; }
public DataBufferInt(int[] dataArray, int size) { super(TYPE_INT, size); data = new int[size]; }
20,428
public void write(byte[] b, int off, int len) throws IOException, NullPointerException, IndexOutOfBoundsException { final DatagramPacket p = new DatagramPacket(b, off, len); p.setSocketAddress(address); socket.send(p); }
public void write(byte[] b, int off, int len) throws IOException, NullPointerException, IndexOutOfBoundsException { final DatagramPacket p = new DatagramPacket(b, off, len); p.setSocketAddress(address); socket.send(p); }
20,429
public DatagramSocket() throws SocketException { this(new InetSocketAddress(0)); }
protected DatagramSocket(DatagramSocketImpl impl) { this(new InetSocketAddress(0)); }
20,430
public DatagramSocket() throws SocketException { this(new InetSocketAddress(0)); }
public DatagramSocket() throws SocketException { this(new InetSocketAddress(0)); }
20,431
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); DerUtil.checkIsConstructed(derSPKI, "Wrong SubjectPu...
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); DerUtil.checkIsConstructed(derSPKI, "Wrong SubjectPu...
20,432
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
20,434
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
20,435
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
20,436
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
20,437
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
20,438
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("name="); buf.append(name); if (select != null) { buf.append(",select="); buf.append(select); } if (global) { buf.append(",global"); } buf.ap...
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("name="); buf.append(name); if (select != null) { buf.append(",select="); buf.append(select); } buf.append(",type="); switch (type) { buf.append(",gl...
20,439
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("name="); buf.append(name); if (select != null) { buf.append(",select="); buf.append(select); } if (global) { buf.append(",global"); } buf.ap...
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("name="); buf.append(name); if (select != null) { buf.append(",select="); buf.append(select); } if (global) { case Bindings.VARIABLE: buf.append("var...
20,440
public boolean containsKey(String name, boolean global) { Iterator i = global ? variables.iterator() : parameters.iterator(); while (i.hasNext()) { Map ctx = (Map) i.next(); if (ctx.containsKey(name)) { return true; } } return false; }
public boolean containsKey(QName name, int type) { Iterator i = global ? variables.iterator() : parameters.iterator(); while (i.hasNext()) { Map ctx = (Map) i.next(); if (ctx.containsKey(name)) { return true; } } return false; }
20,441
public boolean containsKey(String name, boolean global) { Iterator i = global ? variables.iterator() : parameters.iterator(); while (i.hasNext()) { Map ctx = (Map) i.next(); if (ctx.containsKey(name)) { return true; } } return false; }
public boolean containsKey(String name, boolean global) { Iterator i = null; switch (type) { case VARIABLE: i = variables.iterator(); break; case PARAM: i = parameters.iterator(); break; case WITH_PARAM: Map ctx = (Map) withParameters.getFirst(); return ctx.containsKey(name); } if (i != null) { while (i.hasNex...
20,442
protected void doResolveMember(AbstractVmClassLoader clc) { VmType vmClass = getConstClass().getResolvedVmClass(); if (!vmClass.isInterface()) { throw new IncompatibleClassChangeError(getClassName() + " must be an interface"); } final VmMethod vmMethod; vmMethod = vmClass.getMethod(getName(), getSignature()); ...
protected void doResolveMember(VmClassLoader clc) { VmType vmClass = getConstClass().getResolvedVmClass(); if (!vmClass.isInterface()) { throw new IncompatibleClassChangeError(getClassName() + " must be an interface"); } final VmMethod vmMethod; vmMethod = vmClass.getMethod(getName(), getSignature()); if (vmM...
20,444
public InvalidName(String reason) { super(reason); }
public InvalidName() { super(reason); }
20,445
public InvalidName(String reason) { super(reason); }
public InvalidName(String reason) { }
20,446
public static ServiceContext[] addExceptionContext(ServiceContext[] current, Throwable exception, Object details) { try { ServiceContext[] c = new ServiceContext[current.length + 1]; if (current.length > 0) System.arraycopy(current, 0, c, 0, current.length); cdrBufOutput outp...
public static ServiceContext[] addExceptionContext(ServiceContext[] current, Throwable exception, Object details) { try { ServiceContext[] c = new ServiceContext[current.length + 1]; if (current.length > 0) System.arraycopy(current, 0, c, 0, current.length); BufferedCdrOutput...
20,447
public static ServiceContext[] addExceptionContext(ServiceContext[] current, Throwable exception, Object details) { try { ServiceContext[] c = new ServiceContext[current.length + 1]; if (current.length > 0) System.arraycopy(current, 0, c, 0, current.length); cdrBufOutput outp...
public static ServiceContext[] addExceptionContext(ServiceContext[] current, Throwable exception, Object details) { try { ServiceContext[] c = new ServiceContext[current.length + 1]; if (current.length > 0) System.arraycopy(current, 0, c, 0, current.length); cdrBufOutput outp...
20,448
public synchronized void addPropertyChangeListener(PropertyChangeListener value0) { // TODO } // addPropertyChangeListener()
public synchronized void addPropertyChangeListener(PropertyChangeListener value0) { // TODO } // addPropertyChangeListener()
20,449
public void addTreeSelectionListener(TreeSelectionListener value0) { // TODO } // addTreeSelectionListener()
public void addTreeSelectionListener(TreeSelectionListener value0) { // TODO } // addTreeSelectionListener()
20,450
protected void fireValueChanged(TreeSelectionEvent value0) { // TODO } // fireValueChanged()
protected void fireValueChanged(TreeSelectionEvent value0) { // TODO } // fireValueChanged()
20,451
public EventListener[] getListeners(Class value0) { return null; // TODO } // getListeners()
public EventListener[] getListeners(Class value0) { return null; // TODO } // getListeners()
20,452
public synchronized void removePropertyChangeListener(PropertyChangeListener value0) { // TODO } // removePropertyChangeListener()
public synchronized void removePropertyChangeListener(PropertyChangeListener value0) { // TODO } // removePropertyChangeListener()
20,453
public void removeTreeSelectionListener(TreeSelectionListener value0) { // TODO } // removeTreeSelectionListener()
public void removeTreeSelectionListener(TreeSelectionListener value0) { // TODO } // removeTreeSelectionListener()
20,454
public DataBufferShort(int size) { super(TYPE_SHORT, size); data = new short[size]; }
public DataBufferShort(int size) { super(TYPE_SHORT, size, 1, 0); bankData = new short[1][]; data = new short[size]; }
20,455
public void actionPerformed(ActionEvent e) { setSelectedItem(((ComboBoxEditor) e.getSource()).getItem()); setPopupVisible(false); }
public void actionPerformed(ActionEvent e) { setSelectedItem(getEditor().getItem()); setPopupVisible(false); }
20,457
private final int readLeInt(DataInput di, byte[] b) throws IOException { di.readFully(b, 0, 4); return ((b[0] & 0xff) | (b[1] & 0xff) << 8) | ((b[2] & 0xff) | (b[3] & 0xff) << 8) << 16; }
private int readLeInt(DataInput di, byte[] b) throws IOException { di.readFully(b, 0, 4); return ((b[0] & 0xff) | (b[1] & 0xff) << 8) | ((b[2] & 0xff) | (b[3] & 0xff) << 8) << 16; }
20,459
private final int readLeShort(DataInput di, byte[] b) throws IOException { di.readFully(b, 0, 2); return (b[0] & 0xff) | (b[1] & 0xff) << 8; }
private int readLeShort(DataInput di, byte[] b) throws IOException { di.readFully(b, 0, 2); return (b[0] & 0xff) | (b[1] & 0xff) << 8; }
20,460
public void setCursor(Cursor cursor) {}
public void setCursor(Cursor cursor) { Component p = comp.getParent(); while (p != null && p.isLightweight()) p = p.getParent(); if (p != null) { ComponentPeer peer = p.getPeer(); if (peer != null) peer.setCursor(cursor); } }
20,462
UTF_16 () { super ("UTF-16", new String[] { // witnessed by the internet "UTF16", /* These names are provided by * http://oss.software.ibm.com/cgi-bin/icu/convexp?s=ALL */ "ISO-10646-UCS-2", "unicode", "csUnicode", "ucs-2" }); }
UTF_16 () { super ("UTF-16", new String[] { // witnessed by the internet "UTF16", /* These names are provided by * http://oss.software.ibm.com/cgi-bin/icu/convexp?s=ALL */ "ISO-10646-UCS-2", "unicode", "csUnicode", "ucs-2", "UnicodeBig" }); }
20,463
public CharsetEncoder newEncoder () { return new UTF_16Encoder (this, UTF_16Encoder.BIG_ENDIAN, false); }
public CharsetEncoder newEncoder () { return new UTF_16Encoder (this, UTF_16Encoder.BIG_ENDIAN, true); }
20,464
ClassLoader getCallingClassLoader() { Class[] stack = getClassContext(); //LS /*System.out.println(Arrays.asList(stack)); for (int i = 0; i < stack.length; i++) { if (stack[i] != securityClass && stack[i] != resourceBundleClass) return stack[i].getClassLoader(); } return null; ...
ClassLoader getCallingClassLoader() { Class[] stack = getClassContext(); //LS for (int i = 0; i < stack.length; i++) { if (stack[i] != securityClass && stack[i] != resourceBundleClass) return stack[i].getClassLoader(); } return null; */ return stack[3].getClassLoad...
20,465
ClassLoader getCallingClassLoader() { Class[] stack = getClassContext(); //LS /*System.out.println(Arrays.asList(stack)); for (int i = 0; i < stack.length; i++) { if (stack[i] != securityClass && stack[i] != resourceBundleClass) return stack[i].getClassLoader(); } return null; ...
ClassLoader getCallingClassLoader() { Class[] stack = getClassContext(); //LS /*System.out.println(Arrays.asList(stack)); for (int i = 0; i < stack.length; i++) { if (stack[i] != Security.class && stack[i] != ResourceBundle.class) return stack[i].getClassLoader(); } return null...
20,466
ClassLoader getCallingClassLoader() { Class[] stack = getClassContext(); //LS /*System.out.println(Arrays.asList(stack)); for (int i = 0; i < stack.length; i++) { if (stack[i] != securityClass && stack[i] != resourceBundleClass) return stack[i].getClassLoader(); } return null; ...
ClassLoader getCallingClassLoader() { Class[] stack = getClassContext(); //LS /*System.out.println(Arrays.asList(stack)); for (int i = 0; i < stack.length; i++) { if (stack[i] != securityClass && stack[i] != resourceBundleClass) return stack[i].getClassLoader(); } return null; ...
20,467
private static final ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, ...
private static final ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, ...
20,468
public abstract void insertText(String text, int pos);
void insertText(String text, int pos);
20,469
public abstract Dimension minimumSize(int rows, int cols);
Dimension minimumSize(int rows, int cols);
20,470
public abstract Dimension preferredSize(int rows, int cols);
Dimension preferredSize(int rows, int cols);
20,471
public abstract void replaceText(String text, int start_pos, int end_pos);
void replaceText(String text, int start_pos, int end_pos);
20,472
private static Charset charsetForName(String charsetName) { checkName (charsetName); Charset cs = null; CharsetProvider[] providers = providers2(); for (int i = 0; i < providers.length; i++) { cs = providers[i].charsetForName(charsetName); if (cs != null) break; } return cs; }
private static Charset charsetForName(String charsetName) { checkName (charsetName); Charset cs = provider().charsetForName(charsetName); if (cs == null) { CharsetProvider[] providers = providers2(); for (int i = 0; i < providers.length; i++) { cs = providers[i].charsetForName(charsetName); ...
20,474
private static CharsetProvider[] providers2() { if (providers == null) { try { Enumeration en = ClassLoader.getSystemResources ("META-INF/services/java.nio.charset.spi.CharsetProvider"); LinkedHashSet set = new LinkedHashSet(); set.add(provider()); ...
private static CharsetProvider[] providers2() { if (providers == null) { try { Enumeration en = ClassLoader.getSystemResources ("META-INF/services/java.nio.charset.spi.CharsetProvider"); LinkedHashSet set = new LinkedHashSet(); set.add(provider()); ...
20,476
private static CharsetProvider[] providers2() { if (providers == null) { try { Enumeration en = ClassLoader.getSystemResources ("META-INF/services/java.nio.charset.spi.CharsetProvider"); LinkedHashSet set = new LinkedHashSet(); set.add(provider()); ...
private static CharsetProvider[] providers2() { if (providers == null) { try { Enumeration en = ClassLoader.getSystemResources ("META-INF/services/java.nio.charset.spi.CharsetProvider"); LinkedHashSet set = new LinkedHashSet(); set.add(provider()); ...
20,477
public final Class getCategory() { return JobState.class; }
public Class getCategory() { return JobState.class; }
20,478
public final String getName() { return "job-state"; }
public String getName() { return "job-state"; }
20,479
public final Class getCategory() { return NumberUp.class; }
public Class getCategory() { return NumberUp.class; }
20,480
public final String getName() { return "number-up"; }
public String getName() { return "number-up"; }
20,481
public static void main(String args[]) throws SecurityException, IOException, ClassNotFoundException { String className = "org.jnode.vm.compiler.ir.IRGenerator"; if (args.length > 0) { className = args[0]; } VmClassLoader vmc = new VmClassLoader(new File(".").toURL(), new VmX86Architecture()); VmType type = vmc...
public static void main(String args[]) throws SecurityException, IOException, ClassNotFoundException { String className = "org.jnode.vm.compiler.ir.IRGenerator"; if (args.length > 0) { className = args[0]; } VmSystemClassLoader vmc = new VmSystemClassLoader(new File(".").toURL(), new VmX86Architecture()); VmTyp...
20,482
public IRControlFlowGraph(VmByteCode bytecode) { // First determine the basic blocks final IRBasicBlockFinder bbf = new IRBasicBlockFinder(); BytecodeParser.parse(bytecode, bbf); this.bblocks = bbf.createBasicBlocks(); startBlock = bblocks[0]; renumberArray = new SSAStack[bytecode.getMaxStack() + bytecode.getNoL...
public IRControlFlowGraph(VmByteCode bytecode) { // First determine the basic blocks final IRBasicBlockFinder bbf = new IRBasicBlockFinder(); BytecodeParser.parse(bytecode, bbf); this.bblocks = bbf.createBasicBlocks(); startBlock = bblocks[0]; computeDominance(); }
20,483
public MultiPixelPackedSampleModel(int dataType, int w, int h, int numberOfBits) { this(dataType, w, h, 0, numberOfBits, 0); }
public MultiPixelPackedSampleModel(int dataType, int w, int h, int numberOfBits) { this(dataType, w, h, 0, numberOfBits, 0); }
20,484
public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_short); }
public static TypeCode type() { return new ArrayTypeCode(TCKind.tk_short); }
20,485
public void flushBefore(long position) throws IOException, NotImplementedException { // FIXME: Implement me. throw new Error("not implemented"); }
public void flushBefore(long position) throws IOException { // FIXME: Implement me. throw new Error("not implemented"); }
20,487
public void flushBefore(long position) throws IOException, NotImplementedException { // FIXME: Implement me. throw new Error("not implemented"); }
public void flushBefore(long position) throws IOException, NotImplementedException { // FIXME: Implement me. long prevFlushedPosition = getFlushedPosition(); super.flushBefore(position); buffer.reset(); buffer.skip(getFlushedPosition() - prevFlushedPosition); buffer.mark(READLIMIT); }
20,488
public int read() throws IOException { setBitOffset(0); return stream.read(); }
public int read() throws IOException { setBitOffset(0); int retval = buffer.read(); if (retval != -1) streamPos++; return retval; }
20,489
public static void write(OutputStream output, TaggedComponent value) { output.write_long(value.tag); output.write_long(value.component_data.length); for (int i0 = 0; i0 < value.component_data.length; i0++) output.write_octet(value.component_data [ i0 ]); }
public static void write(OutputStream output, TaggedComponent value) { output.write_long(value.tag); output.write_long(value.component_data.length); for (int i0 = 0; i0 < value.component_data.length; i0++) output.write_octet(value.component_data [ i0 ]); }
20,490
public static TaggedComponent read(InputStream input) { TaggedComponent value = new TaggedComponent(); value.tag = input.read_long(); value.component_data = new byte[ input.read_long() ]; for (int i0 = 0; i0 < value.component_data.length; i0++) value.component_data [ i0 ] = input.read_octet(); re...
public static TaggedComponent read(InputStream input) { TaggedComponent value = new TaggedComponent(); value.tag = input.read_long(); value.component_data = new byte[ input.read_long() ]; for (int i0 = 0; i0 < value.component_data.length; i0++) value.component_data [ i0 ] = input.read_octet(); re...
20,491
public InflaterHuffmanTree(byte[] codeLengths) throws DataFormatException { buildTree(codeLengths); }
InflaterHuffmanTree(byte[] codeLengths) throws DataFormatException { buildTree(codeLengths); }
20,492
public int getSymbol(StreamManipulator input) throws DataFormatException { int lookahead, symbol; if ((lookahead = input.peekBits(9)) >= 0) { if ((symbol = tree[lookahead]) >= 0) { input.dropBits(symbol & 15); return symbol >> 4; } int subtree = -(symbol >> 4); int bitlen = symbol & 15; if ((l...
int getSymbol(StreamManipulator input) throws DataFormatException { int lookahead, symbol; if ((lookahead = input.peekBits(9)) >= 0) { if ((symbol = tree[lookahead]) >= 0) { input.dropBits(symbol & 15); return symbol >> 4; } int subtree = -(symbol >> 4); int bitlen = symbol & 15; if ((lookahea...
20,493
protected void addImpl(Component comp, Object constraints, int index) { if (isRootPaneCheckingEnabled()) throw new Error("Do not use add() on JInternalPane directly. Use getContentPane().add() instead"); super.addImpl(comp, constraints, index); }
protected void addImpl(Component comp, Object constraints, int index) { if (isRootPaneCheckingEnabled()) throw new Error("Do not use add() on JInternalPane directly. Use getContentPane().add() instead"); super.addImpl(comp, constraints, index); }
20,494
public void setDefaultCloseOperation(int operation) { if (operation != DO_NOTHING_ON_CLOSE && operation != HIDE_ON_CLOSE && operation != DISPOSE_ON_CLOSE) throw new Error("Close operation must be one of DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE"); defaultCloseOperation = operation; }
public void setDefaultCloseOperation(int operation) { if (operation != DO_NOTHING_ON_CLOSE && operation != HIDE_ON_CLOSE && operation != DISPOSE_ON_CLOSE) throw new Error("Close operation must be one of DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE"); defaultCloseOperation = operation; }
20,495
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
20,496
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
20,497
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
20,498
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
20,499
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
20,500
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
20,501
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
20,502
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
20,503
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
20,504
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
20,505
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
20,506
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
20,507
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
20,508
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
20,509
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
20,510
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
20,511