bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
protected void updateLeadIndex() throws NotImplementedException { // STUB } | if (isSelectionEmpty()) { leadRow = leadIndex = - 1; } else { leadRow = getRow(leadPath); for (int i = 0; i < selection.length; i++) { if (selection[i].equals(leadPath)) { leadIndex = i; break; } } leadIndex = leadRow; } if (isSelectionEmpty()) { leadRow = leadIndex = - 1; } else { leadRow = getRow(leadPath); for (int ... | 46,819 |
public static void sort(Object[] a) { sort(a, 0, a.length, null); } | public static void sort(byte[] a) { sort(a, 0, a.length, null); } | 46,820 |
public static void sort(Object[] a) { sort(a, 0, a.length, null); } | public static void sort(Object[] a) { qsort(a, 0, a.length); } | 46,821 |
public Name add(String comp) throws InvalidNameException; | public Name add(String comp) throws InvalidNameException; | 46,822 |
public Name addAll(Name suffix) throws InvalidNameException; | public Name addAll(Name suffix) throws InvalidNameException; | 46,823 |
public int compareTo(Object obj); | public int compareTo(Object obj); | 46,824 |
public boolean endsWith(Name name); | public boolean endsWith(Name name); | 46,825 |
public Enumeration getAll(); | public Enumeration getAll(); | 46,826 |
public Name getPrefix(int i); | public Name getPrefix(int i); | 46,827 |
public Name getSuffix(int i); | public Name getSuffix(int i); | 46,828 |
public boolean isEmpty(); | public boolean isEmpty(); | 46,829 |
public Object remove(int posn) throws InvalidNameException; | public Object remove(int posn) throws InvalidNameException; | 46,830 |
public boolean startsWith(Name name); | public boolean startsWith(Name name); | 46,831 |
public void init() { try { Connection conn = getNextConnection(); sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); } catch (Exception e) { log.error("Receiver failed", e); failed... | public void init() { try { Connection conn = getNextConnection(); sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); } catch (Exception e) { log.error("Receiver failed", e); failed = true; } } | 46,832 |
public void run() { try { QueueBrowser browser = sess.createBrowser((Queue)dest, selector); int count = 0; Iterator iter = Collections.list(browser.getEnumeration()).iterator(); while (count < numMessa... | public void run() { try { QueueBrowser browser = sess.createBrowser((Queue)dest, selector); int count = 0; Iterator iter = Collections.list(browser.getEnumeration()).iterator(); while (count < numMessa... | 46,833 |
void checkProperty(String name, Object value) throws JMSException { if (name == null) throw new IllegalArgumentException("The name of a property must not be null."); if (name.equals("")) throw new IllegalArgumentException("The name of a property must not be an empty String."); if (St... | void checkProperty(String name, Object value) throws JMSException { if (name == null) throw new IllegalArgumentException("The name of a property must not be null."); if (name.equals("")) throw new IllegalArgumentException("The name of a property must not be an empty String."); if (St... | 46,834 |
void checkProperty(String name, Object value) throws JMSException { if (name == null) throw new IllegalArgumentException("The name of a property must not be null."); if (name.equals("")) throw new IllegalArgumentException("The name of a property must not be an empty String."); if (St... | void checkProperty(String name, Object value) throws JMSException { if (name == null) throw new IllegalArgumentException("The name of a property must not be null."); if (name.equals("")) throw new IllegalArgumentException("The name of a property must not be an empty String."); if (St... | 46,835 |
public void clearBody() throws JMSException { this.messageReadWrite = true; } | public void clearBody() throws JMSException { } | 46,836 |
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = (Destination) in.readObject(); replyToDestination = (Destination) in.readObject(); type = readString(in); messageReadWrite = in.readBoolean(); properties = readM... | public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = (Destination) in.readObject(); replyToDestination = (Destination) in.readObject(); type = readString(in); propertiesWritable = in.readBoolean(); properties = rea... | 46,838 |
public void setBooleanProperty(String name, boolean value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Boolean b = Primitives.valueOf(value); checkProperty(name, b); properties.put(name, b); } | public void setBooleanProperty(String name, boolean value) throws JMSException { if (!propertiesWritable) throw new MessageNotWriteableException("Properties are read-only"); Boolean b = Primitives.valueOf(value); checkProperty(name, b); properties.put(name, b); } | 46,839 |
public void setByteProperty(String name, byte value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Byte b = new Byte(value); checkProperty(name, b); properties.put(name, b); } | public void setByteProperty(String name, byte value) throws JMSException { if (!propertiesWritable) throw new MessageNotWriteableException("Properties are read-only"); Byte b = new Byte(value); checkProperty(name, b); properties.put(name, b); } | 46,840 |
public void setDoubleProperty(String name, double value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Double d = new Double(value); checkProperty(name, d); properties.put(name, d); } | public void setDoubleProperty(String name, double value) throws JMSException { if (!propertiesWritable) throw new MessageNotWriteableException("Properties are read-only"); Double d = new Double(value); checkProperty(name, d); properties.put(name, d); } | 46,841 |
public void setFloatProperty(String name, float value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Float f = new Float(value); checkProperty(name, f); properties.put(name, f); } | public void setFloatProperty(String name, float value) throws JMSException { if (!propertiesWritable) throw new MessageNotWriteableException("Properties are read-only"); Float f = new Float(value); checkProperty(name, f); properties.put(name, f); } | 46,842 |
public void setIntProperty(String name, int value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Integer i = new Integer(value); checkProperty(name, i); properties.put(name, i); } | public void setIntProperty(String name, int value) throws JMSException { if (!propertiesWritable) throw new MessageNotWriteableException("Properties are read-only"); Integer i = new Integer(value); checkProperty(name, i); properties.put(name, i); } | 46,843 |
public void setLongProperty(String name, long value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Long l = new Long(value); checkProperty(name, l); properties.put(name, l); } | public void setLongProperty(String name, long value) throws JMSException { if (!propertiesWritable) throw new MessageNotWriteableException("Properties are read-only"); Long l = new Long(value); checkProperty(name, l); properties.put(name, l); } | 46,844 |
public void setObjectProperty(String name, Object value) throws JMSException { if (!messageReadWrite) { throw new MessageNotWriteableException("Properties are read-only"); } checkProperty(name, value); if (value instanceof Boolean) { properties.put(name, value); }... | public void setObjectProperty(String name, Object value) throws JMSException { if (!propertiesWritable) { throw new MessageNotWriteableException("Properties are read-only"); } checkProperty(name, value); if (value instanceof Boolean) { properties.put(name, value); ... | 46,845 |
public void setShortProperty(String name, short value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Short s = new Short(value); checkProperty(name, s); properties.put(name, s); } | public void setShortProperty(String name, short value) throws JMSException { if (!propertiesWritable) throw new MessageNotWriteableException("Properties are read-only"); Short s = new Short(value); checkProperty(name, s); properties.put(name, s); } | 46,846 |
public void setStringProperty(String name, String value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); checkProperty(name, value); this.properties.put(name, value); } | public void setStringProperty(String name, String value) throws JMSException { if (!propertiesWritable) throw new MessageNotWriteableException("Properties are read-only"); checkProperty(name, value); this.properties.put(name, value); } | 46,847 |
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(destination); out.writeObject(replyToDestination); writeString(out, type); out.writeBoolean(messageReadWrite); //do we really need to write this?? writeMap(out, properties); ... | public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(destination); out.writeObject(replyToDestination); writeString(out, type); out.writeBoolean(propertiesWritable); //do we really need to write this?? writeMap(out, properties); ... | 46,848 |
public void testEquivalent_7() throws Exception { String s = "<a><b/><c/></a>"; String s2 = "<a><c/><b/></a>"; try { XMLUtil.assertEquivalent(XMLUtil.stringToElement(s), XMLUtil.stringToElement(s2)); fail("this should throw exception"); } catch(XMLRuntimeException e) ... | publicvoidtestEquivalent_7()throwsException{Strings="<a><b/><c/></a>";Strings2="<a><c/><b/></a>";try{XMLUtil.assertEquivalent(XMLUtil.stringToElement(s),XMLUtil.stringToElement(s2));fail("thisshouldthrowexception");}catch(XMLRuntimeExceptione){//OKlog.debug("STACKTRACE",e);}} | 46,849 |
public NamingSecurityException() { super(); } | public NamingSecurityException() { super(); } | 46,850 |
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | 46,851 |
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | 46,852 |
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | 46,853 |
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | 46,854 |
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | 46,855 |
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | 46,856 |
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | 46,857 |
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | 46,858 |
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | 46,859 |
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | 46,860 |
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | 46,861 |
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | 46,862 |
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | 46,863 |
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | 46,864 |
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | 46,865 |
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | 46,866 |
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu... | 46,867 |
private void validateDTD() throws InvalidWorkflowDescriptorException { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); dbf.setValidating(true); StringWriter sw = new StringWriter(); PrintWriter writer = new PrintWriter(sw); wr... | private void validateDTD() throws InvalidWorkflowDescriptorException { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); dbf.setValidating(true); StringWriter sw = new StringWriter(); PrintWriter writer = new PrintWriter(sw); wr... | 46,868 |
private void validateDTD() throws InvalidWorkflowDescriptorException { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); dbf.setValidating(true); StringWriter sw = new StringWriter(); PrintWriter writer = new PrintWriter(sw); wr... | private void validateDTD() throws InvalidWorkflowDescriptorException { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); dbf.setValidating(true); StringWriter sw = new StringWriter(); PrintWriter writer = new PrintWriter(sw); wr... | 46,869 |
public void close() { synchronized (closedLock) { closed = true; //Interrup the listening thread if there is one if (listening) { stopListener(); } if (receiving) { stopReceiver(); } ... | public void close() { synchronized (closedLock) { closed = true; //Interrup the listening thread if there is one if (listening) { stopListener(); } if (receiving) { stopReceiver(); } ... | 46,870 |
protected void postDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { sessionDelegate.postDeliver(m.getJMSMessageID(), receiverID... | protected static void postDeliver(SessionDelegate sess, String receiverID, Message m, boolean isConnectionConsumer) { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { s... | 46,872 |
protected void postDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { sessionDelegate.postDeliver(m.getJMSMessageID(), receiverID... | protected void postDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session try { sessionDelegate.postDeliver(m.getJMSMessageID(), receiverID); } } | 46,873 |
protected void postDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { sessionDelegate.postDeliver(m.getJMSMessageID(), receiverID... | protected void postDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { if (!isConnectionConsumer) { sess.postDeliver(m.getJMSMes... | 46,874 |
protected void preDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { sessionDelegate.preDeliver(m.getJMSMessageID(), receiverID);... | protected static void preDeliver(SessionDelegate sess, String receiverID, Message m, boolean isConnectionConsumer) { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { se... | 46,876 |
protected void preDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { sessionDelegate.preDeliver(m.getJMSMessageID(), receiverID);... | protected void preDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session try { sessionDelegate.preDeliver(m.getJMSMessageID(), receiverID); } } | 46,877 |
protected void preDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { sessionDelegate.preDeliver(m.getJMSMessageID(), receiverID);... | protected void preDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { if (!isConnectionConsumer) { sess.preDeliver(m.getJMSMessa... | 46,878 |
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c... | public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a close is in operation. ... | 46,880 |
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c... | public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c... | 46,881 |
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c... | public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c... | 46,882 |
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c... | public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c... | 46,883 |
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c... | public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c... | 46,884 |
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c... | public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c... | 46,885 |
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c... | public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c... | 46,886 |
public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } try { while(true) { if (log.isTraceEnabled()) { log.trace("blocking to take a message"); } if (!listenerStopping) { ... | public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } try { while(true) { if (log.isTraceEnabled()) { log.trace("blocking to take a message"); } if (!stopping) { ... | 46,887 |
public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } try { while(true) { if (log.isTraceEnabled()) { log.trace("blocking to take a message"); } if (!listenerStopping) { ... | public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } try { while(true) { if (log.isTraceEnabled()) { log.trace("blocking to take a message"); } if (!listenerStopping) { ... | 46,888 |
protected void stopListener() { listenerStopping = true; //The listener loop may not be waiting, so interrupting the thread will //not necessarily work, thus leaving it hanging //so we use the listenerStopping variable too listenerThread.interrupt(); try { listenerT... | protected void stopListener() { stopping = true; //The listener loop may not be waiting, so interrupting the thread will //not necessarily work, thus leaving it hanging //so we use the listenerStopping variable too listenerThread.interrupt(); try { listenerThread.jo... | 46,889 |
protected void stopListener() { listenerStopping = true; //The listener loop may not be waiting, so interrupting the thread will //not necessarily work, thus leaving it hanging //so we use the listenerStopping variable too listenerThread.interrupt(); try { listenerT... | protected void stopListener() { listenerStopping = true; //The listener loop may not be waiting, so interrupting the thread will //not necessarily work, thus leaving it hanging //so we use the listenerStopping variable too listenerThread.interrupt(); try { listenerT... | 46,890 |
protected void stopReceiver() { receiverStopping = true; //The listener loop may not be waiting, so interrupting the thread will //not necessarily work, thus leaving it hanging //so we use the listenerStopping variable too receiverThread.interrupt(); receiverStopping = fal... | protected void stopReceiver() { stopping = true; //The listener loop may not be waiting, so interrupting the thread will //not necessarily work, thus leaving it hanging //so we use the listenerStopping variable too receiverThread.interrupt(); receiverStopping = false; ... | 46,891 |
protected void stopReceiver() { receiverStopping = true; //The listener loop may not be waiting, so interrupting the thread will //not necessarily work, thus leaving it hanging //so we use the listenerStopping variable too receiverThread.interrupt(); receiverStopping = fal... | protected void stopReceiver() { receiverStopping = true; //The listener loop may not be waiting, so interrupting the thread will //not necessarily work, thus leaving it hanging //so we use the listenerStopping variable too receiverThread.interrupt(); stopping = false; ... | 46,892 |
public static Connector getCallbackServer() throws Exception { if (callbackServer == null) { callbackServer = new Connector(); callbackServer.setInvokerLocator(new InvokerLocator(callbackServerURI).getLocatorURI()); callbackServer.start(); // TODO this is unnecessary ... | public static Connector getCallbackServer() throws Exception { if (callbackServer == null) { callbackServer = new Connector(); callbackServer.setInvokerLocator(new InvokerLocator(callbackServerURI).getLocatorURI()); callbackServer.start(); // TODO this is unnecessary ... | 46,893 |
public static Connector getCallbackServer() throws Exception { if (callbackServer == null) { callbackServer = new Connector(); callbackServer.setInvokerLocator(new InvokerLocator(callbackServerURI).getLocatorURI()); callbackServer.start(); // TODO this is unnecessary ... | public static Connector getCallbackServer() throws Exception { if (callbackServer == null) { callbackServer = new Connector(); callbackServer.setInvokerLocator(new InvokerLocator(callbackServerURI).getLocatorURI()); callbackServer.start(); // TODO this is unnecessary ... | 46,894 |
public void tearDown() throws Exception { producerConnection.close(); consumerConnection.close(); ServerManagement.undeployQueue("Queue"); //ServerManagement.deInit(); super.tearDown(); } | public void tearDown() throws Exception { producerConnection.close(); consumerConnection.close(); ServerManagement.undeployQueue("Queue"); //ServerManagement.deInit(); super.tearDown(); } | 46,895 |
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeployTopic("Topic2"); ServerManagement.undeployQueue("Queue"); ServerManagement.deployTopic("Topic"); ServerManagement.deployTopic("To... | public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeployTopic("Topic2"); ServerManagement.undeployQueue("Queue"); ServerManagement.deployTopic("Topic"); ServerManagement.deployTopic("To... | 46,896 |
public void tearDown() throws Exception { ServerManagement.undeployTopic("Topic"); ServerManagement.undeployTopic("Topic2"); ServerManagement.undeployQueue("Queue"); super.tearDown(); } | publicvoidtearDown()throwsException{ServerManagement.undeployTopic("Topic");ServerManagement.undeployTopic("Topic2");ServerManagement.undeployQueue("Queue");super.tearDown();} | 46,897 |
public void recoverChannel() throws Exception { queue = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor(), null); } | public void recoverChannel() throws Exception { queue = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor(), null); } | 46,898 |
public void setUp() throws Exception { super.setUp(); queue = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor(), null); } | public void setUp() throws Exception { super.setUp(); queue = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor(), null); } | 46,899 |
public Xid[] getPreparedTransactions() { List xids = this.serverPeer.getTxRepository().getPreparedTransactions(); return (Xid[])xids.toArray(); } | public Xid[] getPreparedTransactions() { List xids = this.serverPeer.getTxRepository().getPreparedTransactions(); return (Xid[])xids.toArray(new Xid[xids.size()]); } | 46,900 |
protected Keymap createKeymap() { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); JTextComponent.KeyBinding[] bindings = (JTextComponent.KeyBinding[]) defaults.get(prefix + ".keyBindings"); if (bindings == null) { bindings = new JTextCompon... | protected Keymap createKeymap() { String prefix = getPropertyPrefix(); JTextComponent.KeyBinding[] bindings = (JTextComponent.KeyBinding[]) defaults.get(prefix + ".keyBindings"); if (bindings == null) { bindings = new JTextComponent.KeyBinding[0]; defaults.put(prefix + ".keyBindi... | 46,901 |
protected Keymap createKeymap() { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); JTextComponent.KeyBinding[] bindings = (JTextComponent.KeyBinding[]) defaults.get(prefix + ".keyBindings"); if (bindings == null) { bindings = new JTextCompon... | protected Keymap createKeymap() { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); JTextComponent.KeyBinding[] bindings = (JTextComponent.KeyBinding[]) UIManager.get(prefix + ".keyBindings"); if (bindings == null) { bindings = new JTextCompo... | 46,902 |
protected Keymap createKeymap() { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); JTextComponent.KeyBinding[] bindings = (JTextComponent.KeyBinding[]) defaults.get(prefix + ".keyBindings"); if (bindings == null) { bindings = new JTextCompon... | protected Keymap createKeymap() { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); JTextComponent.KeyBinding[] bindings = (JTextComponent.KeyBinding[]) defaults.get(prefix + ".keyBindings"); if (bindings == null) { bindings = new JTextCompon... | 46,903 |
ActionMap getActionMap() { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); ActionMap am = (ActionMap) defaults.get(prefix + ".actionMap"); if (am == null) { am = createActionMap(); defaults.put(prefix + ".actionMap", am); } ret... | ActionMap getActionMap() { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); ActionMap am = (ActionMap) defaults.get(prefix + ".actionMap"); if (am == null) { am = createActionMap(); defaults.put(prefix + ".actionMap", am); } ret... | 46,904 |
ActionMap getActionMap() { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); ActionMap am = (ActionMap) defaults.get(prefix + ".actionMap"); if (am == null) { am = createActionMap(); defaults.put(prefix + ".actionMap", am); } ret... | ActionMap getActionMap() { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); ActionMap am = (ActionMap) defaults.get(prefix + ".actionMap"); if (am == null) { am = createActionMap(); UIManager.put(prefix + ".actionMap", am); } ... | 46,905 |
InputMap getInputMap(int condition) { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); switch (condition) { case JComponent.WHEN_IN_FOCUSED_WINDOW: // FIXME: is this the right string? nobody seems to use it. return (InputMap) defaults.get... | InputMap getInputMap(int condition) { String prefix = getPropertyPrefix(); switch (condition) { case JComponent.WHEN_IN_FOCUSED_WINDOW: // FIXME: is this the right string? nobody seems to use it. return (InputMap) defaults.get(prefix + ".windowInputMap"); case JComponent.WHEN_A... | 46,906 |
InputMap getInputMap(int condition) { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); switch (condition) { case JComponent.WHEN_IN_FOCUSED_WINDOW: // FIXME: is this the right string? nobody seems to use it. return (InputMap) defaults.get... | InputMap getInputMap(int condition) { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); switch (condition) { case JComponent.WHEN_IN_FOCUSED_WINDOW: // FIXME: is this the right string? nobody seems to use it. return (InputMap) UIManager.ge... | 46,907 |
InputMap getInputMap(int condition) { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); switch (condition) { case JComponent.WHEN_IN_FOCUSED_WINDOW: // FIXME: is this the right string? nobody seems to use it. return (InputMap) defaults.get... | InputMap getInputMap(int condition) { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); switch (condition) { case JComponent.WHEN_IN_FOCUSED_WINDOW: // FIXME: is this the right string? nobody seems to use it. return (InputMap) defaults.get... | 46,908 |
InputMap getInputMap(int condition) { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); switch (condition) { case JComponent.WHEN_IN_FOCUSED_WINDOW: // FIXME: is this the right string? nobody seems to use it. return (InputMap) defaults.get... | InputMap getInputMap(int condition) { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); switch (condition) { case JComponent.WHEN_IN_FOCUSED_WINDOW: // FIXME: is this the right string? nobody seems to use it. return (InputMap) defaults.get... | 46,909 |
protected Rectangle getVisibleEditorRect() { int width = textComponent.getWidth(); int height = textComponent.getHeight(); if (width <= 0 || height <= 0) return new Rectangle(0, 0, 0, 0); Insets insets = textComponent.getInsets(); return new Rectangle(insets.left, insets.top, width - insets.l... | protected Rectangle getVisibleEditorRect() { int width = textComponent.getWidth(); int height = textComponent.getHeight(); if (width <= 0 || height <= 0) return new Rectangle(0, 0, 0, 0); Insets insets = textComponent.getInsets(); return new Rectangle(insets.left, insets.top, width - insets.l... | 46,910 |
public void menuDragMouseDragged(MenuDragMouseEvent event); | public void menuDragMouseDragged(MenuDragMouseEvent event); | 46,914 |
public void menuDragMouseEntered(MenuDragMouseEvent event); | public void menuDragMouseEntered(MenuDragMouseEvent event); | 46,915 |
public void menuDragMouseExited(MenuDragMouseEvent event); | public void menuDragMouseExited(MenuDragMouseEvent event); | 46,916 |
public void menuDragMouseReleased(MenuDragMouseEvent event); | public void menuDragMouseReleased(MenuDragMouseEvent event); | 46,917 |
public static void paintTable( Context c, TableBox table, boolean restyle ) { restyle = restyle || table.restyle; table.restyle = false; c.getGraphics().translate( table.x, table.y ); Border border = c.getCurrentStyle().getBorderWidth( c.getBlockFormattingContext().getWidth(), c.getBlock... | public static void paintTable( Context c, TableBox table, boolean restyle ) { restyle = restyle || table.restyle; table.restyle = false; Border border = c.getCurrentStyle().getBorderWidth( c.getBlockFormattingContext().getWidth(), c.getBlockFormattingContext().getHeight() ); Bord... | 46,918 |
public static void paintTable( Context c, TableBox table, boolean restyle ) { restyle = restyle || table.restyle; table.restyle = false; c.getGraphics().translate( table.x, table.y ); Border border = c.getCurrentStyle().getBorderWidth( c.getBlockFormattingContext().getWidth(), c.getBlock... | public static void paintTable( Context c, TableBox table, boolean restyle ) { restyle = restyle || table.restyle; table.restyle = false; c.getGraphics().translate( table.x, table.y ); Border border = c.getCurrentStyle().getBorderWidth( c.getBlockFormattingContext().getWidth(), c.getBlock... | 46,919 |
public static void paintTable( Context c, TableBox table, boolean restyle ) { restyle = restyle || table.restyle; table.restyle = false; c.getGraphics().translate( table.x, table.y ); Border border = c.getCurrentStyle().getBorderWidth( c.getBlockFormattingContext().getWidth(), c.getBlock... | public static void paintTable( Context c, TableBox table, boolean restyle ) { restyle = restyle || table.restyle; table.restyle = false; c.getGraphics().translate( table.x, table.y ); Border border = c.getCurrentStyle().getBorderWidth( c.getBlockFormattingContext().getWidth(), c.getBlock... | 46,920 |
public static void paintTable( Context c, TableBox table, boolean restyle ) { restyle = restyle || table.restyle; table.restyle = false; c.getGraphics().translate( table.x, table.y ); Border border = c.getCurrentStyle().getBorderWidth( c.getBlockFormattingContext().getWidth(), c.getBlock... | public static void paintTable( Context c, TableBox table, boolean restyle ) { restyle = restyle || table.restyle; table.restyle = false; c.getGraphics().translate( table.x, table.y ); ... | 46,921 |
public static void paintTable( Context c, TableBox table, boolean restyle ) { restyle = restyle || table.restyle; table.restyle = false; c.getGraphics().translate( table.x, table.y ); Border border = c.getCurrentStyle().getBorderWidth( c.getBlockFormattingContext().getWidth(), c.getBlock... | publicstaticvoidpaintTable(Contextc,TableBoxtable,booleanrestyle){restyle=restyle||table.restyle;table.restyle=false;c.getGraphics().translate(table.x,table.y);Borderborder=c.getCurrentStyle().getBorderWidth(c.getBlockFormattingContext().getWidth(),c.getBlockFormattingContext().getHeight());Bordermargin=c.getCurrentSty... | 46,922 |
public static void paintTable( Context c, TableBox table, boolean restyle ) { restyle = restyle || table.restyle; table.restyle = false; c.getGraphics().translate( table.x, table.y ); Border border = c.getCurrentStyle().getBorderWidth( c.getBlockFormattingContext().getWidth(), c.getBlock... | public static void paintTable( Context c, TableBox table, boolean restyle ) { restyle = restyle || table.restyle; table.restyle = false; c.getGraphics().translate( table.x, table.y ); Border border = c.getCurrentStyle().getBorderWidth( c.getBlockFormattingContext().getWidth(), c.getBlock... | 46,923 |
public static void paintTable( Context c, TableBox table, boolean restyle ) { restyle = restyle || table.restyle; table.restyle = false; c.getGraphics().translate( table.x, table.y ); Border border = c.getCurrentStyle().getBorderWidth( c.getBlockFormattingContext().getWidth(), c.getBlock... | public static void paintTable( Context c, TableBox table, boolean restyle ) { restyle = restyle || table.restyle; table.restyle = false; c.getGraphics().translate( table.x, table.y ); Border border = c.getCurrentStyle().getBorderWidth( c.getBlockFormattingContext().getWidth(), c.getBlock... | 46,924 |
public void columnSelectionChanged (ListSelectionEvent event) { repaint(); } | public void columnSelectionChanged (ListSelectionEvent event) { if (getColumnCount() < 2) return; int x0 = 0; int idx0 = event.getFirstIndex(); int idxn = event.getLastIndex(); int i; for (i = 0; i < idx0; i++) x0 += columnModel.getColumn(i).getWidth(); int xn = x0; for (i = idx0; i <= idxn; i++) xn += colu... | 46,925 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.