bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void testRecoverableMessageStore_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable ... | public void testRecoverableMessageStore_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, (byte)9, headers, "payload"); // recoverable store, non-rel... | 33,092 |
public void testRecoverableMessageStore_1_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliabl... | public void testRecoverableMessageStore_1_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, (byte)9, headers, "payload"); // recoverable store, non-r... | 33,093 |
public void testRecoverableMessageStore_2() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =... | public void testRecoverableMessageStore_2() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =... | 33,094 |
public void testRecoverableMessageStore_3() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable m... | public void testRecoverableMessageStore_3() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, (byte)9, headers, "payload"); // recoverable store, non-reli... | 33,095 |
public void testRecoverableMessageStore_3_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable... | public void testRecoverableMessageStore_3_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, (byte)9, headers, "payload"); // recoverable store, non-re... | 33,096 |
public void testRecoverableMessageStore_4() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =... | public void testRecoverableMessageStore_4() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =... | 33,097 |
public void testRecoverableMessageStore_6() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non-reliab... | public void testRecoverableMessageStore_6() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable store, non-... | 33,098 |
public void testRecoverableMessageStore_7() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non-reliab... | public void testRecoverableMessageStore_7() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable store, non-... | 33,099 |
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("message " + r + " is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null... | public MessageReference reference(Message m) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("message " + r + " is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null)... | 33,100 |
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("message " + r + " is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null... | public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("message " + r + " is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null... | 33,101 |
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("message " + r + " is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null... | public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("message " + r + " is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null... | 33,102 |
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("message " + r + " is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null... | public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("message " + r + " is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null... | 33,103 |
public void remove(MessageReference ref) throws Throwable { super.remove(ref); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID()); if (l... | protected void remove(String messageId, boolean reliable) throws Exception { super.remove(ref); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID(... | 33,104 |
public void remove(MessageReference ref) throws Throwable { super.remove(ref); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID()); if (l... | public void remove(MessageReference ref) throws Throwable { super.remove(messageId, reliable); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID()... | 33,105 |
public void remove(MessageReference ref) throws Throwable { super.remove(ref); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID()); if (l... | public void remove(MessageReference ref) throws Throwable { super.remove(ref); if (reliable) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID()); if (log.isTra... | 33,106 |
public void remove(MessageReference ref) throws Throwable { super.remove(ref); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID()); if (l... | public void remove(MessageReference ref) throws Throwable { super.remove(ref); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID()); if (l... | 33,107 |
protected Message retrieveMessage(Serializable messageID) { Message m = null; try { m = pm.retrieveMessage(messageID); if (log.isTraceEnabled()) { log.trace("Retreived it from persistent storage:" + m); } } catch(Throwable t) { log.error("Persistence manager fa... | public Message retrieveMessage(String messageId) throws Exception { Message m = null; try { m = pm.retrieveMessage(messageID); if (log.isTraceEnabled()) { log.trace("Retreived it from persistent storage:" + m); } } catch(Throwable t) { log.error("Persistence ma... | 33,108 |
protected Message retrieveMessage(Serializable messageID) { Message m = null; try { m = pm.retrieveMessage(messageID); if (log.isTraceEnabled()) { log.trace("Retreived it from persistent storage:" + m); } } catch(Throwable t) { log.error("Persistence manager fa... | protected Message retrieveMessage(Serializable messageID) { Message m = null; try { m = pm.retrieveMessage(messageID); if (log.isTraceEnabled()) { log.trace("Retreived it from persistent storage:" + m); } } catch(Throwable t) { log.error("Persistence manager fa... | 33,109 |
protected Message retrieveMessage(Serializable messageID) { Message m = null; try { m = pm.retrieveMessage(messageID); if (log.isTraceEnabled()) { log.trace("Retreived it from persistent storage:" + m); } } catch(Throwable t) { log.error("Persistence manager fa... | protected Message retrieveMessage(Serializable messageID) { Message m = null; try { m = pm.retrieveMessage(messageID); if (log.isTraceEnabled()) { log.trace("Retreived it from persistent storage:" + m); } } catch(Throwable t) { log.error("Persistence manager fa... | 33,110 |
protected Message retrieveMessage(Serializable messageID) { Message m = null; try { m = pm.retrieveMessage(messageID); if (log.isTraceEnabled()) { log.trace("Retreived it from persistent storage:" + m); } } catch(Throwable t) { log.error("Persistence manager fa... | protected Message retrieveMessage(Serializable messageID) { Message m = null; try { m = pm.retrieveMessage(messageID); if (log.isTraceEnabled()) { log.trace("Retreived it from persistent storage:" + m); } } catch(Throwable t) { log.error("Persistence manager fa... | 33,111 |
final boolean isValid(Address sf) { if (sf == null) { return false; } if (getMethod(sf) == null) { return false; } final int magic = getMagic(sf); if ((magic != VmStackFrame.MAGIC_COMPILED) && (magic != VmStackFrame.MAGIC_INTERPRETED)) { return false; } return true; } | final boolean isValid(Address sf) { if (sf == null) { return false; } if (getMethod(sf) == null) { return false; } final int magic = getMagic(sf) & VmStackFrame.MAGIC_MASK; if ((magic != VmStackFrame.MAGIC_COMPILED) && (magic != VmStackFrame.MAGIC_INTERPRETED)) { return false; } return true; } | 33,112 |
public long initialize(String workflowName, int initialAction, Map inputs) throws InvalidRoleException, InvalidInputException, WorkflowException, InvalidEntryStateException; | public long initialize(String workflowName, int initialAction, Map inputs) throws InvalidRoleException, InvalidInputException, WorkflowException, InvalidEntryStateException, InvalidActionException; | 33,113 |
public boolean selfTest() { if (valid == null) { valid = new Boolean(DIGEST0.equals(Util.toString(new MD5().digest()))); } return valid.booleanValue(); } | public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new MD5().digest()))); } return valid.booleanValue(); } | 33,114 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); if (args != null) { for(int i = 0; i < args.length; i++) ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); if (args != null) { for(int i = 0; i < args.length; i++) ... | 33,115 |
private static CollapsableContent collapseAdjoiningIntervening(LayoutContext c, CachingContent parent, float parentWidth, CollapsableContent target, List collapsed, int direction) { CollapsableContent currentTarget = target; while (true... | private static CollapsableContent collapseAdjoiningIntervening(LayoutContext c, CachingContent parent, float parentWidth, CollapsableContent target, List collapsed, int direction) { CollapsableContent currentTarget = target; while (true... | 33,116 |
public SwingFrame(Frame awtFrame) { super(awtFrame); } | public SwingFrame(Frame awtFrame) { super(awtFrame); } | 33,117 |
public SwingFramePeer(SwingToolkit toolkit, Frame target) { super(toolkit, target, new SwingFrame(target)); setResizable(target.isResizable()); peerComponent.setIconifiable(true); peerComponent.setMaximizable(true); peerComponent.setClosable(true); try { peerComp... | public SwingFramePeer(SwingToolkit toolkit, Frame target) { super(toolkit, target, new SwingFrame(target, target.getTitle())); setResizable(target.isResizable()); peerComponent.setIconifiable(true); peerComponent.setMaximizable(true); peerComponent.setClosable(true); try { ... | 33,118 |
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalDesktopIconUI(); return instance; } | public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalDesktopIconUI(); return instance; } | 33,119 |
public ImageResource getImageResource(String uri) { ImageResource ir = null; Uu.p("getImageResource() called on: " + uri); uri = resolveURI(uri); Uu.p("resolved URI to: " + uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is still valid if (ir == n... | public ImageResource getImageResource(String uri) { ImageResource ir = null; uri = resolveURI(uri); Uu.p("resolved URI to: " + uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is still valid if (ir == null) { InputStream is = null; ... | 33,120 |
public ImageResource getImageResource(String uri) { ImageResource ir = null; Uu.p("getImageResource() called on: " + uri); uri = resolveURI(uri); Uu.p("resolved URI to: " + uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is still valid if (ir == n... | public ImageResource getImageResource(String uri) { ImageResource ir = null; Uu.p("getImageResource() called on: " + uri); uri = resolveURI(uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is still valid if (ir == null) { InputStream is... | 33,121 |
private void scaleToOutputResolution(Image image) { float factor = _sharedContext.getPixelsPerDot(); image.scaleAbsolute(image.plainWidth() * factor, image.plainHeight() * factor); } | private void scaleToOutputResolution(Image image) { float factor = _sharedContext.getDotsPerPixel(); image.scaleAbsolute(image.plainWidth() * factor, image.plainHeight() * factor); } | 33,122 |
public ImageResource getImageResource(String uri) { ImageResource ir = null; System.out.println("here"); Uu.p("getImageResource() called on: " + uri); uri = resolveURI(uri); Uu.p("resolved URI to: " + uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is s... | public ImageResource getImageResource(String uri) { ImageResource ir = null; System.out.println("here"); Uu.p("getImageResource() called on: " + uri); uri = resolveURI(uri); Uu.p("resolved URI to: " + uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is s... | 33,123 |
public ImageResource getImageResource(String uri) { ImageResource ir = null; System.out.println("here"); Uu.p("getImageResource() called on: " + uri); uri = resolveURI(uri); Uu.p("resolved URI to: " + uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is s... | public ImageResource getImageResource(String uri) { ImageResource ir = null; System.out.println("here"); Uu.p("getImageResource() called on: " + uri); uri = resolveURI(uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is still valid if (ir == null... | 33,124 |
public Dimension getPreferredSize(JComponent c) { JScrollPane p = (JScrollPane ) c; Dimension d = new Dimension(min_w, min_h); Dimension a = p.getViewport().getPreferredSize(); if (a != null) { d.width = Math.max(d.width, a.width); d.height = Math.max(d.height, a.height); } System.out.p... | public Dimension getPreferredSize(JComponent c) { JScrollPane p = (JScrollPane ) c; Dimension d = new Dimension(min_w, min_h); Dimension a = p.getViewport().getPreferredSize(); if (a != null) { d.width = Math.max(d.width, a.width); d.height = Math.max(d.height, a.height); } System.out.p... | 33,125 |
public void paint(Graphics g, JComponent c) { System.out.println("BasicScrollPaneUI->paint()->"+c); JScrollPane p = (JScrollPane ) c; p.getViewport().paint(g); } | public void paint(Graphics g, JComponent c) { System.out.println("BasicScrollPaneUI->paint()->"+c); JScrollPane p = (JScrollPane ) c; p.getViewport().paint(g); } | 33,126 |
public Dimension preferredLayoutSize(Container parent) { return null; // TODO } // preferredLayoutSize() | public Dimension preferredLayoutSize(Container parent) { return null; // TODO } // preferredLayoutSize() | 33,127 |
public synchronized void startService() throws Exception { try { started = true; if (serviceName != null) { name = serviceName.getKeyProperty("name"); } if (name == null || name.length() == 0) { throw new IllegalStateExc... | public synchronized void startService() throws Exception { try { started = true; if (serviceName != null) { name = serviceName.getKeyProperty("name"); } if (name == null || name.length() == 0) { throw new IllegalStateExc... | 33,128 |
public boolean isCellEditable(EventObject event) { if (!(event instanceof MouseEvent)) return true; //Todo: if the right number of clicks has occured, return true; return false; } // isCellEditable() | public boolean isCellEditable(EventObject event) { if (event == null || !(event instanceof MouseEvent)) return true; //Todo: if the right number of clicks has occured, return true; return false; } // isCellEditable() | 33,129 |
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { return null; // TODO } // getTreeCellEditorCompo... | public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (editorComponent instanceof JTextField) { ((J... | 33,130 |
public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents( new Rectangle( oe ) ); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incas... | public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents( new Rectangle( oe ) ); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incas... | 33,131 |
public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents( new Rectangle( oe ) ); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incas... | public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents( new Rectangle( oe ) ); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incas... | 33,132 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 33,133 |
public static void paintBackground( Context c, Box box ) { Box block = box; // cache the background color getBackgroundColor( c, block ); // get the css properties CalculatedStyle style = c.getCurrentStyle(); String back_image = style.getStringProperty( CSSName.BACKGROUND_I... | public static void paintBackground( Context c, Box box ) { Box block = box; // cache the background color getBackgroundColor( c, block ); // get the css properties CalculatedStyle style = c.getCurrentStyle(); String back_image = style.getStringProperty( CSSName.BACKGROUND_I... | 33,135 |
public static void paintBackground( Context c, Box box ) { Box block = box; // cache the background color getBackgroundColor( c, block ); // get the css properties CalculatedStyle style = c.getCurrentStyle(); String back_image = style.getStringProperty( CSSName.BACKGROUND_I... | public static void paintBackground( Context c, Box box ) { Box block = box; // cache the background color getBackgroundColor( c, block ); // get the css properties CalculatedStyle style = c.getCurrentStyle(); String back_image = style.getStringProperty( CSSName.BACKGROUND_I... | 33,136 |
private static void fixWidths(TableBox tableBox, int borderSpacingHorizontal) { int sum = borderSpacingHorizontal; for (int i = 0; i < tableBox.columns.length; i++) sum += tableBox.columns[i] + borderSpacingHorizontal; if (sum < tableBox.width) { int extra = (tableBox.width - sum) / ... | private static void fixWidths(TableBox tableBox, int borderSpacingHorizontal) { int sum = borderSpacingHorizontal; for (int i = 0; i < tableBox.columns.length; i++) sum += tableBox.columns[i] + borderSpacingHorizontal; if (sum < tableBox.width) { int extra = (tableBox.width - sum) / ... | 33,137 |
private static void layoutCells(List cells, Context c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext();) { TableCellContent tcc = (TableCellContent) i.next(); CellBox cellBox = new CellBox(); ... | private static void layoutCells(List cells, Context c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext();) { TableCellContent tcc = (TableCellContent) i.next(); CellBox cellBox = new CellBox(); ... | 33,138 |
public void closeCurrentWorkflow() { WorkflowGraph graph = graphTabs.getCurrentGraph(); if(graph != null) { deleteWorkflow(graph.getDescriptor().getName()); } //graphTabs.removeGraph(graphTabs.getCurrentGraph()); } | public void closeCurrentWorkflow() { WorkflowGraph graph = graphTabs.getCurrentGraph(); if(graph != null) { graphTabs.removeGraph(graph); } //graphTabs.removeGraph(graphTabs.getCurrentGraph()); } | 33,139 |
public void deleteWorkflow(String workflowName) { graphTabs.removeGraph(workflowName); navigator.removeWorkflow(workflowName); manager.getCurrentWorkspace().deleteWorkflow(workflowName); } | public void deleteWorkflow(String workflowName) throws FactoryException { graphTabs.removeGraph(workflowName); navigator.removeWorkflow(workflowName); manager.getCurrentWorkspace().deleteWorkflow(workflowName); } | 33,140 |
public void deleteWorkflow(String workflowName) { graphTabs.removeGraph(workflowName); navigator.removeWorkflow(workflowName); manager.getCurrentWorkspace().deleteWorkflow(workflowName); } | public void deleteWorkflow(String workflowName) { graphTabs.removeGraph(workflowName); navigator.removeWorkflow(workflowName); manager.getCurrentWorkspace().removeWorkflow(workflowName); } | 33,141 |
private boolean intersectsLine(CssContext cssCtx, Shape clip) { Rectangle result = new Rectangle( getAbsX(), getAbsY() + paintingTop, contentWidth, paintingHeight); return clip.intersects(result); } | private boolean intersectsLine(CssContext cssCtx, Shape clip) { Rectangle result = new Rectangle( getAbsX(), getAbsY() + paintingTop, contentWidth, paintingHeight); return clip.intersects(result); } | 33,143 |
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Ob... | 33,145 |
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | 33,146 |
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | 33,147 |
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | 33,148 |
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | 33,149 |
public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all,-remoting,-security"); sc.start(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); ((JDBCPersistenceManager)pm).start(); ms = new PagingMessageStore("store1");... | public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all,-remoting,-security"); sc.start(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); ((JDBCPersistenceManager)pm).start(); ms = new SimpleMessageStore("store1");... | 33,150 |
public void test8_NDC() throws Throwable { Channel channel1 = new Queue(1, ms, pm, true, FULL_SIZE1, PAGE_SIZE1, 0); State state1 = new ChannelState(channel1, pm, true, true, FULL_SIZE1, PAGE_SIZE1, 0); //Add some persistent messages, restart server and make sure state loads up ok ... | public void test8_NDC() throws Throwable { Channel channel1 = new Queue(1, ms, pm, true, FULL_SIZE1, PAGE_SIZE1, 0); State state1 = new ChannelState(channel1, pm, true, true, FULL_SIZE1, PAGE_SIZE1, 0); //Add some persistent messages, restart server and make sure state loads up ok ... | 33,151 |
public synchronized long getId() throws JMSException { if (nextID == high) { getNextBlock(); } long id = nextID++; if (log.isTraceEnabled()) { log.trace("Getting next message id=" + id); } return id; } | public synchronized long getId() throws JMSException { if (nextID == high) { getNextBlock(); } if (log.isTraceEnabled()) { log.trace("Getting next message id=" + id); } return id; } | 33,152 |
protected void getNextBlock() throws JMSException { IdBlock block = cd.getIDBlock(blockSize); nextID = block.getLow(); high = block.getHigh(); if (trace) { log.trace("Got block of IDs from server, low=" + nextID + " high=" + high); } } | protected void getNextBlock() throws JMSException { IdBlock block = cfd.getIdBlock(blockSize); nextID = block.getLow(); high = block.getHigh(); if (trace) { log.trace("Got block of IDs from server, low=" + nextID + " high=" + high); } } | 33,153 |
public void testExpirationOnReceive() throws Exception { expectedMessage = new JBossMessage(123456); queueProducer.send(queueProducerSession.createMessage(), DeliveryMode.NON_PERSISTENT, 4, 2000); // allow the message to expire Thread.sleep(3000); final Latch latch = new Latch(); // b... | public void testExpirationOnReceive() throws Exception { expectedMessage = new JBossMessage(123456); queueProducer.send(queueProducerSession.createMessage(), DeliveryMode.NON_PERSISTENT, 4, 2000); // allow the message to expire Thread.sleep(3000); final Latch latch = new Latch(); // b... | 33,154 |
public JMSRemotingConnection(String serverLocatorURI) throws Throwable { callbackManager = new CallbackManager(); id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); bindPort = PortUtil.findFreePort("localhost"); serverLocator = ne... | public JMSRemotingConnection(String serverLocatorURI) throws Throwable { callbackManager = new CallbackManager(); id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); bindPort = PortUtil.findFreePort("localhost"); serverLocator = ne... | 33,156 |
protected void setUpConnection() throws Throwable { if (log.isTraceEnabled()) { log.trace("Connecting with server URI:" + serverLocator); } String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" ... | protected void setUpConnection() throws Throwable { if (log.isTraceEnabled()) { log.trace("Connecting with server URI:" + serverLocator); } String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" ... | 33,158 |
public Dimension getPreferredSize(JComponent c) { JLabel lab = (JLabel) c; Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = lab.getInsets(); FontMetrics fm = lab.getToolkit().getFontMetrics(lab.getFont()); layoutCL(lab, fm, la... | public Dimension getPreferredSize(JComponent c) { JLabel lab = (JLabel) c; Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = lab.getInsets(); FontMetrics fm = lab.getFontMetrics(lab.getFont()); layoutCL(lab, fm, lab.getText(), ... | 33,160 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Font saved_font = g.getFont(); Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities.... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities.calculateInnerArea(c, vr); ... | 33,161 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Font saved_font = g.getFont(); Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities.... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Font saved_font = g.getFont(); Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities.... | 33,162 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Font saved_font = g.getFont(); Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities.... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Font saved_font = g.getFont(); Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities.... | 33,163 |
public BlockFormattingContext(Box master, Context c) { int parent_width = (int) c.getExtents().getWidth(); CalculatedStyle style = c.getCurrentStyle(); Border border = style.getBorderWidth(c.getCtx()); //note: percentages here refer to width of containing block Border margin = sty... | public BlockFormattingContext(Box master, Context c) { int parent_width = (int) c.getExtents().getWidth(); CalculatedStyle style = c.getCurrentStyle(); Border border = style.getBorderWidth(c.getCtx()); //note: percentages here refer to width of containing block Border margin = mas... | 33,164 |
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { ConsumerDelegate cons = (ConsumerDelegate)invocation.invokeNext(); DelegateSupport delegate = (DelegateSupport)cons; delegate.init(); SessionState sessState = (SessionState)getState(invocation... | public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { ConsumerDelegate cons = (ConsumerDelegate)invocation.invokeNext(); DelegateSupport delegate = (DelegateSupport)cons; delegate.init(); SessionState sessState = (SessionState)getState(invocation... | 33,167 |
private synchronized void completeLayout() { u.p("layout thread ending"); done = true; graphics = null; panel.repaint(); } | private synchronized void completeLayout() { done = true; graphics = null; panel.repaint(); } | 33,168 |
public ClientProducerDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); } | public ClientProducerDelegate(String objectID) { super(objectID, locator); } | 33,169 |
public ClientProducerDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); } | public ClientProducerDelegate(String objectID, InvokerLocator locator) { super(objectID); } | 33,170 |
public JTextPane() { setEditorKit(createDefaultEditorKit()); setDocument(null); } | public JTextPane() { setEditorKit(createDefaultEditorKit()); setDocument(null); } | 33,171 |
public void send(Message message) throws JMSException { // by default the message never expires send(message, -1, -1, Long.MIN_VALUE); } | public void send(Message message) throws JMSException { // by default the message never expires send(message, -1, -1, 0); } | 33,172 |
public Object getResult() { return new JobTimings(-1, -1); } | public JobResult getResult() { return new JobTimings(-1, -1); } | 33,173 |
public Object getResult() { return new JobTimings(-1, -1); } | public Object getResult() { JobResult res = new JobResult(); res.failed = failed; if (failed) { res.throwables = new Throwable[] { throwable }; } return res; } | 33,174 |
public void run() { Connection conn = null; int count = 0; try { super.setup(); log.info("Running drain job ==============="); conn = cf.createConnection(); if (clientID != null) { try { ... | public void run() { Connection conn = null; int count = 0; try { super.setup(); log.info("Running drain job ==============="); conn = cf.createConnection(); if (clientID != null) { try { ... | 33,175 |
private static void positionFloatOnPage( final LayoutContext c, FloatedBlockContent content, LineBox curr_line, FloatedBlockBox block, boolean movedVertically) { boolean didRelayout = false; if (block.getStyle().isForcePageBreakBefore() || (block.getStyle... | private static void positionFloatOnPage( final LayoutContext c, FloatedBlockContent content, LineBox curr_line, FloatedBlockBox block, boolean movedVertically) { boolean clearedPage = false; int clearDelta = 0; if (block.getStyle().isForcePageBreakBefore() || ... | 33,178 |
private static void positionFloatOnPage( final LayoutContext c, FloatedBlockContent content, LineBox curr_line, FloatedBlockBox block, boolean movedVertically) { boolean didRelayout = false; if (block.getStyle().isForcePageBreakBefore() || (block.getStyle... | private static void positionFloatOnPage( final LayoutContext c, FloatedBlockContent content, LineBox curr_line, FloatedBlockBox block, boolean movedVertically) { boolean didRelayout = false; if (block.getStyle().isForcePageBreakBefore() || (block.getStyle... | 33,179 |
private static void positionFloatOnPage( final LayoutContext c, FloatedBlockContent content, LineBox curr_line, FloatedBlockBox block, boolean movedVertically) { boolean didRelayout = false; if (block.getStyle().isForcePageBreakBefore() || (block.getStyle... | private static void positionFloatOnPage( final LayoutContext c, FloatedBlockContent content, LineBox curr_line, FloatedBlockBox block, boolean movedVertically) { boolean didRelayout = false; if (block.getStyle().isForcePageBreakBefore() || (block.getStyle... | 33,180 |
public void insertString(int offs, String str, AttributeSet atts) throws BadLocationException { String string = str; if (Boolean.TRUE.equals(getProperty("filterNewlines"))) string = str.replaceAll("\n", " "); super.insertString(offs, string, atts); } | public void insertString(int offs, String str, AttributeSet atts) throws BadLocationException { String string = str; if (str != null && Boolean.TRUE.equals(getProperty("filterNewlines"))) string = str.replaceAll("\n", " "); super.insertString(offs, string, atts); } | 33,182 |
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { reindex(); super.insertUpdate(event, attributes); } | protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int end = offset + event.getLength(); int elementIndex = rootElement.getElementIndex(offset); Element firstElement = rootElement.getElement(elementIndex); Element[] removed = new Element[1]; Eleme... | 33,183 |
protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i... | protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i... | 33,185 |
protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i... | protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p0 + event.ge... | 33,186 |
protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i... | protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i... | 33,187 |
protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i... | protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i... | 33,188 |
public Object getProperty(Object key) { // FIXME: make me thread-safe Object value = null; if (properties != null) value = properties.get(key); return value; } | public final Object getProperty(Object key) { // FIXME: make me thread-safe Object value = null; if (properties != null) value = properties.get(key); return value; } | 33,189 |
public void tearDown() throws Exception { ServerManagement.deInit(); TransactionManagerImpl.getInstance().setState(TransactionManagerImpl.OPERATIONAL); super.tearDown(); } | public void tearDown() throws Exception { TransactionManagerImpl.getInstance().setState(TransactionManagerImpl.OPERATIONAL); super.tearDown(); } | 33,190 |
public static boolean isReplaced( Node node ) { // all images are replaced (because they have intrinsic sizes) if ( node.getNodeName().equals( "img" ) ) { return true; } if ( node.getNodeName().equals( "select" ) ) { return true; } if ( node.getNodeNam... | public static boolean isReplaced( Node node ) { // all images are replaced (because they have intrinsic sizes) if ( node.getNodeName().equals( "img" ) ) { return true; } if ( node.getNodeName().equals( "select" ) ) { return true; } if ( node.getNodeNam... | 33,191 |
public List remoteBrowse(PeerIdentity originator, Filter filter) { if (getPeerIdentity().equals(originator)) { // ignore my own requests return Collections.EMPTY_LIST; } if (log.isTraceEnabled()) { log.trace(this + " got remote browse request" + (filter == null ? "" : ", filter ... | public List remoteBrowse(PeerIdentity originator, Filter filter) { if (getPeerIdentity().equals(originator)) { // ignore my own requests return Collections.EMPTY_LIST; } if (log.isTraceEnabled()) { log.trace(this + " got remote browse request" + (filter == null ? "" : ", filter ... | 33,192 |
public boolean unregister(Serializable category) { synchronized(servers) { return servers.remove(category) != null; } } | public boolean unregister(Serializable category, ServerFacade subordinate) { synchronized(servers) { return servers.remove(category) != null; } } | 33,193 |
public boolean unregister(Serializable category) { synchronized(servers) { return servers.remove(category) != null; } } | public boolean unregister(Serializable category) { synchronized(servers) { Object o = servers.get(category); if (o == null) { return false; } if (o instanceof Set) { Set equivalents = (Set)o; return equivalents.remove(subordinate); } else { if (o != subordinate) { return false; } servers.remove(... | 33,194 |
public View create(Element element) { String name = element.getName(); View view = null; if (name.equals(AbstractDocument.ContentElementName)) view = new LabelView(element); else if (name.equals(AbstractDocument.ParagraphElementName)) view = new ParagraphView(element); else if (name.equa... | public View create(Element element) { String name = element.getName(); View view = null; if (name.equals(AbstractDocument.ContentElementName)) view = new LabelView(element); else if (name.equals(AbstractDocument.ParagraphElementName)) view = new ParagraphView(element); else if (name.equa... | 33,195 |
public void addFirstRow( Context c, Node row ) { addRow(c, row, true, 0 ); } | public void addFirstRow( Context c, Node row ) { addRow(c, row, true, 0 ); } | 33,197 |
public void addRow( Context c, Node row, int y ) { addRow(c, row, false, y ); } | public void addRow( Context c, Node row, int y ) { addRow(c, row, false, y ); } | 33,198 |
public void addTable( Context c, Element elem ) { // for each tr NodeList rows = elem.getChildNodes(); boolean first_row = true; int row_count = 0; for ( int i = 0; i < rows.getLength(); i++ ) { Node row = rows.item( i ); // NOTE: JMM 11/19/04 ... | public void addTable( Context c, Element elem ) { // for each tr NodeList rows = elem.getChildNodes(); boolean first_row = true; int row_count = 0; for ( int i = 0; i < rows.getLength(); i++ ) { Node row = rows.item( i ); // NOTE: JMM 11/19/04 ... | 33,199 |
public void addTable( Context c, Element elem ) { // for each tr NodeList rows = elem.getChildNodes(); boolean first_row = true; int row_count = 0; for ( int i = 0; i < rows.getLength(); i++ ) { Node row = rows.item( i ); // NOTE: JMM 11/19/04 ... | public void addTable( Context c, Element elem ) { // for each tr NodeList rows = elem.getChildNodes(); boolean first_row = true; int row_count = 0; for ( int i = 0; i < rows.getLength(); i++ ) { Node row = rows.item( i ); // NOTE: JMM 11/19/04 ... | 33,200 |
public void addTable( Context c, Element elem ) { // for each tr NodeList rows = elem.getChildNodes(); boolean first_row = true; int row_count = 0; for ( int i = 0; i < rows.getLength(); i++ ) { Node row = rows.item( i ); // NOTE: JMM 11/19/04 ... | public void addTable( Context c, Element elem ) { // for each tr NodeList rows = elem.getChildNodes(); boolean first_row = true; int row_count = 0; for ( int i = 0; i < rows.getLength(); i++ ) { Node row = rows.item( i ); // NOTE: JMM 11/19/04 ... | 33,201 |
public XMLResource getXMLResource(String uri) { uri = resolveURI(uri); if (uri.startsWith("file:")) { File file = null; try { file = new File(new URI(uri)); } catch (URISyntaxException e) { e.printStackTrace(); //To change body of catch s... | public XMLResource getXMLResource(String uri) { uri = resolveURI(uri); if (uri != null && uri.startsWith("file:")) { File file = null; try { file = new File(new URI(uri)); } catch (URISyntaxException e) { e.printStackTrace(); //To change ... | 33,202 |
protected Document loadDocument( final URL url ) throws Exception { /* CLEAN * XRDocument xrDoc = XRDocumentFactory.loadDocument(null, url); * return xrDoc.getDOMDocument(); */ DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance(); DocumentBuilder bui... | protected Document loadDocument( final URL url ) throws Exception { /* CLEAN * XRDocument xrDoc = XRDocumentFactory.loadDocument(null, url); * return xrDoc.getDOMDocument(); */ DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance(); DocumentBuilder bui... | 33,205 |
public synchronized boolean accept(Routable routable) { try { JBossMessage mess = (JBossMessage)routable; // Set the identifiers values Iterator i = identifiers.values().iterator(); while (i.hasNext()) { Identifier id = (Identifier) i.next(); ... | public synchronized boolean accept(Routable routable) { try { Message mess = (Message)routable; // Set the identifiers values Iterator i = identifiers.values().iterator(); while (i.hasNext()) { Identifier id = (Identifier) i.next(); Object... | 33,206 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.