rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
if (trace) { log.trace("two phase commit rollback request received"); } tx = tr.getPreparedTx(request.getXid()); if (trace) { log.trace("rolling back " + tx); } | log.error("Exception occured", t); if (tx != null) { try { tx.rollback(); } catch (Exception e) { log.error("Failed to rollback tx", e); } } throw new MessagingTransactionRolledBackException("Transaction was rolled back.", t); } } else if (request.getRequestType() == TransactionRequest.TWO_PHASE_ROLLBACK_REQUEST) { if ... | public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... |
} } catch (Throwable t) { handleFailure(t, tx); } if (trace) { log.trace("request processed ok"); } | } catch (Throwable t) { log.error("Exception occured", t); if (tx != null) { try { tx.rollback(); } catch (Exception e) { log.error("Failed to rollback tx", e); } } throw new MessagingTransactionRolledBackException("Transaction was rolled back.", t); } } if (trace) { log.trace("Request processed ok"); } | public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... |
public Border getMarginWidth(Context c, float parentWidth) { Border result = c.getCurrentStyle().getMarginWidth(parentWidth, parentWidth, c.getCtx()); | public Border getMarginWidth() { if (marginWidth == null) { throw new NullPointerException("internal error: marginWidth is null"); } | public Border getMarginWidth(Context c, float parentWidth) { Border result = c.getCurrentStyle().getMarginWidth(parentWidth, parentWidth, c.getCtx()); if (this.marginTopOverrideSet) { result.top = (int) this.marginTopOverride; } if (this.marginBottomOverrideSet) { r... |
result.top = (int) this.marginTopOverride; | marginWidth.top = (int) this.marginTopOverride; | public Border getMarginWidth(Context c, float parentWidth) { Border result = c.getCurrentStyle().getMarginWidth(parentWidth, parentWidth, c.getCtx()); if (this.marginTopOverrideSet) { result.top = (int) this.marginTopOverride; } if (this.marginBottomOverrideSet) { r... |
result.bottom = (int) this.marginBottomOverride; | marginWidth.bottom = (int) this.marginBottomOverride; | public Border getMarginWidth(Context c, float parentWidth) { Border result = c.getCurrentStyle().getMarginWidth(parentWidth, parentWidth, c.getCtx()); if (this.marginTopOverrideSet) { result.top = (int) this.marginTopOverride; } if (this.marginBottomOverrideSet) { r... |
return result; | return marginWidth; | public Border getMarginWidth(Context c, float parentWidth) { Border result = c.getCurrentStyle().getMarginWidth(parentWidth, parentWidth, c.getCtx()); if (this.marginTopOverrideSet) { result.top = (int) this.marginTopOverride; } if (this.marginBottomOverrideSet) { r... |
throw new JBossJMSException("Failed to create connection factory delegate", e); | throw new MessagingJMSException("Failed to create connection factory delegate", e); | public synchronized int registerConnectionFactory(String clientID, JNDIBindings jndiBindings) throws Exception { int id = serverPeer.getNextObjectID(); ServerConnectionFactoryEndpoint endpoint = new ServerConnectionFactoryEndpoint(id, serverPeer... |
String registerConnectionFactory(String clientID, JNDIBindings jndiBindings) throws Exception; | int registerConnectionFactory(String clientID, JNDIBindings jndiBindings) throws Exception; | String registerConnectionFactory(String clientID, JNDIBindings jndiBindings) throws Exception; |
SimpleReceiver receiver = new SimpleReceiver("ACKINGReceiver", SimpleReceiver.ACKING, channel); | SimpleReceiver receiver = new SimpleReceiver("ACKING", SimpleReceiver.ACKING, channel2); | public void testAddReceiver_2() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); as... |
log.debug("requesting message"); | public void testAddReceiver_2() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); as... | |
new SimpleReceiver("NACKINGReceiver", SimpleReceiver.NACKING, channel); | new SimpleReceiver("NACKINGReceiver", SimpleReceiver.NACKING, channel2); | public void testAddReceiver_3() throws Throwable { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); as... |
new SimpleReceiver("ACKINGReceiver", SimpleReceiver.ACKING, channel); | new SimpleReceiver("ACKINGReceiver", SimpleReceiver.ACKING, channel2); | public void testAddReceiver_5() throws Exception { if (!channel.isRecoverable()) { // we test only recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); asser... |
new SimpleReceiver("NACKINGReceiver", SimpleReceiver.NACKING, channel); | new SimpleReceiver("NACKINGReceiver", SimpleReceiver.NACKING, channel2); | public void testAddReceiver_6() throws Throwable { if (!channel.isRecoverable()) { // we test only recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); asser... |
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException | public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionID) throws JMSException | public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { throw new IllegalStateException("This invocation should not be handled here!"); } |
return client; | return null; | protected Client getClient() { return client; } |
public void setEnabled(boolean b) | public void setEnabled(boolean enabled) | public void setEnabled(boolean b) { enable (b); } |
enable (b); | enable(enabled); | public void setEnabled(boolean b) { enable (b); } |
public void setVisible(boolean b) | public void setVisible(boolean visible) | public void setVisible(boolean b) { // Inspection by subclassing shows that Sun's implementation calls // show(boolean) which then calls show() or hide(). It is the show() // method that is overriden in subclasses like Window. show (b); } |
show (b); | show(visible); | public void setVisible(boolean b) { // Inspection by subclassing shows that Sun's implementation calls // show(boolean) which then calls show() or hide(). It is the show() // method that is overriden in subclasses like Window. show (b); } |
if (log.isTraceEnabled()) { log.trace("Using producer's default delivery mode: " + deliveryMode); } | if (trace) { log.trace("Using producer's default delivery mode: " + deliveryMode); } | public Object handleSend(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); Destination destination = (Destination)args[0]; Message m = (Message)args[1]; int deliveryMode = ((Integer)args[2]).intValu... |
if (log.isTraceEnabled()) { log.trace("Using producer's default priority: " + priority); } | if (trace) { log.trace("Using producer's default priority: " + priority); } | public Object handleSend(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); Destination destination = (Destination)args[0]; Message m = (Message)args[1]; int deliveryMode = ((Integer)args[2]).intValu... |
if (log.isTraceEnabled()) { log.trace("Using producer's default timeToLive: " + timeToLive); } | if (trace) { log.trace("Using producer's default timeToLive: " + timeToLive); } | public Object handleSend(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); Destination destination = (Destination)args[0]; Message m = (Message)args[1]; int deliveryMode = ((Integer)args[2]).intValu... |
if (log.isTraceEnabled()) { log.trace("Using producer's default destination: " + destination); } | if (trace) { log.trace("Using producer's default destination: " + destination); } | public Object handleSend(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); Destination destination = (Destination)args[0]; Message m = (Message)args[1]; int deliveryMode = ((Integer)args[2]).intValu... |
VerticalAlign.setupVerticalAlign(c, style, inline_block); | public static InlineBox generateFloatedBlockInlineBox(Context c, Content content, int avail, LineBox curr_line) { // Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents(); // copy the extents for safety c.s... | |
else if (m.getName().equals("createBytesMessage")) { return new JBossBytesMessage(); } else if (m.getName().equals("createMapMessage")) { return new JBossMapMessage(); } else if (m.getName().equals("createObjectMessage")) { JBossObjectMessage msg = new JBossObjectMessage(); if (mi.getArguments().length != 0) { msg.setO... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); if (m.getName().equals("createMessage")) { return new JBossMessage(); ... | |
paintListStyles(c, blocks); | public void paint(RenderingContext c, int originX, int originY) { if (getMaster().getStyle().isFixed()) { positionFixedLayer(c); } if ((isRootLayer() && ! isPositionsFinalized()) || getMaster().getStyle().isFixed()) { updateAllAbsoluteLocations(originX, ori... | |
paintListStyles(c, blocks); | public void paintAsLayer(RenderingContext c, Box startingPoint) { if (startingPoint.isReplaced()) { paintReplacedElement(c, startingPoint); } else { List blocks = new ArrayList(); List lines = new ArrayList(); BoxCollector collector = new BoxCollector();... | |
this.sessionEndpoint.connectionEndpoint.getServerPeer().getMessageStore().removeReference(messageID); | void acknowledge(String messageID) { try { Delivery d = (Delivery)deliveries.get(messageID); d.acknowledge(); deliveries.remove(messageID); } catch(Throwable t) { log.error("Message " + messageID + "cannot be acknowledged to the source"); } } | |
this.previousReferenceLine = this.referenceLine; | public void setReferenceLine(LineBox referenceLine) { this.referenceLine = referenceLine; } | |
log.warn("Failed to deliver the message to the client."); if (trace) { log.trace("Failed to deliver message", t); } | log.warn("Failed to deliver the message to the client. See the server log for more details"); log.debug("Failed to deliver the message to the client.", t); | public void run() { // Is there anything to deliver? // This is ok outside lock - is volatile if (clientConsumerFull) { // Do nothing return; } List list = null; synchronized (lock) { ... |
Uu.p("bfc = " + bfc); Uu.p(" insets = " + bfc.getInsets()); Uu.p("tx = " + tx); | private static int[] adjustForAbsolute(Box bx, int tx, int ty, BlockFormattingContext bfc) { if (bfc != null) { if (bx.left_set) { tx -= bx.left; } if (bx.right_set) { int off = (bfc.getWidth() - bx.width - bx.right); tx -= off; ... | |
Uu.p(box.element.getNodeName()); | public static Box findElementBox(Box box, int x, int y, BlockFormattingContext bfc) {//TODO: why is this used? //A better way? should be in a render util? if (box == null) { return null; } // go down to the next bfc if (box.getBlo... | |
if (bx.contains(x - bx.x, tty - bx.y)) { | Uu.p("x = " + x + " y = " + y + " tty = " + tty + " bx.x = " + bx.x + " bx.y = " + bx.y); Uu.p("tx = " + tx + "," + ty); if(bfc != null) { tx = x - bfc.getX(); ty = tty - bfc.getY(); } Uu.p("tx = " + tx + "," + ty); if(bx.contains(x-bx.x,tty-bx.y)) { Uu.p("found: " + bx); | public static Box findElementBox(Box box, int x, int y, BlockFormattingContext bfc) {//TODO: why is this used? //A better way? should be in a render util? if (box == null) { return null; } // go down to the next bfc if (box.getBlo... |
public ConsumerDelegate createConsumerDelegate(Destination destination) throws JMSException; | public ConsumerDelegate createConsumerDelegate(Destination destination, String selector) throws JMSException; | public ConsumerDelegate createConsumerDelegate(Destination destination) throws JMSException; |
box.getState() != Box.CHILDREN_FLUX && clip != null) { Rectangle bounds = new Rectangle(box.x, box.y, box.getWidth(), box.height); | box.getState() != Box.CHILDREN_FLUX && clip != null && !(box instanceof AnonymousBlockBox)) { Border margin = box.getMarginWidth(); Rectangle bounds = new Rectangle(box.x + margin.left, box.y + margin.top, box.getWidth() - margin.left - margin.right, box.height - margin.top - margin.bottom); | public static boolean canBeSkipped(Context c, Box box) { Shape clip = c.getGraphics().getClip(); if (!box.isChildrenExceedBounds() && Configuration.isTrue("xr.renderer.viewport-repaint", false) && box.getState() != Box.CHILDREN_FLUX && clip != null) { Rectangle... |
if (!msgs.isEmpty()) | if (containsReliable && isRecoverable()) | private void pullMessages() throws Throwable { RemoteQueueStub theQueue; int thePullSize; synchronized (pullLock) { if (pullQueue == null) { return; } theQueue = pullQueue; thePullSize = pullSize; } Transa... |
private void checkClosed() | protected void checkClosed() | private void checkClosed() { if (router == null) { throw new IllegalStateException(this + " closed"); } } |
HandleRunnable(Future result, DeliveryObserver sender, MessageReference ref, boolean persist) | public HandleRunnable(Future result, DeliveryObserver sender, MessageReference ref, boolean persist) | HandleRunnable(Future result, DeliveryObserver sender, MessageReference ref, boolean persist) { this.result = result; this.sender = sender; this.ref = ref; this.persist = persist; } |
ServerManagement.deployTopic("Topic"); | protected void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); ic = new InitialContext(ServerManagement.getJNDIEnvironment()); ServerManagement.undeployQueue("Queue"); ServerManagement.deployQueue("Queue"); } | |
ServerManagement.undeployTopic("Topic"); | public void tearDown() throws Exception { ServerManagement.undeployQueue("Queue"); ic.close(); super.tearDown(); } | |
stmt = c.prepareStatement(_stepSequenceIncrement); | stmt = c.prepareStatement(stepSequenceIncrement); | protected long getNextStepSequence(Connection c) throws SQLException { PreparedStatement stmt = null; ResultSet rset = null; try { stmt = c.prepareStatement(_stepSequenceIncrement); stmt.executeUpdate(); rset = stmt.executeQuery(_stepSequenceRetrieve); ... |
rset = stmt.executeQuery(_stepSequenceRetrieve); | rset = stmt.executeQuery(stepSequenceRetrieve); | protected long getNextStepSequence(Connection c) throws SQLException { PreparedStatement stmt = null; ResultSet rset = null; try { stmt = c.prepareStatement(_stepSequenceIncrement); stmt.executeUpdate(); rset = stmt.executeQuery(_stepSequenceRetrieve); ... |
_stepSequenceIncrement = (String) props.get("step.sequence.increment"); _stepSequenceRetrieve = (String) props.get("step.sequence.retrieve"); | stepSequenceIncrement = (String) props.get("step.sequence.increment"); stepSequenceRetrieve = (String) props.get("step.sequence.retrieve"); entrySequenceIncrement = (String) props.get("entry.sequence.increment"); entrySequenceRetrieve = (String) props.get("entry.sequence.retrieve"); | public void init(Map props) throws StoreException { super.init(props); _stepSequenceIncrement = (String) props.get("step.sequence.increment"); _stepSequenceRetrieve = (String) props.get("step.sequence.retrieve"); } |
SessionDelegate sessionDelegate = delegate.createSessionDelegate(transacted, acknowledgeMode, isXA); return new JBossSession(sessionDelegate, type); | ThreadContextClassLoaderChanger tccc = new ThreadContextClassLoaderChanger(); try { tccc.set(getClass().getClassLoader()); SessionDelegate sessionDelegate = delegate.createSessionDelegate(transacted, acknowledgeMode, isXA); return new JBossSession(sessionDelegate, type); } finally { tccc.restore(); } | protected JBossSession createSessionInternal(boolean transacted, int acknowledgeMode, boolean isXA, int type) throws JMSException { if (transacted) { acknowledgeMode = Session.SESSION_TRANSACTED; } SessionDelegate sessionDelegate = delegate... |
protected AccessibleJComboBox() | public AccessibleJComboBox() | protected AccessibleJComboBox() { // Nothing to do here. } |
throws NotImplementedException | public boolean doAccessibleAction(int value0) { return false; } | |
throws NotImplementedException | public AccessibleAction getAccessibleAction() { return null; } | |
throws NotImplementedException | public int getAccessibleActionCount() { return 0; } | |
throws NotImplementedException | public String getAccessibleActionDescription(int value0) { return null; } | |
throws NotImplementedException | public boolean selectWithKeyChar(char keyChar) throws NotImplementedException { // FIXME: Need to implement return false; } | |
return false; | if (keySelectionManager == null) { keySelectionManager = createDefaultKeySelectionManager(); } int index = keySelectionManager.selectionForKey(keyChar, getModel()); boolean retVal = false; if (index >= 0) { setSelectedIndex(index); retVal = true; } return retVal; | public boolean selectWithKeyChar(char keyChar) throws NotImplementedException { // FIXME: Need to implement return false; } |
if (trace) { log.trace("activating consumer endpoint"); } | public void run() { try { if (trace) { log.trace("activating consumer endpoint"); } //consumerDelegate.activate(); MessageProxy m = (MessageProxy)consumerDelegate.getMessageNow(true); if (m != null) { handleMessa... | |
boolean handled = buffer.offer(processMessage(md), 500); | boolean handled = buffer.offer(processMessage(md), 10000); | public synchronized void handleMessage(MessageProxy md) throws HandleCallbackException { if (trace) { log.trace("receiving message " + md + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); // Note - we do not cancel the message if the ha... |
ib.setParent(this); | public void addInlineChild(Context c, InlineBox ib) { if (ib == null) { throw new NullPointerException("trying to add null child"); } if (getChildCount() == 0 && ib instanceof InlineTextBox) {//first box on line InlineTextBox child = (InlineTextBox) ib; if (chil... | |
if (ib.isChildrenExceedBounds()) { setChildrenExceedBounds(true); } | Boxing.checkExceeds(ib); propagateChildProperties(ib); | public void addInlineChild(Context c, InlineBox ib) { if (ib == null) { throw new NullPointerException("trying to add null child"); } if (getChildCount() == 0 && ib instanceof InlineTextBox) {//first box on line InlineTextBox child = (InlineTextBox) ib; if (chil... |
buf.append(stack[i].getType()); | buf.append(JvmType.toString(stack[i].getType())); | public String toString() { final StringBuffer buf = new StringBuffer(); for (int i = 0; i < tos; i++) { if (i != 0) { buf.append(','); } buf.append('('); buf.append(stack[i].getType()); buf.append(','); buf.append(stack[i].getKind()); buf.append(')'); } buf.append("TOS"); return buf.toString(); } |
buf.append(stack[i].getKind()); | buf.append(Item.Kind.toString(stack[i].getKind())); | public String toString() { final StringBuffer buf = new StringBuffer(); for (int i = 0; i < tos; i++) { if (i != 0) { buf.append(','); } buf.append('('); buf.append(stack[i].getType()); buf.append(','); buf.append(stack[i].getKind()); buf.append(')'); } buf.append("TOS"); return buf.toString(); } |
String nextPage = null; for (Iterator iter = allDemos.keySet().iterator(); iter.hasNext();) { String s = (String) iter.next(); if (s.equals(lastDemoOpened)) { if (iter.hasNext()) { nextPage = (String) iter.next(); break; } } } if (nextPage == null) { Iterator iter = allDemos.keySet().iterator(); nextPage = (String) it... | navigateToNextDemo(); | public void actionPerformed(ActionEvent e) { String nextPage = null; for (Iterator iter = allDemos.keySet().iterator(); iter.hasNext();) { String s = (String) iter.next(); if (s.equals(lastDemoOpened)) { if (iter.hasNext()) { ... |
String priorPage = null; for (Iterator iter = allDemos.keySet().iterator(); iter.hasNext();) { String s = (String) iter.next(); if (s.equals(lastDemoOpened)) { break; } priorPage = s; } if (priorPage == null) { Iterator iter = allDemos.keySet().iterator(); while (iter.hasNext()) { priorPage = (String) iter.next(); } }... | navigateToPriorDemo(); | public void actionPerformed(ActionEvent e) { String priorPage = null; for (Iterator iter = allDemos.keySet().iterator(); iter.hasNext();) { String s = (String) iter.next(); if (s.equals(lastDemoOpened)) { break; } ... |
LinkListener ll = new LinkListener(root.panel.view); | LinkListener ll = new LinkListener(root.panel.view) { public void linkClicked(String uri) { if (uri.startsWith("demoNav")) { String pg = uri.split(":")[1]; if (pg.equals("back")) { navigateToPriorDemo(); } else { navigateToNextDemo(); } } else { super.linkClicked(uri); } } }; | public void createActions() { if (Configuration.isTrue("xr.use.listeners", true)) { SelectionMouseListener ma = new SelectionMouseListener(); root.panel.view.addMouseListener(ma); root.panel.view.addMouseMotionListener(ma); // XXX Is this necessary? Basically ... |
allDemos.put("Splash Screen", "demo:demos/splash/splash.html"); allDemos.put("Formatted Text", "demo:demos/new/formattedtext.xhtml"); allDemos.put("Box Model and Backgrounds", "demo:demos/new/box.xhtml"); allDemos.put("CSS 2 Border Support", "demo:demos/new/borders.xhtml"); allDemos.put("Positioned Content", "demo:demo... | populateDemoList(); | public void createLayout() { file.add(root.actions.open_file); file.add(root.actions.print); file.add(new JSeparator()); file.add(root.actions.quit); add(file); edit.add(root.actions.cut); edit.add(root.actions.copy); edit.add(root.actions.paste); add(e... |
help.add(root.actions.usersManual); help.add(new JSeparator()); help.add(root.actions.aboutPage); add(help); | public void createLayout() { file.add(root.actions.open_file); file.add(root.actions.print); file.add(new JSeparator()); file.add(root.actions.quit); add(file); edit.add(root.actions.cut); edit.add(root.actions.copy); edit.add(root.actions.paste); add(e... | |
help = new JMenu("Help"); help.setMnemonic('H'); | public void init() { file = new JMenu("File"); file.setMnemonic('F'); debug = new JMenu("Debug"); debug.setMnemonic('B'); demos = new JMenu("Demos"); demos.setMnemonic('D'); edit = new JMenu("Edit"); edit.setMnemonic('E'); view = new JMenu("View"); ... | |
super(name, icon); | this(name, "", icon); | public EmptyAction(String name, Icon icon) { super(name, icon); } |
public JRadioButtonMenuItem(Action action) | public JRadioButtonMenuItem() | public JRadioButtonMenuItem(Action action) { this(); setAction(action); } |
this(); setAction(action); | this(null, null); | public JRadioButtonMenuItem(Action action) { this(); setAction(action); } |
if (this.isRedelivered()) { m.setRedelivered(true); } | public Message getMessage() { Message m = (Message)softReference.get(); if (m == null) { m = ms.retrieve(this); refreshReference(m); } return m; } | |
this(password, null, 0, 0); | setPassword(password); salt = null; iterationCount = 0; keyLength = 0; | public PBEKeySpec(char[] password) { this(password, null, 0, 0); } |
{ | public final void clearPassword() { if (password == null) return; for (int i = 0; i < password.length; i++) { password[i] = '\u0000'; } } | |
} | passwordValid = false; | public final void clearPassword() { if (password == null) return; for (int i = 0; i < password.length; i++) { password[i] = '\u0000'; } } |
return password; | if (! passwordValid) throw new IllegalStateException("clearPassword() has been called, the " + "password is no longer valid"); return (char[]) password.clone(); | public final char[] getPassword() { return password; } |
return salt; | if (salt != null) return (byte[]) salt.clone(); return null; | public final byte[] getSalt() { return salt; } |
return 0; | return 600; | public int getTransactionTimeout() throws XAException { return 0; } |
Ivy ivy = getIvyInstance(); | public void execute() throws BuildException { Ivy ivy = getIvyInstance(); if (_pathid == null) { throw new BuildException("pathid is required in ivy classpath"); } ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); ... | |
ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); if (_conf.equals("*")) { _conf = getProperty(ivy, "ivy.resolved.configurations"); } _organisation = getProperty(_organisation, ivy, "ivy.organisation"); _module = getProperty(_module, ivy, "ivy.module"); if (_cache == nul... | public void execute() throws BuildException { Ivy ivy = getIvyInstance(); if (_pathid == null) { throw new BuildException("pathid is required in ivy classpath"); } ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); ... | |
XmlReportParser parser = new XmlReportParser(); | public void execute() throws BuildException { Ivy ivy = getIvyInstance(); if (_pathid == null) { throw new BuildException("pathid is required in ivy classpath"); } ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); ... | |
String[] confs = splitConfs(_conf); Collection all = new LinkedHashSet(); for (int i = 0; i < confs.length; i++) { Artifact[] artifacts = parser.getArtifacts(new ModuleId(_organisation, _module), confs[i], _cache); all.addAll(Arrays.asList(artifacts)); } for (Iterator iter = all.iterator(); iter.hasNext();) { Artifact ... | for (Iterator iter = getPaths().iterator(); iter.hasNext();) { String p = (String)iter.next(); path.createPathElement().setLocation(new File(getCache(), p)); | public void execute() throws BuildException { Ivy ivy = getIvyInstance(); if (_pathid == null) { throw new BuildException("pathid is required in ivy classpath"); } ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); ... |
public void createComponents() throws Exception { | public void createComponents() { | public void createComponents() throws Exception { xhtml = new XHTMLPanel(); Uu.p("url = " + getClass().getResource("main.xhtml")); xhtml.setDocument(getClass().getResource("main.xhtml").toExternalForm()); filelistmodel = new FileListModel(); filelist = new JList(filelistmodel); ... |
WeakReference control = new WeakReference(ref); ref = null; System.gc(); assertNull(control.get()); | ref.releaseReference(); | public void testNonRecoverableMessageStore_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non... |
refs = null; System.gc(); | public void testNonRecoverableMessageStore_2() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(i... | |
WeakReference control = new WeakReference(ref); ref = null; System.gc(); | ref.releaseReference(); | public void testRecoverableMessageStore_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable ... |
assertNull(control.get()); | public void testRecoverableMessageStore_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable ... | |
refs = null; System.gc(); | public void testRecoverableMessageStore_2() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =... | |
WeakReference control = new WeakReference(ref); ref = null; System.gc(); | ref.releaseReference(); | public void testRecoverableMessageStore_3() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable m... |
assertNull(control.get()); | public void testRecoverableMessageStore_3() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable m... | |
refs = null; System.gc(); | public void testRecoverableMessageStore_4() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =... | |
id = new Integer(state.getDelegate().getID()); | private ConnectionState getConnectionState(Invocation invocation) { if (state==null) { ClientConnectionDelegate currentDelegate = ((ClientConnectionDelegate)invocation.getTargetObject()); state = (ConnectionState)currentDelegate.getState(); } return state; ... | |
ConnectionState currentState = getConnectionState(invocation); Client client = getConnectionState(invocation).getRemotingConnection().getInvokingClient(); if (currentState.isListenerAdded()) { client.removeConnectionListener(this); } | public Object handleClose(Invocation invocation) throws Throwable { Object ret = invocation.invokeNext(); // Remove any exception listener ConnectionState currentState = getConnectionState(invocation); Client client = getConnectionState(invocation).getRemotingConnection().getInvokin... | |
JMSRemotingConnection remotingConnection = state.getRemotingConnection(); ConsolidatedRemotingConnectionListener listener = state.getRemotingConnectionListener(); listener.clear(); Client client = remotingConnection.getInvokingClient(); boolean removed = client.removeConnectionListener(listener); log.debug(this + (... | public Object handleClose(Invocation invocation) throws Throwable { Object ret = invocation.invokeNext(); // Remove any exception listener ConnectionState currentState = getConnectionState(invocation); Client client = getConnectionState(invocation).getRemotingConnection().getInvokin... | |
state.getRemotingConnection().stop(); | remotingConnection.stop(); | public Object handleClose(Invocation invocation) throws Throwable { Object ret = invocation.invokeNext(); // Remove any exception listener ConnectionState currentState = getConnectionState(invocation); Client client = getConnectionState(invocation).getRemotingConnection().getInvokin... |
ConnectionState currentState = getConnectionState(invocation); currentState.setJustCreated(false); | ConnectionState state = getConnectionState(invocation); state.setJustCreated(false); | public Object handleGetExceptionListener(Invocation invocation) throws Throwable { ConnectionState currentState = getConnectionState(invocation); currentState.setJustCreated(false); return currentState.getExceptionListener(); } |
return currentState.getExceptionListener(); | return state.getRemotingConnectionListener().getJMSExceptionListener(); | public Object handleGetExceptionListener(Invocation invocation) throws Throwable { ConnectionState currentState = getConnectionState(invocation); currentState.setJustCreated(false); return currentState.getExceptionListener(); } |
ConnectionState currentState = getConnectionState(invocation); currentState.setJustCreated(false); | ConnectionState state = getConnectionState(invocation); state.setJustCreated(false); | public Object handleSetExceptionListener(Invocation invocation) throws Throwable { ConnectionState currentState = getConnectionState(invocation); currentState.setJustCreated(false); MethodInvocation mi = (MethodInvocation)invocation; currentState.setExceptionListener((ExceptionListe... |
currentState.setExceptionListener((ExceptionListener)mi.getArguments()[0]); Client client = getConnectionState(invocation).getRemotingConnection().getInvokingClient(); if (client == null) { throw new java.lang.IllegalStateException("Cannot find remoting client"); } if (currentState.getExceptionListener() != null) { ... | ExceptionListener exceptionListener = (ExceptionListener)mi.getArguments()[0]; state.getRemotingConnectionListener().addJMSExceptionListener(exceptionListener); | public Object handleSetExceptionListener(Invocation invocation) throws Throwable { ConnectionState currentState = getConnectionState(invocation); currentState.setJustCreated(false); MethodInvocation mi = (MethodInvocation)invocation; currentState.setExceptionListener((ExceptionListe... |
NodeList args = condition.getElementsByTagName("arg"); | List args = XMLUtil.getChildElements(condition, "arg"); | protected void init(Element condition) { type = condition.getAttribute("type"); try { setId(Integer.parseInt(condition.getAttribute("id"))); } catch (NumberFormatException e) { } String n = condition.getAttribute("negate"); if ("true".equalsIgnoreCase(n) || "yes"... |
for (int l = 0; l < args.getLength(); l++) { Element arg = (Element) args.item(l); | for (int l = 0; l < args.size(); l++) { Element arg = (Element) args.get(l); | protected void init(Element condition) { type = condition.getAttribute("type"); try { setId(Integer.parseInt(condition.getAttribute("id"))); } catch (NumberFormatException e) { } String n = condition.getAttribute("negate"); if ("true".equalsIgnoreCase(n) || "yes"... |
List children = XMLUtil.getChildElements(condition, "condition"); for (int l = 0; l < children.size(); l++) { Element c = (Element) children.get(l); ConditionDescriptor nestedCondition = new ConditionDescriptor(c); nestedCondition.setParent(this); nestedConditions.add(nestedCondition); } | protected void init(Element condition) { type = condition.getAttribute("type"); try { setId(Integer.parseInt(condition.getAttribute("id"))); } catch (NumberFormatException e) { } String n = condition.getAttribute("negate"); if ("true".equalsIgnoreCase(n) || "yes"... | |
for (int i = 0; i < nestedConditions.size(); i++) { ConditionDescriptor condition = (ConditionDescriptor) nestedConditions.get(i); condition.writeXML(out, indent); } | public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<condition " + (hasId() ? ("id=\"" + getId() + "\" ") : "") + (((name != null) && (name.length() > 0)) ? ("name=\"" + getName() + "\" ") : "") + (negate ? ("negate=\"true\" ") : "") + "type=\"" + type ... | |
if (uri.startsWith("file: | if (uri.startsWith("file:")) { | public InputStream getInputStream(String uri) { InputStream is = null; uri = resolveURI(uri); if (uri.startsWith("file://")) { File file = null; try { file = new File(new URI(uri)); } catch (URISyntaxException e) { e.printStackTrace... |
EJBHome home = (EJBHome) PortableRemoteObject.narrow(new InitialContext().lookup(ejbLocation), javax.ejb.EJBHome.class); | EJBLocalHome home = (EJBLocalHome) PortableRemoteObject.narrow(new InitialContext().lookup(ejbLocation), EJBLocalHome.class); | public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String ejbLocation = (String) args.get(AbstractWorkflow.EJB_LOCATION); Register sessionBean = null; try { EJBHome home = (EJBHome) PortableRemoteObject.narrow(new Initial... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.