bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public static boolean isBlockNode( Node child, Context c ) { if ( child instanceof Element ) { Element el = (Element)child; String display = c.css.getStringProperty( el, "display", false ); //u.p("display = " + display); if ( display != null && display.equals( "blo...
public static boolean isBlockNode( Node child, Context c ) { if ( child instanceof Element ) { Element el = (Element)child; String display = c.css.getStringProperty( el, "display", false ); //u.p("display = " + display); if ( display != null && (display.equals( "bl...
29,853
public void setBoolean(String name, boolean value) throws JMSException { checkName(name); if (!messageReadWrite) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, Primitives.valueOf(value)); }
public void setBoolean(String name, boolean value) throws JMSException { checkName(name); if (bodyReadOnly) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, Primitives.valueOf(value)); }
29,858
public void setByte(String name, byte value) throws JMSException { checkName(name); if (!messageReadWrite) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, new Byte(value)); }
public void setByte(String name, byte value) throws JMSException { checkName(name); if (bodyReadOnly) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, new Byte(value)); }
29,859
public void setBytes(String name, byte[] value) throws JMSException { checkName(name); if (!messageReadWrite) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, value.clone()); }
public void setBytes(String name, byte[] value) throws JMSException { checkName(name); if (bodyReadOnly) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, value.clone()); }
29,860
public void setChar(String name, char value) throws JMSException { checkName(name); if (!messageReadWrite) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, new Character(value)); }
public void setChar(String name, char value) throws JMSException { checkName(name); if (bodyReadOnly) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, new Character(value)); }
29,861
public void setDouble(String name, double value) throws JMSException { checkName(name); if (!messageReadWrite) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, new Double(value)); }
public void setDouble(String name, double value) throws JMSException { checkName(name); if (bodyReadOnly) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, new Double(value)); }
29,862
public void setFloat(String name, float value) throws JMSException { checkName(name); if (!messageReadWrite) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, new Float(value)); }
public void setFloat(String name, float value) throws JMSException { checkName(name); if (bodyReadOnly) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, new Float(value)); }
29,863
public void setInt(String name, int value) throws JMSException { checkName(name); if (!messageReadWrite) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, new Integer(value)); }
public void setInt(String name, int value) throws JMSException { checkName(name); if (bodyReadOnly) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, new Integer(value)); }
29,864
public void setLong(String name, long value) throws JMSException { checkName(name); if (!messageReadWrite) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, new Long(value)); }
public void setLong(String name, long value) throws JMSException { checkName(name); if (bodyReadOnly) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, new Long(value)); }
29,865
public void setObject(String name, Object value) throws JMSException { checkName(name); if (!messageReadWrite) throw new MessageNotWriteableException("Message is ReadOnly !"); if (value instanceof Boolean) content.put(name, value); else if (value instanceof Byte) content...
public void setObject(String name, Object value) throws JMSException { checkName(name); if (bodyReadOnly) throw new MessageNotWriteableException("Message is ReadOnly !"); if (value instanceof Boolean) content.put(name, value); else if (value instanceof Byte) content.put(...
29,866
public void setShort(String name, short value) throws JMSException { checkName(name); if (!messageReadWrite) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, new Short(value)); }
public void setShort(String name, short value) throws JMSException { checkName(name); if (bodyReadOnly) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, new Short(value)); }
29,867
public void setString(String name, String value) throws JMSException { checkName(name); if (!messageReadWrite) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, value); }
public void setString(String name, String value) throws JMSException { checkName(name); if (bodyReadOnly) throw new MessageNotWriteableException("Message is ReadOnly !"); content.put(name, value); }
29,868
Mapper(java.util.Collection selectors) { axes.addAll(selectors); }
Mapper(java.util.Collection selectors, org.w3c.dom.Node node) { _node = node; axes.addAll(selectors); }
29,870
void mapChildren(org.w3c.dom.Document doc) { org.w3c.dom.NodeList children = doc.getChildNodes(); mapElements(children); }
void mapChildren(org.w3c.dom.Document doc) { org.w3c.dom.NodeList children = doc.getChildNodes(); mapElements(children); }
29,871
private void mapElements(org.w3c.dom.NodeList children) { for(int i=0; i<children.getLength(); i++) { org.w3c.dom.Node child = children.item(i); if(child.getNodeType() == org.w3c.dom.Node.ELEMENT_NODE) { mapElement((org.w3c.dom.Element)child); ...
private void mapElements(org.w3c.dom.NodeList children) { for(int i=0; i<children.getLength(); i++) { org.w3c.dom.Node child = children.item(i); if(child.getNodeType() == org.w3c.dom.Node.ELEMENT_NODE) { mapChild((org.w3c.dom.Element)child); ...
29,872
Matcher() { }
public Matcher(org.w3c.dom.Document doc, org.xhtmlrenderer.extend.AttributeResolver ar, java.util.Iterator stylesheets) { newMaps(); setDocument(doc); setAttributeResolver(ar); docMapper = createDocumentMapper(stylesheets); }
29,873
public CascadedStyle getCascadedStyle(org.w3c.dom.Element e) { if(_csMap == null) _csMap = new java.util.HashMap(); CascadedStyle cs = (CascadedStyle)_csMap.get(e); if(cs != null) return cs; org.xhtmlrenderer.css.sheet.Ruleset elementStyling = getElementStyle(e); String fi...
public CascadedStyle getCascadedStyle(org.w3c.dom.Element e) { if(_csMap == null) _csMap = new java.util.HashMap(); CascadedStyle cs = (CascadedStyle)_csMap.get(e); if(cs != null) return cs; org.xhtmlrenderer.css.sheet.Ruleset elementStyling = getElementStyle(e); String fi...
29,874
private Mapper getMapper(org.w3c.dom.Element e) { if(_map == null) { _map = new java.util.HashMap(); docMapper.mapChildren(_doc); } return (Mapper) _map.get(e); }
private Mapper getMapper(org.w3c.dom.Element e) { if(_map == null) { _map = new java.util.HashMap(); } return (Mapper) _map.get(e); }
29,875
private Mapper getMapper(org.w3c.dom.Element e) { if(_map == null) { _map = new java.util.HashMap(); docMapper.mapChildren(_doc); } return (Mapper) _map.get(e); }
private Mapper getMapper(org.w3c.dom.Element e) { if(_map == null) { _map = new java.util.HashMap(); docMapper.mapChildren(_doc); } Mapper m = (Mapper) _map.get(e); if(m == null) matchElement(e); m = (Mapper) _map.get(e); return m; }
29,876
public void setAttributeResolver(org.xhtmlrenderer.extend.AttributeResolver ar) { _attRes = ar; clearMaps(); if(_elStyle != null) _elStyle = new java.util.HashMap(); }
void setAttributeResolver(org.xhtmlrenderer.extend.AttributeResolver ar) { _attRes = ar; clearMaps(); if(_elStyle != null) _elStyle = new java.util.HashMap(); }
29,877
public void setAttributeResolver(org.xhtmlrenderer.extend.AttributeResolver ar) { _attRes = ar; clearMaps(); if(_elStyle != null) _elStyle = new java.util.HashMap(); }
public void setAttributeResolver(org.xhtmlrenderer.extend.AttributeResolver ar) { _attRes = ar; if(_elStyle != null) _elStyle = new java.util.HashMap(); }
29,878
public void setDocument(org.w3c.dom.Document doc) { _doc = doc; clearMaps(); if(_elStyle != null) _elStyle = new java.util.HashMap(); }
void setDocument(org.w3c.dom.Document doc) { _doc = doc; clearMaps(); if(_elStyle != null) _elStyle = new java.util.HashMap(); }
29,879
public void setDocument(org.w3c.dom.Document doc) { _doc = doc; clearMaps(); if(_elStyle != null) _elStyle = new java.util.HashMap(); }
public void setDocument(org.w3c.dom.Document doc) { _doc = doc; if(_elStyle != null) _elStyle = new java.util.HashMap(); }
29,880
public void setStylesheetFactory(org.xhtmlrenderer.css.sheet.StylesheetFactory styleFactory) { _styleFactory = styleFactory; //do not have to clear all maps here _elStyle = null; if(_styleFactory != null) _elStyle = new java.util.HashMap(); _csMap = null; }
public void setStylesheetFactory(org.xhtmlrenderer.css.sheet.StylesheetFactory styleFactory) { _styleFactory = styleFactory; //do not have to clear all maps here _elStyle = null; if(_styleFactory != null) _elStyle = new java.util.HashMap(); _csMap = null; }
29,881
public DefaultCSSPrimitiveValue(String value) { this._stringValue = value; this._cssValueType = CSS_PRIMITIVE_VALUE; this._primitiveType = guessType(value); }
public DefaultCSSPrimitiveValue(String value) { this._stringValue = value; this._cssValueType = CSS_PRIMITIVE_VALUE; this._primitiveType = ValueConstants.guessType(value); }
29,882
public void testVariableTranslation() { HashMap transients = new HashMap(); MemoryPropertySet ps = new MemoryPropertySet(); ps.init(null, null); A a = new A("aName", new B(100, "bName")); A a2 = new A("biff", new B(-1, "jack")); transients.put("a", a); transients.put...
public void testVariableTranslation() { HashMap transients = new HashMap(); MemoryPropertySet ps = new MemoryPropertySet(); ps.init(null, null); A a = new A("aName", new B(100, "bName")); A a2 = new A("biff", new B(-1, "jack")); transients.put("a", a); transients.put...
29,883
public void testVariableTranslation() { HashMap transients = new HashMap(); MemoryPropertySet ps = new MemoryPropertySet(); ps.init(null, null); A a = new A("aName", new B(100, "bName")); A a2 = new A("biff", new B(-1, "jack")); transients.put("a", a); transients.put...
public void testVariableTranslation() { HashMap transients = new HashMap(); MemoryPropertySet ps = new MemoryPropertySet(); ps.init(null, null); A a = new A("aName", new B(100, "bName")); A a2 = new A("biff", new B(-1, "jack")); transients.put("a", a); transients.put...
29,884
public Class getCategory() { return MediaSize.class; }
public final Class getCategory() { return MediaSize.class; }
29,885
public String getName() { return "media-size"; }
public final String getName() { return "media-size"; }
29,886
public boolean remove(Delivery d) throws Throwable { Routable r = d.getRoutable(); if (r.isReliable()) { throw new IllegalStateException("Cannot forget a reliable message delivery at this level"); } if (d instanceof CompositeDelivery) { throw new NotYetImplementedExcep...
public boolean remove(Delivery d) throws Throwable { Routable r = d.getRoutable(); if (r.isReliable()) { } if (d instanceof CompositeDelivery) { throw new NotYetImplementedException("Don't know to handle composite deliveries"); } Transaction tx = tm.getTrans...
29,888
public void add(Routable r) throws Throwable { if (r.isReliable()) { throw new IllegalStateException("Cannot reliably hold a reliable message"); } messages.add(r); }
public void add(Routable r) throws Throwable { if (r.isReliable()) { } messages.add(r); }
29,889
private void debugBadStyleSheet(StylesheetInfo info) { Reader r = _userAgent.getReader(info.getUri()); if (r != null) { try { LineNumberReader lnr = new LineNumberReader(new BufferedReader(r)); StringBuffer sb = new StringBuffer(); String line = ...
private void debugBadStyleSheet(StylesheetInfo info) { Reader r = _userAgent.getReader(info.getUri()); if (r != null) { try { LineNumberReader lnr = new LineNumberReader(new BufferedReader(r)); StringBuffer sb = new StringBuffer(); String line = ...
29,890
public Stylesheet parse(java.io.Reader reader, StylesheetInfo info) { InputSource is = new InputSource(reader); CSSStyleSheet style = null; try { style = parser.parseStyleSheet(is); } catch (java.io.IOException e) { throw new XRRuntimeException("IOException on parsi...
public Stylesheet parse(java.io.Reader reader, StylesheetInfo info) { InputSource is = new InputSource(reader); CSSStyleSheet style = null; try { style = parser.parseStyleSheet(is); } catch (java.io.IOException e) { throw new XRRuntimeException("IOException on parsi...
29,892
public Stylesheet parseInlines(InlineStyleInfo[] isis, StylesheetInfo main) { Stylesheet sheet = new Stylesheet(main.getUri(), main.getOrigin()); if (isis != null) { for (int i = 0; i < isis.length; i++) { Reader reader = new StringReader(isis[i].getStyle()); S...
public Stylesheet parseInlines(InlineStyleInfo[] isis, StylesheetInfo main) { Stylesheet sheet = new Stylesheet(main.getUri(), main.getOrigin()); if (isis != null) { for (int i = 0; i < isis.length; i++) { Reader reader = new StringReader(isis[i].getStyle()); S...
29,893
public Box() { this(true); }
public Box() { boxes = new ArrayList(); }
29,894
public static void paintChild(Context c, Box box, boolean restyle) { if (box.isChildrenExceedBounds()) { //Uu.p("box children exceed: " + box); BoxRendering.paint(c, box, false, restyle); return; } if (Configuration.isTrue("xr.renderer.viewport-repaint", false))...
public static void paintChild(Context c, Box box, boolean restyle) { if (box.isChildrenExceedBounds()) { //Uu.p("box children exceed: " + box); BoxRendering.paint(c, box, false, restyle); return; } if (Configuration.isTrue("xr.renderer.viewport-repaint", false))...
29,895
public static void paintChild(Context c, Box box, boolean restyle) { if (box.isChildrenExceedBounds()) { //Uu.p("box children exceed: " + box); BoxRendering.paint(c, box, false, restyle); return; } if (Configuration.isTrue("xr.renderer.viewport-repaint", false))...
public static void paintChild(Context c, Box box, boolean restyle) { if (box.isChildrenExceedBounds()) { //Uu.p("box children exceed: " + box); BoxRendering.paint(c, box, false, restyle); return; } if (Configuration.isTrue("xr.renderer.viewport-repaint", false))...
29,896
public void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { // u.p("box = " + box); // u.p("prev align = " + prev_align); // prepare the font, colors, border, etc box.setFont(font); BoxLayout.getBackgroundColor(c,box); BoxLayout.getBorder(c,box); ...
public void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { // u.p("box = " + box); // u.p("prev align = " + prev_align); // prepare the font, colors, border, etc box.setFont(font); BoxLayout.getBackgroundColor(c,box); BoxLayout.getBorder(c,box); ...
29,898
public void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { // u.p("box = " + box); // u.p("prev align = " + prev_align); // prepare the font, colors, border, etc box.setFont(font); BoxLayout.getBackgroundColor(c,box); BoxLayout.getBorder(c,box); ...
public void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { // u.p("box = " + box); // u.p("prev align = " + prev_align); // prepare the font, colors, border, etc box.setFont(font); BoxLayout.getBackgroundColor(c,box); BoxLayout.getBorder(c,box); ...
29,899
public void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { // u.p("box = " + box); // u.p("prev align = " + prev_align); // prepare the font, colors, border, etc box.setFont(font); BoxLayout.getBackgroundColor(c,box); BoxLayout.getBorder(c,box); ...
public void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { // u.p("box = " + box); // u.p("prev align = " + prev_align); // prepare the font, colors, border, etc box.setFont(font); BoxLayout.getBackgroundColor(c,box); BoxLayout.getBorder(c,box); ...
29,900
public void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { // u.p("box = " + box); // u.p("prev align = " + prev_align); // prepare the font, colors, border, etc box.setFont(font); BoxLayout.getBackgroundColor(c,box); BoxLayout.getBorder(c,box); ...
public void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { // u.p("box = " + box); // u.p("prev align = " + prev_align); // prepare the font, colors, border, etc box.setFont(font); BoxLayout.getBackgroundColor(c,box); BoxLayout.getBorder(c,box); ...
29,901
public void removeAllMessageData(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing all message data for channel: " + channelID); } Connection conn = ds.getConnection(); final String sql1 = "DELETE FROM MESSAGES WHERE MESSAGEID IN" + "(SELECT MESSAG...
public void removeAllMessageData(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing all message data for channel: " + channelID); } Connection conn = ds.getConnection(); final String sql1 = "DELETE FROM MESSAGES WHERE MESSAGEID IN" + "(SELECT MESSAG...
29,902
public void removeAllMessageData(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing all message data for channel: " + channelID); } Connection conn = ds.getConnection(); final String sql1 = "DELETE FROM MESSAGES WHERE MESSAGEID IN" + "(SELECT MESSAG...
public void removeAllMessageData(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing all message data for channel: " + channelID); } Connection conn = ds.getConnection(); final String sql1 = "DELETE FROM MESSAGES WHERE MESSAGEID IN" + "(SELECT MESSAG...
29,903
public void removeAllMessageData(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing all message data for channel: " + channelID); } Connection conn = ds.getConnection(); final String sql1 = "DELETE FROM MESSAGES WHERE MESSAGEID IN" + "(SELECT MESSAG...
public void removeAllMessageData(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing all message data for channel: " + channelID); } Connection conn = ds.getConnection(); final String sql1 = "DELETE FROM MESSAGES WHERE MESSAGEID IN" + "(SELECT MESSAG...
29,904
public void store(Message m) throws Throwable { Connection conn = ds.getConnection(); String sql = "INSERT INTO MESSAGES VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )"; PreparedStatement stat = conn.prepareStatement(sql); stat.setString(1, (String)m.getMessageID()); stat.setBoolea...
public void store(Message m) throws Throwable { Connection conn = ds.getConnection(); String sql = "INSERT INTO MESSAGES VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )"; PreparedStatement stat = conn.prepareStatement(sql); stat.setString(1, (String)m.getMessageID()); stat.setBoolea...
29,906
public float getMarginBottomOverride() { return _marginBottomOverride; }
public float getMarginBottomOverride() { return this.marginBottomOverride; }
29,907
public float getMarginTopOverride() { return _marginTopOverride; }
public float getMarginTopOverride() { return this.marginTopOverride; }
29,908
public void setMarginBottomOverride(float marginBottomOverride) { _marginBottomOverride = marginBottomOverride; _marginBottomOverrideSet = true; }
public void setMarginBottomOverride(float marginBottomOverride) { _marginBottomOverride = marginBottomOverride; _marginBottomOverrideSet = true; }
29,909
public void testTwoStoresSameDatabase() throws Exception { Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); assertEquals(0, ((JDBCMessageStore)ms).getMessageReferenceCount(m.getMessageID())); MessageReference ref = ms.reference(m); log.debug("...
public void testTwoStoresSameDatabase() throws Exception { Message m = MessageFactory.createMessage("message0", true, 777l, 888l, (byte)9, headers, "payload"); assertEquals(0, ((JDBCMessageStore)ms).getMessageReferenceCount(m.getMessageID())); MessageReference ref = ms.reference(m); log.d...
29,910
public JDBCMessageStore(String storeID, DataSource ds, TransactionManager tm) throws Exception { super(storeID); this.ds = ds; this.tm = tm; sqlProperties = new Properties(); }
public JDBCMessageStore(String storeID) throws Exception { super(storeID); this.ds = ds; this.tm = tm; sqlProperties = new Properties(); }
29,911
public JDBCMessageStore(String storeID, DataSource ds, TransactionManager tm) throws Exception { super(storeID); this.ds = ds; this.tm = tm; sqlProperties = new Properties(); }
public JDBCMessageStore(String storeID, DataSource ds, TransactionManager tm) throws Exception { super(storeID); this.ds = ds; this.tm = tm; sqlProperties = new Properties(); }
29,912
public int getMessageReferenceCount(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(sele...
public int getMessageReferenceCount(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(sele...
29,913
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); desktop.setBackground(defaults.getColor("Desktop.background")); }
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); desktop.setBackground(defaults.getColor("desktop")); }
29,915
public static void set(Object array, int index, Object value) { if (array instanceof Object[]) { // Too bad Sun won't let us throw the easier ArrayStoreException! if (!array.getClass().getComponentType().isInstance(value)) throw new IllegalArgumentException(); ((Object[]) array)[index] = value; } else if (v...
public static void set(Object array, int index, Object value) { if (array instanceof Object[]) { // Too bad Sun won't let us throw the easier ArrayStoreException! if (!array.getClass().getComponentType().isInstance(value)) throw new IllegalArgumentException(); ((Object[]) array)[index] = value; } else if (v...
29,916
public static void set(Object array, int index, Object value) { if (array instanceof Object[]) { // Too bad Sun won't let us throw the easier ArrayStoreException! if (!array.getClass().getComponentType().isInstance(value)) throw new IllegalArgumentException(); ((Object[]) array)[index] = value; } else if (v...
public static void set(Object array, int index, Object value) { if (array instanceof Object[]) { // Too bad Sun won't let us throw the easier ArrayStoreException! if (!array.getClass().getComponentType().isInstance(value)) throw new IllegalArgumentException(); ((Object[]) array)[index] = value; } else if (v...
29,917
public static void set(Object array, int index, Object value) { if (array instanceof Object[]) { // Too bad Sun won't let us throw the easier ArrayStoreException! if (!array.getClass().getComponentType().isInstance(value)) throw new IllegalArgumentException(); ((Object[]) array)[index] = value; } else if (v...
public static void set(Object array, int index, Object value) { if (array instanceof Object[]) { // Too bad Sun won't let us throw the easier ArrayStoreException! if (!array.getClass().getComponentType().isInstance(value)) throw new IllegalArgumentException(); ((Object[]) array)[index] = value; } else if (v...
29,918
public void addInlineChild(Context c, InlineBox ib) { if (ib == null) throw new NullPointerException("trying to add null child"); if (getChildCount() == 0 && ib instanceof InlineTextBox) {//first box on line InlineTextBox child = (InlineTextBox) ib; if (child.getSubstring().start...
public void addInlineChild(Context c, InlineBox ib) { if (ib == null) throw new NullPointerException("trying to add null child"); if (getChildCount() == 0 && ib instanceof InlineTextBox) {//first box on line InlineTextBox child = (InlineTextBox) ib; if (child.getSubstring().start...
29,920
public String toString() { return "Line: (" + x + "," + y + ")Xx(" + width + "," + height + ")" + " baseline = " + baseline; }
public String toString() { return "Line: (" + x + "," + y + ")Xx(" + width + "," + height + ")" + " baseline = " + getBaseline(); }
29,921
public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ...
public static InlineBox generateFloatedBlockInlineBox(Context c, Content content, int avail, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating a new one. is th...
29,922
public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ...
public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ...
29,923
public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ...
public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ...
29,924
public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ...
public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ...
29,925
public void receive(org.jgroups.Message jgroupsMessage) { Object o = jgroupsMessage.getObject(); try { if (!(o instanceof Routable)) { if (log.isTraceEnabled()) { log.trace(this + " discarding non-routable (" + o + ")"); } return; ...
public void receive(org.jgroups.Message jgroupsMessage) { Object o = jgroupsMessage.getObject(); try { if (!(o instanceof Routable)) { if (log.isTraceEnabled()) { log.trace(this + " discarding non-routable (" + o + ")"); } return; ...
29,926
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<workflow>"); Iterator iter = metaAttributes.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); XMLUtil.printIndent(out, inde...
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<workflow>"); Iterator iter = metaAttributes.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); XMLUtil.printIndent(out, inde...
29,927
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<workflow>"); Iterator iter = metaAttributes.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); XMLUtil.printIndent(out, inde...
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<workflow>"); Iterator iter = metaAttributes.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); XMLUtil.printIndent(out, inde...
29,928
public void afterCommit() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } messageRefs.addLast(ref, ref.getP...
public void afterCommit() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } boolean first = messageRefs.addLa...
29,930
public void afterCommit() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } messageRefs.addLast(ref, ref.getP...
public void afterCommit() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } messageRefs.addLast(ref, ref.getP...
29,931
public void afterRollback() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (log.isTraceEnabled()) { log.trace(this + " releasing reference for " + d.getReference()); } } txToRemoveDeliveryCallbacks.remove(tx); ...
public void afterRollback() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (log.isTraceEnabled()) { log.trace(this + " releasing reference for " + d.getReference()); } } txToRemoveDeliveryCallbacks.remove(tx); ...
29,933
public static short sacPrimitiveTypeForString(String type) { if ("em".equals(type)) { return CSSPrimitiveValue.CSS_EMS; } else if ("ex".equals(type)) { return CSSPrimitiveValue.CSS_EXS; } else if ("px".equals(type)) { return CSSPrimitiveValue.CSS_PX; } el...
public static short sacPrimitiveTypeForString(String type) { if ("em".equals(type)) { return CSSPrimitiveValue.CSS_EMS; } else if ("ex".equals(type)) { return CSSPrimitiveValue.CSS_EXS; } else if ("px".equals(type)) { return CSSPrimitiveValue.CSS_PX; } el...
29,934
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ...
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isCli...
29,935
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ...
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly int snuggle; if (isCli...
29,936
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if (border.noTop()) { sides -= TOP; } } if ((sid...
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if (border.noTop()) { sides -= TOP; } } if ((sid...
29,938
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if (border.noTop()) { sides -= TOP; } } if ((sid...
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if (border.noTop()) { sides -= TOP; } } if ((sid...
29,939
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if (border.noTop()) { sides -= TOP; } } if ((sid...
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if (border.noTop()) { sides -= TOP; } } if ((sid...
29,940
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if (border.noTop()) { sides -= TOP; } } if ((sid...
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if (border.noTop()) { sides -= TOP; } } if ((sid...
29,941
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ...
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ...
29,942
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ...
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ...
29,943
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ...
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ...
29,944
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ...
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ...
29,945
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBe...
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBe...
29,946
public static Rectangle shrinkRect(final Rectangle rect, final BorderPropertySet border, int sides) { Rectangle r2 = new Rectangle(); r2.x = rect.x + ((sides & LEFT) == 0 ? 0 : (int) border.left()); r2.width = rect.width - ((sides & LEFT) == 0 ? 0 : (int) border.left()) - ((sides & RIGHT) == 0 ...
private static Rectangle shrinkRect(final Rectangle rect, final BorderPropertySet border, int sides) { Rectangle r2 = new Rectangle(); r2.x = rect.x + ((sides & LEFT) == 0 ? 0 : (int) border.left()); r2.width = rect.width - ((sides & LEFT) == 0 ? 0 : (int) border.left()) - ((sides & RIGHT) == 0...
29,947
public Object invoke(Invocation invocation) throws Throwable { String methodName = ((MethodInvocation) invocation).getMethod().getName(); Object retVal = invocation.invokeNext(); if (methodName.equals("createSessionDelegate") || methodName.equals("createProducerDelegate") ...
public Object invoke(Invocation invocation) throws Throwable { String methodName = ((MethodInvocation) invocation).getMethod().getName(); Object retVal = invocation.invokeNext(); if (methodName.equals("createSessionDelegate") || methodName.equals("createProducerDelegate") ...
29,948
public static Icon getCheckBoxIcon() { return null; }
public static Icon getCheckBoxIcon() { return new Icon() { public int getIconHeight() { return 10; } public int getIconWidth() { return 10; } public void paintIcon(Component c, Graphics g, int x, int y) { if (c instanceof AbstractButton) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color ...
29,949
public static Icon getCheckBoxMenuItemIcon() { return null; }
public static Icon getCheckBoxMenuItemIcon() { return new DummyIcon(); }
29,950
public static Icon getMenuArrowIcon() { return null; }
public static Icon getMenuArrowIcon() { return new DummyIcon(); }
29,951
public static Icon getMenuItemArrowIcon() { return null; }
public static Icon getMenuItemArrowIcon() { return new DummyIcon(); }
29,952
public static Icon getMenuItemCheckIcon() { return null; }
public static Icon getMenuItemCheckIcon() { return new DummyIcon(); }
29,953
public static Icon getRadioButtonIcon() { return null; }
public static Icon getRadioButtonIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioBut...
29,954
public static Icon getRadioButtonMenuItemIcon() { return null; }
public static Icon getRadioButtonMenuItemIcon() { return new DummyIcon(); }
29,955
public void testDurableSubscriptionReconnect() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createP...
public void testDurableSubscriptionReconnect() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createP...
29,956
public void testDurableSubscriptionReconnect() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createP...
public void testDurableSubscriptionReconnect() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createP...
29,957
public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De...
public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(D...
29,958
public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De...
public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De...
29,959
public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De...
public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De...
29,960
public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De...
public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De...
29,961
public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De...
public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De...
29,962
public static void setLogStream(PrintStream out) { DriverManager.log_stream = log_stream; }
public static void setLogStream(PrintStream stream) { DriverManager.log_stream = log_stream; }
29,963
public static void setLogStream(PrintStream out) { DriverManager.log_stream = log_stream; }
public static void setLogStream(PrintStream out) { DriverManager.log_stream = stream; }
29,964
public static void setLoginTimeout(int seconds) { DriverManager.login_timeout = login_timeout; }
public static void setLoginTimeout(int seconds) { DriverManager.login_timeout = seconds; }
29,965
public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws WorkflowException { String stepIdString = (String) args.get("stepId"); WorkflowEntry entry = (WorkflowEntry) transientVars.get("entry"); WorkflowContext context = (WorkflowContext) transientVars.get("context"); ...
public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws WorkflowException { String stepIdString = (String) args.get("stepId"); WorkflowEntry entry = (WorkflowEntry) transientVars.get("entry"); WorkflowContext context = (WorkflowContext) transientVars.get("context"); ...
29,966