bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); if (DEBUG) debug("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("m... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); if (DEBUG) debug("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("m... | 18,412 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); if (DEBUG) debug("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("m... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); if (DEBUG) debug("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("m... | 18,413 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); if (DEBUG) debug("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("m... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); if (DEBUG) debug("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("m... | 18,414 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); if (DEBUG) debug("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("m... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); if (DEBUG) debug("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("m... | 18,415 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); if (DEBUG) debug("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("m... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); if (DEBUG) debug("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("m... | 18,416 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); if (DEBUG) debug("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("m... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); if (DEBUG) debug("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("m... | 18,417 |
protected void installNextButtonListeners(Component c) { c.addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent evt) { if (! spinner.isEnabled()) return; increment(); timer.setInitialDelay(500); timer.start(); } public void mouseReleased(MouseEvent evt) ... | protected void installNextButtonListeners(Component c) { c.addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent evt) { if (! spinner.isEnabled()) return; increment(); timer.setInitialDelay(500); timer.start(); } public void mouseReleased(MouseEvent evt) ... | 18,419 |
protected void installPreviousButtonListeners(Component c) { c.addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent evt) { if (! spinner.isEnabled()) return; decrement(); timer.setInitialDelay(500); timer.start(); } public void mouseReleased(MouseEvent evt... | protected void installPreviousButtonListeners(Component c) { c.addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent evt) { if (! spinner.isEnabled()) return; decrement(); timer.setInitialDelay(500); timer.start(); } public void mouseReleased(MouseEvent evt... | 18,420 |
public byte[] encodePrivateKey(PrivateKey key) { if (! (key instanceof GnuRSAPrivateKey)) throw new IllegalArgumentException("Wrong key type"); GnuRSAPrivateKey pk = (GnuRSAPrivateKey) key; BigInteger n = pk.getN(); BigInteger e = pk.getE(); BigInteger d = pk.getPrivateExponent(); BigInteger p... | public byte[] encodePrivateKey(PrivateKey key) { if (! (key instanceof GnuRSAPrivateKey)) throw new InvalidParameterException("Wrong key type"); GnuRSAPrivateKey pk = (GnuRSAPrivateKey) key; BigInteger n = pk.getN(); BigInteger e = pk.getE(); BigInteger d = pk.getPrivateExponent(); BigInteger ... | 18,421 |
public ObjectReferenceTemplateHolder(ObjectReferenceTemplate initialValue) { value = initialValue; } | public ObjectReferenceTemplateHolder() { value = initialValue; } | 18,422 |
public ObjectReferenceTemplateHolder(ObjectReferenceTemplate initialValue) { value = initialValue; } | public ObjectReferenceTemplateHolder(ObjectReferenceTemplate initialValue) { } | 18,423 |
public void installUI(JComponent c) { super.installUI(c); if (c instanceof JSlider) { slider = (JSlider) c; focusRect = new Rectangle(); contentRect = new Rectangle(); thumbRect = new Rectangle(); trackRect = new Rectangle(); tickRect = new Rectangle(); labelRect = new Rectangle(); insetCache = slider.get... | public void installUI(JComponent c) { super.installUI(c); if (c instanceof JSlider) { slider = (JSlider) c; focusRect = new Rectangle(); contentRect = new Rectangle(); thumbRect = new Rectangle(); trackRect = new Rectangle(); tickRect = new Rectangle(); labelRect = new Rectangle(); insetCache = slider.get... | 18,424 |
public static TypeCode read(org.omg.CORBA.portable.InputStream in) throws BadKind, Bounds { TCKind kind = TCKind.from_int(in.read_long()); TypeCode rt; generalTypeCode g; recordTypeCode r; recordTypeCode.Field f; stringTypeCode s; int n; switch (kind.value()) { ... | public static TypeCode read(org.omg.CORBA.portable.InputStream in) throws BadKind, Bounds { TCKind kind = TCKind.from_int(in.read_long()); TypeCode rt; generalTypeCode g; recordTypeCode r; recordTypeCode.Field f; stringTypeCode s; int n; switch (kind.value()) { ... | 18,425 |
public static TypeCode read(org.omg.CORBA.portable.InputStream in) throws BadKind, Bounds { TCKind kind = TCKind.from_int(in.read_long()); TypeCode rt; generalTypeCode g; recordTypeCode r; recordTypeCode.Field f; stringTypeCode s; int n; switch (kind.value()) { ... | public static TypeCode read(org.omg.CORBA.portable.InputStream in) throws BadKind, Bounds { TCKind kind = TCKind.from_int(in.read_long()); TypeCode rt; generalTypeCode g; recordTypeCode r; recordTypeCode.Field f; stringTypeCode s; int n; switch (kind.value()) { ... | 18,426 |
public static TypeCode read(org.omg.CORBA.portable.InputStream in) throws BadKind, Bounds { TCKind kind = TCKind.from_int(in.read_long()); TypeCode rt; generalTypeCode g; recordTypeCode r; recordTypeCode.Field f; stringTypeCode s; int n; switch (kind.value()) { ... | public static TypeCode read(org.omg.CORBA.portable.InputStream in) throws BadKind, Bounds { TCKind kind = TCKind.from_int(in.read_long()); TypeCode rt; generalTypeCode g; recordTypeCode r; recordTypeCode.Field f; stringTypeCode s; int n; switch (kind.value()) { ... | 18,427 |
public static TypeCode read(org.omg.CORBA.portable.InputStream in) throws BadKind, Bounds { TCKind kind = TCKind.from_int(in.read_long()); TypeCode rt; generalTypeCode g; recordTypeCode r; recordTypeCode.Field f; stringTypeCode s; int n; switch (kind.value()) { ... | public static TypeCode read(org.omg.CORBA.portable.InputStream in) throws BadKind, Bounds { TCKind kind = TCKind.from_int(in.read_long()); TypeCode rt; generalTypeCode g; recordTypeCode r; recordTypeCode.Field f; stringTypeCode s; int n; switch (kind.value()) { ... | 18,428 |
public static TypeCode read(org.omg.CORBA.portable.InputStream in) throws BadKind, Bounds { TCKind kind = TCKind.from_int(in.read_long()); TypeCode rt; generalTypeCode g; recordTypeCode r; recordTypeCode.Field f; stringTypeCode s; int n; switch (kind.value()) { ... | public static TypeCode read(org.omg.CORBA.portable.InputStream in) throws BadKind, Bounds { TCKind kind = TCKind.from_int(in.read_long()); TypeCode rt; generalTypeCode g; recordTypeCode r; recordTypeCode.Field f; stringTypeCode s; int n; switch (kind.value()) { ... | 18,429 |
public static TypeCode read(org.omg.CORBA.portable.InputStream in) throws BadKind, Bounds { TCKind kind = TCKind.from_int(in.read_long()); TypeCode rt; generalTypeCode g; recordTypeCode r; recordTypeCode.Field f; stringTypeCode s; int n; switch (kind.value()) { ... | public static TypeCode read(org.omg.CORBA.portable.InputStream in) throws BadKind, Bounds { TCKind kind = TCKind.from_int(in.read_long()); TypeCode rt; generalTypeCode g; recordTypeCode r; recordTypeCode.Field f; stringTypeCode s; int n; switch (kind.value()) { ... | 18,430 |
public static TypeCode read(org.omg.CORBA.portable.InputStream in) throws BadKind, Bounds { TCKind kind = TCKind.from_int(in.read_long()); TypeCode rt; generalTypeCode g; recordTypeCode r; recordTypeCode.Field f; stringTypeCode s; int n; switch (kind.value()) { ... | public static TypeCode read(org.omg.CORBA.portable.InputStream in) throws BadKind, Bounds { TCKind kind = TCKind.from_int(in.read_long()); TypeCode rt; generalTypeCode g; recordTypeCode r; recordTypeCode.Field f; stringTypeCode s; int n; switch (kind.value()) { ... | 18,431 |
calcSize(Container target, int what){ synchronized (target.getTreeLock ()) { Insets ins = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Componen... | calcSize(Container target, int what){ synchronized (target.getTreeLock ()) { Insets ins = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Componen... | 18,432 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); String value; if (ret instanceof Collection) { StringBuffer buf = new StringBuf... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); String value; if (ret instanceof Collection) { StringBuffer buf = new StringBuf... | 18,433 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); String value; if (ret instanceof Collection) { StringBuffer buf = new StringBuf... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); String value; if (ret instanceof Collection) { StringBuffer buf = new StringBuf... | 18,434 |
ColorPaintContext(int c) { color = c; } | ColorPaintContext(int colorRGB) { color = c; } | 18,435 |
ColorPaintContext(int c) { color = c; } | ColorPaintContext(int c) { this(ColorModel.getRGBdefault(), colorRGB); } | 18,436 |
public ColorModel getColorModel() { return ColorModel.getRGBdefault(); } | public ColorModel getColorModel() { return colorModel; } | 18,437 |
public Raster getRaster(int x, int y, int w, int h) { // XXX Implement. Sun uses undocumented implementation class // sun.awt.image.IntegerInterleavedRaster. throw new Error("not implemented"); } | public Raster getRaster(int x, int y, int width, int height) { // XXX Implement. Sun uses undocumented implementation class // sun.awt.image.IntegerInterleavedRaster. throw new Error("not implemented"); } | 18,438 |
public Raster getRaster(int x, int y, int w, int h) { // XXX Implement. Sun uses undocumented implementation class // sun.awt.image.IntegerInterleavedRaster. throw new Error("not implemented"); } | public Raster getRaster(int x, int y, int w, int h) { // XXX Implement. Sun uses undocumented implementation class // sun.awt.image.IntegerInterleavedRaster. if( cachedRaster == null || cachedRaster.getWidth() < width || cachedRaster.getHeight() < height) { cachedRaster = new ColorRaster(colorModel, 0, 0, ... | 18,439 |
public void enableInputMethods(boolean enable) { // XXX Implement. throw new Error("not implemented"); } | public void enableInputMethods(boolean enable) { // XXX Implement. if (enable) eventMask |= AWTEvent.INPUT_ENABLED_EVENT_MASK; else eventMask &= ~AWTEvent.INPUT_ENABLED_EVENT_MASK; } | 18,440 |
public void resize(Dimension d) { resize (d.width, d.height); } | public void resize(int width, int height) { resize (d.width, d.height); } | 18,441 |
public void resize(Dimension d) { resize (d.width, d.height); } | public void resize(Dimension d) { setBounds(this.x, this.y, width, height); } | 18,442 |
public Event (Object target, long when, int id, int x, int y, int key, int modifiers) { this.target = target; this.when = when; this.id = id; this.x = x; this.y = y; this.key = key; this.modifiers = modifiers; } | public Event (Object target, long when, int id, int x, int y, int key, int modifiers) { this.target = target; this.when = when; this.id = id; this.x = x; this.y = y; this.key = key; this.modifiers = modifiers; } | 18,443 |
public Event (Object target, long when, int id, int x, int y, int key, int modifiers) { this.target = target; this.when = when; this.id = id; this.x = x; this.y = y; this.key = key; this.modifiers = modifiers; } | public Event (Object target, long when, int id, int x, int y, int key, int modifiers) { this.target = target; this.when = when; this.id = id; this.x = x; this.y = y; this.key = key; this.modifiers = modifiers; } | 18,444 |
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(... | public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 " + "Certificates and CRLs, PKIX certificate path validators, " + "Collection cert stores, Diffie-Hellman key agreement and " + "key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { pub... | 18,445 |
public JdwpPacket (JdwpPacket pkt) { _id = pkt.getId (); } | public JdwpPacket () { _id = pkt.getId (); } | 18,446 |
public JdwpPacket (JdwpPacket pkt) { _id = pkt.getId (); } | public JdwpPacket (JdwpPacket pkt) { } | 18,447 |
getDescent(){ return(1);} | getDescent(){ return(1);} | 18,448 |
ClassLoader getCallingClassLoader() { Class[] stack = getClassContext(); /* for (int i = 0; i < stack.length; i++) { if (stack[i] != Security.class && stack[i] != ResourceBundle.class) return stack[i].getClassLoader(); } return null; */ return stack[3].getClassLoader(); } | ClassLoader getCallingClassLoader() { Class[] stack = getClassContext(); /* for (int i = 0; i < stack.length; i++) { if (stack[i] != Security.class && stack[i] != ResourceBundle.class) return stack[i].getClassLoader(); } return null; */ return stack[3].getClassLoader(); } | 18,449 |
public BeanInfo getBeanInfo() { int defaultProperty = -1; int defaultEvent = -1; PropertyDescriptor[] Aproperties = new PropertyDescriptor[properties.size()]; int i = 0; Enumeration e = properties.elements(); while (e.hasMoreElements()) { Aproperties[i] = (PropertyDescriptor) e.nextElement(); if (defaultProp... | public BeanInfo getBeanInfo() { int defaultProperty = -1; int defaultEvent = -1; PropertyDescriptor[] Aproperties = new PropertyDescriptor[properties.size()]; int i = 0; Enumeration e = properties.elements(); while (e.hasMoreElements()) { Aproperties[i] = (PropertyDescriptor) e.nextElement(); if (defaultProp... | 18,450 |
public BeanInfo getBeanInfo() { int defaultProperty = -1; int defaultEvent = -1; PropertyDescriptor[] Aproperties = new PropertyDescriptor[properties.size()]; int i = 0; Enumeration e = properties.elements(); while (e.hasMoreElements()) { Aproperties[i] = (PropertyDescriptor) e.nextElement(); if (defaultProp... | public BeanInfo getBeanInfo() { int defaultProperty = -1; int defaultEvent = -1; PropertyDescriptor[] Aproperties = new PropertyDescriptor[properties.size()]; int i = 0; Enumeration e = properties.elements(); while (e.hasMoreElements()) { Aproperties[i] = (PropertyDescriptor) e.nextElement(); if (defaultProp... | 18,451 |
public JPasswordField(String text) { this(null, text, 0); } | public JPasswordField() { this(null, text, 0); } | 18,452 |
public JPasswordField(String text) { this(null, text, 0); } | public JPasswordField(String text) { this(null, null, 0); } | 18,453 |
public String getText() { try { return getDocument().getText(0, getDocument().getLength()); } catch (BadLocationException ble) { throw new AssertionError("This should not happen"); } } | public String getText() { try { return getDocument().getText(0, getDocument().getLength()); } catch (BadLocationException ble) { throw new AssertionError(ble); } } | 18,454 |
public BufferedImage(ColorModel colormodel, WritableRaster writableraster, boolean premultiplied, Hashtable properties) { init(colormodel, writableraster, premultiplied, properties, TYPE_CUSTOM); // TODO: perhaps try to identify type? } | public BufferedImage(ColorModel colormodel, WritableRaster writableraster, boolean premultiplied, Hashtable properties) { init(colormodel, writableraster, premultiplied, properties, TYPE_CUSTOM); // TODO: perhaps try to identify type? } | 18,455 |
public WritableRaster copyData(WritableRaster dest) { if (dest == null) dest = raster.createCompatibleWritableRaster(); int x = dest.getMinX(); int y = dest.getMinY(); int w = dest.getWidth(); int h = dest.getHeight(); // create a src child that has the right bounds... WritableRaster src = raster.createWrita... | public WritableRaster copyData(WritableRaster dest) { if (dest == null) dest = raster.createCompatibleWritableRaster(getMinX(), getMinY(), getWidth(),getHeight()); int x = dest.getMinX(); int y = dest.getMinY(); int w = dest.getWidth(); int h = dest.getHeight(); // create a src child that has the right bounds.... | 18,456 |
public Graphics2D createGraphics() { return VMImageUtils.getAPI().createGraphics(this); } | public Graphics2D createGraphics() { return VMImageUtils.getAPI().createGraphics(this); } | 18,459 |
public ImageProducer getSource() { // TODO This should be faster using direct access to raster.getDataBuffer. final int w = raster.getWidth(); final int h = raster.getHeight(); final int[] pixels = raster.getPixels(0, 0, w, h, (int[])null); return new MemoryImageSource(w, h, getColorModel(), pixels, 0, w); } | public ImageProducer getSource() { // TODO This should be faster using direct access to raster.getDataBuffer. final int w = raster.getWidth(); final int h = raster.getHeight(); final int[] pixels = raster.getPixels(0, 0, w, h, (int[])null); return new MemoryImageSource(w, h, getColorModel(), pixels, 0, w); } | 18,460 |
public String toString() { // FIXME: implement: return super.toString(); } | public String toString() { // FIXME: implement: return super.toString(); } | 18,462 |
public WritableRaster createCompatibleWritableRaster(int x, int y, int w, int h) { SampleModel sm = getSampleModel().createCompatibleSampleModel(w, h); return new WritableRaster(sm, sm.createDataBuffer(), new Point(x, y)); } | public WritableRaster createCompatibleWritableRaster(int x, int y, int w, int h) { SampleModel sm = getSampleModel().createCompatibleSampleModel(w, h); return new WritableRaster(sm, sm.createDataBuffer(), new Point(x, y)); } | 18,463 |
public WritableRaster createCompatibleWritableRaster(int x, int y, int w, int h) { SampleModel sm = getSampleModel().createCompatibleSampleModel(w, h); return new WritableRaster(sm, sm.createDataBuffer(), new Point(x, y)); } | public WritableRaster createCompatibleWritableRaster(int x, int y, int w, int h) { SampleModel sm = getSampleModel().createCompatibleSampleModel(w, h); return new WritableRaster(sm, sm.createDataBuffer(), new Point(x, y)); } | 18,464 |
public void focusLost(FocusEvent e) { if (e.getSource() instanceof AbstractButton) { AbstractButton button = (AbstractButton) e.getSource(); ButtonModel model = button.getModel(); model.setArmed(false); if (button.isFocusPainted()) button.repaint(); } } | public void focusLost(FocusEvent e) { if (e.getSource() instanceof AbstractButton) { AbstractButton button = (AbstractButton) e.getSource(); ButtonModel model = button.getModel(); model.setArmed(false); if (button.isFocusPainted()) button.repaint(); } } | 18,465 |
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba... | public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware && !namespaces.isEmpty()) namespaces.removeFirst(); // Pop b... | 18,466 |
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba... | public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba... | 18,467 |
public void paint(Graphics g) { int textIconGap = 4; // default value Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetrics fm = editingComponent.getToolkit().getFontMetrics(getFont()); SwingUtilities.layoutCompoundLabel(((... | public void paint(Graphics g) { int textIconGap = 4; // default value Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetrics fm = editingComponent.getToolkit().getFontMetrics(getFont()); SwingUtilities.layoutCompoundLabel(((... | 18,468 |
public void paint(Graphics g) { int textIconGap = 4; // default value Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetrics fm = editingComponent.getToolkit().getFontMetrics(getFont()); SwingUtilities.layoutCompoundLabel(((... | public void paint(Graphics g) { int textIconGap = 4; // default value Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetrics fm = editingComponent.getToolkit().getFontMetrics(getFont()); SwingUtilities.layoutCompoundLabel(((... | 18,469 |
public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { setTree(tree); this.renderer = renderer; if (editor == null) editor = createTreeCellEditor(); realEditor = editor; configureEditingComponent(tree, renderer, re... | public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { setTree(tree); this.renderer = renderer; if (editor == null) editor = createTreeCellEditor(); realEditor = editor; configureEditingComponent(tree, renderer, re... | 18,470 |
public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { setTree(tree); this.renderer = renderer; if (editor == null) editor = createTreeCellEditor(); realEditor = editor; configureEditingComponent(tree, renderer, re... | public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { setTree(tree); this.renderer = renderer; if (editor == null) editor = createTreeCellEditor(); realEditor = editor; configureEditingComponent(tree, renderer, re... | 18,471 |
public void actionPerformed(ActionEvent e) { if (tree != null && lastPath != null) tree.startEditingAtPath(lastPath); } | public void actionPerformed(ActionEvent e) { if (lastPath != null && tPath != null && tPath.equals(lastPath)) { tree.startEditingAtPath(lastPath); } | 18,472 |
public void addCellEditorListener(CellEditorListener listener) { listenerList.add(CellEditorListener.class, listener); } | public void addCellEditorListener(CellEditorListener listener) { realEditor.addCellEditorListener(listener); } | 18,474 |
protected boolean canEditImmediately(EventObject event) { if (event == null || (!(event instanceof MouseEvent) && (((MouseEvent) event). getClickCount() > 2 || inHitRegion(((MouseEvent) event).getX(), ((MouseEvent) event).getY())))) return true; else if (sho... | protected boolean canEditImmediately(EventObject event) { if (event == null || (!(event instanceof MouseEvent) && (((MouseEvent) event). getClickCount() > 2 || inHitRegion(((MouseEvent) event).getX(), ((MouseEvent) event).getY())))) return true; else if (sho... | 18,475 |
protected boolean canEditImmediately(EventObject event) { if (event == null || (!(event instanceof MouseEvent) && (((MouseEvent) event). getClickCount() > 2 || inHitRegion(((MouseEvent) event).getX(), ((MouseEvent) event).getY())))) return true; else if (sho... | protected boolean canEditImmediately(EventObject event) { if (event == null || (!(event instanceof MouseEvent) && (((MouseEvent) event). getClickCount() > 2 || inHitRegion(((MouseEvent) event).getX(), ((MouseEvent) event).getY())))) return true; else if (sho... | 18,476 |
public void cancelCellEditing() { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); timer.stop(); realEditor.cancelCellEditing(); tree.setCellEditor(null); } | public void cancelCellEditing() { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); timer.stop(); realEditor.cancelCellEditing(); tree.setCellEditor(null); } | 18,477 |
public void cancelCellEditing() { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); timer.stop(); realEditor.cancelCellEditing(); tree.setCellEditor(null); } | public void cancelCellEditing() { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); timer.stop(); realEditor.cancelCellEditing(); } } | 18,478 |
private void configureEditingComponent(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { if (tree != null) { lastPath = tree.getSelectionPath(); if (lastPath != null) { lastR... | private void configureEditingComponent(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { if (tree != null) { lastPath = tree.getSelectionPath(); if (lastPath != null) { lastR... | 18,479 |
private void configureEditingComponent(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { if (tree != null) { lastPath = tree.getSelectionPath(); if (lastPath != null) { lastR... | private void configureEditingComponent(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { if (tree != null) { lastPath = tree.getSelectionPath(); if (lastPath != null) { ... | 18,480 |
private void configureEditingComponent(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { if (tree != null) { lastPath = tree.getSelectionPath(); if (lastPath != null) { lastR... | private void configureEditingComponent(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { if (tree != null) { lastPath = tree.getSelectionPath(); if (lastPath != null) { lastR... | 18,481 |
protected TreeCellEditor createTreeCellEditor() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); realEditor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( defaults.getBorder("Tree.selectionBorder"))); canEdit = true; return realEditor; } | protected TreeCellEditor createTreeCellEditor() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); realEditor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( defaults.getBorder("Tree.selectionBorder"))); return realEditor; } | 18,482 |
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) createTreeCellEditor(); Component c = realEditor.getTre... | public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) createTreeCellEditor(); return realEditor.getTreeCellEd... | 18,483 |
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) createTreeCellEditor(); Component c = realEditor.getTre... | public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) createTreeCellEditor(); Component c = realEditor.getTre... | 18,484 |
protected boolean inHitRegion(int x, int y) { Dimension d = editingContainer.getPreferredSize(); int textX = offset; if (editingIcon != null) textX += editingIcon.getIconWidth() + 4; if ((d.width > textX && x >= textX && x <= d.width) && (y >= 0 && y <= d.height)) return true; ... | protected boolean inHitRegion(int x, int y) { Dimension d = editingContainer.getPreferredSize(); int textX = offset; if (editingIcon != null) textX += editingIcon.getIconWidth() + 4; if ((d.width > textX && x >= textX && x <= d.width) && (y >= 0 && y <= d.height)) return true; ... | 18,485 |
protected boolean inHitRegion(int x, int y) { Dimension d = editingContainer.getPreferredSize(); int textX = offset; if (editingIcon != null) textX += editingIcon.getIconWidth() + 4; if ((d.width > textX && x >= textX && x <= d.width) && (y >= 0 && y <= d.height)) return true; ... | protected boolean inHitRegion(int x, int y) { Dimension d = editingContainer.getPreferredSize(); int textX = offset; if (editingIcon != null) textX += editingIcon.getIconWidth() + 4; if ((d.width > textX && x >= textX && x <= d.width) && (y >= 0 && y <= d.height)) return true; ... | 18,486 |
public boolean isCellEditable(EventObject event) { // FIXME: add canedit and caneditimmediately to if. if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (realEditor.isCellEditable(event)) { prepareForEditing(); return true; } return ... | public boolean isCellEditable(EventObject event) { // FIXME: add canedit and caneditimmediately to if. if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (editingComponent != null && realEditor.isCellEditable(event)) { prepareForEditing(); re... | 18,487 |
public void removeCellEditorListener(CellEditorListener listener) { listenerList.remove(CellEditorListener.class, listener); } | public void removeCellEditorListener(CellEditorListener listener) { realEditor.removeCellEditorListener(listener); } | 18,489 |
protected boolean shouldStartEditingTimer(EventObject event) { if (!(event instanceof MouseEvent) && inHitRegion(((MouseEvent) event).getX(), ((MouseEvent) event).getY()) && ((MouseEvent) event). getClickCount() == 1) return true; return false; } | protected boolean shouldStartEditingTimer(EventObject event) { if (!(event instanceof MouseEvent) && inHitRegion(((MouseEvent) event).getX(), ((MouseEvent) event).getY()) && ((MouseEvent) event). getClickCount() == 1) return true; return false; } | 18,490 |
public boolean stopCellEditing() { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (realEditor.stopCellEditing()) { timer.stop(); tree.setCellEditor(null); return true; } return false; } | public boolean stopCellEditing() { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (realEditor.stopCellEditing()) { timer.stop(); tree.setCellEditor(null); return true; } return false; } | 18,492 |
public boolean stopCellEditing() { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (realEditor.stopCellEditing()) { timer.stop(); tree.setCellEditor(null); return true; } return false; } | public boolean stopCellEditing() { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (realEditor.stopCellEditing()) { timer.stop(); return true; } return false; } | 18,493 |
public void valueChanged(TreeSelectionEvent e) { lastPath = e.getNewLeadSelectionPath(); lastRow = tree.getRowForPath(lastPath); TreeSelectionListener[] listeners = tree.getTreeSelectionListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].valueChanged(e); } | public void valueChanged(TreeSelectionEvent e) { lastPath = e.getNewLeadSelectionPath(); lastRow = tree.getRowForPath(lastPath); TreeSelectionListener[] listeners = tree.getTreeSelectionListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].valueChanged(e); } | 18,494 |
public abstract boolean isLeaf(Object node); | boolean isLeaf(Object node); | 18,495 |
public synchronized ZipEntry getEntry(String name) { ZipEntry entry = super.getEntry(name); if (entry != null) { JarEntry jarEntry = new JarEntry(entry); Manifest manifest; try { manifest = getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jarEntry.... | public synchronized ZipEntry getEntry(String name) { ZipEntry entry = super.getEntry(name); if (entry != null) { JarEntry jarEntry = new JarEntry(entry); Manifest manifest; try { manifest = getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jarEntry.... | 18,496 |
public static Iterator lookupProviders(Class spi, ClassLoader loader) { InputStream stream; String resourceName; Enumeration urls; if (spi == null) throw new IllegalArgumentException(); if (loader == null) loader = ClassLoader.getSystemClassLoader(); ... | public static Iterator lookupProviders(Class spi, ClassLoader loader) { String resourceName; Enumeration urls; if (spi == null) throw new IllegalArgumentException(); if (loader == null) loader = ClassLoader.getSystemClassLoader(); resourceName = "M... | 18,506 |
public PluginRegistryModel(URL[] pluginFiles) throws PluginException { descriptors = loadDescriptors(pluginFiles); resolveDescriptors(); } | public PluginRegistryModel(URL[] pluginFiles) throws PluginException { this.extensionPoints = new BootableHashMap(); this.descriptorMap = new BootableHashMap(); loadDescriptors(pluginFiles); resolveDescriptors(); } | 18,507 |
public Iterator getDescriptorIterator() { return new ObjectArrayIterator(descriptors); } | public Iterator getDescriptorIterator() { return descriptorMap.values().iterator(); } | 18,508 |
public ExtensionPoint getExtensionPoint(String id) { return (ExtensionPoint) getExtensionPointsCache().get(id); } | public ExtensionPoint getExtensionPoint(String id) { return (ExtensionPoint) extensionPoints.get(id); } | 18,509 |
public PluginDescriptor getPluginDescriptor(String pluginId) { final int max = descriptors.length; for (int i = 0; i < max; i++) { if (descriptors[i].getId().equals(pluginId)) { return descriptors[i]; } } return null; } | public PluginDescriptor getPluginDescriptor(String pluginId) { final int max = descriptors.length; for (int i = 0; i < max; i++) { if (descriptors[i].getId().equals(pluginId)) { return descriptors[i]; } } return null; } | 18,510 |
private PluginDescriptorModel[] loadDescriptors(URL[] pluginFiles) throws PluginException { final int max = pluginFiles.length; final PluginDescriptorModel[] list = new PluginDescriptorModel[max]; for (int i = 0; i < max; i++) { final URL url = pluginFiles[i]; //reader.setValidation(true); //reader.setValidat... | private PluginDescriptorModel[] loadDescriptors(URL[] pluginFiles) throws PluginException { final int max = pluginFiles.length; final PluginDescriptorModel[] list = new PluginDescriptorModel[max]; for (int i = 0; i < max; i++) { final URL url = pluginFiles[i]; //reader.setValidation(true); //reader.setValidat... | 18,511 |
private PluginDescriptorModel[] loadDescriptors(URL[] pluginFiles) throws PluginException { final int max = pluginFiles.length; final PluginDescriptorModel[] list = new PluginDescriptorModel[max]; for (int i = 0; i < max; i++) { final URL url = pluginFiles[i]; //reader.setValidation(true); //reader.setValidat... | private PluginDescriptorModel[] loadDescriptors(URL[] pluginFiles) throws PluginException { final int max = pluginFiles.length; final PluginDescriptorModel[] list = new PluginDescriptorModel[max]; for (int i = 0; i < max; i++) { final URL url = pluginFiles[i]; //reader.setValidation(true); //reader.setValidat... | 18,512 |
private PluginDescriptorModel[] loadDescriptors(URL[] pluginFiles) throws PluginException { final int max = pluginFiles.length; final PluginDescriptorModel[] list = new PluginDescriptorModel[max]; for (int i = 0; i < max; i++) { final URL url = pluginFiles[i]; //reader.setValidation(true); //reader.setValidat... | private PluginDescriptorModel[] loadDescriptors(URL[] pluginFiles) throws PluginException { final int max = pluginFiles.length; final PluginDescriptorModel[] list = new PluginDescriptorModel[max]; for (int i = 0; i < max; i++) { final URL url = pluginFiles[i]; //reader.setValidation(true); //reader.setValidat... | 18,513 |
protected void registerExtensionPoint(ExtensionPoint ep) throws PluginException { final HashMap epMap = getExtensionPointsCache(); if (epMap.containsKey(ep.getUniqueIdentifier())) { throw new PluginException("Duplicate extension point " + ep.getUniqueIdentifier()); } epMap.put(ep.getUniqueIdentifier(), ep); } | protected void registerExtensionPoint(ExtensionPoint ep) throws PluginException { final HashMap epMap = getExtensionPointsCache(); if (epMap.containsKey(ep.getUniqueIdentifier())) { throw new PluginException("Duplicate extension point " + ep.getUniqueIdentifier()); } epMap.put(ep.getUniqueIdentifier(), ep); } | 18,514 |
private void resolveDescriptors() throws PluginException { final int max = descriptors.length; for (int i = 0; i < max; i++) { descriptors[i].resolve(); } } | private void resolveDescriptors() throws PluginException { final int max = descriptors.length; for (int i = 0; i < max; i++) { descriptors[i].resolve(); } } | 18,515 |
public PluginDescriptorModel(PluginRegistryModel registry, XMLElement e) throws PluginException { this.registry = registry; id = getAttribute(e, "id", true); name = getAttribute(e, "name", true); providerName = getAttribute(e, "provider-name", false); version = getAttribute(e, "version", true); className = getAt... | public PluginDescriptorModel(PluginRegistryModel registry, XMLElement e) throws PluginException { this.registry = registry; id = getAttribute(e, "id", true); name = getAttribute(e, "name", true); providerName = getAttribute(e, "provider-name", false); version = getAttribute(e, "version", true); className = getAt... | 18,516 |
private final void enterSlowPath() { // No yet owner, try to obtain the lock while (true) { // Lock this monitor first mutex.lock(); // Try to claim this monitor if (getLCAddress().attempt(0, 1)) { // Success, we now own this monit... | private final void enterSlowPath() { // No yet owner, try to obtain the lock while (true) { // Lock this monitor first mutex.lock(); // Try to claim this monitor if (getLCAddress().attempt(0, 1)) { // Success, we now own this monit... | 18,517 |
private final void enterSlowPath() { // No yet owner, try to obtain the lock while (true) { // Lock this monitor first mutex.lock(); // Try to claim this monitor if (getLCAddress().attempt(0, 1)) { // Success, we now own this monit... | private final void enterSlowPath() { // No yet owner, try to obtain the lock while (true) { // Lock this monitor first mutex.lock(); // Try to claim this monitor if (getLCAddress().attempt(0, 1)) { // Success, we now own this monit... | 18,518 |
private final void enterSlowPath() { // No yet owner, try to obtain the lock while (true) { // Lock this monitor first mutex.lock(); // Try to claim this monitor if (getLCAddress().attempt(0, 1)) { // Success, we now own this monit... | private final void enterSlowPath() { // No yet owner, try to obtain the lock while (true) { // Lock this monitor first mutex.lock(); // Try to claim this monitor if (getLCAddress().attempt(0, 1)) { // Success, we now own this monit... | 18,519 |
private final void enterSlowPath() { // No yet owner, try to obtain the lock while (true) { // Lock this monitor first mutex.lock(); // Try to claim this monitor if (getLCAddress().attempt(0, 1)) { // Success, we now own this monit... | private final void enterSlowPath() { // No yet owner, try to obtain the lock while (true) { // Lock this monitor first mutex.lock(); // Try to claim this monitor if (getLCAddress().attempt(0, 1)) { // Success, we now own this monit... | 18,520 |
private final void enterSlowPath() { // No yet owner, try to obtain the lock while (true) { // Lock this monitor first mutex.lock(); // Try to claim this monitor if (getLCAddress().attempt(0, 1)) { // Success, we now own this monit... | private final void enterSlowPath() { // No yet owner, try to obtain the lock while (true) { // Lock this monitor first mutex.lock(); // Try to claim this monitor if (getLCAddress().attempt(0, 1)) { // Success, we now own this monit... | 18,521 |
public final void lock() { if (this.owner == VmMagic.currentProcessor()) { // We already own this lock, increment the lock count. lockCount = lockCount.add(Word.one()); } else { final Address ownerAddr = ObjectReference.fromObject(this) .toAddress();... | public final void lock() { if (this.owner == VmMagic.currentProcessor()) { // We already own this lock, increment the lock count. lockCount = lockCount.add(Word.one()); } else { final Address ownerAddr = ObjectReference.fromObject(this) .toAddress();... | 18,522 |
public final void lock() { if (this.owner == VmMagic.currentProcessor()) { // We already own this lock, increment the lock count. lockCount = lockCount.add(Word.one()); } else { final Address ownerAddr = ObjectReference.fromObject(this) .toAddress();... | public final void lock() { if (this.owner == VmMagic.currentProcessor()) { // We already own this lock, increment the lock count. lockCount = lockCount.add(Word.one()); } else { final Address ownerAddr = ObjectReference.fromObject(this) .toAddress();... | 18,523 |
static public int[] getScanline(Reader in, int len) throws IOException { char byteStr[] = new char[2]; int scanline[] = new int[len]; int x = 0; while (x < len) { int ch = in.read(); if (ch == '0') { in.read(); // 'x' byteStr[0] = (char) in.read(); byteStr[1] = (char) in.read(); int byteVal = Integ... | static public int[] getScanline(Reader in, int len) throws IOException { char byteStr[] = new char[2]; int scanline[] = new int[len]; int x = 0; while (x < len) { int ch = in.read(); if (ch == '0') { in.read(); // 'x' byteStr[0] = (char) in.read(); byteStr[1] = (char) in.read(); int byteVal = Integ... | 18,524 |
static public int[] getScanline(Reader in, int len) throws IOException { char byteStr[] = new char[2]; int scanline[] = new int[len]; int x = 0; while (x < len) { int ch = in.read(); if (ch == '0') { in.read(); // 'x' byteStr[0] = (char) in.read(); byteStr[1] = (char) in.read(); int byteVal = Integ... | static public int[] getScanline(Reader in, int len) throws IOException { char byteStr[] = new char[2]; int scanline[] = new int[len]; int x = 0; while (x < len) { int ch = in.read(); if (ch == '0') { in.read(); // 'x' byteStr[0] = (char) in.read(); byteStr[1] = (char) in.read(); int byteVal = Integ... | 18,525 |
static public int[] getScanline(Reader in, int len) throws IOException { char byteStr[] = new char[2]; int scanline[] = new int[len]; int x = 0; while (x < len) { int ch = in.read(); if (ch == '0') { in.read(); // 'x' byteStr[0] = (char) in.read(); byteStr[1] = (char) in.read(); int byteVal = Integ... | static public int[] getScanline(Reader in, int len) throws IOException { char byteStr[] = new char[2]; int scanline[] = new int[len]; int x = 0; while (x < len) { int ch = in.read(); if (ch == '0') { in.read(); // 'x' byteStr[0] = (char) in.read(); byteStr[1] = (char) in.read(); for (int i = 0; i <... | 18,526 |
static public int[] getScanline(Reader in, int len) throws IOException { char byteStr[] = new char[2]; int scanline[] = new int[len]; int x = 0; while (x < len) { int ch = in.read(); if (ch == '0') { in.read(); // 'x' byteStr[0] = (char) in.read(); byteStr[1] = (char) in.read(); int byteVal = Integ... | static public int[] getScanline(Reader in, int len) throws IOException { char byteStr[] = new char[2]; int scanline[] = new int[len]; int x = 0; while (x < len) { int ch = in.read(); if (ch == '0') { in.read(); // 'x' byteStr[0] = (char) in.read(); byteStr[1] = (char) in.read(); int byteVal = Integ... | 18,527 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.