bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public ReplacedElement createReplacedElement( LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) { Element e = box.element; JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { ...
public ReplacedElement createReplacedElement( LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) { Element e = box.element; JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { ...
29,149
public ReplacedElement createReplacedElement( LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) { Element e = box.element; JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { ...
public ReplacedElement createReplacedElement( LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) { Element e = box.element; JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { ...
29,150
public ReplacedElement createReplacedElement( LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) { Element e = box.element; JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { ...
public ReplacedElement createReplacedElement( LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) { Element e = box.element; JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { ...
29,151
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); if (block.getState() != Box...
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); if (block.getState() != Box...
29,152
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); if (block.getState() != Box...
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); if (block.getState() != Box...
29,153
public void setText(String string) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Cannot set the content; message is read-only"); content = string; }
public void setText(String string) throws JMSException { if (bodyReadOnly) throw new MessageNotWriteableException("Cannot set the content; message is read-only"); content = string; }
29,156
public final int update(byte[] input, int inputOffset, int inputLength, byte[] output) throws IllegalStateException, ShortBufferException { return update(input, inputOffset, inputLength, output, 0); }
public final int update(byte[] input, int inputOffset, int inputLength, byte[] output) throws IllegalStateException, ShortBufferException { return update(input, inputOffset, inputLength, output, 0); }
29,158
public final int update(byte[] input, int inputOffset, int inputLength, byte[] output) throws IllegalStateException, ShortBufferException { return update(input, inputOffset, inputLength, output, 0); }
public final int update(byte[] input, int inputOffset, int inputLength, byte[] output) throws IllegalStateException, ShortBufferException { return update(input, 0, input.length); }
29,159
public final int doFinal(byte[] input, int inputOffset, int inputLength, byte[] output) throws IllegalStateException, IllegalBlockSizeException, BadPaddingException, ShortBufferException { return doFinal(input, inputOffset, inputLength, output, 0); }
public final int doFinal(byte[] input, int inputOffset, int inputLength, byte[] output) throws IllegalStateException, IllegalBlockSizeException, BadPaddingException, ShortBufferException { return doFinal(input, inputOffset, inputLength, output, 0); }
29,160
public final int doFinal(byte[] input, int inputOffset, int inputLength, byte[] output) throws IllegalStateException, IllegalBlockSizeException, BadPaddingException, ShortBufferException { return doFinal(input, inputOffset, inputLength, output, 0); }
public final int doFinal(byte[] input, int inputOffset, int inputLength, byte[] output) throws IllegalStateException, IllegalBlockSizeException, BadPaddingException, ShortBufferException { return doFinal(new byte[0], 0, 0); }
29,161
protected Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) { return new Rectangle(-bounds.x, -bounds.y, bounds.width, bounds.height); }
public Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) { return new Rectangle(-bounds.x, -bounds.y, bounds.width, bounds.height); }
29,162
protected Connector startCallbackServer(InvokerLocator serverLocator) throws Exception { if (log.isTraceEnabled()) { log.trace(this + " setting up connection to " + serverLocator); } final int MAX_RETRIES = 50; boolean completed = false; Connector server = null; String serializationType = ...
protected Connector startCallbackServer(InvokerLocator serverLocator) throws Exception { if (log.isTraceEnabled()) { log.trace(this + " setting up connection to " + serverLocator); } final int MAX_RETRIES = 50; boolean completed = false; Connector server = null; String serializationType = ...
29,163
protected Connector startCallbackServer(InvokerLocator serverLocator) throws Exception { if (log.isTraceEnabled()) { log.trace(this + " setting up connection to " + serverLocator); } final int MAX_RETRIES = 50; boolean completed = false; Connector server = null; String serializationType = ...
protected Connector startCallbackServer(InvokerLocator serverLocator) throws Exception { if (log.isTraceEnabled()) { log.trace(this + " setting up connection to " + serverLocator); } final int MAX_RETRIES = 50; boolean completed = false; Connector server = null; String serializationType = ...
29,164
public boolean getTransacted() throws JMSException { log.warn("getTransacted should not be handled at the server endpoint"); return false; }
public boolean getTransacted() { log.warn("getTransacted should not be handled at the server endpoint"); return false; }
29,167
public DurableSubscriptionHolder(String name, LocalTopic topic, LocalQueue queue) { this.name = name; this.queue = queue; this.topic = topic; }
public DurableSubscriptionHolder(String name, LocalTopic topic, LocalQueue queue, String selector) { this.name = name; this.queue = queue; this.topic = topic; }
29,168
public ServerConsumerDelegate(String id, Channel destination, InvokerCallbackHandler callbackHandler, ServerSessionDelegate sessionEndpoint, String selector, boolean noLocal, ...
public ServerConsumerDelegate(String id, Channel destination, InvokerCallbackHandler callbackHandler, ServerSessionDelegate sessionEndpoint, String selector, boolean noLocal, ...
29,169
public ServerConsumerDelegate(String id, Channel destination, InvokerCallbackHandler callbackHandler, ServerSessionDelegate sessionEndpoint, String selector, boolean noLocal, ...
public ServerConsumerDelegate(String id, Channel destination, InvokerCallbackHandler callbackHandler, ServerSessionDelegate sessionEndpoint, String selector, boolean noLocal, ...
29,170
public ServerConsumerDelegate(String id, Channel destination, InvokerCallbackHandler callbackHandler, ServerSessionDelegate sessionEndpoint, String selector, boolean noLocal, ...
public ServerConsumerDelegate(String id, Channel destination, InvokerCallbackHandler callbackHandler, ServerSessionDelegate sessionEndpoint, String selector, boolean noLocal, ...
29,171
void setStarted(boolean start) { if (start) { if (log.isTraceEnabled()) log.trace("attempting to add receiver"); boolean added = destination.add(this); if (log.isTraceEnabled()) log.trace("added receiver: " + this.id + ", success=" + added); } else { if...
void setStarted(boolean start) { if (start) { if (log.isTraceEnabled()) log.trace("attempting to add receiver"); boolean added = destination.add(this); if (log.isTraceEnabled()) log.trace("added receiver: " + this.id + ", success=" + added); } else { if...
29,173
void setStarted(boolean start) { if (start) { if (log.isTraceEnabled()) log.trace("attempting to add receiver"); boolean added = destination.add(this); if (log.isTraceEnabled()) log.trace("added receiver: " + this.id + ", success=" + added); } else { if...
void setStarted(boolean start) { if (start) { if (log.isTraceEnabled()) log.trace("attempting to add receiver"); boolean added = destination.add(this); if (log.isTraceEnabled()) log.trace("added receiver: " + this.id + ", success=" + added); } else { if...
29,174
void setStarted(boolean start) { if (start) { if (log.isTraceEnabled()) log.trace("attempting to add receiver"); boolean added = destination.add(this); if (log.isTraceEnabled()) log.trace("added receiver: " + this.id + ", success=" + added); } else { if...
void setStarted(boolean start) { if (start) { if (log.isTraceEnabled()) log.trace("attempting to add receiver"); boolean added = destination.add(this); if (log.isTraceEnabled()) log.trace("added receiver: " + this.id + ", success=" + added); } else { if...
29,175
void setStarted(boolean start) { if (start) { if (log.isTraceEnabled()) log.trace("attempting to add receiver"); boolean added = destination.add(this); if (log.isTraceEnabled()) log.trace("added receiver: " + this.id + ", success=" + added); } else { if...
void setStarted(boolean start) { if (start) { if (log.isTraceEnabled()) log.trace("attempting to add receiver"); boolean added = destination.add(this); if (log.isTraceEnabled()) log.trace("added receiver: " + this.id + ", success=" + added); } else { if...
29,176
void setStarted(boolean start) { if (start) { if (log.isTraceEnabled()) log.trace("attempting to add receiver"); boolean added = destination.add(this); if (log.isTraceEnabled()) log.trace("added receiver: " + this.id + ", success=" + added); } else { if...
void setStarted(boolean start) { if (start) { if (log.isTraceEnabled()) log.trace("attempting to add receiver"); boolean added = destination.add(this); if (log.isTraceEnabled()) log.trace("added receiver: " + this.id + ", success=" + added); } else { if...
29,177
public static Box layout(LayoutContext c, BlockBox outerBox, Content content, Boxing.StyleSetListener listener) { boolean set_bfc = false; if (content instanceof TableContent) { } else { XRLog.layout(Level.WARNING, "Unsupported table type " + content.getClass().getName())...
public static Box layout(LayoutContext c, BlockBox outerBox, Content content, Boxing.StyleSetListener listener) { boolean set_bfc = false; if (content instanceof TableContent) { } else { XRLog.layout(Level.WARNING, "Unsupported table type " + content.getClass().getName())...
29,178
private boolean existsStartup(String nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStateme...
private boolean existsStartup(int nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement(...
29,180
private boolean existsStartup(String nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStateme...
private boolean existsStartup(String nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStateme...
29,181
protected Map getDefaultDDLStatements() { Map sql = new LinkedHashMap(); sql.put("CREATE_STARTUP", "CREATE TABLE JMS_STARTUP (NODE_ID VARCHAR(255) PRIMARY KEY)"); return sql; }
protected Map getDefaultDDLStatements() { Map sql = new LinkedHashMap(); sql.put("CREATE_STARTUP", "CREATE TABLE JMS_STARTUP (NODE_ID INTEGER PRIMARY KEY)"); return sql; }
29,182
private void insertStartup(String nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("INSERT_STARTUP")); ...
private void insertStartup(int nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("INSERT_STARTUP")); p...
29,183
private void insertStartup(String nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("INSERT_STARTUP")); ...
private void insertStartup(String nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("INSERT_STARTUP")); ...
29,184
private void removeStartup(String nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("DELETE_STARTUP")); ...
private void removeStartup(int nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("DELETE_STARTUP")); p...
29,185
private void removeStartup(String nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("DELETE_STARTUP")); ...
private void removeStartup(String nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("DELETE_STARTUP")); ...
29,186
public boolean shutdown(String nodeId) throws Exception { boolean exists = existsStartup(nodeId); if (!exists) { //This shouldn't really happen log.warn("It appears the server did not start up properly!"); return false; } else { removeStartu...
public boolean shutdown(int nodeId) throws Exception { boolean exists = existsStartup(nodeId); if (!exists) { //This shouldn't really happen log.warn("It appears the server did not start up properly!"); return false; } else { removeStartup(n...
29,187
public boolean startup(String nodeId) throws Exception { boolean crashed = existsStartup(nodeId); if (crashed) { //These means the server didn't shutdown cleanly last time - //we must assume it crashed log.warn("It appears the server was not shutdown cleanly l...
public boolean startup(int nodeId) throws Exception { boolean crashed = existsStartup(nodeId); if (crashed) { //These means the server didn't shutdown cleanly last time - //we must assume it crashed log.warn("It appears the server was not shutdown cleanly last...
29,188
private void cleanup(Connection connection, Statement statement, ResultSet result) { if (result != null) { try { result.close(); } catch (SQLException ex) { log.error("Error closing resultset", ex); } } if (statement != null) { ...
private void cleanup(Connection connection, Statement statement, ResultSet result) { if (result != null) { try { result.close(); } catch (SQLException ex) { log.error("Error closing resultset", ex); } } if (statement != null) { ...
29,189
public void init(Map props) throws StoreException { entrySequence = (String) props.get("entry.sequence"); stepSequence = (String) props.get("step.sequence"); entryTable = (String) props.get("entry.table"); entryId = (String) props.get("entry.id"); entryName = (String) props.get("e...
public void init(Map props) throws StoreException { entrySequence = (String) props.get("entry.sequence"); stepSequence = (String) props.get("step.sequence"); entryTable = (String) props.get("entry.table"); entryId = (String) props.get("entry.id"); entryName = (String) props.get("e...
29,191
public void init(Map props) throws StoreException { entrySequence = (String) props.get("entry.sequence"); stepSequence = (String) props.get("step.sequence"); entryTable = (String) props.get("entry.table"); entryId = (String) props.get("entry.id"); entryName = (String) props.get("e...
public void init(Map props) throws StoreException { entrySequence = (String) props.get("entry.sequence"); stepSequence = (String) props.get("step.sequence"); entryTable = (String) props.get("entry.table"); entryId = (String) props.get("entry.id"); entryName = (String) props.get("e...
29,192
public void init(Map props) throws StoreException { entrySequence = (String) props.get("entry.sequence"); stepSequence = (String) props.get("step.sequence"); entryTable = (String) props.get("entry.table"); entryId = (String) props.get("entry.id"); entryName = (String) props.get("e...
public void init(Map props) throws StoreException { entrySequence = (String) props.get("entry.sequence"); stepSequence = (String) props.get("step.sequence"); entryTable = (String) props.get("entry.table"); entryId = (String) props.get("entry.id"); entryName = (String) props.get("e...
29,193
public MessageCallbackHandler() { messages = new BoundedBuffer(capacity); }
public MessageCallbackHandler(Destination destination) { messages = new BoundedBuffer(capacity); }
29,194
public MessageCallbackHandler() { messages = new BoundedBuffer(capacity); }
public MessageCallbackHandler() { this.messages = new BoundedBuffer(capacity); this.destination = destination; }
29,195
public void handleCallback(InvocationRequest invocation) throws HandleCallbackException { Message m = (Message)invocation.getParameter(); if (log.isTraceEnabled()) { log.trace("receiving from server: " + m); } try { messages.put(m); if (log.isTraceEnabled()) { log.trace("message...
public void handleCallback(InvocationRequest invocation) throws HandleCallbackException { JBossMessage jm = (JBossMessage)m; jm.setSessionDelegate(sessionDelegate); Message m = (Message)invocation.getParameter(); if (log.isTraceEnabled()) { JBossMessage jm = (JBossMessage)m; jm.setSessionDelegate(session...
29,196
public Message receive(long timeout) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (listener != null) { throw new JBossJMSException("A message liste...
public Message receive(long timeout) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (listener != null) { throw new JBossJMSException("A message liste...
29,197
public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } while(true) { try { if (log.isTraceEnabled()) { log.trace("blocking to take a message"); } Message m = (Message)messages.take(); listener.onMessage(m); ...
public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } while(true) { try { if (log.isTraceEnabled()) { log.trace("blocking to take a message"); } Message m = (Message)messages.take(); listener.onMessage(m); ...
29,199
public Font getFont() { Font f = font; if (f != null) return f; Component p = parent; if (p != null) return p.getFont(); else return new Font("Dialog", Font.PLAIN, 12); }
public Font getFont() { Font f = font; if (f != null) return f; Component p = parent; if (p != null) return p.getFont(); else return new Font("Dialog", Font.PLAIN, 12); }
29,200
public void hide() { if (isVisible()) { // Avoid NullPointerExceptions by creating a local reference. ComponentPeer currentPeer=peer; if (currentPeer != null) currentPeer.setVisible(false); this.visible = false; // Invalidate the parent if we have...
public void hide() if (isVisible()) // Avoid NullPointerExceptions by creating a local reference. ComponentPeer currentPeer=peer; if (currentPeer != null) currentPeer.setVisible(false); this.visible = false; // Invalidate the parent if we have o...
29,201
public void hide() { if (isVisible()) { // Avoid NullPointerExceptions by creating a local reference. ComponentPeer currentPeer=peer; if (currentPeer != null) currentPeer.setVisible(false); this.visible = false; // Invalidate the parent if we have...
public void hide() { if (isVisible()) { // Avoid NullPointerExceptions by creating a local reference. ComponentPeer currentPeer=peer; if (currentPeer != null) currentPeer.setVisible(false); this.visible = false; // Invalidate the parent if we have...
29,202
public void show() { // We must set visible before showing the peer. Otherwise the // peer could post paint events before visible is true, in which // case lightweight components are not initially painted -- // Container.paint first calls isShowing () before painting itself // and its children. if...
public void show() // We must set visible before showing the peer. Otherwise the // peer could post paint events before visible is true, in which // case lightweight components are not initially painted -- // Container.paint first calls isShowing () before painting itself // and its children. if(...
29,204
public void show() { // We must set visible before showing the peer. Otherwise the // peer could post paint events before visible is true, in which // case lightweight components are not initially painted -- // Container.paint first calls isShowing () before painting itself // and its children. if...
public void show() { // We must set visible before showing the peer. Otherwise the // peer could post paint events before visible is true, in which // case lightweight components are not initially painted -- // Container.paint first calls isShowing () before painting itself // and its children. if...
29,205
public synchronized void print (char ch) { print(new char[]{ch}, 0, 1, false); }
private synchronized void print (String str, boolean println) { print(new char[]{ch}, 0, 1, false); }
29,206
public synchronized void print (char ch) { print(new char[]{ch}, 0, 1, false); }
public synchronized void print (char ch) { try { writeChars(str, 0, str.length()); if (println) writeChars(line_separator, 0, line_separator.length); if (auto_flush) flush(); } catch (InterruptedIOException iioe) { Thread.currentThread().interrupt(); } catch (IOException e) { setError (); } }
29,207
public DateFormatSymbols getDateFormatSymbols() { return formatData; }
public DateFormatSymbols getDateFormatSymbols() { return (DateFormatSymbols) formatData.clone(); }
29,210
public SessionState(ConnectionState parent, SessionDelegate delegate, boolean transacted, int ackMode, boolean xa) { super(parent, delegate); children = new HashSet(); this.acknowledgeMode = ackMode; this.transacted = transacted; this.xa = xa; if (transacted) { ...
public SessionState(ConnectionState parent, SessionDelegate delegate, boolean transacted, int ackMode, boolean xa) { super(parent, delegate); children = new HashSet(); this.acknowledgeMode = ackMode; this.transacted = transacted; this.xa = xa; if (transacted) { ...
29,212
public SessionState(ConnectionState parent, SessionDelegate delegate, boolean transacted, int ackMode, boolean xa) { super(parent, delegate); children = new HashSet(); this.acknowledgeMode = ackMode; this.transacted = transacted; this.xa = xa; if (transacted) { ...
public SessionState(ConnectionState parent, SessionDelegate delegate, boolean transacted, int ackMode, boolean xa) { super(parent, delegate); children = new HashSet(); this.acknowledgeMode = ackMode; this.transacted = transacted; this.xa = xa; if (transacted) { ...
29,213
public static void setupVerticalAlign(Context c, CalculatedStyle style, InlineBox box) { Node node = box.getNode(); // get the parent node for styling Node parent = box.getNode().getParentNode(); Element elem = null; if (box.getNode().getNodeType() == box.getNode().TEXT_NODE) { ...
public static void setupVerticalAlign(Context c, CalculatedStyle style, InlineBox box) { Node node = box.getNode(); // get the parent node for styling Element elem = null; if (box.getNode().getNodeType() == box.getNode().TEXT_NODE) { parent = parent.getParentNode(); ...
29,214
public static void setupVerticalAlign(Context c, CalculatedStyle style, InlineBox box) { Node node = box.getNode(); // get the parent node for styling Node parent = box.getNode().getParentNode(); Element elem = null; if (box.getNode().getNodeType() == box.getNode().TEXT_NODE) { ...
public static void setupVerticalAlign(Context c, CalculatedStyle style, InlineBox box) { Node node = box.getNode(); // get the parent node for styling Node parent = box.getNode().getParentNode(); Element elem = null; if (box.getNode().getNodeType() == box.getNode().TEXT_NODE) { ...
29,215
public Point asPoint( float parentWidth, float parentHeight ) { return _asPoint; /* * // KEEP: this was a version where bgpos was calculated relative to containing size * // however in BackgroundPainter, the value is requested as a percentage...not sure that * // is always vali...
public Point asPoint( float parentWidth, float parentHeight ) { Point pt = null; if (_bgPosIsAbsolute) { if ( _asPoint == null ) { _asPoint = new Point(); float xF = calcFloatProportionalValue(_bgPosXValue, _bgPosXType, parentWidth); float yF = calcFloatProportionalValue(_bgPosYValue, _bgPosYType, parentHei...
29,217
private void pullPointValuesForBGPos( CSSPrimitiveValue primitive ) { String cssText = primitive.getCssText(); String[] pos = cssText.split( " " ); try { Matcher m = CSS_LENGTH_PATTERN.matcher( pos[0] ); m.matches(); String xAsString = m.group( 1 ); f...
private void pullPointValuesForBGPos( CSSPrimitiveValue primitive ) { String cssText = primitive.getCssText(); String[] pos = cssText.split( " " ); try { Matcher m = CSS_LENGTH_PATTERN.matcher( pos[0] ); m.matches(); String xAsString = m.group( 1 ); _...
29,218
private void pullPointValuesForBGPos( CSSPrimitiveValue primitive ) { String cssText = primitive.getCssText(); String[] pos = cssText.split( " " ); try { Matcher m = CSS_LENGTH_PATTERN.matcher( pos[0] ); m.matches(); String xAsString = m.group( 1 ); f...
private void pullPointValuesForBGPos( CSSPrimitiveValue primitive ) { String cssText = primitive.getCssText(); String[] pos = cssText.split( " " ); try { Matcher m = CSS_LENGTH_PATTERN.matcher( pos[0] ); m.matches(); String xAsString = m.group( 1 ); f...
29,219
public boolean selfTest() { if (valid == null) { valid = new Boolean(DIGEST0.equals(Util.toString(new Tiger().digest()))); } return valid.booleanValue(); }
public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new Tiger().digest()))); } return valid.booleanValue(); }
29,220
public MessageCallbackHandler() { this.messages = new BoundedBuffer(capacity); }
public MessageCallbackHandler(boolean isCC) { this.messages = new BoundedBuffer(capacity); }
29,221
public MessageCallbackHandler() { this.messages = new BoundedBuffer(capacity); }
public MessageCallbackHandler() { this.messages = new BoundedBuffer(capacity); }
29,222
public void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } Message m = (Message)callback.getParameter(); try { JBossMessage jm = (JBossMessa...
public void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } Message m = (Message)callback.getParameter(); try { JBossMessage jm = (JBossMessa...
29,223
public void postDeliver(Message m) throws JMSException { sessionDelegate.postDeliver(m.getJMSMessageID(), receiverID); }
public void postDeliver(Message m) throws JMSException { if (!this.isConnectionConsumer) { sessionDelegate.postDeliver(m.getJMSMessageID(), receiverID); } }
29,224
public void preDeliver(Message m) throws JMSException { sessionDelegate.preDeliver(m.getJMSMessageID(), receiverID); }
public void preDeliver(Message m) throws JMSException { if (!this.isConnectionConsumer) { sessionDelegate.preDeliver(m.getJMSMessageID(), receiverID); } }
29,225
public ConnectionState(ConnectionDelegate delegate, String serverId) { super(null, delegate); children = new SyncSet(new HashSet(), new WriterPreferenceReadWriteLock()); resourceManager = ResourceManagerFactory.instance.getResourceManager(serverId); //TODO size should be configurable ...
public ConnectionState(ConnectionDelegate delegate, String serverId) { super(null, delegate); children = new SyncSet(new HashSet(), new WriterPreferenceReadWriteLock()); resourceManager = ResourceManagerFactory.instance.getResourceManager(serverId); //TODO size should be configurable ...
29,226
public void paintPadding(Context c, LineBox line, InlineBox inline) { // paint the background //u.p("painting the padding: " + inline); //int padding_xoff = inline.totalLeftPadding(); int padding_xoff = 0; int padding_yoff = inline.totalTopPadding(); //u.p("padding yoff = "...
public void paintPadding(Context c, LineBox line, InlineBox inline) { // paint the background //u.p("painting the padding: " + inline); //int padding_xoff = inline.totalLeftPadding(); int padding_xoff = 0; int padding_yoff = inline.totalTopPadding(); //u.p("padding yoff = "...
29,228
public void paintPadding(Context c, LineBox line, InlineBox inline) { // paint the background //u.p("painting the padding: " + inline); //int padding_xoff = inline.totalLeftPadding(); int padding_xoff = 0; int padding_yoff = inline.totalTopPadding(); //u.p("padding yoff = "...
public void paintPadding(Context c, LineBox line, InlineBox inline) { // paint the background //u.p("painting the padding: " + inline); //int padding_xoff = inline.totalLeftPadding(); int padding_xoff = 0; int padding_yoff = inline.totalTopPadding(); //u.p("padding yoff = "...
29,229
public void paintText(Context c, int lx, int ly, int ix, int iy, InlineBox inline) { String text = inline.getSubstring(); Graphics g = c.getGraphics(); //adjust font for current settings Font oldfont = c.getGraphics().getFont(); c.getGraphics().setFont( inline.getFont() ); ...
public void paintText(Context c, int lx, int ly, int ix, int iy, InlineBox inline) { String text = inline.getSubstring(); Graphics g = c.getGraphics(); //adjust font for current settings Font oldfont = c.getGraphics().getFont(); c.getGraphics().setFont( inline.getFont() ); ...
29,230
private void alignToLastFloat(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current, int direction) { List floats = getFloats(direction); if (floats.size() > 0) { Point offset = bfc.getOffset(); FloatedBlockBox last = (FloatedBlockBox)floats.g...
private void alignToLastFloat(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current, int direction) { List floats = getFloats(direction); if (floats.size() > 0) { Point offset = bfc.getOffset(); FloatedBlockBox last = (FloatedBlockBox)floats.g...
29,232
public void floatPending(LayoutContext c, BlockFormattingContext bfc, List pendingFloats) { if (pendingFloats.size() > 0) { for (int i = 0; i < pendingFloats.size(); i++) { if (i != 0) { c.setFloatingY(0d); } FloatedBlockBox block = (...
public void floatPending(LayoutContext c, BlockFormattingContext bfc, List pendingFloats) { if (pendingFloats.size() > 0) { for (int i = 0; i < pendingFloats.size(); i++) { if (i != 0) { c.setFloatingY(0d); } FloatedBlockBox block = (...
29,233
public PermissionDescriptor createPermissionDescriptor(Element permission) { return new PermissionDescriptor(permission); }
public PermissionDescriptor createPermissionDescriptor(Element permission) { return new PermissionDescriptor(permission); }
29,234
public void setObject(Serializable object) throws JMSException { if (!messageReadWrite) { throw new MessageNotWriteableException("setObject"); } if (object == null) { objectBytes = null; return; } try { if (object instanceof byte[]) { ...
public void setObject(Serializable object) throws JMSException { if (bodyReadOnly) { throw new MessageNotWriteableException("setObject"); } if (object == null) { objectBytes = null; return; } try { if (object instanceof byte[]) { ...
29,237
public static InlineBox generateMultilineBreak( Context c, Node node, int start, String text, InlineBox prev, InlineBox prev_align, int avail ) { int extra = 0; // calc end index to most words that will fit int end = start; int dbcount =...
public static InlineBox generateMultilineBreak( Context c, Node node, int start, String text, InlineBox prev, InlineBox prev_align, int avail ) { int extra = 0; // calc end index to most words that will fit int end = start; int dbcount =...
29,239
public static InlineBox generateMultilineBreak( Context c, Node node, int start, String text, InlineBox prev, InlineBox prev_align, int avail ) { int extra = 0; // calc end index to most words that will fit int end = start; int dbcount =...
public static InlineBox generateMultilineBreak( Context c, Node node, int start, String text, InlineBox prev, InlineBox prev_align, int avail ) { int extra = 0; // calc end index to most words that will fit int end = start; int dbcount =...
29,240
public static InlineBox generateUnbreakableInlineBox( Context c, Node node, int start, String text, InlineBox prev, InlineBox prev_align, Font font ) { int first_word_index = text.indexOf( " ", start ); if ( first_word_index == -1 ) { first_word_index = text.length(); } String...
public static InlineBox generateUnbreakableInlineBox( Context c, Node node, int start, String text, InlineBox prev, InlineBox prev_align, Font font ) { int first_word_index = text.indexOf( " ", start ); if ( first_word_index == -1 ) { first_word_index = text.length(); } String...
29,241
CalculatedStyle(CalculatedStyle parent, CascadedStyle matched) { this(); _parent = parent; derive(matched); this._styleKey = genStyleKey(); }
CalculatedStyle(CalculatedStyle parent, CascadedStyle matched) { this(); _parent = parent; derive(matched); this._styleKey = genStyleKey(); }
29,242
public Object handlePreDeliver(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); Object txID = state.getCurrentTxId(); if (txID != null) { // the session is non-XA and transacted, or XA and enrolled in a global transaction. An // ...
public Object handlePreDeliver(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); Object txID = state.getCurrentTxId(); if (txID != null) { // the session is non-XA and transacted, or XA and enrolled in a global transaction. An // ...
29,243
public synchronized void startService() throws Exception { try { if (started) { return; } log.debug(this + " starting"); if (queuedExecutorPoolSize < 1) { throw new IllegalArgumentException("queuedExecutorPoolSize mus...
public synchronized void startService() throws Exception { try { if (started) { return; } log.debug(this + " starting"); if (queuedExecutorPoolSize < 1) { throw new IllegalArgumentException("queuedExecutorPoolSize mus...
29,244
public synchronized void startService() throws Exception { try { if (started) { return; } log.debug(this + " starting"); if (queuedExecutorPoolSize < 1) { throw new IllegalArgumentException("queuedExecutorPoolSize mus...
public synchronized void startService() throws Exception { try { if (started) { return; } log.debug(this + " starting"); if (queuedExecutorPoolSize < 1) { throw new IllegalArgumentException("queuedExecutorPoolSize mus...
29,245
public SimpleConnectionManager() { connections = new ConcurrentReaderHashMap(); }
public SimpleConnectionManager() { jmsClients = new HashMap(); sessions = new HashMap(); }
29,246
public void start() throws Exception { getNextBigBlock(); }
public synchronized void start() throws Exception { getNextBigBlock(); }
29,247
public void start() throws NamingException { if (log.isTraceEnabled()) { log.trace("initializing SecurityMetadataStore"); } // Get the JBoss security manager from JNDI InitialContext ic = new InitialContext(); try { Object mgr = ic.lookup(securityDomain); if (log.isTraceEna...
public void start() throws NamingException { if (trace) { log.trace("initializing SecurityMetadataStore"); } // Get the JBoss security manager from JNDI InitialContext ic = new InitialContext(); try { Object mgr = ic.lookup(securityDomain); if (log.isTraceEnabled()) { log.t...
29,249
public void start() throws NamingException { if (log.isTraceEnabled()) { log.trace("initializing SecurityMetadataStore"); } // Get the JBoss security manager from JNDI InitialContext ic = new InitialContext(); try { Object mgr = ic.lookup(securityDomain); if (log.isTraceEna...
public void start() throws NamingException { if (log.isTraceEnabled()) { log.trace("initializing SecurityMetadataStore"); } // Get the JBoss security manager from JNDI InitialContext ic = new InitialContext(); try { Object mgr = ic.lookup(securityDomain); if (trace) { log.t...
29,250
public boolean selfTest() { if (valid == null) { valid = new Boolean(DIGEST0.equals(Util.toString(new MD2().digest()))); } return valid.booleanValue(); }
public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new MD2().digest()))); } return valid.booleanValue(); }
29,251
public void testGetSession1() throws Exception { Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); try { Session sess2 = ((XASession)sess).getSession(); fail("Should throw IllegalStateException"); } ...
public void testGetSession1() throws Exception { Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); try { Session sess2 = ((XASession)sess).getSession(); fail("Should throw IllegalStateException"); } ...
29,255
public IdBlock getIdBlock(int size) throws JMSException { throw new IllegalStateException("This method has been deprecated and shouldn't be used"); }
public IdBlock getIdBlock(int size) throws JMSException { try { return serverPeer.getMessageIdManager().getIdBlock(size); } catch (Exception e) { throw new MessagingJMSException("Failed to get id block", e); } }
29,256
ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException;
ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionID) throws JMSException;
29,257
public void paintFixed( Context c, Box block ) { int xoff = 0; int yoff = 0; xoff = c.canvas.getWidth(); yoff = c.canvas.getHeight(); if ( block.right_set ) { xoff = xoff - block.width; } if ( block.bottom_set ) { //joshy: this should really be ...
public void paintFixed( Context c, Box block ) { int xoff = 0; int yoff = 0; xoff = c.canvas.getWidth(); yoff = c.canvas.getHeight(); if ( block.right_set ) { xoff = xoff - block.width; } if ( block.bottom_set ) { //joshy: this should really be ...
29,259
public void paintFixed( Context c, Box block ) { int xoff = 0; int yoff = 0; xoff = c.canvas.getWidth(); yoff = c.canvas.getHeight(); if ( block.right_set ) { xoff = xoff - block.width; } if ( block.bottom_set ) { //joshy: this should really be ...
public void paintFixed( Context c, Box block ) { int xoff = 0; int yoff = 0; xoff = c.canvas.getWidth(); yoff = c.canvas.getHeight(); if ( block.right_set ) { xoff = xoff - block.width; } if ( block.bottom_set ) { //joshy: this should really be ...
29,260
public void paintFixed( Context c, Box block ) { int xoff = 0; int yoff = 0; xoff = c.canvas.getWidth(); yoff = c.canvas.getHeight(); if ( block.right_set ) { xoff = xoff - block.width; } if ( block.bottom_set ) { //joshy: this should really be ...
public void paintFixed( Context c, Box block ) { int xoff = 0; int yoff = 0; xoff = c.canvas.getWidth(); yoff = c.canvas.getHeight(); if ( block.right_set ) { xoff = xoff - block.width; } if ( block.bottom_set ) { //joshy: this should really be ...
29,261
public void addTemporaryDestination(JBossDestination dest) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (!dest.isTemporary()) { throw new InvalidDestinationException("Destination:" + dest + " is not a temporary destination")...
public void addTemporaryDestination(JBossDestination dest) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (!dest.isTemporary()) { throw new InvalidDestinationException("Destination:" + dest + " is not a temporary destination")...
29,263
public void deleteTemporaryDestination(JBossDestination dest) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (!dest.isTemporary()) { throw new InvalidDestinationException("Destination:" + dest + " is not a temporary destinatio...
public void deleteTemporaryDestination(JBossDestination dest) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (!dest.isTemporary()) { throw new InvalidDestinationException("Destination:" + dest + " is not a temporary destinatio...
29,264
public void beforeCommit(boolean onePhase) throws Exception { handleBeforeCommit(onePhase, refsToAdd, refsToRemove, tx); }
public void beforeCommit(boolean onePhase) throws Exception { if (onePhase) { handleBeforeCommit1PC(refsToAdd, refsToRemove, tx); } else { handleBeforeCommit2PC(refsToRemove, tx); } }
29,265
public void beforeRollback(boolean onePhase) throws Exception { handleBeforeRollback(onePhase, refsToAdd, tx); }
public void beforeRollback(boolean onePhase) throws Exception { if (onePhase) { } else { handleBeforeRollback(refsToAdd, tx); } }
29,266
public void addReference(long channelID, MessageReference ref, Transaction tx) throws Exception { if (tx != null) { //In a tx so we just add the ref in the tx in memory for now TransactionCallback callback = getCallback(tx); callback.addReferenceToAdd(channelID, ref); } ...
public void addReference(long channelID, MessageReference ref, Transaction tx) throws Exception { if (tx != null) { //In a tx so we just add the ref in the tx in memory for now TransactionCallback callback = getCallback(tx); callback.addReferenceToAdd(channelID, ref); } ...
29,268
public void addReference(long channelID, MessageReference ref, Transaction tx) throws Exception { if (tx != null) { //In a tx so we just add the ref in the tx in memory for now TransactionCallback callback = getCallback(tx); callback.addReferenceToAdd(channelID, ref); } ...
public void addReference(long channelID, MessageReference ref, Transaction tx) throws Exception { if (tx != null) { //In a tx so we just add the ref in the tx in memory for now TransactionCallback callback = getCallback(tx); callback.addReferenceToAdd(channelID, ref); } ...
29,269
public void addReference(long channelID, MessageReference ref, Transaction tx) throws Exception { if (tx != null) { //In a tx so we just add the ref in the tx in memory for now TransactionCallback callback = getCallback(tx); callback.addReferenceToAdd(channelID, ref); } ...
public void addReference(long channelID, MessageReference ref, Transaction tx) throws Exception { if (tx != null) { //In a tx so we just add the ref in the tx in memory for now TransactionCallback callback = getCallback(tx); callback.addReferenceToAdd(channelID, ref); } ...
29,270
public void addReferences(long channelID, List references) throws Exception { Connection conn = null; PreparedStatement psReference = null; PreparedStatement psMessage = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); Iterator...
public void addReferences(long channelID, List references, boolean loaded) throws Exception { Connection conn = null; PreparedStatement psReference = null; PreparedStatement psMessage = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ...
29,271
public void addReferences(long channelID, List references) throws Exception { Connection conn = null; PreparedStatement psReference = null; PreparedStatement psMessage = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); Iterator...
public void addReferences(long channelID, List references) throws Exception { Connection conn = null; PreparedStatement psReference = null; PreparedStatement psMessage = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); Iterator...
29,272
public void addReferences(long channelID, List references) throws Exception { Connection conn = null; PreparedStatement psReference = null; PreparedStatement psMessage = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); Iterator...
public void addReferences(long channelID, List references) throws Exception { Connection conn = null; PreparedStatement psReference = null; PreparedStatement psMessage = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); Iterator...
29,273
public void addReferences(long channelID, List references) throws Exception { Connection conn = null; PreparedStatement psReference = null; PreparedStatement psMessage = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); Iterator...
public void addReferences(long channelID, List references) throws Exception { Connection conn = null; PreparedStatement psReference = null; PreparedStatement psMessage = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); Iterator...
29,274