bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
protected ImageReaderWriterSpi() { }
public ImageReaderWriterSpi() { }
11,353
public static AlgorithmParameterGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty("AlgorithmParameterGenerator." + algorithm); if (classname != null) return getIn...
public static AlgorithmParameterGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty("AlgorithmParameterGenerator." + algorithm); if (classname != null) return getIn...
11,354
protected Tag(String id) { this.id = id; }
protected Tag(String id) { name = id; flags = 0; }
11,356
public UnknownTag(String id) { super(id); }
public UnknownTag(String name) { super(id); }
11,357
public UnknownTag(String id) { super(id); }
public UnknownTag(String id) { super(name); }
11,358
private int findClosestTick(int value) { int min = slider.getMinimum(); int max = slider.getMaximum(); int majorSpace = slider.getMajorTickSpacing(); int minorSpace = slider.getMinorTickSpacing(); // The default value to return is value + minor or // value + major. // Initializing at min - valu...
int findClosestTick(int value) { int min = slider.getMinimum(); int max = slider.getMaximum(); int majorSpace = slider.getMajorTickSpacing(); int minorSpace = slider.getMinorTickSpacing(); // The default value to return is value + minor or // value + major. // Initializing at min - value leaves...
11,360
public boolean isShowing() { boolean retVal = false; if (SwingButtonPeer.this.awtComponent != null) retVal = SwingButtonPeer.this.awtComponent.isShowing(); return retVal; }
public boolean isShowing() { boolean retVal = false; if (SwingButtonPeer.this.awtComponent != null) retVal = SwingButtonPeer.this.awtComponent.isShowing(); return retVal; }
11,361
public SwingButtonPeer(Button theButton) { SwingButton button = new SwingButton(); button.setText(theButton.getLabel()); button.addActionListener(new SwingButtonListener()); init(theButton, button); }
public SwingButtonPeer(Button theButton) { SwingButton button = new SwingButton(theButton); button.setText(theButton.getLabel()); button.addActionListener(new SwingButtonListener()); init(theButton, button); }
11,362
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
11,363
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
11,364
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
11,365
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
11,366
protected Calendar(TimeZone zone, Locale locale) { this.zone = zone; lenient = true; String[] days = { "", "sun", "mon", "tue", "wed", "thu", "fri", "sat" }; ResourceBundle rb = getBundle(locale); String min = (String) rb.getObject("minNumberOfDaysInFirstWeek"); String first = (String) rb.getObject("fi...
protected Calendar() { this.zone = zone; lenient = true; String[] days = { "", "sun", "mon", "tue", "wed", "thu", "fri", "sat" }; ResourceBundle rb = getBundle(locale); String min = (String) rb.getObject("minNumberOfDaysInFirstWeek"); String first = (String) rb.getObject("firstDayOfWeek"); try ...
11,367
protected Calendar(TimeZone zone, Locale locale) { this.zone = zone; lenient = true; String[] days = { "", "sun", "mon", "tue", "wed", "thu", "fri", "sat" }; ResourceBundle rb = getBundle(locale); String min = (String) rb.getObject("minNumberOfDaysInFirstWeek"); String first = (String) rb.getObject("fi...
protected Calendar(TimeZone zone, Locale locale) { this.zone = zone; lenient = true; String[] days = { "", "sun", "mon", "tue", "wed", "thu", "fri", "sat" }; ResourceBundle rb = getBundle(locale); String min = (String) rb.getObject("minNumberOfDaysInFirstWeek"); String first = (String) rb.getObject("fi...
11,368
public void refresh(){ super.refresh(); try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); final PluginDescriptor descr = mgr.getRegistry().getPluginDescriptor(name); if (descr != null) { addStringln("Name:"); addStringln("\t"+descr.getId()); addStringln("Provider:"); add...
public void refresh(){ super.refresh(); try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); final PluginDescriptor descr = mgr.getRegistry().getPluginDescriptor(name); if (descr != null) { addStringln("Name:"); addStringln("\t"+descr.getId()); addStringln("Provider:"); add...
11,369
public FloatSeqHolder(float[] initial_value) { value = initial_value; typecode.setLength(value.length); }
public FloatSeqHolder() { value = initial_value; typecode.setLength(value.length); }
11,370
public FloatSeqHolder(float[] initial_value) { value = initial_value; typecode.setLength(value.length); }
public FloatSeqHolder(float[] initial_value) { value = initial_value; typecode.setLength(value.length); }
11,371
public int getTimezoneOffset() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return (cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET)) / (60 * 1000); }
public int getTimezoneOffset() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return - (cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET)) / (60 * 1000); }
11,372
private void readObject(java.io.ObjectInputStream input) throws java.io.IOException, ClassNotFoundException { input.defaultReadObject(); time = input.readLong(); }
private void readObject(java.io.ObjectInputStream input) throws java.io.IOException, ClassNotFoundException { input.defaultReadObject(); time = input.readLong(); }
11,373
private void writeObject(java.io.ObjectOutputStream output) throws java.io.IOException { output.defaultWriteObject(); output.writeLong(time); }
private void writeObject(java.io.ObjectOutputStream output) throws java.io.IOException { output.defaultWriteObject(); output.writeLong(time); }
11,374
public final String getDisplayName(boolean dst, int style) { return (getDisplayName(dst, style, Locale.getDefault())); }
public final String getDisplayName() { return (getDisplayName(dst, style, Locale.getDefault())); }
11,375
public final String getDisplayName(boolean dst, int style) { return (getDisplayName(dst, style, Locale.getDefault())); }
public final String getDisplayName(boolean dst, int style) { return (getDisplayName(false, LONG, Locale.getDefault())); }
11,376
public ReaderDelegate(XMLStreamReader reader) { parent = reader; }
public ReaderDelegate() { parent = reader; }
11,377
public ReaderDelegate(XMLStreamReader reader) { parent = reader; }
public ReaderDelegate(XMLStreamReader reader) { }
11,378
public String getAttributeName(int index) { if (parent != null) return parent.getAttributeName(index); return null; }
public QName getAttributeName(int index) { if (parent != null) return parent.getAttributeName(index); return null; }
11,379
public String getAttributeValue(int index) { if (parent != null) return parent.getAttributeValue(index); return null; }
public String getAttributeValue(String namespaceUri, String localName) { if (parent != null) return parent.getAttributeValue(index); return null; }
11,380
public String getAttributeValue(int index) { if (parent != null) return parent.getAttributeValue(index); return null; }
public String getAttributeValue(int index) { if (parent != null) return parent.getAttributeValue(namespaceUri, localName); return null; }
11,381
public String getNamespaceURI() { if (parent != null) return parent.getNamespaceURI(); return null; }
public String getNamespaceURI(String prefix) { if (parent != null) return parent.getNamespaceURI(); return null; }
11,382
public String getNamespaceURI() { if (parent != null) return parent.getNamespaceURI(); return null; }
public String getNamespaceURI() { if (parent != null) return parent.getNamespaceURI(prefix); return null; }
11,383
public char[] getTextCharacters() { if (parent != null) return parent.getTextCharacters(); return null; }
public int getTextCharacters(int sourceStart, char[] target, int targetStart, int length) throws XMLStreamException { if (parent != null) return parent.getTextCharacters(); return null; }
11,384
public char[] getTextCharacters() { if (parent != null) return parent.getTextCharacters(); return null; }
public char[] getTextCharacters() { if (parent != null) return parent.getTextCharacters(); return null; }
11,385
public CRLFInputStream(InputStream in) { super(in); }
public CRLFInputStream(InputStream in) { super(in.markSupported() ? in : new BufferedInputStream(in)); }
11,386
public int read() throws IOException { int c; if (buf != -1) { c = buf; buf = -1; return c; } else { c = super.read(); if (c == CR) { buf = super.read(); if (buf == LF) { c = buf; b...
public int read() throws IOException { int c; if (buf != -1) { c = buf; buf = -1; return c; } else { c = super.read(); if (c == CR) { buf = super.read(); if (buf == LF) { c = buf; b...
11,387
public int read() throws IOException { int c; if (buf != -1) { c = buf; buf = -1; return c; } else { c = super.read(); if (c == CR) { buf = super.read(); if (buf == LF) { c = buf; b...
public int read() throws IOException { int c; if (buf != -1) { c = buf; buf = -1; return c; } else { c = super.read(); if (c == CR) { buf = super.read(); if (buf == LF) { c = buf; b...
11,388
public int read() throws IOException { int c; if (buf != -1) { c = buf; buf = -1; return c; } else { c = super.read(); if (c == CR) { buf = super.read(); if (buf == LF) { c = buf; b...
public int read() throws IOException { int c; if (buf != -1) { c = buf; buf = -1; return c; } else { c = super.read(); if (c == CR) { buf = super.read(); if (buf == LF) { c = buf; b...
11,389
protected Inet6Address(byte[] addr, String host) { super(addr, host); this.ipaddress = addr; }
protected Inet6Address(byte[] addr, String host) { super(addr, host); this.ipaddress = addr; }
11,393
public boolean equals(Object obj) { if (obj == null || !(obj instanceof Inet6Address)) return false; Inet6Address tmp = (Inet6Address) obj; return super.equals(tmp) && this.ipaddress == tmp.ipaddress; }
public boolean equals(Object obj) { if (obj == null || !(obj instanceof Inet6Address)) return false; Inet6Address tmp = (Inet6Address) obj; return super.equals(tmp) && this.ipaddress == tmp.ipaddress; }
11,394
public boolean isAnyLocalAddress() { byte[] anylocal = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; return ipaddress == anylocal; }
public boolean isAnyLocalAddress() { byte[] anylocal = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; return Arrays.equals(ipaddress, anylocal); }
11,395
public boolean isLoopbackAddress() { byte[] loopback = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }; return ipaddress == loopback; }
public boolean isLoopbackAddress() { byte[] loopback = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }; return Arrays.equals(ipaddress, loopback); }
11,396
protected void installDefaults(JLabel c) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); c.setForeground(defaults.getColor("Label.foreground")); c.setBackground(defaults.getColor("Label.background")); c.setFont(defaults.getFont("Label.font")); c.setBorder(defaults.getBorder("Label.border")...
protected void installDefaults(JLabel c) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); c.setForeground(defaults.getColor("Label.foreground")); c.setBackground(defaults.getColor("Label.background")); c.setFont(defaults.getFont("Label.font")); //XXX: There are properties we don't use c...
11,397
protected void uninstallDefaults(JLabel c) { c.setForeground(null); c.setBackground(null); c.setFont(null); c.setBorder(null); }
protected void uninstallDefaults(JLabel c) { c.setForeground(null); c.setBackground(null); c.setFont(null); }
11,398
public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) { int daysInMonth = getDaysInMonth(month, year); if (day < 1 || day > daysInMonth) throw new IllegalArgumentException("day out of range"); if (dayOfWeek < Calendar.SUNDAY || dayOfWeek > Calendar...
public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) { int daysInMonth = getDaysInMonth(month, year); if (day < 1 || day > daysInMonth) throw new IllegalArgumentException("day out of range"); if (dayOfWeek < Calendar.SUNDAY || dayOfWeek > Calendar...
11,400
public int read(byte[] data, int offset, int length) throws IOException { if (this.readDataFromBlock) { int remain = this.blockDataBytes - this.blockDataPosition; if (remain == 0) { readNextBlock(); remain = this.blockDataBytes - this.blockDataPosition; }...
public int read() throws IOException { if (this.readDataFromBlock) { int remain = this.blockDataBytes - this.blockDataPosition; if (remain == 0) { readNextBlock(); remain = this.blockDataBytes - this.blockDataPosition; } length = Math.min(length, r...
11,401
public int read(byte[] data, int offset, int length) throws IOException { if (this.readDataFromBlock) { int remain = this.blockDataBytes - this.blockDataPosition; if (remain == 0) { readNextBlock(); remain = this.blockDataBytes - this.blockDataPosition; }...
public int read(byte[] data, int offset, int length) throws IOException { if (this.readDataFromBlock) { int remain = this.blockDataBytes - this.blockDataPosition; if (remain == 0) { readNextBlock(); remain = this.blockDataBytes - this.blockDataPosition; }...
11,402
public int read(byte[] data, int offset, int length) throws IOException { if (this.readDataFromBlock) { int remain = this.blockDataBytes - this.blockDataPosition; if (remain == 0) { readNextBlock(); remain = this.blockDataBytes - this.blockDataPosition; }...
public int read(byte[] data, int offset, int length) throws IOException { if (this.readDataFromBlock) { int remain = this.blockDataBytes - this.blockDataPosition; if (remain == 0) { readNextBlock(); remain = this.blockDataBytes - this.blockDataPosition; }...
11,403
public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ...
public void write (int data) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); writeBlockDataHea...
11,404
public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ...
public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ...
11,405
public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ...
public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ...
11,406
public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ...
public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ...
11,407
public boolean isShowing() { boolean retVal = false; if (SwingTextFieldPeer.this.awtComponent != null) retVal = SwingTextFieldPeer.this.awtComponent.isShowing(); return retVal; }
public boolean isShowing() { boolean retVal = false; if (SwingTextFieldPeer.this.awtComponent != null) retVal = SwingTextFieldPeer.this.awtComponent.isShowing(); return retVal; }
11,408
public SwingTextFieldPeer(TextField textField) { SwingTextField swingTextField = new SwingTextField(); swingTextField.setText(textField.getText()); init(textField, swingTextField); }
public SwingTextFieldPeer(TextField textField) { SwingTextField swingTextField = new SwingTextField(textField); swingTextField.setText(textField.getText()); init(textField, swingTextField); }
11,409
public void select(int startPos, int endPos) { // TODO: Must be implemented. }
public void select(int start_pos, int endPos) { // TODO: Must be implemented. }
11,410
private void paintOceanButtonBorder(Component c, Graphics g, int x, int y, int w, int h) { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkSha...
private void paintOceanButtonBorder(Component c, Graphics g, int x, int y, int w, int h) { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkSha...
11,411
public EtchedBorder() { }
public EtchedBorder() { }
11,413
public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic) { //final int type = getClass(method); final int mcode = getMethodCode(method); final VirtualStack vstack = ec.getVStack(); final X86Assembler os = ec.getStream(); final ItemFactory ifac = ec.getItemFactor...
public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic) { //final int type = getClass(method); final int mcode = getMethodCode(method); final VirtualStack vstack = ec.getVStack(); final X86Assembler os = ec.getStream(); final ItemFactory ifac = ec.getItemFactor...
11,414
public BorderUIResource(Border delegate) { this.delegate = delegate; }
public BorderUIResource(Border delegate) { this.delegate = delegate; }
11,416
public static Border createBevelBorder( int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner) { /* Create a beveled border of the specified type, using the specified colors for the inner and outer highlight and shadow areas. Parameters: type - an int specifying eit...
public static Border createBevelBorder( int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner) { /* Create a beveled border of the specified type, using the specified colors for the inner and outer highlight and shadow areas. Parameters: type - an int specifying eit...
11,417
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CommentNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new CommentNode(); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; }
11,418
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CommentNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CommentNode(); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret;
11,419
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != nul...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null...
11,420
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != nul...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != nul...
11,421
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); }
11,422
public WrongAdapter(String why) { super(why); }
public WrongAdapter() { super(why); }
11,424
public WrongAdapter(String why) { super(why); }
public WrongAdapter(String why) { }
11,425
protected Item cloneConstant() { return createConst(getValue()); }
protected DoubleWordItem cloneConstant() { return createConst(getValue()); }
11,426
protected abstract Item cloneConstant();
protected abstract DoubleWordItem cloneConstant();
11,427
protected Inet4Address(byte[] addr, String host) { super(addr, host); }
protected Inet4Address(byte[] addr, String host) { super(addr, host); }
11,428
public boolean equals(Object obj) { if (obj == null || !(obj instanceof InetAddress)) return false; byte[] addr1 = addr; byte[] addr2 = ((InetAddress) obj).addr; if (addr1.length != addr2.length) return false; for (int i = addr1.length; --i >= 0;) if (addr1[i] != addr2[i]) return false; return true; }
public boolean equals(Object obj) { if (obj == null || !(obj instanceof InetAddress)) return false; byte[] addr1 = addr; byte[] addr2 = ((InetAddress) obj).addr; if (addr1.length != addr2.length) return false; for (int i = addr1.length; --i >= 0;) if (addr1[i] != addr2[i]) return false; return true; }
11,429
public boolean isAnyLocalAddress() { return (addr[0] == 0) && (addr[1] == 0) && (addr[2] == 0) && (addr[3] == 0); }
public boolean isAnyLocalAddress() { return (addr[0] == 0) && (addr[1] == 0) && (addr[2] == 0) && (addr[3] == 0); }
11,430
private Object writeReplace() throws ObjectStreamException { return new InetAddress(addr, hostName); }
private Object writeReplace() throws ObjectStreamException { return new InetAddress(addr, hostName); }
11,431
public Dimension getPreferredScrollableViewportSize() { return null; }
public Dimension getPreferredScrollableViewportSize() { return getPreferredSize(); }
11,435
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { return 1; }
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { if (orientation == VERTICAL) return visibleRect.height * direction; else return visibleRect.width * direction; }
11,436
public static String encode(String s) { try { return encode(s, "UTF-8"); } catch (UnsupportedEncodingException uee) { // Should never happen since UTF-8 should always be supported return s; } }
public static String encode(String s) { try { return encode(s, System.getProperty("file.encoding", "8859_1")); } catch (UnsupportedEncodingException uee) { // Should never happen since UTF-8 should always be supported return s; } }
11,440
public abstract void addChangeListener(ChangeListener listener);
void addChangeListener(ChangeListener listener);
11,441
public abstract void removeChangeListener(ChangeListener listener);
void removeChangeListener(ChangeListener listener);
11,442
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)...
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)...
11,443
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)...
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)...
11,444
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)...
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)...
11,445
JOptionPane() { this("mess"); }
JOptionPane() { this("mess"); }
11,446
public AccessibleContext getAccessibleContext() { return null; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJOptionPane(); return accessibleContext; }
11,447
public Object getValue() { return val; }
public Object getValue() { return value; }
11,448
public void setValue(Object v) { val = v; }
public void setValue(Object v) { val = v; }
11,449
public static int showConfirmDialog(JFrame frame, String yes, String no, int bla) { return 0; }
public static int showConfirmDialog(JFrame frame, String yes, String no, int bla) { return 0; }
11,450
public static String showInputDialog(JFrame frame, String msg, String title, int opt_type, int msg_type, Icon icon, Object[] opts, Object init) { return (String) DoShowOptionDialog(frame, msg, title, opt_type, msg_type, icon, opts, i...
public static String showInputDialog(JFrame frame, String msg, String title, int opt_type, int msg_type, Icon icon, Object[] opts, Object init) { return (String) DoShowOptionDialog(frame, msg, title, opt_type, msg_type, icon, opts, i...
11,451
public static void showMessageDialog(Component frame, String msg, String title, int bla) { DoShowOptionDialog(frame, msg, title, bla, 0, null, null, null); }
public static void showMessageDialog(Component frame, String msg, String title, int bla) { DoShowOptionDialog(frame, msg, title, bla, 0, null, null, null); }
11,452
public static int showOptionDialog(Component frame, String msg, String title, int opt_type, int msg_type, Icon icon, Object[] opts, Object init) { Integer a = (Integer) DoShowOptionDialog(frame, msg, title, opt_type, msg_type, icon, opts, i...
public static int showOptionDialog(Component frame, String msg, String title, int opt_type, int msg_type, Icon icon, Object[] opts, Object init) { Integer a = (Integer) DoShowOptionDialog(frame, msg, title, opt_type, msg_type, icon, opts, i...
11,453
public void updateUI() { setUI((OptionPaneUI)UIManager.getUI(this)); }
public void updateUI() { setUI((OptionPaneUI)UIManager.getUI(this)); }
11,454
public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t...
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create the servant and register it wi...
11,455
public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t...
public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t...
11,456
public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t...
public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t...
11,457
EventDispatchThread(EventQueue queue) { super(); setName("AWT-EventQueue-" + ++dispatchThreadNum); this.queue = queue; setPriority(NORM_PRIORITY + 1); }
EventDispatchThread(EventQueue queue) { super(); setName("AWT-EventQueue-" + ++dispatchThreadNum); this.queue = queue; int priority = DEFAULT_PRIORITY; try { String priorityString = System.getProperty("gnu.awt.dispatchthread.priority"); if (priorityString != null) { priority = Integer.parseInt(priorityString...
11,459
public final byte[] sign() throws SignatureException { if (state == SIGN) { state = UNINITIALIZED; return engineSign(); } else throw new SignatureException(); }
public final byte[] sign() throws SignatureException { if (state == SIGN) { state = UNINITIALIZED; return engineSign(); } else throw new SignatureException(); }
11,460
public final byte[] sign() throws SignatureException { if (state == SIGN) { state = UNINITIALIZED; return engineSign(); } else throw new SignatureException(); }
public final byte[] sign() throws SignatureException { if (state == SIGN) { state = UNINITIALIZED; return engineSign(); else throw new SignatureException();
11,461
public final boolean verify(byte[]signature) throws SignatureException { if (state == VERIFY) { state = UNINITIALIZED; return engineVerify(signature); } else throw new SignatureException(); }
public final boolean verify(byte[]signature) throws SignatureException { if (state == VERIFY) { state = UNINITIALIZED; return engineVerify(signature); } else throw new SignatureException(); }
11,462
public final boolean verify(byte[]signature) throws SignatureException { if (state == VERIFY) { state = UNINITIALIZED; return engineVerify(signature); } else throw new SignatureException(); }
public final boolean verify(byte[]signature) throws SignatureException { if (state == VERIFY) { state = UNINITIALIZED; return engineVerify(signature); else throw new SignatureException();
11,463
public void read(long fileOffset, byte[] dest, int off, int len) throws IOException { if(len+off>getLength()) throw new IOException("Can't read past the file!"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); long bytesRead=0; while( bytesRead < len ) { long blockNr = (fileOffset+bytesRead) / block...
public void read(long fileOffset, byte[] dest, int off, int len) throws IOException { if(len+off>getLength()) throw new IOException("Can't read past the file!"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); long bytesRead=0; while( bytesRead < len ) { long blockNr = (fileOffset+bytesRead) / block...
11,464
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+...
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+...
11,465
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+...
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+...
11,466
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+...
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+...
11,467
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+...
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+...
11,468