rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { | public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args, PropertySet ps) throws WorkflowException { | public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String script = (String) args.get(AbstractWorkflow.BSH_SCRIPT); Interpreter i = new Interpreter(); ClassLoader loader = Thread.currentThread().getContextClassLoader(); try { ... |
Object o = i.eval(script); return o; | return i.eval(script); | public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String script = (String) args.get(AbstractWorkflow.BSH_SCRIPT); Interpreter i = new Interpreter(); ClassLoader loader = Thread.currentThread().getContextClassLoader(); try { ... |
private static void error(URL base, StreamTokenizer in, String msg) throws IOException { throw new IOException(base + ":" + in.lineno() + ": " + msg); | private static void error(Throwable t) { System.err.println(">> PolicyFile"); t.printStackTrace(System.err); | private static void error(URL base, StreamTokenizer in, String msg) throws IOException { throw new IOException(base + ":" + in.lineno() + ": " + msg); } |
debug(pae.getException()); | error(pae.getException()); | public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t... |
debug(ioe); | error(ioe); | public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t... |
firePropertyChange ("accelerator", old, keystroke); | public void setAccelerator(KeyStroke keystroke) { this.accelerator = keystroke; } | |
public void notificationReceived(UnsolicitedNotificationEvent evt); | void notificationReceived(UnsolicitedNotificationEvent evt); | public void notificationReceived(UnsolicitedNotificationEvent evt); |
public synchronized void addFirst(Object obj, int priority) | public synchronized boolean addFirst(Object obj, int priority) | public synchronized void addFirst(Object obj, int priority) { deque.addFirst(obj, priority); } |
deque.addFirst(obj, priority); | return deque.addFirst(obj, priority); | public synchronized void addFirst(Object obj, int priority) { deque.addFirst(obj, priority); } |
public synchronized void addLast(Object obj, int priority) | public synchronized boolean addLast(Object obj, int priority) | public synchronized void addLast(Object obj, int priority) { deque.addLast(obj, priority); } |
deque.addLast(obj, priority); | return deque.addLast(obj, priority); | public synchronized void addLast(Object obj, int priority) { deque.addLast(obj, priority); } |
0, | protected Message createMessage(byte i, boolean reliable) throws Exception { HashMap coreHeaders = generateFilledMap(true); HashMap jmsProperties = generateFilledMap(false); JBossMessage jbm = new JBossMessage(i, reliable, System.currentTim... | |
g2r.getPanel().assignPagePaintingPositions(g2, 0); | g2r.getPanel().assignPagePrintPositions(g2); | public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; if (g2r == null) { g2r = new Graphics2DRenderer(); g2r.getSharedContext().setPrint(true); g2r.getSharedContext().setInteractive(false); ... |
case 2: return String.valueOf(condition.isNegate()); | public Object getValueAt(int rowIndex, int columnIndex) { AbstractDescriptor dd = (AbstractDescriptor)list.get(rowIndex); if (dd instanceof ConditionsDescriptor) return null; ConditionDescriptor condition = (ConditionDescriptor)list.get(rowIndex); PaletteDescriptor palette = graphModel.getPalette(... | |
protected Client getClient() | protected synchronized Client getClient() throws Exception | protected Client getClient() { return null; } |
return null; | if (client == null) { InvokerLocator locator = new InvokerLocator(serverLocatorURI); client = new Client(locator, ServerPeer.REMOTING_JMS_SUBSYSTEM); client.connect(); } return client; | protected Client getClient() { return null; } |
invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, new Integer(id), PayloadKey.AS_IS); | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | |
{ InvokerLocator locator = new InvokerLocator(serverLocatorURI); | { byte v = getVersionToUse().getProviderIncrementingVersion(); MessagingMarshallable mm = (MessagingMarshallable) getClient().invoke(new MessagingMarshallable(v, invocation), null); | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... |
Client client = new Client(locator, ServerPeer.REMOTING_JMS_SUBSYSTEM); client.connect(); try { byte v = getVersionToUse().getProviderIncrementingVersion(); MessagingMarshallable mm = (MessagingMarshallable) client.invoke(new MessagingMarshallable(v, invocation), null); ret = mm.getLoad(); } finally { client.discon... | ret = mm.getLoad(); | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... |
setSizeable(true); setGridColor(new Color(240, 240, 240)); | setSizeable(true); setGridColor(GRID_COLOR); | public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; setDescriptor(descriptor); if(doAutoLayout) { autoLayout(); } setSelectNewCells(true);... |
model.addUndoableEditListener(undoManager); | public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; setDescriptor(descriptor); if(doAutoLayout) { autoLayout(); } setSelectNewCells(true);... | |
if (log.isTraceEnabled()) { log.trace("receiver " + receiver + " handled " + routable + " and returned " + d); } | if (trace) { log.trace("receiver " + receiver + " handled " + routable + " and returned " + d); } | public Set handle(DeliveryObserver observer, Routable routable, Transaction tx) { Set deliveries = new HashSet(); synchronized(receivers) { for(Iterator i = receivers.iterator(); i.hasNext(); ) { Receiver receiver = (Receiver)i.next(); try { ... |
height = Math.max(incrButton.getPreferredSize().height, decrButton.getPreferredSize().height); height = Math.max(getMinimumThumbSize().height, height); height = Math.min(getMaximumThumbSize().height, height); | height = UIManager.getInt("ScrollBar.width"); | void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += (scrollbar.getMaximum() - scrollbar.getMinimum()); ... |
width = Math.max(incrButton.getPreferredSize().width, decrButton.getPreferredSize().width); width = Math.max(getMinimumThumbSize().width, width); width = Math.min(getMaximumThumbSize().width, width); | width = UIManager.getInt("ScrollBar.width"); | void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += (scrollbar.getMaximum() - scrollbar.getMinimum()); ... |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); trackColor = defaults.getColor("ScrollBar.track"); trackHighlightColor = defaults.getColor("ScrollBar.trackHighlight"); thumbColor = defaults.getColor("ScrollBar.thumb"); thumbHighlightColor = defaults.getColor("ScrollBar.thumbHighlight"); thumbDarkShadowColor ... | trackColor = UIManager.getColor("ScrollBar.track"); trackHighlightColor = UIManager.getColor("ScrollBar.trackHighlight"); thumbColor = UIManager.getColor("ScrollBar.thumb"); thumbHighlightColor = UIManager.getColor("ScrollBar.thumbHighlight"); thumbDarkShadowColor = UIManager.getColor("ScrollBar.thumbDarkShadow"); thum... | protected void configureScrollBarColors() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); trackColor = defaults.getColor("ScrollBar.track"); trackHighlightColor = defaults.getColor("ScrollBar.trackHighlight"); thumbColor = defaults.getColor("ScrollBar.thumb"); thumbHighlightColor = default... |
listenerList = new EventListenerList(); changeEvent = new ChangeEvent(this); | public AbstractCellEditor() { // TODO } // AbstractCellEditor() | |
return false; | return true; | public boolean isCellEditable(EventObject event) { return false; // TODO } // isCellEditable() |
log.info("deleted " + rows + " rows"); | protected boolean deleteBinding(String queueName) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("DELETE_BINDING")... | |
System.out.println("in Naive User Agent get image: " + uri); | public Image getImage(String uri) { System.out.println("in Naive User Agent get image: " + uri); java.io.InputStream is = null; Image img = null; uri = resolveURI(uri); if (imageCache != null) { SoftReference ref = (SoftReference) imageCache.get(uri); if (ref != nu... | |
ServerManagement.deInit(); | public void tearDown() throws Exception { ServerManagement.deInit(); super.tearDown(); log.debug("tear down done"); } | |
jobDetail.setDurability(true); | public void execute(Map transientVars, Map args, PropertySet ps) { try { WorkflowEntry entry = (WorkflowEntry) transientVars.get("entry"); WorkflowContext context = (WorkflowContext) transientVars.get("context"); log.info("Starting to schdule job for WF #" + entry.getId()); ... | |
if(cell == null) { System.err.println("Hit the null cell error in "+this.getClass().getName()); continue; } | public Box calculateBoxes(int avail_width, TableBox box, Context c, Table table) { //u.p("TableLayout2.calculateBoxes(" + avail_width + // " , " + box + " , " + c + " , " + table); box.width = avail_width; box.height = 100; box.x = 5; box.y = 5; ... | |
public void addTable(Element elem) throws Exception { | public void addTable(Element elem) { | public void addTable(Element elem) throws Exception { // for each tr NodeList rows = elem.getChildNodes(); boolean first_row = true; int row_count = 0; for(int i=0; i<rows.getLength(); i++) { Node row = rows.item(i); if(row.getNodeName().equals("tr")) { ... |
int width = (int)c.css.getFloatProperty((Element)cell.node,"width",false); | int width = (int)c.css.getFloatProperty((Element)cell.node,"width",avail_width,false); | public void calculateWidths(int avail_width, Context c) { //u.p("calculating columns from total space of: " + avail_width); //u.p("total column width = " + total_cols); // get number of columns and init array int total_cols = getTotalColumnCount(); int[] widths = new int[t... |
"ProgressBar.background", new ColorUIResource(light), "ProgressBar.border", new BorderUIResource.LineBorderUIResource(Color.darkGray), | "ProgressBar.background", new ColorUIResource(Color.LIGHT_GRAY), "ProgressBar.border", new BorderUIResource.LineBorderUIResource(Color.GREEN, 2), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... |
"ProgressBar.foreground", new ColorUIResource(Color.black), "ProgressBar.selectionBackground", new ColorUIResource(Color.black), "ProgressBar.selectionForeground", new ColorUIResource(light), "ProgressBar.repaintInterval", new Integer(250), "ProgressBar.cycleTime", new Integer(6000), | "ProgressBar.foreground", new ColorUIResource(0, 0, 128), "ProgressBar.selectionBackground", new ColorUIResource(0, 0, 128), "ProgressBar.selectionForeground", new ColorUIResource(Color.LIGHT_GRAY), "ProgressBar.repaintInterval", new Integer(50), "ProgressBar.cycleTime", new Integer(3000), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... |
"Tree.rowHeight", new Integer(16), | "Tree.rowHeight", new Integer(0), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... |
this.delegate = delegate; | public IconUIResource(Icon delegate) { } | |
queue2 = (Queue)ic.lookup("/queue/Queue2"); | public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeployQueue("Queue"); ServerManagement.deployTopic("Topic"); ServerManagement.deployQueue("Queue"); InitialContext ic = new ... | |
ServerManagement.undeployQueue("Queue2"); | public void tearDown() throws Exception { producerConnection.close(); consumerConnection.close(); if (worker1 != null) { worker1.interrupt(); } ServerManagement.undeployTopic("Topic"); ServerManagement.undeployQueue("Queue"); ServerManagement.deInit(); super.tea... | |
log.trace("Running testSendAndReceivePersistentDifferentConnections"); | public void testAckAfterConsumerClosed() throws Exception { Connection connSend = null; Connection connReceive = null; try { log.trace("Running testSendAndReceivePersistentDifferentConnections"); connSend = cf.createConnection(); connSend... | |
Connection conn1 = cf.createConnection(); assertNull(conn1.getClientID()); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); | Connection conn1 = null; | public void testDurableSubscriptionClientIDNotSet() throws Exception { //Client id must be set before creating a durable subscription //This assumes we are not setting it in the connection factory which //is currently true but may change in the future Connection conn1 = cf.createConnection(); ... |
sess1.createDurableSubscriber(topic, "mySubscription"); fail(); | conn1 = cf.createConnection(); assertNull(conn1.getClientID()); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); try { sess1.createDurableSubscriber(topic, "mySubscription"); fail(); } catch (JMSException e) {} | public void testDurableSubscriptionClientIDNotSet() throws Exception { //Client id must be set before creating a durable subscription //This assumes we are not setting it in the connection factory which //is currently true but may change in the future Connection conn1 = cf.createConnection(); ... |
catch (JMSException e) {} | finally { if (conn1 != null) { conn1.close(); } } | public void testDurableSubscriptionClientIDNotSet() throws Exception { //Client id must be set before creating a durable subscription //This assumes we are not setting it in the connection factory which //is currently true but may change in the future Connection conn1 = cf.createConnection(); ... |
Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); | Connection conn1 = null; | public void testDurableSubscriptionInvalidUnsubscribe() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); try { sess1.un... |
sess1.unsubscribe("non-existent subscription"); fail(); | conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); try { sess1.unsubscribe("non-existent subscription"); fail(); } catch (JMSException e) { } | public void testDurableSubscriptionInvalidUnsubscribe() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); try { sess1.un... |
catch (JMSException e) | finally | public void testDurableSubscriptionInvalidUnsubscribe() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); try { sess1.un... |
if (conn1 != null) { conn1.close(); } | public void testDurableSubscriptionInvalidUnsubscribe() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); try { sess1.un... | |
Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); | Connection conn1 = null; Connection conn2 = null; try { conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createProducer(topic); prod.setDeliveryMode(DeliveryMode.PERSISTENT); MessageConsumer durable = s... | public void testDurableSubscriptionReconnect() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createP... |
Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createProducer(topic); prod.setDeliveryMode(DeliveryMode.NON_PERSISTENT); MessageConsumer durable = sess1.createDurableSubscriber(topic, "mySubscription"); conn1.start(); final int NUM_MESSAGES = 2; for (int i = 0; ... | public void testDurableSubscriptionReconnect() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createP... | |
Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createProducer(topic); prod.setDeliveryMode(DeliveryMode.NON_PERSISTENT); MessageConsumer durable = sess1.createDurableSubscriber(topic, "mySub... | Connection conn1 = null; Connection conn2 = null; try | public void testDurableSubscriptionReconnectDifferentClientID() throws Exception { final String CLIENT_ID1 = "test-client-id1"; final String CLIENT_ID2 = "test-client-id2"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, S... |
TextMessage tm = sess1.createTextMessage("hello"); prod.send(topic, tm); | conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createProducer(topic); prod.setDeliveryMode(DeliveryMode.PERSISTENT); MessageConsumer durable = sess1.createDurableSubscriber(topic, "mySubscription"); c... | public void testDurableSubscriptionReconnectDifferentClientID() throws Exception { final String CLIENT_ID1 = "test-client-id1"; final String CLIENT_ID2 = "test-client-id2"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, S... |
final int NUM_TO_RECEIVE1 = 22; for (int i = 0; i < NUM_TO_RECEIVE1; i++) | finally | public void testDurableSubscriptionReconnectDifferentClientID() throws Exception { final String CLIENT_ID1 = "test-client-id1"; final String CLIENT_ID2 = "test-client-id2"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, S... |
TextMessage tm = (TextMessage)durable.receive(3000); if (tm == null) | if (conn1 != null) | public void testDurableSubscriptionReconnectDifferentClientID() throws Exception { final String CLIENT_ID1 = "test-client-id1"; final String CLIENT_ID2 = "test-client-id2"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, S... |
fail(); | conn1.close(); } if (conn2 != null) { conn2.close(); | public void testDurableSubscriptionReconnectDifferentClientID() throws Exception { final String CLIENT_ID1 = "test-client-id1"; final String CLIENT_ID2 = "test-client-id2"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, S... |
conn1.close(); conn1 = null; Connection conn2 = cf.createConnection(); conn2.setClientID(CLIENT_ID2); Session sess2 = conn2.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageConsumer durable2 = sess2.createDurableSubscriber(topic, "mySubscription"); conn2.start(); int count = 0; while (true) { TextMessage t... | public void testDurableSubscriptionReconnectDifferentClientID() throws Exception { final String CLIENT_ID1 = "test-client-id1"; final String CLIENT_ID2 = "test-client-id2"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, S... | |
Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createProducer(topic); prod.setDeliveryMode(DeliveryMode.NON_PERSISTENT); MessageConsumer durable = sess1.createDurableSubscriber(topic, "mySub... | Connection conn1 = null; try | public void testDurableSubscriptionSimple() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createProd... |
TextMessage tm = sess1.createTextMessage("hello"); prod.send(topic, tm); | conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createProducer(topic); prod.setDeliveryMode(DeliveryMode.PERSISTENT); MessageConsumer durable = sess1.createDurableSubscriber(topic, "mySubscription"); c... | public void testDurableSubscriptionSimple() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createProd... |
int count = 0; while (true) { TextMessage tm = (TextMessage)durable.receive(3000); if (tm == null) { break; } count++; } assertEquals(NUM_MESSAGES, count); sess1.unsubscribe("mySubscription"); conn1.close(); | public void testDurableSubscriptionSimple() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createProd... | |
Connection conn1 = cf.createConnection(); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer1 = sess1.createProducer(topic); producer1.setDeliveryMode(DeliveryMode.NON_PERSISTENT); MessageConsumer consumer1 = sess1.createConsumer(topic, null, true); Connection conn2 = cf.cr... | Connection conn1 = null; Connection conn2 = null; try | public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer1 = sess1.createProducer(topic); producer1.setDeliveryMod... |
boolean exceptionThrown; public Message m; MessageConsumer consumer; TestRunnable(MessageConsumer consumer) | conn1 = cf.createConnection(); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer1 = sess1.createProducer(topic); producer1.setDeliveryMode(DeliveryMode.NON_PERSISTENT); MessageConsumer consumer1 = sess1.createConsumer(topic, null, true); conn2 = cf.createConnection(); Sess... | public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer1 = sess1.createProducer(topic); producer1.setDeliveryMod... |
this.consumer = consumer; | boolean exceptionThrown; public Message m; MessageConsumer consumer; TestRunnable(MessageConsumer consumer) { this.consumer = consumer; } public void run() { try { m = consumer.receive(3000); } catch (Exception e) { exceptionThrown = true; } } | public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer1 = sess1.createProducer(topic); producer1.setDeliveryMod... |
public void run() | TestRunnable tr1 = new TestRunnable(consumer1); TestRunnable tr2 = new TestRunnable(consumer2); TestRunnable tr3 = new TestRunnable(consumer3); Thread t1 = new Thread(tr1); Thread t2 = new Thread(tr2); Thread t3 = new Thread(tr3); t1.start(); t2.start(); t3.start(); Message m2 = sess1.createTextMessage("Hello"); pro... | public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer1 = sess1.createProducer(topic); producer1.setDeliveryMod... |
try { m = consumer.receive(3000); } catch (Exception e) { exceptionThrown = true; } | conn1.close(); } if (conn2 != null) { conn2.close(); | public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer1 = sess1.createProducer(topic); producer1.setDeliveryMod... |
TestRunnable tr1 = new TestRunnable(consumer1); TestRunnable tr2 = new TestRunnable(consumer2); TestRunnable tr3 = new TestRunnable(consumer3); Thread t1 = new Thread(tr1); Thread t2 = new Thread(tr2); Thread t3 = new Thread(tr3); t1.start(); t2.start(); t3.start(); Message m2 = sess1.createTextMessage("Hello"); pro... | public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer1 = sess1.createProducer(topic); producer1.setDeliveryMod... | |
{ try | public void run() { try { m = consumer.receive(3000); } catch (Exception e) { exceptionThrown = true; } } | |
m = consumer.receive(3000); | try { m = consumer.receive(3000); } catch (Exception e) { exceptionThrown = true; } | public void run() { try { m = consumer.receive(3000); } catch (Exception e) { exceptionThrown = true; } } |
catch (Exception e) { exceptionThrown = true; } } | public void run() { try { m = consumer.receive(3000); } catch (Exception e) { exceptionThrown = true; } } | |
prod.send(queue, m); | prod.send(queue2, m); | public void testSendAndReceivePersistentDifferentConnections() throws Exception { Connection connSend = null; Connection connReceive = null; try { log.trace("Running testSendAndReceivePersistentDifferentConnections"); connSend = cf.createConnection(); ... |
MessageConsumer cons = sessReceive.createConsumer(queue); | MessageConsumer cons = sessReceive.createConsumer(queue2); | public void testSendAndReceivePersistentDifferentConnections() throws Exception { Connection connSend = null; Connection connReceive = null; try { log.trace("Running testSendAndReceivePersistentDifferentConnections"); connSend = cf.createConnection(); ... |
sessReceive.commit(); | public void testSendAndReceivePersistentDifferentConnections() throws Exception { Connection connSend = null; Connection connReceive = null; try { log.trace("Running testSendAndReceivePersistentDifferentConnections"); connSend = cf.createConnection(); ... | |
cons = sessReceive.createConsumer(queue); | cons = sessReceive.createConsumer(queue2); | public void testSendAndReceivePersistentDifferentConnections() throws Exception { Connection connSend = null; Connection connReceive = null; try { log.trace("Running testSendAndReceivePersistentDifferentConnections"); connSend = cf.createConnection(); ... |
Provider[] providers = Security.getProviders(); NoSuchPaddingException ex = null; String msg = ""; for (int i = 0; i < providers.length; i++) { | Provider[] p = Security.getProviders(); NoSuchAlgorithmException lastException = null; NoSuchPaddingException lastPaddingException = null; for (int i = 0; i < p.length; i++) | public static final Cipher getInstance(String transformation) throws NoSuchAlgorithmException, NoSuchPaddingException { Provider[] providers = Security.getProviders(); NoSuchPaddingException ex = null; String msg = ""; for (int i = 0; i < providers.length; i++) { try { ... |
return getInstance(transformation, providers[i]); | return getInstance(transformation, p[i]); | public static final Cipher getInstance(String transformation) throws NoSuchAlgorithmException, NoSuchPaddingException { Provider[] providers = Security.getProviders(); NoSuchPaddingException ex = null; String msg = ""; for (int i = 0; i < providers.length; i++) { try { ... |
catch (NoSuchAlgorithmException nsae) | catch (NoSuchAlgorithmException x) | public static final Cipher getInstance(String transformation) throws NoSuchAlgorithmException, NoSuchPaddingException { Provider[] providers = Security.getProviders(); NoSuchPaddingException ex = null; String msg = ""; for (int i = 0; i < providers.length; i++) { try { ... |
msg = nsae.getMessage(); ex = null; | lastException = x; lastPaddingException = null; | public static final Cipher getInstance(String transformation) throws NoSuchAlgorithmException, NoSuchPaddingException { Provider[] providers = Security.getProviders(); NoSuchPaddingException ex = null; String msg = ""; for (int i = 0; i < providers.length; i++) { try { ... |
catch (NoSuchPaddingException nspe) | catch (NoSuchPaddingException x) | public static final Cipher getInstance(String transformation) throws NoSuchAlgorithmException, NoSuchPaddingException { Provider[] providers = Security.getProviders(); NoSuchPaddingException ex = null; String msg = ""; for (int i = 0; i < providers.length; i++) { try { ... |
ex = nspe; | lastPaddingException = x; | public static final Cipher getInstance(String transformation) throws NoSuchAlgorithmException, NoSuchPaddingException { Provider[] providers = Security.getProviders(); NoSuchPaddingException ex = null; String msg = ""; for (int i = 0; i < providers.length; i++) { try { ... |
} if (ex != null) { throw ex; } throw new NoSuchAlgorithmException(msg); | if (lastPaddingException != null) throw lastPaddingException; if (lastException != null) throw lastException; throw new NoSuchAlgorithmException(transformation); | public static final Cipher getInstance(String transformation) throws NoSuchAlgorithmException, NoSuchPaddingException { Provider[] providers = Security.getProviders(); NoSuchPaddingException ex = null; String msg = ""; for (int i = 0; i < providers.length; i++) { try { ... |
public final void init(int opmode, Key key, AlgorithmParameters params) throws InvalidKeyException, InvalidAlgorithmParameterException | public final void init(int opmode, Certificate certificate) throws InvalidKeyException | public final void init(int opmode, Key key, AlgorithmParameters params) throws InvalidKeyException, InvalidAlgorithmParameterException { init(opmode, key, params, new SecureRandom()); } |
init(opmode, key, params, new SecureRandom()); | init(opmode, certificate, new SecureRandom()); | public final void init(int opmode, Key key, AlgorithmParameters params) throws InvalidKeyException, InvalidAlgorithmParameterException { init(opmode, key, params, new SecureRandom()); } |
float size = style.getFloatPropertyProportionalHeight(CSSName.FONT_SIZE, c.getBlockFormattingContext().getHeight(), c.getCtx()); | float size = style.getFloatPropertyProportionalHeight(CSSName.FONT_SIZE, 0, c.getCtx()); | public static Font getFont(Context c) { CalculatedStyle style = c.getCurrentStyle(); // CalculatedStyle should take care of all iheritance and default values // if a change is made to the basic font (by user action, for example), restyle Font f = c.getGraphics().getFont(); if (qui... |
long lease = getRemotingConnectionLeasePeriod(); | long lease = 0; | public synchronized void startService() throws Exception { if (started) { return; } log.debug(this + " starting"); loadClientAOPConfig(); loadServerAOPConfig(); MBeanServer mbeanServer = getServer(); // Acquire references to plugins. Each plug-in will be accessed dir... |
super(); | super("The precision, " + p + ", is illegal."); | public IllegalFormatPrecisionException(int p) { super(); this.p = p; } |
if (textContent != null) { inlineList.add(textContent); textContent = null; } | inlineList.add(new StylePush(before)); | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); List blockList = null; FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; TextContent textContent = null; CascadedStyle parentStyle = parent.getStyl... |
if (curr.getNodeType() != Node.ELEMENT_NODE) break; | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); List blockList = null; FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; TextContent textContent = null; CascadedStyle parentStyle = parent.getStyl... | |
if (isAbsolute(style)) { if (textContent != null) { inlineList.add(textContent); textContent = null; } inlineList.add(new InlineBlockContent((Element) curr, style)); continue; } if (isFloated(style)) { if (textContent != null) { inlineList.add(textContent); textContent = null; } inlineList.add(new FloatedBlockConte... | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); List blockList = null; FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; TextContent textContent = null; CascadedStyle parentStyle = parent.getStyl... | |
inlineList.add(new ReplacedContent((Element) curr, style)); continue; } if (isFloated(style)) { if (textContent != null) { inlineList.add(textContent); textContent = null; } inlineList.add(new FloatedBlockContent((Element) curr, style)); continue; } if (isInlineBlock(style)) { if (textContent != null) { inlineList... | inlineList.add(new InlineBlockContent((Element) curr, style)); continue; } | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); List blockList = null; FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; TextContent textContent = null; CascadedStyle parentStyle = parent.getStyl... |
blockList.add(new AnonymousBlockContent(parentElement, parentStyle, inlineList)); | blockList.add(resolveRunInContent(inlineList, parentElement, parentStyle)); | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); List blockList = null; FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; TextContent textContent = null; CascadedStyle parentStyle = parent.getStyl... |
} } } if (blockList == null) { | inlineList.add(new StylePop()); } } } if (isBlockContent(inlineList)) { if (blockList == null) blockList = new LinkedList(); blockList.addAll(resolveRunInContent(inlineList, parentElement, parentStyle)); inlineList = new LinkedList(); } if (blockList == null) { | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); List blockList = null; FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; TextContent textContent = null; CascadedStyle parentStyle = parent.getStyl... |
if (o instanceof RunInContent) return true; | public static boolean isBlockContent(List childContent) { if (childContent.size() == 0) return false; Object o = childContent.get(childContent.size() - 1); if (o instanceof BlockContent) return true; if (o instanceof AnonymousBlockContent) return true; return false; } | |
if (display.equals("none")) return true; | if (display.equals("inline-block")) return true; | public static boolean isInlineBlock(CascadedStyle style) { if (!style.hasProperty(CSSName.DISPLAY)) return false;//default is inline String display = style.propertyByName(CSSName.DISPLAY).getValue().getCssText(); if (display.equals("none")) return true; return false; } |
String getCatalogName(int column) throws SQLException; | String getCatalogName(int columnIndex) throws SQLException; | String getCatalogName(int column) throws SQLException; |
String getColumnClassName(int column) throws SQLException; | String getColumnClassName(int columnIndex) throws SQLException; | String getColumnClassName(int column) throws SQLException; |
int getColumnDisplaySize(int column) throws SQLException; | int getColumnDisplaySize(int columnIndex) throws SQLException; | int getColumnDisplaySize(int column) throws SQLException; |
String getColumnLabel(int column) throws SQLException; | String getColumnLabel(int columnIndex) throws SQLException; | String getColumnLabel(int column) throws SQLException; |
String getColumnName(int column) throws SQLException; | String getColumnName(int columnIndex) throws SQLException; | String getColumnName(int column) throws SQLException; |
int getColumnType(int column) throws SQLException; | int getColumnType(int columnIndex) throws SQLException; | int getColumnType(int column) throws SQLException; |
String getColumnTypeName(int column) throws SQLException; | String getColumnTypeName(int columnIndex) throws SQLException; | String getColumnTypeName(int column) throws SQLException; |
int getPrecision(int column) throws SQLException; | int getPrecision(int columnIndex) throws SQLException; | int getPrecision(int column) throws SQLException; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.