bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getForeground... | public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getForeground(); disabledColor = textComponent... | 43,405 |
public DelegateSupport(int objectID) { this.id = objectID; } | public DelegateSupport(int id) { this.id = objectID; } | 43,406 |
public DelegateSupport(int objectID) { this.id = objectID; } | public DelegateSupport(int objectID) { this.id = id; this.state = null; } | 43,407 |
public void copyAttributes(DelegateSupport newDelegate) { id = newDelegate.getID(); } | public void copyAttributes(DelegateSupport newDelegate) { id = newDelegate.getID(); } | 43,408 |
public int getID() { return id; } | public int getID() { return id; } | 43,409 |
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (ConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployTopic("Topic"); ServerManageme... | publicvoidsetUp()throwsException{super.setUp();ServerManagement.start("all");initialContext=newInitialContext(ServerManagement.getJNDIEnvironment());cf=(ConnectionFactory)initialContext.lookup("/ConnectionFactory");ServerManagement.undeployTopic("Topic");ServerManagement.deployTopic("Topic");topic=(Topic)initialContext... | 43,410 |
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; ... | 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; oute... | 43,412 |
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; ... | XidImpl xid = null; xid = new XidImpl("bq1".getBytes(), 1, new GUID().toString().getBytes()); xaResource.start(xid, XAResource.TMNOFLAGS); XidImpl xid = null; xid = new XidImpl("bq1".getBytes(), 1, new GUID().toString().getBytes()); xaResource.start(xid, XAResource.TMNOFLAGS); XidImpl xid = null; xid = new XidI... | 43,413 |
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; ... | 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; ... | 43,414 |
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; ... | failed = true; return; public void run()failed = true; return; {failed = true; return; failed = true; return; failed = true; return; failed = true; return; failed = true; return; failed = true; return; failed = true; return; failed = true; return; failed = true; return; //Small pause so as not to miss any messages in... | 43,415 |
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; ... | 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; ... | 43,416 |
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; ... | 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; ... | 43,417 |
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; ... | 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; outerCount < iterations; outerCount++) { X... | 43,418 |
public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("stop called"); root.panel.view.stop(); } | public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("stop called"); root.panel.view.stop(); } | 43,420 |
public void actionPerformed(ActionEvent evt) { try { FileDialog fd = new FileDialog(root.frame, "Open a local file", FileDialog.LOAD); fd.show(); if(fd.getFile() != null) { ... | public void actionPerformed(ActionEvent evt) { try { FileDialog fd = new FileDialog(root.frame, "Open a local file", FileDialog.LOAD); fd.show(); if(fd.getFile() != null) { ... | 43,421 |
public void actionPerformed(ActionEvent evt) { try { String url_text = root.panel.url.getText(); root.panel.loadPage(url_text); root.panel.view.repaint(); } catch (Exception ex) { Uu.p(ex); ... | public void actionPerformed(ActionEvent evt) { try { String url_text = root.panel.url.getText(); root.panel.loadPage(url_text); root.panel.view.repaint(); } catch (Exception ex) { Uu.p(ex); ... | 43,422 |
public ImageIcon(URL url) { this(url, null); } | public ImageIcon() { this(url, null); } | 43,423 |
public ImageIcon(URL url) { this(url, null); } | public ImageIcon(URL url) { this(url, null); } | 43,424 |
static void checkNCName(String name, boolean xml11) { checkName(name, xml11); int len = name.length(); int index = name.indexOf(':'); if (index != -1) { if (index == 0 || name.lastIndexOf(':') != index) { throw new DomDOMException(DOMException.NAMESPACE_ERR, ... | static void checkNCName(String name, boolean xml11) { checkName(name, xml11); int len = name.length(); int index = name.indexOf(':'); if (index != -1) { if (index == 0 || index == (len - 1) || name.lastIndexOf(':') != index) { throw new DomDOMException(DOMException.NAMESPA... | 43,425 |
static void checkNCName(String name, boolean xml11) { checkName(name, xml11); int len = name.length(); int index = name.indexOf(':'); if (index != -1) { if (index == 0 || name.lastIndexOf(':') != index) { throw new DomDOMException(DOMException.NAMESPACE_ERR, ... | static void checkNCName(String name, boolean xml11) { checkName(name, xml11); int len = name.length(); int index = name.indexOf(':'); if (index != -1) { if (index == 0 || name.lastIndexOf(':') != index) { throw new DomDOMException(DOMException.NAMESPACE_ERR, ... | 43,426 |
public Element getElementById(String id) { if (id == null || id.length() == 0) { return null; } DomDoctype doctype = (DomDoctype) getDoctype(); if (doctype != null && !doctype.hasIds()) { doctype = null; } // yes, this is linear in size of document. // it'd be eas... | public Element getElementById(String id) { if (id == null || id.length() == 0) { return null; } DomDoctype doctype = (DomDoctype) getDoctype(); if (doctype != null && !doctype.hasIds()) { doctype = null; } // yes, this is linear in size of document. // it'd be eas... | 43,427 |
public void tearDown() throws Exception { ServerManagement.deInit(); super.tearDown(); } | public void tearDown() throws Exception { super.tearDown(); } | 43,429 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.trace("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 43,431 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 43,432 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 43,433 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 43,434 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 43,435 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 43,436 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 43,437 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 43,438 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 43,439 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 43,440 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 43,441 |
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | public void close() throws JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread.isAlive()... | 43,442 |
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } doClose(); if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread.isA... | 43,443 |
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace(this + " Waiting for internal thread to complete"); } internalThread.interrupt(); try { internalThread.join(3000); ... | 43,444 |
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } try { internalThread.join(3000); if (internalThread.isAlive()) { ... | 43,445 |
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(TIMEOUT); if (internalTh... | 43,446 |
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | 43,447 |
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | 43,448 |
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | 43,449 |
public BaseThroughputJob(String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages) { super(serverURL, destinationName); this.numConnections = numConnections; this.numSessions = numSessions; this.transacted = ... | public BaseThroughputJob(String slaveURL, String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages) { super(serverURL, destinationName); this.numConnections = numConnections; this.numSessions = numSessions; t... | 43,451 |
public BaseThroughputJob(String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages) { super(serverURL, destinationName); this.numConnections = numConnections; this.numSessions = numSessions; this.transacted = ... | public BaseThroughputJob(String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages) { super(slaveURL, serverURL, destinationName); this.numConnections = numConnections; this.numSessions = numSessions; this.tra... | 43,452 |
protected void logInfo() { super.logInfo(); log.info("Number of connections: " + numConnections); log.info("Numbe of concurrent sessions: " + numSessions); log.info("Transacted?: " + transacted); log.info("Transaction size: " + transactionSize); log.info("Num messages:" + numMes... | protected void logInfo() { super.logInfo(); log.info("Number of connections: " + numConnections); log.info("Numbe of concurrent sessions: " + numSessions); log.info("Transacted?: " + transacted); log.info("Transaction size: " + transactionSize); log.info("Num messages:" + numMes... | 43,453 |
public void run() { try { startTime = System.currentTimeMillis(); log.info("==============Running job:"); setup(); logInfo(); runTest(); tearDown(); log.info("================Finished running job"); } catch (Exception e) ... | public void run() { try { startTime = System.currentTimeMillis(); log.info("==============Running job:" + this); setup(); logInfo(); runTest(); tearDown(); log.info("================Finished running job"); } catch (Except... | 43,454 |
select(int selectionStart, int selectionEnd){ if (selectionStart < 0) selectionStart = 0; if (selectionStart > getText().length()) selectionStart = text.length(); if (selectionEnd > text.length()) selectionEnd = text.length(); if (selectionStart > getSelectionEnd()) selectionStart = selectionEnd; this.sele... | select(int selectionStart, int selectionEnd){ if (selectionStart < 0) selectionStart = 0; if (selectionStart > getText().length()) selectionStart = text.length(); if (selectionEnd > text.length()) selectionEnd = text.length(); if (selectionStart > getSelectionEnd()) selectionStart = selectionEnd; this.sele... | 43,456 |
public Properties getClusteredPostOfficeSQLProperties() throws Exception { String databaseType = getDatabaseType(); String persistenceConfigFile; if (databaseType.equals("hsqldb")) { persistenceConfigFile = "server/default/deploy/" + databaseType + "-persistence-service.xml";... | public Properties getClusteredPostOfficeSQLProperties() throws Exception { String databaseType = getDatabaseType(); String persistenceConfigFile; if (databaseType.equals("hsqldb")) { persistenceConfigFile = "server/default/deploy/" + databaseType + "-persistence-service.xml";... | 43,457 |
public Properties getPostOfficeSQLProperties() throws Exception { String databaseType = getDatabaseType(); String persistenceConfigFile = "server/default/deploy/" + databaseType + "-persistence-service.xml"; log.info("********* Using config file: " + persistenceConfigFile); URL persiste... | public Properties getPostOfficeSQLProperties() throws Exception { String databaseType = getDatabaseType(); String persistenceConfigFile = "server/default/deploy/" + databaseType + "-persistence-service.xml"; log.info("********* Using config file: " + persistenceConfigFile); URL persiste... | 43,458 |
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... | public void afterCommit() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (trace) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } boolean first = messageRefs.addLast(ref, ref.get... | 43,459 |
public void afterRollback() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + " releasing reference for " + ref + " after rollback"); } ref.release(); } ... | public void afterRollback() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (trace) { log.trace(this + " releasing reference for " + ref + " after rollback"); } ref.release(); } txToAdd... | 43,460 |
public void afterCommit() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (log.isTraceEnabled()) { log.trace(this + " removing " + d + " after commit"); } deliveries.remove(d); d.getReference().release(); ... | public void afterCommit() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (trace) { log.trace(this + " removing " + d + " after commit"); } deliveries.remove(d); d.getReference().release(); if (log... | 43,461 |
public void afterCommit() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (log.isTraceEnabled()) { log.trace(this + " removing " + d + " after commit"); } deliveries.remove(d); d.getReference().release(); ... | public void afterCommit() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (log.isTraceEnabled()) { log.trace(this + " removing " + d + " after commit"); } deliveries.remove(d); d.getReference().release(); ... | 43,462 |
public void acknowledge(Delivery d, Transaction tx) throws Throwable { // Transactional so add a post commit callback to remove after tx commit RemoveDeliveryCallback callback = addRemoveDeliveryCallback(tx); callback.addDelivery(d); if (log.isTraceEnabled()) { log.trace(this + " ad... | public void acknowledge(Delivery d, Transaction tx) throws Throwable { // Transactional so add a post commit callback to remove after tx commit RemoveDeliveryCallback callback = addRemoveDeliveryCallback(tx); callback.addDelivery(d); if (trace) { log.trace(this + " added " + d + " t... | 43,463 |
public void addDelivery(Delivery d) throws Throwable { deliveries.add(d); if (log.isTraceEnabled()) { log.trace(this + " added " + d + " to memory"); } } | public void addDelivery(Delivery d) throws Throwable { deliveries.add(d); if (trace) { log.trace(this + " added " + d + " to memory"); } } | 43,464 |
public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since... | public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (trace) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since a reliable mes... | 43,465 |
public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since... | public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since... | 43,466 |
public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since... | public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since... | 43,467 |
public void cancelDelivery(Delivery del) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " cancelling " + del + " in memory"); } boolean removed = deliveries.remove(del); if (!removed) { //This is ok //This can happen if the message is cancelled befor... | public void cancelDelivery(Delivery del) throws Throwable { if (trace) { log.trace(this + " cancelling " + del + " in memory"); } boolean removed = deliveries.remove(del); if (!removed) { //This is ok //This can happen if the message is cancelled before the result of... | 43,468 |
public void cancelDelivery(Delivery del) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " cancelling " + del + " in memory"); } boolean removed = deliveries.remove(del); if (!removed) { //This is ok //This can happen if the message is cancelled befor... | public void cancelDelivery(Delivery del) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " cancelling " + del + " in memory"); } boolean removed = deliveries.remove(del); if (!removed) { //This is ok //This can happen if the message is cancelled befor... | 43,469 |
public void cancelDelivery(Delivery del) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " cancelling " + del + " in memory"); } boolean removed = deliveries.remove(del); if (!removed) { //This is ok //This can happen if the message is cancelled befor... | public void cancelDelivery(Delivery del) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " cancelling " + del + " in memory"); } boolean removed = deliveries.remove(del); if (!removed) { //This is ok //This can happen if the message is cancelled befor... | 43,470 |
public List delivering(Filter filter) { List delivering = new ArrayList(); synchronized (deliveries) { for(Iterator i = deliveries.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); MessageReference r = d.getReference(); // TODO: I need to ... | public List delivering(Filter filter) { List delivering = new ArrayList(); synchronized (deliveries) { for(Iterator i = deliveries.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); MessageReference r = d.getReference(); // TODO: I need to ... | 43,471 |
public MessageReference peekFirst() { MessageReference result = (MessageReference)messageRefs.peekFirst(); if (log.isTraceEnabled()) { log.trace(this + " peeking the oldest message in memory returns " + result); } return result; } | public MessageReference peekFirst() { MessageReference result = (MessageReference)messageRefs.peekFirst(); if (trace) { log.trace(this + " peeking the oldest message in memory returns " + result); } return result; } | 43,472 |
public MessageReference removeFirst() { MessageReference result = (MessageReference)messageRefs.removeFirst(); if (log.isTraceEnabled()) { log.trace(this + " removing the oldest message in memory returns " + result); } return result; } | public MessageReference removeFirst() { MessageReference result = (MessageReference)messageRefs.removeFirst(); if (trace) { log.trace(this + " removing the oldest message in memory returns " + result); } return result; } | 43,473 |
public List undelivered(Filter filter) { List undelivered = new ArrayList(); synchronized(messageRefs) { Iterator iter = messageRefs.getAll().iterator(); while (iter.hasNext()) { MessageReference r = (MessageReference)iter.next(); // TODO: I need to dere... | public List undelivered(Filter filter) { List undelivered = new ArrayList(); synchronized(messageRefs) { Iterator iter = messageRefs.getAll().iterator(); while (iter.hasNext()) { MessageReference r = (MessageReference)iter.next(); // TODO: I need to dere... | 43,474 |
public List undelivered(Filter filter) { List undelivered = new ArrayList(); synchronized(messageRefs) { Iterator iter = messageRefs.getAll().iterator(); while (iter.hasNext()) { MessageReference r = (MessageReference)iter.next(); // TODO: I need to dere... | public List undelivered(Filter filter) { List undelivered = new ArrayList(); synchronized(messageRefs) { Iterator iter = messageRefs.getAll().iterator(); while (iter.hasNext()) { MessageReference r = (MessageReference)iter.next(); // TODO: I need to dere... | 43,475 |
public Image createImage (int width, int height) { Image returnValue = null; if (!GraphicsEnvironment.isHeadless ()) { if (isLightweight () && parent != null) returnValue = parent.createImage (width, height); else if (peer != null) returnValue = peer.createImage (width, height); } return returnVal... | public Image createImage(ImageProducer producer) { Image returnValue = null; if (!GraphicsEnvironment.isHeadless ()) { if (isLightweight () && parent != null) returnValue = parent.createImage (width, height); else if (peer != null) returnValue = peer.createImage (width, height); } return returnVal... | 43,476 |
public Image createImage (int width, int height) { Image returnValue = null; if (!GraphicsEnvironment.isHeadless ()) { if (isLightweight () && parent != null) returnValue = parent.createImage (width, height); else if (peer != null) returnValue = peer.createImage (width, height); } return returnVal... | public Image createImage (int width, int height) { Image returnValue = null; if (!GraphicsEnvironment.isHeadless ()) { if (isLightweight () && parent != null) returnValue = parent.createImage (width, height); else if (peer != null) returnValue = peer.createImage (width, height); } return returnVal... | 43,477 |
public void paintImmediately(Rectangle r) { /// Paint the specified region now. paintImmediately((int)r.getX(), (int)r.getY(), (int)r.getWidth(), (int)r.getHeight()); } | public void paintImmediately(Rectangle r) { /// Paint the specified region now. paintImmediately((int)r.getX(), (int)r.getY(), (int)r.getWidth(), (int)r.getHeight()); } | 43,478 |
protected Document createDefaultModel() { return new PlainDocument(); } | protected Document createDefaultModel() { return new PlainDocument() { public void insertString(int offset, String str, AttributeSet a) throws BadLocationException { if (str.indexOf('\n') == -1) super.insertString(offset, str, a); } }; } | 43,479 |
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Documen... | public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Documen... | 43,480 |
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Documen... | public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Documen... | 43,481 |
public abstract Rectangle getNodeDimensions(Object value0, int value1, int value2, boolean value3, Rectangle value4); | public abstract Rectangle getNodeDimensions(Object value0, int value1, int value2, boolean value3, Rectangle value4); | 43,482 |
public int[] getRowsForPaths(TreePath[] paths) throws NotImplementedException { return null; // TODO } | public int[] getRowsForPaths(TreePath[] paths) throws NotImplementedException { return null; // TODO } | 43,483 |
public int[] getRowsForPaths(TreePath[] paths) throws NotImplementedException { return null; // TODO } | public int[] getRowsForPaths(TreePath[] paths) throws NotImplementedException { int[] rows = new int[paths.length]; for (int i = 0; i < rows.length; i++) rows[i] = getRowForPath(paths[i]); return rows; // TODO } | 43,484 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createConnectionDelegate".equals(methodName)) { if (lo... | 43,485 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 43,486 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 43,487 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 43,488 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 43,489 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 43,490 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 43,491 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 43,492 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 43,493 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 43,494 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 43,495 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 43,496 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 43,497 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 43,498 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 43,499 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 43,500 |
public Class getCategory() { return MultipleDocumentHandling.class; } | public final Class getCategory() { return MultipleDocumentHandling.class; } | 43,501 |
public String getName() { return "multiple-document-handling"; } | public final String getName() { return "multiple-document-handling"; } | 43,502 |
public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws StoreException { int stepId = TextUtils.parseInt((String) args.get("stepId")); WorkflowContext context = (WorkflowContext) transientVars.get("context"); WorkflowEntry entry = (WorkflowEntry) transientVars.get("en... | public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws StoreException { int stepId = TextUtils.parseInt((String) args.get("stepId")); WorkflowContext context = (WorkflowContext) transientVars.get("context"); WorkflowEntry entry = (WorkflowEntry) transientVars.get("en... | 43,503 |
public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws StoreException { int stepId = TextUtils.parseInt((String) args.get("stepId")); WorkflowContext context = (WorkflowContext) transientVars.get("context"); WorkflowEntry entry = (WorkflowEntry) transientVars.get("en... | public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws StoreException { int stepId = TextUtils.parseInt((String) args.get("stepId")); WorkflowContext context = (WorkflowContext) transientVars.get("context"); WorkflowEntry entry = (WorkflowEntry) transientVars.get("en... | 43,504 |
public static List stripInlineContent(Context c, List inlineContent) { LinkedList stripped = new LinkedList(); LinkedList pendingStylePushes = new LinkedList(); boolean collapse = false; //boolean allWhitespace = true; for (Iterator i = inlineContent.iterator(); i.hasNext();) { ... | boolean allWhitespace = true; boolean allWhitespace = true; boolean allWhitespace = true; boolean allWhitespace = true; publicboolean allWhitespace = true; staticboolean allWhitespace = true; Listboolean allWhitespace = true; stripInlineContent(Contextboolean allWhitespace = true; c,boolean allWhitespace = true; Listbo... | 43,505 |
public static List stripInlineContent(Context c, List inlineContent) { LinkedList stripped = new LinkedList(); LinkedList pendingStylePushes = new LinkedList(); boolean collapse = false; //boolean allWhitespace = true; for (Iterator i = inlineContent.iterator(); i.hasNext();) { ... | public static List stripInlineContent(Context c, List inlineContent) { LinkedList stripped = new LinkedList(); LinkedList pendingStylePushes = new LinkedList(); boolean collapse = false; //boolean allWhitespace = true; for (Iterator i = inlineContent.iterator(); i.hasNext();) { ... | 43,506 |
public static List stripInlineContent(Context c, List inlineContent) { LinkedList stripped = new LinkedList(); LinkedList pendingStylePushes = new LinkedList(); boolean collapse = false; //boolean allWhitespace = true; for (Iterator i = inlineContent.iterator(); i.hasNext();) { ... | allWhitespace = false; allWhitespace = false; allWhitespace = false; allWhitespace = false; publicallWhitespace = false; staticallWhitespace = false; ListallWhitespace = false; stripInlineContent(ContextallWhitespace = false; c,allWhitespace = false; ListallWhitespace = false; inlineContent)allWhitespace = false; {allW... | 43,507 |
public static List stripInlineContent(Context c, List inlineContent) { LinkedList stripped = new LinkedList(); LinkedList pendingStylePushes = new LinkedList(); boolean collapse = false; //boolean allWhitespace = true; for (Iterator i = inlineContent.iterator(); i.hasNext();) { ... | public static List stripInlineContent(Context c, List inlineContent) { LinkedList stripped = new LinkedList(); LinkedList pendingStylePushes = new LinkedList(); boolean collapse = false; //boolean allWhitespace = true; for (Iterator i = inlineContent.iterator(); i.hasNext();) { ... | 43,508 |
public static synchronized FSEntityResolver instance() { if ( instance == null ) { instance = new FSEntityResolver(); } return instance; } | public static synchronized FSEntityResolver instance() { if (instance == null) { instance = new FSEntityResolver(); } return instance; } | 43,510 |
public void valueChanged(TreeSelectionEvent ev) { TreeSelectionEvent rewritten = (TreeSelectionEvent) ev.cloneWithSource(JTree.this); fireValueChanged(rewritten); JTree.this.repaint(); } | public void valueChanged(TreeSelectionEvent ev) { TreeSelectionEvent rewritten = (TreeSelectionEvent) ev.cloneWithSource(JTree.this); fireValueChanged(rewritten); TreePath[] changed = ev.getPaths(); for (int i = 0; i < changed.length; i++) { repaint(getPathBounds(changed[i])); } } | 43,511 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.