bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public JBossConnection(ConnectionDelegate delegate, boolean isXAConnection) { this.delegate = delegate; this.isXAConnection = isXAConnection; } | public JBossConnection(ConnectionDelegate delegate, boolean isXAConnection) { this.delegate = delegate; this.isXA = isXA; this.connectionType = connectionType; } | 46,597 |
public void close() throws JMSException { throw new NotYetImplementedException(); } | public void close() throws JMSException { delegate.closing(); delegate.close(); } | 46,598 |
public ConnectionConsumer createDurableConnectionConsumer( Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException { throw new NotYetImplementedException(); } | public ConnectionConsumer createDurableConnectionConsumer( Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException { if (connectionType == TYPE_QUEUE_CONNECTION) throw new IllegalStateExceptio... | 46,599 |
public QueueSession createQueueSession(boolean transacted, int acknowledgeMode) throws JMSException { return (QueueSession)createSession(transacted, acknowledgeMode); } | public QueueSession createQueueSession(boolean transacted, int acknowledgeMode) throws JMSException { return (QueueSession)createSession(transacted, acknowledgeMode); } | 46,600 |
public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException { SessionDelegate sessionDelegate = delegate.createSessionDelegate(transacted, acknowledgeMode); return new JBossSession(sessionDelegate); } | public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException { SessionDelegate sessionDelegate = delegate.createSessionDelegate(transacted, acknowledgeMode); return new JBossSession(sessionDelegate); } | 46,601 |
public TopicSession createTopicSession(boolean transacted, int acknowledgeMode) throws JMSException { return (TopicSession)createSession(transacted, acknowledgeMode); } | public TopicSession createTopicSession(boolean transacted, int acknowledgeMode) throws JMSException { return createSessionInternal(transacted, acknowledgeMode, false, JBossSession.TYPE_TOPIC_SESSION); } | 46,602 |
public XAQueueSession createXAQueueSession() throws JMSException { return (XAQueueSession)createXASession(); } | public XAQueueSession createXAQueueSession() throws JMSException { if (!isXA) throw new JMSException("Not an XA connection"); return createSessionInternal(true, Session.SESSION_TRANSACTED, true, JBossSession.TYPE_QUEUE_SESSION); } | 46,603 |
public XASession createXASession() throws JMSException { if (!isXAConnection) throw new JMSException("Not an XA connection"); return (XASession)createSession(true, Session.SESSION_TRANSACTED); } | public XASession createXASession() throws JMSException { if (!isXAConnection) throw new JMSException("Not an XA connection"); return (XASession)createSession(true, Session.SESSION_TRANSACTED); } | 46,604 |
public XATopicSession createXATopicSession() throws JMSException { return (XATopicSession)createXASession(); } | public XATopicSession createXATopicSession() throws JMSException { if (!isXA) throw new JMSException("Not an XA connection"); return createSessionInternal(true, Session.SESSION_TRANSACTED, true, JBossSession.TYPE_TOPIC_SESSION); } | 46,605 |
public ExceptionListener getExceptionListener() throws JMSException { return exceptionListener; } | public ExceptionListener getExceptionListener() throws JMSException { return delegate.getExceptionListener(); } | 46,606 |
public void setExceptionListener(ExceptionListener listener) throws JMSException { this.exceptionListener = listener; } | public void setExceptionListener(ExceptionListener listener) throws JMSException { delegate.setExceptionListener(listener); } | 46,607 |
protected void initVmThread(X86Stream os) throws BuildException, ClassNotFoundException { final VmType vmThreadClass = loadClass(VmThread.class); final VmInstanceField threadStackField = (VmInstanceField) vmThreadClass.getField("stack"); final VmInstanceField stackEndField = (VmInstanceField) vmThreadClass.getField... | protected void initVmThread(X86Stream os) throws BuildException, ClassNotFoundException { final VmType vmThreadClass = loadClass(VmThread.class); final VmInstanceField threadStackField = (VmInstanceField) vmThreadClass.getField("stack"); final VmInstanceField stackEndField = (VmInstanceField) vmThreadClass.getField... | 46,608 |
protected void initVmThread(X86Stream os) throws BuildException, ClassNotFoundException { final VmType vmThreadClass = loadClass(VmThread.class); final VmInstanceField threadStackField = (VmInstanceField) vmThreadClass.getField("stack"); final VmInstanceField stackEndField = (VmInstanceField) vmThreadClass.getField... | protected void initVmThread(X86Stream os) throws BuildException, ClassNotFoundException { final VmType vmThreadClass = loadClass(VmThread.class); final VmInstanceField threadStackField = (VmInstanceField) vmThreadClass.getField("stack"); final VmInstanceField stackEndField = (VmInstanceField) vmThreadClass.getField... | 46,609 |
public VmX86Processor(int id, VmX86Architecture arch, VmSharedStatics statics, VmIsolatedStatics isolatedStatics, VmScheduler scheduler, X86CpuID cpuId) { super(id, arch, statics, isolatedStatics, scheduler); if (cpuId != null) { setCPUID(cpuId); } } | public VmX86Processor(int id, VmX86Architecture arch, VmSharedStatics statics, VmIsolatedStatics isolatedStatics, VmScheduler scheduler, X86CpuID cpuId) { super(id, arch, statics, isolatedStatics, scheduler); if (cpuId != null) { setCPUID(cpuId); } } | 46,611 |
public final VmMethod getMethod(String name, String signature) { return getMethod(name, signature, false, true, VmMember.calcHashCode( name, signature)); } | public final VmMethod getMethod(String name, String signature) { return getMethod(name, signature, false, true, VmMember.calcHashCode( name, signature)); } | 46,612 |
public final VmField getField(String name) { return getField(name, null); } | public final VmField getField(String name) { return getField(name, null); } | 46,613 |
ServerBrowserDelegate(String browserID, AbstractDestination destination, String messageSelector) { this.browserID = browserID; this.messageSelector = messageSelector; this.destination = destination; iterator = destination.browse().iterator();... | ServerBrowserDelegate(String browserID, AbstractDestination destination, String messageSelector) { this.browserID = browserID; this.messageSelector = messageSelector; this.destination = destination; Filter filter = null; if (messageSelector !... | 46,614 |
public ClientConsumerDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); } | public ClientConsumerDelegate(String objectID) { super(objectID, locator); } | 46,615 |
public ClientConsumerDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); } | public ClientConsumerDelegate(String objectID, InvokerLocator locator) { super(objectID); } | 46,616 |
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable... | public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable... | 46,617 |
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable... | public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable... | 46,618 |
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable... | public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable... | 46,619 |
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable... | public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable... | 46,620 |
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable... | public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable... | 46,621 |
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... | 46,623 |
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); content = readMap(in); } | bodyReadOnly = in.readBoolean(); bodyReadOnly = in.readBoolean(); bodyReadOnly = in.readBoolean(); publicbodyReadOnly = in.readBoolean(); voidbodyReadOnly = in.readBoolean(); readExternal(ObjectInputbodyReadOnly = in.readBoolean(); in)bodyReadOnly = in.readBoolean(); throwsbodyReadOnly = in.readBoolean(); IOException,b... | 46,627 |
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); content = readMap(in); } | publicvoidreadExternal(ObjectInputin)throwsIOException,ClassNotFoundException{super.readExternal(in);content=readMap(in);} | 46,628 |
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)); } | 46,629 |
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)); } | 46,630 |
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()); } | 46,631 |
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)); } | 46,632 |
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)); } | 46,633 |
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)); } | 46,634 |
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)); } | 46,635 |
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)); } | 46,636 |
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(... | 46,637 |
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)); } | 46,638 |
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); } | 46,639 |
Mapper(java.util.Collection selectors) { axes.addAll(selectors); } | Mapper(java.util.Collection selectors, org.w3c.dom.Node node) { _node = node; axes.addAll(selectors); } | 46,641 |
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); } | 46,642 |
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); ... | 46,643 |
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); } | 46,644 |
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... | 46,645 |
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); } | 46,646 |
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; } | 46,647 |
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(); } | 46,648 |
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(); } | 46,649 |
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(); } | 46,650 |
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(); } | 46,651 |
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; } | 46,652 |
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); } | 46,653 |
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... | 46,654 |
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... | 46,655 |
public Class getCategory() { return MediaSize.class; } | public final Class getCategory() { return MediaSize.class; } | 46,656 |
public String getName() { return "media-size"; } | public final String getName() { return "media-size"; } | 46,657 |
public void addListener(InvokerCallbackHandler callbackHandler) { if (log.isTraceEnabled()) { log.trace("adding callback handler: " + callbackHandler); } if (callbackHandler instanceof ServerInvokerCallbackHandler) { ServerInvokerCallbackHandler h = (ServerInvokerCallbackHandler)callba... | public void addListener(InvokerCallbackHandler callbackHandler) { if (log.isTraceEnabled()) { log.trace("adding callback handler: " + callbackHandler); } if (callbackHandler instanceof ServerInvokerCallbackHandler) { ServerInvokerCallbackHandler h = (ServerInvokerCallbackHandler)cal... | 46,658 |
public void addListener(InvokerCallbackHandler callbackHandler) { if (log.isTraceEnabled()) { log.trace("adding callback handler: " + callbackHandler); } if (callbackHandler instanceof ServerInvokerCallbackHandler) { ServerInvokerCallbackHandler h = (ServerInvokerCallbackHandler)callba... | public void addListener(InvokerCallbackHandler callbackHandler) { if (log.isTraceEnabled()) { log.trace("adding callback handler: " + callbackHandler); } if (callbackHandler instanceof ServerInvokerCallbackHandler) { ServerInvokerCallbackHandler h = (ServerInvokerCallbackHandler)callba... | 46,659 |
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... | 46,661 |
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); } | 46,662 |
public boolean isLeaf( Object nd ) { Node node = (Node)nd; //u.p("checking leaf: " + node.getNodeName()); //u.p("is: " + node.hasChildNodes()); return !node.hasChildNodes(); } | public boolean isLeaf( Object nd ) {Node node = (Node)nd;//u.p("checking leaf: " + node.getNodeName());//u.p("is: " + node.hasChildNodes());return !node.hasChildNodes();} | 46,663 |
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 = ... | 46,664 |
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... | 46,666 |
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... | 46,667 |
public Box() { this(true); } | public Box() { boxes = new ArrayList(); } | 46,668 |
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))... | 46,669 |
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))... | 46,670 |
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: " + ... | 46,671 |
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); ... | publicvoidprepBox(Contextc,InlineBoxbox,InlineBoxprev_align,Fontfont){//u.p("box="+box);//u.p("prevalign="+prev_align);//preparethefont,colors,border,etcbox.setFont(font);BoxLayout.getBackgroundColor(c,box);BoxLayout.getBorder(c,box);BoxLayout.getMargin(c,box);BoxLayout.getPadding(c,box);//===========setupthecolorif(bo... | 46,673 |
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); ... | 46,674 |
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); ... | 46,675 |
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); ... | 46,676 |
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); ... | 46,677 |
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... | 46,678 |
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... | 46,679 |
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 MESSAGEID FROM MESSAGE_... | 46,680 |
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... | 46,681 |
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... | 46,683 |
public float getMarginBottomOverride() { return _marginBottomOverride; } | public float getMarginBottomOverride() { return this.marginBottomOverride; } | 46,684 |
public float getMarginTopOverride() { return _marginTopOverride; } | public float getMarginTopOverride() { return this.marginTopOverride; } | 46,685 |
public void setMarginBottomOverride(float marginBottomOverride) { _marginBottomOverride = marginBottomOverride; _marginBottomOverrideSet = true; } | public void setMarginBottomOverride(float marginBottomOverride) { _marginBottomOverride = marginBottomOverride; _marginBottomOverrideSet = true; } | 46,686 |
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... | 46,687 |
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(); } | 46,688 |
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(); } | 46,689 |
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... | 46,690 |
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")); } | 46,692 |
private Array() { } | private Array() { } | 46,693 |
private static Object createMultiArray(Class type, int[] dimensions, int index) { if (index == 0) return newInstance(type, dimensions[0]); Object toAdd = createMultiArray(type, dimensions, index - 1); Class thisType = toAdd.getClass(); Object[] retval = (Object[]) createObjectArray(thisType, dimensions[index]); ... | private static Object createMultiArray(Class type, int[] dimensions, int index) { if (index == 0) return newInstance(type, dimensions[0]); Object toAdd = createMultiArray(type, dimensions, index - 1); Class thisType = toAdd.getClass(); Object[] retval = (Object[]) createObjectArray(thisType, dimensions[index]); ... | 46,694 |
private static Object createMultiArray(Class type, int[] dimensions, int index) { if (index == 0) return newInstance(type, dimensions[0]); Object toAdd = createMultiArray(type, dimensions, index - 1); Class thisType = toAdd.getClass(); Object[] retval = (Object[]) createObjectArray(thisType, dimensions[index]); ... | private static Object createMultiArray(Class type, int[] dimensions, int index) { if (index == 0) return newInstance(type, dimensions[0]); Object toAdd = createMultiArray(type, dimensions, index - 1); Class thisType = toAdd.getClass(); Object[] retval = (Object[]) createObjectArray(thisType, dimensions[index]); ... | 46,695 |
public static Object get(Object array, int index) { if (array instanceof Object[]) return ((Object[]) array)[index]; if (array instanceof boolean[]) return ((boolean[]) array)[index] ? Boolean.TRUE : Boolean.FALSE; if (array instanceof byte[]) return new Byte(((byte[]) array)[index]); if (array instanceof ch... | public static Object get(Object array, int index) { if (array instanceof Object[]) return ((Object[]) array)[index]; if (array instanceof boolean[]) return ((boolean[]) array)[index] ? Boolean.TRUE : Boolean.FALSE; if (array instanceof byte[]) return new Byte(((byte[]) array)[index]); if (array instanceof ch... | 46,696 |
public static boolean getBoolean(Object array, int index) { if (array instanceof boolean[]) return ((boolean[]) array)[index]; if (array == null) throw new NullPointerException(); throw new IllegalArgumentException(); } | public static boolean getBoolean(Object array, int index) { if (array instanceof boolean[]) return ((boolean[]) array)[index]; if (array == null) throw new NullPointerException(); throw new IllegalArgumentException(); } | 46,697 |
public static byte getByte(Object array, int index) { if (array instanceof byte[]) return ((byte[]) array)[index]; if (array == null) throw new NullPointerException(); throw new IllegalArgumentException(); } | public static byte getByte(Object array, int index) { if (array instanceof byte[]) return ((byte[]) array)[index]; if (array == null) throw new NullPointerException(); throw new IllegalArgumentException(); } | 46,698 |
public static char getChar(Object array, int index) { if (array instanceof char[]) return ((char[]) array)[index]; if (array == null) throw new NullPointerException(); throw new IllegalArgumentException(); } | public static char getChar(Object array, int index) { if (array instanceof char[]) return ((char[]) array)[index]; if (array == null) throw new NullPointerException(); throw new IllegalArgumentException(); } | 46,699 |
public static double getDouble(Object array, int index) { if (array instanceof double[]) return ((double[]) array)[index]; return getFloat(array, index); } | public static double getDouble(Object array, int index) { if (array instanceof double[]) return ((double[]) array)[index]; return getFloat(array, index); } | 46,700 |
public static float getFloat(Object array, int index) { if (array instanceof float[]) return ((float[]) array)[index]; return getLong(array, index); } | public static float getFloat(Object array, int index) { if (array instanceof float[]) return ((float[]) array)[index]; return getLong(array, index); } | 46,701 |
public static int getInt(Object array, int index) { if (array instanceof int[]) return ((int[]) array)[index]; if (array instanceof char[]) return ((char[]) array)[index]; return getShort(array, index); } | public static int getInt(Object array, int index) { if (array instanceof int[]) return ((int[]) array)[index]; if (array instanceof char[]) return ((char[]) array)[index]; return getShort(array, index); } | 46,702 |
public static int getLength(Object array) { if (array instanceof Object[]) return ((Object[]) array).length; if (array instanceof boolean[]) return ((boolean[]) array).length; if (array instanceof byte[]) return ((byte[]) array).length; if (array instanceof char[]) return ((char[]) array).length; if (arra... | public static int getLength(Object array) { if (array instanceof Object[]) return ((Object[]) array).length; if (array instanceof boolean[]) return ((boolean[]) array).length; if (array instanceof byte[]) return ((byte[]) array).length; if (array instanceof char[]) return ((char[]) array).length; if (arra... | 46,703 |
public static long getLong(Object array, int index) { if (array instanceof long[]) return ((long[]) array)[index]; return getInt(array, index); } | public static long getLong(Object array, int index) { if (array instanceof long[]) return ((long[]) array)[index]; return getInt(array, index); } | 46,704 |
public static short getShort(Object array, int index) { if (array instanceof short[]) return ((short[]) array)[index]; return getByte(array, index); } | public static short getShort(Object array, int index) { if (array instanceof short[]) return ((short[]) array)[index]; return getByte(array, index); } | 46,705 |
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... | 46,706 |
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... | 46,707 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.