bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... | public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... | 33,667 |
public Object handleCreateConnectionDelegate(Invocation inv) throws Throwable { ClientConnectionFactoryDelegate cfd = (ClientConnectionFactoryDelegate)inv.getTargetObject(); ClientConnectionDelegate connectionDelegate = (ClientConnectionDelegate)inv.invokeNext(); connectionDelegate.init(); Stri... | public Object handleCreateConnectionDelegate(Invocation inv) throws Throwable { ClientConnectionFactoryDelegate cfd = (ClientConnectionFactoryDelegate)inv.getTargetObject(); ClientConnectionDelegate connectionDelegate = (ClientConnectionDelegate)inv.invokeNext(); connectionDelegate.init(); int ... | 33,668 |
protected String paramString() { return "JFrame"; } | protected String paramString() { return super.paramString(); } | 33,669 |
private void doRelayout(ReflowEvent evt) throws InterruptedException{ // if layout is already in progress if (root.layoutInProgress) { // Uu.p("layout already in progress. stopping for" + evt); root.layout_context.stopRendering(); while (root.layoutInProgress) { ... | private void doRelayout(ReflowEvent evt) throws InterruptedException{ // if layout is already in progress if (root.layoutInProgress) { // Uu.p("layout already in progress. stopping for" + evt); if(root.layout_context != null) { root.layout_context.stopRendering(); } w... | 33,670 |
public Dimension maximumLayoutSize(Container target) { return calcSize(target, MAX); } | public Dimension maximumLayoutSize(Container target) { return new Dimension (Integer.MAX_VALUE, Integer.MAX_VALUE); } | 33,672 |
public WorkflowDescriptor getWorkflow(String name) throws FactoryException { WfConfig c = (WfConfig) workflows.get(name); if (c == null) { throw new RuntimeException("Unknown workflow name \"" + name + "\""); } if (log.isDebugEnabled()) { log.debug("getWorkflow " + ... | public WorkflowDescriptor getWorkflow(String name) throws FactoryException { WfConfig c = (WfConfig) workflows.get(name); if (c == null) { throw new RuntimeException("Unknown workflow name \"" + name + "\""); } if (log.isDebugEnabled()) { log.debug("getWorkflow " + ... | 33,673 |
public void setConfigurationVariables(URL configurationURL) { String confURL = configurationURL.toExternalForm(); setVariable("ivy.conf.url", confURL); int slashIndex = confURL.lastIndexOf('/'); if (slashIndex != -1) { setVariable("ivy.conf.dir", confURL.substring(0, slashInde... | public void setConfigurationVariables(URL configurationURL) { String confURL = configurationURL.toExternalForm(); setVariable("ivy.conf.url", confURL); int slashIndex = confURL.lastIndexOf('/'); if (slashIndex != -1) { setVariable("ivy.conf.dir", confURL.substring(0, slashInde... | 33,674 |
public synchronized void acknowledge(Transaction tx) throws Throwable { // deals with the race condition when acknowledgment arrives before the delivery // is returned back to the sending delivery observer if (tx == null) { //TODO Why don't we set done to true if the ack is transactiona... | public synchronized void acknowledge(Transaction tx) throws Throwable { // deals with the race condition when acknowledgment arrives before the delivery // is returned back to the sending delivery observer if (tx == null) { //TODO Why don't we set done to true if the ack is transactiona... | 33,677 |
public synchronized boolean cancel() throws Throwable { // deals with the race condition when cancellation arrives before the delivery // is returned back to the sending delivery observer cancelled = true; return observer.cancel(this); } | public synchronized void cancel() throws Throwable { // deals with the race condition when cancellation arrives before the delivery // is returned back to the sending delivery observer cancelled = true; return observer.cancel(this); } | 33,678 |
public synchronized boolean cancel() throws Throwable { // deals with the race condition when cancellation arrives before the delivery // is returned back to the sending delivery observer cancelled = true; return observer.cancel(this); } | public synchronized boolean cancel() throws Throwable { // deals with the race condition when cancellation arrives before the delivery // is returned back to the sending delivery observer cancelled = true; } | 33,680 |
private static void positionVertically(LayoutContext c, Box container, LineBox current) { if (current.getChildCount() == 0) { current.height = 0; } else { LineMetrics strutLM = container.getStyle().getLineMetrics(c); VerticalAlignContext vaContext = new VerticalAlignCo... | private static void positionVertically(LayoutContext c, Box container, LineBox current) { if (current.getChildCount() == 0) { current.height = 0; } else { LineMetrics strutLM = container.getStyle().getLineMetrics(c); VerticalAlignContext vaContext = new VerticalAlignCo... | 33,682 |
private static void positionVertically(LayoutContext c, Box container, LineBox current) { if (current.getChildCount() == 0) { current.height = 0; } else { LineMetrics strutLM = container.getStyle().getLineMetrics(c); VerticalAlignContext vaContext = new VerticalAlignCo... | private static void positionVertically(LayoutContext c, Box container, LineBox current) { if (current.getChildCount() == 0) { current.height = 0; } else { LineMetrics strutLM = container.getStyle().getLineMetrics(c); VerticalAlignContext vaContext = new VerticalAlignCo... | 33,683 |
protected void executeRenderThread(RenderingContext c, Layer root) { //Uu.p("do render called"); //Uu.p("last render event = " + last_event); // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof Pri... | protected void executeRenderThread(RenderingContext c, Layer root) { //Uu.p("do render called"); //Uu.p("last render event = " + last_event); // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof Pri... | 33,686 |
public void paintPage(Graphics2D g, int page) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } RenderingContext c = newRenderingContext(getPageInfo(), (Graphics2D) g); PageInfo info = c.getPageInfo(); Borde... | public void paintPage(Graphics2D g, int page) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } RenderingContext c = newRenderingContext(getPageInfo(), (Graphics2D) g); PageInfo info = c.getPageInfo(); Borde... | 33,687 |
private void renderPagedView(RenderingContext c, Layer root) { int pageCount = getPageCount(sharedContext); setPreferredSize(new Dimension(sharedContext.getMaxWidth(), (int) (pageCount * c.getPageInfo().getContentHeight() + pageCount * c.getPageInfo().getMargins().top + ... | private void renderPagedView(RenderingContext c, Layer root) { int pageCount = getPageCount(sharedContext); setPreferredSize(new Dimension(sharedContext.getMaxWidth(), (int) (pageCount * c.getPageInfo().getContentHeight() + pageCount * c.getPageInfo().getMargins().top + ... | 33,688 |
public Enumeration getJMSXPropertyNames() throws JMSException { //TODO return new Vector().elements(); } | public Enumeration getJMSXPropertyNames() throws JMSException { //TODO return new Vector().elements(); } | 33,689 |
public Object invoke(Invocation invocation) throws Throwable { String methodName = ((MethodInvocation) invocation).getMethod().getName(); boolean isClosing = methodName.equals("closing"); boolean isClose = methodName.equals("close"); if (isClosing) { if (checkC... | public Object invoke(Invocation invocation) throws Throwable { String methodName = ((MethodInvocation) invocation).getMethod().getName(); boolean isClosing = methodName.equals("closing"); boolean isClose = methodName.equals("close"); if (isClosing) { if (checkC... | 33,692 |
public String getNodeId() { // TODO Auto-generated method stub return null; } | public int getNodeId() { // TODO Auto-generated method stub return null; } | 33,693 |
public String getNodeId() { // TODO Auto-generated method stub return null; } | public String getNodeId() { // TODO Auto-generated method stub return -1; } | 33,694 |
public java.math.BigInteger getModulus(); | BigInteger getModulus(); | 33,695 |
public void paintComponent(Graphics g) { if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } else { String te... | public void paintComponent(Graphics g) { if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } else { String te... | 33,696 |
void addAsfMessage(Message m, String receiverID, ConsumerDelegate cons) { delegate.addAsfMessage(m, receiverID, cons); } | void addAsfMessage(Message m, int consumerID, ConsumerDelegate cons) { delegate.addAsfMessage(m, receiverID, cons); } | 33,697 |
void addAsfMessage(Message m, String receiverID, ConsumerDelegate cons) { delegate.addAsfMessage(m, receiverID, cons); } | void addAsfMessage(Message m, String receiverID, ConsumerDelegate cons) { delegate.addAsfMessage(m, consumerID, cons); } | 33,698 |
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, ... | 33,699 |
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... | 33,700 |
protected void paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text) { Font f = menuItem.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); if (text != null && !text.equals("")) { if (menuItem.isEnabled()) { // Men... | protected void paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text) { Font f = menuItem.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); if (text != null && !text.equals("")) { if (menuItem.isEnabled()) { // Men... | 33,701 |
public CellView createView(GraphModel model, Object cell) { if(model.isPort(cell)) { return new CustomPortView(cell); } else if(model.isEdge(cell)) { return new CustomEdgeView(cell); } else if(cell instanceof StepCell) return new StepView(cell); else if(cell instanceof SplitCel... | public CellView createView(GraphModel model, Object cell) { if(model.isPort(cell)) { return new CustomPortView(cell); } else if(model.isEdge(cell)) { CustomEdgeView view = (CustomEdgeView)edgeMap.get(cell); if(view == null) { view = new CustomEdgeView(cell); edgeMap.put(cell ,view); } return... | 33,702 |
public CellView createView(GraphModel model, Object cell) { if(model.isPort(cell)) { return new CustomPortView(cell); } else if(model.isEdge(cell)) { return new CustomEdgeView(cell); } else if(cell instanceof StepCell) return new StepView(cell); else if(cell instanceof SplitCel... | public CellView createView(GraphModel model, Object cell) { if(model.isPort(cell)) { return new CustomPortView(cell); } else if(model.isEdge(cell)) { return new CustomEdgeView(cell); } else if(cell instanceof StepCell) return new StepView(cell); else if(cell instanceof SplitCel... | 33,703 |
public void afterCommit(boolean onePhase) { //We add the reference to the state if (trace) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } ref.incrementChannelCount(); boolean first = false; try { ... | public void afterCommit(boolean onePhase) { //We add the reference to the state if (trace) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } boolean first = false; try { synchronized ... | 33,704 |
public void afterCommit(boolean onePhase) { if (trace) { log.trace(this + " removing " + del + " after commit"); } del.getReference().decrementChannelCount(); try { acknowledgeInMemory(del); } catch (Throwable t) { ... | public void afterCommit(boolean onePhase) { if (trace) { log.trace(this + " removing " + del + " after commit"); } del.getReference().releaseMemoryReference(); try { acknowledgeInMemory(del); } catch (Throwable t) { ... | 33,706 |
public void afterCommit(boolean onePhase) { if (trace) { log.trace(this + " removing " + del + " after commit"); } del.getReference().decrementChannelCount(); try { acknowledgeInMemory(del); } catch (Throwable t) { ... | public void afterCommit(boolean onePhase) { if (trace) { log.trace(this + " removing " + del + " after commit"); } del.getReference().decrementChannelCount(); try { acknowledgeInMemory(del); } catch (Throwable t) { ... | 33,707 |
public ChannelState(Channel channel, PersistenceManager pm, boolean acceptReliableMessages, boolean recoverable, int fullSize, int pageSize, int downCacheSize) { if (pm == null) { throw new IllegalArgumentException("ChannelState requires a " + ... | public ChannelState(Channel channel, PersistenceManager pm, boolean acceptReliableMessages, boolean recoverable, int fullSize, int pageSize, int downCacheSize) { if (pm == null) { throw new IllegalArgumentException("ChannelState requires a " + ... | 33,708 |
public ChannelState(Channel channel, PersistenceManager pm, boolean acceptReliableMessages, boolean recoverable, int fullSize, int pageSize, int downCacheSize) { if (pm == null) { throw new IllegalArgumentException("ChannelState requires a " + ... | public ChannelState(Channel channel, PersistenceManager pm, boolean acceptReliableMessages, boolean recoverable, int fullSize, int pageSize, int downCacheSize) { if (pm == null) { throw new IllegalArgumentException("ChannelState requires a " + ... | 33,709 |
protected void acknowledgeInMemory(Delivery d) throws Throwable { if (d == null) { throw new IllegalArgumentException("Can't acknowledge a null delivery"); } synchronized (deliveryLock) { boolean removed = deliveries.remove(d); if (trace) ... | protected void acknowledgeInMemory(Delivery d) throws Throwable { if (d == null) { throw new IllegalArgumentException("Can't acknowledge a null delivery"); } synchronized (deliveryLock) { boolean removed = deliveries.remove(d); if (trace) ... | 33,710 |
public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (trace) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since a reliable mes... | public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (trace) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since a reliable mes... | 33,711 |
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } boolea... | protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } if (tr... | 33,712 |
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } boolea... | protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } boolea... | 33,713 |
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } boolea... | protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } boolea... | 33,714 |
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } boolea... | protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } boolea... | 33,715 |
public void cancelDelivery(Delivery del) throws Throwable { if (trace) { log.trace(this + " cancelling " + del + " in memory"); } synchronized (deliveryLock) { boolean removed = deliveries.remove(del); if (!removed) { //This is ok ... | public void cancelDelivery(Delivery del) throws Throwable { if (trace) { log.trace(this + " cancelling " + del + " in memory"); } synchronized (deliveryLock) { boolean removed = deliveries.remove(del); if (!removed) { //This is ok ... | 33,716 |
public void cancelDelivery(Delivery del) throws Throwable { if (trace) { log.trace(this + " cancelling " + del + " in memory"); } synchronized (deliveryLock) { boolean removed = deliveries.remove(del); if (!removed) { //This is ok ... | public void cancelDelivery(Delivery del) throws Throwable { if (trace) { log.trace(this + " cancelling " + del + " in memory"); } synchronized (deliveryLock) { boolean removed = deliveries.remove(del); if (!removed) { //This is ok ... | 33,717 |
protected void checkLoad() throws Throwable { if (refsInStorage > 0) { int numberLoadable = Math.min(refsInStorage, pageSize); if (messageRefs.size() == fullSize - numberLoadable) { load(numberLoadable, false); ... | protected void checkLoad() throws Throwable { if (refsInStorage > 0) { int numberLoadable = Math.min(refsInStorage, pageSize); if (messageRefs.size() <= fullSize - numberLoadable) { load(numberLoadable, false); ... | 33,718 |
protected void checkLoad() throws Throwable { if (refsInStorage > 0) { int numberLoadable = Math.min(refsInStorage, pageSize); if (messageRefs.size() == fullSize - numberLoadable) { load(numberLoadable, false); ... | protected void checkLoad() throws Throwable { if (refsInStorage > 0) { int numberLoadable = Math.min(refsInStorage, pageSize); if (messageRefs.size() == fullSize - numberLoadable) { load(numberLoadable); } ... | 33,719 |
protected void flushDownCache() throws Exception { if (trace) { log.trace(this + " flushes downcache"); } pm.addReferences(channel.getChannelID(), downCache); downCache.clear(); if (trace) { log.trace(this + " cleared downcache"); } } | protected void flushDownCache() throws Exception { if (trace) { log.trace(this + " flushes downcache"); } pm.addReferences(channel.getChannelID(), downCache); downCache.clear(); if (trace) { log.trace(this + " cleared downcache"); } } | 33,721 |
public void load() throws Exception { synchronized (refLock) { refsInStorage = pm.getNumberOfReferences(channel.getChannelID()); if (refsInStorage > 0) { load(refsInStorage, true); } } } | public void load() throws Exception { synchronized (refLock) { refsInStorage = pm.getNumberOfReferences(channel.getChannelID()); if (refsInStorage > 0) { load(refsInStorage, true); } } } | 33,722 |
public void load() throws Exception { synchronized (refLock) { refsInStorage = pm.getNumberOfReferences(channel.getChannelID()); if (refsInStorage > 0) { load(refsInStorage, true); } } } | public void load() throws Exception { synchronized (refLock) { refsInStorage = pm.getNumberOfReferences(channel.getChannelID()); if (refsInStorage > 0) { load(Math.min(refsInStorage, fullSize)); } } } | 33,723 |
public MessageReference peekFirst() throws Throwable { synchronized (refLock) { return (MessageReference)messageRefs.peekFirst(); } } | public MessageReference peekFirst() throws Throwable { synchronized (refLock) { MessageReference ref = (MessageReference)messageRefs.peekFirst(); return ref; } } | 33,724 |
public static void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { //u.p("box = " + box); //u.p("prev align = " + prev_align); Element elem = null; if (box.getNode() instanceof Element) { elem = (Element) box.getNode(); } else { elem = (E... | public static void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font, CascadedStyle firstLineStyle) { //u.p("box = " + box); //u.p("prev align = " + prev_align); Element elem = null; if (box.getNode() instanceof Element) { elem = (Element) box.getNode(); ... | 33,725 |
public static void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { //u.p("box = " + box); //u.p("prev align = " + prev_align); Element elem = null; if (box.getNode() instanceof Element) { elem = (Element) box.getNode(); } else { elem = (E... | public static void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { //u.p("box = " + box); //u.p("prev align = " + prev_align); Element elem = null; if (box.getNode() instanceof Element) { elem = (Element) box.getNode(); } else { elem = (E... | 33,726 |
public static void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { //u.p("box = " + box); //u.p("prev align = " + prev_align); Element elem = null; if (box.getNode() instanceof Element) { elem = (Element) box.getNode(); } else { elem = (E... | public static void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { //u.p("box = " + box); //u.p("prev align = " + prev_align); Element elem = null; if (box.getNode() instanceof Element) { elem = (Element) box.getNode(); } else { elem = (E... | 33,727 |
public static void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { //u.p("box = " + box); //u.p("prev align = " + prev_align); Element elem = null; if (box.getNode() instanceof Element) { elem = (Element) box.getNode(); } else { elem = (E... | public static void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { //u.p("box = " + box); //u.p("prev align = " + prev_align); Element elem = null; if (box.getNode() instanceof Element) { elem = (Element) box.getNode(); } else { elem = (E... | 33,728 |
public Class getCategory() { return PrinterStateReason.class; } | public final Class getCategory() { return PrinterStateReason.class; } | 33,729 |
public String getName() { return "printer-state-reason"; } | public final String getName() { return "printer-state-reason"; } | 33,730 |
protected Message createMessage(byte i, boolean reliable) throws Exception { HashMap coreHeaders = generateFilledMap(true); HashMap jmsProperties = generateFilledMap(false); JBossBytesMessage m = new JBossBytesMessage(i, reliable, System.current... | protected Message createMessage(byte i, boolean reliable) throws Exception { HashMap coreHeaders = generateFilledMap(true); HashMap jmsProperties = generateFilledMap(false); JBossBytesMessage m = new JBossBytesMessage(i, reliable, System.current... | 33,731 |
public void restyleTree( org.w3c.dom.Element elem ) { CalculatedStyle parent = null; // if this is the root, we will have no parent XRElement; otherwise // we will check to see if our parent was loaded. Since we expect to load // from root to leaves, we should always find... | public void restyleTree( org.w3c.dom.Element elem ) { CalculatedStyle parent = null; // if this is the root, we will have no parent XRElement; otherwise // we will check to see if our parent was loaded. Since we expect to load // from root to leaves, we should always find... | 33,732 |
protected Message getMessage() throws Exception { if (isListener) { long start = System.currentTimeMillis(); Message m = null; while (System.currentTimeMillis() - start < 1000) { if (theMessage != null) { m = theMessage; th... | protected Message getMessage() throws Exception { if (isListener) { long start = System.currentTimeMillis(); Message m = null; while (System.currentTimeMillis() - start < 1000) { if (theMessage != null) { m = theMessage; th... | 33,733 |
protected Message getMessage() throws Exception { if (isListener) { long start = System.currentTimeMillis(); Message m = null; while (System.currentTimeMillis() - start < 1000) { if (theMessage != null) { m = theMessage; th... | protected Message getMessage() throws Exception { if (isListener) { long start = System.currentTimeMillis(); Message m = null; while (System.currentTimeMillis() - start < 1000) { if (theMessage != null) { m = theMessage; th... | 33,734 |
protected Message getMessage() throws Exception { if (isListener) { long start = System.currentTimeMillis(); Message m = null; while (System.currentTimeMillis() - start < 1000) { if (theMessage != null) { m = theMessage; th... | protected Message getMessage() throws Exception { if (isListener) { long start = System.currentTimeMillis(); Message m = null; while (System.currentTimeMillis() - start < 1000) { if (theMessage != null) { m = theMessage; th... | 33,735 |
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { while (count < numMessages) { Message m = getMessa... | public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { while (count < numMessages) { Message m = getMessa... | 33,737 |
public synchronized void startService() throws Exception { super.startService(); try { postOffice = serverPeer.getTopicPostOfficeInstance(); destination.setPostOffice(postOffice); // We deploy any queues corresponding to pre-existing durable subscrip... | public synchronized void startService() throws Exception { super.startService(); try { postOffice = serverPeer.getTopicPostOfficeInstance(); destination.setPostOffice(postOffice); // We deploy any queues corresponding to pre-existing durable subscrip... | 33,739 |
public void update(Graphics g, JComponent c) { if (c.isOpaque()) { g.setColor(c.getBackground()); Rectangle clip = g.getClipBounds(); g.fillRect(0, 0, c.getWidth(), c.getHeight()); } paint(g, c); } | public void update(Graphics g, JComponent c) { if (c.isOpaque()) { g.setColor(c.getBackground()); g.fillRect(0, 0, c.getWidth(), c.getHeight()); } paint(g, c); } | 33,740 |
WorkflowDescriptor() { } | public WorkflowDescriptor() { } | 33,742 |
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 void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | 33,744 |
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 void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | 33,745 |
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 void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | 33,746 |
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 void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | 33,747 |
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 void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | 33,748 |
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 void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | 33,749 |
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 void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | 33,750 |
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 void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | 33,751 |
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall... | static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight = new_inline.height; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics ... | 33,752 |
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall... | static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall... | 33,753 |
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall... | static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall... | 33,754 |
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall... | static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall... | 33,755 |
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall... | static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall... | 33,756 |
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall... | static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall... | 33,757 |
private static void prepareBox(InlineBox prev_align, InlineTextBox inline, LayoutContext c) { if (prev_align != null && !prev_align.break_after && !inline.break_before ) { inline.x = prev_align.x + prev_align.getWidth(); } else { inline.x = 0;... | private static void prepareBox(InlineBox prev_align, InlineTextBox inline, LayoutContext c) { if (prev_align != null && !prev_align.break_after && !inline.break_before ) { inline.x = prev_align.x + prev_align.getWidth(); } else { inline.x = 0;... | 33,759 |
public void paint(Graphics g) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); super.paint(g); } | public void paint(Graphics g) { g.setColor(getBackground()); g.fillRect(clip.x, clip.y, clip.width, clip.height); g.setColor(oldColor); } super.paint(g); } | 33,760 |
void start(String containerConfig) throws Exception; | void start(String containerConfig, boolean clearDatabase) throws Exception; | 33,761 |
public AboutBox(String text, String url) { super(); u.p("starting the about box"); setTitle(text); HTMLPanel panel = new HTMLPanel(); int w = 400; int h = 500; panel.setPreferredSize(new Dimension(w,h)); scroll = new JScrollPane(panel); scroll.s... | public AboutBox(String text, String url) { super(); u.p("starting the about box"); setTitle(text); HTMLPanel panel = new HTMLPanel(); int w = 400; int h = 500; panel.setPreferredSize(new Dimension(w,h)); scroll = new JScrollPane(panel); scroll.s... | 33,762 |
public static void main(String[] args) { JFrame frame = new JFrame("About Box Test"); frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE); JButton launch = new JButton("Show About Box"); frame.getContentPane().add(launch); frame.pack(); frame.setVisible(true); ... | public static void main(String[] args) { JFrame frame = new JFrame("About Box Test"); frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE); JButton launch = new JButton("Show About Box"); frame.getContentPane().add(launch); frame.pack(); frame.setVisible(true); ... | 33,763 |
public void actionPerformed(ActionEvent evt) { AboutBox ab = new AboutBox("About Flying Saucer","demo:demos/about/index.xhtml"); ab.setVisible(true); } | public void actionPerformed(ActionEvent evt) { AboutBox ab = new AboutBox("About Flying Saucer","demo:demos/index.xhtml"); ab.setVisible(true); } | 33,764 |
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ... | public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ... | 33,766 |
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ... | public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ... | 33,767 |
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ... | public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ... | 33,768 |
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ... | public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ... | 33,769 |
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ... | public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ... | 33,770 |
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ... | public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ... | 33,771 |
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ... | public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ... | 33,772 |
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; boolean isCC = ((Boolean)mi.getArguments()[4]).booleanValue(); //Create the message handler SessionState sessState = (SessionState)((DelegateSup... | public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; boolean isCC = ((Boolean)mi.getArguments()[4]).booleanValue(); //Create the message handler SessionState sessState = (SessionState)((DelegateSup... | 33,773 |
public void setUndecorated (boolean undecorated) { if (!isDisplayable ()) throw new IllegalComponentStateException (); this.undecorated = undecorated; } | public void setUndecorated (boolean undecorated) { if (isDisplayable ()) throw new IllegalComponentStateException (); this.undecorated = undecorated; } | 33,774 |
public synchronized void start() throws Exception { if (started) { return; } if (log.isTraceEnabled()) { log.trace(this + " starting"); } mbeanServer = findMBeanServer(); transactionManager = findTransactionManager(); clientManager = new ClientManager(this); destinat... | public synchronized void start() throws Exception { if (started) { return; } log.debug(this + " starting"); mbeanServer = findMBeanServer(); transactionManager = findTransactionManager(); clientManager = new ClientManager(this); destinationManager = new DestinationMa... | 33,775 |
public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 0 || pageNo >= root.getPages().size()) { throw new IllegalArgumentException("Page " + pageN... | public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 0 || pageNo >= root.getPages().size()) { throw new IllegalArgumentException("Page " + pageN... | 33,776 |
public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 0 || pageNo >= root.getPages().size()) { throw new IllegalArgumentException("Page " + pageN... | public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 0 || pageNo >= root.getPages().size()) { throw new IllegalArgumentException("Page " + pageN... | 33,777 |
public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 0 || pageNo >= root.getPages().size()) { throw new IllegalArgumentException("Page " + pageN... | public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 0 || pageNo >= root.getPages().size()) { throw new IllegalArgumentException("Page " + pageN... | 33,778 |
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ... | private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions( c, Layer.PAGED_MODE_SCREEN, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE... | 33,779 |
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ... | private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ... | 33,780 |
public synchronized RawReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV... | public synchronized RawReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV... | 33,783 |
public synchronized RawReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV... | public synchronized RawReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV... | 33,784 |
public void write(java.io.OutputStream out) { try { AbstractDataOutput dout; if (isBigEndian()) dout = new BigEndianOutputStream(out); else dout = new LittleEndianOutputStream(out); // Write magic sequence. dout.write(MAGIC); // Write version number... | public void write(java.io.OutputStream out) { try { AbstractDataOutput dout; if (isBigEndian()) dout = new BigEndianOutputStream(out); else dout = new LittleEndianOutputStream(out); // Write magic sequence. dout.write(MAGIC); // Write version number... | 33,785 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.