bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Box: "); /*if (getContent() == null) { sb.append(" null content, "); } else { sb.append(getContent().getClass().getName() + " (" + getContent().hashCode() + ")"); }*/ sb.append...
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Box: "); if (content == null) { sb.append(" null content, "); } else { sb.append(getContent().getClass().getName() + " (" + getContent().hashCode() + ")"); }*/ sb.append(" (" +...
32,295
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Box: "); /*if (getContent() == null) { sb.append(" null content, "); } else { sb.append(getContent().getClass().getName() + " (" + getContent().hashCode() + ")"); }*/ sb.append...
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Box: "); /*if (getContent() == null) { sb.append(" null content, "); } else { sb.append(getContent().getClass().getName() + " (" + getContent().hashCode() + ")"); }*/ sb.append...
32,296
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Box: "); /*if (getContent() == null) { sb.append(" null content, "); } else { sb.append(getContent().getClass().getName() + " (" + getContent().hashCode() + ")"); }*/ sb.append...
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Box: "); /*if (getContent() == null) { sb.append(" null content, "); } else { sb.append(getContent().getClass().getName() + " (" + getContent().hashCode() + ")"); }*/ sb.append...
32,297
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurityManager().authenticate(username, password); // see if there is ...
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurityManager().authenticate(username, password); // see if there is ...
32,298
public IdBlock getIdBlock(int size) throws JMSException { try { return serverPeer.getMessageIdManager().getIdBlock(size); } catch (Exception e) { throw new JBossJMSException("Failed to get id block", e); } }
public IdBlock getIdBlock(int size) throws JMSException { try { return serverPeer.getMessageIdManager().getIdBlock(size); } catch (Exception e) { throw new MessagingJMSException("Failed to get id block", e); } }
32,299
public void mouseExited( MouseEvent evt ) { InlineBox ib = findInlineBox(evt); restyle(ib); }
public void mouseExited( MouseEvent evt ) { InlineBox ib = findInlineBox(evt); }
32,301
private void restyle(InlineBox ib) { // if moved out of the old block then unstyle it if(prev != null && prev != ib) { Layout lt = LayoutFactory.getLayout(prev.getRealElement()); if(lt instanceof InlineLayout) { ((InlineLayout)lt).restyleNormal(panel.getContext(), ...
private void restyle(InlineBox ib) { // if moved out of the old block then unstyle it /* if(prev != null && prev != ib) { Layout lt = LayoutFactory.getLayout(prev.getRealElement()); if(lt instanceof InlineLayout) { ((InlineLayout)lt).restyleNormal(panel.getContext(...
32,302
private void restyle(InlineBox ib) { // if moved out of the old block then unstyle it if(prev != null && prev != ib) { Layout lt = LayoutFactory.getLayout(prev.getRealElement()); if(lt instanceof InlineLayout) { ((InlineLayout)lt).restyleNormal(panel.getContext(), ...
private void restyle(InlineBox ib) { // if moved out of the old block then unstyle it if(prev != null && prev != ib) { Layout lt = LayoutFactory.getLayout(prev.getRealElement()); if(lt instanceof InlineLayout) { ((InlineLayout)lt).restyleNormal(panel.getContext(), ...
32,303
public void test1() throws Throwable { Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null); Message[] msgs = new Message[150]; Mes...
public void test1() throws Throwable { Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null); Message[] msgs = new Message[150]; Mes...
32,305
public synchronized void acknowledge(Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " acknowledging delivery in tx:" + tx); } // deals with the race condition when acknowledgment arrives before the delivery // is returned back to the sending delivery observer ...
public synchronized void acknowledge(Transaction tx) throws Throwable { if (trace) { log.trace(this + " acknowledging delivery in tx:" + tx); } // deals with the race condition when acknowledgment arrives before the delivery // is returned back to the sending delivery observer obser...
32,306
public synchronized void acknowledge(Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " acknowledging delivery in tx:" + tx); } // deals with the race condition when acknowledgment arrives before the delivery // is returned back to the sending delivery observer ...
public synchronized void acknowledge(Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " acknowledging delivery in tx:" + tx); } // deals with the race condition when acknowledgment arrives before the delivery // is returned back to the sending delivery observer ...
32,307
public synchronized void cancel() throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " cancelling delivery"); } // deals with the race condition when cancellation arrives before the delivery // is returned back to the sending delivery observer observer.cancel(this); ...
public synchronized void cancel() throws Throwable { if (trace) { log.trace(this + " cancelling delivery"); } // deals with the race condition when cancellation arrives before the delivery // is returned back to the sending delivery observer observer.cancel(this); cancelled = t...
32,308
public JBossXAResource(ResourceManager rm, SessionDelegate session, SessionState sessionState) { trace = log.isTraceEnabled(); this.rm = rm; this.session = session; this.sessionState = sessionState; }
public JBossXAResource(ResourceManager rm, SessionDelegate session, SessionState sessionState) { trace = log.isTraceEnabled(); this.rm = rm; this.session = session; this.sessionState = sessionState; }
32,309
public JBossXAResource(ResourceManager rm, SessionDelegate session, SessionState sessionState) { trace = log.isTraceEnabled(); this.rm = rm; this.session = session; this.sessionState = sessionState; }
public JBossXAResource(ResourceManager rm, SessionDelegate session, SessionState sessionState) { trace = log.isTraceEnabled(); this.rm = rm; this.session = session; this.sessionState = sessionState; }
32,310
public void commit(Xid xid, boolean onePhase) throws XAException { if (trace) log.trace("Commit xid=" + xid + ", onePhase=" + onePhase + " " + this); rm.commit(xid, onePhase); }
public void commit(Xid xid, boolean onePhase) throws XAException { if (log.isTraceEnabled()) { log.trace("Commit xid=" + xid + ", onePhase=" + onePhase + " " + this); rm.commit(xid, onePhase); }
32,311
public void commit(Xid xid, boolean onePhase) throws XAException { if (trace) log.trace("Commit xid=" + xid + ", onePhase=" + onePhase + " " + this); rm.commit(xid, onePhase); }
public void commit(Xid xid, boolean onePhase) throws XAException { if (trace) log.trace("Commit xid=" + xid + ", onePhase=" + onePhase + " " + this); rm.commit(xid, onePhase, connection); }
32,312
public void end(Xid xid, int flags) throws XAException { if (trace) log.trace("End xid=" + xid + ", flags=" + flags + " " +this); synchronized (this) { switch (flags) { case TMSUSPEND : unsetCurrentTransactionId(xid); rm.suspendTx(xid); ...
public void end(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) { log.trace("End xid=" + xid + ", flags=" + flags + " " +this); synchronized (this) { switch (flags) { case TMSUSPEND : unsetCurrentTransactionId(xid); rm...
32,313
public void forget(Xid xid) throws XAException { if (trace) log.trace("Forget xid=" + xid + " " + this); }
public void forget(Xid xid) throws XAException { if (log.isTraceEnabled()) { log.trace("Forget xid=" + xid + " " + this); }
32,315
public int prepare(Xid xid) throws XAException { if (log.isTraceEnabled()) log.trace("Prepare xid=" + xid + " " + this); return rm.prepare(xid); }
public int prepare(Xid xid) throws XAException { if (log.isTraceEnabled()) log.trace("Prepare xid=" + xid + " " + this); return rm.prepare(xid, connection); }
32,318
public void rollback(Xid xid) throws XAException { if (log.isTraceEnabled()) log.trace("Rollback xid=" + xid + " " + this); rm.rollback(xid); try { String asfConsumerID = sessionState.getAsfConsumerID(); session.cancelDeliveries(asfConsumerID); } cat...
public void rollback(Xid xid) throws XAException { if (log.isTraceEnabled()) log.trace("Rollback xid=" + xid + " " + this); rm.rollback(xid); try { String asfConsumerID = sessionState.getAsfConsumerID(); session.cancelDeliveries(asfConsumerID); } cat...
32,320
private void setCurrentTransactionId(final Xid xid) { if (xid == null) throw new org.jboss.util.NullArgumentException("xid"); if (trace) log.trace("Setting current tx xid=" + xid + " previous: " + this.currentTxID + " " + this); this.currentTxID = xid; }
private void setCurrentTransactionId(final Xid xid) { if (xid == null) throw new org.jboss.util.NullArgumentException("xid"); if (trace) log.trace("Setting current tx xid=" + xid + " previous: " + this.currentTxID + " " + this); this.currentTxID = xid; }
32,322
public void start(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); boolean convertTx = false; if (this.currentTxID != null) { if (flags == TMNOFLAGS && this.currentTxID instanceof LocalTxXid...
public void start(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); boolean convertTx = false; if (sessionState.getCurrentTxId() != null) { if (flags == TMNOFLAGS && this.currentTxID instance...
32,323
public void start(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); boolean convertTx = false; if (this.currentTxID != null) { if (flags == TMNOFLAGS && this.currentTxID instanceof LocalTxXid...
public void start(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); boolean convertTx = false; if (this.currentTxID != null) { if (flags == TMNOFLAGS && sessionState.getCurrentTxId() instance...
32,324
public void start(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); boolean convertTx = false; if (this.currentTxID != null) { if (flags == TMNOFLAGS && this.currentTxID instanceof LocalTxXid...
public void start(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); boolean convertTx = false; if (this.currentTxID != null) { if (flags == TMNOFLAGS && this.currentTxID instanceof LocalTxXid...
32,325
public void start(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); boolean convertTx = false; if (this.currentTxID != null) { if (flags == TMNOFLAGS && this.currentTxID instanceof LocalTxXid...
public void start(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); boolean convertTx = false; if (this.currentTxID != null) { if (flags == TMNOFLAGS && this.currentTxID instanceof LocalTxXid...
32,326
private void unsetCurrentTransactionId(final Xid xid) { if (xid == null) throw new org.jboss.util.NullArgumentException("xid"); if (trace) log.trace("Unsetting current tx xid=" + xid + " previous: " + this.currentTxID + " " + this); // Don't unset the xid if it has previously been s...
private void unsetCurrentTransactionId(final Xid xid) { if (xid == null) throw new org.jboss.util.NullArgumentException("xid"); if (trace) log.trace("Unsetting current tx xid=" + xid + " previous: " + this.currentTxID + " " + this); // Don't unset the xid if it has previously been s...
32,327
private void unsetCurrentTransactionId(final Xid xid) { if (xid == null) throw new org.jboss.util.NullArgumentException("xid"); if (trace) log.trace("Unsetting current tx xid=" + xid + " previous: " + this.currentTxID + " " + this); // Don't unset the xid if it has previously been s...
private void unsetCurrentTransactionId(final Xid xid) { if (xid == null) throw new org.jboss.util.NullArgumentException("xid"); if (trace) log.trace("Unsetting current tx xid=" + xid + " previous: " + this.currentTxID + " " + this); // Don't unset the xid if it has previously been s...
32,328
private void check(Invocation inv, Destination dest, CheckType checkType, ServerConnectionEndpoint conn) throws JMSSecurityException { JBossDestination jbDest = (JBossDestination)dest; SecurityManager securityManager = conn.getServerPeer().getSecurityManager(); ...
private void check(Invocation inv, Destination dest, CheckType checkType, ServerConnectionEndpoint conn) throws JMSSecurityException { JBossDestination jbDest = (JBossDestination)dest; SecurityManager securityManager = conn.getServerPeer().getSecurityManager(); ...
32,329
private void check(Invocation inv, Destination dest, CheckType checkType, ServerConnectionEndpoint conn) throws JMSSecurityException { JBossDestination jbDest = (JBossDestination)dest; SecurityManager securityManager = conn.getServerPeer().getSecurityManager(); ...
private void check(Invocation inv, Destination dest, CheckType checkType, ServerConnectionEndpoint conn) throws JMSSecurityException { JBossDestination jbDest = (JBossDestination)dest; SecurityManager securityManager = conn.getServerPeer().getSecurityManager(); ...
32,330
public Object handleCreateBrowserDelegate(Invocation invocation) throws Throwable { //read permission required on the destination MethodInvocation mi = (MethodInvocation)invocation; Destination dest = (Destination)mi.getArguments()[0]; SessionAdvised del = (SessionAdvised)invo...
public Object handleCreateBrowserDelegate(Invocation invocation) throws Throwable { //read permission required on the destination MethodInvocation mi = (MethodInvocation)invocation; Destination dest = (Destination)mi.getArguments()[0]; SessionAdvised del = (SessionAdvised)invo...
32,331
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; //read permission required on the destination Destination dest = (Destination)mi.getArguments()[0]; SessionAdvised del = (SessionAdvised)invocatio...
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; //read permission required on the destination Destination dest = (Destination)mi.getArguments()[0]; SessionAdvised del = (SessionAdvised)invocatio...
32,332
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; //read permission required on the destination Destination dest = (Destination)mi.getArguments()[0]; SessionAdvised del = (SessionAdvised)invocatio...
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; //read permission required on the destination Destination dest = (Destination)mi.getArguments()[0]; SessionAdvised del = (SessionAdvised)invocatio...
32,333
public Object handleCreateProducerDelegate(Invocation invocation) throws Throwable { //write permission required on the destination //Null represents an anonymous producer - the destination //for this is specified at send time MethodInvocation mi = (MethodInvocation)invocation; ...
public Object handleCreateProducerDelegate(Invocation invocation) throws Throwable { //write permission required on the destination //Null represents an anonymous producer - the destination //for this is specified at send time MethodInvocation mi = (MethodInvocation)invocation; ...
32,334
public Object handleSend(Invocation invocation) throws Throwable { //anonymous producer //if destination is not null then write permissions required MethodInvocation mi = (MethodInvocation)invocation; Destination dest = (Destination)mi.getArguments()[0]; ProducerAdv...
public Object handleSend(Invocation invocation) throws Throwable { //anonymous producer //if destination is not null then write permissions required MethodInvocation mi = (MethodInvocation)invocation; Destination dest = (Destination)mi.getArguments()[0]; ProducerAdv...
32,335
public void setup(Map attributes) { Map macAttrib = new HashMap(); macAttrib.put(HMac.USE_WITH_PKCS5_V2, Boolean.TRUE); byte[] s = (byte[]) attributes.get(IPBE.SALT); if (s == null) { if (salt == null) { throw new IllegalArgumentException("no salt specified"); } /...
public void setup(Map attributes) { Map macAttrib = new HashMap(); macAttrib.put(HMac.USE_WITH_PKCS5_V2, Boolean.TRUE); byte[] s = (byte[]) attributes.get(IPBE.SALT); if (s == null) { if (salt == null) { throw new IllegalArgumentException("no salt specified"); } /...
32,336
public void setup(Map attributes) { Map macAttrib = new HashMap(); macAttrib.put(HMac.USE_WITH_PKCS5_V2, Boolean.TRUE); byte[] s = (byte[]) attributes.get(IPBE.SALT); if (s == null) { if (salt == null) { throw new IllegalArgumentException("no salt specified"); } /...
public void setup(Map attributes) { Map macAttrib = new HashMap(); macAttrib.put(HMac.USE_WITH_PKCS5_V2, Boolean.TRUE); byte[] s = (byte[]) attributes.get(IPBE.SALT); if (s == null) { if (salt == null) { throw new IllegalArgumentException("no salt specified"); } /...
32,337
public void setup(Map attributes) { Map macAttrib = new HashMap(); macAttrib.put(HMac.USE_WITH_PKCS5_V2, Boolean.TRUE); byte[] s = (byte[]) attributes.get(IPBE.SALT); if (s == null) { if (salt == null) { throw new IllegalArgumentException("no salt specified"); } /...
public void setup(Map attributes) { Map macAttrib = new HashMap(); macAttrib.put(HMac.USE_WITH_PKCS5_V2, Boolean.TRUE); byte[] s = (byte[]) attributes.get(IPBE.SALT); if (s == null) { if (salt == null) { throw new IllegalArgumentException("no salt specified"); } /...
32,338
public void loadPage(Document doc, URL url) throws Exception { view.setDocument(doc, url); view.addDocumentListener(this); root.history.goNewDocument(doc); updateButtons(); }
public void loadPage(Document doc, URL url) throws Exception { view.setDocument(doc, url); view.addDocumentListener(this); root.history.goNewDocument(doc, url); updateButtons(); }
32,339
public static InlineBox generateFloatedBlockInlineBox(Context c, Content content, int avail, LineBox curr_line) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.set...
public static InlineBox generateFloatedBlockInlineBox(Context c, Content content, int avail, LineBox curr_line) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.set...
32,340
public void start() throws Exception { try { readConfigurationFile(); configureAddress(); toUnbindAtExit.clear(); jndiNamingFactory = System.getProperty("java.naming.factory.initial"); //TODO: need to think more about this; if I don't do it, though, bind() fails be...
public void start() throws Exception { try { readConfigurationFile(); configureAddress(); toUnbindAtExit.clear(); jndiNamingFactory = System.getProperty("java.naming.factory.initial"); //TODO: need to think more about this; if I don't do it, though, bind() fails be...
32,341
public TableCellRenderer getCellRenderer(int row, int column) { TableCellRenderer renderer = columnModel.getColumn(column).getCellRenderer(); if (renderer == null) renderer = getDefaultRenderer(dataModel.getColumnClass(column)); return renderer; }
public TableCellRenderer getCellRenderer(int row, int column) { TableCellRenderer renderer = columnModel.getColumn(column).getCellRenderer(); if (renderer == null) renderer = getDefaultRenderer(getColumnClass(column)); return renderer; }
32,342
public Class getColumnClass(int column) { return dataModel.getColumnClass(column); }
public Class getColumnClass(int column) { return getModel().getColumnClass(column); }
32,343
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); JMSAdvisor jmsAdvisor = (JMSAdvisor)mi.getA...
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); JMSAdvisor jmsAdvisor = (JMSAdvisor)mi.getA...
32,345
String getNodeId();
int getNodeId();
32,346
public TypeCode create_recursive_sequence_tc(int bound, int offset) { RecordTypeCode r = new RecordTypeCode(TCKind.tk_struct); for (int i = 0; i < offset; i++) r.add(new StructMember()); TypeCode recurs = new PrimitiveTypeCode(TCKind.tk_sequence); r.add(new StructMember("", recurs, null)); return...
public TypeCode create_recursive_sequence_tc(int bound, int offset) { RecordTypeCode r = new RecordTypeCode(TCKind.tk_struct); for (int i = 0; i < offset; i++) r.add(new StructMember()); TypeCode recurs = new PrimitiveTypeCode(TCKind.tk_sequence); r.add(new StructMember("", recurs, null)); return...
32,347
public Context get_default_context() { return new gnuContext("", null); }
public Context get_default_context() { return new gnuContext("", null); }
32,348
public int getAcknowledgeMode();
public int getAcknowledgeMode() throws JMSException;
32,349
public MessageListener getMessageListener();
public MessageListener getMessageListener() throws JMSException;
32,350
public boolean getTransacted();
public boolean getTransacted() throws JMSException;
32,351
public void setAcknowledgeMode(int ackMode);
public void setAcknowledgeMode(int ackMode) throws JMSException;
32,352
public void setMessageListener(MessageListener listener);
public void setMessageListener(MessageListener listener) throws JMSException;
32,353
public void setTransacted(boolean transacted);
public void setTransacted(boolean transacted) throws JMSException;
32,354
public void internalFrameActivated(InternalFrameEvent event);
void internalFrameActivated(InternalFrameEvent event);
32,355
public void internalFrameClosed(InternalFrameEvent event);
void internalFrameClosed(InternalFrameEvent event);
32,356
public void internalFrameClosing(InternalFrameEvent event);
void internalFrameClosing(InternalFrameEvent event);
32,357
public void internalFrameDeactivated(InternalFrameEvent event);
void internalFrameDeactivated(InternalFrameEvent event);
32,358
public void internalFrameDeiconified(InternalFrameEvent event);
void internalFrameDeiconified(InternalFrameEvent event);
32,359
public void internalFrameIconified(InternalFrameEvent event);
void internalFrameIconified(InternalFrameEvent event);
32,360
public void internalFrameOpened(InternalFrameEvent event);
void internalFrameOpened(InternalFrameEvent event);
32,361
void submit(JComponent source) { StringBuffer data = new StringBuffer(); Iterator fields = components.entrySet().iterator(); while (fields.hasNext()) { Map.Entry field = (Map.Entry) fields.next(); Element e = (Element) field.getKey(); JComponent cc = (JComponent...
public void submit(JComponent source) { StringBuffer data = new StringBuffer(); Iterator fields = components.entrySet().iterator(); while (fields.hasNext()) { Map.Entry field = (Map.Entry) fields.next(); Element e = (Element) field.getKey(); JComponent cc = (JCo...
32,362
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; outerC...
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; outerC...
32,366
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; outerC...
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; outerC...
32,367
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; outerC...
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; outerC...
32,368
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; outerC...
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; outerC...
32,369
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCu...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCu...
32,370
Object execute(PostOfficeInternal office) throws Throwable { TransactionId id = new TransactionId(nodeId, txId); if (hold) { List dels = office.getDeliveries(queueName, numMessages); PullMessagesResponse response = new PullMessagesResponse(dels.size()); ...
Object execute(PostOfficeInternal office) throws Throwable { TransactionId id = new TransactionId(nodeId, txId); if (hold) { List dels = office.getDeliveries(queueName, numMessages); PullMessagesResponse response = new PullMessagesResponse(dels.size()); ...
32,371
protected ClusteredPostOffice createClusteredPostOffice(String nodeId, String groupName) throws Exception { MessagePullPolicy redistPolicy = new NullMessagePullPolicy(); FilterFactory ff = new SimpleFilterFactory(); ClusterRouterFactory rf = new DefaultRouterFactory(); Default...
protected ClusteredPostOffice createClusteredPostOffice(String nodeId, String groupName) throws Exception { MessagePullPolicy redistPolicy = new NullMessagePullPolicy(); FilterFactory ff = new SimpleFilterFactory(); ClusterRouterFactory rf = new DefaultRouterFactory(); Default...
32,372
protected void local(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPostOf...
protected void local(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPostOf...
32,373
protected void local(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPostOf...
protected void local(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPostOf...
32,374
protected void local(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPostOf...
protected void local(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPostOf...
32,375
protected void notLocal(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPos...
protected void notLocal(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPos...
32,376
protected void notLocal(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPos...
protected void notLocal(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPos...
32,377
public void tearDown() throws Exception { if (!ServerManagement.isRemote()) { sc.stop(); sc = null; } pm.stop(); tr.stop(); ms.stop(); super.tearDown(); }
public void tearDown() throws Exception { if (!ServerManagement.isRemote()) { sc.stop(); sc = null; } pm.stop(); tr.stop(); ms.stop(); super.tearDown(); }
32,378
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, int consumerID, boolean isConnectionConsumer, ...
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, int consumerID, boolean isConnectionConsumer, ...
32,379
public void close() throws JMSException { try { synchronized (mainLock) { if (closed) { return; } closing = true; //We wait for any activation in progress to complete and the resulting message ...
public void close() throws JMSException { try { synchronized (mainLock) { if (closed) { return; } closing = true; //We wait for any activation in progress to complete and the resulting message ...
32,380
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for (Iterator i = ib.pushstyl...
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle, LinkedList pushedStyles) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for ...
32,381
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for (Iterator i = ib.pushstyl...
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for (Iterator i = ib.pushstyl...
32,382
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for (Iterator i = ib.pushstyl...
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for (Iterator i = ib.pushstyl...
32,383
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for (Iterator i = ib.pushstyl...
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for (Iterator i = ib.pushstyl...
32,384
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for (Iterator i = ib.pushstyl...
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for (Iterator i = ib.pushstyl...
32,385
static void paintInlineContext(Context c, Box box, boolean restyle) { //dummy style to make sure that text nodes don't get extra padding and such c.pushStyle(new CascadedStyle()); //BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the con...
static void paintInlineContext(Context c, Box box, boolean restyle) { //dummy style to make sure that text nodes don't get extra padding and such c.pushStyle(new CascadedStyle()); //BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the con...
32,388
static void paintInlineContext(Context c, Box box, boolean restyle) { //dummy style to make sure that text nodes don't get extra padding and such c.pushStyle(new CascadedStyle()); //BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the con...
static void paintInlineContext(Context c, Box box, boolean restyle) { //dummy style to make sure that text nodes don't get extra padding and such c.pushStyle(new CascadedStyle()); //BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the con...
32,389
static void paintInlineContext(Context c, Box box, boolean restyle) { //dummy style to make sure that text nodes don't get extra padding and such c.pushStyle(new CascadedStyle()); //BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the con...
static void paintInlineContext(Context c, Box box, boolean restyle) { //dummy style to make sure that text nodes don't get extra padding and such c.pushStyle(new CascadedStyle()); //BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the con...
32,390
static void paintLine(Context c, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { // get Xx and y int lx = line.x; int ly = line.y + line.getBaseline(); // for each inline box for (int j = 0; j < line.getChildCount(); j++) { Box child ...
static void paintLine(Context c, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle, CascadedStyle firstLineStyle) { // get Xx and y int lx = line.x; int ly = line.y + line.getBaseline(); // for each inline box for (int j = 0; j < line.getChildCount()...
32,391
static void paintLine(Context c, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { // get Xx and y int lx = line.x; int ly = line.y + line.getBaseline(); // for each inline box for (int j = 0; j < line.getChildCount(); j++) { Box child ...
static void paintLine(Context c, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { // get Xx and y int lx = line.x; int ly = line.y + line.getBaseline(); // for each inline box for (int j = 0; j < line.getChildCount(); j++) { Box child ...
32,392
public ServerPeer(String serverPeerID, String defaultQueueJNDIContext, String defaultTopicJNDIContext) throws Exception { this.serverPeerID = serverPeerID; this.defaultQueueJNDIContext = defaultQueueJNDIContext; this.defaultTopicJNDIContext = defaultTopicJNDIC...
public ServerPeer(String serverPeerID, String defaultQueueJNDIContext, String defaultTopicJNDIContext) throws Exception { this.serverPeerID = serverPeerID; this.defaultQueueJNDIContext = defaultQueueJNDIContext; this.defaultTopicJNDIContext = defaultTopicJNDIC...
32,393
public ConnectionManager getConnectionManager() { return this; }
public ConnectionManager getConnectionManager() { return connectionManager; }
32,395
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j...
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j...
32,396
public void loadPage(String url_text) throws Exception { logger.info("Loading Page: " + url_text); current_url = url_text; DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance(); fact.setValidating(true); DocumentBuilder builder = fact.newDocumentBuilde...
public void loadPage(String url_text) throws Exception { logger.info("Loading Page: " + url_text); current_url = url_text; DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance(); fact.setValidating(true); DocumentBuilder builder = fact.newDocumentBuilde...
32,398
public IdBlock getIdBlock(int size) throws JMSException { throw new IllegalStateException("This method has been deprecated and shouldn't be used"); }
public IdBlock getIdBlock(int size) throws JMSException { return endpoint.getIdBlock(size); }
32,399
public static void paintAbsoluteBox( Context c, Box block, boolean restyle ) { Rectangle rect = c.getExtents(); //why this? int xoff = -rect.x; int yoff = -rect.y; if ( block.top_set ) { yoff += block.top; } if ( block.right_set ) { xoff = -rect...
public static void paintAbsoluteBox( Context c, Box block, boolean restyle ) { Rectangle rect = c.getExtents(); //why this? int xoff = -rect.x; int yoff = -rect.y; if ( block.top_set ) { yoff += block.top; } if ( block.right_set ) { xoff = -rect...
32,400
private MessageCallbackHandler getHandler(Invocation inv) { return (MessageCallbackHandler)inv. getMetaData(MetaDataConstants.JMS, MetaDataConstants.MESSAGE_HANDLER); }
private MessageCallbackHandler getHandler(Invocation inv) { return (MessageCallbackHandler)inv. getMetaData(MetaDataConstants.JMS, MetaDataConstants.MESSAGE_HANDLER); }
32,401
public Object handleGetMessageListener(Invocation invocation) throws Throwable { return getHandler(invocation).getMessageListener(); }
public MessageListener handleGetMessageListener(Invocation invocation) throws Throwable { return getHandler(invocation).getMessageListener(); }
32,402
public MessageProxy receive(long timeout) throws JMSException { synchronized (mainLock) { if (closed) { throw new JMSException("Cannot call receive(..) Consumer is closed"); } if (listener != null) { throw...
public MessageProxy receive(long timeout) throws JMSException { synchronized (mainLock) { if (closed) { throw new JMSException("Cannot call receive(..) Consumer is closed"); } if (listener != null) { throw...
32,403
public MessageProxy receive(long timeout) throws JMSException { synchronized (mainLock) { if (closed) { throw new JMSException("Cannot call receive(..) Consumer is closed"); } if (listener != null) { throw...
public MessageProxy receive(long timeout) throws JMSException { synchronized (mainLock) { if (closed) { return null; } if (listener != null) { throw new JMSException("The consumer has a MessageListener set...
32,404
private static void drawText( Context c, Box box, IdentValue listStyle ) { String text = ""; if ( listStyle == IdentValue.DECIMAL ) { text = box.list_count + "."; } if ( listStyle == IdentValue.LOWER_LATIN ) { text = toLatin( box.list_count ).toLowerCase() + "."; ...
private static void drawText( Context c, Box box, IdentValue listStyle ) { String text = ""; if ( listStyle == IdentValue.DECIMAL ) { text = box.list_count + "."; } if ( listStyle == IdentValue.LOWER_LATIN ) { text = toLatin( box.list_count ).toLowerCase() + "."; ...
32,405
public static void paint( Context c, Box box ) { CalculatedStyle style = c.getCurrentStyle(); IdentValue listStyle = style.getIdent( CSSName.LIST_STYLE_TYPE ); if ( listStyle == IdentValue.NONE ) { return; } if ( listStyle == IdentValue.LOWER_GREEK ) { listSt...
public static void paint( Context c, Box box ) { CalculatedStyle style = c.getCurrentStyle(); IdentValue listStyle = style.getIdent( CSSName.LIST_STYLE_TYPE ); if ( listStyle == IdentValue.NONE ) { return; } if ( listStyle == IdentValue.LOWER_GREEK ) { listSt...
32,406
protected JDBCPersistenceManager createPM() throws Exception { return new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); }
protected JDBCPersistenceManager createPM() throws Exception { JDBCPersistenceManager p = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); p.start(); return p; }
32,407
protected void doSetup(boolean batch) throws Exception { pm = createPM(); pm.setUsingBatchUpdates(batch); ms = new SimpleMessageStore("s0"); pm.start(); }
protected void doSetup(boolean batch) throws Exception { pm = createPM(); pm.setUsingBatchUpdates(batch); ms = new SimpleMessageStore("s0"); pm.start(); }
32,408
public void testAddRemoveReference() throws Exception { doSetup(false); Channel channel1 = new SimpleChannel(0, ms); Channel channel2 = new SimpleChannel(1, ms); Message[] messages = createMessages(10); for (int i = 0; i < 5; i++) { Message m1 = messages[i * 2...
public void testAddRemoveReference() throws Exception { doSetup(false); Channel channel1 = new SimpleChannel(0, ms); Channel channel2 = new SimpleChannel(1, ms); Message[] messages = createMessages(10); for (int i = 0; i < 5; i++) { Message m1 = messages[i * 2...
32,409