bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
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); } | public void setVisible(boolean visible) { // 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); } | 29,617 |
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); } | 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(visible); } | 29,618 |
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... | 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... | 29,619 |
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... | 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... | 29,620 |
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... | 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... | 29,621 |
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... | 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... | 29,622 |
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... | 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... | 29,623 |
public void paint(RenderingContext c, int originX, int originY) { if (getMaster().getStyle().isFixed()) { positionFixedLayer(c); } if ((isRootLayer() && ! isPositionsFinalized()) || getMaster().getStyle().isFixed()) { updateAllAbsoluteLocations(originX, ori... | public void paint(RenderingContext c, int originX, int originY) { if (getMaster().getStyle().isFixed()) { positionFixedLayer(c); } if ((isRootLayer() && ! isPositionsFinalized()) || getMaster().getStyle().isFixed()) { updateAllAbsoluteLocations(originX, ori... | 29,625 |
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();... | 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();... | 29,626 |
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) { ... | 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) { ... | 29,629 |
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 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... | 29,632 |
public ConsumerDelegate createConsumerDelegate(Destination destination) throws JMSException; | public ConsumerDelegate createConsumerDelegate(Destination destination, String selector) throws JMSException; | 29,633 |
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... | 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... | 29,634 |
private void pullMessages() throws Throwable { RemoteQueueStub theQueue; int thePullSize; synchronized (pullLock) { if (pullQueue == null) { return; } theQueue = pullQueue; thePullSize = pullSize; } Transa... | private void pullMessages() throws Throwable { RemoteQueueStub theQueue; int thePullSize; synchronized (pullLock) { if (pullQueue == null) { return; } theQueue = pullQueue; thePullSize = pullSize; } Transa... | 29,635 |
private void checkClosed() { if (router == null) { throw new IllegalStateException(this + " closed"); } } | protected void checkClosed() { if (router == null) { throw new IllegalStateException(this + " closed"); } } | 29,636 |
HandleRunnable(Future result, DeliveryObserver sender, MessageReference ref, boolean persist) { this.result = result; this.sender = sender; this.ref = ref; this.persist = persist; } | public HandleRunnable(Future result, DeliveryObserver sender, MessageReference ref, boolean persist) { this.result = result; this.sender = sender; this.ref = ref; this.persist = persist; } | 29,637 |
protected long getNextStepSequence(Connection c) throws SQLException { PreparedStatement stmt = null; ResultSet rset = null; try { stmt = c.prepareStatement(_stepSequenceIncrement); stmt.executeUpdate(); 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); ... | 29,640 |
protected long getNextStepSequence(Connection c) throws SQLException { PreparedStatement stmt = null; ResultSet rset = null; try { stmt = c.prepareStatement(_stepSequenceIncrement); stmt.executeUpdate(); 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); ... | 29,641 |
public void init(Map props) throws StoreException { super.init(props); _stepSequenceIncrement = (String) props.get("step.sequence.increment"); _stepSequenceRetrieve = (String) props.get("step.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"); } | 29,642 |
protected JBossSession createSessionInternal(boolean transacted, int acknowledgeMode, boolean isXA, int type) throws JMSException { if (transacted) { acknowledgeMode = Session.SESSION_TRANSACTED; } SessionDelegate sessionDelegate = delegate... | protected JBossSession createSessionInternal(boolean transacted, int acknowledgeMode, boolean isXA, int type) throws JMSException { if (transacted) { acknowledgeMode = Session.SESSION_TRANSACTED; } SessionDelegate sessionDelegate = delegate... | 29,643 |
protected AccessibleJComboBox() { // Nothing to do here. } | public AccessibleJComboBox() { // Nothing to do here. } | 29,644 |
public boolean selectWithKeyChar(char keyChar) throws NotImplementedException { // FIXME: Need to implement return false; } | public boolean selectWithKeyChar(char keyChar) { // FIXME: Need to implement return false; } | 29,649 |
public boolean selectWithKeyChar(char keyChar) throws NotImplementedException { // FIXME: Need to implement return false; } | public boolean selectWithKeyChar(char keyChar) throws NotImplementedException { // FIXME: Need to implement if (keySelectionManager == null) { keySelectionManager = createDefaultKeySelectionManager(); } int index = keySelectionManager.selectionForKey(keyChar, getModel()); boolean retVal = false; if (index ... | 29,650 |
public void run() { try { if (trace) { log.trace("activating consumer endpoint"); } //consumerDelegate.activate(); MessageProxy m = (MessageProxy)consumerDelegate.getMessageNow(true); if (m != null) { handleMessa... | public void run() { try { //consumerDelegate.activate(); MessageProxy m = (MessageProxy)consumerDelegate.getMessageNow(true); if (m != null) { handleMessage(m); } } catch(Throwable t) ... | 29,651 |
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... | 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... | 29,652 |
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... | 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... | 29,653 |
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... | 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... | 29,654 |
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(); } | public String toString() { final StringBuffer buf = new StringBuffer(); for (int i = 0; i < tos; i++) { if (i != 0) { buf.append(','); } buf.append('('); buf.append(JvmType.toString(stack[i].getType())); buf.append(','); buf.append(stack[i].getKind()); buf.append(')'); } buf.append("TOS"); return... | 29,655 |
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(); } | 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(Item.Kind.toString(stack[i].getKind())); buf.append(')'); } buf.append("TOS"); retu... | 29,656 |
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()) { ... | 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()) { ... | 29,657 |
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; } ... | 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; } ... | 29,658 |
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 ... | 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 ... | 29,659 |
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... | 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... | 29,660 |
public EmptyAction(String name, Icon icon) { super(name, icon); } | public EmptyAction(String name, Icon icon) { this(name, "", icon); } | 29,663 |
public JRadioButtonMenuItem(Action action) { this(); setAction(action); } | public JRadioButtonMenuItem() { this(); setAction(action); } | 29,664 |
public JRadioButtonMenuItem(Action action) { this(); setAction(action); } | public JRadioButtonMenuItem(Action action) { this(); setAction(action); } | 29,665 |
public PBEKeySpec(char[] password) { this(password, null, 0, 0); } | public PBEKeySpec(char[] password) { setPassword(password); salt = null; iterationCount = 0; keyLength = 0; } | 29,667 |
public final void clearPassword() { if (password == null) return; for (int i = 0; i < password.length; i++) { password[i] = '\u0000'; } } | public final void clearPassword() if (password == null) return; for (int i = 0; i < password.length; i++) password[i] = '\u0000'; } } | 29,668 |
public final void clearPassword() { if (password == null) return; for (int i = 0; i < password.length; i++) { password[i] = '\u0000'; } } | public final void clearPassword() { if (password == null) return; for (int i = 0; i < password.length; i++) { password[i] = '\u0000'; passwordValid = false; passwordValid = false; | 29,669 |
public final char[] getPassword() { return password; } | public final char[] getPassword() { if (! passwordValid) throw new IllegalStateException("clearPassword() has been called, the " + "password is no longer valid"); return (char[]) password.clone(); } | 29,670 |
public final byte[] getSalt() { return salt; } | public final byte[] getSalt() { if (salt != null) return (byte[]) salt.clone(); return null; } | 29,671 |
public int getTransactionTimeout() throws XAException { return 0; } | public int getTransactionTimeout() throws XAException { return 600; } | 29,672 |
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 execute() throws BuildException { if (_pathid == null) { throw new BuildException("pathid is required in ivy classpath"); } ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); if (_conf.equals("*")) { ... | 29,673 |
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 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"); ... | 29,674 |
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 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"); ... | 29,675 |
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 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"); ... | 29,676 |
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); ... | public void createComponents() { xhtml = new XHTMLPanel(); Uu.p("url = " + getClass().getResource("main.xhtml")); xhtml.setDocument(getClass().getResource("main.xhtml").toExternalForm()); filelistmodel = new FileListModel(); filelist = new JList(filelistmodel); } | 29,677 |
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... | 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... | 29,678 |
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... | 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... | 29,679 |
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 ... | 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 ... | 29,680 |
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 ... | 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 ... | 29,681 |
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 =... | 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 =... | 29,682 |
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... | 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... | 29,683 |
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... | 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... | 29,684 |
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 =... | 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 =... | 29,685 |
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... | 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... | 29,687 |
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... | 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... | 29,689 |
public Object handleGetExceptionListener(Invocation invocation) throws Throwable { ConnectionState currentState = getConnectionState(invocation); currentState.setJustCreated(false); return currentState.getExceptionListener(); } | public Object handleGetExceptionListener(Invocation invocation) throws Throwable { ConnectionState currentState = getConnectionState(invocation); currentState.setJustCreated(false); return currentState.getExceptionListener(); } | 29,690 |
public Object handleGetExceptionListener(Invocation invocation) throws Throwable { ConnectionState currentState = getConnectionState(invocation); currentState.setJustCreated(false); return currentState.getExceptionListener(); } | public Object handleGetExceptionListener(Invocation invocation) throws Throwable { ConnectionState currentState = getConnectionState(invocation); currentState.setJustCreated(false); return state.getRemotingConnectionListener().getJMSExceptionListener(); } | 29,691 |
public Object handleSetExceptionListener(Invocation invocation) throws Throwable { ConnectionState currentState = getConnectionState(invocation); currentState.setJustCreated(false); MethodInvocation mi = (MethodInvocation)invocation; currentState.setExceptionListener((ExceptionListe... | public Object handleSetExceptionListener(Invocation invocation) throws Throwable { ConnectionState currentState = getConnectionState(invocation); currentState.setJustCreated(false); MethodInvocation mi = (MethodInvocation)invocation; currentState.setExceptionListener((ExceptionListe... | 29,692 |
public Object handleSetExceptionListener(Invocation invocation) throws Throwable { ConnectionState currentState = getConnectionState(invocation); currentState.setJustCreated(false); MethodInvocation mi = (MethodInvocation)invocation; currentState.setExceptionListener((ExceptionListe... | public Object handleSetExceptionListener(Invocation invocation) throws Throwable { ConnectionState currentState = getConnectionState(invocation); currentState.setJustCreated(false); MethodInvocation mi = (MethodInvocation)invocation; currentState.setExceptionListener((ExceptionListe... | 29,693 |
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"... | 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"... | 29,694 |
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"... | 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"... | 29,695 |
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... | 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.printStack... | 29,698 |
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... | public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String ejbLocation = (String) args.get(AbstractWorkflow.EJB_LOCATION); Register sessionBean = null; try { EJBLocalHome home = (EJBLocalHome) PortableRemoteObject.narrow(n... | 29,699 |
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } Set deliveries = router.handle(sender, r, tx); // must insure that all deliveries are comp... | public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (trace){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } Set deliveries = router.handle(sender, r, tx); // must insure that all deliveries are completed, otherwis... | 29,700 |
public boolean remove(Receiver receiver) { boolean removed = router.remove(receiver); if (log.isTraceEnabled()) { log.trace(this + (removed ? " removed " : " did NOT remove ") + receiver); } return removed; } | public boolean remove(Receiver receiver) { boolean removed = router.remove(receiver); if (trace) { log.trace(this + (removed ? " removed " : " did NOT remove ") + receiver); } return removed; } | 29,701 |
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height int original_height = block.height; Element elem = (Element) box.getNode(); // prepare for th... | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height Element elem = (Element) box.getNode(); // prepare for the list items int old_counter... | 29,702 |
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height int original_height = block.height; Element elem = (Element) box.getNode(); // prepare for th... | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height int original_height = block.height; Element elem = (Element) box.getNode(); // prepare for th... | 29,703 |
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height int original_height = block.height; Element elem = (Element) box.getNode(); // prepare for th... | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height int original_height = block.height; Element elem = (Element) box.getNode(); // prepare for th... | 29,704 |
public ReceiverJob(Element e) throws ConfigurationException { super(e); } | public ReceiverJob() { super(e); } | 29,705 |
public ReceiverJob(Element e) throws ConfigurationException { super(e); } | public ReceiverJob(Element e) throws ConfigurationException { } | 29,706 |
public void testRecoverableChannel_27_race() throws Throwable { if (!queue.isRecoverable()) { // we test only recoverable channels now return; } // add an NACKING receiver to the channel SimpleReceiver r = new SimpleReceiver("NackingReceiver", SimpleReceiver.ACCEPTING); ... | public void testRecoverableChannel_27_race() throws Throwable { if (!queue.isRecoverable()) { // we test only recoverable channels now return; } // add an NACKING receiver to the channel SimpleReceiver r = new SimpleReceiver("NackingReceiver", SimpleReceiver.ACCEPTING); ... | 29,707 |
public void deliver() { log.trace(""); deliveryNotification = true; } | public void deliver(Receiver receiver) { log.trace(""); deliveryNotification = true; } | 29,708 |
private void doFetchDependencies(IvyNode node, String conf) { Configuration c = node.getConfiguration(conf); if (c == null) { Message.warn("configuration not found '"+conf+"' in "+node.getResolvedId()+": ignoring"); if (node.getParent() != null) { Message.warn("it ... | private void doFetchDependencies(IvyNode node, String conf) { Configuration c = node.getConfiguration(conf); if (c == null) { Message.warn("configuration not found '"+conf+"' in "+node.getResolvedId()+": ignoring"); if (node.getParent() != null) { Message.warn("it ... | 29,709 |
private void doFetchDependencies(IvyNode node, String conf) { Configuration c = node.getConfiguration(conf); if (c == null) { Message.warn("configuration not found '"+conf+"' in "+node.getResolvedId()+": ignoring"); if (node.getParent() != null) { Message.warn("it ... | private void doFetchDependencies(IvyNode node, String conf) { Configuration c = node.getConfiguration(conf); if (c == null) { Message.warn("configuration not found '"+conf+"' in "+node.getResolvedId()+": ignoring"); if (node.getParent() != null) { Message.warn("it ... | 29,710 |
private void fetchDependencies(IvyNode node, String conf) { long start = System.currentTimeMillis(); Message.debug(node.getId()+" => resolving dependencies in "+conf); resolveConflict(node, node.getParent()); if (node.loadData(conf)) { node = node.getRealNode(); // if ... | private void fetchDependencies(IvyNode node, String conf, boolean shouldBePublic) { long start = System.currentTimeMillis(); Message.debug(node.getId()+" => resolving dependencies in "+conf); resolveConflict(node, node.getParent()); if (node.loadData(conf)) { node = no... | 29,711 |
private void fetchDependencies(IvyNode node, String conf) { long start = System.currentTimeMillis(); Message.debug(node.getId()+" => resolving dependencies in "+conf); resolveConflict(node, node.getParent()); if (node.loadData(conf)) { node = node.getRealNode(); // if ... | private void fetchDependencies(IvyNode node, String conf) { long start = System.currentTimeMillis(); Message.debug(node.getId()+" => resolving dependencies in "+conf); resolveConflict(node, node.getParent()); if (node.loadData(conf, shouldBePublic)) { node = node.getRe... | 29,712 |
private void fetchDependencies(IvyNode node, String conf) { long start = System.currentTimeMillis(); Message.debug(node.getId()+" => resolving dependencies in "+conf); resolveConflict(node, node.getParent()); if (node.loadData(conf)) { node = node.getRealNode(); // if ... | private void fetchDependencies(IvyNode node, String conf) { long start = System.currentTimeMillis(); Message.debug(node.getId()+" => resolving dependencies in "+conf); resolveConflict(node, node.getParent()); if (node.loadData(conf)) { node = node.getRealNode(); // if ... | 29,713 |
void cancelAllDeliveries() throws JMSException { synchronized (deliveryLock) { if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); } for(Iterator i = deliveries.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); try ... | void cancelAllDeliveries() throws JMSException { synchronized (deliveryLock) { if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); } for(Iterator i = deliveries.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); try ... | 29,717 |
public void cancelMessage(Serializable messageID) throws JMSException { boolean cancelled = false; Iterator iter = deliveries.iterator(); try { while (iter.hasNext()) { Delivery del = (Delivery)iter.next(); if (del.getReference().getMessageID().equ... | public void cancelMessage(Serializable messageID) throws JMSException { boolean cancelled = false; Iterator iter = deliveries.iterator(); try { while (iter.hasNext()) { Delivery del = (Delivery)iter.next(); if (del.getReference().getMessageID().equ... | 29,718 |
private static Clipboard getClipboard(JComponent component) { try { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSystemClipboardAccess(); // We may access the system clipboard. return component.getToolkit().getSystemClipboard(); ... | private static Clipboard getClipboard(JComponent component) { try { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSystemClipboardAccess(); // We may access the system clipboard. return component.getToolkit().getSystemClipboard(); ... | 29,720 |
private static Clipboard getClipboard(JComponent component) { try { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSystemClipboardAccess(); // We may access the system clipboard. return component.getToolkit().getSystemClipboard(); ... | private static Clipboard getClipboard(JComponent component) { try { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSystemClipboardAccess(); // We may access the system clipboard. return component.getToolkit().getSystemClipboard(); ... | 29,721 |
private static Clipboard getClipboard(JComponent component) { try { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSystemClipboardAccess(); // We may access the system clipboard. return component.getToolkit().getSystemClipboard(); ... | private static Clipboard getClipboard(JComponent component) { try { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSystemClipboardAccess(); // We may access the system clipboard. return component.getToolkit().getSystemClipboard(); ... | 29,722 |
protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; layoutInfo = info; // DEBU... | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; // DEBUG //dumpLayou... | 29,723 |
protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; layoutInfo = info; // DEBU... | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; layoutInfo = info; // DEBU... | 29,724 |
protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; layoutInfo = info; // DEBU... | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; layoutInfo = info; // DEBU... | 29,725 |
protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; layoutInfo = info; // DEBU... | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; layoutInfo = info; // DEBU... | 29,726 |
public void endElement(String uri, String localName, String qName) throws SAXException { if ((_organisation != null && _module != null && _revision != null) && _md.getModuleRevisionId() == null) { ModuleRevisionId mrid = ModuleRevisionId.newInstance(_organisation, _module, _revision); ... | public void endElement(String uri, String localName, String qName) throws SAXException { if ((_organisation != null && _module != null && _revision != null) && _md.getModuleRevisionId() == null) { ModuleRevisionId mrid = ModuleRevisionId.newInstance(_organisation, _module, _revision); ... | 29,728 |
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... | 29,730 |
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | 29,732 |
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | 29,733 |
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | 29,734 |
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | 29,735 |
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | 29,736 |
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | 29,737 |
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | 29,738 |
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | 29,739 |
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | 29,740 |
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | 29,741 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.