bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void read(java.io.InputStream istream) throws MARSHAL { try { byte[] xMagic = new byte[MAGIC.length]; istream.read(xMagic); if (!Arrays.equals(xMagic, MAGIC)) { MARSHAL m = new MARSHAL("Not a GIOP message"); m.minor = Minor.Giop; ...
public void read(java.io.InputStream istream) throws MARSHAL, EOFException { try { byte[] xMagic = new byte[MAGIC.length]; istream.read(xMagic); if (!Arrays.equals(xMagic, MAGIC)) { MARSHAL m = new MARSHAL("Not a GIOP message"); m.minor = Minor.G...
33,786
public void read(java.io.InputStream istream) throws MARSHAL { try { byte[] xMagic = new byte[MAGIC.length]; istream.read(xMagic); if (!Arrays.equals(xMagic, MAGIC)) { MARSHAL m = new MARSHAL("Not a GIOP message"); m.minor = Minor.Giop; ...
public void read(java.io.InputStream istream) throws MARSHAL { try { byte[] xMagic = new byte[MAGIC.length]; istream.read(xMagic); if (!Arrays.equals(xMagic, MAGIC)) { MARSHAL m = new MARSHAL("Not a GIOP message"); m.minor = Minor.Giop; ...
33,787
public void read(java.io.InputStream istream) throws MARSHAL { try { byte[] xMagic = new byte[MAGIC.length]; istream.read(xMagic); if (!Arrays.equals(xMagic, MAGIC)) { MARSHAL m = new MARSHAL("Not a GIOP message"); m.minor = Minor.Giop; ...
public void read(java.io.InputStream istream) throws MARSHAL { try { byte[] xMagic = new byte[MAGIC.length]; istream.read(xMagic); if (!Arrays.equals(xMagic, MAGIC)) { MARSHAL m = new MARSHAL("Not a GIOP message"); m.minor = Minor.Giop; ...
33,788
public static Image getImage(Context c, Node node) { if (node.getNodeType() != node.ELEMENT_NODE) { return null; } String src = ((Element) node).getAttribute("src"); Image img = null; try { img = ImageUtil.loadImage(c, src); } catch (Exception ex) { ...
public static Image getImage(Context c, Node node) { if (node.getNodeType() != Node.ELEMENT_NODE) { return null; } String src = ((Element) node).getAttribute("src"); Image img = null; try { img = ImageUtil.loadImage(c, src); } catch (Exception ex) { ...
33,791
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = readDestination(in); replyToDestination = readDestination(in); jmsType = readString(in); Map m = readMap(in, true); if (!(m instanceof HashMap)) ...
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = readDestination(in); replyToDestination = readDestination(in); jmsType = readString(in); Map m = readMap(in, true); if (!(m instanceof HashMap)) ...
33,792
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); writeDestination(out, destination); writeDestination(out, replyToDestination); writeString(out, jmsType); writeMap(out, properties, true); if (correlationID == null && co...
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); writeDestination(out, destination); writeDestination(out, replyToDestination); writeString(out, jmsType); writeMap(out, properties, true); if (correlationID == null && co...
33,793
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); Ser...
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); Ser...
33,794
public KeyPair generate() { if (p == null) { BigInteger[] params = new RFC2631(m, l, rnd).generateParameters(); seed = params[RFC2631.DH_PARAMS_SEED]; counter = params[RFC2631.DH_PARAMS_COUNTER]; q = params[RFC2631.DH_PARAMS_Q]; p = params[RFC2631.DH_PARAMS_P]; j = p...
public KeyPair generate() { if (p == null) { BigInteger[] params = new RFC2631(m, l, rnd).generateParameters(); seed = params[RFC2631.DH_PARAMS_SEED]; counter = params[RFC2631.DH_PARAMS_COUNTER]; q = params[RFC2631.DH_PARAMS_Q]; p = params[RFC2631.DH_PARAMS_P]; j = p...
33,795
public KeyPair generate() { if (p == null) { BigInteger[] params = new RFC2631(m, l, rnd).generateParameters(); seed = params[RFC2631.DH_PARAMS_SEED]; counter = params[RFC2631.DH_PARAMS_COUNTER]; q = params[RFC2631.DH_PARAMS_Q]; p = params[RFC2631.DH_PARAMS_P]; j = p...
public KeyPair generate() { if (p == null) { BigInteger[] params = new RFC2631(m, l, rnd).generateParameters(); seed = params[RFC2631.DH_PARAMS_SEED]; counter = params[RFC2631.DH_PARAMS_COUNTER]; q = params[RFC2631.DH_PARAMS_Q]; p = params[RFC2631.DH_PARAMS_P]; j = p...
33,796
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? Object params = attributes.get(DH_PARAMETERS); // find out...
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? Object params = attributes.get(DH_PARAMETERS); // find out...
33,797
public void run() { try { if (log.isTraceEnabled()) { log.trace("activating consumer endpoint"); } consumerDelegate.activate(); } catch(Throwable t) { log.error("Consumer endpoint activation failed", t); if (t.getCause() != n...
public void run() { try { if (log.isTraceEnabled()) { log.trace("activating consumer endpoint"); } consumerDelegate.activate(); } catch(Throwable t) { log.error("Consumer endpoint activation failed", t); if (t.getCause() != n...
33,799
public MessageCallbackHandler(boolean isCC, int ackMode, Executor executor, Executor pooledExecutor) { buffer = new SynchronousChannel(); isConnectionConsumer = isCC; receiverLock = new Object(); activationLock = new Object(); this.ackMode = ackMode; thi...
public MessageCallbackHandler(boolean isCC, int ackMode, Executor executor, Executor pooledExecutor, SessionDelegate sess, ConsumerDelegate cons, int consumerID) { buffer = new SynchronousChannel(); isConnectionConsumer = isCC; receiverLock = new Object(); activationLock = ne...
33,800
protected void activateConsumer() throws JMSException { // We execute this on a separate thread to avoid the case where the asynchronous delivery // arrives before we have returned from the synchronus call, which would cause us to lose // the message try { if (log.isTraceEnab...
protected void activateConsumer() throws JMSException { // We execute this on a separate thread to avoid the case where the asynchronous delivery // arrives before we have returned from the synchronus call, which would cause us to lose // the message try { if (trace) { log.tr...
33,802
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, String consumerID, boolean isConnectionConsumer, ...
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, int consumerID, boolean isConnectionConsumer, ...
33,803
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, String consumerID, boolean isConnectionConsumer, ...
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, String consumerID, boolean isConnectionConsumer, ...
33,804
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, String consumerID, boolean isConnectionConsumer, ...
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, String consumerID, boolean isConnectionConsumer, ...
33,805
protected Message getMessageNow() throws JMSException { MessageDelegate del = (MessageDelegate)consumerDelegate.getMessageNow(); if (del != null) { return processMessage(del); } else { return null; } }
protected Message getMessageNow() throws JMSException { MessageDelegate del = (MessageDelegate)consumerDelegate.getMessageNow(false); if (del != null) { return processMessage(del); } else { return null; } }
33,806
protected static void postDeliver(SessionDelegate sess, String consumerID, Message m, boolean isConnectionConsumer) throws JMSException { //If this is the callback-handler for a connection consumer...
protected static void postDeliver(SessionDelegate sess, int consumerID, Message m, boolean isConnectionConsumer) throws JMSException { //If this is the callback-handler for a connection consumer we...
33,807
protected static void preDeliver(SessionDelegate sess, String consumerID, Message m, boolean isConnectionConsumer) throws JMSException { //If this is the callback-handler for a connection consumer we ...
protected static void preDeliver(SessionDelegate sess, int consumerID, Message m, boolean isConnectionConsumer) throws JMSException { //If this is the callback-handler for a connection consumer we don...
33,808
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
33,809
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
33,810
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
33,811
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
33,812
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
33,813
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
33,814
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
33,815
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
33,816
public synchronized void setMessageListener(MessageListener listener) throws JMSException { // JMS consumer is single threaded, so it shouldn't be possible to set a MessageListener // while another thread is receiving if (receiverThread != null) { // Should never happen th...
public synchronized void setMessageListener(MessageListener listener) throws JMSException { // JMS consumer is single threaded, so it shouldn't be possible to set a MessageListener // while another thread is receiving if (receiverThread != null) { // Should never happen th...
33,817
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) { ...
protected 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) { ...
33,818
private static void prepareBox(InlineBox prev_align, InlineTextBox inline, Context c) { inline.whitespace = WhitespaceStripper.getWhitespace(c.getCurrentStyle()); if (prev_align != null && !prev_align.break_after && !inline.break_before ) { inline.x = pr...
private static void prepareBox(InlineBox prev_align, InlineTextBox inline, Context c) { if (prev_align != null && !prev_align.break_after && !inline.break_before ) { inline.x = prev_align.x + prev_align.getWidth(); } else { inline.x = ...
33,820
private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, int width, int x, Context c, Box block, boolean last, int minHeight, LinkedList pushedOnFirstLine) { if (c.hasFirstLineStyles()) { //first pop element styles pushed on first...
private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, Rectangle bounds, Context c, Box block, boolean last, int minHeight, LinkedList pushedOnFirstLine) { if (c.hasFirstLineStyles()) { //first pop element styles pushed on first...
33,821
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(graph.getModel().isEdge(cell)) { ...
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(graph.getModel().isEdge(cell)) { ...
33,823
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(graph.getModel().isEdge(cell)) { ...
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(graph.getModel().isEdge(cell)) { ...
33,824
protected Iterator doBuildDeclarations(CSSPrimitiveValue[] primVals, boolean important, CSSName cssName, int origin) { StringBuffer pos = new StringBuffer(); String suffix = " ...
protected Iterator doBuildDeclarations(CSSPrimitiveValue[] primVals, boolean important, CSSName cssName, int origin) { StringBuffer pos = new StringBuffer(); String suffix = " ...
33,825
public synchronized void start(String containerConfig) throws Exception { if (isStarted()) { return; } log.debug("starting service container"); try { setEnvironmentServerIndex(serverIndex); sc = new ServiceContainer(containerConfig, null, serverIndex); ...
public synchronized void start(String containerConfig, boolean clearDatabase) throws Exception { if (isStarted()) { return; } log.debug("starting service container"); try { setEnvironmentServerIndex(serverIndex); sc = new ServiceContainer(containerConfig, null,...
33,827
public synchronized void start(String containerConfig) throws Exception { if (isStarted()) { return; } log.debug("starting service container"); try { setEnvironmentServerIndex(serverIndex); sc = new ServiceContainer(containerConfig, null, serverIndex); ...
public synchronized void start(String containerConfig) throws Exception { if (isStarted()) { return; } log.debug("starting service container"); try { setEnvironmentServerIndex(serverIndex); sc = new ServiceContainer(containerConfig, null, serverIndex); ...
33,828
protected void init(Element function) { type = function.getAttribute("type"); try { setId(Integer.parseInt(function.getAttribute("id"))); } catch (NumberFormatException e) { } if (function.getAttribute("name") != null) { name = function.getAttribute("name"); ...
protected void init(Element function) { type = function.getAttribute("type"); try { setId(Integer.parseInt(function.getAttribute("id"))); } catch (NumberFormatException e) { } if (function.getAttribute("name") != null) { name = function.getAttribute("name"); ...
33,829
protected void init(Element function) { type = function.getAttribute("type"); try { setId(Integer.parseInt(function.getAttribute("id"))); } catch (NumberFormatException e) { } if (function.getAttribute("name") != null) { name = function.getAttribute("name"); ...
protected void init(Element function) { type = function.getAttribute("type"); try { setId(Integer.parseInt(function.getAttribute("id"))); } catch (NumberFormatException e) { } if (function.getAttribute("name") != null) { name = function.getAttribute("name"); ...
33,830
public void onMessage(Message message) { try { log.trace("Received message"); TextMessage tm = (TextMessage)message; if (!tm.getText().equals("testing testing")) { failed = true; } ...
public synchronized void onMessage(Message message) { try { log.trace("Received message"); TextMessage tm = (TextMessage)message; if (!tm.getText().equals("testing testing")) { failed = true; ...
33,831
public void onMessage(Message message) { try { log.trace("Received message"); TextMessage tm = (TextMessage)message; if (!tm.getText().equals("testing testing")) { failed = true; } ...
public void onMessage(Message message) { try { log.trace("Received message " + this); TextMessage tm = (TextMessage)message; if (!tm.getText().equals("testing testing")) { failed = true; }...
33,832
public long getLastModified() throws IOException { throw new UnsupportedOperationException("not yet implemented"); }
public long getLastModified() throws IOException { Date now = new Date(); return now.getTime(); }
33,834
public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); Border margin = c.getCurrentStyle().getMarginWidth(width, height, c.getCtx()); Rectangle bounds = new Rectangle(block.x + margin.left, bloc...
public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); Border margin = block.getMarginWidth(c, width); Rectangle bounds = new Rectangle(block.x + margin.left, block.y + margin.top, ...
33,835
public boolean canInitialize(String workflowName, int initialState) throws WorkflowException { return new BasicWorkflow(getRemoteUser()).canInitialize(workflowName, initialState); }
public boolean canInitialize(String workflowName, int initialState) { return new BasicWorkflow(getRemoteUser()).canInitialize(workflowName, initialState); }
33,836
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { return new BasicWorkflow(getRemoteUser()).canModifyEntryState(id, newState); }
public boolean canModifyEntryState(long id, int newState) { return new BasicWorkflow(getRemoteUser()).canModifyEntryState(id, newState); }
33,837
public int[] getAvailableActions(long id) throws WorkflowException { return new BasicWorkflow(getRemoteUser()).getAvailableActions(id); }
public int[] getAvailableActions(long id) { return new BasicWorkflow(getRemoteUser()).getAvailableActions(id); }
33,838
public List getCurrentSteps(long id) throws StoreException { return new BasicWorkflow(getRemoteUser()).getCurrentSteps(id); }
public List getCurrentSteps(long id) { return new BasicWorkflow(getRemoteUser()).getCurrentSteps(id); }
33,839
public int getEntryState(long id) throws WorkflowException { return new BasicWorkflow(getRemoteUser()).getEntryState(id); }
public int getEntryState(long id) { return new BasicWorkflow(getRemoteUser()).getEntryState(id); }
33,840
public List getHistorySteps(long id) throws StoreException { return new BasicWorkflow(getRemoteUser()).getHistorySteps(id); }
public List getHistorySteps(long id) { return new BasicWorkflow(getRemoteUser()).getHistorySteps(id); }
33,841
public PropertySet getPropertySet(long id) throws StoreException { return new BasicWorkflow(getRemoteUser()).getPropertySet(id); }
public PropertySet getPropertySet(long id) { return new BasicWorkflow(getRemoteUser()).getPropertySet(id); }
33,842
public List getSecurityPermissions(long id) throws WorkflowException { return new BasicWorkflow(getRemoteUser()).getSecurityPermissions(id); }
public List getSecurityPermissions(long id) { return new BasicWorkflow(getRemoteUser()).getSecurityPermissions(id); }
33,843
public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws FactoryException { return new BasicWorkflow(getRemoteUser()).getWorkflowDescriptor(workflowName); }
public WorkflowDescriptor getWorkflowDescriptor(String workflowName) { return new BasicWorkflow(getRemoteUser()).getWorkflowDescriptor(workflowName); }
33,844
public String getWorkflowName(long id) throws StoreException { return new BasicWorkflow(getRemoteUser()).getWorkflowName(id); }
public String getWorkflowName(long id) { return new BasicWorkflow(getRemoteUser()).getWorkflowName(id); }
33,845
public String[] getWorkflowNames() throws FactoryException { return new BasicWorkflow(getRemoteUser()).getWorkflowNames(); }
public String[] getWorkflowNames() { return new BasicWorkflow(getRemoteUser()).getWorkflowNames(); }
33,846
public Shape createStrokedShape(Shape s) throws NotImplementedException { // FIXME: Implement this throw new Error("not implemented"); }
public Shape createStrokedShape(Shape s) { // FIXME: Implement this throw new Error("not implemented"); }
33,848
public Shape createStrokedShape(Shape s) throws NotImplementedException { // FIXME: Implement this throw new Error("not implemented"); }
public Shape createStrokedShape(Shape s) throws NotImplementedException { // FIXME: Implement this PathIterator pi = s.getPathIterator( new AffineTransform() ); if( dash == null ) return solidStroke( pi ); return dashedStroke( pi ); }
33,849
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Session...
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() ...
33,850
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Session...
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Session...
33,851
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Session...
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Session...
33,852
public void mouseDragged(MouseEvent e) { if(e.getComponent() instanceof HTMLPanel) { panel = (HTMLPanel)e.getComponent(); Box box = panel.findBox(e.getX(),e.getY()); if(box == null) return; //u.p("pressed " + box); // if box is text node then start selec...
public void mouseDragged(MouseEvent e) { if(e.getComponent() instanceof HTMLPanel) { panel = (HTMLPanel)e.getComponent(); Box box = panel.findBox(e.getX(),e.getY()); if(box == null) return; //u.p("pressed " + box); // if box is text node then start selec...
33,854
protected void remove(DequeNode node) { if (head == node) { if (node.next != null) { head = node.next; } else { head = null; } } if (tail == node) { if (node.prev != null) { tail = node.p...
private void remove(DequeNode node) { if (head == node) { if (node.next != null) { head = node.next; } else { head = null; } } if (tail == node) { if (node.prev != null) { tail = node.pre...
33,858
public static boolean isBlockOrInlineElementBox(Context c, Box box) { if((box.node.getNodeType()==Node.TEXT_NODE && !InlineLayout.isBlockNode(box.getRealElement(),c)) || box.isElement()) { return true; } return false; }
public static boolean isBlockOrInlineElementBox(Context c, Box box) { if((box.node.getNodeType()==Node.TEXT_NODE && !DefaultLayout.isBlockNode(box.getRealElement(),c)) || box.isElement()) { return true; } return false; }
33,859
Resource getResource(String name) { try { File file = new File(dir, name).getCanonicalFile(); if (file.exists()) return new FileResource(this, file); } catch (IOException e) { // Fall through... } return null; }
Resource getResource(String name) { try { File file = new File(dir, name).getCanonicalFile(); if (file.exists()) return new FileResource(this, file); } catch (IOException e) { // Fall through... } return null; }
33,860
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex != -1) { View child = getView(childIndex); Shape result = child.modelToView(pos, a, bias); if (result == null) throw new As...
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex != -1) { View child = getView(childIndex); Rectangle r = a.getBounds(); childAllocation(childIndex, r); Shape result = child.modelToView(po...
33,861
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex != -1) { View child = getView(childIndex); Shape result = child.modelToView(pos, a, bias); if (result == null) throw new As...
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex != -1) { View child = getView(childIndex); Shape result = child.modelToView(pos, a, bias); if (result == null) throw new As...
33,862
public void writeXML(PrintWriter writer, int indent) { XMLUtil.printIndent(writer, indent); StringBuffer buf = new StringBuffer(); buf.append("<connector "); buf.append("id=\"").append(id).append('\"'); buf.append(" linewidth=\"").append(lineWidth).append('\"'); buf.append(" color=\"").append(color...
public void writeXML(PrintWriter writer, int indent) { XMLUtil.printIndent(writer, indent); StringBuffer buf = new StringBuffer(); buf.append("<connector "); buf.append("id=\"").append(id).append('\"'); buf.append(" linewidth=\"").append(lineWidth).append('\"'); buf.append(" color=\"").append(color...
33,868
public void writeXML(PrintWriter writer, int indent) { XMLUtil.printIndent(writer, indent); StringBuffer buf = new StringBuffer(); buf.append("<connector "); buf.append("id=\"").append(id).append('\"'); buf.append(" linewidth=\"").append(lineWidth).append('\"'); buf.append(" color=\"").append(color...
public void writeXML(PrintWriter writer, int indent) { XMLUtil.printIndent(writer, indent); StringBuffer buf = new StringBuffer(); buf.append("<connector "); buf.append("id=\"").append(id).append('\"'); buf.append(" linewidth=\"").append(lineWidth).append('\"'); buf.append(" color=\"").append(color...
33,869
public void writeXML(PrintWriter writer, int indent) { XMLUtil.printIndent(writer, indent); StringBuffer buf = new StringBuffer(); buf.append("<connector "); buf.append("id=\"").append(id).append('\"'); buf.append(" linewidth=\"").append(lineWidth).append('\"'); buf.append(" color=\"").append(color...
public void writeXML(PrintWriter writer, int indent) { XMLUtil.printIndent(writer, indent); StringBuffer buf = new StringBuffer(); buf.append("<connector "); buf.append("id=\"").append(id).append('\"'); buf.append(" linewidth=\"").append(lineWidth).append('\"'); buf.append(" color=\"").append(color...
33,870
public void paint(Context ctx, Box box) { //u.p("checking: " + box); //u.p("hashcode = " + box.hashCode()); if (box.border == null) return; Graphics g = ctx.getGraphics(); // TODO: color is per-side ((PWW 13/08/04)) //u.p("border = " + ctx.css.getBorderColor(box.getRealElem...
public void paint(Context ctx, Box box) { //u.p("checking: " + box); //u.p("hashcode = " + box.hashCode()); if (box.border == null) return; Graphics g = ctx.getGraphics(); // TODO: color is per-side ((PWW 13/08/04)) //u.p("border = " + ctx.css.getBorderColor(box.getRealElem...
33,871
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); Object[] args = mi.ge...
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); Object[] args = mi.ge...
33,873
public List deliveries(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try ...
public List deliveries(Serializable storeID, Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new Transacti...
33,874
public List deliveries(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try ...
public List deliveries(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID + " and store " + storeID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new Trans...
33,875
public List deliveries(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try ...
public List deliveries(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try ...
33,876
public List deliveries(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try ...
public List deliveries(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try ...
33,877
public List messages(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
public List messages(Serializable storeID, Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new Tran...
33,878
public List messages(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
public List messages(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID + " and store " + storeID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new ...
33,879
public List messages(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
public List messages(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
33,880
public List messages(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
public List messages(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
33,881
public void deInit() { log.info("De-initialising"); try { sess.close(); } catch (Throwable e) { log.error("Failed to deInit()", e); failed = true; } }
public void deInit() { log.debug(this + " de-initializing"); try { sess.close(); } catch (Throwable e) { log.error("Failed to deInit()", e); failed = true; } }
33,882
protected void doThrottle() { if (rate == 0) { return; } long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0) { long elapsedTime = now - lastTime; ...
private void doThrottle(long start) { if (rate == 0) { return; } long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0) { long elapsedTime = now - lastTime; ...
33,883
protected void doThrottle() { if (rate == 0) { return; } long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0) { long elapsedTime = now - lastTime; ...
protected void doThrottle() { long plannedTime = Math.round((double)start + (double)currentMessageCount * 1000 / rate); long sleepTime = plannedTime - System.currentTimeMillis(); if (sleepTime <= 0) { return; } long now = System.currentTimeMillis(); if (log...
33,884
protected void doThrottle() { if (rate == 0) { return; } long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0) { long elapsedTime = now - lastTime; ...
protected void doThrottle() { if (rate == 0) { return; } long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0) { long elapsedTime = now - lastTime; ...
33,885
protected void doThrottle() { if (rate == 0) { return; } long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0) { long elapsedTime = now - lastTime; ...
protected void doThrottle() { if (rate == 0) { return; } long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0) { long elapsedTime = now - lastTime; ...
33,886
protected void doThrottle() { if (rate == 0) { return; } long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0) { long elapsedTime = now - lastTime; ...
protected void doThrottle() { if (rate == 0) { return; } long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0) { long elapsedTime = now - lastTime; ...
33,887
protected void doThrottle() { if (rate == 0) { return; } long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0) { long elapsedTime = now - lastTime; ...
protected void doThrottle() { if (rate == 0) { return; } long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0) { long elapsedTime = now - lastTime; ...
33,888
public void run() { // if both duration and message count are set, the job sends until the first condition // is met try { log.debug("start sending using " + fullDump()); long start = System.currentTimeMillis(); long timeLeft; while ...
public void run() { // if both duration and message count are set, the job sends until the first condition // is met try { log.debug("start sending using " + fullDump()); long start = System.currentTimeMillis(); long timeLeft; while ...
33,889
public void run() { // if both duration and message count are set, the job sends until the first condition // is met try { log.debug("start sending using " + fullDump()); long start = System.currentTimeMillis(); long timeLeft; while ...
public void run() { // if both duration and message count are set, the job sends until the first condition // is met try { log.debug("start sending using " + fullDump()); long start = System.currentTimeMillis(); long timeLeft; while ...
33,890
public void run() { // if both duration and message count are set, the job sends until the first condition // is met try { log.debug("start sending using " + fullDump()); long start = System.currentTimeMillis(); long timeLeft; while ...
public void run() { // if both duration and message count are set, the job sends until the first condition // is met try { log.debug("start sending using " + fullDump()); long start = System.currentTimeMillis(); long timeLeft; while ...
33,891
public int getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, int d, Position.Bias[] biasRet) throws BadLocationException { int ret = pos; switch (d) { case WEST: ret = pos - 1; break; c...
public int getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, int d, Position.Bias[] biasRet) throws BadLocationException { int ret = pos; switch (d) { case WEST: ret = pos - 1; break; c...
33,892
public void paint(Graphics g) { paintChildren(g); System.out.println("XXXXXXXXXXXXXXXXXXXXXXXXXXXX JViewport -----> paint()"); Container parent = GetHeavy(getParent()); System.out.println("parent = " + parent + ", " + getParent()); //parent.paint(); Graphics wg = parent.getGraphics(); int x = 0; int y = 0; i...
public void paint(Graphics g) { paintChildren(g); System.out.println("XXXXXXXXXXXXXXXXXXXXXXXXXXXX JViewport -----> paint()"); Container parent = GetHeavy(getParent()); System.out.println("parent = " + parent + ", " + getParent()); //parent.paint(); Graphics wg = parent.getGraphics(); int x = 0; int y = 0; i...
33,895
public boolean selfTest() { if (valid == null) { valid = new Boolean(DIGEST0.equals(Util.toString(new MD4().digest()))); } return valid.booleanValue(); }
public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new MD4().digest()))); } return valid.booleanValue(); }
33,896
public ServerConnectionFactoryDelegate(ServerPeer serverPeer) { this.serverPeer = serverPeer; }
public ServerConnectionFactoryDelegate(ServerPeer serverPeer, String defaultClientID) { this.serverPeer = serverPeer; }
33,897
public void paint( Context c, Box box ) { //u.p("BoxLayout.paint " + box);//+box.getElement().getNodeName()+") " + block); BlockBox block = (BlockBox)box; // copy the bounds to we don't mess it up Rectangle oldBounds = new Rectangle( c.getExtents() ); if ( block.relative ) { ...
public void paint( Context c, Box box ) { //u.p("BoxLayout.paint " + box);//+box.getElement().getNodeName()+") " + block); Box block = (Box)box; // copy the bounds to we don't mess it up Rectangle oldBounds = new Rectangle( c.getExtents() ); if ( block.relative ) { pain...
33,899
public void paintFixed( Context c, BlockBox 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 reall...
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 ...
33,900
public void paintNormal( Context c, BlockBox block ) { paintBackground( c, block ); c.translateInsets( block ); paintComponent( c, block ); paintChildren( c, block ); c.untranslateInsets( block ); paintBorder( c, block ); }
public void paintNormal( Context c, Box block ) { paintBackground( c, block ); c.translateInsets( block ); paintComponent( c, block ); paintChildren( c, block ); c.untranslateInsets( block ); paintBorder( c, block ); }
33,901
public void paintRelative( Context ctx, BlockBox block ) { ctx.getGraphics().translate( block.left, block.top ); paintNormal( ctx, block ); ctx.getGraphics().translate( -block.left, -block.top ); }
public void paintRelative( Context ctx, Box block ) { ctx.getGraphics().translate( block.left, block.top ); paintNormal( ctx, block ); ctx.getGraphics().translate( -block.left, -block.top ); }
33,902
public List query(WorkflowQuery query) throws WorkflowException { try { return wf.query(query); } catch (RemoteException e) { log.error("Error querying", e); throw new WorkflowException(e); } }
public List query(WorkflowExpressionQuery query) throws WorkflowException { try { return wf.query(query); } catch (RemoteException e) { log.error("Error querying", e); throw new WorkflowException(e); } }
33,903
ResultLayout(Point2D labelPosition, float lineWidth, int color) { if(labelPosition != null) this.labelPosition = labelPosition; this.lineWidth = lineWidth; this.color = color; }
ResultLayout(Point2D labelPosition, float lineWidth, int color, int from, int to) { if(labelPosition != null) this.labelPosition = labelPosition; this.lineWidth = lineWidth; this.color = color; }
33,904
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 { ...
33,906
public void setUp() throws Exception { super.setUp(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); pm.start(); ms = new PagingMessageStore("s9"); ms2 = new PagingMessageStore("s10"); log.debug("setup done"); }
public void setUp() throws Exception { super.setUp(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); pm.start(); ms = new SimpleMessageStore("s9"); ms2 = new PagingMessageStore("s10"); log.debug("setup done"); }
33,908
public void setUp() throws Exception { super.setUp(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); pm.start(); ms = new PagingMessageStore("s9"); ms2 = new PagingMessageStore("s10"); log.debug("setup done"); }
public void setUp() throws Exception { super.setUp(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); pm.start(); ms = new PagingMessageStore("s9"); ms2 = new SimpleMessageStore("s10"); log.debug("setup done"); }
33,909