bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public synchronized void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); //Note - ... | public synchronized void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); //Note - ... | 28,815 |
public synchronized void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); //Note - ... | public synchronized void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); //Note - ... | 28,816 |
public synchronized void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); //Note - ... | public synchronized void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); //Note - ... | 28,817 |
public synchronized void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); //Note - ... | public synchronized void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); //Note - ... | 28,818 |
protected Message processMessage(Message m) { //We create a thin delegate to the message - which prevents it having to be //unnecessarily copied MessageDelegate del = JBossMessage.createThinDelegate((JBossMessage)m); //if this is the handler for a connection consumer we don't want to set ... | protected Message processMessage(MessageDelegate del) { //We create a thin delegate to the message - which prevents it having to be //unnecessarily copied MessageDelegate del = JBossMessage.createThinDelegate((JBossMessage)m); //if this is the handler for a connection consumer we don't wa... | 28,819 |
protected Message processMessage(Message m) { //We create a thin delegate to the message - which prevents it having to be //unnecessarily copied MessageDelegate del = JBossMessage.createThinDelegate((JBossMessage)m); //if this is the handler for a connection consumer we don't want to set ... | protected Message processMessage(Message m) { //We create a thin delegate to the message - which prevents it having to be //unnecessarily copied //if this is the handler for a connection consumer we don't want to set the session delegate //since this is only used for client acknowle... | 28,820 |
public void read(DataInputStream in) throws Exception { consumerID = in.readInt(); int numMessages = in.readInt(); msgs = new ArrayList(numMessages); for (int i = 0; i < numMessages; i++) { byte type = in.readByte(); int deliveryCount = in.readInt... | public void read(DataInputStream in) throws Exception { serverId = in.readInt(); consumerId = in.readInt(); int numMessages = in.readInt(); msgs = new ArrayList(numMessages); for (int i = 0; i < numMessages; i++) { byte type = in.readByte(); int ... | 28,821 |
public void write(DataOutputStream out) throws Exception { out.writeInt(consumerID); out.writeInt(msgs.size()); Iterator iter = msgs.iterator(); while (iter.hasNext()) { MessageProxy mp = (MessageProxy)iter.next(); out.writeByte(mp.getMessage().ge... | public void write(DataOutputStream out) throws Exception { out.writeInt(serverId); out.writeInt(consumerId); out.writeInt(msgs.size()); Iterator iter = msgs.iterator(); while (iter.hasNext()) { MessageProxy mp = (MessageProxy)iter.next(); out.wri... | 28,822 |
private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = c.getCurrentStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) { Tex... | private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = c.getCurrentStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) { Tex... | 28,823 |
public static void paintLeftPadding(Context c, LineBox line, InlineBox inline, int padX, Border margin, Border border, Border padding) { LineMetrics lm = FontUtil.getLineMetrics(c, inline); for (Iterator i = c.getInlineBorders().iterator(); i.hasNext();) { ((InlineBorder) i.next()).paint(c,... | public static void paintLeftPadding(Context c, LineBox line, InlineBox inline, int padX, Border margin, Border border, Border padding) { LineMetrics lm = FontUtil.getLineMetrics(c, inline); for (Iterator i = c.getInlineBorders().iterator(); i.hasNext();) { ((InlineBorder) i.next()).paint(c,... | 28,824 |
public static void paintRightPadding(Context c, LineBox line, InlineBox inline, int padX, Border margin, Border border, Border padding) { InlineBorder ib = (InlineBorder) c.getInlineBorders().removeLast(); for (Iterator i = c.getInlineBorders().iterator(); i.hasNext();) { ((InlineBorder) i.... | public static void paintRightPadding(Context c, LineBox line, InlineBox inline, int padX, Border border, Border padding) { InlineBorder ib = (InlineBorder) c.getInlineBorders().removeLast(); for (Iterator i = c.getInlineBorders().iterator(); i.hasNext();) { ((InlineBorder) i.next()).paint(c... | 28,825 |
private JarFile getJar(URL pluginUrl, byte[] pluginJarData) throws IOException { if (pluginJar == null) { final String protocol = (pluginUrl != null) ? pluginUrl.getProtocol() : ""; if (protocol.equals("file")) { pluginJar = new JarFile(pluginUrl.getFile()); } else if (OsUtils.isJNode()) { pluginJar = new... | private JarFile getJar(URL pluginUrl, byte[] pluginJarData) throws IOException { if (pluginJar == null) { final String protocol = (pluginUrl != null) ? pluginUrl.getProtocol() : ""; if (protocol.equals("file")) { pluginJar = new JarFile(pluginUrl.getFile()); } else if (OsUtils.isJNode()) { pluginJar = new... | 28,826 |
private JarFile getJar(URL pluginUrl, byte[] pluginJarData) throws IOException { if (pluginJar == null) { final String protocol = (pluginUrl != null) ? pluginUrl.getProtocol() : ""; if (protocol.equals("file")) { pluginJar = new JarFile(pluginUrl.getFile()); } else if (OsUtils.isJNode()) { pluginJar = new... | private JarFile getJar(URL pluginUrl, byte[] pluginJarData) throws IOException { if (pluginJar == null) { final String protocol = (pluginUrl != null) ? pluginUrl.getProtocol() : ""; if (protocol.equals("file")) { pluginJar = new JarFile(pluginUrl.getFile()); } else if (OsUtils.isJNode()) { pluginJar = new... | 28,827 |
public void paint(Graphics g) { super.paint(g); Rectangle bounds = getBounds(); int size = bounds.height / 4; int x = (bounds.width - size) / 2; int y = (bounds.height - size) / 2; ButtonModel m = getModel(); if (m.isArmed()) { x++; y++; } paintTriangle(g, x, y, size, ... | public void paint(Graphics g) { super.paint(g); Rectangle bounds = getBounds(); int size = bounds.height / 4; int x = (bounds.width - size) / 2; int y = (bounds.height - size) / 2; ButtonModel m = getModel(); if (m.isArmed()) { x++; y++; } paintTriangle(g, x, y, size, ... | 28,829 |
private void closeConnection(Connection con) throws JMSException { try { con.close(); }catch(JMSException jmse) { log("Could not close connection " + con +" exception was " +jmse); throw jmse; } } | private void closeConnection(Connection con) throws JMSException { try { if (con != null) { con.close(); } }catch(JMSException jmse) { log("Could not close connection " + con +" exception was " +jmse); throw jmse; } } | 28,830 |
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | 28,831 |
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | 28,832 |
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | 28,833 |
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | 28,834 |
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | 28,835 |
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | 28,836 |
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | 28,837 |
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | 28,838 |
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | 28,839 |
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... | 28,840 |
public PermissionDescriptor(Element permission) { init(permission); } | public PermissionDescriptor(Element permission) { init(permission); } | 28,841 |
private static void drawText(RenderingContext c, BlockBox box, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(box.list_count).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LATI... | private static void drawText(RenderingContext c, BlockBox box, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(box.list_count).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LATI... | 28,842 |
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { log.debug("creating session " + (transacted ? "transacted" :"non tr... | public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { log.debug("creating session " + (transacted ? "transacted" :"non tr... | 28,843 |
private void processTransaction(ClientTransaction txState, Transaction tx) throws Throwable { if (trace) { log.trace("processing transaction"); } synchronized (sessions) { for (Iterator i = txState.getSessionStates().iterator(); i.hasNext(); ) { SessionTxSta... | private void processTransaction(ClientTransaction txState, Transaction tx) throws Throwable { if (trace) { log.trace("processing transaction"); } synchronized (sessions) { for (Iterator i = txState.getSessionStates().iterator(); i.hasNext(); ) { SessionTxSta... | 28,844 |
private String queryComparison(WorkflowQuery query) { Object value = query.getValue(); int operator = query.getOperator(); int field = query.getField(); //int type = query.getType(); String oper; switch (operator) { case WorkflowQuery.EQUALS: oper = " = ";... | private String queryComparison(WorkflowQuery query) { Object value = query.getValue(); int operator = query.getOperator(); int field = query.getField(); //int type = query.getType(); String oper; switch (operator) { case WorkflowQuery.EQUALS: oper = " = ";... | 28,846 |
private String queryComparison(WorkflowQuery query) { Object value = query.getValue(); int operator = query.getOperator(); int field = query.getField(); //int type = query.getType(); String oper; switch (operator) { case WorkflowQuery.EQUALS: oper = " = ";... | private String queryComparison(WorkflowQuery query) { Object value = query.getValue(); int operator = query.getOperator(); int field = query.getField(); //int type = query.getType(); String oper; switch (operator) { case WorkflowQuery.EQUALS: oper = " = ";... | 28,847 |
public boolean cancel(Delivery d) throws Throwable { if (log.isTraceEnabled()) { log.trace("cancel " + d); } state.cancel(d); if (log.isTraceEnabled()) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); } return true; } | public void cancel(Delivery d) throws Throwable { if (log.isTraceEnabled()) { log.trace("cancel " + d); } state.cancel(d); if (log.isTraceEnabled()) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); } return true; } | 28,848 |
public boolean cancel(Delivery d) throws Throwable { if (log.isTraceEnabled()) { log.trace("cancel " + d); } state.cancel(d); if (log.isTraceEnabled()) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); } return true; } | public boolean cancel(Delivery d) throws Throwable { if (log.isTraceEnabled()) { log.trace("cancel " + d); } state.cancelDelivery(d); if (log.isTraceEnabled()) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); } return true; } | 28,849 |
public boolean cancel(Delivery d) throws Throwable { if (log.isTraceEnabled()) { log.trace("cancel " + d); } state.cancel(d); if (log.isTraceEnabled()) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); } return true; } | public boolean cancel(Delivery d) throws Throwable { if (log.isTraceEnabled()) { log.trace("cancel " + d); } state.cancel(d); if (log.isTraceEnabled()) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); } } | 28,850 |
public boolean deliver(Receiver r) { if (log.isTraceEnabled()){ log.trace(r != null ? r + " requested delivery on " + this : "generic delivery requested on " + this); } return deliver(this, r); } | public boolean deliver(Receiver r) { if (log.isTraceEnabled()){ log.trace(r != null ? r + " requested delivery on " + this : "generic delivery requested on " + this); } checkClosed(); try { return deliver(this, r); } catch (Throwable t) { log.error("Failed to deliver message", t); return false; } } | 28,851 |
private Delivery getDelivery(Receiver receiver, MessageReference ref) { Delivery d = null; if (receiver == null) { Set deliveries = router.handle(this, ref, null); if (deliveries.isEmpty()) { return null; } //Sani... | private Delivery getDelivery(Receiver receiver, MessageReference ref) { Delivery d = null; if (receiver == null) { Set deliveries = router.handle(this, ref, null); if (deliveries.isEmpty()) { return null; } //Sani... | 28,852 |
private Delivery getDelivery(Receiver receiver, MessageReference ref) { Delivery d = null; if (receiver == null) { Set deliveries = router.handle(this, ref, null); if (deliveries.isEmpty()) { return null; } //Sani... | private Delivery getDelivery(Receiver receiver, MessageReference ref) { Delivery d = null; if (receiver == null) { Set deliveries = router.handle(this, ref, null); if (deliveries.isEmpty()) { return null; } //Sani... | 28,853 |
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ref = ref(r); if (... | public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { checkClosed(); if (r == null) { checkClosed(); return null; } if (log.isTraceEnabled()){ checkClosed(); log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } ... | 28,854 |
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ref = ref(r); if (... | public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ref = ref(r); if (... | 28,855 |
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ref = ref(r); if (... | public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ref = ref(r); if (... | 28,856 |
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ref = ref(r); if (... | public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ref = ref(r); if (... | 28,857 |
void addAsfMessage(MessageProxy m, int consumerID, long channelID, int maxDeliveries) { delegate.addAsfMessage(m, consumerID, channelID, maxDeliveries); } | void addAsfMessage(MessageProxy m, int consumerID, long channelID, int maxDeliveries, SessionDelegate connectionConsumerSession) { delegate.addAsfMessage(m, consumerID, channelID, maxDeliveries); } | 28,858 |
void addAsfMessage(MessageProxy m, int consumerID, long channelID, int maxDeliveries) { delegate.addAsfMessage(m, consumerID, channelID, maxDeliveries); } | void addAsfMessage(MessageProxy m, int consumerID, long channelID, int maxDeliveries) { delegate.addAsfMessage(m, consumerID, channelID, maxDeliveries, connectionConsumerSession); } | 28,859 |
private void derive(CascadedStyle matched) { if (matched == null) { return; }//nothing to derive Iterator mProps = matched.getMatchedPropertyDeclarations(); int i = 0; while (mProps.hasNext()) { PropertyDeclaration pd = (PropertyDeclaration) mProps.next(); ... | private void derive(CascadedStyle matched) { if (matched == null) { return; }//nothing to derive Iterator mProps = matched.getCascadedPropertyDeclarations(); int i = 0; while (mProps.hasNext()) { PropertyDeclaration pd = (PropertyDeclaration) mProps.next(); ... | 28,860 |
public void floatBox(LayoutContext c, Layer layer, BlockFormattingContext bfc, FloatedBlockBox box) { box.y = (int) c.getFloatingY(); if (box.getStyle().isFloatedLeft()) { position(c, bfc, box, LEFT); save(box, layer, bfc, LEFT); } else if (box.getStyle().isFloatedRight())... | public void floatBox(LayoutContext c, Layer layer, BlockFormattingContext bfc, FloatedBlockBox box) { if (box.getStyle().isFloatedLeft()) { position(c, bfc, box, LEFT); save(box, layer, bfc, LEFT); } else if (box.getStyle().isFloatedRight()) { position(c, bfc, ... | 28,861 |
public void floatPending(LayoutContext c, Layer layer, BlockFormattingContext bfc, List pendingFloats) { if (pendingFloats.size() > 0) { for (int i = 0; i < pendingFloats.size(); i++) { if (i != 0) { c.setFloatingY(0d); } FloatedBlock... | public void floatPending(LayoutContext c, Layer layer, BlockFormattingContext bfc, List pendingFloats) { if (pendingFloats.size() > 0) { for (int i = 0; i < pendingFloats.size(); i++) { if (i != 0) { c.setFloatingY(0d); } FloatedBlock... | 28,862 |
public void removeFloat(FloatedBlockBox floater) { for (Iterator i = leftFloats.iterator(); i.hasNext();) { BoxOffset boxOffset = (BoxOffset) i.next(); if (boxOffset.getBox().equals(floater)) { i.remove(); } } for (Iterator i = rightFloats.iterato... | public void removeFloat(FloatedBlockBox floater) { for (Iterator i = leftFloats.iterator(); i.hasNext();) { BoxOffset boxOffset = (BoxOffset) i.next(); if (boxOffset.getBox().equals(floater)) { i.remove(); } } for (Iterator i = rightFloats.iterato... | 28,863 |
private static void drawGlyph(RenderingContext c, BlockBox box, CalculatedStyle style, IdentValue listStyle) { // save the old AntiAliasing setting, then force it on Object aa_key = c.getGraphics().getRenderingHint(RenderingHints.KEY_ANTIALIASING); c.getGraphics().setRenderingHint(R... | private static void drawGlyph(RenderingContext c, BlockBox box, CalculatedStyle style, IdentValue listStyle) { // save the old AntiAliasing setting, then force it on Object aa_key = c.getGraphics().getRenderingHint(RenderingHints.KEY_ANTIALIASING); c.getGraphics().setRenderingHint(R... | 28,866 |
public boolean loadData(String conf, boolean shouldBePublic) { boolean loaded = false; if (!isEvicted(_rootModuleConf) && (hasConfigurationsToLoad() || !isRootModuleConfLoaded()) && !hasProblem()) { markRootModuleConfLoaded(); if (_md == null) { DependencyResolver ... | public boolean loadData(String conf, boolean shouldBePublic) { boolean loaded = false; if (!isEvicted(_rootModuleConf) && (hasConfigurationsToLoad() || !isRootModuleConfLoaded()) && !hasProblem()) { markRootModuleConfLoaded(); if (_md == null) { DependencyResolver ... | 28,867 |
public void propagateChildProperties(Box child) { if (child.isChildrenExceedBounds()) { setChildrenExceedBounds(true); } if (child.isFixedDescendant()) { setFixedDescendant(true); } } | public void propagateChildProperties(Box child) { if (child.isChildrenExceedBounds()) { setChildrenExceedBounds(true); } if (child.isFixedDescendant()) { setFixedDescendant(true); } } | 28,868 |
public void close() throws JMSException { if (log.isTraceEnabled()) { log.trace("In ServerConnectionDelegate.close()"); } DestinationManagerImpl dm = serverPeer.getDestinationManager(); Iterator iter = this.temporaryDestinations.iterator(); while (iter.hasNext()) { dm.removeT... | public void close() throws JMSException { if (log.isTraceEnabled()) { log.trace("close()"); } DestinationManagerImpl dm = serverPeer.getDestinationManager(); Iterator iter = this.temporaryDestinations.iterator(); while (iter.hasNext()) { dm.removeTemporaryDestination((JBossDe... | 28,869 |
public void closing() throws JMSException { log.trace("In ServerConnectionDelegate.closing()"); //This currently does nothing } | public void closing() throws JMSException { log.trace("closing (noop)"); //This currently does nothing } | 28,870 |
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) { if (log.isTraceEnabled()) { log.trace("creating session, transacted: " + transacted + " ackMode: " + acknowledgmentMode + " Xa:" + isXA); } // create the dynami... | public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) { if (log.isTraceEnabled()) { log.trace("creating session, transacted: " + transacted + " ackMode: " + acknowledgmentMode + " Xa:" + isXA); } // create the dynami... | 28,871 |
protected Message createMessage(int i) throws Exception { Map coreHeaders = generateFilledMap(true); Map jmsProperties = generateFilledMap(false); JBossMapMessage m = new JBossMapMessage(new GUID().toString(), true, System.currentTimeMilli... | protected Message createMessage(byte i) throws Exception { Map coreHeaders = generateFilledMap(true); Map jmsProperties = generateFilledMap(false); JBossMapMessage m = new JBossMapMessage(new GUID().toString(), true, System.currentTimeMill... | 28,872 |
protected Message createMessage(int i) throws Exception { Map coreHeaders = generateFilledMap(true); Map jmsProperties = generateFilledMap(false); JBossMapMessage m = new JBossMapMessage(new GUID().toString(), true, System.currentTimeMilli... | protected Message createMessage(int i) throws Exception { Map coreHeaders = generateFilledMap(true); Map jmsProperties = generateFilledMap(false); JBossMapMessage m = new JBossMapMessage(randInt().intValue(), true, System.currentTimeMillis... | 28,873 |
public void actionPerformed(ActionEvent event) { // first we filter the following events: // - control characters // - key events with the ALT modifier (FIXME: filter that too!) char c = event.getActionCommand().charAt(0); if (Character.isISOControl(c)) return; JTextComponent... | public void actionPerformed(ActionEvent event) { // first we filter the following events: // - control characters // - key events with the ALT modifier (FIXME: filter that too!) char c = event.getActionCommand().charAt(0); if (Character.isISOControl(c)) return; JTextComponent... | 28,874 |
public ConditionDescriptor(Element function) { init(function); } | public ConditionDescriptor(Element function) { init(function); } | 28,875 |
public boolean add(Receiver r) { synchronized(receivers) { if (receivers.contains(r)) { return false; } receivers.add(r); } return true; } | public boolean add(Receiver r) { boolean acquired; try { lock.writeLock().acquire(); acquired = true; } catch (InterruptedException e) { throw new RuntimeException("Failed to obtain lock", e); } try { if (receivers.contains(r)) { return false; } receivers.add(r)... | 28,877 |
public boolean add(Receiver r) { synchronized(receivers) { if (receivers.contains(r)) { return false; } receivers.add(r); } return true; } | public boolean add(Receiver r) { synchronized(receivers) { if (receivers.contains(r)) { return false; } receivers.add(r); } finally { if (acquired) { lock.writeLock().release(); } } } | 28,878 |
public void clear() { synchronized(receivers) { receivers.clear(); } } | public void clear() { boolean acquired; try { lock.writeLock().acquire(); acquired = true; } catch (InterruptedException e) { throw new RuntimeException("Failed to obtain lock", e); } try { receivers.clear(); } } | 28,879 |
public boolean contains(Receiver r) { synchronized(receivers) { return receivers.contains(r); } } | public boolean contains(Receiver r) { boolean acquired; try { return receivers.contains(r); } } | 28,881 |
public boolean contains(Receiver r) { synchronized(receivers) { return receivers.contains(r); } } | public boolean contains(Receiver r) { synchronized(receivers) { lock.writeLock().acquire(); acquired = true; } catch (InterruptedException e) { throw new RuntimeException("Failed to obtain lock", e); } try { return receivers.contains(r); } finally { if (acquired) { lock.writeLock().release(); } ... | 28,882 |
public Set handle(DeliveryObserver observer, Routable routable, Transaction tx) { Set deliveries = new HashSet(); // TODO synchronizing this is going to produce a bottleneck, do we really need to? synchronized(receivers) { for(Iterator i = receivers.iterator(); i.hasNext(); ) { ... | public Set handle(DeliveryObserver observer, Routable routable, Transaction tx) { Set deliveries = new HashSet(); // TODO synchronizing this is going to produce a bottleneck, do we really need to? boolean acquired; try { for(Iterator i = receivers.iterator(); i.hasNext(); ) { ... | 28,883 |
public Iterator iterator() { synchronized(receivers) { return receivers.iterator(); } } | public Iterator iterator() { boolean acquired; try { lock.writeLock().acquire(); acquired = true; } catch (InterruptedException e) { throw new RuntimeException("Failed to obtain lock", e); } try { return receivers.iterator(); } } | 28,885 |
public boolean remove(Receiver r) { synchronized(receivers) { return receivers.remove(r); } } | public boolean remove(Receiver r) { boolean acquired; try { lock.writeLock().acquire(); acquired = true; } catch (InterruptedException e) { throw new RuntimeException("Failed to obtain lock", e); } try { return receivers.remove(r); } } | 28,887 |
public boolean readBoolean() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value... | public boolean readBoolean() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is... | 28,891 |
public byte readByte() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is nu... | public byte readByte() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is null"... | 28,892 |
public int readBytes(byte[] value) throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object myObj = content.get(position); if (myObj == null) throw new NullPointerException("Value is null"); ... | public int readBytes(byte[] value) throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object myObj = content.get(position); if (myObj == null) throw new NullPointerException("Value is null"); ... | 28,893 |
public char readChar() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is nu... | public char readChar() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is null"... | 28,894 |
public double readDouble() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value i... | public double readDouble() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is n... | 28,895 |
public float readFloat() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is ... | public float readFloat() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is nul... | 28,896 |
public int readInt() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is null... | public int readInt() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is null");... | 28,897 |
public long readLong() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is nu... | public long readLong() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is null"... | 28,898 |
public Object readObject() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); position++; offset = 0; return value; } catch (IndexOutOfBounds... | public Object readObject() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); position++; offset = 0; return value; } catch (IndexOutOfBoundsExc... | 28,899 |
public short readShort() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is ... | public short readShort() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is nul... | 28,900 |
public String readString() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) { position++; return... | public String readString() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) { position++; return nu... | 28,901 |
public void reset() throws JMSException { messageReadWrite = false; position = 0; size = content.size(); offset = 0; } | public void reset() throws JMSException { bodyWriteOnly = false; position = 0; size = content.size(); offset = 0; } | 28,902 |
public void writeBoolean(boolean value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(Primitives.valueOf(value)); } | public void writeBoolean(boolean value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(Primitives.valueOf(value)); } | 28,903 |
public void writeByte(byte value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Byte(value)); } | public void writeByte(byte value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Byte(value)); } | 28,904 |
public void writeBytes(byte[] value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(value.clone()); } | public void writeBytes(byte[] value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(value.clone()); } | 28,905 |
public void writeChar(char value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Character(value)); } | public void writeChar(char value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Character(value)); } | 28,906 |
public void writeDouble(double value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Double(value)); } | public void writeDouble(double value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Double(value)); } | 28,907 |
public void writeFloat(float value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Float(value)); } | public void writeFloat(float value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Float(value)); } | 28,909 |
public void writeInt(int value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Integer(value)); } | public void writeInt(int value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Integer(value)); } | 28,910 |
public void writeLong(long value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Long(value)); } | public void writeLong(long value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Long(value)); } | 28,911 |
public void writeObject(Object value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); if (value == null) content.add(null); else if (value instanceof Boolean) content.add(value); else if (value instance... | public void writeObject(Object value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); if (value == null) content.add(null); else if (value instanceof Boolean) content.add(value); else if (value instanceof ... | 28,912 |
public void writeShort(short value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Short(value)); } | public void writeShort(short value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Short(value)); } | 28,913 |
public void writeString(String value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); if (value == null) content.add(null); else content.add(value); } | public void writeString(String value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); if (value == null) content.add(null); else content.add(value); } | 28,914 |
protected void initSqlProperties() { //Message Reference createMessageReference = sqlProperties.getProperty("CREATE_MESSAGE_REF", createMessageReference); createIdxMessageRefTx = sqlProperties.getProperty("CREATE_IDX_MESSAGE_REF_TX", createIdxMessageRefTx); createIdxMessageRefOrd = sqlPropertie... | protected void initSqlProperties() { //Message Reference createMessageReference = sqlProperties.getProperty("CREATE_MESSAGE_REF", createMessageReference); createIdxMessageRefTx = sqlProperties.getProperty("CREATE_IDX_MESSAGE_REF_TX", createIdxMessageRefTx); createIdxMessageRefOrd = sqlPropertie... | 28,915 |
protected void resetMessageData() throws Exception { if (trace) { log.trace("Removing all non-persistent data"); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); log.trace("Resetting message data. This may take several m... | protected void resetMessageData() throws Exception { if (trace) { log.trace("Removing all non-persistent data"); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); log.trace("Resetting message data. This may take several m... | 28,916 |
public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all,-remoting,-security"); sc.start(); tl = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); ((JDBCPersistenceManager)tl).start(); ms = new PagingMessageStore("s33"); } | public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all,-remoting,-security"); sc.start(); tl = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); ((JDBCPersistenceManager)tl).start(); ms = new SimpleMessageStore("s33"); } | 28,917 |
public List doRemoteBrowse(Filter filter) { if (log.isTraceEnabled()) { log.trace(this + " remote browse" + (filter == null ? "" : ", filter = " + filter)); } RpcServerCall rpcServerCall = new RpcServerCall(queue.getName(), "remoteBrowse", new Object[] {getPeerIden... | List doRemoteBrowse(Filter filter) { if (log.isTraceEnabled()) { log.trace(this + " remote browse" + (filter == null ? "" : ", filter = " + filter)); } RpcServerCall rpcServerCall = new RpcServerCall(queue.getName(), "remoteBrowse", new Object[] {getPeerIdentity(),... | 28,918 |
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F... | private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F... | 28,919 |
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F... | private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F... | 28,920 |
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F... | private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F... | 28,921 |
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F... | private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F... | 28,922 |
private boolean queryEquals(Long entryId, int field, int type, Object value) { List steps; if (type == WorkflowQuery.CURRENT) { steps = (List) currentStepsCache.get(entryId); } else { steps = (List) historyStepsCache.get(entryId); } switch (field) { ca... | private boolean queryEquals(Long entryId, int field, int type, Object value) { List steps; if (type == WorkflowQuery.CURRENT) { steps = (List) currentStepsCache.get(entryId); } else { steps = (List) historyStepsCache.get(entryId); } switch (field) { ca... | 28,923 |
public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text... | public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text... | 28,924 |
public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text... | public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text... | 28,925 |
public CalculatedStyle getStyle() { return _style; } | public CalculatedStyle getStyle() { return _style; } | 28,926 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.