bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration e; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources e = bundle.getKeys(); while (e.hasMoreElements()) { key = (String) e.nextElement(); ...
private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration enum; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources e = bundle.getKeys(); while (e.hasMoreElements()) { key = (String) e.nextElement(); ...
53,793
private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration e; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources e = bundle.getKeys(); while (e.hasMoreElements()) { key = (String) e.nextElement(); ...
private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration e; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources e = bundle.getKeys(); while (e.hasMoreElements()) { key = (String) e.nextElement(); ...
53,794
private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration e; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources e = bundle.getKeys(); while (e.hasMoreElements()) { key = (String) e.nextElement(); ...
private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration e; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources e = bundle.getKeys(); while (e.hasMoreElements()) { key = (String) enum.nextElement(); ...
53,795
private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration e; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources e = bundle.getKeys(); while (e.hasMoreElements()) { key = (String) e.nextElement(); ...
private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration e; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources e = bundle.getKeys(); while (e.hasMoreElements()) { key = (String) e.nextElement(); ...
53,796
public JMSRemotingConnection(String serverLocatorURI) throws Throwable { callbackManager = new CallbackManager(); id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); serverLocator = new InvokerLocator(serverLocatorURI); isMultiplex = serverLocator.getProt...
public JMSRemotingConnection(String serverLocatorURI) throws Throwable { callbackManager = new CallbackManager(); id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); serverLocator = new InvokerLocator(serverLocatorURI); isMultiplex = serverLocator.getProt...
53,797
public static void setupFixed(Context c, Box box) { if (c.getCurrentStyle().isIdent(CSSName.POSITION, IdentValue.FIXED)) { box.fixed = true; box.setFixedDescendant(true); box.setChildrenExceedBounds(true); Rectangle rect = c.getFixedRectangle(); Calculat...
public static void setupFixed(Context c, Box box) { if (c.getCurrentStyle().isIdent(CSSName.POSITION, IdentValue.FIXED)) { box.fixed = true; box.setFixedDescendant(true); Rectangle rect = c.getFixedRectangle(); CalculatedStyle style = c.getCurrentStyle()...
53,798
public void cancelDeliveries(String receiverID) throws JMSException { }
public void cancelDeliveries() throws JMSException { }
53,799
protected LayoutManager createLayoutManager() { return new TabbedPaneLayout(); }
protected LayoutManager createLayoutManager() { return super.createLayoutManager(); }
53,800
protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { if (isSelected) g.setColor(MetalLookAndFeel.getControl()); else g.setColor(MetalLookAndFeel.getControlShadow()); int[] px, py; if (tabPlacement == TOP) { ...
protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { if (isSelected) g.setColor(UIManager.getColor("TabbedPane.selected")); else g.setColor(MetalLookAndFeel.getControlShadow()); int[] px, py; if (tabPlacement == TOP...
53,801
protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { if (isSelected) g.setColor(MetalLookAndFeel.getControl()); else g.setColor(MetalLookAndFeel.getControlShadow()); int[] px, py; if (tabPlacement == TOP) { ...
protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { if (isSelected) g.setColor(MetalLookAndFeel.getControl()); else { Color background = UIManager.getColor("TabbedPane.unselectedBackground"); if (background == null) ba...
53,802
protected synchronized void startService() throws Exception { if (started) { throw new IllegalStateException("Service is already started"); } super.startService(); try { TransactionManager tm = getTransactionManagerReference(); ...
protected synchronized void startService() throws Exception { if (started) { throw new IllegalStateException("Service is already started"); } super.startService(); try { TransactionManager tm = getTransactionManagerReference(); ...
53,803
public ClientSessionDelegate(String objectID) { super(objectID); }
public ClientSessionDelegate(int objectID) { super(objectID); }
53,804
public void addAsfMessage(Message m, String consumerID, ConsumerDelegate cons) { throw new IllegalStateException("This invocation should not be handled here!"); }
public void addAsfMessage(Message m, int consumerID, ConsumerDelegate cons) { throw new IllegalStateException("This invocation should not be handled here!"); }
53,805
public void postDeliver(String messageID, String receiverID) throws JMSException { throw new IllegalStateException("This invocation should not be handled here!"); }
public void postDeliver(String messageID, int receiverID) throws JMSException { throw new IllegalStateException("This invocation should not be handled here!"); }
53,806
public void preDeliver(String messageID, String receiverID) throws JMSException { throw new IllegalStateException("This invocation should not be handled here!"); }
public void preDeliver(String messageID, int receiverID) throws JMSException { throw new IllegalStateException("This invocation should not be handled here!"); }
53,807
public String toString() { return "SessionDelegate[" + Util.guidToString(id) + "]"; }
public String toString() { return "SessionDelegate[" + id + "]"; }
53,808
public static String xhtmlToDiff(String xhtml, int width, int height) throws Exception { Document doc = Xx.loadDocument(xhtml); Graphics2DRenderer renderer = new Graphics2DRenderer(); renderer.setDocument(doc, new File(xhtml).toURL().toString()); BufferedImage buff = new Buffe...
public static String xhtmlToDiff(String xhtml, int width, int height) throws Exception { Document doc = Xx.loadDocument(xhtml); Graphics2DRenderer renderer = new Graphics2DRenderer(); renderer.setDocument(doc, new File(xhtml).toURL().toString()); BufferedImage buff = new Buffe...
53,809
public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all,-remoting,-security"); sc.start(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); pm.start(); ms = new PagingMessageStore("store0"); }
public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all,-remoting,-security"); sc.start(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); pm.start(); ms = new SimpleMessageStore("store0"); }
53,810
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); if (m.getName().equals("createConsumerDelegate")) { // register/unregister...
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); if (m.getName().equals("createConsumerDelegate")) { // register/unregister...
53,811
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); if (m.getName().equals("createConsumerDelegate")) { // register/unregister...
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); if (m.getName().equals("createConsumerDelegate")) { // register/unregister...
53,812
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); if (m.getName().equals("createConsumerDelegate")) { // register/unregister...
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); if (m.getName().equals("createConsumerDelegate")) { // register/unregister...
53,813
public Rectangle getBoundingBox() { if (bounds == null) { if (npoints == 0) return bounds = new Rectangle (); int i = npoints - 1; int minx = xpoints[i]; int maxx = minx; int miny = ypoints[i]; int maxy = miny; while (--i >= 0) { i...
public Rectangle getBoundingBox() { if (bounds == null) { if (npoints == 0) return bounds = new Rectangle(); int i = npoints - 1; int minx = xpoints[i]; int maxx = minx; int miny = ypoints[i]; int maxy = miny; while (--i >= 0) { in...
53,814
public Rectangle getBoundingBox() { if (bounds == null) { if (npoints == 0) return bounds = new Rectangle (); int i = npoints - 1; int minx = xpoints[i]; int maxx = minx; int miny = ypoints[i]; int maxy = miny; while (--i >= 0) { i...
public Rectangle getBoundingBox() { if (bounds == null) { if (npoints == 0) return bounds = new Rectangle (); int i = npoints - 1; int minx = xpoints[i]; int maxx = minx; int miny = ypoints[i]; int maxy = miny; while (--i >= 0) { i...
53,815
public Rectangle getBounds() { return getBoundingBox (); }
public Rectangle getBounds() { return getBoundingBox(); }
53,816
public boolean intersects(double x, double y, double w, double h) { // First, the obvious bounds checks. if (w <= 0 || h <= 0 || npoints == 0 || ! getBounds().intersects(x, y, w, h)) return false; // Disjoint bounds. if ((x <= bounds.x && x + w >= bounds.x + bounds.width && y <= bounds.y...
public boolean intersects(double x, double y, double w, double h) { // First, the obvious bounds checks. if (w <= 0 || h <= 0 || npoints == 0 || ! getBounds().intersects(x, y, w, h)) return false; // Disjoint bounds. if ((x <= bounds.x && x + w >= bounds.x + bounds.width && y <= bounds.y...
53,817
public boolean intersects(double x, double y, double w, double h) { // First, the obvious bounds checks. if (w <= 0 || h <= 0 || npoints == 0 || ! getBounds().intersects(x, y, w, h)) return false; // Disjoint bounds. if ((x <= bounds.x && x + w >= bounds.x + bounds.width && y <= bounds.y...
public boolean intersects(double x, double y, double w, double h) { // First, the obvious bounds checks. if (w <= 0 || h <= 0 || npoints == 0 || ! getBounds().intersects(x, y, w, h)) return false; // Disjoint bounds. if ((x <= bounds.x && x + w >= bounds.x + bounds.width && y <= bounds.y...
53,818
public boolean intersects(double x, double y, double w, double h) { // First, the obvious bounds checks. if (w <= 0 || h <= 0 || npoints == 0 || ! getBounds().intersects(x, y, w, h)) return false; // Disjoint bounds. if ((x <= bounds.x && x + w >= bounds.x + bounds.width && y <= bounds.y...
public boolean intersects(double x, double y, double w, double h) { // First, the obvious bounds checks. if (w <= 0 || h <= 0 || npoints == 0 || ! getBounds().intersects(x, y, w, h)) return false; // Disjoint bounds. if ((x <= bounds.x && x + w >= bounds.x + bounds.width && y <= bounds.y...
53,819
public void invalidate() { bounds = null; condensed = null; }
public void invalidate() { bounds = null; }
53,820
public void translate(int dx, int dy) { int i = npoints; while (--i >= 0) { xpoints[i] += dx; ypoints[i] += dy; } if (bounds != null) { bounds.x += dx; bounds.y += dy; } condensed = null; }
public void translate(int dx, int dy) { int i = npoints; while (--i >= 0) { xpoints[i] += dx; ypoints[i] += dy; } if (bounds != null) { bounds.x += dx; bounds.y += dy; } }
53,821
public void test1() throws Throwable { Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Message[] msgs = new Message[241]; MessageReference[] refs = new MessageReference[241]; //Send 99 Transaction tx = tr.createTran...
public void test1() throws Throwable { Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor()); Message[] msgs = new Message[241]; MessageReference[] refs = new MessageReference[241]; //Send 99 Transaction tx = tr.createTransactio...
53,822
public static InlineBox generateFloatedBlockInlineBox(Context c, Content content, int avail, LineBox curr_line) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.set...
public static InlineBox generateFloatedBlockInlineBox(Context c, Content content, int avail, LineBox curr_line) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.set...
53,823
public static InlineBox generateFloatedBlockInlineBox(Context c, Content content, int avail, LineBox curr_line) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.set...
public static InlineBox generateFloatedBlockInlineBox(Context c, Content content, int avail, LineBox curr_line) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.set...
53,824
public ITextRenderer() { this(DEFAULT_DOTS_PER_POINT, DEFAULT_PIXELS_PER_DOT); }
public ITextRenderer() { this(DEFAULT_DOTS_PER_POINT, DEFAULT_DOTS_PER_PIXEL); }
53,825
public void doAction(long id, int actionId, Map inputs) throws WorkflowException { int[] availableActions = getAvailableActions(id); boolean validAction = false; for (int i = 0; i < availableActions.length; i++) { if (availableActions[i] == actionId) { validAction = tr...
public void doAction(long id, int actionId, Map inputs) throws WorkflowException { int[] availableActions = getAvailableActions(id); boolean validAction = false; for (int i = 0; i < availableActions.length; i++) { if (availableActions[i] == actionId) { validAction = tr...
53,826
public Message getMessageNow() throws JMSException { return endpoint.getMessageNow(); }
public Message getMessageNow(boolean wait) throws JMSException { return endpoint.getMessageNow(); }
53,827
public Message getMessageNow() throws JMSException { return endpoint.getMessageNow(); }
public Message getMessageNow() throws JMSException { return endpoint.getMessageNow(wait); }
53,828
public void tearDown() throws Exception { producerConnection.close(); consumerConnection.close(); ServerManagement.undeployTopic("Topic"); ServerManagement.deInit(); super.tearDown(); }
publicvoidtearDown()throwsException{producerConnection.close();consumerConnection.close();ServerManagement.undeployTopic("Topic");ServerManagement.deInit();super.tearDown();}
53,829
public void tearDown() throws Exception { producerConnection.close(); consumerConnection.close(); ServerManagement.undeployTopic("Topic"); ServerManagement.deInit(); super.tearDown(); }
publicvoidtearDown()throwsException{producerConnection.close();consumerConnection.close();ServerManagement.undeployTopic("Topic");ServerManagement.deInit();super.tearDown();}
53,830
public Object getResult() { return null; }
public Object getResult() { return new JobTimings(0, 0); }
53,831
public void run() { Connection conn = null; try { log.info("==============Running job:" + this.getName()); super.setup(); conn = cf.createConnection(); long count = 0; Session sess = conn.createSession(fals...
public void run() { Connection conn = null; try { log.info("==============Running fill job"); super.setup(); conn = cf.createConnection(); long count = 0; Session sess = conn.createSession(false, Session.AU...
53,832
public synchronized void onMessage(Message message) { try { log.info("Received message " + msgsReceived); TextMessage tm = (TextMessage)message; if (!tm.getText().equals("testing testing")) { fai...
public synchronized void onMessage(Message message) { try { log.trace("Received message " + msgsReceived); TextMessage tm = (TextMessage)message; if (!tm.getText().equals("testing testing")) { fa...
53,833
public void testRedelivery() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); co...
public void testRedelivery() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); co...
53,835
public void testRedelivery() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); co...
public void testRedelivery() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); co...
53,836
public void testRedelivery() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); co...
public void testRedelivery() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); co...
53,837
public void testRedelivery() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); co...
public void testRedelivery() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); co...
53,838
public void testSimple() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); connCo...
public void testSimple() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); connCo...
53,839
public void testSimple() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); connCo...
public void testSimple() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); connCo...
53,840
public void testSimple() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); connCo...
public void testSimple() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); connCo...
53,841
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 } }; // TODO:...
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 } }; // TODO:...
53,842
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 } }; // TODO:...
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 } }; // TODO:...
53,843
public void actionPerformed(ActionEvent evt) { // TODO: stop not coded }
public void actionPerformed(ActionEvent evt) { // TODO: stop not coded }
53,844
public void setAccel(Action act, int key) { act.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(key, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask())); }
public static void setAccel(Action act, int key) { act.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(key, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask())); }
53,845
public void setMnemonic(Action act, Integer mnem) { act.putValue(Action.MNEMONIC_KEY, mnem); }
public static void setMnemonic(Action act, Integer mnem) { act.putValue(Action.MNEMONIC_KEY, mnem); }
53,846
public void setName(Action act, String name) { act.putValue(Action.NAME, name); }
public static void setName(Action act, String name) { act.putValue(Action.NAME, name); }
53,847
public static void assertEquivalent(Node node, Node node2) { if (node == null) { throw new XMLRuntimeException("the first node to be compared is null"); } if (node2 == null) { throw new XMLRuntimeException("the second node to be compared is null"); } if (!node.get...
public static void assertEquivalent(Node node, Node node2) { if (node == null) { throw new XMLRuntimeException("the first node to be compared is null"); } if (node2 == null) { throw new XMLRuntimeException("the second node to be compared is null"); } if (!node.get...
53,848
public Object handleClosing(Invocation invocation) throws Throwable { MessageCallbackHandler handler = (MessageCallbackHandler)invocation.getMetaData(MetaDataConstants.JMS, MetaDataConstants.MESSAGE_HANDLER); if (handler == null) { throw new IllegalStateException("Cannot find m...
public Object handleClosing(Invocation invocation) throws Throwable { MessageCallbackHandler handler = (MessageCallbackHandler)invocation.getMetaData(MetaDataConstants.JMS, MetaDataConstants.MESSAGE_HANDLER); if (handler == null) { throw new IllegalStateException("Cannot find m...
53,853
public Object handleClosing(Invocation invocation) throws Throwable { MessageCallbackHandler handler = (MessageCallbackHandler)invocation.getMetaData(MetaDataConstants.JMS, MetaDataConstants.MESSAGE_HANDLER); if (handler == null) { throw new IllegalStateException("Cannot find m...
public Object handleClosing(Invocation invocation) throws Throwable { MessageCallbackHandler handler = (MessageCallbackHandler)invocation.getMetaData(MetaDataConstants.JMS, MetaDataConstants.MESSAGE_HANDLER); if (handler == null) { throw new IllegalStateException("Cannot find m...
53,854
public Object handleClosing(Invocation invocation) throws Throwable { MessageCallbackHandler handler = (MessageCallbackHandler)invocation.getMetaData(MetaDataConstants.JMS, MetaDataConstants.MESSAGE_HANDLER); if (handler == null) { throw new IllegalStateException("Cannot find m...
public Object handleClosing(Invocation invocation) throws Throwable { MessageCallbackHandler handler = (MessageCallbackHandler)invocation.getMetaData(MetaDataConstants.JMS, MetaDataConstants.MESSAGE_HANDLER); if (handler == null) { throw new IllegalStateException("Cannot find m...
53,855
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; //register/unregister a callback handler that deal with callbacks sent by the server InvokerLocator serverLocator = (InvokerLocator)invocation. ge...
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; //register/unregister a callback handler that deal with callbacks sent by the server InvokerLocator serverLocator = (InvokerLocator)invocation. ge...
53,856
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; //register/unregister a callback handler that deal with callbacks sent by the server InvokerLocator serverLocator = (InvokerLocator)invocation. ge...
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; //register/unregister a callback handler that deal with callbacks sent by the server InvokerLocator serverLocator = (InvokerLocator)invocation. ge...
53,857
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; //register/unregister a callback handler that deal with callbacks sent by the server InvokerLocator serverLocator = (InvokerLocator)invocation. ge...
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; //register/unregister a callback handler that deal with callbacks sent by the server InvokerLocator serverLocator = (InvokerLocator)invocation. ge...
53,858
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; //register/unregister a callback handler that deal with callbacks sent by the server InvokerLocator serverLocator = (InvokerLocator)invocation. ge...
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; //register/unregister a callback handler that deal with callbacks sent by the server InvokerLocator serverLocator = (InvokerLocator)invocation. ge...
53,859
TreePath getPath() { if (path == null) { LinkedList lpath = new LinkedList(); NodeRecord rp = this; while (rp != null) { lpath.addFirst(rp.node); if (rp.parent != null) rp = (NodeRecord) nodes.get(rp.parent); ...
TreePath getPath() { if (path == null) { LinkedList lpath = new LinkedList(); NodeRecord rp = this; while (rp != null) { lpath.addFirst(rp.node); if (rp.parent != null) { Object parent = rp.parent; rp = (NodeRecord) nodes....
53,860
TreePath getPath() { if (path == null) { LinkedList lpath = new LinkedList(); NodeRecord rp = this; while (rp != null) { lpath.addFirst(rp.node); if (rp.parent != null) rp = (NodeRecord) nodes.get(rp.parent); ...
TreePath getPath() { if (path == null) { LinkedList lpath = new LinkedList(); NodeRecord rp = this; while (rp != null) { lpath.addFirst(rp.node); if (rp.parent != null) rp = (NodeRecord) nodes.get(rp.parent); ...
53,861
private final void countRows(Object node, Object parent, int depth) { Integer n = new Integer(row2node.size()); row2node.put(n, node); nodes.put(node, new NodeRecord(n.intValue(), depth, node, parent)); if (expanded.contains(node) || parent == null) { int sc = treeModel.getChildCount(node...
private final void countRows(Object node, Object parent, int depth) { Integer n = new Integer(row2node.size()); row2node.put(n, node); NodeRecord nr = new NodeRecord(n.intValue(), depth, node, parent); nodes.put(node, nr); if (expanded.contains(node) || parent == null) { int sc = treeMode...
53,862
private final void countRows(Object node, Object parent, int depth) { Integer n = new Integer(row2node.size()); row2node.put(n, node); nodes.put(node, new NodeRecord(n.intValue(), depth, node, parent)); if (expanded.contains(node) || parent == null) { int sc = treeModel.getChildCount(node...
private final void countRows(Object node, Object parent, int depth) { Integer n = new Integer(row2node.size()); row2node.put(n, node); nodes.put(node, new NodeRecord(n.intValue(), depth, node, parent)); if (expanded.contains(node)) { int sc = treeModel.getChildCount(node); int dee...
53,863
public Rectangle getBounds(TreePath path, Rectangle rect) { if (dirty) update(); Object last = path.getLastPathComponent(); NodeRecord r = (NodeRecord) nodes.get(last); if (r == null) // This node is not visible. return new Rectangle(); else { if (r.bounds == null) { ...
public Rectangle getBounds(TreePath path, Rectangle rect) { if (dirty) update(); Object last = path.getLastPathComponent(); NodeRecord r = (NodeRecord) nodes.get(last); if (r == null) // This node is not visible. { rect.x = rect.y = rect.width = rect.height = 0; } else { if ...
53,864
public Rectangle getBounds(TreePath path, Rectangle rect) { if (dirty) update(); Object last = path.getLastPathComponent(); NodeRecord r = (NodeRecord) nodes.get(last); if (r == null) // This node is not visible. return new Rectangle(); else { if (r.bounds == null) { ...
public Rectangle getBounds(TreePath path, Rectangle rect) { if (dirty) update(); Object last = path.getLastPathComponent(); NodeRecord r = (NodeRecord) nodes.get(last); if (r == null) // This node is not visible. return new Rectangle(); else { if (r.bounds == null) { ...
53,865
public Rectangle getBounds(TreePath path, Rectangle rect) { if (dirty) update(); Object last = path.getLastPathComponent(); NodeRecord r = (NodeRecord) nodes.get(last); if (r == null) // This node is not visible. return new Rectangle(); else { if (r.bounds == null) { ...
public Rectangle getBounds(TreePath path, Rectangle rect) { if (dirty) update(); Object last = path.getLastPathComponent(); NodeRecord r = (NodeRecord) nodes.get(last); if (r == null) // This node is not visible. return new Rectangle(); else { if (r.bounds == null) { ...
53,866
public TreePath getPathClosestTo(int x, int y) { if (dirty) update(); // We do not need to iterate because all rows have the same height. int row = y / rowHeight; if (row < 0) row = 0; if (row > getRowCount()) row = getRowCount() - 1; if (row < 0) return null; // Empty tree -...
public TreePath getPathClosestTo(int x, int y) { if (dirty) update(); // We do not need to iterate because all rows have the same height. int row = y / rowHeight; if (row < 0) row = 0; if (row > getRowCount()) row = getRowCount() - 1; if (row < 0) return null; // Empty tree -...
53,868
public TreePath getPathClosestTo(int x, int y) { if (dirty) update(); // We do not need to iterate because all rows have the same height. int row = y / rowHeight; if (row < 0) row = 0; if (row > getRowCount()) row = getRowCount() - 1; if (row < 0) return null; // Empty tree -...
public TreePath getPathClosestTo(int x, int y) { if (dirty) update(); // We do not need to iterate because all rows have the same height. int row = y / rowHeight; if (row < 0) row = 0; if (row > getRowCount()) row = getRowCount() - 1; if (row < 0) return null; // Empty tree -...
53,869
public TreePath getPathClosestTo(int x, int y) { if (dirty) update(); // We do not need to iterate because all rows have the same height. int row = y / rowHeight; if (row < 0) row = 0; if (row > getRowCount()) row = getRowCount() - 1; if (row < 0) return null; // Empty tree -...
public TreePath getPathClosestTo(int x, int y) { if (dirty) update(); // We do not need to iterate because all rows have the same height. int row = y / rowHeight; if (row < 0) row = 0; if (row > getRowCount()) row = getRowCount() - 1; if (row < 0) return null; // Empty tree -...
53,870
public void invalidatePathBounds(TreePath path) { // Following JDK 1.4 API, should return without action. }
NodeRecord r = (NodeRecord) nodes.get(path.getLastPathComponent()); if (r!=null) r.bounds = null; NodeRecord r = (NodeRecord) nodes.get(path.getLastPathComponent()); if (r!=null) r.bounds = null; publicNodeRecord r = (NodeRecord) nodes.get(path.getLastPathComponent()); if (r!=null) r.bounds = null; voidNodeRecord r = (...
53,872
public void setModel(TreeModel newModel) { super.setModel(newModel); dirty = true; }
public void setModel(TreeModel newModel) { treeModel = newModel; expanded.add(treeModel.getRoot()); dirty = true; }
53,873
private final void update() { nodes.clear(); row2node.clear(); Object root = treeModel.getRoot(); if (rootVisible) { countRows(root, null, 0); } else { int sc = treeModel.getChildCount(root); for (int i = 0; i < sc; i++) { Object child = treeModel.getChil...
private final void update() { nodes.clear(); row2node.clear(); Object root = treeModel.getRoot(); if (rootVisible) { countRows(root, null, 0); } else { int sc = treeModel.getChildCount(root); for (int i = 0; i < sc; i++) { Object child = treeModel.getChil...
53,874
public static int adjustForTab( Context c, LineBox prev_line, int remaining_width ) { if(prev_line.width == 0) { prev_line.width = remaining_width; } else { Uu.p("warning. possible error. line already has width: " + prev_line); } BlockFormattingContext bfc = c.getBlockFormattingContext(); remai...
public static int adjustForTab( Context c, LineBox prev_line, int remaining_width ) { if(prev_line.width == 0) { prev_line.width = remaining_width; } else { Uu.p("warning. possible error. line already has width: " + prev_line); } BlockFormattingContext bfc = c.getBlockFormattingContext(); remai...
53,875
public static int adjustForTab( Context c, LineBox prev_line, int remaining_width ) { if(prev_line.width == 0) { prev_line.width = remaining_width; } else { Uu.p("warning. possible error. line already has width: " + prev_line); } BlockFormattingContext bfc = c.getBlockFormattingContext(); remai...
public static int adjustForTab( Context c, LineBox prev_line, int remaining_width ) { if(prev_line.width == 0) { prev_line.width = remaining_width; } else { Uu.p("warning. possible error. line already has width: " + prev_line); } BlockFormattingContext bfc = c.getBlockFormattingContext(); remai...
53,876
public static InlineBox generateFloatedBlockInlineBox( Context c, Content content, int avail, LineBox curr_line ) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.s...
public static InlineBox generateFloatedBlockInlineBox(Context c, Content content, int avail, LineBox curr_line) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.set...
53,877
public static InlineBox generateFloatedBlockInlineBox( Context c, Content content, int avail, LineBox curr_line ) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.s...
public static InlineBox generateFloatedBlockInlineBox( Context c, Content content, int avail, LineBox curr_line ) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.s...
53,878
public static InlineBox generateFloatedBlockInlineBox( Context c, Content content, int avail, LineBox curr_line ) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.s...
public static InlineBox generateFloatedBlockInlineBox( Context c, Content content, int avail, LineBox curr_line ) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.s...
53,879
public static InlineBox generateFloatedBlockInlineBox( Context c, Content content, int avail, LineBox curr_line ) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.s...
public static InlineBox generateFloatedBlockInlineBox( Context c, Content content, int avail, LineBox curr_line ) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.s...
53,880
public static InlineBox generateFloatedBlockInlineBox( Context c, Content content, int avail, LineBox curr_line ) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.s...
public static InlineBox generateFloatedBlockInlineBox( Context c, Content content, int avail, LineBox curr_line ) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.s...
53,881
public static InlineBox generateFloatedBlockInlineBox( Context c, Content content, int avail, LineBox curr_line ) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.s...
public static InlineBox generateFloatedBlockInlineBox( Context c, Content content, int avail, LineBox curr_line ) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.s...
53,882
public static InlineBox generateFloatedBlockInlineBox( Context c, Content content, int avail, LineBox curr_line ) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.s...
public static InlineBox generateFloatedBlockInlineBox( Context c, Content content, int avail, LineBox curr_line ) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.s...
53,883
public static InlineBox generateFloatedBlockInlineBox( Context c, Content content, int avail, LineBox curr_line ) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.s...
public static InlineBox generateFloatedBlockInlineBox( Context c, Content content, int avail, LineBox curr_line ) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.s...
53,884
public synchronized void unregisterConnectionFactory(String connFactoryID) throws Exception { ServerConnectionFactoryEndpoint endpoint = (ServerConnectionFactoryEndpoint)endpoints.get(connFactoryID); JNDIBindings jndiBindings = endpoint.getJNDIBindings(); if (jndiBindings != null) { ...
public synchronized void unregisterConnectionFactory(int connFactoryID) throws Exception { ServerConnectionFactoryEndpoint endpoint = (ServerConnectionFactoryEndpoint)endpoints.get(connFactoryID); JNDIBindings jndiBindings = endpoint.getJNDIBindings(); if (jndiBindings != null) { ...
53,885
public synchronized void unregisterConnectionFactory(String connFactoryID) throws Exception { ServerConnectionFactoryEndpoint endpoint = (ServerConnectionFactoryEndpoint)endpoints.get(connFactoryID); JNDIBindings jndiBindings = endpoint.getJNDIBindings(); if (jndiBindings != null) { ...
public synchronized void unregisterConnectionFactory(String connFactoryID) throws Exception { ServerConnectionFactoryEndpoint endpoint = (ServerConnectionFactoryEndpoint)endpoints.get(Integer.valueOf(connFactoryID)); JNDIBindings jndiBindings = endpoint.getJNDIBindings(); if (jndiBindings !=...
53,886
public void clearBody() throws JMSException { payload = new ArrayList(); position = 0; offset = 0; size = 0; bodyWriteOnly = true; super.clearBody(); }
public void clearBody() throws JMSException { payload = new ArrayList(); position = 0; offset = 0; size = 0; super.clearBody(); }
53,888
public void clearBody() throws JMSException { payload = new ArrayList(); position = 0; offset = 0; size = 0; bodyWriteOnly = true; super.clearBody(); }
public void clearBody() throws JMSException { payload = new ArrayList(); position = 0; offset = 0; size = 0; bodyWriteOnly = true; }
53,889
public boolean readBoolean() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) throw new NullPointerException("...
public boolean readBoolean() throws JMSException { if (!bodyReadOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) throw new NullPointerException("...
53,890
public byte readByte() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) throw new NullPointerException("Value ...
public byte readByte() throws JMSException { if (!bodyReadOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) throw new NullPointerException("Value ...
53,891
public int readBytes(byte[] value) throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object myObj = ((List)payload).get(position); if (myObj == null) throw new NullPointerException("Value is null"...
public int readBytes(byte[] value) throws JMSException { if (!bodyReadOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object myObj = ((List)payload).get(position); if (myObj == null) throw new NullPointerException("Value is null"...
53,892
public char readChar() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) throw new NullPointerException("Value ...
public char readChar() throws JMSException { if (!bodyReadOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) throw new NullPointerException("Value ...
53,893
public double readDouble() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) throw new NullPointerException("Va...
public double readDouble() throws JMSException { if (!bodyReadOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) throw new NullPointerException("Va...
53,894
public void readExternal(ObjectInput in) throws IOException { try { super.readExternal(in); bodyWriteOnly = in.readBoolean(); payload = (ArrayList) in.readObject(); position = in.readInt(); offset = in.readInt(); size = in.readInt(); } catch (Clas...
public void readExternal(ObjectInput in) throws IOException { try { super.readExternal(in); bodyWriteOnly = in.readBoolean(); payload = (ArrayList) in.readObject(); position = in.readInt(); offset = in.readInt(); size = in.readInt(); } catch (Clas...
53,895
public float readFloat() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) throw new NullPointerException("Valu...
public float readFloat() throws JMSException { if (!bodyReadOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) throw new NullPointerException("Valu...
53,896
public int readInt() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) throw new NullPointerException("Value is...
public int readInt() throws JMSException { if (!bodyReadOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) throw new NullPointerException("Value is...
53,897
public long readLong() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) throw new NullPointerException("Value ...
public long readLong() throws JMSException { if (!bodyReadOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) throw new NullPointerException("Value ...
53,898
public Object readObject() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); position++; offset = 0; return value; } catch (IndexOutOfB...
public Object readObject() throws JMSException { if (!bodyReadOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); position++; offset = 0; return value; } catch (IndexOutOfB...
53,899
public short readShort() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) throw new NullPointerException("Valu...
public short readShort() throws JMSException { if (!bodyReadOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) throw new NullPointerException("Valu...
53,900