bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
34,946
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
34,947
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
34,948
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
34,949
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
34,950
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
34,951
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
34,952
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
34,953
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
34,954
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
34,955
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
34,956
private static void saveLine(LineBox line_to_save, LineBox prev_line, Rectangle bounds, Context c, Box block, int minHeight, LinkedList pushedOnFirstLine) { if (c.hasFirstLineStyles()) { //first pop element styles pushed on first line for (int i = 0; i < ...
private static void saveLine(LineBox line_to_save, LineBox prev_line, Rectangle bounds, Context c, Box block, int minHeight, LinkedList pushedOnFirstLine) { if (c.hasFirstLineStyles()) { //first pop element styles pushed on first line for (int i = 0; i < ...
34,958
ResultEdgeColorHandler(WorkflowGraph graph, Point location, Color color) { this.graph = graph; this.location = location; this.cColor = color; }
ResultEdgeColorHandler(WorkflowGraph graph, Point location, Color color) { this.graph = graph; this.location = location; this.color = color; }
34,968
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(view instanceof CustomEdgeView) {...
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(graph.getModel().isEdge(cell)) { ...
34,969
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(view instanceof CustomEdgeView) {...
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(view instanceof CustomEdgeView) {...
34,970
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(); ...
34,971
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(); ...
34,972
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(); ...
34,973
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(); ...
34,974
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...
34,975
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(...
34,976
public void cancelDeliveries(String receiverID) throws JMSException { }
public void cancelDeliveries() throws JMSException { }
34,977
protected LayoutManager createLayoutManager() { return new TabbedPaneLayout(); }
protected LayoutManager createLayoutManager() { return super.createLayoutManager(); }
34,978
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...
34,979
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...
34,980
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(); ...
34,981
public ClientSessionDelegate(String objectID) { super(objectID); }
public ClientSessionDelegate(int objectID) { super(objectID); }
34,982
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!"); }
34,983
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!"); }
34,984
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!"); }
34,985
public String toString() { return "SessionDelegate[" + Util.guidToString(id) + "]"; }
public String toString() { return "SessionDelegate[" + id + "]"; }
34,986
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...
34,987
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"); }
34,988
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...
34,989
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...
34,990
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...
34,991
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...
34,992
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...
34,993
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...
34,994
public void invalidate() { bounds = null; condensed = null; }
public void invalidate() { bounds = null; }
34,995
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; } }
34,996
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...
34,997
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...
34,998
public ITextRenderer() { this(DEFAULT_DOTS_PER_POINT, DEFAULT_PIXELS_PER_DOT); }
public ITextRenderer() { this(DEFAULT_DOTS_PER_POINT, DEFAULT_DOTS_PER_PIXEL); }
34,999
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...
35,000
public Message getMessageNow() throws JMSException { return endpoint.getMessageNow(); }
public Message getMessageNow(boolean wait) throws JMSException { return endpoint.getMessageNow(); }
35,001
public Message getMessageNow() throws JMSException { return endpoint.getMessageNow(); }
public Message getMessageNow() throws JMSException { return endpoint.getMessageNow(wait); }
35,002
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...
35,003
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...
35,004
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...
35,006
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...
35,007
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...
35,008
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...
35,009
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...
35,010
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...
35,011
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...
35,012
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())); }
35,013
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); }
35,014
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); }
35,015
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...
35,016
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...
35,021
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...
35,022
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...
35,023
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...
35,024
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...
35,025
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...
35,026
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...
35,027
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....
35,028
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); ...
35,029
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...
35,030
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 deep...
35,031
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 ...
35,032
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) { ...
35,033
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 -...
35,035
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 -...
35,036
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 -...
35,037
public void setModel(TreeModel newModel) { super.setModel(newModel); dirty = true; }
public void setModel(TreeModel newModel) { treeModel = newModel; expanded.add(treeModel.getRoot()); dirty = true; }
35,040
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...
35,041
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...
35,042
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) { ...
35,043
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 !=...
35,044
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(); }
35,046
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; }
35,047
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("...
35,048
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 ...
35,049
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"...
35,050
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 ...
35,051
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...
35,052
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...
35,053
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...
35,054
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...
35,055
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 ...
35,056
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...
35,057
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...
35,058
public String readString() throws JMSException { if (bodyWriteOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) { position++; r...
public String readString() throws JMSException { if (!bodyReadOnly) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = ((List)payload).get(position); offset = 0; if (value == null) { position++; r...
35,059
public void reset() throws JMSException { bodyWriteOnly = false; position = 0; size = ((List)payload).size(); offset = 0; }
public void reset() throws JMSException { bodyReadOnly = true; position = 0; size = ((List)payload).size(); offset = 0; }
35,060
public void writeBoolean(boolean value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(Primitives.valueOf(value)); }
public void writeBoolean(boolean value) throws JMSException { if (bodyReadOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(Primitives.valueOf(value)); }
35,061
public void writeByte(byte value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(new Byte(value)); }
public void writeByte(byte value) throws JMSException { if (bodyReadOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(new Byte(value)); }
35,062
public void writeBytes(byte[] value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(value.clone()); }
public void writeBytes(byte[] value) throws JMSException { if (bodyReadOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(value.clone()); }
35,063
public void writeChar(char value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(new Character(value)); }
public void writeChar(char value) throws JMSException { if (bodyReadOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(new Character(value)); }
35,064