bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
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,702 |
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)... | 51,704 |
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... | 51,705 |
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... | 51,706 |
public abstract BigInteger getCrtCoefficient(); | public abstract BigInteger getCrtCoefficient(); | 51,707 |
public abstract BigInteger getPrimeExponentP(); | public abstract BigInteger getPrimeExponentP(); | 51,708 |
public abstract BigInteger getPrimeExponentQ(); | public abstract BigInteger getPrimeExponentQ(); | 51,709 |
public abstract BigInteger getPrimeP(); | public abstract BigInteger getPrimeP(); | 51,710 |
public abstract BigInteger getPrimeQ(); | public abstract BigInteger getPrimeQ(); | 51,711 |
public abstract BigInteger getPublicExponent(); | public abstract BigInteger getPublicExponent(); | 51,712 |
public void tearDown() throws Exception { ServerManagement.deInit(); super.tearDown(); } | public void tearDown() throws Exception { super.tearDown(); } | 51,713 |
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... | 51,714 |
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... | 51,715 |
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... | 51,716 |
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... | 51,719 |
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... | 51,720 |
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... | 51,721 |
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; } | 51,722 |
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; } | 51,723 |
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... | 51,725 |
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; } | 51,727 |
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())); } } | 51,728 |
public WrappedPlainView (Element elem, boolean wordWrap) { super (elem, Y_AXIS); this.wordWrap = wordWrap; } | public WrappedPlainView (Element elem) { super (elem, Y_AXIS); this.wordWrap = wordWrap; } | 51,729 |
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; } | 51,730 |
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()"); } | 51,731 |
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()"); } | 51,732 |
public void tearDown() throws Exception { ServerManagement.deInit(); super.tearDown(); } | public void tearDown() throws Exception { ServerManagement.deInit(); super.tearDown(); } | 51,733 |
public void tearDown() throws Exception { connection.stop(); connection = null; //ServerManagement.deInit(); super.tearDown(); } | public void tearDown() throws Exception { connection.stop(); connection = null; //ServerManagement.deInit(); super.tearDown(); } | 51,734 |
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. i... | 51,735 |
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.... | 51,736 |
Object execute(); | Object execute(); | 51,737 |
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... | 51,738 |
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... | 51,739 |
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) { ... | 51,740 |
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) { ... | 51,741 |
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) { ... | 51,742 |
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) { ... | 51,743 |
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) { ... | 51,744 |
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) { ... | 51,745 |
public Object handleCreateConnectionDelegate(Invocation inv) throws Throwable { ClientConnectionFactoryDelegate cfd = (ClientConnectionFactoryDelegate)inv.getTargetObject(); ClientConnectionDelegate connectionDelegate = (ClientConnectionDelegate)inv.invokeNext(); connectionDelegate.init(); Stri... | public Object handleCreateConnectionDelegate(Invocation inv) throws Throwable { ClientConnectionFactoryDelegate cfd = (ClientConnectionFactoryDelegate)inv.getTargetObject(); ClientConnectionDelegate connectionDelegate = (ClientConnectionDelegate)inv.invokeNext(); connectionDelegate.init(); int ... | 51,746 |
protected String paramString() { return "JFrame"; } | protected String paramString() { return super.paramString(); } | 51,747 |
private void doRelayout(ReflowEvent evt) throws InterruptedException{ // if layout is already in progress if (root.layoutInProgress) { // Uu.p("layout already in progress. stopping for" + evt); root.layout_context.stopRendering(); while (root.layoutInProgress) { ... | private void doRelayout(ReflowEvent evt) throws InterruptedException{ // if layout is already in progress if (root.layoutInProgress) { // Uu.p("layout already in progress. stopping for" + evt); if(root.layout_context != null) { root.layout_context.stopRendering(); } w... | 51,748 |
public Dimension maximumLayoutSize(Container target) { return calcSize(target, MAX); } | public Dimension maximumLayoutSize(Container target) { return new Dimension (Integer.MAX_VALUE, Integer.MAX_VALUE); } | 51,750 |
public WorkflowDescriptor getWorkflow(String name) throws FactoryException { WfConfig c = (WfConfig) workflows.get(name); if (c == null) { throw new RuntimeException("Unknown workflow name \"" + name + "\""); } if (log.isDebugEnabled()) { log.debug("getWorkflow " + ... | public WorkflowDescriptor getWorkflow(String name) throws FactoryException { WfConfig c = (WfConfig) workflows.get(name); if (c == null) { throw new RuntimeException("Unknown workflow name \"" + name + "\""); } if (log.isDebugEnabled()) { log.debug("getWorkflow " + ... | 51,751 |
public void startElement(String uri, String localName, String qName, Attributes att) throws SAXException { // we first copy attributes in a Map to be able to modify them Map attributes = new HashMap(); for (int i=0; i<att.getLength(); i++) { attributes.put(att.getQName(i), att.getVal... | public void startElement(String uri, String localName, String qName, Attributes att) throws SAXException { // we first copy attributes in a Map to be able to modify them Map attributes = new HashMap(); for (int i=0; i<att.getLength(); i++) { attributes.put(att.getQName(i), att.getVal... | 51,752 |
public void setConfigurationVariables(URL configurationURL) { String confURL = configurationURL.toExternalForm(); setVariable("ivy.conf.url", confURL); int slashIndex = confURL.lastIndexOf('/'); if (slashIndex != -1) { setVariable("ivy.conf.dir", confURL.substring(0, slashInde... | public void setConfigurationVariables(URL configurationURL) { String confURL = configurationURL.toExternalForm(); setVariable("ivy.conf.url", confURL); int slashIndex = confURL.lastIndexOf('/'); if (slashIndex != -1) { setVariable("ivy.conf.dir", confURL.substring(0, slashInde... | 51,753 |
public boolean selfTest() { if (valid == null) { boolean result = super.selfTest(); // do symmetry tests if (result) { result = testKat(KAT_KEY, KAT_CT); } valid = new Boolean(result); } return valid.booleanValue(); } | public boolean selfTest() { if (valid == null) { boolean result = super.selfTest(); // do symmetry tests if (result) { result = testKat(KAT_KEY, KAT_CT); } valid = Boolean.valueOf(result); } return valid.booleanValue(); } | 51,754 |
public void tearDown() throws Exception { // TODO uncomment these //Drain the queue while (true) { Message m = queueConsumer.receive(2000); if (m == null) break; } producerConnection.close(); consumerConnection.close(); ServerManagement.unde... | public void tearDown() throws Exception { // TODO uncomment these //Drain the queue while (true) { Message m = queueConsumer.receive(2000); if (m == null) break; } producerConnection.close(); consumerConnection.close(); ServerManagement.unde... | 51,756 |
public synchronized void acknowledge(Transaction tx) throws Throwable { // deals with the race condition when acknowledgment arrives before the delivery // is returned back to the sending delivery observer if (tx == null) { //TODO Why don't we set done to true if the ack is transactiona... | observer.acknowledge(this, tx); observer.acknowledge(this, tx); observer.acknowledge(this, tx); public observer.acknowledge(this, tx); synchronized observer.acknowledge(this, tx); void observer.acknowledge(this, tx); acknowledge(Transaction observer.acknowledge(this, tx); tx) observer.acknowledge(this, tx); throws o... | 51,757 |
public synchronized void acknowledge(Transaction tx) throws Throwable { // deals with the race condition when acknowledgment arrives before the delivery // is returned back to the sending delivery observer if (tx == null) { //TODO Why don't we set done to true if the ack is transactiona... | public synchronized void acknowledge(Transaction tx) throws Throwable { // deals with the race condition when acknowledgment arrives before the delivery // is returned back to the sending delivery observer if (tx == null) { //TODO Why don't we set done to true if the ack is transactiona... | 51,758 |
public synchronized boolean cancel() throws Throwable { // deals with the race condition when cancellation arrives before the delivery // is returned back to the sending delivery observer cancelled = true; return observer.cancel(this); } | public synchronized void cancel() throws Throwable { // deals with the race condition when cancellation arrives before the delivery // is returned back to the sending delivery observer cancelled = true; return observer.cancel(this); } | 51,759 |
public synchronized boolean cancel() throws Throwable { // deals with the race condition when cancellation arrives before the delivery // is returned back to the sending delivery observer cancelled = true; return observer.cancel(this); } | observer.cancel(this); observer.cancel(this); observer.cancel(this); public observer.cancel(this); synchronized observer.cancel(this); boolean observer.cancel(this); cancel() observer.cancel(this); throws observer.cancel(this); Throwable observer.cancel(this); observer.cancel(this); observer.cancel(this); { observ... | 51,760 |
public synchronized boolean cancel() throws Throwable { // deals with the race condition when cancellation arrives before the delivery // is returned back to the sending delivery observer cancelled = true; return observer.cancel(this); } | public synchronized boolean cancel() throws Throwable { // deals with the race condition when cancellation arrives before the delivery // is returned back to the sending delivery observer cancelled = true; } | 51,761 |
public ToolTipUI() { // TODO } // ToolTipUI() | public ToolTipUI() { // TODO } // ToolTipUI() | 51,762 |
private static void positionVertically(LayoutContext c, Box container, LineBox current) { if (current.getChildCount() == 0) { current.height = 0; } else { LineMetrics strutLM = container.getStyle().getLineMetrics(c); VerticalAlignContext vaContext = new VerticalAlignCo... | private static void positionVertically(LayoutContext c, Box container, LineBox current) { if (current.getChildCount() == 0) { current.height = 0; } else { LineMetrics strutLM = container.getStyle().getLineMetrics(c); VerticalAlignContext vaContext = new VerticalAlignCo... | 51,764 |
private static void positionVertically(LayoutContext c, Box container, LineBox current) { if (current.getChildCount() == 0) { current.height = 0; } else { LineMetrics strutLM = container.getStyle().getLineMetrics(c); VerticalAlignContext vaContext = new VerticalAlignCo... | private static void positionVertically(LayoutContext c, Box container, LineBox current) { if (current.getChildCount() == 0) { current.height = 0; } else { LineMetrics strutLM = container.getStyle().getLineMetrics(c); VerticalAlignContext vaContext = new VerticalAlignCo... | 51,765 |
protected void executeRenderThread(RenderingContext c, Layer root) { //Uu.p("do render called"); //Uu.p("last render event = " + last_event); // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof Pri... | protected void executeRenderThread(RenderingContext c, Layer root) { //Uu.p("do render called"); //Uu.p("last render event = " + last_event); // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof Pri... | 51,768 |
public void paintPage(Graphics2D g, int page) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } RenderingContext c = newRenderingContext(getPageInfo(), (Graphics2D) g); PageInfo info = c.getPageInfo(); Borde... | public void paintPage(Graphics2D g, int page) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } RenderingContext c = newRenderingContext(getPageInfo(), (Graphics2D) g); PageInfo info = c.getPageInfo(); Borde... | 51,769 |
private void renderPagedView(RenderingContext c, Layer root) { int pageCount = getPageCount(sharedContext); setPreferredSize(new Dimension(sharedContext.getMaxWidth(), (int) (pageCount * c.getPageInfo().getContentHeight() + pageCount * c.getPageInfo().getMargins().top + ... | private void renderPagedView(RenderingContext c, Layer root) { int pageCount = getPageCount(sharedContext); setPreferredSize(new Dimension(sharedContext.getMaxWidth(), (int) (pageCount * c.getPageInfo().getContentHeight() + pageCount * c.getPageInfo().getMargins().top + ... | 51,770 |
public int getJMSMajorVersion() throws JMSException { return 1; } | public int getJMSMajorVersion() throws JMSException { return 1; } | 51,771 |
public int getJMSMinorVersion() throws JMSException { return 1; } | public int getJMSMinorVersion() throws JMSException { return 1; } | 51,772 |
public String getJMSProviderName() throws JMSException { return "JBoss Messaging"; } | public String getJMSProviderName() throws JMSException { return "JBoss Messaging"; } | 51,773 |
public String getJMSVersion() throws JMSException { return "1.1"; } | public String getJMSVersion() throws JMSException { return "1.1"; } | 51,774 |
public Enumeration getJMSXPropertyNames() throws JMSException { //TODO return new Vector().elements(); } | public Enumeration getJMSXPropertyNames() throws JMSException { //TODO return new Vector().elements(); } | 51,775 |
public int getProviderMajorVersion() throws JMSException { return 1; } | public int getProviderMajorVersion() throws JMSException { return 1; } | 51,776 |
public int getProviderMinorVersion() throws JMSException { return 0; } | public int getProviderMinorVersion() throws JMSException { return 0; } | 51,777 |
public String getProviderVersion() throws JMSException { return "1.0.0 alpha PR1"; } | public String getProviderVersion() throws JMSException { return "1.0.0 alpha PR1"; } | 51,778 |
protected synchronized void inuse() throws Throwable { if (state != NOT_CLOSED) { throw new IllegalStateException("The object is closed"); } ++inuseCount; } | protected synchronized void inuse()throws Throwable {if (state != NOT_CLOSED){ throw new IllegalStateException("The object is closed");}++inuseCount; } | 51,780 |
public Object invoke(Invocation invocation) throws Throwable { String methodName = ((MethodInvocation) invocation).getMethod().getName(); boolean isClosing = methodName.equals("closing"); boolean isClose = methodName.equals("close"); if (isClosing) { if (checkC... | if (log.isTraceEnabled()) { log.trace(methodName + " " + ((JMSMethodInvocation)invocation).getHandler().getDelegateID()); } if (log.isTraceEnabled()) { log.trace(methodName + " " + ((JMSMethodInvocation)invocation).getHandler().getDelegateID()); } if (log.isTraceEnabled()) { log.trace(methodName + " " + ((JMSMetho... | 51,781 |
public Object invoke(Invocation invocation) throws Throwable { String methodName = ((MethodInvocation) invocation).getMethod().getName(); boolean isClosing = methodName.equals("closing"); boolean isClose = methodName.equals("close"); if (isClosing) { if (checkC... | public Object invoke(Invocation invocation) throws Throwable { String methodName = ((MethodInvocation) invocation).getMethod().getName(); boolean isClosing = methodName.equals("closing"); boolean isClose = methodName.equals("close"); if (isClosing) { if (checkC... | 51,782 |
public String getNodeId() { // TODO Auto-generated method stub return null; } | public int getNodeId() { // TODO Auto-generated method stub return null; } | 51,783 |
public String getNodeId() { // TODO Auto-generated method stub return null; } | public String getNodeId() { // TODO Auto-generated method stub return -1; } | 51,784 |
public java.math.BigInteger getModulus(); | public java.math.BigInteger getModulus(); | 51,785 |
public void paintComponent(Graphics g) { if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } else { String te... | public void paintComponent(Graphics g) { if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } else { String te... | 51,786 |
void addAsfMessage(Message m, String receiverID, ConsumerDelegate cons) { delegate.addAsfMessage(m, receiverID, cons); } | void addAsfMessage(Message m, int consumerID, ConsumerDelegate cons) { delegate.addAsfMessage(m, receiverID, cons); } | 51,787 |
void addAsfMessage(Message m, String receiverID, ConsumerDelegate cons) { delegate.addAsfMessage(m, receiverID, cons); } | void addAsfMessage(Message m, String receiverID, ConsumerDelegate cons) { delegate.addAsfMessage(m, consumerID, cons); } | 51,788 |
public void stop() throws Exception { if (connector == null) { return; } connector.stop(); connector = null; } | public void stop() throws Exception { if (connector == null) { return; } connector.stop(); connector = null; } | 51,789 |
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... | 51,790 |
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... | 51,791 |
protected void paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text) { Font f = menuItem.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); if (text != null && !text.equals("")) { if (menuItem.isEnabled()) { // Men... | protected void paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text) { Font f = menuItem.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); if (text != null && !text.equals("")) { if (menuItem.isEnabled()) { // Men... | 51,792 |
public CellView createView(GraphModel model, Object cell) { if(model.isPort(cell)) { return new CustomPortView(cell); } else if(model.isEdge(cell)) { return new CustomEdgeView(cell); } else if(cell instanceof StepCell) return new StepView(cell); else if(cell instanceof SplitCel... | public CellView createView(GraphModel model, Object cell) { if(model.isPort(cell)) { return new CustomPortView(cell); } else if(model.isEdge(cell)) { CustomEdgeView view = (CustomEdgeView)edgeMap.get(cell); if(view == null) { view = new CustomEdgeView(cell); edgeMap.put(cell ,view); } return... | 51,793 |
public CellView createView(GraphModel model, Object cell) { if(model.isPort(cell)) { return new CustomPortView(cell); } else if(model.isEdge(cell)) { return new CustomEdgeView(cell); } else if(cell instanceof StepCell) return new StepView(cell); else if(cell instanceof SplitCel... | public CellView createView(GraphModel model, Object cell) { if(model.isPort(cell)) { return new CustomPortView(cell); } else if(model.isEdge(cell)) { return new CustomEdgeView(cell); } else if(cell instanceof StepCell) return new StepView(cell); else if(cell instanceof SplitCel... | 51,794 |
public void afterCommit(boolean onePhase) { //We add the reference to the state if (trace) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } ref.incrementChannelCount(); boolean first = false; try { ... | public void afterCommit(boolean onePhase) { //We add the reference to the state if (trace) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } boolean first = false; try { synchronized (r... | 51,795 |
public void afterRollback(boolean onePhase) { //NOOP } | ref.releaseMemoryReference(); ref.releaseMemoryReference(); ref.releaseMemoryReference(); ref.releaseMemoryReference(); ref.releaseMemoryReference(); ref.releaseMemoryReference(); publicref.releaseMemoryReference(); voidref.releaseMemoryReference(); afterRollback(booleanref.releaseMemoryReference(); onePhase)ref.releas... | 51,796 |
public void afterCommit(boolean onePhase) { if (trace) { log.trace(this + " removing " + del + " after commit"); } del.getReference().decrementChannelCount(); try { acknowledgeInMemory(del); } catch (Throwable t) { ... | public void afterCommit(boolean onePhase) { if (trace) { log.trace(this + " removing " + del + " after commit"); } del.getReference().releaseMemoryReference(); try { acknowledgeInMemory(del); } catch (Throwable t) { ... | 51,797 |
public void afterCommit(boolean onePhase) { if (trace) { log.trace(this + " removing " + del + " after commit"); } del.getReference().decrementChannelCount(); try { acknowledgeInMemory(del); } catch (Throwable t) { ... | public void afterCommit(boolean onePhase) { if (trace) { log.trace(this + " removing " + del + " after commit"); } del.getReference().decrementChannelCount(); try { acknowledgeInMemory(del); } catch (Throwable t) { ... | 51,798 |
public void beforeCommit(boolean onePhase) { //NOOP } | public void beforeCommit(boolean onePhase) { //NOOP } | 51,799 |
public ChannelState(Channel channel, PersistenceManager pm, boolean acceptReliableMessages, boolean recoverable, int fullSize, int pageSize, int downCacheSize) { if (pm == null) { throw new IllegalArgumentException("ChannelState requires a " + ... | public ChannelState(Channel channel, PersistenceManager pm, boolean acceptReliableMessages, boolean recoverable, int fullSize, int pageSize, int downCacheSize) { if (pm == null) { throw new IllegalArgumentException("ChannelState requires a " + ... | 51,800 |
public ChannelState(Channel channel, PersistenceManager pm, boolean acceptReliableMessages, boolean recoverable, int fullSize, int pageSize, int downCacheSize) { if (pm == null) { throw new IllegalArgumentException("ChannelState requires a " + ... | public ChannelState(Channel channel, PersistenceManager pm, boolean acceptReliableMessages, boolean recoverable, int fullSize, int pageSize, int downCacheSize) { if (pm == null) { throw new IllegalArgumentException("ChannelState requires a " + ... | 51,801 |
public void acknowledge(Delivery d, Transaction tx) throws Throwable { //Transactional so add a post commit callback to remove after tx commit RemoveDeliveryCallback callback = new RemoveDeliveryCallback(d); tx.addCallback(callback); if (trace) { log.trace(this + " added " + d + " t... | public void acknowledge(Delivery d, Transaction tx) throws Throwable { //Transactional so add a post commit callback to remove after tx commit RemoveDeliveryCallback callback = new RemoveDeliveryCallback(d); tx.addCallback(callback); ... | 51,802 |
public void acknowledge(Delivery d, Transaction tx) throws Throwable { //Transactional so add a post commit callback to remove after tx commit RemoveDeliveryCallback callback = new RemoveDeliveryCallback(d); tx.addCallback(callback); if (trace) { log.trace(this + " added " + d + " t... | public void acknowledge(Delivery d, Transaction tx) throws Throwable { //Transactional so add a post commit callback to remove after tx commit RemoveDeliveryCallback callback = new RemoveDeliveryCallback(d); tx.addCallback(callback); if (trace) { log.trace(this + " added " + d + " t... | 51,803 |
protected void acknowledgeInMemory(Delivery d) throws Throwable { if (d == null) { throw new IllegalArgumentException("Can't acknowledge a null delivery"); } synchronized (deliveryLock) { boolean removed = deliveries.remove(d); if (trace) ... | protected void acknowledgeInMemory(Delivery d) throws Throwable { if (d == null) { throw new IllegalArgumentException("Can't acknowledge a null delivery"); } synchronized (deliveryLock) { boolean removed = deliveries.remove(d); if (trace) ... | 51,804 |
public void addDelivery(Delivery d) throws Throwable { synchronized (deliveryLock) { deliveries.add(d); if (trace) { log.trace(this + " added " + d + " to memory"); } } } | public void addDelivery(Delivery d) throws Throwable { synchronized (deliveryLock) { deliveries.add(d); if (trace) { log.trace(this + " added " + d + " to memory"); } } } | 51,805 |
public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (trace) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since a reliable mes... | public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (trace) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since a reliable mes... | 51,806 |
public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (trace) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since a reliable mes... | public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (trace) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since a reliable me... | 51,807 |
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } boolea... | protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } if (tr... | 51,808 |
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } boolea... | protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } boolea... | 51,809 |
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } boolea... | protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } boolea... | 51,810 |
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } boolea... | protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } boolea... | 51,811 |
protected void addToDownCache(MessageReference ref) throws Exception { // Non reliable refs can be cached in a down cache and then flushed to storage in blocks downCache.add(ref); if (trace) { log.trace(ref + " sent to downcache"); } if (downCache.size() == downCacheSize) { i... | protected void addToDownCache(MessageReference ref) throws Exception { // Non reliable refs can be cached in a down cache and then flushed to storage ... | 51,812 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.