bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public final void visit_newarray(int type) { IntItem count = vstack.popInt(); count.loadIf(eContext, Item.STACK); // helper.writePOP(S0); /* Elements */ /* Setup a call to SoftByteCodes.allocArray */ helper.writePUSH(type); /* type */ // helper.writePUSH(S0); ... | public final void visit_newarray(int type) { IntItem count = vstack.popInt(); count.loadIf(eContext, Item.STACK); // helper.writePOP(S0); /* Elements */ /* Setup a call to SoftByteCodes.allocArray */ helper.writePUSH(type); /* type */ // helper.writePUSH(S0); ... | 39,708 |
public final void visit_putstatic(VmConstFieldRef fieldRef) { //TODO: port to orp-style vstack.push(eContext); Item val = vstack.popItem(); val.release(eContext); fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); if (!s... | public final void visit_putstatic(VmConstFieldRef fieldRef) { //TODO: port to orp-style vstack.push(eContext); Item val = vstack.popItem(); val.release(eContext); fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); if (!s... | 39,709 |
protected final void handleStartTag(TagElement tag) { htmlAttributeSet attributes = gnu.getAttributes(); if (tag.fictional()) attributes.addAttribute(ParserCallback.IMPLIED, Boolean.TRUE); callBack.handleStartTag(tag.getHTMLTag(), attributes, hTag.where.startPos... | protected final void handleStartTag(TagElement tag) { SimpleAttributeSet attributes = gnu.getAttributes(); if (tag.fictional()) attributes.addAttribute(ParserCallback.IMPLIED, Boolean.TRUE); callBack.handleStartTag(tag.getHTMLTag(), attributes, hTag.where.startP... | 39,710 |
static boolean getBooleanProperty(String name, boolean defaultValue) { try { return (new Boolean(getLogManager().getProperty(name))).booleanValue(); } catch (Exception ex) { return defaultValue; } } | static boolean getBooleanProperty(String name, boolean defaultValue) { try { return (Boolean.valueOf(getLogManager().getProperty(name))).booleanValue(); } catch (Exception ex) { return defaultValue; } } | 39,711 |
public Object decodeSignature(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger r, s; DERReader der = new DERReader(input); try { DERValue derSignature = der.read(); if (! (derSignature.getValue() instanceof BitStrin... | public Object decodeSignature(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger r, s; DERReader der = new DERReader(input); try { DERValue derSignature = der.read(); if (! (derSignature.getValue() instanceof BitStrin... | 39,712 |
public byte[] encodeSignature(Object signature) { BigInteger[] rs = (BigInteger[]) signature; DERValue derR = new DERValue(DER.INTEGER, rs[0]); DERValue derS = new DERValue(DER.INTEGER, rs[1]); ArrayList dssSigValue = new ArrayList(2); dssSigValue.add(derR); dssSigValue.add(derS); DERValue derDs... | public byte[] encodeSignature(Object signature) { BigInteger[] rs = (BigInteger[]) signature; DERValue derR = new DERValue(DER.INTEGER, rs[0]); DERValue derS = new DERValue(DER.INTEGER, rs[1]); ArrayList dssSigValue = new ArrayList(2); dssSigValue.add(derR); dssSigValue.add(derS); DERValue derDs... | 39,713 |
public JLabel() { this(null, null, CENTER); } | public JLabel() { this(null, null, LEADING); } | 39,715 |
public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr... | public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr... | 39,716 |
protected int getRowX(int row, int depth) { int iw = getCurrentControlIcon(null).getIconWidth(); return depth * (rightChildIndent + iw/2); } | protected int getRowX(int row, int depth) { int iw = getCurrentControlIcon(null).getIconWidth(); return depth * (rightChildIndent + iw/2); } | 39,717 |
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; Rectangle clip = g.getClipBounds(); Insets insets = tree.getInsets(); if (clip != null && treeModel != null) { int startIndex = tree.getClosestRowForLocation(clip.x, clip.y); int endIndex = tree.getClosestRowForLocat... | public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; Rectangle clip = g.getClipBounds(); Insets insets = tree.getInsets(); if (clip != null && treeModel != null) { int startIndex = tree.getClosestRowForLocation(clip.x, clip.y); int endIndex = tree.getClosestRowForLocat... | 39,723 |
protected void paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boo... | protected void paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boo... | 39,724 |
protected void paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boo... | protected void paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boo... | 39,725 |
protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelected(path); boolean hasI... | protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelected(path); boolean hasI... | 39,726 |
protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelected(path); boolean hasI... | protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelected(path); boolean hasI... | 39,727 |
protected void updateRenderer() { if (tree != null) { if (tree.getCellRenderer() == null) { if (currentCellRenderer == null) currentCellRenderer = createDefaultCellRenderer(); tree.setCellRenderer(currentCellRenderer); } } } | protected void updateRenderer() { if (tree != null) { if (tree.getCellRenderer() == null) { if (currentCellRenderer == null) currentCellRenderer = createDefaultCellRenderer(); tree.setCellRenderer(currentCellRenderer); } } } | 39,728 |
protected void updateRenderer() { if (tree != null) { if (tree.getCellRenderer() == null) { if (currentCellRenderer == null) currentCellRenderer = createDefaultCellRenderer(); tree.setCellRenderer(currentCellRenderer); } } } | protected void updateRenderer() { if (tree != null) { if (tree.getCellRenderer() == null) { if (currentCellRenderer == null) currentCellRenderer = createDefaultCellRenderer(); } } } | 39,729 |
protected void updateRenderer() { if (tree != null) { if (tree.getCellRenderer() == null) { if (currentCellRenderer == null) currentCellRenderer = createDefaultCellRenderer(); tree.setCellRenderer(currentCellRenderer); } } } | protected void updateRenderer() { if (tree != null) { if (tree.getCellRenderer() == null) { if (currentCellRenderer == null) currentCellRenderer = createDefaultCellRenderer(); tree.setCellRenderer(currentCellRenderer); } } } | 39,730 |
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue){} | protected void firePropertyChange(String propertyName, Object oldValue, Object newValue){} | 39,731 |
public void repaint(long tm, int x, int y, int w, int h) {} | public void repaint(long tm, int x, int y, int w, int h) {} | 39,732 |
public void revalidate() {} | public void revalidate() {} | 39,733 |
public void validate() {} | public void validate() {} | 39,734 |
public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_string); } | public static TypeCode type() { return new ArrayTypeCode(TCKind.tk_string); } | 39,735 |
public POA get_POA() throws NoContext { return poa; } | public POA get_POA() throws NoContext { return poa; } | 39,736 |
public byte[] get_object_id() throws NoContext { return Id; } | public byte[] get_object_id() throws NoContext { return Id; } | 39,737 |
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { if (handler == null) handler = object.getHandler(operation(), cookie, false); cdrBufOutput request_part = new cdrBufOutput(); request_part.setOrb(orb()); if (m_args != null && m_args.count() > 0) { write_paramete... | public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { if (handler == null) handler = object.getHandler(operation(), cookie, false); cdrBufOutput request_part = new cdrBufOutput(); request_part.setOrb(orb()); if (m_args != null && m_args.count() > 0) { write_paramete... | 39,738 |
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { if (handler == null) handler = object.getHandler(operation(), cookie, false); cdrBufOutput request_part = new cdrBufOutput(); request_part.setOrb(orb()); if (m_args != null && m_args.count() > 0) { write_paramete... | public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { if (handler == null) handler = object.getHandler(operation(), cookie, false); cdrBufOutput request_part = new cdrBufOutput(); request_part.setOrb(orb()); if (m_args != null && m_args.count() > 0) { write_paramete... | 39,739 |
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { if (handler == null) handler = object.getHandler(operation(), cookie, false); cdrBufOutput request_part = new cdrBufOutput(); request_part.setOrb(orb()); if (m_args != null && m_args.count() > 0) { write_paramete... | } } public} org.omg.CORBA.portable.InputStream} v_invoke(InvokeHandler} handler)} } {} } } } if} (handler} ==} null)} } } } } } handler} =} object.getHandler(operation(),} cookie,} false);} } } } cdrBufOutput} request_part} =} new} cdrBufOutput();} } } } request_part.setOrb(orb());} } } } if} (m_args} !=} null} &&} m_a... | 39,740 |
public AttributeSet copyAttributes() { return attributes.copyAttributes(); } | public AttributeSet copyAttributes() { NamedStyle copy = new NamedStyle(); copy.attributes = attributes.copyAttributes(); return copy; } | 39,742 |
public void setName(String n) { name = n; fireStateChanged(); } | public void setName(String n) { name = n; fireStateChanged(); } | 39,745 |
public void setResolveParent(AttributeSet parent) { if (parent != null) { attributes = StyleContext.this.addAttribute (attributes, ResolveAttribute, parent); } fireStateChanged(); } | public void setResolveParent(AttributeSet parent) { if (parent != null) { attributes = StyleContext.this.addAttribute (attributes, ResolveAttribute, parent); } fireStateChanged(); } | 39,746 |
public String toString() { return ("[NamedStyle: name=" + name + ", attrs=" + attributes.toString() + "]"); } | public String toString() { return ("[NamedStyle: name=" + name + ", attrs=" + attributes.toString() + "]"); } | 39,747 |
public SmallAttributeSet(AttributeSet a) { if (a == null) attrs = new Object[0]; else { int n = a.getAttributeCount(); int i = 0; attrs = new Object[n * 2]; Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { ... | public SmallAttributeSet(AttributeSet a) { if (a == null) attrs = new Object[0]; else { int n = a.getAttributeCount(); int i = 0; attrs = new Object[n * 2]; Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { ... | 39,748 |
public SmallAttributeSet(AttributeSet a) { if (a == null) attrs = new Object[0]; else { int n = a.getAttributeCount(); int i = 0; attrs = new Object[n * 2]; Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { ... | public SmallAttributeSet(AttributeSet a) { if (a == null) attrs = new Object[0]; else { int n = a.getAttributeCount(); int i = 0; attrs = new Object[n * 2]; Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { ... | 39,749 |
public Object clone() { return new SmallAttributeSet(this.attrs); } | public Object clone() { return this; } | 39,750 |
public boolean containsAttribute(Object name, Object value) { for (int i = 0; i < attrs.length; i += 2) { if (attrs[i].equals(name) && attrs[i+1].equals(value)) return true; } return false; } | public boolean containsAttribute(Object name, Object value) { for (int i = 0; i < attrs.length; i += 2) { if (attrs[i].equals(name) && attrs[i+1].equals(value)) return true; } return false; } | 39,751 |
public boolean containsAttributes(AttributeSet a) { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object name = e.nextElement(); Object val = a.getAttribute(name); if (!containsAttribute(name, val)) return false; } return t... | public boolean containsAttributes(AttributeSet a) { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements() && res) { Object name = e.nextElement(); Object val = a.getAttribute(name); if (!containsAttribute(name, val)) return false; } r... | 39,752 |
public boolean containsAttributes(AttributeSet a) { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object name = e.nextElement(); Object val = a.getAttribute(name); if (!containsAttribute(name, val)) return false; } return t... | public boolean containsAttributes(AttributeSet a) { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object name = e.nextElement(); Object val = a.getAttribute(name); if (!containsAttribute(name, val)) return false; } return t... | 39,753 |
public boolean containsAttributes(AttributeSet a) { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object name = e.nextElement(); Object val = a.getAttribute(name); if (!containsAttribute(name, val)) return false; } return t... | public boolean containsAttributes(AttributeSet a) { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object name = e.nextElement(); Object val = a.getAttribute(name); if (!containsAttribute(name, val)) return false; } return t... | 39,754 |
public AttributeSet copyAttributes() { return (AttributeSet) clone(); } | public AttributeSet copyAttributes() { return this; } | 39,755 |
public boolean equals(Object obj) { return (obj instanceof AttributeSet) && this.isEqual((AttributeSet)obj); } | public boolean equals(Object obj) { return (obj instanceof AttributeSet) && this.isEqual((AttributeSet)obj); } | 39,756 |
public Object getAttribute(Object key) { for (int i = 0; i < attrs.length; i += 2) { if (attrs[i].equals(key)) return attrs[i+1]; } // Check the resolve parent, unless we're looking for the // ResolveAttribute, which would cause an infinite loop ... | public Object getAttribute(Object key) { Object att = null; if (key == StyleConstants.ResolveAttribute) att = resolveParent; for (int i = 0; i < attrs.length && att == null; i += 2) { if (attrs[i].equals(key)) return attrs[i+1]; } // Check the resolve pare... | 39,757 |
public Object getAttribute(Object key) { for (int i = 0; i < attrs.length; i += 2) { if (attrs[i].equals(key)) return attrs[i+1]; } // Check the resolve parent, unless we're looking for the // ResolveAttribute, which would cause an infinite loop ... | public Object getAttribute(Object key) { for (int i = 0; i < attrs.length; i += 2) { if (attrs[i].equals(key)) att = attrs[i + 1]; } // Check the resolve parent, unless we're looking for the // ResolveAttribute, which would cause an infinite loop ... | 39,758 |
public Object getAttribute(Object key) { for (int i = 0; i < attrs.length; i += 2) { if (attrs[i].equals(key)) return attrs[i+1]; } // Check the resolve parent, unless we're looking for the // ResolveAttribute, which would cause an infinite loop ... | public Object getAttribute(Object key) { for (int i = 0; i < attrs.length; i += 2) { if (attrs[i].equals(key)) return attrs[i+1]; } // Check the resolve parent, unless we're looking for the // ResolveAttribute, which would cause an infinite loop ... | 39,759 |
public Object getAttribute(Object key) { for (int i = 0; i < attrs.length; i += 2) { if (attrs[i].equals(key)) return attrs[i+1]; } // Check the resolve parent, unless we're looking for the // ResolveAttribute, which would cause an infinite loop ... | public Object getAttribute(Object key) { for (int i = 0; i < attrs.length; i += 2) { if (attrs[i].equals(key)) return attrs[i+1]; } // Check the resolve parent, unless we're looking for the // ResolveAttribute, which would cause an infinite loop ... | 39,760 |
public Object getAttribute(Object key) { for (int i = 0; i < attrs.length; i += 2) { if (attrs[i].equals(key)) return attrs[i+1]; } // Check the resolve parent, unless we're looking for the // ResolveAttribute, which would cause an infinite loop ... | public Object getAttribute(Object key) { for (int i = 0; i < attrs.length; i += 2) { if (attrs[i].equals(key)) return attrs[i+1]; } // Check the resolve parent, unless we're looking for the // ResolveAttribute, which would cause an infinite loop ... | 39,761 |
public AttributeSet getResolveParent() { return (AttributeSet) getAttribute(ResolveAttribute); } | public AttributeSet getResolveParent() { return resolveParent; } | 39,762 |
public boolean isEqual(AttributeSet attr) { return getAttributeCount() == attr.getAttributeCount() && this.containsAttributes(attr); } | public boolean isEqual(AttributeSet attr) { boolean eq; if (attr instanceof SmallAttributeSet) eq = attr == this; else eq = getAttributeCount() == attr.getAttributeCount() && this.containsAttributes(attr); } | 39,763 |
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[StyleContext.SmallattributeSet:"); for (int i = 0; i < attrs.length - 1; ++i) { sb.append(" ("); sb.append(attrs[i].toString()); sb.append("="); sb.append(attrs[i+1].toString());... | public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[StyleContext.SmallattributeSet:"); for (int i = 0; i < attrs.length - 1; ++i) { sb.append(" ("); sb.append(attrs[i].toString()); sb.append("="); sb.append(attrs[i+1].toString());... | 39,765 |
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[StyleContext.SmallattributeSet:"); for (int i = 0; i < attrs.length - 1; ++i) { sb.append(" ("); sb.append(attrs[i].toString()); sb.append("="); sb.append(attrs[i+1].toString());... | public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[StyleContext.SmallattributeSet:"); for (int i = 0; i < attrs.length - 1; ++i) { sb.append(" ("); sb.append(attrs[i].toString()); sb.append("="); sb.append(attrs[i+1].toString());... | 39,766 |
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[StyleContext.SmallattributeSet:"); for (int i = 0; i < attrs.length - 1; ++i) { sb.append(" ("); sb.append(attrs[i].toString()); sb.append("="); sb.append(attrs[i+1].toString());... | public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[StyleContext.SmallattributeSet:"); for (int i = 0; i < attrs.length - 1; ++i) { sb.append(" ("); sb.append(attrs[i].toString()); sb.append("="); sb.append(attrs[i+1].toString());... | 39,767 |
public StyleContext() { listenerList = new EventListenerList(); styleTable = new Hashtable(); styleTable.put(DEFAULT_STYLE, defaultStyle); } | public StyleContext() { listenerList = new EventListenerList(); styleTable = new Hashtable(); styleTable.put(DEFAULT_STYLE, defaultStyle); } | 39,768 |
public AttributeSet addAttribute(AttributeSet old, Object name, Object value) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttribute(name, value); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.ad... | public synchronized AttributeSet addAttribute(AttributeSet old, Object name, Object value) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttribute(name, value); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); ... | 39,769 |
public AttributeSet addAttribute(AttributeSet old, Object name, Object value) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttribute(name, value); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.ad... | public AttributeSet addAttribute(AttributeSet old, Object name, Object value) { AttributeSet ret; if (old.getAttributeCount() + 1 < getCompressionThreshold()) { ((MutableAttributeSet)old).addAttribute(name, value); return old; } else { MutableAttributeSet mutable = createLa... | 39,770 |
public AttributeSet addAttribute(AttributeSet old, Object name, Object value) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttribute(name, value); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.ad... | public AttributeSet addAttribute(AttributeSet old, Object name, Object value) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttribute(name, value); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.ad... | 39,771 |
public AttributeSet addAttribute(AttributeSet old, Object name, Object value) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttribute(name, value); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.ad... | public AttributeSet addAttribute(AttributeSet old, Object name, Object value) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttribute(name, value); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.ad... | 39,772 |
public AttributeSet addAttributes(AttributeSet old, AttributeSet attributes) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttributes(attributes); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.add... | public synchronized AttributeSet addAttributes(AttributeSet old, AttributeSet attributes) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttributes(attributes); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); ... | 39,774 |
public AttributeSet addAttributes(AttributeSet old, AttributeSet attributes) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttributes(attributes); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.add... | public AttributeSet addAttributes(AttributeSet old, AttributeSet attributes) { AttributeSet ret; if (old.getAttributeCount() + attributes.getAttributeCount() < getCompressionThreshold()) { ((MutableAttributeSet)old).addAttributes(attributes); return old; } else { MutableAtt... | 39,775 |
public AttributeSet addAttributes(AttributeSet old, AttributeSet attributes) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttributes(attributes); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.add... | public AttributeSet addAttributes(AttributeSet old, AttributeSet attributes) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttributes(attributes); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.add... | 39,776 |
public AttributeSet addAttributes(AttributeSet old, AttributeSet attributes) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttributes(attributes); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.add... | public AttributeSet addAttributes(AttributeSet old, AttributeSet attributes) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttributes(attributes); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.add... | 39,777 |
public void addChangeListener(ChangeListener listener) { listenerList.add(ChangeListener.class, listener); } | public void addChangeListener(ChangeListener listener) { styles.addChangeListener(listener); } | 39,779 |
public Style addStyle(String name, Style parent) { Style newStyle = new NamedStyle(name, parent); if (name != null) styleTable.put(name, newStyle); return newStyle; } | public Style addStyle(String name, Style parent) { Style newStyle = new NamedStyle(name, parent); if (name != null) styles.addAttribute(name, newStyle); return newStyle; } | 39,780 |
public ChangeListener[] getChangeListeners() { return (ChangeListener[]) listenerList.getListeners(ChangeListener.class); } | public ChangeListener[] getChangeListeners() { return styles.getChangeListeners(); } | 39,781 |
public AttributeSet getEmptySet() { AttributeSet e = createSmallAttributeSet(null); if (sharedAttributeSets.containsKey(e)) e = (AttributeSet) sharedAttributeSets.get(e); else sharedAttributeSets.put(e, e); return e; } | public AttributeSet getEmptySet() { AttributeSet e = createSmallAttributeSet(null); if (sharedAttributeSets.containsKey(e)) e = (AttributeSet) sharedAttributeSets.get(e); else sharedAttributeSets.put(e, e); return e; } | 39,783 |
public static Object getStaticAttribute(Object key) { if (key == null) return null; return staticAttributeKeys.get(key); } | public static Object getStaticAttribute(Object key) { if (key == null) return null; return readAttributeKeys.get(key); } | 39,784 |
public Style getStyle(String name) { return (Style) styleTable.get(name); } | public Style getStyle(String name) { return (Style) styles.getAttribute(name); } | 39,785 |
public Enumeration getStyleNames() { return styleTable.keys(); } | public Enumeration getStyleNames() { return styles.getAttributeNames(); } | 39,786 |
public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = st... | public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = st... | 39,787 |
public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = st... | public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = st... | 39,788 |
public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = st... | public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); if (readAttributeKeys != null) { Object staticKey = static... | 39,789 |
public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = st... | public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = st... | 39,790 |
public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = st... | } } public} static} void} readAttributeSet(ObjectInputStream} in,} MutableAttributeSet} a)} } } } throws} ClassNotFoundException,} IOException} } {} } } } if} (in} ==} null} ||} a} ==} null)} } } } } } return;} } } } } } } } Object} key} =} in.readObject();} } } } Object} val} =} in.readObject();} } } } while} (key} !=... | 39,791 |
public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = st... | public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = st... | 39,792 |
public void reclaim(AttributeSet attributes) { if (sharedAttributeSets.containsKey(attributes)) sharedAttributeSets.remove(attributes); } | public void reclaim(AttributeSet attributes) { if (sharedAttributeSets.containsKey(attributes)) sharedAttributeSets.remove(attributes); } | 39,793 |
public static void registerStaticAttributeKey(Object key) { if (key != null) staticAttributeKeys.put(key.getClass().getName() + "." + key.toString(), key); } | public static void registerStaticAttributeKey(Object key) { if (key != null) staticAttributeKeys.put(key.getClass().getName() + "." + key.toString(), key); } | 39,794 |
public AttributeSet removeAttribute(AttributeSet old, Object name) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).removeAttribute(name); if (old.getAttributeCount() < getCompressionThreshold()) { SmallAttributeSet small = createSmallAttributeSet(old);... | public AttributeSet removeAttribute(AttributeSet old, Object name) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).removeAttribute(name); if (old.getAttributeCount() < getCompressionThreshold()) { SmallAttributeSet small = createSmallAttributeSet(old);... | 39,795 |
public AttributeSet removeAttribute(AttributeSet old, Object name) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).removeAttribute(name); if (old.getAttributeCount() < getCompressionThreshold()) { SmallAttributeSet small = createSmallAttributeSet(old);... | public AttributeSet removeAttribute(AttributeSet old, Object name) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).removeAttribute(name); if (old.getAttributeCount() < getCompressionThreshold()) { SmallAttributeSet small = createSmallAttributeSet(old);... | 39,796 |
public AttributeSet removeAttribute(AttributeSet old, Object name) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).removeAttribute(name); if (old.getAttributeCount() < getCompressionThreshold()) { SmallAttributeSet small = createSmallAttributeSet(old);... | public AttributeSet removeAttribute(AttributeSet old, Object name) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).removeAttribute(name); if (old.getAttributeCount() < getCompressionThreshold()) { SmallAttributeSet small = createSmallAttributeSet(old);... | 39,797 |
public AttributeSet removeAttribute(AttributeSet old, Object name) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).removeAttribute(name); if (old.getAttributeCount() < getCompressionThreshold()) { SmallAttributeSet small = createSmallAttributeSet(old);... | public AttributeSet removeAttribute(AttributeSet old, Object name) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).removeAttribute(name); if (old.getAttributeCount() < getCompressionThreshold()) { SmallAttributeSet small = createSmallAttributeSet(old);... | 39,798 |
public AttributeSet removeAttributes(AttributeSet old, AttributeSet attributes) { return removeAttributes(old, attributes.getAttributeNames()); } | public synchronized AttributeSet removeAttributes(AttributeSet old, AttributeSet attributes) { return removeAttributes(old, attributes.getAttributeNames()); } | 39,800 |
public AttributeSet removeAttributes(AttributeSet old, AttributeSet attributes) { return removeAttributes(old, attributes.getAttributeNames()); } | public AttributeSet removeAttributes(AttributeSet old, AttributeSet attributes) { AttributeSet ret; if (old.getAttributeCount() <= getCompressionThreshold()) { search.removeAttributes(search); search.addAttributes(old); search.removeAttributes(attributes); reclaim(old); ret = searchImmutableSet(); } | 39,801 |
public void removeChangeListener(ChangeListener listener) { listenerList.remove(ChangeListener.class, listener); } | public void removeChangeListener(ChangeListener listener) { styles.removeChangeListener(listener); } | 39,803 |
public void removeStyle(String name) { styleTable.remove(name); } | public void removeStyle(String name) { styles.removeAttribute(name); } | 39,804 |
public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object oldKey = e.nextElement(); Object newKey = getStaticAttribute(oldKey); Object key = (newKey == null) ? oldKey... | public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object oldKey = e.nextElement(); Object newKey = getStaticAttribute(oldKey); Object key = (newKey == null) ? oldKey... | 39,805 |
public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object oldKey = e.nextElement(); Object newKey = getStaticAttribute(oldKey); Object key = (newKey == null) ? oldKey... | public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object oldKey = e.nextElement(); Object newKey = getStaticAttribute(oldKey); Object key = (newKey == null) ? oldKey... | 39,806 |
public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object oldKey = e.nextElement(); Object newKey = getStaticAttribute(oldKey); Object key = (newKey == null) ? oldKey... | public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object oldKey = e.nextElement(); Object newKey = getStaticAttribute(oldKey); Object key = (newKey == null) ? oldKey... | 39,807 |
void writeStreamResult(Node node, StreamResult sr, int outputMethod, String encoding) throws IOException { OutputStream out = null; try { out = sr.getOutputStream(); if (out == null) { Writer writer = sr.getWriter(); if (writer != nul... | void writeStreamResult(Node node, StreamResult sr, int outputMethod, String encoding) throws IOException { OutputStream out = null; try { out = sr.getOutputStream(); if (out == null) { Writer writer = sr.getWriter(); if (writer != nul... | 39,808 |
public PathIterator getPathIterator(final AffineTransform at) { final double minx = getX(); final double miny = getY(); final double maxx = minx + getWidth(); final double maxy = miny + getHeight(); return new PathIterator() { /** Current coordinate. */ private int current = (maxx >= minx... | public PathIterator getPathIterator(final AffineTransform at) { final double minx = getX(); final double miny = getY(); final double maxx = minx + getWidth(); final double maxy = miny + getHeight(); return new PathIterator() { /** Current coordinate. */ private int current = (maxx <= minx... | 39,809 |
public PathIterator getPathIterator(final AffineTransform at) { final double minx = getX(); final double miny = getY(); final double maxx = minx + getWidth(); final double maxy = miny + getHeight(); return new PathIterator() { /** Current coordinate. */ private int current = (maxx >= minx... | public PathIterator getPathIterator(final AffineTransform at) { final double minx = getX(); final double miny = getY(); final double maxx = minx + getWidth(); final double maxy = miny + getHeight(); return new PathIterator() { /** Current coordinate. */ private int current = (maxx >= minx... | 39,810 |
public int getWindingRule() { return WIND_EVEN_ODD; } | public int getWindingRule() { return WIND_NON_ZERO; } | 39,811 |
public DoubleItem(int kind, int offsetToFP, Register lsb, Register msb, double value) { super(kind, offsetToFP, lsb, msb); this.value = value; } | public DoubleItem(int kind, int offsetToFP, Register lsb, Register msb, double value) { super(kind, offsetToFP, lsb, msb); this.value = value; } | 39,812 |
static DoubleItem createConst(double val) { return new DoubleItem(Kind.CONSTANT, 0, null, null, val); } | static DoubleItem createConst(double val) { return new DoubleItem(Kind.CONSTANT, 0, null, null, val); } | 39,813 |
static DoubleItem createFPUStack() { return new DoubleItem(Kind.FPUSTACK, 0, null, null, 0.0); } | static DoubleItem createFPUStack() { return new DoubleItem(Kind.FPUSTACK, 0, null, null, 0.0); } | 39,814 |
static DoubleItem createLocal(int offsetToFP) { return new DoubleItem(Kind.LOCAL, offsetToFP, null, null, 0.0); } | static DoubleItem createLocal(int offsetToFP) { return new DoubleItem(Kind.LOCAL, offsetToFP, null, null, 0.0); } | 39,815 |
static DoubleItem createReg(Register lsb, Register msb) { return new DoubleItem(Kind.REGISTER, 0, lsb, msb, 0.0); } | static DoubleItem createReg(Register lsb, Register msb) { return new DoubleItem(Kind.REGISTER, 0, lsb, msb, 0.0); } | 39,816 |
static DoubleItem createStack() { return new DoubleItem(Kind.STACK, 0, null, null, 0.0); } | static DoubleItem createStack() { return new DoubleItem(Kind.STACK, 0, null, null, 0.0); } | 39,817 |
final int getType() { return JvmType.DOUBLE; } | final int getType() { return JvmType.DOUBLE; } | 39,818 |
double getValue() { assertCondition(kind == Kind.CONSTANT, "kind == Kind.CONSTANT"); return value; } | double getValue() { assertCondition(kind == Kind.CONSTANT, "kind == Kind.CONSTANT"); return value; } | 39,819 |
protected final void loadToConstant(EmitterContext ec, AbstractX86Stream os, Register lsb, Register msb) { final long lvalue = Double.doubleToLongBits(value); final int lsbv = (int) (lvalue & 0xFFFFFFFFL); final int msbv = (int) ((lvalue >>> 32) & 0xFFFFFFFFL); os.writeMOV_Con... | protected final void loadToConstant(EmitterContext ec, AbstractX86Stream os, Register lsb, Register msb) { final long lvalue = Double.doubleToLongBits(value); final int lsbv = (int) (lvalue & 0xFFFFFFFFL); final int msbv = (int) ((lvalue >>> 32) & 0xFFFFFFFFL); os.writeMOV_Con... | 39,820 |
protected final void loadToConstant(EmitterContext ec, AbstractX86Stream os, Register lsb, Register msb) { final long lvalue = Double.doubleToLongBits(value); final int lsbv = (int) (lvalue & 0xFFFFFFFFL); final int msbv = (int) ((lvalue >>> 32) & 0xFFFFFFFFL); os.writeMOV_Con... | protected final void loadToConstant(EmitterContext ec, AbstractX86Stream os, Register lsb, Register msb) { final long lvalue = Double.doubleToLongBits(value); final int lsbv = (int) (lvalue & 0xFFFFFFFFL); final int msbv = (int) ((lvalue >>> 32) & 0xFFFFFFFFL); os.writeMOV_Con... | 39,821 |
protected void popFromFPU(AbstractX86Stream os, Register reg, int disp) { os.writeFSTP64(reg, disp); } | protected void popFromFPU(AbstractX86Stream os, Register reg, int disp) { os.writeFSTP64(reg, disp); } | 39,822 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.