bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public JInternalFrame(String title) { this(title, false, false, false, false); }
public JInternalFrame() { this(title, false, false, false, false); }
51,595
public JInternalFrame(String title) { this(title, false, false, false, false); }
public JInternalFrame(String title) { this("", false, false, false, false); }
51,596
public void setLayer(Integer layer) { JDesktopPane p = getDesktopPane(); if (p != null) { int pos = p.getPosition(this); p.setLayer(this, layer.intValue(), pos); } }
public void setLayer(int layer) { JDesktopPane p = getDesktopPane(); if (p != null) { int pos = p.getPosition(this); p.setLayer(this, layer.intValue(), pos); } }
51,597
public void setLayer(Integer layer) { JDesktopPane p = getDesktopPane(); if (p != null) { int pos = p.getPosition(this); p.setLayer(this, layer.intValue(), pos); } }
public void setLayer(Integer layer) { JDesktopPane p = getDesktopPane(); if (p != null) { int pos = p.getPosition(this); p.setLayer(this, layer.intValue(), pos); } }
51,598
public void testSelectiveClosingConsumer() throws Exception { String selector = "color = 'red'"; MessageConsumer redConsumer = session.createConsumer(queue, selector); conn.start(); Message redMessage = session.createMessage(); redMessage.setStringProperty("color", "red"); Message blu...
public void testSelectiveClosingConsumer() throws Exception { String selector = "color = 'red'"; MessageConsumer redConsumer = session.createConsumer(queue, selector); conn.start(); Message redMessage = session.createMessage(); redMessage.setStringProperty("color", "red"); Message blu...
51,599
public void testSelectiveClosingConsumer() throws Exception { String selector = "color = 'red'"; MessageConsumer redConsumer = session.createConsumer(queue, selector); conn.start(); Message redMessage = session.createMessage(); redMessage.setStringProperty("color", "red"); Message blu...
public void testSelectiveClosingConsumer() throws Exception { String selector = "color = 'red'"; MessageConsumer redConsumer = session.createConsumer(queue, selector); conn.start(); Message redMessage = session.createMessage(); redMessage.setStringProperty("color", "red"); Message blueMessage = session.c...
51,600
public void testSelectiveClosingConsumer() throws Exception { String selector = "color = 'red'"; MessageConsumer redConsumer = session.createConsumer(queue, selector); conn.start(); Message redMessage = session.createMessage(); redMessage.setStringProperty("color", "red"); Message blu...
public void testSelectiveClosingConsumer() throws Exception { String selector = "color = 'red'"; MessageConsumer redConsumer = session.createConsumer(queue, selector); conn.start(); Message redMessage = session.createMessage(); redMessage.setStringProperty("color", "red"); Message blu...
51,601
public void testSelectiveClosingConsumer() throws Exception { String selector = "color = 'red'"; MessageConsumer redConsumer = session.createConsumer(queue, selector); conn.start(); Message redMessage = session.createMessage(); redMessage.setStringProperty("color", "red"); Message blu...
public void testSelectiveClosingConsumer() throws Exception { String selector = "color = 'red'"; MessageConsumer redConsumer = session.createConsumer(queue, selector); conn.start(); Message redMessage = session.createMessage(); redMessage.setStringProperty("color", "red"); Message blu...
51,602
public void testSelectiveClosingConsumer() throws Exception { String selector = "color = 'red'"; MessageConsumer redConsumer = session.createConsumer(queue, selector); conn.start(); Message redMessage = session.createMessage(); redMessage.setStringProperty("color", "red"); Message blu...
public void testSelectiveClosingConsumer() throws Exception { String selector = "color = 'red'"; MessageConsumer redConsumer = session.createConsumer(queue, selector); conn.start(); Message redMessage = session.createMessage(); redMessage.setStringProperty("color", "red"); Message blu...
51,603
public static void paint(Context c, Box box) { // Uu.p("BoxRenderer.paint " + box); Box block = (Box) box; //set the current style //CascadedStyle hoverStyle = null; CascadedStyle style = null; if (block.element != null) style = c.getCss().getCascadedStyle(block.element); ...
public static void paint(Context c, Box box, boolean stylePushed) { // Uu.p("BoxRenderer.paint " + box); Box block = (Box) box; //set the current style //CascadedStyle hoverStyle = null; CascadedStyle style = null; if (block.element != null) style = c.getCss().getCascadedSt...
51,605
public static void paint(Context c, Box box) { // Uu.p("BoxRenderer.paint " + box); Box block = (Box) box; //set the current style //CascadedStyle hoverStyle = null; CascadedStyle style = null; if (block.element != null) style = c.getCss().getCascadedStyle(block.element); ...
public static void paint(Context c, Box box) { // Uu.p("BoxRenderer.paint " + box); Box block = (Box) box; //set the current style //CascadedStyle hoverStyle = null; CascadedStyle style = null; if (!stylePushed && block.element != null) style = c.getCss().getCascadedStyle(b...
51,606
public void close() throws JMSException { //Currently this does nothing if (log.isTraceEnabled()) { log.trace("close"); } }
public void close() throws JMSException { //Currently this does nothing if (log.isTraceEnabled()) { log.trace("close (noop)"); } }
51,608
public void closing() throws JMSException { //Currently this does nothing if (log.isTraceEnabled()) { log.trace("closing"); } }
public void closing() throws JMSException { //Currently this does nothing if (log.isTraceEnabled()) { log.trace("closing (noop)"); } }
51,609
public static Object get(Object key) { return getLookAndFeelDefaults().get(key); }
public static Object get(Object key) { Object val = null; if (userUIDefaults != null) val = userUIDefaults.get(key); if (val == null) val = getLookAndFeelDefaults().get(key); return val; }
51,610
public static boolean getBoolean(Object key) { Boolean value = (Boolean) getLookAndFeelDefaults().get(key); return value != null ? value.booleanValue() : false; }
public static boolean getBoolean(Object key) { Boolean value = (Boolean) get(key); return value != null ? value.booleanValue() : false; }
51,611
public static Border getBorder(Object key) { return (Border) getLookAndFeelDefaults().get(key); }
public static Border getBorder(Object key) { return (Border) get(key); }
51,612
public static Color getColor(Object key) { return (Color) getLookAndFeelDefaults().get(key); }
public static Color getColor(Object key) { return (Color) get(key); }
51,613
public static Dimension getDimension(Object key) { return (Dimension) getLookAndFeelDefaults().get(key); }
public static Dimension getDimension(Object key) { return (Dimension) get(key); }
51,614
public static Font getFont(Object key) { return (Font) getLookAndFeelDefaults().get(key); }
public static Font getFont(Object key) { return (Font) get(key); }
51,615
public static Icon getIcon(Object key) { return (Icon) getLookAndFeelDefaults().get(key); }
public static Icon getIcon(Object key) { return (Icon) get(key); }
51,616
public static Insets getInsets(Object key) { return getLookAndFeelDefaults().getInsets(key); }
public static Insets getInsets(Object key) { Object o = get(key); if (o instanceof Insets) return (Insets) o; else return null; }
51,617
public static int getInt(Object key) { Integer x = (Integer) getLookAndFeelDefaults().get(key); if (x == null) return 0; return x.intValue(); }
public static int getInt(Object key) { Integer x = (Integer) get(key); if (x == null) return 0; return x.intValue(); }
51,618
public static String getString(Object key) { return (String) getLookAndFeelDefaults().get(key); }
public static String getString(Object key) { return (String) get(key); }
51,619
public static ComponentUI getUI(JComponent target) { return getLookAndFeelDefaults().getUI(target); }
public static ComponentUI getUI(JComponent target) { ComponentUI ui = null; if (userUIDefaults != null && userUIDefaults.get(target.getUIClassID()) != null) ui = userUIDefaults.getUI(target); if (ui == null) ui = currentUIDefaults.getUI(target); return ui; }
51,620
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; }
51,621
void addReferences(long channelID, List references) throws Exception;
void addReferences(long channelID, List references) throws Exception;
51,622
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"); }
51,623
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()); } }
51,624
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); }
51,625
Node addFirst(Object obj);
Node addFirst(Object obj);
51,626
Node addLast(Object obj);
Node addLast(Object obj);
51,627
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...
51,628
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) { ...
51,630
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")...
51,631
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")...
51,632
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...
51,633
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...
51,634
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...
51,635
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...
51,636
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")...
51,637
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(); ...
51,638
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(E...
51,639
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...
51,640
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...
name = NAMING_SERVER_PREFIX + server.getServerID(); registry.unbind(name); log.info("unregistred " + name + " from registry"); name = NAMING_SERVER_PREFIX + server.getServerID(); registry.unbind(name); log.info("unregistred " + name + " from registry"); name = NAMING_SERVER_PREFIX + server.getServerID(); registry.unbin...
51,641
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 =...
publicstaticvoidlayoutContent(Contextc,Boxbox,ListcontentList,Boxblock){//prepareforthelistitemsintold_counter=c.getListCounter();c.setListCounter(0);IteratorcontentIterator=contentList.iterator();while(contentIterator.hasNext()){Objecto=contentIterator.next();if(oinstanceofFirstLineStyle){//canactuallyonlybethefirstob...
51,642
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 =...
51,643
protected Client getClient() { //Use the Client in the Connection's state return ((ConnectionState)state.getParent().getParent()).getClient(); }
protected Client getClient() { //Use the Client in the Connection's state return ((ConnectionState)state.getParent().getParent()).getRemotingConnection().getInvokingClient(); }
51,644
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; }
51,645
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; }
51,646
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, ...
51,647
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, ...
51,648
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 = ...
51,649
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 = ...
51,650
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 = ...
51,651
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 = ...
51,652
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 = ...
51,653
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 = ...
51,654
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 = ...
51,655
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 = ...
51,656
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 = ...
51,657
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 = ...
51,658
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"; }
51,659
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...
51,663
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...
51,664
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...
51,665
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...
51,666
public boolean echoCharIsSet() { return echoChar == 0; }
public boolean echoCharIsSet() { return echoChar != 0; }
51,667
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 }
51,668
protected String paramString() { return null; // TODO }
protected String paramString() { try { return getText(); } catch (NullPointerException npe) { return ""; } // TODO }
51,669
public void columnAdded(TableColumnModelEvent event);
public void columnAdded(TableColumnModelEvent event);
51,670
public void columnMoved(TableColumnModelEvent event);
public void columnMoved(TableColumnModelEvent event);
51,671
public void columnRemoved(TableColumnModelEvent event);
public void columnRemoved(TableColumnModelEvent event);
51,672
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 }
51,673
public int getPosition(int index) { int position; int loop; // Process sizes. position = 0; for (loop = 0; loop < index; loop++) position += sizes[loop]; // Return position. return position; }
public int getPosition(int index){int position;int loop;// Process sizes.position = 0;for (loop = 0; loop < index; loop++)position += sizes[loop];// Return position.return position;}
51,674
public int getPosition(int index) { int position; int loop; // Process sizes. position = 0; for (loop = 0; loop < index; loop++) position += sizes[loop]; // Return position. return position; }
public int getPosition(int index){int position;int loop;// Process sizes.position = 0;for (loop = 0; loop < index; loop++)position += sizes[loop];// Return position.return position;}
51,675
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; }
51,676
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...
51,677
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...
51,678
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...
51,679
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...
51,680
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]; }
51,682
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...
51,683
public JMSRemotingConnection(String serverLocatorURI) throws Throwable { callbackManager = new CallbackManager(); id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); //bindPort = PortUtil.findFreePort("localhost"); serverLocator = new InvokerLocator(serve...
public JMSRemotingConnection(String serverLocatorURI) throws Throwable {callbackManager = new CallbackManager();id = new GUID().toString();thisAddress = InetAddress.getLocalHost().getHostAddress();//bindPort = PortUtil.findFreePort("localhost");serverLocator = new InvokerLocator(serverLocatorURI);isMultiplex = serverL...
51,684
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 =...
51,685
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...
51,686
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; ...
51,687
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; ...
51,688
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...
51,689
public List browse() { return state.browse(null); }
public List browse() { return browse(null); }
51,690
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()...
51,691
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....
51,692
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); }
51,693
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 (t...
51,694
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, receivers...
51,695
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...
if (r.isReliable() && !state.acceptReliableMessages()) { log.error("Cannot handle reliable message " + r + " because the channel has a non-recoverable state!"); return null; } if (log.isTraceEnabled()){ log.trace("handling non-transactionally " + r); } if (r.isReliable() && !state.acceptReliableMessages()...
51,696
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...
51,697
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...
51,698
public void redeliver(Delivery old, Receiver r) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " redelivery request for delivery " + old + " by receiver " + r); } // TODO must be done atomically if (state.remove(old, null)) { if (log.isTraceEnabled()) { log.trace(thi...
publicvoidredeliver(Deliveryold,Receiverr)throwsThrowable{if(log.isTraceEnabled()){log.trace(this+"redeliveryrequestfordelivery"+old+"byreceiver"+r);}//TODOmustbedoneatomicallyif(state.remove(old,null)){if(log.isTraceEnabled()){log.trace(this+"olddeliverywasactive,canceledit");}MessageReferenceref=old.getReference();//...
51,699
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); }
51,700
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); ...
51,701