bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public TableCellRenderer getCellRenderer( int row, int col ) { JLabel label = (JLabel)super.getCellRenderer( row, col ); label.setBackground( Color.white ); label.setFont( defaultFont ); if ( col == 0 ) { // BUG: not working? label.setFon...
public TableCellRenderer getCellRenderer( int row, int col ) { JLabel label = (JLabel)super.getCellRenderer( row, col ); label.setBackground( Color.white ); label.setFont( defaultFont ); if ( col == 0 ) { // BUG: not working? label.setFon...
54,542
public TableCellRenderer getCellRenderer( int row, int col ) { JLabel label = (JLabel)super.getCellRenderer( row, col ); label.setBackground( Color.white ); label.setFont( defaultFont ); if ( col == 0 ) { // BUG: not working? label.setFon...
public TableCellRenderer getCellRenderer( int row, int col ) { JLabel label = (JLabel)super.getCellRenderer( row, col ); label.setBackground( Color.white ); label.setFont( defaultFont ); if ( col == 0 ) { // BUG: not working? label.setFon...
54,543
public TableCellRenderer getCellRenderer( int row, int col ) { JLabel label = (JLabel)super.getCellRenderer( row, col ); label.setBackground( Color.white ); label.setFont( defaultFont ); if ( col == 0 ) { // BUG: not working? label.setFon...
public TableCellRenderer getCellRenderer( int row, int col ) { JLabel label = (JLabel)super.getCellRenderer( row, col ); label.setBackground( Color.white ); label.setFont( defaultFont ); if ( col == 0 ) { // BUG: not working? label.setFon...
54,544
PropertiesTableModel( Map cssProperties ) { _properties = cssProperties; }
PropertiesTableModel(Map cssProperties) { _properties = cssProperties; }
54,545
public String getColumnName( int col ) { return _colNames[col]; }
public String getColumnName(int col) { return _colNames[col]; }
54,546
public Object getValueAt( int row, int col ) { Map.Entry me = (Map.Entry) _properties.entrySet().toArray()[row]; CSSPrimitiveValue cpv = (CSSPrimitiveValue) me.getValue(); Object val = null; switch ( col ) { case 0: val = me.getKey();...
public Object getValueAt(int row, int col) { Map.Entry me = (Map.Entry) _properties.entrySet().toArray()[row]; CSSPrimitiveValue cpv = (CSSPrimitiveValue) me.getValue(); Object val = null; switch ( col ) { case 0: val = me.getKey(); ...
54,547
public Object getValueAt( int row, int col ) { Map.Entry me = (Map.Entry) _properties.entrySet().toArray()[row]; CSSPrimitiveValue cpv = (CSSPrimitiveValue) me.getValue(); Object val = null; switch ( col ) { case 0: val = me.getKey();...
public Object getValueAt( int row, int col ) { Map.Entry me = (Map.Entry) _properties.entrySet().toArray()[row]; CSSPrimitiveValue cpv = (CSSPrimitiveValue) me.getValue(); Object val = null; switch (col) { case 0: val = me.getKey(); ...
54,548
public Object getValueAt( int row, int col ) { Map.Entry me = (Map.Entry) _properties.entrySet().toArray()[row]; CSSPrimitiveValue cpv = (CSSPrimitiveValue) me.getValue(); Object val = null; switch ( col ) { case 0: val = me.getKey();...
public Object getValueAt( int row, int col ) { Map.Entry me = (Map.Entry) _properties.entrySet().toArray()[row]; CSSPrimitiveValue cpv = (CSSPrimitiveValue) me.getValue(); Object val = null; switch ( col ) { case 0: val = me.getKey();...
54,549
public Object getValueAt( int row, int col ) { Map.Entry me = (Map.Entry) _properties.entrySet().toArray()[row]; CSSPrimitiveValue cpv = (CSSPrimitiveValue) me.getValue(); Object val = null; switch ( col ) { case 0: val = me.getKey();...
public Object getValueAt( int row, int col ) { Map.Entry me = (Map.Entry) _properties.entrySet().toArray()[row]; CSSPrimitiveValue cpv = (CSSPrimitiveValue) me.getValue(); Object val = null; switch ( col ) { case 0: val = me.getKey();...
54,550
public boolean isCellEditable( int row, int col ) { return false; }
public boolean isCellEditable(int row, int col) { return false; }
54,551
ElementPropertiesPanel( Context context, StyleReference sr ) { super(); this._context = context; this._sr = sr; this._properties = new PropertiesJTable(); this._defaultTableModel = new DefaultTableModel(); this.setLayout( new BorderLayout() ); this.add( new JScrollPa...
ElementPropertiesPanel(Context context, StyleReference sr) { super(); this._context = context; this._sr = sr; this._properties = new PropertiesJTable(); this._defaultTableModel = new DefaultTableModel(); this.setLayout( new BorderLayout() ); this.add( new JScrollPane...
54,552
ElementPropertiesPanel( Context context, StyleReference sr ) { super(); this._context = context; this._sr = sr; this._properties = new PropertiesJTable(); this._defaultTableModel = new DefaultTableModel(); this.setLayout( new BorderLayout() ); this.add( new JScrollPa...
ElementPropertiesPanel( Context context, StyleReference sr ) { super(); this._context = context; this._sr = sr; this._properties = new PropertiesJTable(); this._defaultTableModel = new DefaultTableModel(); this.setLayout( new BorderLayout() ); this.add( new JScrollPa...
54,553
public void setForElement( Node node ) { try { _properties.setModel( tableModel( node ) ); TableColumnModel model = _properties.getColumnModel(); if ( model.getColumnCount() > 0 ) { model.getColumn( 0 ).sizeWidthToFit(); } } catch ( Exception ...
public void setForElement(Node node) { try { _properties.setModel( tableModel( node ) ); TableColumnModel model = _properties.getColumnModel(); if ( model.getColumnCount() > 0 ) { model.getColumn( 0 ).sizeWidthToFit(); } } catch ( Exception ex...
54,554
public void setForElement( Node node ) { try { _properties.setModel( tableModel( node ) ); TableColumnModel model = _properties.getColumnModel(); if ( model.getColumnCount() > 0 ) { model.getColumn( 0 ).sizeWidthToFit(); } } catch ( Exception ...
public void setForElement( Node node ) { try { _properties.setModel(tableModel(node)); TableColumnModel model = _properties.getColumnModel(); if ( model.getColumnCount() > 0 ) { model.getColumn( 0 ).sizeWidthToFit(); } } catch ( Exception ex )...
54,555
public void setForElement( Node node ) { try { _properties.setModel( tableModel( node ) ); TableColumnModel model = _properties.getColumnModel(); if ( model.getColumnCount() > 0 ) { model.getColumn( 0 ).sizeWidthToFit(); } } catch ( Exception ...
public void setForElement( Node node ) { try { _properties.setModel( tableModel( node ) ); TableColumnModel model = _properties.getColumnModel(); if ( model.getColumnCount() > 0 ) { model.getColumn( 0 ).sizeWidthToFit(); } } catch ( Exception ...
54,556
public void setForElement( Node node ) { try { _properties.setModel( tableModel( node ) ); TableColumnModel model = _properties.getColumnModel(); if ( model.getColumnCount() > 0 ) { model.getColumn( 0 ).sizeWidthToFit(); } } catch ( Exception ...
public void setForElement( Node node ) { try { _properties.setModel( tableModel( node ) ); TableColumnModel model = _properties.getColumnModel(); if ( model.getColumnCount() > 0 ) { model.getColumn( 0 ).sizeWidthToFit(); } } catch (Exception e...
54,557
private TableModel tableModel( Node node ) throws Exception { if ( node.getNodeType() != Node.ELEMENT_NODE ) { Toolkit.getDefaultToolkit().beep(); return _defaultTableModel; } Map props = _sr.getDerivedPropertiesMap((Element) node); return new PropertiesTable...
private TableModel tableModel( Node node ) throws Exception { if ( node.getNodeType() != Node.ELEMENT_NODE ) { Toolkit.getDefaultToolkit().beep(); return _defaultTableModel; } Map props = _sr.getDerivedPropertiesMap((Element) node); return new PropertiesTable...
54,558
private TableModel tableModel( Node node ) throws Exception { if ( node.getNodeType() != Node.ELEMENT_NODE ) { Toolkit.getDefaultToolkit().beep(); return _defaultTableModel; } Map props = _sr.getDerivedPropertiesMap((Element) node); return new PropertiesTable...
private TableModel tableModel( Node node ) throws Exception { if ( node.getNodeType() != Node.ELEMENT_NODE ) { Toolkit.getDefaultToolkit().beep(); return _defaultTableModel; } Map props = _sr.getDerivedPropertiesMap((Element) node); return new PropertiesTable...
54,559
public ImageResource getImageResource(String uri) { ImageResource ir = null; uri = resolveURI(uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is still valid if (ir == null) { InputStream is = getInputStream(uri); if (is != null...
public ImageResource getImageResource(String uri) { ImageResource ir = null; uri = resolveURI(uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is still valid if (ir == null) { InputStream is = getInputStream(uri); if (is != null...
54,561
public String resolveURI(String uri) { URL result; if (baseURL == null) { try { result = new URL(uri); setBaseURL(result.toExternalForm()); return result.toExternalForm(); } catch (MalformedURLException e) { try { ...
public String resolveURI(String uri) { URL result; if (baseURL == null) { try { result = new URL(uri); setBaseURL(result.toExternalForm()); return result.toExternalForm(); } catch (MalformedURLException e) { try { ...
54,562
public String resolveURI(String uri) { URL result; if (baseURL == null) { try { result = new URL(uri); setBaseURL(result.toExternalForm()); return result.toExternalForm(); } catch (MalformedURLException e) { try { ...
public String resolveURI(String uri) { URL result; if (baseURL == null) { try { result = new URL(uri); setBaseURL(result.toExternalForm()); return result.toExternalForm(); } catch (MalformedURLException e) { try { ...
54,563
public String resolveURI(String uri) { URL result; if (baseURL == null) { try { result = new URL(uri); setBaseURL(result.toExternalForm()); return result.toExternalForm(); } catch (MalformedURLException e) { try { ...
public String resolveURI(String uri) { URL result; if (baseURL == null) { try { result = new URL(uri); setBaseURL(result.toExternalForm()); return result.toExternalForm(); } catch (MalformedURLException e) { try { ...
54,564
public void paint(Graphics g) { //super.paint(g); Dimension s = getSize(); MetalUtils.fillMetalPattern(splitPane, g, 2, 2, s.width - 4, s.height - 4, light, dark); }
publicvoidpaint(Graphicsg){//super.paint(g);Dimensions=getSize();MetalUtils.fillMetalPattern(splitPane,g,2,2,s.width-4,s.height-4,light,dark);}
54,565
public static void main(String[] args) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(args); InputStream is = ARG_FILE.getInputStream(cmdLine); int len; final byte[] buf = new byte[1024]; while ((len = is.read(buf)) > 0) { System.out.write(buf, 0, len); } System.out.flush(); is.close(); }
public static void main(String[] args) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(args); InputStream is = ARG_FILE.getInputStream(cmdLine); int len; final byte[] buf = new byte[1024]; while ((len = is.read(buf)) > 0) { System.out.write(buf, 0, len); } System.out.flush(); is.close(); }
54,568
private void startRemoting(boolean multiplex) throws Exception { RemotingJMXWrapper mbean; String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "serializationtype=jboss&"...
private void startRemoting(boolean multiplex) throws Exception { RemotingJMXWrapper mbean; String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "serializationtype=jboss&"...
54,569
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
54,571
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
54,572
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
54,573
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
54,574
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
54,575
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
54,576
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
54,577
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
54,578
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ...
54,579
public void paintInline(RenderingContext c) { if (getStyle().isHidden()) { return; } paintBackground(c); paintBorder(c); if (c.debugDrawInlineBoxes()) { paintDebugOutline(c); } if (textDecoration != null) { Ide...
public void paintInline(RenderingContext c) { if (! getStyle().isVisible()) { return; } paintBackground(c); paintBorder(c); if (c.debugDrawInlineBoxes()) { paintDebugOutline(c); } if (textDecoration != null) { ...
54,580
public void addBinding(Binding binding) { super.addBinding(binding); if (binding.getNodeId().equals(thisNode) && binding.getQueue().isRecoverable()) { localDurableCount++; } }
public void addBinding(Binding binding) { super.addBinding(binding); if (binding.getNodeId() == thisNode && binding.getQueue().isRecoverable()) { localDurableCount++; } }
54,582
public boolean removeBinding(Binding binding) { boolean removed = super.removeBinding(binding); if (!removed) { return false; } if (binding.getNodeId().equals(thisNode) && binding.getQueue().isRecoverable()) { localDurableCount--; } ret...
public boolean removeBinding(Binding binding) { boolean removed = super.removeBinding(binding); if (!removed) { return false; } if (binding.getNodeId() == thisNode && binding.getQueue().isRecoverable()) { localDurableCount--; } return t...
54,583
public CellView createView(GraphModel model, Object cell) { if(model.isPort(cell)) { return new CustomPortView(cell); } else if(model.isEdge(cell)) { CustomEdgeView view = (CustomEdgeView)edgeMap.get(cell); if(view == null) { view = new CustomEdgeView(cell); edgeMap.p...
public CellView createView(GraphModel model, Object cell) { if(model.isPort(cell)) { WorkflowPort port = (WorkflowPort)cell; if(port.getIndex() == 0) return new CustomPortView(cell); return new PortView(cell); } else if(model.isEdge(cell)) { CustomEdgeView view = (CustomEdgeView)edgeMap.get(...
54,586
public void tearDown() throws Exception { connection.close(); ServerManagement.undeployTopic("Topic"); super.tearDown(); }
public void tearDown() throws Exception { connection.close(); ServerManagement.undeployTopic("Topic"); super.tearDown(); }
54,589
protected void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); setupDestinations(); final String defaultSecurityConfig = "<security><role name=\"def\" read=\"true\" write=\"true\" create=\"true\"/></security>"; oldDefaultConfig = ServerManageme...
protected void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); setupDestinations(); final String defaultSecurityConfig = "<security><role name=\"def\" read=\"true\" write=\"true\" create=\"true\"/></security>"; oldDefaultConfig = ServerManageme...
54,590
private void setupDestinations() throws Exception { ServerManagement.undeployQueue("testQueue"); ServerManagement.deployQueue("testQueue"); final String testQueueConf = "<security>" + "<role name=\"guest\" read=\"true\" write=\"true\"/>" + "<role name=\"pub...
private void setupDestinations() throws Exception { ServerManagement.undeployQueue("testQueue"); ServerManagement.deployQueue("testQueue"); final String testQueueConf = "<security>" + "<role name=\"guest\" read=\"true\" write=\"true\"/>" + "<role name=\"pub...
54,591
private void setupDestinations() throws Exception { ServerManagement.undeployQueue("testQueue"); ServerManagement.deployQueue("testQueue"); final String testQueueConf = "<security>" + "<role name=\"guest\" read=\"true\" write=\"true\"/>" + "<role name=\"pub...
private void setupDestinations() throws Exception { ServerManagement.undeployQueue("testQueue"); ServerManagement.deployQueue("testQueue"); final String testQueueConf = "<security>" + "<role name=\"guest\" read=\"true\" write=\"true\"/>" + "<role name=\"pub...
54,592
private void setupDestinations() throws Exception { ServerManagement.undeployQueue("testQueue"); ServerManagement.deployQueue("testQueue"); final String testQueueConf = "<security>" + "<role name=\"guest\" read=\"true\" write=\"true\"/>" + "<role name=\"pub...
private void setupDestinations() throws Exception { ServerManagement.undeployQueue("testQueue"); ServerManagement.deployQueue("testQueue"); final String testQueueConf = "<security>" + "<role name=\"guest\" read=\"true\" write=\"true\"/>" + "<role name=\"pub...
54,593
public void testReceive2() throws Exception { Connection conn = null; try { conn = cf.createConnection(); Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); s.createConsumer(queue); conn.start(); MessageProducer p = s.createProducer(queue)...
public void testReceive2() throws Exception { Connection conn = null; try { conn = cf.createConnection(); Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); s.createConsumer(queue); conn.start(); MessageProducer p = s.createProducer(queue)...
54,594
public void testReceive2() throws Exception { Connection conn = null; try { conn = cf.createConnection(); Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); s.createConsumer(queue); conn.start(); MessageProducer p = s.createProducer(queue)...
public void testReceive2() throws Exception { Connection conn = null; try { conn = cf.createConnection(); Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); s.createConsumer(queue); conn.start(); MessageProducer p = s.createProducer(queue)...
54,595
public void testReceive2() throws Exception { Connection conn = null; try { conn = cf.createConnection(); Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); s.createConsumer(queue); conn.start(); MessageProducer p = s.createProducer(queue)...
public void testReceive2() throws Exception { Connection conn = null; try { conn = cf.createConnection(); Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); s.createConsumer(queue); conn.start(); MessageProducer p = s.createProducer(queue)...
54,596
public void testReceive2() throws Exception { Connection conn = null; try { conn = cf.createConnection(); Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); s.createConsumer(queue); conn.start(); MessageProducer p = s.createProducer(queue)...
public void testReceive2() throws Exception { Connection conn = null; try { conn = cf.createConnection(); Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); s.createConsumer(queue); conn.start(); MessageProducer p = s.createProducer(queue)...
54,597
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); for (int i = 0; i < count; i++) { Message m = producerSession.createMessage(); ...
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); for (int i = 0; i < count; i++) { Message m = producerSession.createMessage(); ...
54,599
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); topicProducer.send(m); } catch(Exception e) { log.error(e); } ...
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); topicProducer.send(m1); } catch(Exception e) { log.error(e); } ...
54,601
public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ...
public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ...
54,602
public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ...
public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ...
54,603
public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ...
public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ...
54,604
public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ...
public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ...
54,605
public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ...
public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ...
54,606
public void testSendMessageAndCloseConsumer2() throws Exception { // create my consumer from scratch consumerConnection.close(); TextMessage tm = producerSession.createTextMessage(); tm.setText("One"); queueProducer.send(tm); tm.setText("Two"); queueProducer.send(tm);...
public void testSendMessageAndCloseConsumer2() throws Exception { // create my consumer from scratch consumerConnection.close(); TextMessage tm = producerSession.createTextMessage(); tm.setText("One"); queueProducer.send(tm); tm.setText("Two"); queueProducer.send(tm);...
54,607
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(timeToSleep); topicConsumer.close(); } catch(Exception e) { log.error(e); ...
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(timeToSleep); topicConsumer.close(); } catch(Exception e) { log.error(e); ...
54,608
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(timeToSleep); topicConsumer.close(); } catch(Exception e) { log.error(e); ...
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(timeToSleep); topicConsumer.close(); } catch(Exception e) { e.printStackTrace(); ...
54,609
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(timeToSleep); topicConsumer.close(); } catch(Exception e) { log.error(e); ...
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(timeToSleep); topicConsumer.close(); } catch(Exception e) { log.error(e); ...
54,610
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); topicProducer.send(m1); } catch(Exception e) { log.error(e); } ...
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); for (int i = 0; i < count; i++) { Message m = producerSession.createMessage(); queueProducer.send(m); } } ...
54,611
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); for (int i = 0; i < count; i++) { Message m = producerSession.createMessage(); ...
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); for (int i = 0; i < count; i++) { Message m = producerSession.createMessage(); ...
54,612
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); topicConsumer.close(); } catch(Exception e) { log.error(e); } ...
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(timeToSleep); topicConsumer.close(); } catch(Exception e) { log.error(e); ...
54,613
public void run() { try { if (trace) { log.trace("handing " + this.msg + " over to the remoting layer"); } MessagingMarshallable mm = new MessagingMarshallable(connection.getUsingVersion(), this); connection.getCallbackClient().invoke(mm); } ca...
public void run() { try { if (trace) { log.trace("handing " + this.msg + " over to the remoting layer"); } MessagingMarshallable mm = new MessagingMarshallable(connection.getUsingVersion(), this); connection.getCallbackClient().invoke(mm); } ca...
54,614
void calculatePreferredSize() { // System.err.println(this + ".calculatePreferredSize()"); int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth()...
void calculatePreferredSize() { // System.err.println(this + ".calculatePreferredSize()"); int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth()...
54,615
void calculatePreferredSize() { // System.err.println(this + ".calculatePreferredSize()"); int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth()...
void calculatePreferredSize() { // System.err.println(this + ".calculatePreferredSize()"); int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth()...
54,616
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { log.debug("Creating a new connection with username=" + username); //authenticate the user serverPeer.getSecurityManager().authenticate(username, password); //See if there is...
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { log.debug("Creating a new connection with username=" + username); //authenticate the user serverPeer.getSecurityManager().authenticate(username, password); //See if there is...
54,617
public void testProperties() throws Exception { Message m1 = queueProducerSession.createMessage(); //Some arbitrary values boolean myBool = true; byte myByte = 13; short myShort = 15321; int myInt = 0x71ab6c80; long myLong = 0x20bf1e3fb6fa31dfL; float myFloat = Float.MAX_VAL...
public void testProperties() throws Exception { Message m1 = queueProducerSession.createMessage(); //Some arbitrary values boolean myBool = true; byte myByte = 13; short myShort = 15321; int myInt = 0x71ab6c80; long myLong = 0x20bf1e3fb6fa31dfL; float myFloat = Float.MAX_VAL...
54,618
public void testProperties() throws Exception { Message m1 = queueProducerSession.createMessage(); //Some arbitrary values boolean myBool = true; byte myByte = 13; short myShort = 15321; int myInt = 0x71ab6c80; long myLong = 0x20bf1e3fb6fa31dfL; float myFloat = Float.MAX_VAL...
public void testProperties() throws Exception { Message m1 = queueProducerSession.createMessage(); //Some arbitrary values boolean myBool = true; byte myByte = 13; short myShort = 15321; int myInt = 0x71ab6c80; long myLong = 0x20bf1e3fb6fa31dfL; float myFloat = Float.MAX_VAL...
54,619
public void run() { html = new XHTMLPanel(); frame.getContentPane().add(new FSScrollPane(html)); frame.pack(); frame.setSize(1024, 768); frame.setVisible(true); frame.addComponentListener(ne...
public void run() { html = new XHTMLPanel(); frame.getContentPane().add(new FSScrollPane(html)); frame.pack(); frame.setSize(1024, 768); frame.setVisible(true); frame.addComponentListener(ne...
54,620
private void run(String args[]) { buildFrame(); directory = args[0]; testFiles = buildFileList(); try { //switchPage( (File)testFiles.get( 0 ) ); showHelpPage(); } catch (Exception ex) { ex.printStackTrace(); } }
private void run(String args[]) { buildFrame(); directory = args[0]; testFiles = buildFileList(); try { //switchPage( (File)testFiles.get( 0 ) ); SwingUtilities.invokeLater(new Runnable() { public void run() { showHelpPage(); } }); } catch (Exception ex) { ...
54,622
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
54,623
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
54,624
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
54,625
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
54,626
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
54,627
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
54,628
public java.util.Map getCascadedPropertiesMap(Element e) { CascadedStyle cs = _matcher.getCascadedStyle(e, false);//this is only for debug, I think java.util.LinkedHashMap props = new java.util.LinkedHashMap(); for (java.util.Iterator i = cs.getMatchedPropertyDeclarations(); i.hasNext();) { ...
public java.util.Map getCascadedPropertiesMap(Element e) { CascadedStyle cs = _matcher.getCascadedStyle(e, false);//this is only for debug, I think java.util.LinkedHashMap props = new java.util.LinkedHashMap(); for (java.util.Iterator i = cs.getCascadedPropertyDeclarations(); i.hasNext();) { ...
54,629
public static final KeyAgreement 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 KeyAgreement 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...
54,630
public static final KeyAgreement 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 KeyAgreement 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 ...
54,631
public static final KeyAgreement 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 KeyAgreement 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...
54,632
public static final KeyAgreement 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 KeyAgreement 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...
54,633
public static final KeyAgreement 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 KeyAgreement 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...
54,634
public static Box layoutChildren(LayoutContext c, Box box, Content content) { List contentList = content.getChildContent(c); box.setState(Box.CHILDREN_FLUX); if (contentList != null && contentList.size() > 0) { Content parent = c.getParentContent(); c.setParentContent(cont...
public static Box layoutChildren(LayoutContext c, BlockBox box, Content content) { List contentList = content.getChildContent(c); box.setState(Box.CHILDREN_FLUX); if (contentList != null && contentList.size() > 0) { Content parent = c.getParentContent(); c.setParentContent...
54,635
public void testClientCrash() throws Exception { if (!ServerManagement.isRemote()) return; InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)i...
public void testClientCrash() throws Exception { if (!ServerManagement.isRemote()) return; InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)i...
54,636
private static boolean isAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { return true; } return false; }
private static boolean isAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { return true; } return false; }
54,637
public static void postChildrenLayout(Context c, Box block) { if (isAbsolute(c, block)) { c.getBlockFormattingContext().doFinalAdjustments(); c.popBFC(); } }
public static void postChildrenLayout(Context c, Box block) { if (isAbsolute(block)) { c.getBlockFormattingContext().doFinalAdjustments(); c.popBFC(); } }
54,638
public static void preChildrenLayout(Context c, Box block) { if (isAbsolute(c, block)) { BlockFormattingContext bfc = new BlockFormattingContext(block); bfc.setWidth(block.width); c.pushBFC(bfc); } }
public static void preChildrenLayout(Context c, Box block) { if (isAbsolute(block)) { BlockFormattingContext bfc = new BlockFormattingContext(block); bfc.setWidth(block.width); c.pushBFC(bfc); } }
54,639
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
54,640
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (style.hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); if (LayoutUti...
54,641
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
54,642
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
54,643
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
54,644
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
54,645
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
54,646
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
54,647
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
54,648
private void addHandlers(XMLReader xmlReader) { try { // add our own entity resolver xmlReader.setEntityResolver(FSEntityResolver.instance()); xmlReader.setErrorHandler( new ErrorHandler() { pub...
private void addHandlers(XMLReader xmlReader) { try { // add our own entity resolver xmlReader.setEntityResolver(FSEntityResolver.instance()); xmlReader.setErrorHandler( new ErrorHandler() { pub...
54,650
private void addHandlers(XMLReader xmlReader) { try { // add our own entity resolver xmlReader.setEntityResolver(FSEntityResolver.instance()); xmlReader.setErrorHandler( new ErrorHandler() { pub...
private void addHandlers(XMLReader xmlReader) { try { // add our own entity resolver xmlReader.setEntityResolver(FSEntityResolver.instance()); xmlReader.setErrorHandler( new ErrorHandler() { pub...
54,651
private void addHandlers(XMLReader xmlReader) { try { // add our own entity resolver xmlReader.setEntityResolver(FSEntityResolver.instance()); xmlReader.setErrorHandler( new ErrorHandler() { pub...
private void addHandlers(XMLReader xmlReader) { try { // add our own entity resolver xmlReader.setEntityResolver(FSEntityResolver.instance()); xmlReader.setErrorHandler( new ErrorHandler() { pub...
54,652
private void addHandlers(XMLReader xmlReader) { try { // add our own entity resolver xmlReader.setEntityResolver(FSEntityResolver.instance()); xmlReader.setErrorHandler( new ErrorHandler() { pub...
private void addHandlers(XMLReader xmlReader) { try { // add our own entity resolver xmlReader.setEntityResolver(FSEntityResolver.instance()); xmlReader.setErrorHandler( new ErrorHandler() { pub...
54,653
public void error( SAXParseException ex ) { XRLog.load(ex.getMessage()); }
public void error(SAXParseException ex) { XRLog.load(ex.getMessage()); }
54,654