bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public boolean add(Receiver r) { synchronized(receivers) { if (receivers.contains(r)) { return false; } receivers.add(r); } return true; }
public boolean add(Receiver r) { boolean acquired; try { lock.writeLock().acquire(); acquired = true; } catch (InterruptedException e) { throw new RuntimeException("Failed to obtain lock", e); } try { if (receivers.contains(r)) { return false; } receivers.add(r)...
45,271
public boolean add(Receiver r) { synchronized(receivers) { if (receivers.contains(r)) { return false; } receivers.add(r); } return true; }
public boolean add(Receiver r) { synchronized(receivers) { if (receivers.contains(r)) { return false; } receivers.add(r); } finally { if (acquired) { lock.writeLock().release(); } } }
45,272
public void clear() { synchronized(receivers) { receivers.clear(); } }
public void clear() { boolean acquired; try { lock.writeLock().acquire(); acquired = true; } catch (InterruptedException e) { throw new RuntimeException("Failed to obtain lock", e); } try { receivers.clear(); } }
45,273
public boolean contains(Receiver r) { synchronized(receivers) { return receivers.contains(r); } }
public boolean contains(Receiver r) { boolean acquired; try { return receivers.contains(r); } }
45,275
public boolean contains(Receiver r) { synchronized(receivers) { return receivers.contains(r); } }
public boolean contains(Receiver r) { synchronized(receivers) { lock.writeLock().acquire(); acquired = true; } catch (InterruptedException e) { throw new RuntimeException("Failed to obtain lock", e); } try { return receivers.contains(r); } finally { if (acquired) { lock.writeLock().release(); } ...
45,276
public Set handle(DeliveryObserver observer, Routable routable, Transaction tx) { Set deliveries = new HashSet(); // TODO synchronizing this is going to produce a bottleneck, do we really need to? synchronized(receivers) { for(Iterator i = receivers.iterator(); i.hasNext(); ) { ...
public Set handle(DeliveryObserver observer, Routable routable, Transaction tx) { Set deliveries = new HashSet(); // TODO synchronizing this is going to produce a bottleneck, do we really need to? boolean acquired; try { for(Iterator i = receivers.iterator(); i.hasNext(); ) { ...
45,277
public Iterator iterator() { synchronized(receivers) { return receivers.iterator(); } }
public Iterator iterator() { boolean acquired; try { lock.writeLock().acquire(); acquired = true; } catch (InterruptedException e) { throw new RuntimeException("Failed to obtain lock", e); } try { return receivers.iterator(); } }
45,279
public boolean remove(Receiver r) { synchronized(receivers) { return receivers.remove(r); } }
public boolean remove(Receiver r) { boolean acquired; try { lock.writeLock().acquire(); acquired = true; } catch (InterruptedException e) { throw new RuntimeException("Failed to obtain lock", e); } try { return receivers.remove(r); } }
45,281
public boolean readBoolean() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value...
public boolean readBoolean() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is...
45,285
public byte readByte() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is nu...
public byte readByte() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is null"...
45,286
public int readBytes(byte[] value) throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object myObj = content.get(position); if (myObj == null) throw new NullPointerException("Value is null"); ...
public int readBytes(byte[] value) throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object myObj = content.get(position); if (myObj == null) throw new NullPointerException("Value is null"); ...
45,287
public char readChar() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is nu...
public char readChar() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is null"...
45,288
public double readDouble() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value i...
public double readDouble() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is n...
45,289
public void readExternal(ObjectInput in) throws IOException { try { super.readExternal(in); content = (ArrayList) in.readObject(); position = in.readInt(); offset = in.readInt(); size = in.readInt(); //deserialised = true; } catch (ClassNotFoundEx...
publicvoidreadExternal(ObjectInputin)throwsIOException{try{super.readExternal(in);content=(ArrayList)in.readObject();position=in.readInt();offset=in.readInt();size=in.readInt();//deserialised=true;}catch(ClassNotFoundExceptione){log.error("Failedtofindclass",e);thrownewIOException(e.getMessage());}}
45,290
public float readFloat() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is ...
public float readFloat() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is nul...
45,291
public int readInt() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is null...
public int readInt() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is null");...
45,292
public long readLong() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is nu...
public long readLong() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is null"...
45,293
public Object readObject() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); position++; offset = 0; return value; } catch (IndexOutOfBounds...
public Object readObject() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); position++; offset = 0; return value; } catch (IndexOutOfBoundsExc...
45,294
public short readShort() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is ...
public short readShort() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is nul...
45,295
public String readString() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) { position++; return...
public String readString() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) { position++; return nu...
45,296
public void reset() throws JMSException { messageReadWrite = false; position = 0; size = content.size(); offset = 0; }
public void reset() throws JMSException { bodyWriteOnly = false; position = 0; size = content.size(); offset = 0; }
45,297
public void writeBoolean(boolean value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(Primitives.valueOf(value)); }
public void writeBoolean(boolean value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(Primitives.valueOf(value)); }
45,298
public void writeByte(byte value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Byte(value)); }
public void writeByte(byte value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Byte(value)); }
45,299
public void writeBytes(byte[] value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(value.clone()); }
public void writeBytes(byte[] value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(value.clone()); }
45,300
public void writeChar(char value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Character(value)); }
public void writeChar(char value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Character(value)); }
45,301
public void writeDouble(double value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Double(value)); }
public void writeDouble(double value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Double(value)); }
45,302
public void writeFloat(float value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Float(value)); }
public void writeFloat(float value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Float(value)); }
45,304
public void writeInt(int value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Integer(value)); }
public void writeInt(int value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Integer(value)); }
45,305
public void writeLong(long value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Long(value)); }
public void writeLong(long value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Long(value)); }
45,306
public void writeObject(Object value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); if (value == null) content.add(null); else if (value instanceof Boolean) content.add(value); else if (value instance...
public void writeObject(Object value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); if (value == null) content.add(null); else if (value instanceof Boolean) content.add(value); else if (value instanceof ...
45,307
public void writeShort(short value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Short(value)); }
public void writeShort(short value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Short(value)); }
45,308
public void writeString(String value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); if (value == null) content.add(null); else content.add(value); }
public void writeString(String value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); if (value == null) content.add(null); else content.add(value); }
45,309
protected void initSqlProperties() { //Message Reference createMessageReference = sqlProperties.getProperty("CREATE_MESSAGE_REF", createMessageReference); createIdxMessageRefTx = sqlProperties.getProperty("CREATE_IDX_MESSAGE_REF_TX", createIdxMessageRefTx); createIdxMessageRefOrd = sqlPropertie...
protected void initSqlProperties() { //Message Reference createMessageReference = sqlProperties.getProperty("CREATE_MESSAGE_REF", createMessageReference); createIdxMessageRefTx = sqlProperties.getProperty("CREATE_IDX_MESSAGE_REF_TX", createIdxMessageRefTx); createIdxMessageRefOrd = sqlPropertie...
45,310
protected void resetMessageData() throws Exception { if (trace) { log.trace("Removing all non-persistent data"); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); log.trace("Resetting message data. This may take several m...
protected void resetMessageData() throws Exception { if (trace) { log.trace("Removing all non-persistent data"); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); log.trace("Resetting message data. This may take several m...
45,311
public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all,-remoting,-security"); sc.start(); tl = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); ((JDBCPersistenceManager)tl).start(); ms = new PagingMessageStore("s33"); }
public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all,-remoting,-security"); sc.start(); tl = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); ((JDBCPersistenceManager)tl).start(); ms = new SimpleMessageStore("s33"); }
45,312
public List doRemoteBrowse(Filter filter) { if (log.isTraceEnabled()) { log.trace(this + " remote browse" + (filter == null ? "" : ", filter = " + filter)); } RpcServerCall rpcServerCall = new RpcServerCall(queue.getName(), "remoteBrowse", new Object[] {getPeerIden...
List doRemoteBrowse(Filter filter) { if (log.isTraceEnabled()) { log.trace(this + " remote browse" + (filter == null ? "" : ", filter = " + filter)); } RpcServerCall rpcServerCall = new RpcServerCall(queue.getName(), "remoteBrowse", new Object[] {getPeerIdentity(),...
45,313
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
45,314
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
45,315
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
45,316
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
45,317
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
45,318
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
45,319
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
45,320
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
45,321
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
45,322
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
45,323
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
45,324
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
45,325
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
45,326
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
45,327
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
45,328
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
45,329
private boolean queryEquals(Long entryId, int field, int type, Object value) { List steps; if (type == WorkflowQuery.CURRENT) { steps = (List) currentStepsCache.get(entryId); } else { steps = (List) historyStepsCache.get(entryId); } switch (field) { ca...
private boolean queryEquals(Long entryId, int field, int type, Object value) { List steps; if (type == WorkflowQuery.CURRENT) { steps = (List) currentStepsCache.get(entryId); } else { steps = (List) historyStepsCache.get(entryId); } switch (field) { ca...
45,330
public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text...
public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text...
45,331
public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text...
public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text...
45,332
public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text...
public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text...
45,333
public CalculatedStyle getStyle() { return _style; }
public CalculatedStyle getStyle() { return _style; }
45,334
protected void deleteAllData() throws Exception { try { log.info("DELETING ALL DATA FROM DATABASE!"); InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lo...
protected void deleteAllData() throws Exception { try { log.info("DELETING ALL DATA FROM DATABASE!"); InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lo...
45,335
protected void deleteAllData() throws Exception { try { log.info("DELETING ALL DATA FROM DATABASE!"); InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lo...
protected void deleteAllData() throws Exception { try { log.info("DELETING ALL DATA FROM DATABASE!"); InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lo...
45,336
protected void deleteAllData() throws Exception { try { log.info("DELETING ALL DATA FROM DATABASE!"); InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lo...
protected void deleteAllData() throws Exception { try { log.info("DELETING ALL DATA FROM DATABASE!"); InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lo...
45,337
protected void deleteAllData() throws Exception { try { log.info("DELETING ALL DATA FROM DATABASE!"); InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lo...
protected void deleteAllData() throws Exception { try { log.info("DELETING ALL DATA FROM DATABASE!"); InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lo...
45,338
protected void deleteAllData() throws Exception { try { log.info("DELETING ALL DATA FROM DATABASE!"); InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lo...
protected void deleteAllData() throws Exception { try { log.info("DELETING ALL DATA FROM DATABASE!"); InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lo...
45,339
public int getMessageCount() throws JMSException { if (!started) { log.warn("Queue is stopped."); return 0; } JBossQueue jbq = new JBossQueue(name); ManageableQueue q = (ManageableQueue)cm.getCoreDestination(jbq); return q.getMessageCount(); }
public int getMessageCount() throws JMSException { if (!started) { log.warn("Queue is stopped."); return 0; } JBossQueue jbq = new JBossQueue(name); ManageableQueue q = (ManageableQueue)cm.getCoreDestination(jbq); return q.getMessageCount(); }
45,342
public List listMessages(String selector) throws JMSException { if (!started) { log.warn("Queue is stopped."); return new ArrayList(); } JBossQueue jbq = new JBossQueue(name); ManageableQueue q = (ManageableQueue)cm.getCoreDestination(jbq); try { return q...
public List listMessages(String selector) throws JMSException { if (!started) { log.warn("Queue is stopped."); return new ArrayList(); } JBossQueue jbq = new JBossQueue(name); org.jboss.messaging.core.local.Queue q = (org.jboss.messaging.core.local.Queue)cm.getCoreDestinati...
45,343
public List listMessages(String selector) throws JMSException { if (!started) { log.warn("Queue is stopped."); return new ArrayList(); } JBossQueue jbq = new JBossQueue(name); ManageableQueue q = (ManageableQueue)cm.getCoreDestination(jbq); try { return q...
public List listMessages(String selector) throws JMSException { if (!started) { log.warn("Queue is stopped."); return new ArrayList(); } JBossQueue jbq = new JBossQueue(name); ManageableQueue q = (ManageableQueue)cm.getCoreDestination(jbq); try { List msg...
45,344
public void removeAllMessages() throws JMSException { if (!started) { log.warn("Queue is stopped."); return; } JBossQueue jbq = new JBossQueue(name); ManageableQueue q = (ManageableQueue)cm.getCoreDestination(jbq); q.removeAllMessages(); }
public void removeAllMessages() throws JMSException { if (!started) { log.warn("Queue is stopped."); return; } JBossQueue jbq = new JBossQueue(name); org.jboss.messaging.core.local.Queue q = (org.jboss.messaging.core.local.Queue)cm.getCoreDestination(jbq); q.removeAllM...
45,345
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { if (systemId == null) { return null; } URL url = new URL(systemId); String file = url.getFile(); if ((file != null) && (file.indexOf('/') > -1)) { file = fil...
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { if (systemId == null) { return null; } URL url = new URL(systemId); String file = url.getFile(); if (file != null && file.indexOf('/') > -1) { file = file.su...
45,346
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { if (systemId == null) { return null; } URL url = new URL(systemId); String file = url.getFile(); if ((file != null) && (file.indexOf('/') > -1)) { file = fil...
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { if (systemId == null) { return null; } URL url = new URL(systemId); String file = url.getFile(); if ((file != null) && (file.indexOf('/') > -1)) { file = fil...
45,347
public void paintChildren( Context c, Box box ) { //u.p("InlineLayout.paintChildren() " + box); if ( box.isAnonymous() ) { //u.p("it's anonymous so no children"); return; } if ( BoxLayout.isBlockLayout( box.getElement(), c ) ) { //u.p("is block. doing sup...
publicvoidpaintChildren(Contextc,Boxbox){//u.p("InlineLayout.paintChildren()"+box);if(box.isAnonymous()){//u.p("it'sanonymoussonochildren");return;}if(BoxLayout.isBlockLayout(box.getElement(),c)){//u.p("isblock.doingsuper");super.paintChildren(c,box);}}
45,348
public void paintChildren( Context c, Box box ) { //u.p("InlineLayout.paintChildren() " + box); if ( box.isAnonymous() ) { //u.p("it's anonymous so no children"); return; } if ( BoxLayout.isBlockLayout( box.getElement(), c ) ) { //u.p("is block. doing sup...
publicvoidpaintChildren(Contextc,Boxbox){//u.p("InlineLayout.paintChildren()"+box);if(box.isAnonymous()){//u.p("it'sanonymoussonochildren");return;}if(BoxLayout.isBlockLayout(box.getElement(),c)){//u.p("isblock.doingsuper");super.paintChildren(c,box);}}
45,349
public void paintChildren( Context c, Box box ) { //u.p("InlineLayout.paintChildren() " + box); if ( box.isAnonymous() ) { //u.p("it's anonymous so no children"); return; } if ( BoxLayout.isBlockLayout( box.getElement(), c ) ) { //u.p("is block. doing sup...
publicvoidpaintChildren(Contextc,Boxbox){//u.p("InlineLayout.paintChildren()"+box);if(box.isAnonymous()){//u.p("it'sanonymoussonochildren");return;}if(BoxLayout.isBlockLayout(box.getElement(),c)){//u.p("isblock.doingsuper");super.paintChildren(c,box);}}
45,350
public void paintComponent( Context c, Box box ) { //u.p("InlineLayout.paintComponent() " + box); //u.dump_stack(); if ( box.isAnonymous() ) { //u.p("InlineLayout.paintComponent() : " + box); InlinePainter.paintInlineContext( c, box ); return; } if...
public void paintComponent( Context c, Box box ) {//u.p("InlineLayout.paintComponent() " + box);//u.dump_stack();if ( box.isAnonymous() ) {//u.p("InlineLayout.paintComponent() : " + box);InlinePainter.paintInlineContext( c, box );return;}if ( BoxLayout.isBlockLayout( box.getElement(), c ) ) {//u.p("InlineLayout.paintCo...
45,351
public void paintComponent( Context c, Box box ) { //u.p("InlineLayout.paintComponent() " + box); //u.dump_stack(); if ( box.isAnonymous() ) { //u.p("InlineLayout.paintComponent() : " + box); InlinePainter.paintInlineContext( c, box ); return; } if...
publicvoidpaintComponent(Contextc,Boxbox){//u.p("InlineLayout.paintComponent()"+box);//u.dump_stack();if(box.isAnonymous()){//u.p("InlineLayout.paintComponent():"+box);InlinePainter.paintInlineContext(c,box);return;}if(BoxLayout.isBlockLayout(box.getElement(),c)){//u.p("InlineLayout.paintComponentisblockcontext:"+box);...
45,352
public void paintComponent( Context c, Box box ) { //u.p("InlineLayout.paintComponent() " + box); //u.dump_stack(); if ( box.isAnonymous() ) { //u.p("InlineLayout.paintComponent() : " + box); InlinePainter.paintInlineContext( c, box ); return; } if...
publicvoidpaintComponent(Contextc,Boxbox){//u.p("InlineLayout.paintComponent()"+box);//u.dump_stack();if(box.isAnonymous()){//u.p("InlineLayout.paintComponent():"+box);InlinePainter.paintInlineContext(c,box);return;}if(BoxLayout.isBlockLayout(box.getElement(),c)){//u.p("InlineLayout.paintComponentisblockcontext:"+box);...
45,353
public void paintComponent( Context c, Box box ) { //u.p("InlineLayout.paintComponent() " + box); //u.dump_stack(); if ( box.isAnonymous() ) { //u.p("InlineLayout.paintComponent() : " + box); InlinePainter.paintInlineContext( c, box ); return; } if...
publicvoidpaintComponent(Contextc,Boxbox){//u.p("InlineLayout.paintComponent()"+box);//u.dump_stack();if(box.isAnonymous()){//u.p("InlineLayout.paintComponent():"+box);InlinePainter.paintInlineContext(c,box);return;}if(BoxLayout.isBlockLayout(box.getElement(),c)){//u.p("InlineLayout.paintComponentisblockcontext:"+box);...
45,354
public static void paintInlineContext( Context c, Box box ) { BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.getGraphics().translate( box.x, box.y ); // for each line box c.getGraphics().setColor( Color.black...
publicstaticvoidpaintInlineContext(Contextc,Boxbox){BlockBoxblock=(BlockBox)box;//translateintolocalcoords//accountfortheoriginofthecontainingboxc.getGraphics().translate(box.x,box.y);//foreachlineboxc.getGraphics().setColor(Color.black);//u.p("linecount="+block.boxes.size());for(inti=0;i<block.getChildCount();i++){//g...
45,355
public static void paintInlineContext( Context c, Box box ) { BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.getGraphics().translate( box.x, box.y ); // for each line box c.getGraphics().setColor( Color.black...
publicstaticvoidpaintInlineContext(Contextc,Boxbox){BlockBoxblock=(BlockBox)box;//translateintolocalcoords//accountfortheoriginofthecontainingboxc.getGraphics().translate(box.x,box.y);//foreachlineboxc.getGraphics().setColor(Color.black);//u.p("linecount="+block.boxes.size());for(inti=0;i<block.getChildCount();i++){//g...
45,356
public static void paintInlineContext( Context c, Box box ) { BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.getGraphics().translate( box.x, box.y ); // for each line box c.getGraphics().setColor( Color.black...
publicstaticvoidpaintInlineContext(Contextc,Boxbox){BlockBoxblock=(BlockBox)box;//translateintolocalcoords//accountfortheoriginofthecontainingboxc.getGraphics().translate(box.x,box.y);//foreachlineboxc.getGraphics().setColor(Color.black);//u.p("linecount="+block.boxes.size());for(inti=0;i<block.getChildCount();i++){//g...
45,357
public static void paintInlineContext( Context c, Box box ) { BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.getGraphics().translate( box.x, box.y ); // for each line box c.getGraphics().setColor( Color.black...
public static void paintInlineContext( Context c, Box box ) { BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.translate( box.x, box.y ); // for each line box c.getGraphics().setColor( Color.black ); //u.p...
45,358
public static void paintInlineContext( Context c, Box box ) { BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.getGraphics().translate( box.x, box.y ); // for each line box c.getGraphics().setColor( Color.black...
publicstaticvoidpaintInlineContext(Contextc,Boxbox){BlockBoxblock=(BlockBox)box;//translateintolocalcoords//accountfortheoriginofthecontainingboxc.getGraphics().translate(box.x,box.y);//foreachlineboxc.getGraphics().setColor(Color.black);//u.p("linecount="+block.boxes.size());for(inti=0;i<block.getChildCount();i++){//g...
45,359
public static void paintInlineContext( Context c, Box box ) { BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.getGraphics().translate( box.x, box.y ); // for each line box c.getGraphics().setColor( Color.black...
publicstaticvoidpaintInlineContext(Contextc,Boxbox){BlockBoxblock=(BlockBox)box;//translateintolocalcoords//accountfortheoriginofthecontainingboxc.getGraphics().translate(box.x,box.y);//foreachlineboxc.getGraphics().setColor(Color.black);//u.p("linecount="+block.boxes.size());for(inti=0;i<block.getChildCount();i++){//g...
45,360
public static void paintInlineContext( Context c, Box box ) { BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.getGraphics().translate( box.x, box.y ); // for each line box c.getGraphics().setColor( Color.black...
publicstaticvoidpaintInlineContext(Contextc,Boxbox){BlockBoxblock=(BlockBox)box;//translateintolocalcoords//accountfortheoriginofthecontainingboxc.getGraphics().translate(box.x,box.y);//foreachlineboxc.getGraphics().setColor(Color.black);//u.p("linecount="+block.boxes.size());for(inti=0;i<block.getChildCount();i++){//g...
45,361
public static void paintInlineContext( Context c, Box box ) { BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.getGraphics().translate( box.x, box.y ); // for each line box c.getGraphics().setColor( Color.black...
publicstaticvoidpaintInlineContext(Contextc,Boxbox){BlockBoxblock=(BlockBox)box;//translateintolocalcoords//accountfortheoriginofthecontainingboxc.getGraphics().translate(box.x,box.y);//foreachlineboxc.getGraphics().setColor(Color.black);//u.p("linecount="+block.boxes.size());for(inti=0;i<block.getChildCount();i++){//g...
45,362
public static void paintInlineContext( Context c, Box box ) { BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.getGraphics().translate( box.x, box.y ); // for each line box c.getGraphics().setColor( Color.black...
publicstaticvoidpaintInlineContext(Contextc,Boxbox){BlockBoxblock=(BlockBox)box;//translateintolocalcoords//accountfortheoriginofthecontainingboxc.getGraphics().translate(box.x,box.y);//foreachlineboxc.getGraphics().setColor(Color.black);//u.p("linecount="+block.boxes.size());for(inti=0;i<block.getChildCount();i++){//g...
45,363
public static void paintInlineContext( Context c, Box box ) { BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.getGraphics().translate( box.x, box.y ); // for each line box c.getGraphics().setColor( Color.black...
publicstaticvoidpaintInlineContext(Contextc,Boxbox){BlockBoxblock=(BlockBox)box;//translateintolocalcoords//accountfortheoriginofthecontainingboxc.getGraphics().translate(box.x,box.y);//foreachlineboxc.getGraphics().setColor(Color.black);//u.p("linecount="+block.boxes.size());for(inti=0;i<block.getChildCount();i++){//g...
45,364
public static void paintInlineContext( Context c, Box box ) { BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.getGraphics().translate( box.x, box.y ); // for each line box c.getGraphics().setColor( Color.black...
publicstaticvoidpaintInlineContext(Contextc,Boxbox){BlockBoxblock=(BlockBox)box;//translateintolocalcoords//accountfortheoriginofthecontainingboxc.getGraphics().translate(box.x,box.y);//foreachlineboxc.getGraphics().setColor(Color.black);//u.p("linecount="+block.boxes.size());for(inti=0;i<block.getChildCount();i++){//g...
45,365
public static void paintInlineContext( Context c, Box box ) { BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.getGraphics().translate( box.x, box.y ); // for each line box c.getGraphics().setColor( Color.black...
publicstaticvoidpaintInlineContext(Contextc,Boxbox){BlockBoxblock=(BlockBox)box;//translateintolocalcoords//accountfortheoriginofthecontainingboxc.getGraphics().translate(box.x,box.y);//foreachlineboxc.getGraphics().setColor(Color.black);//u.p("linecount="+block.boxes.size());for(inti=0;i<block.getChildCount();i++){//g...
45,366
public static void paintInlineContext( Context c, Box box ) { BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.getGraphics().translate( box.x, box.y ); // for each line box c.getGraphics().setColor( Color.black...
public static void paintInlineContext( Context c, Box box ) { BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.getGraphics().translate( box.x, box.y ); // for each line box c.getGraphics().setColor( Color.black...
45,367
public MimeTypeMapper() { // Do nothing here. }
public MimeTypeMapper() { // Do nothing here. }
45,368
public Dimension minimumLayoutSize(Container parent) { return null; // TODO } // minimumLayoutSize()
public Dimension minimumLayoutSize(Container parent) { return null; // TODO } // minimumLayoutSize()
45,371
protected void installDefaults() { String prefix = getPropertyPrefix(); LookAndFeel.installBorder(menuItem, prefix + ".border"); LookAndFeel.installColorsAndFont(menuItem, prefix + ".background", prefix + ".foreground", prefix + ".font"); menuItem.setMargin(UIManager.g...
protected void installDefaults() { String prefix = getPropertyPrefix(); LookAndFeel.installBorder(menuItem, prefix + ".border"); LookAndFeel.installColorsAndFont(menuItem, prefix + ".background", prefix + ".foreground", prefix + ".font"); menuItem.setMargin(UIManager.g...
45,373
protected void installKeyboardActions() { // FIXME: Need to implement }
InputMap focusedWindowMap = SwingUtilities.getUIInputMap(menuItem, JComponent.WHEN_IN_FOCUSED_WINDOW); if (focusedWindowMap == null) focusedWindowMap = new ComponentInputMapUIResource(menuItem); focusedWindowMap.put(menuItem.getAccelerator(), "doClick"); SwingUtilities.replaceUIInputMap(menuItem, JComponent.WHEN_IN_FOC...
45,374
protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) { Dimension size = getPreferredSize(menuItem); Color foreground = g.getColor(); g.setColor(bgColor); g.drawRect(0, 0, size.width, size.height); g.setColor(foreground); }
protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) { Dimension size = getPreferredSize(menuItem); Color foreground = g.getColor(); g.setColor(bgColor); g.drawRect(0, 0, size.width, size.height); g.setColor(foreground); }
45,377
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R...
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R...
45,378
protected void uninstallKeyboardActions() { // FIXME: need to implement }
SwingUtilities.replaceUIInputMap(menuItem, JComponent.WHEN_IN_FOCUSED_WINDOW, null); SwingUtilities.replaceUIInputMap(menuItem, JComponent.WHEN_IN_FOCUSED_WINDOW, null); protectedSwingUtilities.replaceUIInputMap(menuItem, JComponent.WHEN_IN_FOCUSED_WINDOW, null); voidSwingUtilities.replaceUIInputMap(menuItem, JComponen...
45,379
public static void drawString(Graphics g, String text, int underlinedChar, int x, int y) { g.drawString(text, x, y); }
public static void drawString(Graphics g, String text, int underlinedChar, int x, int y) { g.drawString(text, x, y); }
45,381
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ...
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ...
45,382
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ...
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ...
45,383
public void test1PCReceiveCommit() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn2 = cf.createConnection(); conn2.start(); Session sessProducer = conn2.createSession(false, Sessio...
public void test1PCReceiveCommit() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn2 = cf.createConnection(); conn2.start(); Session sessProducer = conn2.createSession(false, Sessio...
45,385
public void test1PCReceiveCommit() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn2 = cf.createConnection(); conn2.start(); Session sessProducer = conn2.createSession(false, Sessio...
public void test1PCReceiveCommit() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn2 = cf.createConnection(); conn2.start(); Session sessProducer = conn2.createSession(false, Sessio...
45,386