bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public String getTestString() { StringBuffer sb = new StringBuffer(); // type if ( this instanceof LineBox ) { sb.append( "line:" ); } else if ( this instanceof InlineBox ) { sb.append( "inline:" ); } else { sb.append( "box:" ); } // ...
public String getTestString() { StringBuffer sb = new StringBuffer(); // type if ( this instanceof LineBox ) { sb.append( "line:" ); } else if ( this instanceof InlineBox ) { sb.append( "inline:" ); } else { sb.append( "box:" ); } // ...
54,009
public void setBlockFormattingContext( BlockFormattingContext blockFormattingContext ) { this.blockFormattingContext = blockFormattingContext; }
public void setBlockFormattingContext(BlockFormattingContext blockFormattingContext) { this.blockFormattingContext = blockFormattingContext; }
54,010
public void setChildrenExceedBounds( boolean children_exceeds ) { this.children_exceeds = children_exceeds; }
public void setChildrenExceedBounds(boolean children_exceeds) { this.children_exceeds = children_exceeds; }
54,011
public void setParent( Box box ) { this.parent = box; }
public void setParent(Box box) { this.parent = box; }
54,012
public String toString() { StringBuffer sb = new StringBuffer(); sb.append( "Box: " ); sb.append( " (" + x + "," + y + ")->(" + width + " x " + height + ")" ); return sb.toString(); }
public String toString() { StringBuffer sb = new StringBuffer(); sb.append( "Box: " ); sb.append( " (" + x + "," + y + ")->(" + width + " x " + height + ")" ); return sb.toString(); }
54,013
public int totalHorizontalPadding( CalculatedStyle style ) { calcBorders( style ); return totalHorizontalPadding(); }
public int totalHorizontalPadding( CalculatedStyle style ) { calcBorders( style ); return totalHorizontalPadding(); }
54,014
public int totalLeftPadding( CalculatedStyle style ) { calcBorders( style ); return totalLeftPadding(); }
public int totalLeftPadding( CalculatedStyle style ) { calcBorders( style ); return totalLeftPadding(); }
54,015
public int totalRightPadding( CalculatedStyle style ) { calcBorders( style ); return totalRightPadding(); }
public int totalRightPadding( CalculatedStyle style ) { calcBorders( style ); return totalRightPadding(); }
54,016
public int totalTopPadding( CalculatedStyle style ) { calcBorders( style ); return totalTopPadding(); }
public int totalTopPadding( CalculatedStyle style ) { calcBorders( style ); return totalTopPadding(); }
54,017
public int totalVerticalPadding( CalculatedStyle style ) { calcBorders( style ); return totalVerticalPadding(); }
public int totalVerticalPadding( CalculatedStyle style ) { calcBorders( style ); return totalVerticalPadding(); }
54,018
public static void checkExceeds(Box block) { Box parent = block.getParent(); if (parent != null) { // FIXME Not right, for example // <div style="height: 3in; width: 1in;"> // <div> // <div style="height 5in; width: 1in;"> // </div> ...
public static void checkExceeds(Box block) { Box parent = block.getParent(); if (parent != null) { // FIXME Not right, for example // <div style="height: 3in; width: 1in;"> // <div> // <div style="height 5in; width: 1in;"> // </div> ...
54,019
private static void checkPageBreakBefore(Context c, Box block) { if (c.isPrint()) { if ((c.isPendingPageBreak() || c.getCurrentStyle().propertyByName(CSSName.PAGE_BREAK_BEFORE).isIdent(IdentValue.ALWAYS))) { block.moveToNextPage(c, false); block.set...
private static void checkPageBreakBefore(Context c, Box block) { if (c.isPrint()) { if ((c.isPendingPageBreak() || c.getCurrentStyle().propertyByName(CSSName.PAGE_BREAK_BEFORE).isIdent(IdentValue.ALWAYS))) { block.moveToNextPage(c, false); block.get...
54,020
public void handleEvent(AWTEvent e) { Unsafe.debug("handleEvent(" + e + ")"); // log.debug("handleEvent(" + e + ")"); }
public void handleEvent(AWTEvent e) { Unsafe.debug("handleEvent(" + e + ")"); // log.debug("handleEvent(" + e + ")"); }
54,022
private static void bodyExpandHack(Box root, int view_height) { for(int i=0; i<root.getChildCount(); i++) { // set the html box to the max Box html = root.getChild(i); if(html.element != null && html.element.getNodeName().equals("html")) { html.height = view_height; // set the body box to the max for(i...
private static void bodyExpandHack(Box root, int view_height) { for(int i=0; i<root.getChildCount(); i++) { // set the html box to the max Box html = root.getChild(i); if(html.element != null && html.element.getNodeName().equals("html")) { html.height = view_height; // set the body box to the max for(i...
54,024
private void checkOpacityMethodClient() { StackTraceElement[] stackTrace = new Throwable().getStackTrace(); if (stackTrace.length > 2) { String callingClassName = stackTrace[2].getClassName(); if (BasicPanel.class.getName().equals(callingClassName)) throw ne...
private void checkOpacityMethodClient() { StackTraceElement[] stackTrace = new Throwable().getStackTrace(); if (stackTrace.length > 2) { String callingClassName = stackTrace[2].getClassName(); if (BasicPanel.class.getName().equals(callingClassName)) throw ne...
54,025
private void checkOpacityMethodClient() { StackTraceElement[] stackTrace = new Throwable().getStackTrace(); if (stackTrace.length > 2) { String callingClassName = stackTrace[2].getClassName(); if (BasicPanel.class.getName().equals(callingClassName)) throw ne...
private void checkOpacityMethodClient() { StackTraceElement[] stackTrace = new Throwable().getStackTrace(); if (stackTrace.length > 2) { String callingClassName = stackTrace[2].getClassName(); if (BasicPanel.class.getName().equals(callingClassName)) throw ne...
54,026
protected void doRender(Context c) { // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics) && explicitlyOpaque) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getH...
protected void doRender(Context c) { // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics) && explicitlyOpaque) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getH...
54,027
public boolean isOpaque() { checkOpacityMethodClient(); return explicitlyOpaque; }
public boolean isOpaque() { checkOpacityMethodClient(); return explicitlyOpaque; }
54,028
private Context newContext(Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getContext().setCanvas(this); getContext().setGraphics(g); Rectangle extents; if (enclosingScrollPane != null) { Rectangle bnds = enclosingScrollPane.getViewportBorderBounds(); ...
private Context newContext(Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getContext().setCanvas(this); getContext().setGraphics(g); Rectangle extents; if (enclosingScrollPane != null) { Rectangle bnds = enclosingScrollPane.getViewportBorderBounds(); ...
54,029
public void paintComponent(Graphics g) { if (anti_aliased) { // TODO: // ( (Graphics2D)g ).setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON ); } if (doc == null) { return; } // if this is the first time p...
public void paintComponent(Graphics g) { if (anti_aliased) { // TODO: // ( (Graphics2D)g ).setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON ); } if (doc == null) { return; } // if this is the first time p...
54,030
public void startLayout(Graphics g) { this.removeAll(); if (g == null) { return; } if (doc == null) { return; } // set up CSS Context c = newContext((Graphics2D) g); //getContext().setMaxWidth(0); this.layout_context = c; ...
public void startLayout(Graphics g) { this.removeAll(); if (g == null) { return; } if (doc == null) { return; } // set up CSS Context c = newContext((Graphics2D) g); //getContext().setMaxWidth(0); this.layout_context = c; ...
54,031
public void startLayout(Graphics g) { this.removeAll(); if (g == null) { return; } if (doc == null) { return; } // set up CSS Context c = newContext((Graphics2D) g); //getContext().setMaxWidth(0); this.layout_context = c; ...
public void startLayout(Graphics g) { this.removeAll(); if (g == null) { return; } if (doc == null) { return; } // set up CSS Context c = newContext((Graphics2D) g); //getContext().setMaxWidth(0); this.layout_context = c; ...
54,032
public void add(MessageReference ref, Transaction tx) throws Throwable { //We synchronize on the ref to prevent a message being removed from memory //and failing on attempting to remove from db, because it tries after the message //is added to memory but before it's been added to db synchronize...
public void add(MessageReference ref, Transaction tx) throws Throwable { //We synchronize on the ref to prevent a message being removed from memory //and failing on attempting to remove from db, because it tries after the message //is added to memory but before it's been added to db synchronize...
54,033
public void load() throws Exception { List refs = pm.messageRefs(storeID, channelID); Iterator iter = refs.iterator(); while (iter.hasNext()) { String messageID = (String)iter.next(); MessageReference ref = messageStore.getReference(messageID); messageRefs.addLast(...
public void load() throws Exception { List refs = pm.messageRefs(storeID, channelID); Iterator iter = refs.iterator(); while (iter.hasNext()) { String messageID = (String)iter.next(); MessageReference ref = messageStore.getReference(messageID); messageRefs.addLast(...
54,035
public JBossMessage() { this(null); }
public JBossMessage() { this(null); }
54,036
public void acknowledge() throws JMSException { throw new NotYetImplementedException(); }
public void acknowledge() throws JMSException { throw new NotYetImplementedException(); }
54,037
public void clearBody() throws JMSException { throw new NotYetImplementedException(); }
public void clearBody() throws JMSException { }
54,038
public void clearProperties() throws JMSException { throw new NotYetImplementedException(); }
public void clearProperties() throws JMSException { properties.clear(); }
54,039
public boolean getBooleanProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public boolean getBooleanProperty(String name) throws JMSException { Object value = properties.get(name); if (value == null) return Boolean.valueOf(null).booleanValue(); if (value instanceof Boolean) return ((Boolean) value).booleanValue(); else if (value instanceof String) return Boolean.valueOf((String) va...
54,040
public byte getByteProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public byte getByteProperty(String name) throws JMSException { Object value = properties.get(name); if (value == null) throw new NumberFormatException("Message property '" + name + "' not set."); if (value instanceof Byte) return ((Byte) value).byteValue(); else if (value instanceof String) return Byte.parse...
54,041
public double getDoubleProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public double getDoubleProperty(String name) throws JMSException { Object value = properties.get(name); if (value == null) return Double.valueOf(null).doubleValue(); if (value instanceof Float) return ((Float) value).doubleValue(); else if (value instanceof Double) return ((Double) value).doubleValue(); else...
54,042
public float getFloatProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public float getFloatProperty(String name) throws JMSException { Object value = properties.get(name); if (value == null) return Float.valueOf(null).floatValue(); if (value instanceof Float) return ((Float) value).floatValue(); else if (value instanceof String) return Float.parseFloat((String) value); else th...
54,043
public int getIntProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public int getIntProperty(String name) throws JMSException { Object value = properties.get(name); if (value == null) throw new NumberFormatException("Message property '" + name + "' not set."); if (value instanceof Byte) return ((Byte) value).intValue(); else if (value instanceof Short) return ((Short) value...
54,044
public long getLongProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public long getLongProperty(String name) throws JMSException { Object value = properties.get(name); if (value == null) throw new NumberFormatException("Message property '" + name + "' not set."); if (value instanceof Byte) return ((Byte) value).longValue(); else if (value instanceof Short) return ((Short) va...
54,045
public Object getObjectProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public Object getObjectProperty(String name) throws JMSException { Object value = properties.get(name); return value; }
54,046
public Enumeration getPropertyNames() throws JMSException { throw new NotYetImplementedException(); }
public Enumeration getPropertyNames() throws JMSException { Enumeration names = Collections.enumeration(properties.keySet()); return names; }
54,047
public short getShortProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public short getShortProperty(String name) throws JMSException { Object value = properties.get(name); if (value == null) throw new NumberFormatException("Message property '" + name + "' not set."); if (value instanceof Byte) return ((Byte) value).shortValue(); else if (value instanceof Short) return ((Short)...
54,048
public String getStringProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public String getStringProperty(String name) throws JMSException { Object value = properties.get(name); if (value == null) return null; if (value instanceof Boolean) return ((Boolean) value).toString(); else if (value instanceof Byte) return ((Byte) value).toString(); else if (value instanceof Short) return ...
54,049
public boolean propertyExists(String name) throws JMSException { throw new NotYetImplementedException(); }
public boolean propertyExists(String name) throws JMSException { return properties.containsKey(name); }
54,050
public void setBooleanProperty(String name, boolean value) throws JMSException { throw new NotYetImplementedException(); }
public void setBooleanProperty(String name, boolean value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Boolean b = Primitives.valueOf(value); checkProperty(name, b); properties.put(name, b); }
54,051
public void setByteProperty(String name, byte value) throws JMSException { throw new NotYetImplementedException(); }
public void setByteProperty(String name, byte value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Byte b = new Byte(value); checkProperty(name, b); properties.put(name, b); }
54,052
public void setDoubleProperty(String name, double value) throws JMSException { throw new NotYetImplementedException(); }
public void setDoubleProperty(String name, double value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Double d = new Double(value); checkProperty(name, d); properties.put(name, d); }
54,053
public void setFloatProperty(String name, float value) throws JMSException { throw new NotYetImplementedException(); }
public void setFloatProperty(String name, float value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Float f = new Float(value); checkProperty(name, f); properties.put(name, f); }
54,054
public void setIntProperty(String name, int value) throws JMSException { throw new NotYetImplementedException(); }
public void setIntProperty(String name, int value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Integer i = new Integer(value); checkProperty(name, i); properties.put(name, i); }
54,055
public void setLongProperty(String name, long value) throws JMSException { throw new NotYetImplementedException(); }
public void setLongProperty(String name, long value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Long l = new Long(value); checkProperty(name, l); properties.put(name, l); }
54,056
public void setObjectProperty(String name, Object value) throws JMSException { throw new NotYetImplementedException(); }
public void setObjectProperty(String name, Object value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); checkProperty(name, value); if (value instanceof Boolean) properties.put(name, value); else if (value instanceof Byte) properties.put(name, ...
54,057
public void setShortProperty(String name, short value) throws JMSException { throw new NotYetImplementedException(); }
public void setShortProperty(String name, short value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Short s = new Short(value); checkProperty(name, s); properties.put(name, s); }
54,058
public void setStringProperty(String name, String value) throws JMSException { throw new NotYetImplementedException(); }
public void setStringProperty(String name, String value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); checkProperty(name, value); this.properties.put(name, value); }
54,059
public ConnectionState(int serverID, ConnectionDelegate delegate, JMSRemotingConnection remotingConnection, Version versionToUse, MessageIdGenerator gen) throws Exception { super(null, (DelegateSupport)delegate); if (log.isTraceEnabled()) { log.trace...
public ConnectionState(int serverID, ConnectionDelegate delegate, JMSRemotingConnection remotingConnection, ConsolidatedRemotingConnectionListener remotingConnectionListener, Version versionToUse, MessageIdGenerator gen) throws Exception { super(null, (De...
54,060
public void handleConnectionException(Throwable t, Client client) { String remotingSessionID = client.getSessionId(); if (t instanceof ClientDisconnectedException) { // This is OK if (log.isTraceEnabled()) { log.trace(this + " notified that client " + client + " has disconnected");...
public synchronized void handleConnectionException(Throwable t, Client client) { String remotingSessionID = client.getSessionId(); if (t instanceof ClientDisconnectedException) { // This is OK if (log.isTraceEnabled()) { log.trace(this + " notified that client " + client + " has di...
54,062
public void handleConnectionException(Throwable t, Client client) { String remotingSessionID = client.getSessionId(); if (t instanceof ClientDisconnectedException) { // This is OK if (log.isTraceEnabled()) { log.trace(this + " notified that client " + client + " has disconnected");...
public void handleConnectionException(Throwable t, Client client) { String remotingSessionID = client.getSessionId(); if (t instanceof ClientDisconnectedException) { // This is OK if (log.isTraceEnabled()) { log.trace(this + " notified that client " + client + " has disconnected");...
54,063
public void handleConnectionException(Throwable t, Client client) { String remotingSessionID = client.getSessionId(); if (t instanceof ClientDisconnectedException) { // This is OK if (log.isTraceEnabled()) { log.trace(this + " notified that client " + client + " has disconnected");...
public void handleConnectionException(Throwable t, Client client) { String remotingSessionID = client.getSessionId(); if (t instanceof ClientDisconnectedException) { // This is OK if (log.isTraceEnabled()) { log.trace(this + " notified that client " + client + " has disconnected");...
54,064
public void registerConnection(String remotingClientSessionID, ServerConnectionEndpoint endpoint) { connections.put(remotingClientSessionID, endpoint); log.debug("registered connection " + endpoint + " as " + Util.guidToString(remotingClientSessionID)); }
public synchronized void registerConnection(String jmsClientId, String remotingClientSessionID, ServerConnectionEndpoint endpoint) { connections.put(remotingClientSessionID, endpoint); log.debug("registered connection " + endpoint + " as " + Util.guidToString(remotingClientSessionID));...
54,065
public void registerConnection(String remotingClientSessionID, ServerConnectionEndpoint endpoint) { connections.put(remotingClientSessionID, endpoint); log.debug("registered connection " + endpoint + " as " + Util.guidToString(remotingClientSessionID)); }
public void registerConnection(String remotingClientSessionID, ServerConnectionEndpoint endpoint) { Map endpoints = (Map)jmsClients.get(jmsClientId); if (endpoints == null) { endpoints = new HashMap(); jmsClients.put(jmsClientId, endpoints); } endpoints.put(remotingClientSessionID, endpoint); sessions....
54,066
public ServerConnectionEndpoint unregisterConnection(String remotingClientSessionID) { ServerConnectionEndpoint e = (ServerConnectionEndpoint)connections.remove(remotingClientSessionID); log.debug("unregistered connection " + e + " with remoting session ID " + Util.guidToString(rem...
public synchronized ServerConnectionEndpoint unregisterConnection(String jmsClientId, String remotingClientSessionID) { ServerConnectionEndpoint e = (ServerConnectionEndpoint)connections.remove(remotingClientSessionID); log.debug("unregistered connection " + e + " with remoting session ID " + ...
54,067
public ServerConnectionEndpoint unregisterConnection(String remotingClientSessionID) { ServerConnectionEndpoint e = (ServerConnectionEndpoint)connections.remove(remotingClientSessionID); log.debug("unregistered connection " + e + " with remoting session ID " + Util.guidToString(rem...
public ServerConnectionEndpoint unregisterConnection(String remotingClientSessionID) { ServerConnectionEndpoint e = (ServerConnectionEndpoint)connections.remove(remotingClientSessionID); log.debug("unregistered connection " + e + " with remoting session ID " + Util.guidToString(rem...
54,068
public void setDocument(String filename) throws Exception { setDocument(x.loadDocument(filename),new File(filename).toURL()); }
public void setDocument(String filename) throws Exception { URL url = new File(filename).toURL(); setDocument(loadDocument(url),url); }
54,069
public static void layoutContent(LayoutContext c, Box box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int) c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); Lin...
public static void layoutContent(LayoutContext c, BlockBox box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int) c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); ...
54,070
private static int processOutOfFlowContent(LayoutContext c, Content content, LineBox current, int available, List pendingFloats) { int result = 0; c.pushStyle(content.getStyle()); if (content instanceof AbsolutelyPositionedContent) { BlockBox abs = LayoutUtil.generateAbsolute(c, cont...
private static int processOutOfFlowContent(LayoutContext c, Content content, LineBox current, int available, List pendingFloats) { int result = 0; c.pushStyle(content.getStyle()); if (content instanceof AbsolutelyPositionedContent) { BlockBox abs = LayoutUtil.generateAbsolute(c, cont...
54,071
private static int processOutOfFlowContent(LayoutContext c, Content content, LineBox current, int available, List pendingFloats) { int result = 0; c.pushStyle(content.getStyle()); if (content instanceof AbsolutelyPositionedContent) { BlockBox abs = LayoutUtil.generateAbsolute(c, cont...
private static int processOutOfFlowContent(LayoutContext c, Content content, LineBox current, int available, List pendingFloats) { int result = 0; c.pushStyle(content.getStyle()); if (content instanceof AbsolutelyPositionedContent) { BlockBox abs = LayoutUtil.generateAbsolute(c, cont...
54,072
private static int processOutOfFlowContent(LayoutContext c, Content content, LineBox current, int available, List pendingFloats) { int result = 0; c.pushStyle(content.getStyle()); if (content instanceof AbsolutelyPositionedContent) { BlockBox abs = LayoutUtil.generateAbsolute(c, cont...
private static int processOutOfFlowContent(LayoutContext c, Content content, LineBox current, int available, List pendingFloats) { int result = 0; c.pushStyle(content.getStyle()); if (content instanceof AbsolutelyPositionedContent) { BlockBox abs = LayoutUtil.generateAbsolute(c, cont...
54,073
private static void saveLine(final LineBox current, LineBox previous, final LayoutContext c, Box block, int minHeight, final int maxAvailableWidth, List elementStack, List pendingFloats, boolean hasFirstLinePCs, ...
private static void saveLine(final LineBox current, LineBox previous, final LayoutContext c, Box block, int minHeight, final int maxAvailableWidth, List elementStack, List pendingFloats, boolean hasFirstLinePCs, ...
54,074
protected ChannelSupport(Serializable channelID, MessageStore ms, TransactionLog tl, boolean acceptReliableMessages) { if (log.isTraceEnabled()) { log.trace("creating " + (tl != null ? "recoverable " : "non-recoverable ") + "chan...
protected ChannelSupport(Serializable channelID, MessageStore ms, TransactionLog tl, boolean acceptReliableMessages) { if (trace) { log.trace("creating " + (tl != null ? "recoverable " : "non-recoverable ") + "channel[" + channel...
54,076
public void acknowledge(Delivery d, Transaction tx) { if (tx == null) { // acknowledge non transactionally acknowledgeNoTx(d); return; } if (log.isTraceEnabled()){ log.trace("acknowledge " + d + (tx == null ? " non-transactionally" : " transactionally in " + tx)); } ...
public void acknowledge(Delivery d, Transaction tx) { if (tx == null) { // acknowledge non transactionally acknowledgeNoTx(d); return; } if (trace){ log.trace("acknowledge " + d + (tx == null ? " non-transactionally" : " transactionally in " + tx)); } try { ...
54,078
private void acknowledgeNoTx(Delivery d) { checkClosed(); if (log.isTraceEnabled()){ log.trace(this + " acknowledging non transactionally " + d); } try { //We remove the delivery from the state state.acknowledge(d); if (log.isTraceEnabled()) { log.trace(this + "...
private void acknowledgeNoTx(Delivery d) { checkClosed(); if (trace){ log.trace(this + " acknowledging non transactionally " + d); } try { //We remove the delivery from the state state.acknowledge(d); if (log.isTraceEnabled()) { log.trace(this + " delivery " + d...
54,079
private void acknowledgeNoTx(Delivery d) { checkClosed(); if (log.isTraceEnabled()){ log.trace(this + " acknowledging non transactionally " + d); } try { //We remove the delivery from the state state.acknowledge(d); if (log.isTraceEnabled()) { log.trace(this + "...
private void acknowledgeNoTx(Delivery d) { checkClosed(); if (log.isTraceEnabled()){ log.trace(this + " acknowledging non transactionally " + d); } try { //We remove the delivery from the state state.acknowledge(d); if (trace) { log.trace(this + " delivery " + d...
54,080
public boolean add(Receiver r) { if (log.isTraceEnabled()) { log.trace(this + ": attempting to add receiver " + r); } boolean added = router.add(r); if (log.isTraceEnabled()) { log.trace("receiver " + r + (added ? "" : " NOT") + " added"); } return added; }
public boolean add(Receiver r) { if (trace) { log.trace(this + ": attempting to add receiver " + r); } boolean added = router.add(r); if (log.isTraceEnabled()) { log.trace("receiver " + r + (added ? "" : " NOT") + " added"); } return added; }
54,081
public boolean add(Receiver r) { if (log.isTraceEnabled()) { log.trace(this + ": attempting to add receiver " + r); } boolean added = router.add(r); if (log.isTraceEnabled()) { log.trace("receiver " + r + (added ? "" : " NOT") + " added"); } return added; }
public boolean add(Receiver r) { if (log.isTraceEnabled()) { log.trace(this + ": attempting to add receiver " + r); } boolean added = router.add(r); if (trace) { log.trace("receiver " + r + (added ? "" : " NOT") + " added"); } return added; }
54,082
public void 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"); } }
public void cancel(Delivery d) throws Throwable { if (trace) { log.trace("cancel " + d); } state.cancelDelivery(d); if (log.isTraceEnabled()) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); } }
54,083
public void 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"); } }
public void cancel(Delivery d) throws Throwable { if (log.isTraceEnabled()) { log.trace("cancel " + d); } state.cancelDelivery(d); if (trace) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); } }
54,084
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("Fa...
public boolean deliver(Receiver r) { if (trace){ 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...
54,085
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { checkClosed(); if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } //...
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { checkClosed(); if (r == null) { return null; } if (trace){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } // don't even att...
54,086
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { checkClosed(); if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } //...
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { checkClosed(); if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } //...
54,087
public boolean remove(Receiver r) { boolean removed = router.remove(r); if (log.isTraceEnabled()) { log.trace(this + (removed ? " removed ":" did NOT remove ") + r); } return removed; }
public boolean remove(Receiver r) { boolean removed = router.remove(r); if (trace) { log.trace(this + (removed ? " removed ":" did NOT remove ") + r); } return removed; }
54,088
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc...
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc...
54,089
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc...
publicstaticvoidpaintAbsoluteBox(Contextc,Boxblock,booleanrestyle){Rectanglerect=c.getExtents();//whythis? intxoff=0;intyoff=0; //Uu.p("xoff="+xoff+"yoff="+yoff);BlockFormattingContextbfc=c.getBlockFormattingContext(); //Uu.p("bfc="+bfc+"x,y="+bfc.getX()+","+bfc.getY()); //Uu.p("bfc="+bfc.hashCode()); //Uu.p("inse...
54,090
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc...
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) {Rectangle rect = c.getExtents();//why this? int xoff = 0;int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff);BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc + " x,y = " + bfc.getX() + "," + bfc.getY()...
54,091
public void testChannelShareNP_Transactional() throws Throwable { Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null); Message[] msgs = ne...
public void testChannelShareNP_Transactional() throws Throwable { Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null); Message[] msgs = ne...
54,092
void addCoreDestination(Destination jmsDestination) throws JMSException { JBossDestination d = (JBossDestination)jmsDestination; String name = d.getName(); boolean isQueue = d.isQueue(); Distributor c = getCoreDestination(isQueue, name); if (c != null) { throw new JMSException...
void addCoreDestination(Destination jmsDestination) throws JMSException { JBossDestination d = (JBossDestination)jmsDestination; String name = d.getName(); boolean isQueue = d.isQueue(); Distributor c = getCoreDestination(isQueue, name); if (c != null) { throw new JMSException...
54,093
void addCoreDestination(Destination jmsDestination) throws JMSException { JBossDestination d = (JBossDestination)jmsDestination; String name = d.getName(); boolean isQueue = d.isQueue(); Distributor c = getCoreDestination(isQueue, name); if (c != null) { throw new JMSException...
Set durableSubs = sp.getStateManager().loadDurableSubscriptionsForTopic(name); Iterator iter = durableSubs.iterator(); while (iter.hasNext()) { DurableSubscription sub = (DurableSubscription)iter.next(); try { sub.load(); } catch (Exception e) { JMSException e2 = new JMSException("Failed to load durable subscript...
54,094
void addCoreDestination(Destination jmsDestination) throws JMSException { JBossDestination d = (JBossDestination)jmsDestination; String name = d.getName(); boolean isQueue = d.isQueue(); Distributor c = getCoreDestination(isQueue, name); if (c != null) { throw new JMSException...
void addCoreDestination(Destination jmsDestination) throws JMSException { JBossDestination d = (JBossDestination)jmsDestination; String name = d.getName(); boolean isQueue = d.isQueue(); Distributor c = getCoreDestination(isQueue, name); if (c != null) { throw new JMSException...
54,095
Distributor removeCoreDestination(boolean isQueue, String name) { ServerPeer sp = destinationManager.getServerPeer(); try { sp.getPersistenceManager().removeAllMessageData(name); //FIXME - Also need to remove any message refs stored in memory for this destination ...
Distributor removeCoreDestination(boolean isQueue, String name) { ServerPeer sp = destinationManager.getServerPeer(); try { sp.getPersistenceManager().removeAllMessageData(name); //FIXME - Also need to remove any message refs stored in memory for this destination ...
54,096
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j...
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vit...
54,097
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j...
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j...
54,098
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j...
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j...
54,099
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j...
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j...
54,100
public synchronized void stopService() throws Exception { if (!started) { return; } log.debug(this + " stopping"); started = false; removeRecoverable(); // remove the JMS subsystem invocation handler getServer().invoke(connectorName, "removeInvocationHandler", ...
public synchronized void stopService() throws Exception { if (!started) { return; } log.debug(this + " stopping"); started = false; removeRecoverable(); // remove the JMS subsystem invocation handler getServer().invoke(connectorName, "removeInvocationHandler", ...
54,101
protected boolean prepare(ImageObserver observer) { if (!productionStarted) { loadInitImage(false, observer); } else if ((availableInfo & ImageObserver.ERROR) != 0) { if (observer != null) { observer.imageUpdate(this, availableInfo, -1, -1, -1, -1); } } else { new ForwardingProducer(observer).startProduc...
protected boolean prepare(ImageObserver observer) { if (!productionStarted) { loadInitImage(false, observer); } else if ((availableInfo & ImageObserver.ERROR) != 0) { if (observer != null) { observer.imageUpdate(this, availableInfo, -1, -1, -1, -1); } } else { new ForwardingProducer(observer).startProduc...
54,102
private void run(int port, String ip) { try { connector = new Connector(); InvokerLocator locator; if (ip == null) { locator = new InvokerLocator("socket://0.0.0.0:" + port); } else { locator = new InvokerLocator("socket://" ...
private void run(int port, String ip) { try { connector = new Connector(); InvokerLocator locator; if (ip == null) { locator = new InvokerLocator("socket://0.0.0.0:" + port); } else { locator = new InvokerLocator("socket://" ...
54,104
private void run(int port, String ip) { try { connector = new Connector(); InvokerLocator locator; if (ip == null) { locator = new InvokerLocator("socket://0.0.0.0:" + port); } else { locator = new InvokerLocator("socket://" ...
private void run(int port, String ip) { try { connector = new Connector(); InvokerLocator locator; if (ip == null) { locator = new InvokerLocator("socket://0.0.0.0:" + port); } else { locator = new InvokerLocator("socket://" ...
54,105
public ServerConnectionDelegate(ServerPeer serverPeer) { this.serverPeer = serverPeer; sessionIDCounter = 0; sessions = new HashMap(); temporaryDestinations = new HashSet(); started = false; connectionID = new GUID().toString(); receivers = new ConcurrentReaderHashMap(); }
public ServerConnectionDelegate(ServerPeer serverPeer, String clientID) { this.serverPeer = serverPeer; sessionIDCounter = 0; sessions = new HashMap(); temporaryDestinations = new HashSet(); started = false; connectionID = new GUID().toString(); receivers = new ConcurrentReaderHa...
54,106
void sendMessage(Message m) throws JMSException { //The JMSDestination header must already have been set for each message JBossDestination jmsDestination = (JBossDestination)m.getJMSDestination(); if (jmsDestination == null) { throw new IllegalStateException("JMSDestination header not s...
void sendMessage(Message m) throws JMSException { //The JMSDestination header must already have been set for each message JBossDestination jmsDestination = (JBossDestination)m.getJMSDestination(); if (jmsDestination == null) { throw new IllegalStateException("JMSDestination header not s...
54,108
public void unsubscribe(String subscriptionName) throws JMSException { DurableSubscriptionHolder subscription = this.serverPeer.getClientManager(). removeDurableSubscription(this.clientID, subscriptionName); if (subscription == null) { throw new JMSException("Cannot find durable s...
public void unsubscribe(String subscriptionName) throws JMSException { DurableSubscriptionHolder subscription = this.serverPeer.getClientManager(). removeDurableSubscription(this.clientID, subscriptionName); if (subscription == null) { throw new InvalidDestinationException("Cannot...
54,111
public static Icon getCheckBoxMenuItemIcon() { return getCheckBoxIcon(); }
public static Icon getCheckBoxMenuItemIcon() { return new CheckBoxMenuItemIcon(); }
54,112
public ClientBrowserDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); }
public ClientBrowserDelegate(String objectID) { super(objectID, locator); }
54,113
public ClientBrowserDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); }
public ClientBrowserDelegate(String objectID, InvokerLocator locator) { super(objectID); }
54,114
protected Serializable readPayloadExternal(ObjectInput in) throws IOException, ClassNotFoundException { return (Serializable)in.readObject(); }
protected Serializable readPayloadExternal(ObjectInput in) throws IOException, ClassNotFoundException { byte b = in.readByte(); if (b == NULL) { return null; } else { return (Serializable)in.readObject(); } }
54,115
protected void writePayloadExternal(ObjectOutput out) throws IOException { out.writeObject(payload); }
protected void writePayloadExternal(ObjectOutput out) throws IOException { if (payload == null) { out.writeByte(NULL); } else { out.writeByte(OBJECT); out.writeObject(payload); } }
54,116
private void alignToLastFloat(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current, int direction) { List floats = getFloats(direction); if (floats.size() > 0) { Point offset = bfc.getOffset(); BoxOffset lastOffset = (BoxOffset)floats.get(flo...
private void alignToLastFloat(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current, int direction) { List floats = getFloats(direction); if (floats.size() > 0) { Point offset = bfc.getOffset(); BoxOffset lastOffset = (BoxOffset)floats.get(flo...
54,117
private void alignToLastFloat(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current, int direction) { List floats = getFloats(direction); if (floats.size() > 0) { Point offset = bfc.getOffset(); BoxOffset lastOffset = (BoxOffset)floats.get(flo...
private void alignToLastFloat(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current, int direction) { List floats = getFloats(direction); if (floats.size() > 0) { Point offset = bfc.getOffset(); BoxOffset lastOffset = (BoxOffset)floats.get(flo...
54,118