bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public static Object put(Object key, Object value) { return getLookAndFeelDefaults().put(key,value); } | public static Object put(Object key, Object value) { Object old = get(key); if (userUIDefaults == null) userUIDefaults = new UIDefaults(); userUIDefaults.put(key, value); return old; } | 33,556 |
void addReferences(long channelID, List references) throws Exception; | void addReferences(long channelID, List references, boolean loaded) throws Exception; | 33,557 |
public MetalButtonUI() { super(); UIDefaults def = UIManager.getLookAndFeelDefaults(); focusColor = def.getColor(getPropertyPrefix() + "focus"); selectColor = def.getColor(getPropertyPrefix() + "select"); disabledTextColor = def.getColor(getPropertyPrefix() + "disabledText"); } | public MetalButtonUI() { super(); UIDefaults def = UIManager.getLookAndFeelDefaults(); focusColor = def.getColor(getPropertyPrefix() + "focus"); selectColor = def.getColor(getPropertyPrefix() + "select"); disabledTextColor = def.getColor(getPropertyPrefix() + "disabledText"); } | 33,558 |
public void installDefaults(AbstractButton button) { super.installDefaults(button); if (button.isRolloverEnabled()) { if (button.getBorder() instanceof UIResource) button.setBorder(MetalBorders.getRolloverBorder()); } } | public void installDefaults(AbstractButton button) { super.installDefaults(button); if (button.isRolloverEnabled()) { if (button.getBorder() instanceof UIResource) button.setBorder(MetalBorders.getRolloverBorder()); } } | 33,559 |
public void uninstallDefaults(AbstractButton button) { super.uninstallDefaults(button); if (button.getBorder() instanceof UIResource) button.setBorder(null); } | public void uninstallDefaults(AbstractButton button) { super.uninstallDefaults(button); if (button.getBorder() instanceof UIResource) button.setBorder(null); } | 33,560 |
Node addFirst(Object obj); | boolean addFirst(Object obj); | 33,561 |
Node addLast(Object obj); | boolean addLast(Object obj); | 33,562 |
public void test1() throws Throwable { Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null); Message[] msgs = new Message[150]; Mes... | public void test1() throws Throwable { Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null); Message[] msgs = new Message[150]; Mes... | 33,563 |
public WorkflowDescriptor getWorkflow(String name) throws FactoryException { WorkflowConfig c = (WorkflowConfig) workflows.get(name); if (c == null) { throw new FactoryException("Unknown workflow name \"" + name + "\""); } if (c.descriptor != null) { if (reload) { ... | public WorkflowDescriptor getWorkflow(String name) throws FactoryException { WorkflowConfig c = (WorkflowConfig) workflows.get(name); if (c == null) { throw new FactoryException("Unknown workflow name \"" + name + "\""); } if (c.descriptor != null) { if (reload) { ... | 33,565 |
public void initDone() throws FactoryException { reload = getProperties().getProperty("reload", "false").equals("true"); ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); InputStream is = null; String name = getProperties().getProperty("resource", "workflows.xml")... | public void initDone() throws FactoryException { reload = getProperties().getProperty("reload", "false").equals("true"); ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); InputStream is = null; String name = getProperties().getProperty("resource", "workflows.xml")... | 33,566 |
public void initDone() throws FactoryException { reload = getProperties().getProperty("reload", "false").equals("true"); ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); InputStream is = null; String name = getProperties().getProperty("resource", "workflows.xml")... | public void initDone() throws FactoryException { reload = getProperties().getProperty("reload", "false").equals("true"); ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); InputStream is = null; String name = getProperties().getProperty("resource", "workflows.xml")... | 33,567 |
public boolean saveWorkflow(String name, WorkflowDescriptor descriptor, boolean replace) throws FactoryException { WorkflowConfig c = (WorkflowConfig) workflows.get(name); if ((c != null) && !replace) { return false; } if (c == null) { throw new UnsupportedOperation... | public boolean saveWorkflow(String name, WorkflowDescriptor descriptor, boolean replace) throws FactoryException { WorkflowConfig c = (WorkflowConfig) workflows.get(name); if (c != null && !replace) { return false; } if (c == null) { throw new UnsupportedOperationEx... | 33,568 |
public int getMinimumDividerLocation(JSplitPane jc) { int value = layoutManager.getInitialLocation(jc.getInsets()) - layoutManager.getAvailableSize(jc.getSize(), jc.getInsets()) + splitPane.getDividerSize(); if (layoutManager.components[1] != null) value += layoutManager.mini... | public int getMinimumDividerLocation(JSplitPane jc) { int value = layoutManager.getInitialLocation(jc.getInsets()) - layoutManager.getAvailableSize(jc.getSize(), jc.getInsets()) + splitPane.getDividerSize(); if (layoutManager.components[1] != null) value += layoutManager.mini... | 33,569 |
public void setDividerLocation(JSplitPane jc, int location) { location = validLocation(location); Container p = jc.getParent(); Dimension rightPrefSize = jc.getRightComponent().getPreferredSize(); Dimension size = jc.getSize(); // check if the size has been set for the splitpane if (size.width == 0... | public void setDividerLocation(JSplitPane jc, int location) { location = validLocation(location); Container p = jc.getParent(); Component right = jc.getRightComponent(); Dimension rightPrefSize = right == null ? new Dimension(0, 0) : right.getPreferredSize(); Dimension size = jc.getSize(); // check if... | 33,570 |
protected void startDragging() { dividerSize = divider.getDividerSize(); setLastDragLocation(-1); if (! splitPane.getLeftComponent().isLightweight() || ! splitPane.getRightComponent().isLightweight()) draggingHW = true; if (splitPane.isContinuousLayout()) nonContinuousLayoutDivider.setVi... | protected void startDragging() { dividerSize = divider.getDividerSize(); setLastDragLocation(-1); if (! splitPane.getLeftComponent().isLightweight() || ! splitPane.getRightComponent().isLightweight()) draggingHW = true; if (splitPane.isContinuousLayout()) nonContinuousLayoutDivider.setVi... | 33,571 |
public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("stop called")... | public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("stop called")... | 33,572 |
public void actionPerformed(ActionEvent evt) { try { FileDialog fd = new FileDialog(root.frame, "Open a local file", FileDialog.LOAD); fd.show(); String file = fd.getDirectory() + fd.getFile(); ... | public void actionPerformed(ActionEvent evt) { try { FileDialog fd = new FileDialog(root.frame, "Open a local file", FileDialog.LOAD); fd.show(); String file = fd.getDirectory() + fd.getFile(); ... | 33,573 |
public void run() { log.info("shutting down the VM"); try { // unregister myself from the RMI registry Registry registry = LocateRegistry.getRegistry(DEFAULT_REGISTRY_PORT); registry.unbind(RMI_SERVER_PREFIX + server.getServerIndex()); log.i... | public void run() { log.info("shutting down the VM"); try { // unregister myself from the RMI registry Registry registry = LocateRegistry.getRegistry(DEFAULT_REGISTRY_PORT); log.info("unregistred from " + registry); } catch(... | 33,574 |
public void run() { log.info("shutting down the VM"); try { // unregister myself from the RMI registry Registry registry = LocateRegistry.getRegistry(DEFAULT_REGISTRY_PORT); registry.unbind(RMI_SERVER_PREFIX + server.getServerIndex()); log.i... | public void run() { log.info("shutting down the VM"); try { // unregister myself from the RMI registry Registry registry = LocateRegistry.getRegistry(DEFAULT_REGISTRY_PORT); registry.unbind(RMI_SERVER_PREFIX + server.getServerIndex()); Strin... | 33,575 |
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()) { Object o =... | 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()) { Object o =... | 33,577 |
protected JButton createDecreaseButton(int orientation) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollBarWidth = defaults.getInt("ScrollBar.width"); decreaseButton = new MetalScrollButton(orientation, scrollBarWidth, isFreeStanding); return decreaseButton; } | protected JButton createDecreaseButton(int orientation) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollBarWidth = defaults.getInt("ScrollBar.width"); decreaseButton = new MetalScrollButton(orientation, scrollBarWidth, isFreeStanding); return decreaseButton; } | 33,578 |
protected JButton createIncreaseButton(int orientation) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollBarWidth = defaults.getInt("ScrollBar.width"); increaseButton = new MetalScrollButton(orientation, scrollBarWidth, isFreeStanding); return increaseButton; } | protected JButton createIncreaseButton(int orientation) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollBarWidth = defaults.getInt("ScrollBar.width"); increaseButton = new MetalScrollButton(orientation, scrollBarWidth, isFreeStanding); return increaseButton; } | 33,579 |
private void paintThumbHorizontal(Graphics g, JComponent c, Rectangle thumbBounds) { int x = thumbBounds.x; int y = thumbBounds.y; int w = thumbBounds.width; int h = thumbBounds.height; // first we fill the background g.setColor(thumbColor); if (isFreeStanding) g.fillRect(x, ... | private void paintThumbHorizontal(Graphics g, JComponent c, Rectangle thumbBounds) { int x = thumbBounds.x; int y = thumbBounds.y; int w = thumbBounds.width; int h = thumbBounds.height; // first we fill the background g.setColor(thumbColor); if (isFreeStanding) g.fillRect(x, ... | 33,580 |
private void paintThumbVertical(Graphics g, JComponent c, Rectangle thumbBounds) { int x = thumbBounds.x; int y = thumbBounds.y; int w = thumbBounds.width; int h = thumbBounds.height; // first we fill the background g.setColor(thumbColor); if (isFreeStanding) g.fillRect(x, y, ... | private void paintThumbVertical(Graphics g, JComponent c, Rectangle thumbBounds) { int x = thumbBounds.x; int y = thumbBounds.y; int w = thumbBounds.width; int h = thumbBounds.height; // first we fill the background g.setColor(thumbColor); if (isFreeStanding) g.fillRect(x, y, ... | 33,581 |
private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | 33,582 |
private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | 33,583 |
private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | 33,584 |
private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | 33,585 |
private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | 33,586 |
private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | 33,587 |
private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | 33,588 |
private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | 33,589 |
private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | private ContentHandler getContentHandler(String contentType) { // No content type so just handle it as the default. if (contentType == null || contentType.equals("")) return null; ContentHandler handler = null; // If a non-default factory has been set, use it. if (factory != null) handler = ... | 33,590 |
public static String guessContentTypeFromStream(InputStream is) throws IOException { return "application/octet-stream"; } | public static String guessContentTypeFromStream(InputStream is) throws IOException, NotImplementedException { return "application/octet-stream"; } | 33,591 |
public static void paintSelection(Context c, InlineBox inline, int lx, int ly) { if (c.inSelection(inline)) { int dw = inline.width - 2; int xoff = 0; if (c.getSelectionEnd() == inline) { dw = c.getSelectionEndX(); } if (c.getSelectionStar... | public static void paintSelection(Context c, InlineBox inline, int lx, int ly) { if (c.inSelection(inline)) { int dw = inline.width - 2; int xoff = 0; if (c.getSelectionEnd() == inline) { dw = c.getSelectionEndX(); } if (c.getSelectionStar... | 33,594 |
public void moveToHistory(Step step) { List currentSteps = (List) currentStepsCache.get(new Long(step.getEntryId())); List historySteps = (List) historyStepsCache.get(new Long(step.getEntryId())); if (historySteps == null) { historySteps = new ArrayList(); historyStepsCach... | public void moveToHistory(Step step) { List currentSteps = (List) currentStepsCache.get(new Long(step.getEntryId())); List historySteps = (List) historyStepsCache.get(new Long(step.getEntryId())); if (historySteps == null) { historySteps = new ArrayList(); historyStepsCach... | 33,595 |
public static void setupVerticalAlign(Context c, CalculatedStyle style, InlineBox box) { Content content = box.getContent(); //not used: CalculatedStyle parent_style = c.css.getStyle(LineBreaker.getElement(parent)); Font parent_font = FontUtil.getFont(c, style); LineMetrics parent_metric... | public static void setupVerticalAlign(Context c, CalculatedStyle style, InlineBox box) { Content content = box.getContent(); //not used: CalculatedStyle parent_style = c.css.getStyle(LineBreaker.getElement(parent)); Font parent_font = FontUtil.getFont(c, style); LineMetrics parent_metric... | 33,596 |
public boolean echoCharIsSet() { return echoChar == 0; } | public boolean echoCharIsSet() { return echoChar != 0; } | 33,597 |
public String getText() { return null; // TODO } | public String getText() { try { return getDocument().getText(0, getDocument().getLength()); } catch (BadLocationException ble) { throw new AssertionError("This should not happen"); } // TODO } | 33,598 |
protected String paramString() { return null; // TODO } | protected String paramString() { try { return getText(); } catch (NullPointerException npe) { return ""; } // TODO } | 33,599 |
public void columnAdded(TableColumnModelEvent event); | void columnAdded(TableColumnModelEvent event); | 33,600 |
public void columnMoved(TableColumnModelEvent event); | void columnMoved(TableColumnModelEvent event); | 33,601 |
public void columnRemoved(TableColumnModelEvent event); | void columnRemoved(TableColumnModelEvent event); | 33,602 |
public int getIndex(int position) { return 0; // TODO } | public int getIndex(int position) { int i = 0; int runningTotal = 0; while (i < sizes.length && position >= runningTotal + sizes[i]) { runningTotal += sizes[i]; i++; } return i; // TODO } | 33,603 |
public int[] getSizes() { int[] array; int index; // Create new array. array = new int[sizes.length]; for (index = 0; index < sizes.length; index++) array[index] = sizes[index]; // Return newly created array. return array; } | public int[] getSizes() { int[] array; int index; // Create new array. array = new int[sizes.length]; for (index = 0; index < sizes.length; index++) array[index] = sizes[index]; // Return newly created array. return array; } | 33,604 |
public void insertEntries(int start, int length, int value) { int[] array; int index; int arrayIndex; int loop; // Create new array. array = new int[sizes.length + length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) { f... | public void insertEntries(int start, int length, int value) { int[] array; int index; int arrayIndex; int loop; // Create new array. array = new int[sizes.length + length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) { f... | 33,605 |
public void removeEntries(int start, int length) { int[] array; int index; int arrayIndex; // Sanity check. if ((start + length) > sizes.length) throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); // Cr... | public void removeEntries(int start, int length) { int[] array; int index; int arrayIndex; // Sanity check. if ((start + length) > sizes.length) throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); // Cr... | 33,606 |
public void removeEntries(int start, int length) { int[] array; int index; int arrayIndex; // Sanity check. if ((start + length) > sizes.length) throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); // Cr... | public void removeEntries(int start, int length) { int[] array; int index; int arrayIndex; // Sanity check. if ((start + length) > sizes.length) throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); // Cr... | 33,607 |
public void removeEntries(int start, int length) { int[] array; int index; int arrayIndex; // Sanity check. if ((start + length) > sizes.length) throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); // Cr... | public void removeEntries(int start, int length) { int[] array; int index; int arrayIndex; // Sanity check. if ((start + length) > sizes.length) throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); // Cr... | 33,608 |
public void setSizes(int[] sizes) { int index; // Initialize sizes. this.sizes = new int[sizes.length]; for (index = 0; index < sizes.length; index++) this.sizes[index] = sizes[index]; } | public void setSizes(int[] sizes) { int index; // Initialize sizes. this.sizes = new int[sizes.length]; for (index = 0; index < sizes.length; index++) this.sizes[index] = sizes[index]; } | 33,610 |
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (QueueConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); ServerMan... | public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (QueueConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); ServerMan... | 33,611 |
protected ChannelSupport(Serializable channelID, MessageStore ms, PersistenceManager pm) { if (log.isTraceEnabled()) { log.trace("Creating ChannelSupport: " + channelID + " reliable?" + (pm != null)); } this.channelID = channelID; this.ms = ms; ... | protected ChannelSupport(Serializable channelID, MessageStore ms, PersistenceManager pm, boolean acceptReliableMessages) { if (log.isTraceEnabled()) { log.trace("Creating ChannelSupport: " + channelID + " reliable?" + (pm != null)); } this.channelID =... | 33,612 |
protected ChannelSupport(Serializable channelID, MessageStore ms, PersistenceManager pm) { if (log.isTraceEnabled()) { log.trace("Creating ChannelSupport: " + channelID + " reliable?" + (pm != null)); } this.channelID = channelID; this.ms = ms; ... | protected ChannelSupport(Serializable channelID, MessageStore ms, PersistenceManager pm) { if (log.isTraceEnabled()) { log.trace("creating " + (pm != null ? "recoverable " : "non-recoverable ") + "channel[" + channelID + "]"); } this.channelID = chann... | 33,613 |
protected ChannelSupport(Serializable channelID, MessageStore ms, PersistenceManager pm) { if (log.isTraceEnabled()) { log.trace("Creating ChannelSupport: " + channelID + " reliable?" + (pm != null)); } this.channelID = channelID; this.ms = ms; ... | protected ChannelSupport(Serializable channelID, MessageStore ms, PersistenceManager pm) { if (log.isTraceEnabled()) { log.trace("Creating ChannelSupport: " + channelID + " reliable?" + (pm != null)); } this.channelID = channelID; this.ms = ms; ... | 33,614 |
protected ChannelSupport(Serializable channelID, MessageStore ms, PersistenceManager pm) { if (log.isTraceEnabled()) { log.trace("Creating ChannelSupport: " + channelID + " reliable?" + (pm != null)); } this.channelID = channelID; this.ms = ms; ... | protected ChannelSupport(Serializable channelID, MessageStore ms, PersistenceManager pm) { if (log.isTraceEnabled()) { log.trace("Creating ChannelSupport: " + channelID + " reliable?" + (pm != null)); } this.channelID = channelID; this.ms = ms; ... | 33,615 |
public void acknowledge(Delivery d, Transaction tx) { acknowledgeNoTx(d); } | public void acknowledge(Delivery d, Transaction tx) { if (tx == null) { acknowledgeNoTx(d); return; } if (log.isTraceEnabled()){ log.trace("acknowledge " + d + (tx == null ? " non-transactionally" : " transactionally in " + tx)); } try { state.remove(d, tx); } catch (Throwable t) { log.error("Failed to rem... | 33,616 |
public List browse() { return state.browse(null); } | public List browse() { return browse(null); } | 33,617 |
public void deliver() { if (log.isTraceEnabled()){ log.trace("attempting to deliver messages"); } List messages = state.undelivered(null); if (log.isTraceEnabled()){ log.trace("there are " + messages.size() + " messages to deliver"); } for(Iterator i = messages.iterator(); i.hasNext(); ) {... | public void deliver() { if (log.isTraceEnabled()){ log.trace("attempting to deliver channel's " + this + " messages"); } List messages = state.undelivered(null); if (log.isTraceEnabled()){ log.trace("there are " + messages.size() + " messages to deliver"); } for(Iterator i = messages.iterator()... | 33,618 |
public void deliver() { if (log.isTraceEnabled()){ log.trace("attempting to deliver messages"); } List messages = state.undelivered(null); if (log.isTraceEnabled()){ log.trace("there are " + messages.size() + " messages to deliver"); } for(Iterator i = messages.iterator(); i.hasNext(); ) {... | public void deliver() { if (log.isTraceEnabled()){ log.trace("attempting to deliver messages"); } List messages = state.undelivered(null); for(Iterator i = messages.iterator(); i.hasNext(); ) { MessageReference r = (MessageReference)i.next(); try { state... | 33,619 |
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } return handleNoTx(sender, r); } | public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } return handleNoTx(sender, r); } | 33,620 |
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } return handleNoTx(sender, r); } | public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ref = ref(r); if (tx... | 33,621 |
private Delivery handleNoTx(DeliveryObserver sender, Routable r) { checkClosed(); if (log.isTraceEnabled()){ log.trace("handling non transactionally " + r); } if (r == null) { return null; } MessageReference ref = ref(r); Set deliveries = router.handle(this, ref, nu... | private Delivery handleNoTx(DeliveryObserver sender, Routable r) { checkClosed(); if (r == null) { return null; } MessageReference ref = ref(r); Set deliveries = router.handle(this, ref, null); if (deliveries.isEmpty()) { // no receivers, receiver... | 33,622 |
private Delivery handleNoTx(DeliveryObserver sender, Routable r) { checkClosed(); if (log.isTraceEnabled()){ log.trace("handling non transactionally " + r); } if (r == null) { return null; } MessageReference ref = ref(r); Set deliveries = router.handle(this, ref, nu... | private Delivery handleNoTx(DeliveryObserver sender, Routable r) { checkClosed(); if (log.isTraceEnabled()){ log.trace("handling non transactionally " + r); } if (r == null) { return null; } MessageReference ref = ref(r); Set deliveries = router.handle(this, ref, nu... | 33,624 |
public void send(Message m) throws JMSException { if (log.isTraceEnabled()) { log.trace("sending message " + m + " to the core"); } sessionEndpoint.sendMessage(m); } | public void send(Message m) throws JMSException { if (log.isTraceEnabled()) { log.trace("sending message " + m + " to the core"); } sessionEndpoint.connectionEndpoint.sendMessage(m); } | 33,625 |
public void handleEvent(AWTEvent event) { switch (event.getID()) { case PaintEvent.PAINT: { final Graphics g = jComponent.getGraphics(); if (g != null) { //Point p = component.getLocationOnScreen(); //g.translate(p.x, p.y); ... | public void handleEvent(AWTEvent event) { switch (event.getID()) { case PaintEvent.PAINT: { final Graphics g = jComponent.getGraphics(); if (g != null) { //Point p = component.getLocationOnScreen(); //g.translate(p.x, p.y); ... | 33,626 |
public void handleEvent(AWTEvent event) { switch (event.getID()) { case PaintEvent.PAINT: { final Graphics g = jComponent.getGraphics(); if (g != null) { //Point p = component.getLocationOnScreen(); //g.translate(p.x, p.y); ... | public void handleEvent(AWTEvent event) { switch (event.getID()) { case PaintEvent.PAINT: { final Graphics g = jComponent.getGraphics(); if (g != null) { //Point p = component.getLocationOnScreen(); //g.translate(p.x, p.y); ... | 33,627 |
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getContent(c); if (contentList.size() == 0) retu... | public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)... | 33,629 |
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getContent(c); if (contentList.size() == 0) retu... | public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getContent(c); if (contentList.size() == 0) retu... | 33,630 |
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getContent(c); if (contentList.size() == 0) retu... | public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getContent(c); if (contentList.size() == 0) retu... | 33,631 |
public abstract BigInteger getCrtCoefficient(); | BigInteger getCrtCoefficient(); | 33,632 |
public abstract BigInteger getPrimeExponentP(); | BigInteger getPrimeExponentP(); | 33,633 |
public abstract BigInteger getPrimeExponentQ(); | BigInteger getPrimeExponentQ(); | 33,634 |
public abstract BigInteger getPrimeP(); | BigInteger getPrimeP(); | 33,635 |
public abstract BigInteger getPrimeQ(); | BigInteger getPrimeQ(); | 33,636 |
public abstract BigInteger getPublicExponent(); | BigInteger getPublicExponent(); | 33,637 |
public void setPageCounterValue(RenderingContext c) { String s = null; switch (this.pageCounterType) { case PAGE_COUNTER_PAGE: s = Integer.toString(c.getCurrentPage() + 1); break; case PAGE_COUNTER_PAGES: s = Integer.toString(c.getPage... | public void setPageCounterValue(RenderingContext c) { String s = null; switch (this.pageCounterType) { case PAGE_COUNTER_PAGE: s = Integer.toString(c.getPageNo() + 1); break; case PAGE_COUNTER_PAGES: s = Integer.toString(c.getPageCount... | 33,638 |
public void mouseDragged(MouseEvent e) { // If remembered Start Point is Valid if(start != null && !e.isConsumed()) { // ready to connect readyToConnect = true; // Fetch Graphics from Graph Graphics g = graph.getGraphics(); // Xor-Paint the old Connector (Hide old Connector) pa... | public void mouseDragged(MouseEvent e) { // If remembered Start Point is Valid if(start != null && !e.isConsumed()) { // ready to connect readyToConnect = true; // Fetch Graphics from Graph Graphics g = graph.getGraphics(); // Xor-Paint the old Connector (Hide old Connector) pa... | 33,639 |
public void mousePressed(final MouseEvent e) { // If Right Mouse Button if(SwingUtilities.isRightMouseButton(e) || e.isPopupTrigger()) // if(e.isPopupTrigger()) { // Scale From Screen to Model //Point loc = fromScreen(e.getPoint()); // Find Cell in Model Coordinates Object cell = g... | public void mousePressed(final MouseEvent e) { // If Right Mouse Button if(SwingUtilities.isRightMouseButton(e) || e.isPopupTrigger()) // if(e.isPopupTrigger()) { // Scale From Screen to Model //Point loc = fromScreen(e.getPoint()); // Find Cell in Model Coordinates Object cell = g... | 33,640 |
private FSDerivedValue valueByName(CSSName cssName) { FSDerivedValue val = _derivedValuesById[cssName.FS_ID]; // but the property may not be defined for this Element if (val == null) { // if it is inheritable (like color) and we are not root, ask our parent // for the valu... | private FSDerivedValue valueByName(CSSName cssName) { FSDerivedValue val = _derivedValuesById[cssName.FS_ID]; // but the property may not be defined for this Element if (val == null) { // if it is inheritable (like color) and we are not root, ask our parent // for the valu... | 33,643 |
private void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX(); int y = me.getY(); // Find the candidate which should receive this event. Component parent = frame.getContentPane(); if (parent == null) return; Component candidate = null; Point p = me.getPoi... | private void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX(); int y = me.getY(); // Find the candidate which should receive this event. Component parent = frame.getLayeredPane(); if (parent == null) return; Component candidate = null; Point p = me.getPoi... | 33,644 |
public Dimension getMaximumSize(JComponent x) { return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); } | public Dimension getMaximumSize(JComponent x) { Dimension max = null; LayoutManager layout = frame.getLayout(); if (frame == x && layout != null && layout instanceof LayoutManager2) max = ((LayoutManager2) layout).maximumLayoutSize(frame); else max = new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); return max... | 33,645 |
public Dimension getMinimumSize(JComponent x) { return internalFrameLayout.minimumLayoutSize(x); } | public Dimension getMinimumSize(JComponent x) { Dimension min = null; LayoutManager layout = frame.getLayout(); if (frame == x && layout != null) min = layout.minimumLayoutSize(frame); else min = new Dimension(0, 0); return min; } | 33,646 |
public Dimension getPreferredSize(JComponent x) { return internalFrameLayout.preferredLayoutSize(x); } | public Dimension getPreferredSize(JComponent x) { Dimension pref = null; LayoutManager layout = frame.getLayout(); if (frame == x && layout != null) pref = layout.preferredLayoutSize(frame); else pref = new Dimension(100, 100); return pref; } | 33,647 |
public void installUI(JComponent c) { if (c instanceof JInternalFrame) { frame = (JInternalFrame) c; internalFrameLayout = createLayoutManager(); frame.setLayout(internalFrameLayout); ((JComponent) frame.getRootPane().getGlassPane()).setOpaque(false); frame.getRootPane().ge... | public void installUI(JComponent c) { if (c instanceof JInternalFrame) { frame = (JInternalFrame) c; internalFrameLayout = createLayoutManager(); frame.setLayout(internalFrameLayout); ((JComponent) frame.getRootPane().getGlassPane()).setOpaque(false); frame.getRootPane().ge... | 33,649 |
public void uninstallUI(JComponent c) { uninstallKeyboardActions(); uninstallComponents(); uninstallListeners(); uninstallDefaults(); frame.setLayout(null); ((JComponent) frame.getRootPane().getGlassPane()).setOpaque(true); frame.getRootPane().getGlassPane().setVisible(false); frame = null; ... | public void uninstallUI(JComponent c) { uninstallKeyboardActions(); uninstallComponents(); uninstallListeners(); uninstallDefaults(); ((JComponent) frame.getRootPane().getGlassPane()).setOpaque(true); frame.getRootPane().getGlassPane().setVisible(false); frame = null; } | 33,651 |
protected void propertyChange(PropertyChangeEvent ev) { JTextArea comp = (JTextArea)getComponent(); if (ev.getPropertyName() == "lineWrap" || ev.getPropertyName() == "wrapStyleWord") modelChanged(); } | protected void propertyChange(PropertyChangeEvent ev) { JTextArea comp = (JTextArea)getComponent(); if (ev.getPropertyName() == "lineWrap" || ev.getPropertyName() == "wrapStyleWord") { setView(create(textComponent.getDocument().getDefaultRootElement())); } } | 33,652 |
public WrappedPlainView (Element elem, boolean wordWrap) { super (elem, Y_AXIS); this.wordWrap = wordWrap; } | public WrappedPlainView (Element elem) { super (elem, Y_AXIS); this.wordWrap = wordWrap; } | 33,653 |
public WrappedPlainView (Element elem, boolean wordWrap) { super (elem, Y_AXIS); this.wordWrap = wordWrap; } | public WrappedPlainView (Element elem, boolean wordWrap) { super (elem, Y_AXIS); this.wordWrap = wordWrap; } | 33,654 |
public void setUp() throws Exception { super.setUp(); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); log.debug("Done setup()"); } | public void setUp() throws Exception { initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); log.debug("Done setup()"); } | 33,655 |
public void setUp() throws Exception { super.setUp(); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); log.debug("Done setup()"); } | public void setUp() throws Exception { super.setUp(); initialContext = new InitialContext(RemoteInitialContextFactory.getJNDIEnvironment()); log.debug("Done setup()"); } | 33,656 |
public void tearDown() throws Exception { ServerManagement.deInit(); super.tearDown(); } | public void tearDown() throws Exception { ServerManagement.deInit(); super.tearDown(); } | 33,657 |
public Object handleCreateConnectionDelegate(Invocation invocation) throws Throwable { // maintain the identity of the delegate that sends invocation through this aspect, for // logging purposes. It makes sense, since it's an PER_INSTANCE aspect. if (id == null) { id = DelegateIdentity.... | public Object handleCreateConnectionDelegate(Invocation invocation) throws Throwable { // maintain the identity of the delegate that sends invocation through this aspect, for // logging purposes. It makes sense, since it's an PER_INSTANCE aspect. if (id == null) { id = DelegateIdentity.... | 33,658 |
Object execute(); | JobResult execute(); | 33,659 |
public void setUp() throws Exception { super.setUp(); channel = new DistributedQueue("test", ms, dispatcher); PersistenceManager pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); pm.start(); ms2 = new PagingMessageStore("s45"); ms3 = new PagingMess... | public void setUp() throws Exception { super.setUp(); channel = new DistributedQueue("test", ms, dispatcher); PersistenceManager pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); pm.start(); ms2 = new SimpleMessageStore("s45"); ms3 = new PagingMess... | 33,660 |
public void setUp() throws Exception { super.setUp(); channel = new DistributedQueue("test", ms, dispatcher); PersistenceManager pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); pm.start(); ms2 = new PagingMessageStore("s45"); ms3 = new PagingMess... | public void setUp() throws Exception { super.setUp(); channel = new DistributedQueue("test", ms, dispatcher); PersistenceManager pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); pm.start(); ms2 = new PagingMessageStore("s45"); ms3 = new SimpleMess... | 33,661 |
public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... | public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... | 33,662 |
public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... | public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... | 33,663 |
public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... | public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... | 33,664 |
public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... | public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... | 33,665 |
public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... | public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... | 33,666 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.