bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public String getTestString() { StringBuffer sb = new StringBuffer(); // type sb.append(" " + this.hashCode() + " "); if (this instanceof LineBox) { sb.append("line:"); } else if (this instanceof InlineBox) { sb.append("inline:"); } else { s... | public String getTestString() { StringBuffer sb = new StringBuffer(); // type sb.append(" " + this.hashCode() + " "); if (this instanceof LineBox) { sb.append("line:"); } else if (this instanceof InlineBox) { sb.append("inline:"); } else { s... | 32,188 |
public String getTestString() { StringBuffer sb = new StringBuffer(); // type sb.append(" " + this.hashCode() + " "); if (this instanceof LineBox) { sb.append("line:"); } else if (this instanceof InlineBox) { sb.append("inline:"); } else { s... | public String getTestString() { StringBuffer sb = new StringBuffer(); // type sb.append(" " + this.hashCode() + " "); if (this instanceof LineBox) { sb.append("line:"); } else if (this instanceof InlineBox) { sb.append("inline:"); } else { s... | 32,189 |
public String getTestString() { StringBuffer sb = new StringBuffer(); // type sb.append(" " + this.hashCode() + " "); if (this instanceof LineBox) { sb.append("line:"); } else if (this instanceof InlineBox) { sb.append("inline:"); } else { s... | public String getTestString() { StringBuffer sb = new StringBuffer(); // type sb.append(" " + this.hashCode() + " "); if (this instanceof LineBox) { sb.append("line:"); } else if (this instanceof InlineBox) { sb.append("inline:"); } else { s... | 32,190 |
public CalculatedStyle getStyle() { return _style; } | public CascadedStyle getStyle() { return _style; } | 32,191 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing for "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { backgroun... | 32,192 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | 32,193 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | 32,194 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | 32,195 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | 32,196 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | 32,197 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | 32,198 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | 32,199 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | 32,200 |
public void createComponents() throws Exception { xhtml = new XHTMLPanel(); Uu.p("url = " + getClass().getResource("main.xhtml")); xhtml.setDocument(getClass().getResource("main.xhtml")); filelistmodel = new FileListModel(); filelist = new JList(filelistmodel); } | public void createComponents() throws Exception { xhtml = new XHTMLPanel(); Uu.p("url = " + getClass().getResource("main.xhtml")); xhtml.setDocument(getClass().getResource("main.xhtml").toExternalForm()); filelistmodel = new FileListModel(); filelist = new JList(filelistmodel); ... | 32,202 |
protected void initSqlProperties() { insertMessageRef = sqlProperties.getProperty("INSERT_MESSAGE_REF", insertMessageRef); deleteMessageRef = sqlProperties.getProperty("DELETE_MESSAGE_REF", deleteMessageRef); updateMessageRef = sqlProperties.getProperty("UPDATE_MESSAGE_REF", updateMessageRef); ... | protected void initSqlProperties() { insertMessageRef = sqlProperties.getProperty("INSERT_MESSAGE_REF", insertMessageRef); deleteMessageRef = sqlProperties.getProperty("DELETE_MESSAGE_REF", deleteMessageRef); updateMessageRef = sqlProperties.getProperty("UPDATE_MESSAGE_REF", updateMessageRef); ... | 32,203 |
protected synchronized void startService() throws Exception { if (started) { throw new IllegalStateException("Service is already started"); } super.startService(); try { TransactionManager tm = getTransactionManagerReference(); ServerPeer... | protected synchronized void startService() throws Exception { if (started) { throw new IllegalStateException("Service is already started"); } super.startService(); try { TransactionManager tm = getTransactionManagerReference(); ServerPeer... | 32,206 |
public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, ... | public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, ... | 32,207 |
public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, ... | public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, ... | 32,208 |
public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, ... | public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, ... | 32,209 |
public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, ... | public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, ... | 32,210 |
public void testCallbackFailure() throws Exception { if (!ServerManagement.isRemote()) return; //We need to disable exception listener otherwise it will clear up the connection itself ObjectName connectorName = localServer.getServerPeer().getConnector(); ConnectionManager cm =... | public void testCallbackFailure() throws Exception { if (!ServerManagement.isRemote()) return; //We need to disable exception listener otherwise it will clear up the connection itself ObjectName connectorName = localServer.getServerPeer().getConnector(); ConnectionManager cm =... | 32,211 |
public void testCallbackFailure() throws Exception { if (!ServerManagement.isRemote()) return; //We need to disable exception listener otherwise it will clear up the connection itself ObjectName connectorName = localServer.getServerPeer().getConnector(); ConnectionManager cm =... | public void testCallbackFailure() throws Exception { if (!ServerManagement.isRemote()) return; //We need to disable exception listener otherwise it will clear up the connection itself ObjectName connectorName = localServer.getServerPeer().getConnector(); ConnectionManager cm =... | 32,212 |
public void clearProperties() throws JMSException { properties.clear(); propertiesWritable = true; } | public void clearProperties() throws JMSException { properties.clear(); propertiesReadOnly = false; } | 32,214 |
public String getJMSCorrelationID() throws JMSException { if (isCorrelationIDBytes) { throw new JMSException("CorrelationID is a byte[] for this message"); } return correlationID; } | public String getJMSCorrelationID() throws JMSException { if (this.correlationIDBytes != null) { throw new JMSException("CorrelationID is a byte[] for this message"); } return correlationID; } | 32,215 |
public byte[] getJMSCorrelationIDAsBytes() throws JMSException { if (!isCorrelationIDBytes) { throw new JMSException("CorrelationID is a String for this message"); } return correlationIDBytes; } | public byte[] getJMSCorrelationIDAsBytes() throws JMSException { if (this.correlationIDBytes == null) { throw new JMSException("CorrelationID is a String for this message"); } return correlationIDBytes; } | 32,216 |
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = (Destination) in.readObject(); replyToDestination = (Destination) in.readObject(); jmsType = readString(in); propertiesWritable = in.readBoolean(); properties = ... | public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = (Destination) in.readObject(); replyToDestination = (Destination) in.readObject(); jmsType = readString(in); propertiesWritable = in.readBoolean(); properties = ... | 32,217 |
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = (Destination) in.readObject(); replyToDestination = (Destination) in.readObject(); jmsType = readString(in); propertiesWritable = in.readBoolean(); properties = ... | public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = (Destination) in.readObject(); replyToDestination = (Destination) in.readObject(); jmsType = readString(in); propertiesWritable = in.readBoolean(); properties = ... | 32,218 |
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = (Destination) in.readObject(); replyToDestination = (Destination) in.readObject(); jmsType = readString(in); propertiesWritable = in.readBoolean(); properties = ... | public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = (Destination) in.readObject(); replyToDestination = (Destination) in.readObject(); jmsType = readString(in); propertiesWritable = in.readBoolean(); properties = ... | 32,219 |
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = (Destination) in.readObject(); replyToDestination = (Destination) in.readObject(); jmsType = readString(in); propertiesWritable = in.readBoolean(); properties = ... | public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = (Destination) in.readObject(); replyToDestination = (Destination) in.readObject(); jmsType = readString(in); propertiesWritable = in.readBoolean(); properties = ... | 32,220 |
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); } | public void setBooleanProperty(String name, boolean value) throws JMSException { if (propertiesReadOnly) throw new MessageNotWriteableException("Properties are read-only"); Boolean b = Primitives.valueOf(value); checkProperty(name, b); properties.put(name, b); } | 32,222 |
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); } | public void setByteProperty(String name, byte value) throws JMSException { if (propertiesReadOnly) throw new MessageNotWriteableException("Properties are read-only"); Byte b = new Byte(value); checkProperty(name, b); properties.put(name, b); } | 32,223 |
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); } | public void setDoubleProperty(String name, double value) throws JMSException { if (propertiesReadOnly) throw new MessageNotWriteableException("Properties are read-only"); Double d = new Double(value); checkProperty(name, d); properties.put(name, d); } | 32,224 |
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); } | public void setFloatProperty(String name, float value) throws JMSException { if (propertiesReadOnly) throw new MessageNotWriteableException("Properties are read-only"); Float f = new Float(value); checkProperty(name, f); properties.put(name, f); } | 32,225 |
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); } | public void setIntProperty(String name, int value) throws JMSException { if (propertiesReadOnly) throw new MessageNotWriteableException("Properties are read-only"); Integer i = new Integer(value); checkProperty(name, i); properties.put(name, i); } | 32,226 |
public void setJMSCorrelationID(String correlationID) throws JMSException { this.correlationID = correlationID; isCorrelationIDBytes = false; } | public void setJMSCorrelationID(String correlationID) throws JMSException { this.correlationID = correlationID; correlationIDBytes = null; } | 32,227 |
public void setJMSCorrelationIDAsBytes(byte[] correlationID) throws JMSException { if (correlationID == null || correlationID.length == 0) { throw new JMSException("Please specify a non-zero length byte[]"); } correlationIDBytes = correlationID; isCorrelationIDBytes = true; } | public void setJMSCorrelationIDAsBytes(byte[] correlationID) throws JMSException { if (correlationID == null || correlationID.length == 0) { throw new JMSException("Please specify a non-zero length byte[]"); } correlationIDBytes = correlationID; correlationID = null; } | 32,228 |
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); } | public void setLongProperty(String name, long value) throws JMSException { if (propertiesReadOnly) throw new MessageNotWriteableException("Properties are read-only"); Long l = new Long(value); checkProperty(name, l); properties.put(name, l); } | 32,229 |
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); ... | public void setObjectProperty(String name, Object value) throws JMSException { if (propertiesReadOnly) { throw new MessageNotWriteableException("Properties are read-only"); } checkProperty(name, value); if (value instanceof Boolean) { properties.put(name, value); ... | 32,230 |
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); } | public void setShortProperty(String name, short value) throws JMSException { if (propertiesReadOnly) throw new MessageNotWriteableException("Properties are read-only"); Short s = new Short(value); checkProperty(name, s); properties.put(name, s); } | 32,231 |
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); } | public void setStringProperty(String name, String value) throws JMSException { if (propertiesReadOnly) throw new MessageNotWriteableException("Properties are read-only"); checkProperty(name, value); this.properties.put(name, value); } | 32,232 |
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(destination); out.writeObject(replyToDestination); writeString(out, jmsType); out.writeBoolean(propertiesWritable); writeMap(out, properties); out.writeBoolean(isCorre... | public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(destination); out.writeObject(replyToDestination); writeString(out, jmsType); writeMap(out, properties); out.writeBoolean(isCorrelationIDBytes); if (isCorrelatio... | 32,233 |
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(destination); out.writeObject(replyToDestination); writeString(out, jmsType); out.writeBoolean(propertiesWritable); writeMap(out, properties); out.writeBoolean(isCorre... | public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(destination); out.writeObject(replyToDestination); writeString(out, jmsType); out.writeBoolean(propertiesWritable); writeMap(out, properties); out.writeBoolean(isCorre... | 32,234 |
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(destination); out.writeObject(replyToDestination); writeString(out, jmsType); out.writeBoolean(propertiesWritable); writeMap(out, properties); out.writeBoolean(isCorre... | public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(destination); out.writeObject(replyToDestination); writeString(out, jmsType); out.writeBoolean(propertiesWritable); writeMap(out, properties); out.writeBoolean(isCorre... | 32,235 |
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(destination); out.writeObject(replyToDestination); writeString(out, jmsType); out.writeBoolean(propertiesWritable); writeMap(out, properties); out.writeBoolean(isCorre... | public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(destination); out.writeObject(replyToDestination); writeString(out, jmsType); out.writeBoolean(propertiesWritable); writeMap(out, properties); out.writeBoolean(isCorre... | 32,236 |
public Object handleCommit(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); if (!state.isTransacted()) { throw new IllegalStateException("Cannot commit a non-transacted session"); } if (state.isXA()) { throw... | public Object handleCommit(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); if (!state.isTransacted()) { throw new IllegalStateException("Cannot commit a non-transacted session"); } if (state.isXA()) { throw... | 32,238 |
public Object handleCommit(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); if (!state.isTransacted()) { throw new IllegalStateException("Cannot commit a non-transacted session"); } if (state.isXA()) { throw... | public Object handleCommit(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); if (!state.isTransacted()) { throw new IllegalStateException("Cannot commit a non-transacted session"); } if (state.isXA()) { throw... | 32,239 |
public Object handlePreDeliver(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); if (state.isTransacted()) { MethodInvocation mi = (MethodInvocation)invocation; String messageID = (String)mi.getArguments()[0]; ... | public Object handlePreDeliver(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); if (state.isTransacted()) { MethodInvocation mi = (MethodInvocation)invocation; String messageID = (String)mi.getArguments()[0]; ... | 32,240 |
public Object handleRollback(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); SessionDelegate sessDelegate = (SessionDelegate)state.getDelegate(); if (!state.isTransacted()) { throw new IllegalStateException("Cannot ... | public Object handleRollback(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); if (!state.isTransacted()) { throw new IllegalStateException("Cannot rollback a non-transacted session"); } if (state.isX... | 32,241 |
public Object handleRollback(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); SessionDelegate sessDelegate = (SessionDelegate)state.getDelegate(); if (!state.isTransacted()) { throw new IllegalStateException("Cannot ... | public Object handleRollback(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); SessionDelegate sessDelegate = (SessionDelegate)state.getDelegate(); if (!state.isTransacted()) { throw new IllegalStateException("Cannot ... | 32,242 |
public Object handleRollback(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); SessionDelegate sessDelegate = (SessionDelegate)state.getDelegate(); if (!state.isTransacted()) { throw new IllegalStateException("Cannot ... | public Object handleRollback(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); SessionDelegate sessDelegate = (SessionDelegate)state.getDelegate(); if (!state.isTransacted()) { throw new IllegalStateException("Cannot ... | 32,243 |
public Object handleRollback(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); SessionDelegate sessDelegate = (SessionDelegate)state.getDelegate(); if (!state.isTransacted()) { throw new IllegalStateException("Cannot ... | public Object handleRollback(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); SessionDelegate sessDelegate = (SessionDelegate)state.getDelegate(); if (!state.isTransacted()) { throw new IllegalStateException("Cannot ... | 32,244 |
public Object handleSend(Invocation invocation) throws Throwable { ProducerState state = (ProducerState)getState(invocation); SessionState sessState = (SessionState)state.getParent(); if (sessState.isTransacted()) { //Session is transacted - so we add messa... | public Object handleSend(Invocation invocation) throws Throwable { ProducerState state = (ProducerState)getState(invocation); SessionState sessState = (SessionState)state.getParent(); if (sessState.isTransacted()) { //Session is transacted - so we add messa... | 32,245 |
public boolean selfTest() { if (valid == null) { valid = new Boolean(DIGEST0.equals(Util.toString(new Haval().digest()))); } return valid.booleanValue(); } | public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new Haval().digest()))); } return valid.booleanValue(); } | 32,246 |
public CreateConnectionResult(ConnectionDelegate del) { this.delegate = del; } | public CreateConnectionResult(ConnectionDelegate delegate) { this.delegate = del; } | 32,247 |
public CreateConnectionResult(ConnectionDelegate del) { this.delegate = del; } | public CreateConnectionResult(ConnectionDelegate del) { this(delegate, Integer.MIN_VALUE); } | 32,248 |
public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio... | public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio... | 32,249 |
private ResourceManager() { } | public ResourceManager(ConnectionDelegate connection) { } | 32,250 |
public void addAck(Object Xid, Object ack) { LocalTx tx = getTx(Xid); tx.addAck(ack); } | public void addAck(Object Xid, AckInfo ackInfo) { LocalTx tx = getTx(Xid); tx.addAck(ack); } | 32,252 |
public void addAck(Object Xid, Object ack) { LocalTx tx = getTx(Xid); tx.addAck(ack); } | public void addAck(Object Xid, Object ack) { LocalTx tx = getTx(Xid); tx.addAck(ack); } | 32,253 |
public void addMessage(Object Xid, Message m) { LocalTx tx = getTx(Xid); tx.addMessage(m); } | public void addMessage(Object Xid, Message m) { TxInfo tx = getTx(Xid); tx.addMessage(m); } | 32,254 |
public Object commit(Object Xid, SessionDelegate sd) throws JMSException { log.debug("Committing tx: " + Xid); LocalTx tx = getTx(Xid); if (tx.getMessages().size() > 0 || tx.getAcks().size() > 0) { log.debug("There is stuff to send"); sd.sendTransaction(tx); } transact... | public Object commit(Object Xid) throws JMSException { log.debug("Committing tx: " + Xid); LocalTx tx = getTx(Xid); if (tx.getMessages().size() > 0 || tx.getAcks().size() > 0) { log.debug("There is stuff to send"); sd.sendTransaction(tx); } transactions.remove(Xid); ... | 32,255 |
public Object commit(Object Xid, SessionDelegate sd) throws JMSException { log.debug("Committing tx: " + Xid); LocalTx tx = getTx(Xid); if (tx.getMessages().size() > 0 || tx.getAcks().size() > 0) { log.debug("There is stuff to send"); sd.sendTransaction(tx); } transact... | public Object commit(Object Xid, SessionDelegate sd) throws JMSException { log.debug("Committing tx: " + Xid); LocalTx tx = getTx(Xid); if (tx.getMessages().size() > 0 || tx.getAcks().size() > 0) { log.debug("There is stuff to send"); sd.sendTransaction(tx); } transact... | 32,256 |
public Object createLocalTx() { LocalTx tx = new LocalTx(getNextTxId()); transactions.put(tx.getId(), tx); return tx.getId(); } | public Object createLocalTx() { TxInfo tx = new TxInfo(getNextTxId()); transactions.put(tx.getId(), tx); return tx.getId(); } | 32,257 |
private LocalTx getTx(Object Xid) { LocalTx tx = (LocalTx) transactions.get(Xid); if (tx == null) throw new IllegalArgumentException("No such Xid:" + Xid); return tx; } | private TxInfo getTx(Object Xid) { LocalTx tx = (LocalTx) transactions.get(Xid); if (tx == null) throw new IllegalArgumentException("No such Xid:" + Xid); return tx; } | 32,258 |
private LocalTx getTx(Object Xid) { LocalTx tx = (LocalTx) transactions.get(Xid); if (tx == null) throw new IllegalArgumentException("No such Xid:" + Xid); return tx; } | private LocalTx getTx(Object Xid) { TxInfo tx = (TxInfo) transactions.get(Xid); if (tx == null) throw new IllegalArgumentException("No such Xid:" + Xid); return tx; } | 32,259 |
public Object rollback(Object Xid) { log.debug("Rolling back tx: " + Xid); LocalTx tx = getTx(Xid); transactions.remove(Xid); return createLocalTx(); } | public Object rollback(Object Xid) { log.debug("Rolling back tx: " + Xid); TxInfo tx = getTx(Xid); transactions.remove(Xid); return createLocalTx(); } | 32,260 |
protected Message createMessage(int i) throws Exception { Map headers = generateFilledMap(true); Message m = new CoreMessage(new GUID().toString(), true, System.currentTimeMillis() + 1000 * 60 * 60, System.currentTimeMillis(), i, header... | protected Message createMessage(byte i) throws Exception { Map headers = generateFilledMap(true); Message m = new CoreMessage(new GUID().toString(), true, System.currentTimeMillis() + 1000 * 60 * 60, System.currentTimeMillis(), i, heade... | 32,261 |
protected Message[] createMessages() throws Exception { //Generate some messages with a good range of attribute values Message[] messages = new Message[10]; for (int i = 0; i < 10; i++) { messages[i] = createMessage(i); } return messages; } | protected Message[] createMessages() throws Exception { //Generate some messages with a good range of attribute values Message[] messages = new Message[10]; for (int i = 0; i < 10; i++) { messages[i] = createMessage((byte)i); } return messages; } | 32,262 |
protected void nonXARecovery(boolean guid, boolean storeXid) throws Exception { JDBCTransactionLog tl = new JDBCTransactionLog(sc.getDataSource(), sc.getTransactionManager()); tl.setTxIdGuid(guid); Properties props; if (guid) { props = getConfigTablesForGUID(); tl.set... | protected void nonXARecovery(boolean guid, boolean storeXid) throws Exception { JDBCTransactionLog tl = new JDBCTransactionLog(sc.getDataSource(), sc.getTransactionManager()); tl.setTxIdGuid(guid); Properties props; if (guid) { props = getConfigTablesForGUID(); tl.set... | 32,263 |
protected void nonXARecovery(boolean guid, boolean storeXid) throws Exception { JDBCTransactionLog tl = new JDBCTransactionLog(sc.getDataSource(), sc.getTransactionManager()); tl.setTxIdGuid(guid); Properties props; if (guid) { props = getConfigTablesForGUID(); tl.set... | protected void nonXARecovery(boolean guid, boolean storeXid) throws Exception { JDBCTransactionLog tl = new JDBCTransactionLog(sc.getDataSource(), sc.getTransactionManager()); tl.setTxIdGuid(guid); Properties props; if (guid) { props = getConfigTablesForGUID(); tl.set... | 32,264 |
public CoreMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, int priority, Map headers, Serializable payload) { super(messageID, reliable, expiration, ... | public CoreMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, byte priority, Map headers, Serializable payload) { super(messageID, reliable, expiration,... | 32,265 |
public MessageReference reference(Message m) { MessageReference ref = super.reference(m); if (log.isTraceEnabled()) { log.trace(this + " referencing " + m); } if (m.isReliable()) { try { storeMessage(m); } catch (Exception e) { ... | public MessageReference reference(Message m) { MessageReference ref = super.reference(m); if (trace) { log.trace(this + " referencing " + m); } if (m.isReliable()) { try { storeMessage(m); } catch (Exception e) { log.e... | 32,266 |
public MessageReference reference(Message m) { MessageReference ref = super.reference(m); if (log.isTraceEnabled()) { log.trace(this + " referencing " + m); } if (m.isReliable()) { try { storeMessage(m); } catch (Exception e) { ... | public MessageReference reference(Message m) { MessageReference ref = super.reference(m); if (log.isTraceEnabled()) { log.trace(this + " referencing " + m); } if (m.isReliable()) { try { storeMessage(m); } catch (Exception e) { ... | 32,267 |
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da... | public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da... | 32,268 |
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da... | public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da... | 32,269 |
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da... | public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da... | 32,270 |
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da... | public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da... | 32,271 |
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da... | public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da... | 32,272 |
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da... | public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da... | 32,273 |
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da... | public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da... | 32,274 |
public Message retrieveMessage(String messageId) throws Exception { Message m = super.retrieveMessage(messageId); if (m == null) { m = getMessage(messageId); if (m != null) { super.addMessage(m); if (log.isTraceEnabled()) { log... | public Message retrieveMessage(String messageId) throws Exception { Message m = super.retrieveMessage(messageId); if (m == null) { m = getMessage(messageId); if (m != null) { super.addMessage(m); if (trace) { log.trace("Retreiv... | 32,275 |
public boolean removeMessage(String messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); // get the reference count from the database ps = conn.prepare... | public boolean removeMessage(String messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); // get the reference count from the database ps = conn.prepare... | 32,276 |
public boolean removeMessage(String messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); // get the reference count from the database ps = conn.prepare... | public boolean removeMessage(String messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); // get the reference count from the database ps = conn.prepare... | 32,277 |
public boolean removeMessage(String messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); // get the reference count from the database ps = conn.prepare... | public boolean removeMessage(String messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); // get the reference count from the database ps = conn.prepare... | 32,278 |
public boolean removeMessage(String messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); // get the reference count from the database ps = conn.prepare... | public boolean removeMessage(String messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); // get the reference count from the database ps = conn.prepare... | 32,279 |
public String toString() { StringBuffer sb = new StringBuffer("ClusteredConnFactoryDelegate["); sb.append(id).append("]["); if (delegates == null) { sb.append("-]"); } else { for(int i = 0; i < delegates.length; i++) { sb.append(delegates[i].get... | public String toString() { StringBuffer sb = new StringBuffer("ClusteredConnectionFactoryDelegate["); sb.append(id).append("]["); if (delegates == null) { sb.append("-]"); } else { for(int i = 0; i < delegates.length; i++) { sb.append(delegates[... | 32,280 |
public StylesheetInfo[] getStylesheetLinks(org.w3c.dom.Document doc) { List list = new ArrayList(); //get the processing-instructions (actually for XmlDocuments) //type and href are required to be set try { org.w3c.dom.NodeList nl = XPathAPI.selectNodeList(doc.getDocumentEleme... | public StylesheetInfo[] getStylesheetLinks(org.w3c.dom.Document doc) { List list = new ArrayList(); //get the processing-instructions (actually for XmlDocuments) //type and href are required to be set try { NodeList nl = doc.getChildNodes();//processing-instruction('xml-styles... | 32,281 |
public StylesheetInfo[] getStylesheetLinks(org.w3c.dom.Document doc) { List list = new ArrayList(); //get the processing-instructions (actually for XmlDocuments) //type and href are required to be set try { org.w3c.dom.NodeList nl = XPathAPI.selectNodeList(doc.getDocumentEleme... | public StylesheetInfo[] getStylesheetLinks(org.w3c.dom.Document doc) { List list = new ArrayList(); //get the processing-instructions (actually for XmlDocuments) //type and href are required to be set try { org.w3c.dom.NodeList nl = XPathAPI.selectNodeList(doc.getDocumentEleme... | 32,282 |
public static final KeyGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca... | public static final KeyGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca... | 32,283 |
public static final KeyGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca... | public static final KeyGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, p[i]); } catch ... | 32,284 |
public static final KeyGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca... | public static final KeyGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca... | 32,285 |
public static final KeyGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca... | public static final KeyGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca... | 32,286 |
public static final KeyGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca... | public static final KeyGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca... | 32,287 |
protected void updateView() { JoinDescriptor descriptor = (JoinDescriptor)getDescriptor(); conditionsModel.setList(descriptor.getConditions()); connector.setSource(descriptor); // if (cell.getJoinDescriptor().getResult() != null) { // List list = new ArrayList(); // list.add(cell.getJoinDescri... | protected void updateView() { JoinDescriptor descriptor = (JoinDescriptor)getDescriptor(); conditionsModel.setList(descriptor.getConditions()); connector.setSource(descriptor); // if (cell.getJoinDescriptor().getResult() != null) { // List list = new ArrayList(); // list.add(cell.getJoinDescri... | 32,288 |
public int[] getAvailableActions(long id) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry == null) { throw new IllegalArgumentException("No such workflow id " + id); } if (entry.getState() != Workfl... | public int[] getAvailableActions(long id) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry == null) { throw new IllegalArgumentException("No such workflow id " + id); } if (entry.getState() != Workfl... | 32,289 |
private void postmodify() { int[] rows = post.getSelectedRows(); for(int i = 0; i < rows.length; i++) { postmodify(i); } } | private void postmodify() { int[] rows = post.getSelectedRows(); for(int i = 0; i < rows.length; i++) { postmodify(rows[i]); } } | 32,290 |
private void postremove() { int[] rows = post.getSelectedRows(); for(int i = 0; i < rows.length; i++) { postModel.remove(i); } } | private void postremove() { int[] rows = post.getSelectedRows(); for(int i = 0; i < rows.length; i++) { postModel.remove(rows[i]); } } | 32,291 |
private void premodify() { int[] rows = pre.getSelectedRows(); for(int i = 0; i < rows.length; i++) { premodify(i); } } | private void premodify() { int[] rows = pre.getSelectedRows(); for(int i = 0; i < rows.length; i++) { premodify(rows[i]); } } | 32,292 |
private void preremove() { int[] rows = pre.getSelectedRows(); for(int i = 0; i < rows.length; i++) { preModel.remove(i); } } | private void preremove() { int[] rows = pre.getSelectedRows(); for(int i = 0; i < rows.length; i++) { preModel.remove(rows[i]); } } | 32,293 |
public String getTestString() { StringBuffer sb = new StringBuffer(); // type if (this instanceof LineBox) { sb.append("line:"); } else if (this instanceof InlineBox) { sb.append("inline:"); } else { sb.append("box:"); } // element ... | public String getTestString() { StringBuffer sb = new StringBuffer(); // type if (this instanceof LineBox) { sb.append("line:"); } else if (this instanceof InlineBox) { sb.append("inline:"); } else { sb.append("box:"); } // element ... | 32,294 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.