bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public DataBufferByte(int size, int numBanks) { super(TYPE_BYTE, size, numBanks); bankData = new byte[numBanks][size]; data = bankData[0]; }
public DataBufferByte(int size, int numBanks) { super(TYPE_BYTE, size, numBanks); bankData = new byte[numBanks][size]; data = bankData[0]; }
10,250
protected DataBuffer(int dataType, int size, int numBanks, int offset) { this(dataType, size, numBanks); java.util.Arrays.fill(offsets, offset); this.offset = offset; }
protected DataBuffer(int dataType, int size, int numBanks, int offset) { this(dataType, size, numBanks); java.util.Arrays.fill(offsets, offset); this.offset = offset; }
10,251
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) { throw new Error("not implemented"); }
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) { Point2D xp1 = xform.transform(getPoint1(), null); Point2D xp2 = x...
10,252
public int getTransparency() { throw new Error("not implemented"); }
public int getTransparency() { if (c1.getAlpha() == 255 && c2.getAlpha() == 255) return Transparency.OPAQUE; else return Transparency.TRANSLUCENT; }
10,253
public abstract int getVisibleChildCount(TreePath value0);
public abstract int getVisibleChildCount(TreePath path);
10,254
protected void changeUpdate() { // Split up the element at the start offset if necessary. Element el = getCharacterElement(offset); Element[] res = split(el, offset, 0); BranchElement par = (BranchElement) el.getParentElement(); if (res[1] != null) { int index = par.getEl...
protected void changeUpdate() { // Split up the element at the start offset if necessary. Element el = getCharacterElement(offset); Element[] res = split(el, offset, 0); BranchElement par = (BranchElement) el.getParentElement(); if (res[1] != null) { int index = par.getEl...
10,255
public void insert(int offset, int length, ElementSpec[] data, DefaultDocumentEvent ev) { if (length == 0) return; this.offset = offset; this.length = length; this.endOffset = offset + length; documentEvent = ev; // Push the root and the paragraph at off...
public void insert(int offset, int length, ElementSpec[] data, DefaultDocumentEvent ev) { if (length == 0) return; this.offset = offset; this.length = length; this.endOffset = offset + length; documentEvent = ev; // Push the root and the paragraph at off...
10,256
private void insertContentTag(ElementSpec tag) { prepareContentInsertion(); int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a Jo...
private void insertContentTag(ElementSpec tag) { int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a JoinPrevious insertion ...
10,258
private void insertContentTag(ElementSpec tag) { prepareContentInsertion(); int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a Jo...
private void insertContentTag(ElementSpec tag) { prepareContentInsertion(); int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a Jo...
10,259
private void insertContentTag(ElementSpec tag) { prepareContentInsertion(); int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a Jo...
private void insertContentTag(ElementSpec tag) { prepareContentInsertion(); int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a Jo...
10,260
private void insertContentTag(ElementSpec tag) { prepareContentInsertion(); int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a Jo...
private void insertContentTag(ElementSpec tag) { prepareContentInsertion(); int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a Jo...
10,261
private void insertContentTag(ElementSpec tag) { prepareContentInsertion(); int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a Jo...
private void insertContentTag(ElementSpec tag) { prepareContentInsertion(); int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a Jo...
10,262
private void insertContentTag(ElementSpec tag) { prepareContentInsertion(); int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a Jo...
private void insertContentTag(ElementSpec tag) { prepareContentInsertion(); int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a Jo...
10,263
private void insertContentTag(ElementSpec tag) { prepareContentInsertion(); int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a Jo...
private void insertContentTag(ElementSpec tag) { prepareContentInsertion(); int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a Jo...
10,264
private Element insertParagraph(BranchElement par, int offset) { Element current = par.getElement(par.getElementIndex(offset)); Element[] res = split(current, offset, 0); int index = par.getElementIndex(offset); Element ret; if (res[1] != null) { Element[] removed; ...
private Element insertParagraph(BranchElement par, int offset) { Element current = par.getElement(par.getElementIndex(offset)); Element[] res = split(current, offset, 0); int index = par.getElementIndex(offset); Element ret; if (res[1] != null) { Element[] removed; ...
10,265
private Element insertParagraph(BranchElement par, int offset) { Element current = par.getElement(par.getElementIndex(offset)); Element[] res = split(current, offset, 0); int index = par.getElementIndex(offset); Element ret; if (res[1] != null) { Element[] removed; ...
private Element insertParagraph(BranchElement par, int offset) { Element current = par.getElement(par.getElementIndex(offset)); Element[] res = split(current, offset, 0); int index = par.getElementIndex(offset); Element ret; if (res[1] != null) { Element[] removed; ...
10,266
protected void insertUpdate(ElementSpec[] data) { for (int i = 0; i < data.length; i++) { switch (data[i].getType()) { case ElementSpec.StartTagType: numStartTags++; break; case ElementSpec.EndTagType: numEndTags++; ...
protected void insertUpdate(ElementSpec[] data) { for (int i = 0; i < data.length; i++) { switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: insertFracture(data[i]); break; c...
10,267
protected void insertUpdate(ElementSpec[] data) { for (int i = 0; i < data.length; i++) { switch (data[i].getType()) { case ElementSpec.StartTagType: numStartTags++; break; case ElementSpec.EndTagType: numEndTags++; ...
protected void insertUpdate(ElementSpec[] data) { for (int i = 0; i < data.length; i++) { switch (data[i].getType()) { case ElementSpec.StartTagType: numStartTags++; break; case ElementSpec.EndTagType: elementStack.pop()...
10,268
protected void insertUpdate(ElementSpec[] data) { for (int i = 0; i < data.length; i++) { switch (data[i].getType()) { case ElementSpec.StartTagType: numStartTags++; break; case ElementSpec.EndTagType: numEndTags++; ...
protected void insertUpdate(ElementSpec[] data) { for (int i = 0; i < data.length; i++) { switch (data[i].getType()) { case ElementSpec.StartTagType: numStartTags++; break; case ElementSpec.EndTagType: numEndTags++; ...
10,269
protected void insertUpdate(ElementSpec[] data) { for (int i = 0; i < data.length; i++) { switch (data[i].getType()) { case ElementSpec.StartTagType: numStartTags++; break; case ElementSpec.EndTagType: numEndTags++; ...
protected void insertUpdate(ElementSpec[] data) { for (int i = 0; i < data.length; i++) { switch (data[i].getType()) { case ElementSpec.StartTagType: numStartTags++; break; case ElementSpec.EndTagType: numEndTags++; ...
10,270
private Element[] split(Element el, int offset, int space) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element is an instance of ...
private Element[] split(Element el, int offset, int space) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element is an instance of ...
10,271
public String toString() { StringBuilder b = new StringBuilder(); b.append('<'); switch (type) { case StartTagType: b.append("StartTag"); break; case EndTagType: b.append("EndTag"); break; case ContentType: b.append("Content"...
public String toString() { StringBuilder b = new StringBuilder(); switch (type) { case StartTagType: b.append("StartTag"); break; case EndTagType: b.append("EndTag"); break; case ContentType: b.append("Content"); br...
10,272
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; // FIXME: Create a SecionElement here instead of a BranchElement. // Use createBranchElement() and createLeafElement instead. SectionElement section = new SectionElement(); BranchElement paragraph = new BranchElement(secti...
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; // FIXME: Create a SecionElement here instead of a BranchElement. // Use createBranchElement() and createLeafElement instead. SectionElement section = new SectionElement(); BranchElement paragraph = new BranchElement(secti...
10,273
protected void insert(int offset, ElementSpec[] data) throws BadLocationException { try { // writeLock() and writeUnlock() should always be in a try/finally // block so that locking balance is guaranteed even if some // exception is thrown. writeLock(); // First we ...
protected void insert(int offset, ElementSpec[] data) throws BadLocationException { try { // writeLock() and writeUnlock() should always be in a try/finally // block so that locking balance is guaranteed even if some // exception is thrown. writeLock(); // First we ...
10,274
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offs...
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offs...
10,277
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offs...
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offs...
10,278
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offs...
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offs...
10,279
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offs...
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offs...
10,280
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offs...
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); // If the attribute set is null, use an empty attribute set. if (attr == null) attr = SimpleAttributeSet.EMPTY; int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offs...
10,281
public GapContent(int size) { buf.append("\n"); }
public GapContent() { buf.append("\n"); }
10,283
public GapContent(int size) { buf.append("\n"); }
public GapContent(int size) { this(10); }
10,284
protected AbstractDocument(Content doc, AttributeContext ctx) { content = doc; context = ctx; }
protected AbstractDocument(Content doc) { content = doc; context = ctx; }
10,285
protected AbstractDocument(Content doc, AttributeContext ctx) { content = doc; context = ctx; }
protected AbstractDocument(Content doc, AttributeContext ctx) { content = doc; context = ctx; }
10,286
public Color getBackground(AttributeSet set);
Color getBackground(AttributeSet set);
10,287
public Font getFont(AttributeSet set);
Font getFont(AttributeSet set);
10,288
public Color getForeground(AttributeSet set);
Color getForeground(AttributeSet set);
10,289
public void getText(int offset, int length, Segment segment) throws BadLocationException { content.getChars(offset, length, segment); }
public void getText(int offset, int length, Segment segment) throws BadLocationException { content.getChars(offset, length, segment); }
10,290
public void setParagraphAttributes(int offset, int length, AttributeSet set, boolean replace);
void setParagraphAttributes(int offset, int length, AttributeSet set, boolean replace);
10,291
protected void addImpl(Component comp, Object constraints, int index) { int left = 0; int right = 1; int div = 2; int place; if (constraints == null) { if (leftComponent == null) constraints = LEFT; else if (rightComponent == null) constraints = RIGHT; } if (constraints instanceof Str...
protected void addImpl(Component comp, Object constraints, int index) { int left = 0; int right = 1; int div = 2; int place; if (constraints == null) { if (leftComponent == null) constraints = LEFT; else if (rightComponent == null) constraints = RIGHT; } if (constraints instanceof Str...
10,292
private void resetSelectedValue() { if (inputComponent != null) { Object init = optionPane.getInitialSelectionValue(); if (init == null) return; if (inputComponent instanceof JTextField) ((JTextField) inputComponent).setText((String) init); else if (inputComponent instanceof JComboBox) ((JComboBox) inp...
void resetSelectedValue() { if (inputComponent != null) { Object init = optionPane.getInitialSelectionValue(); if (init == null) return; if (inputComponent instanceof JTextField) ((JTextField) inputComponent).setText((String) init); else if (inputComponent instanceof JComboBox) ((JComboBox) inputCompon...
10,293
Object invoke (Remote obj, Method method, Object[] params, long opnum) throws Exception;
Object invoke (Remote obj, Method method, Object[] params, long opnum) throws Exception;
10,294
public void update (int bval);
void update (int bval);
10,295
public DataFormatException(String msg) { super(msg); }
public DataFormatException() { super(msg); }
10,296
public DataFormatException(String msg) { super(msg); }
public DataFormatException(String msg) { }
10,297
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ParameterNode(name, select.clone(stylesheet), type); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { re...
TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new ParameterNode(name, select.clone(stylesheet), type); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.n...
10,298
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ParameterNode(name, select.clone(stylesheet), type); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { re...
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ParameterNode(name, select.clone(stylesheet), type); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret...
10,299
public int compareTo(Object other) { if (other instanceof ParameterNode) { ParameterNode pn = (ParameterNode) other; boolean r1 = references(pn.name); boolean r2 = pn.references(name); if (r1 && r2) { throw new IllegalArgumentException("circular definitions"); ...
public int compareTo(Object other) if (other instanceof ParameterNode) ParameterNode pn = (ParameterNode) other; boolean r1 = references(pn.name); boolean r2 = pn.references(name); if (r1 && r2) throw new IllegalArgumentException("circular definitions"); ...
10,300
public int compareTo(Object other) { if (other instanceof ParameterNode) { ParameterNode pn = (ParameterNode) other; boolean r1 = references(pn.name); boolean r2 = pn.references(name); if (r1 && r2) { throw new IllegalArgumentException("circular definitions"); ...
public int compareTo(Object other) { if (other instanceof ParameterNode) { ParameterNode pn = (ParameterNode) other; boolean r1 = references(pn.name); boolean r2 = pn.references(name); if (r1 && r2) { throw new IllegalArgumentException("circular definitions"); ...
10,301
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { // push the variable context stylesheet.bindings.push(type); // set the variable Object value = getValue(stylesheet, mode, co...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException // push the variable context stylesheet.bindings.push(type); // set the variable Object value = getValue(stylesheet, mode, con...
10,302
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { // push the variable context stylesheet.bindings.push(type); // set the variable Object value = getValue(stylesheet, mode, co...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { // push the variable context stylesheet.bindings.push(type); // set the variable Object value = getValue(stylesheet, mode, co...
10,303
Object getValue(Stylesheet stylesheet, QName mode, Node context, int pos, int len) throws TransformerException { if (select != null) { return select.evaluate(context, pos, len); } else if (children != null) { Document doc = (context instanceof Document) ? (Docum...
Object getValue(Stylesheet stylesheet, QName mode, Node context, int pos, int len) throws TransformerException if (select != null) return select.evaluate(context, pos, len); } else if (children != null) Document doc = (context instanceof Document) ? (Document...
10,304
Object getValue(Stylesheet stylesheet, QName mode, Node context, int pos, int len) throws TransformerException { if (select != null) { return select.evaluate(context, pos, len); } else if (children != null) { Document doc = (context instanceof Document) ? (Docum...
Object getValue(Stylesheet stylesheet, QName mode, Node context, int pos, int len) throws TransformerException { if (select != null) { return select.evaluate(context, pos, len); else if (children != null) { Document doc = (context instanceof Document) ? (Docume...
10,305
public boolean references(QName var) { if (select != null && select.references(var)) { return true; } return super.references(var); }
public boolean references(QName var) if (select != null && select.references(var)) return true; } return super.references(var); }
10,306
public boolean references(QName var) { if (select != null && select.references(var)) { return true; } return super.references(var); }
public boolean references(QName var) { if (select != null && select.references(var)) { return true; return super.references(var);
10,307
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) { case Bindings....
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) { case Bindings....
10,308
public String format(LogRecord record) { StringBuffer buf = new StringBuffer(400); Level level = record.getLevel(); long millis = record.getMillis(); Object[] params = record.getParameters(); ResourceBundle bundle = record.getResourceBundle(); String key, message; buf.append("<record>"); buf.append(lineSep); ...
public String format(LogRecord record) { StringBuffer buf = new StringBuffer(400); Level level = record.getLevel(); long millis = record.getMillis(); Object[] params = record.getParameters(); ResourceBundle bundle = record.getResourceBundle(); String message; buf.append("<record>"); buf.append(lineSep...
10,310
public XMLStreamReader createXMLStreamReader(Reader reader) throws XMLStreamException { /* return new XMLStreamReaderImpl(reader, null, null, resolver, reporter, validating, namespaceAware, coalescing, repl...
public XMLStreamReader createXMLStreamReader(Reader reader) throws XMLStreamException { /* return new XMLStreamReaderImpl(reader, null, null, resolver, reporter, validating, namespaceAware, coalescing, repl...
10,311
public Dimension getPreferredSize(JComponent c) { maybeUpdateLayoutState(); if (list.getModel().getSize() == 0) return new Dimension(0, 0); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() - 1); return bounds.getSize(); }
public Dimension getPreferredSize(JComponent c) { maybeUpdateLayoutState(); if (list.getModel().getSize() == 0) return new Dimension(0, 0); int nrows = Math.min(list.getVisibleRowCount(), list.getModel().getSize()); Rectangle bounds = getCellBounds(list, 0, nrows - 1); return bounds.getSize(); }
10,313
public Point indexToLocation(JList list, int index) { throw new Error("Not implemented"); }
public Point indexToLocation(JList list, int index) { return new Point(0, convertRowToY(index)); }
10,314
public int locationToIndex(JList list, Point location) { throw new Error("Not implemented"); }
public int locationToIndex(JList list, Point location) { return convertYToRow(location.y); }
10,316
public static ActivationSystem getSystem() throws ActivationException { if (system == null) return DefaultActivationSystem.singleton; else return system; }
public static ActivationSystem getSystem() throws ActivationException { if (system == null) return DefaultActivationSystem.get(); else return system; }
10,317
public ActivationException(String s) { this(s, null); }
public ActivationException() { this(s, null); }
10,318
public ActivationException(String s) { this(s, null); }
public ActivationException(String s) { this(null, null); }
10,319
public ActivationGroupDesc(String className, String location, MarshalledObject data, Properties overrides, ActivationGroupDesc.CommandEnvironment cmd) { throw new Error("Not implemented");}
public ActivationGroupDesc(Properties overrides, ActivationGroupDesc.CommandEnvironment cmd) { throw new Error("Not implemented");}
10,320
boolean remove(Object o);
E remove(int index);
10,321
public int compareTo (BigDecimal val) { if (scale == val.scale) return intVal.compareTo (val.intVal); BigInteger thisParts[] = intVal.divideAndRemainder (BigInteger.valueOf (10).pow (scale)); BigInteger valParts[] = val.intVal.divideAndRemainder (BigInteger.valueOf (10).pow (val.scale)); ...
public int compareTo (BigDecimal val) { if (scale == val.scale) return intVal.compareTo (val.intVal); BigInteger thisParts[] = intVal.divideAndRemainder (BigInteger.valueOf (10).pow (scale)); BigInteger valParts[] = val.intVal.divideAndRemainder (BigInteger.valueOf (10).pow (val.scale)); ...
10,322
public BigInteger abs() { return abs(this); }
private static BigInteger abs(BigInteger x) { return abs(this); }
10,323
public BigInteger abs() { return abs(this); }
public BigInteger abs() { return x.isNegative() ? neg(x) : x; }
10,324
public BigInteger negate() { return neg(this); }
private static boolean negate(int[] dest, int[] src, int len) { return neg(this); }
10,325
public BigInteger negate() { return neg(this); }
public BigInteger negate() { long carry = 1; boolean negative = src[len-1] < 0; for (int i = 0; i < len; i++) { carry += ((long) (~src[i]) & 0xffffffffL); dest[i] = (int) carry; carry >>= 32; } return (negative && dest[len-1] < 0); }
10,326
public final Class getCategory() { return PrinterName.class; }
public Class getCategory() { return PrinterName.class; }
10,327
public final String getName() { return "printer-name"; }
public String getName() { return "printer-name"; }
10,328
public int hashCode() { return value.hashCode() + locale.hashCode(); }
public int hashCode() { return value.hashCode() ^ locale.hashCode(); }
10,329
protected void updateLayout(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape) { Rectangle b = shape.getBounds(); if (ec != null) preferenceChanged(this, true, true); }
protected void updateLayout(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape) { Rectangle b = shape.getBounds(); if (ec != null) preferenceChanged(this, true, true); }
10,330
public static String getClientHost() throws ServerNotActiveException { throw new Error("Not implemented");}
public static String getClientHost() throws ServerNotActiveException { Thread currThread = Thread.currentThread(); if (currThread instanceof RMIIncomingThread) { RMIIncomingThread incomingThread = (RMIIncomingThread) currThread; return incomingThread.getClientHost(); } else { throw new ServerNotActiveException( "Unknow...
10,332
public ServerNotActiveException(String s) { super(s); }
public ServerNotActiveException() { super(s); }
10,333
public ServerNotActiveException(String s) { super(s); }
public ServerNotActiveException(String s) { }
10,334
protected void frameInit() { super.setLayout(new BorderLayout(1, 1)); enableEvents(AWTEvent.WINDOW_EVENT_MASK); getRootPane(); // will do set/create // Setup the defaultLookAndFeelDecoration if requested. if (isDefaultLookAndFeelDecorated() && UIManager.getLookAndFeel().getSupportsWi...
protected void frameInit() { super.setLayout(new BorderLayout()); setBackground(UIManager.getDefaults().getColor("control")); enableEvents(AWTEvent.WINDOW_EVENT_MASK); getRootPane(); // will do set/create // Setup the defaultLookAndFeelDecoration if requested. if (isDefaultLookAndFeelDecora...
10,335
Frame(String title){ super(); this.title = title; // Top-level frames are initially invisible. visible = false; noteFrame(this);}
Frame(){ super(); this.title = title; // Top-level frames are initially invisible. visible = false; noteFrame(this);}
10,336
Frame(String title){ super(); this.title = title; // Top-level frames are initially invisible. visible = false; noteFrame(this);}
Frame(String title){ super(); this.title = title; // Top-level frames are initially invisible. visible = false; noteFrame(this);}
10,337
public abstract boolean addMember(Principal user);
boolean addMember(Principal user);
10,338
public abstract boolean isMember(Principal member);
boolean isMember(Principal member);
10,339
public abstract Enumeration members();
Enumeration members();
10,340
public abstract boolean removeMember(Principal user);
boolean removeMember(Principal user);
10,341
public int findColumn(String columnName) { // Variables int index; String name; int count; // Process Columns count = getColumnCount(); for (index = 0; index < count; index++) { name = getColumnName(index); if (columnName.equals(name) == true) { return index; } // if } // for // Unable to Locate ...
public int findColumn (String columnName) { int count = getColumnCount(); for (int index = 0; index < count; index++) { String name = getColumnName (index); if (name.equals (columnName)) return index; } // Variables int index; String name; int count; // Process Columns count = getColumnCount(); for (index ...
10,342
public int findColumn(String columnName) { // Variables int index; String name; int count; // Process Columns count = getColumnCount(); for (index = 0; index < count; index++) { name = getColumnName(index); if (columnName.equals(name) == true) { return index; } // if } // for // Unable to Locate ...
public int findColumn(String columnName) { // Variables int index; String name; int count; // Process Columns count = getColumnCount(); for (index = 0; index < count; index++) { name = getColumnName(index); if (columnName.equals(name) == true) { return index; } // if } // for // Unable to Locate ...
10,343
public void fireTableChanged(TableModelEvent event) { // Variables Object[] list; int index; TableModelListener listener; // Get Listener List list = listenerList.getListenerList(); for (index = 0; index < list.length; index += 2) { // Get Listener listener = (TableModelListener) list[index + 1]; /...
public void fireTableChanged(TableModelEvent event) { // Variables Object[] list; int index; TableModelListener listener; // Get Listener List list = listenerList.getListenerList(); for (index = 0; index < list.length; index += 2) { // Get Listener listener = (TableModelListener) list[index + 1]; /...
10,344
public void fireTableChanged(TableModelEvent event) { // Variables Object[] list; int index; TableModelListener listener; // Get Listener List list = listenerList.getListenerList(); for (index = 0; index < list.length; index += 2) { // Get Listener listener = (TableModelListener) list[index + 1]; /...
public void fireTableChanged(TableModelEvent event) { // Variables Object[] list; int index; TableModelListener listener; // Get Listener List list = listenerList.getListenerList(); for (index = 0; index < list.length; index += 2) { // Get Listener listener = (TableModelListener) list[index + 1]; /...
10,345
public String getColumnName(int columnIndex) { // Variables int index; int left; int base; int multiplier; StringBuffer buffer; boolean foundFirst; // Ok, this is not the best solution in the world // and it does produce wrong answers starting 1378 // but it's a start. I sure hope there is a more // s...
public String getColumnName (int columnIndex) { int index = columnIndex + 1; StringBuffer buffer = new StringBuffer(); // Variables int index; int left; int base; int multiplier; StringBuffer buffer; boolean foundFirst; // Ok, this is not the best solution in the world // and it does produce wrong answer...
10,346
public String getColumnName(int columnIndex) { // Variables int index; int left; int base; int multiplier; StringBuffer buffer; boolean foundFirst; // Ok, this is not the best solution in the world // and it does produce wrong answers starting 1378 // but it's a start. I sure hope there is a more // s...
public String getColumnName(int columnIndex) { // Variables int index; int left; int base; int multiplier; StringBuffer buffer; boolean foundFirst; // Ok, this is not the best solution in the world // and it does produce wrong answers starting 1378 // but it's a start. I sure hope there is a more // s...
10,347
createURLStreamHandler(String protocol);
URLStreamHandler createURLStreamHandler(String protocol);
10,350
private AccessibleJTableHeaderCell(JTableHeader h, Component comp, int r, int c) { }
private AccessibleJTableHeaderCell(JTableHeader h, Component comp, int r, int c) { header = h; columnIndex = c; }
10,351
public AccessibleContext getAccessibleContext() { // TODO Auto-generated method stub return null; }
public AccessibleContext getAccessibleContext() { // TODO Auto-generated method stub return this; }
10,352
public Accessible getAccessibleAt(int r, int c) { return getAccessibleChild(r * getAccessibleColumnCount() + c); }
public Accessible getAccessibleAt(int r, int c) { TableCellRenderer cellRenderer = getCellRenderer(r, c); Component renderer = cellRenderer.getTableCellRendererComponent( JTable.this, getValueAt(r, c), isCellSelected(r, c), false, r, c); if (renderer instanceof Accessible) return (Accessible) renderer; retu...
10,354
public static Border createLineBorder( Color color, int thickness) { /* Creates a line border withe the specified color and width. The width applies to all 4 sides of the border. To specify widths individually for the top, bottom, left, and right, use createMatteBorder(int,int,int,int,Color). Parameters: ...
public static Border createLineBorder( Color color, int thickness) { /* Creates a line border withe the specified color and width. The width applies to all 4 sides of the border. To specify widths individually for the top, bottom, left, and right, use createMatteBorder(int,int,int,int,Color). Parameters: ...
10,355
public void setBorderPainted(boolean b) { if (b != paint_border) { paint_border = b; revalidate(); repaint(); } }
public void setBorderPainted(boolean b) { if (b != paint_border) { paint_border = b; revalidate(); repaint(); } }
10,356
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int size = w*h; int outOffset = 0; int[] pixel = null; if (iArray == null) iArray = new int[w*h*numBands]; for (int yy=y; yy<(y+h); yy++) { for (int xx=x; xx<(x+w); xx++) { getPixel(xx, yy, pixel, data); Sy...
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int size = w*h; int outOffset = 0; int[] pixel = null; if (iArray == null) iArray = new int[w*h*numBands]; for (int yy=y; yy<(y+h); yy++) { for (int xx=x; xx<(x+w); xx++) { pixel = getPixel(xx, yy, pixel, data...
10,357
public int getColumnCount() { return (columnIdentifiers == null ? 0 : columnIdentifiers.size()); }
public int getColumnCount() { return (columnIdentifiers == null ? 0 : columnIdentifiers.size()); }
10,358
public void setColumnIdentifiers(Vector columnIdentifiers) { this.columnIdentifiers = columnIdentifiers; setColumnCount((columnIdentifiers == null ? 0 : columnIdentifiers.size())); }
public void setColumnIdentifiers(Vector columnIdentifiers) { this.columnIdentifiers = columnIdentifiers; setColumnCount(columnIdentifiers == null ? 0 : columnIdentifiers.size()); }
10,360
public void setRowCount(int rowCount) { int existingRowCount = dataVector.size(); if (rowCount < existingRowCount) { dataVector.setSize(rowCount); fireTableRowsDeleted(rowCount,existingRowCount-1); } else { int rowsToAdd = rowCount - existingRowCount; for (int i = 0; i < ...
public void setRowCount(int rowCount) { int existingRowCount = dataVector.size(); if (rowCount < existingRowCount) { dataVector.setSize(rowCount); fireTableRowsDeleted(rowCount,existingRowCount-1); } else { int rowsToAdd = rowCount - existingRowCount; for (int i = 0; i < ...
10,361