bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
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); } | 45,599 |
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); } | 45,600 |
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 = ... | 45,601 |
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 = ... | 45,602 |
public void adjustWidth(Context c, BlockBox block) { //c.getExtents().width = 150; //u.p("current width = " + c.getExtents().width); if(!block.isElement()) { return; } Element elem = block.getElement(); if (c.css.hasProperty(elem, "width", false)) { float new_width = c.... | public void adjustWidth(Context c, BlockBox block) { //c.getExtents().width = 150; //u.p("current width = " + c.getExtents().width); if(!block.isElement()) { return; } Element elem = block.getElement(); if (c.css.hasProperty(elem, "width", false)) {float new_width = c.css.getFloatProperty(elem, "width", c.getExte... | 45,604 |
public Box layout(Context c, Element elem) { // this is to keep track of when we are inside of a form if(elem.getNodeName().equals("form")) { if(elem.hasAttribute("name")) { String name = elem.getAttribute("name"); String action = elem.getAttribute("action"); ... | publicBoxlayout(Contextc,Elementelem){//thisistokeeptrackofwhenweareinsideofaformif(elem.getNodeName().equals("form")){if(elem.hasAttribute("name")){Stringname=elem.getAttribute("name");Stringaction=elem.getAttribute("action");c.setForm(name,action);}}//u.p("BoxLayout.layout():"+elem);//u.p("boxlayoutfor:"+elem.getNode... | 45,605 |
public Box layout(Context c, Element elem) { // this is to keep track of when we are inside of a form if(elem.getNodeName().equals("form")) { if(elem.hasAttribute("name")) { String name = elem.getAttribute("name"); String action = elem.getAttribute("action"); ... | publicBoxlayout(Contextc,Elementelem){//thisistokeeptrackofwhenweareinsideofaformif(elem.getNodeName().equals("form")){if(elem.hasAttribute("name")){Stringname=elem.getAttribute("name");Stringaction=elem.getAttribute("action");c.setForm(name,action);}}//u.p("BoxLayout.layout():"+elem);//u.p("boxlayoutfor:"+elem.getNode... | 45,606 |
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { if (log.... | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException{if (log.isTraceEnabled()) { log.trace("Attempting to create ServerConsumerDelegate with noLocal:" + noLocal); }if ("".equals(selector)){selector = null;}JBossDes... | 45,608 |
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { if (log.... | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { if (log.... | 45,609 |
protected synchronized String generateConsumerID() { //if (log.isTraceEnabled()) { log.trace("consumerIDCounter:" + consumerIDCounter); } //return "Consumer" + consumerIDCounter++; return "Consumer" + new GUID().toString(); } | protected synchronized String generateConsumerID(){//if (log.isTraceEnabled()) { log.trace("consumerIDCounter:" + consumerIDCounter); }//return "Consumer" + consumerIDCounter++;return "Consumer" + new GUID().toString();} | 45,610 |
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; } | 45,611 |
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; } | 45,612 |
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, ... | 45,613 |
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, ... | 45,614 |
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, ... | 45,615 |
public ServerConsumerDelegate(String id, Channel destination, InvokerCallbackHandler callbackHandler, ServerSessionDelegate sessionEndpoint, String selector, boolean noLocal, ... | started = sessionEndpoint.connectionEndpoint.started; destination.add(this); public ServerConsumerDelegate(String id, Channel destination,started = sessionEndpoint.connectionEndpoint.started; destination.add(this); started = sessionEndpoint.connectionEndpoint.started; destination.add(this); started = sessionEndpoint.c... | 45,616 |
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... | 45,617 |
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... | 45,618 |
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... | 45,619 |
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... | 45,620 |
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... | 45,621 |
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())... | 45,622 |
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(... | 45,624 |
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... | 45,625 |
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; } | 45,626 |
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... | 45,627 |
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")); ... | 45,628 |
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... | 45,629 |
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")); ... | 45,630 |
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... | 45,631 |
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... | 45,632 |
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) { ... | 45,633 |
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... | 45,635 |
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... | 45,636 |
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... | 45,637 |
public MessageCallbackHandler() { messages = new BoundedBuffer(capacity); } | public MessageCallbackHandler(Destination destination) { messages = new BoundedBuffer(capacity); } | 45,638 |
public MessageCallbackHandler() { messages = new BoundedBuffer(capacity); } | public MessageCallbackHandler() { this.messages = new BoundedBuffer(capacity); this.destination = destination; } | 45,639 |
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... | 45,640 |
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... | 45,641 |
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); ... | 45,643 |
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); ... | 45,644 |
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); } | 45,645 |
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 one... | 45,646 |
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... | 45,647 |
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(!... | 45,649 |
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... | 45,650 |
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); } | 45,651 |
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 (); } } | 45,652 |
public DateFormatSymbols getDateFormatSymbols() { return formatData; } | public DateFormatSymbols getDateFormatSymbols() { return (DateFormatSymbols) formatData.clone(); } | 45,655 |
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) { ... | 45,657 |
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) { ... | 45,658 |
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(); ... | 45,659 |
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) { ... | 45,660 |
public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 45,661 |
public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 45,662 |
public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 45,663 |
public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 45,664 |
public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 45,665 |
public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 45,666 |
private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 45,667 |
private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 45,668 |
private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 45,669 |
private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 45,670 |
private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 45,671 |
private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 45,672 |
private static String[] words( InlineTextBox box ) { String text = box.getSubstring(); String[] words = text.split( "\\s" ); return words; } | private static String[] words(InlineTextBox box) { String text = box.getSubstring(); String[] words = text.split( "\\s" ); return words; } | 45,673 |
private static String[] words( InlineTextBox box ) { String text = box.getSubstring(); String[] words = text.split( "\\s" ); return words; } | private static String[] words( InlineTextBox box ) { String text = box.getSubstring(); String[] words = text.split("\\s"); return words; } | 45,674 |
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 ) { 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... | 45,676 |
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 ); _... | 45,677 |
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... | 45,678 |
public static String classNameOnly( Object o ) { String s = "[null object ref]"; if ( o != null ) { s = classNameOnly( o.getClass().getName() ); } return s; } | public static String classNameOnly(Object o) { String s = "[null object ref]"; if ( o != null ) { s = classNameOnly( o.getClass().getName() ); } return s; } | 45,679 |
public static String classNameOnly( Object o ) { String s = "[null object ref]"; if ( o != null ) { s = classNameOnly( o.getClass().getName() ); } return s; } | public static String classNameOnly( Object o ) { String s = "[null object ref]"; if ( o != null ) { s = classNameOnly( o.getClass().getName() ); } return s; } | 45,680 |
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(); } | 45,681 |
public CannotProceedException() { super(); } | public CannotProceedException() { super(); } | 45,682 |
public Name getRemainingNewName() { return remainingNewName; } | public Name getRemainingNewName() { return remainingNewName; } | 45,683 |
public void setAltName(Name altName) { this.altName = altName; } | public void setAltName(Name altName) { this.altName = altName; } | 45,684 |
public void setAltNameCtx(Context altNameCtx) { this.altNameCtx = altNameCtx; } | public void setAltNameCtx(Context altNameCtx) { this.altNameCtx = altNameCtx; } | 45,685 |
public void setEnvironment(Hashtable environment) { this.environment = environment; } | public void setEnvironment(Hashtable environment) { this.environment = environment; } | 45,686 |
public void setRemainingNewName(Name newName) { remainingNewName = (Name) newName.clone(); } | public void setRemainingNewName(Name newName) { remainingNewName = (Name) newName.clone(); } | 45,687 |
public Object clone(); | public Object clone(); | 45,688 |
public MessageCallbackHandler() { this.messages = new BoundedBuffer(capacity); } | public MessageCallbackHandler(boolean isCC) { this.messages = new BoundedBuffer(capacity); } | 45,689 |
public MessageCallbackHandler() { this.messages = new BoundedBuffer(capacity); } | public MessageCallbackHandler() { this.messages = new BoundedBuffer(capacity); } | 45,690 |
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... | 45,691 |
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); } } | 45,692 |
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); } } | 45,693 |
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 ... | 45,694 |
public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = LayoutUtil.getBorder(box, c.getCurrentStyle()); Border margin = c.ge... | public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = LayoutUtil.getBo... | 45,695 |
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 = ... | 45,697 |
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 = "... | 45,698 |
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 = "... | 45,699 |
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() ); ... | 45,700 |
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() ); ... | publicvoidpaintText(Contextc,intlx,intly,intix,intiy,InlineBoxinline){Stringtext=inline.getSubstring();Graphicsg=c.getGraphics();//adjustfontforcurrentsettingsFontoldfont=c.getGraphics().getFont();c.getGraphics().setFont(inline.getFont());Coloroldcolor=c.getGraphics().getColor();c.getGraphics().setColor(inline.color);F... | 45,701 |
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... | 45,703 |
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 = (... | 45,704 |
public PermissionDescriptor createPermissionDescriptor(Element permission) { return new PermissionDescriptor(permission); } | public PermissionDescriptor createPermissionDescriptor(Element permission) { return new PermissionDescriptor(permission); } | 45,706 |
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[]) { ... | 45,709 |
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 =... | 45,711 |
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 =... | 45,712 |
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(); } St... | 45,713 |
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... | 45,714 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.