bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void setUp() throws Exception { super.setUp(); ServerManagement.startInVMServer(); ServerManagement.deployTopic("Topic"); InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/messaging/Connectio...
public void setUp() throws Exception { super.setUp(); ServerManagement.startInVMServer(); ServerManagement.deployTopic("Topic"); InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/messaging/Connectio...
51,255
public void tearDown() throws Exception { // TODO uncomment these// producerConnection.close();// consumerConnection.close(); ServerManagement.undeployTopic("Topic"); ServerManagement.stopInVMServer(); super.tearDown(); }
producerConnection.close(); consumerConnection.close(); public void tearDown() throws ExceptionproducerConnection.close(); consumerConnection.close(); {producerConnection.close(); consumerConnection.close(); producerConnection.close(); consumerConnection.close(); // TODO uncomment these//producerConnection.close(); con...
51,257
static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); List blockList = null; FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getSty...
static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); List blockList = null; FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getSty...
51,258
public void addLeftFloat(Box block) { // Uu.p("adding a left float: " + block); //Uu.dump_stack(); left_floats.add(block); offset_map.put(block, getOffset()); }
public void addLeftFloat(Box block) { // Uu.p("adding a left float: " + block); //Uu.dump_stack(); left_floats.add(block); offset_map.put(block, getOffset()); }
51,261
private int getFloatDistance(Box line, List floatsList) { int xoff = 0; if (floatsList.size() == 0) { return 0; } for (int i = 0; i < floatsList.size(); i++) { Box floater = (Box) floatsList.get(i); Point fpt = (Point) offset_map.get(floater); ...
private int getFloatDistance(Box line, List floatsList) { int xoff = 0; if (floatsList.size() == 0) { return 0; } for (int i = 0; i < floatsList.size(); i++) { Box floater = (Box) floatsList.get(i); Point fpt = (Point) offset_map.get(floater); ...
51,263
public int getLeftDownDistance(Box box) { /* Uu.p("in get left down distance: " + box); for(int i=0; i< left_floats.size(); i++) { Box floater = (Box) left_floats.get(i); Uu.p("looking at floater: " + floater); Uu.p("floater parent = " + floater.getParent()); ...
public int getLeftDownDistance(Box box) { /* Uu.p("in get left down distance: " + box); for(int i=0; i< left_floats.size(); i++) { Box floater = (Box) left_floats.get(i); Uu.p("looking at floater: " + floater); Uu.p("floater parent = " + floater.getParent()); ...
51,264
public Box getLeftFloatX(Box box) { // count backwards through the floats int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i); // Uu.p("box = " + box); // Uu.p("testing against float = " + floater); x ...
public Box getLeftFloatX(Box box) { // count backwards through the floats int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i); // Uu.p("box = " + box); // Uu.p("testing against float = " + floater); x ...
51,265
public Box getLeftFloatX(Box box) { // count backwards through the floats int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i); // Uu.p("box = " + box); // Uu.p("testing against float = " + floater); x ...
public Box getLeftFloatX(Box box) { // count backwards through the floats int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i); // Uu.p("box = " + box); // Uu.p("testing against float = " + floater); x ...
51,266
public Box getLeftFloatX(Box box) { // count backwards through the floats int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i); // Uu.p("box = " + box); // Uu.p("testing against float = " + floater); x ...
public Box getLeftFloatX(Box box) { // count backwards through the floats int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i); // Uu.p("box = " + box); // Uu.p("testing against float = " + floater); x ...
51,267
public Point getOffset() { //return new Point(x, y); return new Point(x, y); }
public Point getOffset() { //return new Point(x, y); return new Point(x, y); }
51,269
public PopupMenuUI() { // TODO } // PopupMenuUI()
public PopupMenuUI() { // TODO } // PopupMenuUI()
51,273
public boolean selfTest() { if (valid == null) valid = new Boolean(DIGEST0.equals(Util.toString(new Whirlpool().digest()))); return valid.booleanValue(); }
public boolean selfTest() { if (valid == null) valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new Whirlpool().digest()))); return valid.booleanValue(); }
51,274
public void testGetReferenceInfos() throws Exception { doSetup(false); Channel channel = new SimpleChannel(0, ms); Message[] m = createMessages(10); MessageReference ref1 = ms.reference(m[0]); ref1.setOrdering(0); MessageReference ref2 = ms.reference(m[1]); ref2...
public void testGetReferenceInfos() throws Exception { doSetup(false); Channel channel = new SimpleChannel(0, ms); Message[] m = createMessages(10); MessageReference ref1 = ms.reference(m[0]); ref1.setOrdering(0); MessageReference ref2 = ms.reference(m[1]); ref2.setOrdering(1); MessageRefere...
51,275
public void testGetReferenceInfos() throws Exception { doSetup(false); Channel channel = new SimpleChannel(0, ms); Message[] m = createMessages(10); MessageReference ref1 = ms.reference(m[0]); ref1.setOrdering(0); MessageReference ref2 = ms.reference(m[1]); ref2...
public void testGetReferenceInfos() throws Exception { doSetup(false); Channel channel = new SimpleChannel(0, ms); Message[] m = createMessages(10); MessageReference ref1 = ms.reference(m[0]); ref1.setOrdering(0); MessageReference ref2 = ms.reference(m[1]); ref2...
51,276
public void testGetReferenceInfos() throws Exception { doSetup(false); Channel channel = new SimpleChannel(0, ms); Message[] m = createMessages(10); MessageReference ref1 = ms.reference(m[0]); ref1.setOrdering(0); MessageReference ref2 = ms.reference(m[1]); ref2...
public void testGetReferenceInfos() throws Exception { doSetup(false); Channel channel = new SimpleChannel(0, ms); Message[] m = createMessages(10); MessageReference ref1 = ms.reference(m[0]); ref1.setOrdering(0); MessageReference ref2 = ms.reference(m[1]); ref2...
51,277
public void testGetReferenceInfos() throws Exception { doSetup(false); Channel channel = new SimpleChannel(0, ms); Message[] m = createMessages(10); MessageReference ref1 = ms.reference(m[0]); ref1.setOrdering(0); MessageReference ref2 = ms.reference(m[1]); ref2...
public void testGetReferenceInfos() throws Exception { doSetup(false); Channel channel = new SimpleChannel(0, ms); Message[] m = createMessages(10); MessageReference ref1 = ms.reference(m[0]); ref1.setOrdering(0); MessageReference ref2 = ms.reference(m[1]); ref2...
51,278
public void testGetReferenceInfos() throws Exception { doSetup(false); Channel channel = new SimpleChannel(0, ms); Message[] m = createMessages(10); MessageReference ref1 = ms.reference(m[0]); ref1.setOrdering(0); MessageReference ref2 = ms.reference(m[1]); ref2...
public void testGetReferenceInfos() throws Exception { doSetup(false); Channel channel = new SimpleChannel(0, ms); Message[] m = createMessages(10); MessageReference ref1 = ms.reference(m[0]); ref1.setOrdering(0); MessageReference ref2 = ms.reference(m[1]); ref2...
51,279
public void testGetReferenceInfos() throws Exception { doSetup(false); Channel channel = new SimpleChannel(0, ms); Message[] m = createMessages(10); MessageReference ref1 = ms.reference(m[0]); ref1.setOrdering(0); MessageReference ref2 = ms.reference(m[1]); ref2...
public void testGetReferenceInfos() throws Exception { doSetup(false); Channel channel = new SimpleChannel(0, ms); Message[] m = createMessages(10); MessageReference ref1 = ms.reference(m[0]); ref1.setOrdering(0); MessageReference ref2 = ms.reference(m[1]); ref2...
51,280
public void setUp() throws Exception { super.setUp(); ServerManagement.startInVMServer(); initialContext = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/messaging/ConnectionFactory"); ServerManageme...
public void setUp() throws Exception { super.setUp(); ServerManagement.startInVMServer(); initialContext = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/messaging/ConnectionFactory"); ServerManageme...
51,281
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); setMarqueeHandler(new WorkflowMarqueeHandler(this)); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); Tool...
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); setMarqueeHandler(new WorkflowMarqueeHandler(this)); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); getGrap...
51,282
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); setMarqueeHandler(new WorkflowMarqueeHandler(this)); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); Tool...
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); setMarqueeHandler(new WorkflowMarqueeHandler(this)); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); Tool...
51,283
public static Image cleanImage(Image img) { //System.out.println("cleaning up " + img); return img.getScaledInstance(img.getWidth(null),img.getHeight(null),Image.SCALE_FAST); /* BufferedImage buf = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB); Graphics g = buf.getGra...
publicstaticImagecleanImage(Imageimg){ //System.out.println("cleaningup"+img); returnimg.getScaledInstance(img.getWidth(null),img.getHeight(null),Image.SCALE_FAST); /* BufferedImagebuf=newBufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB); Graphicsg=buf.getGraphics(); g.drawIm...
51,284
public void addChild( Box child ) { child.setParent( this ); boxes.add( child ); //u.p("added child: " + child + " to " + this); }
if(child.isChildrenExceedBounds()) { setChildrenExceedBounds(true); } if(child.isChildrenExceedBounds()) { setChildrenExceedBounds(true); } if(child.isChildrenExceedBounds()) { setChildrenExceedBounds(true); } if(child.isChildrenExceedBounds()) { setChildrenExceedBounds(true); } publicif(child.isChildrenExceedBounds())...
51,285
public ServerPeer(String serverPeerID, String defaultQueueJNDIContext, String defaultTopicJNDIContext) throws Exception { this.serverPeerID = serverPeerID; this.defaultQueueJNDIContext = defaultQueueJNDIContext; this.defaultTopicJNDIContext = defaultTopicJNDIC...
public ServerPeer(int serverPeerID, String defaultQueueJNDIContext, String defaultTopicJNDIContext) throws Exception { this.serverPeerID = serverPeerID; this.defaultQueueJNDIContext = defaultQueueJNDIContext; this.defaultTopicJNDIContext = defaultTopicJNDICont...
51,286
public String getServerPeerID() { return serverPeerID; }
public int getServerPeerID() { return serverPeerID; }
51,287
public synchronized void startService() throws Exception { try { if (started) { return; } log.debug(this + " starting"); if (queuedExecutorPoolSize < 1) { throw new IllegalArgumentException("queuedExecutorPoolSize mus...
public synchronized void startService() throws Exception { try { if (started) { return; } log.debug(this + " starting"); if (queuedExecutorPoolSize < 1) { throw new IllegalArgumentException("queuedExecutorPoolSize mus...
51,288
public synchronized void stopService() throws Exception { try { if (!started) { return; } log.debug(this + " stopping"); started = false; removeRecoverable(); shutdownLogger.shutdown(serverPeerID); ...
public synchronized void stopService() throws Exception { try { if (!started) { return; } log.debug(this + " stopping"); started = false; shutdownLogger.shutdown(serverPeerID); // Stop the w...
51,289
public void start() throws Exception { InitialContext ic = new InitialContext(); ds = new BasicDataSource(); ic.close(); Connection conn = null; String sql = null; try { conn = ds.getConnection(); try { if (log.isTraceEnabl...
public void start() throws Exception { InitialContext ic = new InitialContext(); ds = new BasicDataSource(); ic.close(); Connection conn = null; String sql = null; try { conn = ds.getConnection(); try { if (log.isTraceEnabl...
51,290
public static void setupAbsolute( Context c, Box box ) { String position = getPosition( c, box ); if ( position.equals( "absolute" ) ) { if ( c.css.hasProperty( box.node, "right", false ) ) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute( Context c, Box box ) { String position = getPosition( c, box ); if ( position.equals( "absolute" ) ) { if ( c.css.hasProperty( box.node, "right", false ) ) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
51,291
public static void setupAbsolute( Context c, Box box ) { String position = getPosition( c, box ); if ( position.equals( "absolute" ) ) { if ( c.css.hasProperty( box.node, "right", false ) ) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute( Context c, Box box ) { String position = getPosition( c, box ); if ( position.equals( "absolute" ) ) { if ( c.css.hasProperty( box.node, "right", false ) ) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
51,292
public static void setupAbsolute( Context c, Box box ) { String position = getPosition( c, box ); if ( position.equals( "absolute" ) ) { if ( c.css.hasProperty( box.node, "right", false ) ) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute( Context c, Box box ) { String position = getPosition( c, box ); if ( position.equals( "absolute" ) ) { if ( c.css.hasProperty( box.node, "right", false ) ) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
51,293
public static void setupAbsolute( Context c, Box box ) { String position = getPosition( c, box ); if ( position.equals( "absolute" ) ) { if ( c.css.hasProperty( box.node, "right", false ) ) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute( Context c, Box box ) { String position = getPosition( c, box ); if ( position.equals( "absolute" ) ) { if ( c.css.hasProperty( box.node, "right", false ) ) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
51,294
public void createActions() { backward.setAction(root.actions.backward); forward.setAction(root.actions.forward); reload.setAction(root.actions.reload); url.setAction(root.actions.load); updateButtons(); font_inc.setAction(root.actions.increase_font); font_de...
public void createActions() { backward.setAction(root.actions.backward); forward.setAction(root.actions.forward); reload.setAction(root.actions.reload); url.setAction(root.actions.load); updateButtons(); font_inc.setAction(root.actions.increase_font); font_de...
51,295
public void createActions() { backward.setAction(root.actions.backward); forward.setAction(root.actions.forward); reload.setAction(root.actions.reload); url.setAction(root.actions.load); updateButtons(); font_inc.setAction(root.actions.increase_font); font_de...
public void createActions() { backward.setAction(root.actions.backward); forward.setAction(root.actions.forward); reload.setAction(root.actions.reload); url.setAction(root.actions.load); updateButtons(); font_inc.setAction(root.actions.increase_font); font_de...
51,296
public void init() { forward = new JButton(); backward = new JButton("Back"); stop = new JButton("Stop"); reload = new JButton("Reload"); url = new JTextField(); view = new XHTMLPanel(); font_inc = new JButton("A"); font_dec = new JButton("a"); ...
public void init() { forward = new JButton(); backward = new JButton("Back"); stop = new JButton("Stop"); reload = new JButton("Reload"); url = new JTextField(); view = new XHTMLPanel(); font_inc = new JButton("A"); font_dec = new JButton("a"); ...
51,297
protected void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); setupDestinations(); final String defaultSecurityConfig = "<security><role name=\"def\" read=\"true\" write=\"true\" create=\"true\"/></security>"; oldDefaultConfig = ServerManageme...
protected void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); setupDestinations(); final String defaultSecurityConfig = "<security><role name=\"def\" read=\"true\" write=\"true\" create=\"true\"/></security>"; oldDefaultConfig = ServerManageme...
51,298
protected void tearDown() throws Exception { ServerManagement.setDefaultSecurityConfig(oldDefaultConfig); ServerManagement.undeployQueue("testQueue"); ServerManagement.undeployTopic("testTopic"); ServerManagement.undeployTopic("securedTopic"); ServerManagement.undeployTopic("unsecure...
protected void tearDown() throws Exception { ServerManagement.setDefaultSecurityConfig(oldDefaultConfig); ServerManagement.undeployQueue("testQueue"); ServerManagement.undeployTopic("testTopic"); ServerManagement.undeployTopic("securedTopic"); ServerManagement.undeployTopic("unsecure...
51,299
protected void tearDown() throws Exception { ServerManagement.setDefaultSecurityConfig(oldDefaultConfig); ServerManagement.undeployQueue("testQueue"); ServerManagement.undeployTopic("testTopic"); ServerManagement.undeployTopic("securedTopic"); ServerManagement.undeployTopic("unsecure...
ic.close(); ic.close(); ic.close(); protected ic.close(); void ic.close(); tearDown() ic.close(); throws ic.close(); Exception ic.close(); ic.close(); ic.close(); { ic.close(); ic.close(); ic.close(); ic.close(); ic.close(); ic.close(); ic.close(); ic.close(); ic.close(); ic.close(); ic.close(); ic.clos...
51,300
public static MessageDelegate createThinDelegate(JBossMessage m) { MessageDelegate del = null; if (m instanceof BytesMessage) { del = new BytesMessageDelegate((JBossBytesMessage)m); } else if (m instanceof MapMessage) { del = new MapMessageDelegate((JBossMapMessa...
public static MessageDelegate createThinDelegate(JBossMessage m, int deliveryCount) { MessageDelegate del = null; if (m instanceof BytesMessage) { del = new BytesMessageDelegate((JBossBytesMessage)m); } else if (m instanceof MapMessage) { del = new MapMessageDele...
51,301
public static MessageDelegate createThinDelegate(JBossMessage m) { MessageDelegate del = null; if (m instanceof BytesMessage) { del = new BytesMessageDelegate((JBossBytesMessage)m); } else if (m instanceof MapMessage) { del = new MapMessageDelegate((JBossMapMessa...
public static MessageDelegate createThinDelegate(JBossMessage m) { MessageDelegate del = null; if (m instanceof BytesMessage) { del = new BytesMessageDelegate((JBossBytesMessage)m, deliveryCount); } else if (m instanceof MapMessage) { del = new MapMessageDelegate...
51,302
public static MessageDelegate createThinDelegate(JBossMessage m) { MessageDelegate del = null; if (m instanceof BytesMessage) { del = new BytesMessageDelegate((JBossBytesMessage)m); } else if (m instanceof MapMessage) { del = new MapMessageDelegate((JBossMapMessa...
public static MessageDelegate createThinDelegate(JBossMessage m) { MessageDelegate del = null; if (m instanceof BytesMessage) { del = new BytesMessageDelegate((JBossBytesMessage)m); } else if (m instanceof MapMessage) { del = new MapMessageDelegate((JBossMapMessa...
51,303
public static MessageDelegate createThinDelegate(JBossMessage m) { MessageDelegate del = null; if (m instanceof BytesMessage) { del = new BytesMessageDelegate((JBossBytesMessage)m); } else if (m instanceof MapMessage) { del = new MapMessageDelegate((JBossMapMessa...
public static MessageDelegate createThinDelegate(JBossMessage m) { MessageDelegate del = null; if (m instanceof BytesMessage) { del = new BytesMessageDelegate((JBossBytesMessage)m); } else if (m instanceof MapMessage) { del = new MapMessageDelegate((JBossMapMessa...
51,304
public static MessageDelegate createThinDelegate(JBossMessage m) { MessageDelegate del = null; if (m instanceof BytesMessage) { del = new BytesMessageDelegate((JBossBytesMessage)m); } else if (m instanceof MapMessage) { del = new MapMessageDelegate((JBossMapMessa...
public static MessageDelegate createThinDelegate(JBossMessage m) { MessageDelegate del = null; if (m instanceof BytesMessage) { del = new BytesMessageDelegate((JBossBytesMessage)m); } else if (m instanceof MapMessage) { del = new MapMessageDelegate((JBossMapMessa...
51,305
public static MessageDelegate createThinDelegate(JBossMessage m) { MessageDelegate del = null; if (m instanceof BytesMessage) { del = new BytesMessageDelegate((JBossBytesMessage)m); } else if (m instanceof MapMessage) { del = new MapMessageDelegate((JBossMapMessa...
public static MessageDelegate createThinDelegate(JBossMessage m) { MessageDelegate del = null; if (m instanceof BytesMessage) { del = new BytesMessageDelegate((JBossBytesMessage)m); } else if (m instanceof MapMessage) { del = new MapMessageDelegate((JBossMapMessa...
51,306
public static MessageDelegate createThinDelegate(JBossMessage m) { MessageDelegate del = null; if (m instanceof BytesMessage) { del = new BytesMessageDelegate((JBossBytesMessage)m); } else if (m instanceof MapMessage) { del = new MapMessageDelegate((JBossMapMessa...
public static MessageDelegate createThinDelegate(JBossMessage m) { MessageDelegate del = null; if (m instanceof BytesMessage) { del = new BytesMessageDelegate((JBossBytesMessage)m); } else if (m instanceof MapMessage) { del = new MapMessageDelegate((JBossMapMessa...
51,307
public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume...
public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume...
51,309
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { // FIXME: I don't exactly know what sun does here. in both cases they // pick values which do *not* simply expose the next cell in a given // scroll direction. if (orientation == SwingConstants.VERTICAL) r...
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { // FIXME: I don't exactly know what sun does here. in both cases they // pick values which do *not* simply expose the next cell in a given // scroll direction. if (orientation == SwingConstants.VERTICAL) r...
51,310
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { // FIXME: I don't exactly know what sun does here. in both cases they // pick values which do *not* simply expose the next cell in a given // scroll direction. if (orientation == SwingConstants.VERTICAL) r...
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { // FIXME: I don't exactly know what sun does here. in both cases they // pick values which do *not* simply expose the next cell in a given // scroll direction. if (orientation == SwingConstants.VERTICAL) r...
51,311
private Box findBox(MouseEvent evt) { Box box = panel.findElementBox(evt.getX(), evt.getY()); if (box == null) return null; if (box instanceof LineBox) return null; return box; }
private Box findBox(MouseEvent evt) { Box box = findElementBox(panel.getRootBox(),evt.getX(),evt.getY(),null); if (box == null) return null; if (box instanceof LineBox) return null; return box; }
51,312
private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("calc'd = " + ib); if (prev == ib) { ...
private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("calc'd = " + ib); if (prev == ib) { ...
51,314
private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("calc'd = " + ib); if (prev == ib) { ...
private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("calc'd = " + ib); if (prev == ib) { ...
51,315
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } Set deliveries = router.handle(sender, r, tx); // must insure that all deliveries are comp...
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } Set deliveries = router.handle(sender, r, tx); // must insure that all deliveries are comp...
51,318
public JobResult getResult() { log.info("Getting result"); JobResult res = new JobResult(); res.failed = failed; if (res.failed) { log.info("Failed"); res.throwables = throwables; } else { log.info("Didn't fail"); res.initTime = initTime; ...
public JobResult getResult() { log.info("Getting result"); JobResult res = new JobResult(); res.failed = failed; if (res.failed) { log.info("Failed"); res.throwables = throwables; } else { log.info("Didn't fail"); res.initTime = initTime; ...
51,319
public void run() { try { startTime = System.currentTimeMillis(); log.info("==============Running job:" + this); setup(); logInfo(); runTest(); tearDown(); log.info("================Finished running job"); } catch (Throwa...
public void run() { try { log.info("==============Running job:" + this); setup(); logInfo(); runTest(); tearDown(); log.info("================Finished running job"); } catch (Throwable t) { log.error("Failed t...
51,320
protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi...
protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi...
51,321
protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi...
protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi...
51,322
public static synchronized Connector getCallbackServer() throws Exception { Connector callbackServer = new Connector(); // use an anonymous port - 0.0.0.0 gets filled in by remoting as the current host String locatorURI = "socket://0.0.0.0:0"; callbackServer.setInvokerLocator(locatorURI);...
public static synchronized Connector getCallbackServer() throws Exception { Connector callbackServer = new Connector(); // use an anonymous port - 0.0.0.0 gets filled in by remoting as the current host String locatorURI = "socket://0.0.0.0:0"; callbackServer.setInvokerLocator(locatorURI);...
51,323
public static boolean isBlockLevel(CalculatedStyle style) { String display = style.getStringProperty(CSSName.DISPLAY); if (display.equals("block")) return true; if (display.equals("list-item")) return true; if (display.equals("table")) return true; return false; }
public static boolean isBlockLevel(CalculatedStyle style) { String display = style.getStringProperty(CSSName.DISPLAY); if (display.equals("block")) return true; if (display.equals("list-item")) return true; if (display.equals("table")) return true; return false; }
51,324
public static boolean isFloated(CalculatedStyle style) { String float_val = style.getStringProperty("float"); if (float_val == null) { return false; } if (float_val.equals("left")) { return true; } if (float_val.equals("right")) { return tru...
public static boolean isFloated(CalculatedStyle style) { String float_val = style.getStringProperty("float"); if (float_val == null) { return false; } if (float_val.equals("left")) { return true; } if (float_val.equals("right")) { return tru...
51,325
public static boolean mayHaveFirstLetter(CalculatedStyle style) { String display = style.getStringProperty(CSSName.DISPLAY); if (display.equals("block")) return true; if (display.equals("list-item")) return true; if (display.equals("table-cell")) return true; if (display.equals("t...
public static boolean mayHaveFirstLetter(CalculatedStyle style) { String display = style.getStringProperty(CSSName.DISPLAY); if (display.equals("block")) return true; if (display.equals("list-item")) return true; if (display.equals("table-cell")) return true; if (display.equals("t...
51,326
public static boolean mayHaveFirstLine(CalculatedStyle style) { String display = style.getStringProperty(CSSName.DISPLAY); if (display.equals("block")) return true; if (display.equals("list-item")) return true; if (display.equals("run-in")) return true; if (display.equals("table")...
public static boolean mayHaveFirstLine(CalculatedStyle style) { String display = style.getStringProperty(CSSName.DISPLAY); if (display.equals("block")) return true; if (display.equals("list-item")) return true; if (display.equals("run-in")) return true; if (display.equals("table")...
51,327
public void addChild(Box child) { if (child == null) { throw new NullPointerException("trying to add null child"); } child.setParent(this); boxes.add(child); if (child.isChildrenExceedBounds()) { setChildrenExceedBounds(true); } if (child.isFixe...
public void addChild(Box child) { if (child == null) { throw new NullPointerException("trying to add null child"); } child.setParent(this); boxes.add(child); if (child.isChildrenExceedBounds()) { setChildrenExceedBounds(true); } if (child.isFixe...
51,329
public static ComponentUI createUI(final JComponent c) { return new BasicViewportUI(); }
public static ComponentUI createUI(final JComponent c) { return new BasicViewportUI(); }
51,330
public Dimension getPreferredSize(JComponent c) { Dimension d = new Dimension(100,100); System.out.println("BasicViewportUI->preff->"+d); return d; }
public Dimension getPreferredSize(JComponent c) { Dimension d = new Dimension(100,100); System.out.println("BasicViewportUI->preff->"+d); return d; }
51,331
public void installUI(final JComponent c) { super.installUI(c); }
public void installUI(final JComponent c) { super.installUI(c); }
51,332
public void paint(Graphics g, JComponent c) { System.out.println("BasicViewportUI->paint->"+c); }
public void paint(Graphics g, JComponent c) { System.out.println("BasicViewportUI->paint->"+c); }
51,333
public void handleConnectionException(Throwable throwable, Client client) { try { log.debug(this + " is being notified of connection failure: " + throwable); handleConnectionFailure(cd); } catch (Throwable e) { log.error("Caught excepti...
public void handleConnectionException(Throwable throwable, Client client) { try { log.debug(this + " is being notified of connection failure: " + throwable); handleConnectionFailure(cd, cd.getRemotingConnection()); } catch (Throwable e) { ...
51,334
protected void handleConnectionFailure(ClientConnectionDelegate failedConnDelegate) throws Exception { Valve localValve = null; // The idea is to reset the Valve synchronized with a reset valve synchronized (this) // I'm not sure if this synchronized is necessary. I will keep it here just to be safe...
protected void handleConnectionFailure(ClientConnectionDelegate failedConnDelegate, JMSRemotingConnection jmsConnection) throws Exception { Valve localValve = null; // The idea is to reset the Valve synchronized with a reset valve synchronized (this) // I'm not sure if this synchronized is necessary...
51,336
protected void handleConnectionFailure(ClientConnectionDelegate failedConnDelegate) throws Exception { Valve localValve = null; // The idea is to reset the Valve synchronized with a reset valve synchronized (this) // I'm not sure if this synchronized is necessary. I will keep it here just to be safe...
protected void handleConnectionFailure(ClientConnectionDelegate failedConnDelegate) throws Exception { log.info("Processing handleConnectionFailure "); // The idea is to reset the Valve synchronized with a reset valve synchronized (this) // I'm not sure if this synchronized is necessary. I will keep...
51,337
protected void handleConnectionFailure(ClientConnectionDelegate failedConnDelegate) throws Exception { Valve localValve = null; // The idea is to reset the Valve synchronized with a reset valve synchronized (this) // I'm not sure if this synchronized is necessary. I will keep it here just to be safe...
protected void handleConnectionFailure(ClientConnectionDelegate failedConnDelegate) throws Exception { Valve localValve = null; // The idea is to reset the Valve synchronized with a reset valve lockValve.writeLock().acquire(); try // I'm not sure if this synchronized is necessary. I will kee...
51,338
protected void handleConnectionFailure(ClientConnectionDelegate failedConnDelegate) throws Exception { Valve localValve = null; // The idea is to reset the Valve synchronized with a reset valve synchronized (this) // I'm not sure if this synchronized is necessary. I will keep it here just to be safe...
protected void handleConnectionFailure(ClientConnectionDelegate failedConnDelegate) throws Exception { Valve localValve = null; // The idea is to reset the Valve synchronized with a reset valve synchronized (this) // I'm not sure if this synchronized is necessary. I will keep it here just to be safe...
51,339
protected void handleConnectionFailure(ClientConnectionDelegate failedConnDelegate) throws Exception { Valve localValve = null; // The idea is to reset the Valve synchronized with a reset valve synchronized (this) // I'm not sure if this synchronized is necessary. I will keep it here just to be safe...
protected void handleConnectionFailure(ClientConnectionDelegate failedConnDelegate) throws Exception { Valve localValve = null; // The idea is to reset the Valve synchronized with a reset valve synchronized (this) // I'm not sure if this synchronized is necessary. I will keep it here just to be safe...
51,340
public Object invoke(Invocation invocation) throws Throwable { Object returnObject = null; boolean failure = false; // Eventually retries in case of listed exceptions for (int i = 0; i < MAX_IO_RETRY_COUNT; i++) { // We shouldn't have any calls being made while the failover is bein...
public Object invoke(Invocation invocation) throws Throwable { Object returnObject = null; boolean failure = false; // Eventually retries in case of listed exceptions for (int i = 0; i < MAX_IO_RETRY_COUNT; i++) { // We shouldn't have any calls being made while the failover is bein...
51,341
public Object invoke(Invocation invocation) throws Throwable { Object returnObject = null; boolean failure = false; // Eventually retries in case of listed exceptions for (int i = 0; i < MAX_IO_RETRY_COUNT; i++) { // We shouldn't have any calls being made while the failover is bein...
public Object invoke(Invocation invocation) throws Throwable { Object returnObject = null; boolean failure = false; // Eventually retries in case of listed exceptions for (int i = 0; i < MAX_IO_RETRY_COUNT; i++) { // We shouldn't have any calls being made while the failover is bein...
51,342
public Object handleSend(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); Destination destination = (Destination)args[0]; Message m = (Message)args[1]; int deliveryMode = ((Integer)args[2]).intValu...
public Object handleSend(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); Destination destination = (Destination)args[0]; Message m = (Message)args[1]; int deliveryMode = ((Integer)args[2]).intValu...
51,343
public static Iterator fromCSSPropertyDecl( CSSRule cssRule, CSSStyleDeclaration style, String propName, int sequence ) { // HACK: special cases for RuleNormalizer...need to work this out cleanly PropertyFactory factory = (PropertyFactory)PRP_FACTORIES.get( propName ); if ( ( factory == null &&...
public static Iterator fromCSSPropertyDecl( CSSRule cssRule, CSSStyleDeclaration style, String propName, int sequence ) { // HACK: special cases for RuleNormalizer...need to work this out cleanly PropertyFactory factory = (PropertyFactory)PRP_FACTORIES.get( propName ); if ( /*( factory == null ...
51,344
private boolean isActionAvailable(ActionDescriptor action, Map transientVars, PropertySet ps, int stepId) throws WorkflowException { if (action == null) { return false; } WorkflowDescriptor wf = getWorkflowDescriptorForAction(action); Map cache = (Map) stateCache.get(); ...
private boolean isActionAvailable(ActionDescriptor action, Map transientVars, PropertySet ps, int stepId) throws WorkflowException { if (action == null) { return false; } WorkflowDescriptor wf = getWorkflowDescriptorForAction(action); Map cache = (Map) stateCache.get(); ...
51,345
protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); cache.clear(); Step step = getCurrentSt...
protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear(); } else { ...
51,346
public void actionPerformed(ActionEvent e){ CellFactory.createStep(workflow, model, location); }
public void actionPerformed(ActionEvent e){ CellFactory.createStep(workflow, model, location); }
51,347
public Class getCategory() { return JobMediaSheets.class; }
public final Class getCategory() { return JobMediaSheets.class; }
51,348
public String getName() { return "job-media-sheets"; }
public final String getName() { return "job-media-sheets"; }
51,349
public ConnectionState(ConnectionDelegate delegate) { super(null, delegate); children = new SyncSet(new HashSet(), new WriterPreferenceReadWriteLock()); this.delegate = delegate; resourceManager = new ResourceManager(delegate); //TODO size should be configurable pooledExecutor =...
public ConnectionState(ConnectionDelegate delegate, String serverId) { super(null, delegate); children = new SyncSet(new HashSet(), new WriterPreferenceReadWriteLock()); this.delegate = delegate; resourceManager = new ResourceManager(delegate); //TODO size should be configurable ...
51,351
public ConnectionState(ConnectionDelegate delegate) { super(null, delegate); children = new SyncSet(new HashSet(), new WriterPreferenceReadWriteLock()); this.delegate = delegate; resourceManager = new ResourceManager(delegate); //TODO size should be configurable pooledExecutor =...
public ConnectionState(ConnectionDelegate delegate) { super(null, delegate); children = new SyncSet(new HashSet(), new WriterPreferenceReadWriteLock()); this.delegate = delegate; resourceManager = ResourceManagerFactory.instance.getResourceManager(serverId); //TODO size should be con...
51,352
public DelegateSupport(String objectID, InvokerLocator locator) { this.id = objectID; this.locator = locator; }
public DelegateSupport(String objectID) { this.id = objectID; this.locator = locator; }
51,353
public DelegateSupport(String objectID, InvokerLocator locator) { this.id = objectID; this.locator = locator; }
public DelegateSupport(String objectID, InvokerLocator locator) { this.id = objectID; this.locator = locator; }
51,354
public void init() { ((Advised)this)._getInstanceAdvisor().appendInterceptor(this); checkMarshallers(); try { client = new Client(locator, "JMS"); } catch (Exception e) { throw new RuntimeException("Failed to create client", e); } ...
public void init() { ((Advised)this)._getInstanceAdvisor().appendInterceptor(this); checkMarshallers(); try { client = new Client(locator, "JMS"); } catch (Exception e) { throw new RuntimeException("Failed to create client", e); } ...
51,355
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ...
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ...
51,356
private static Logger getLogger( String log ) { return Logger.getLogger( log ); }
private static Logger getLogger( String log ) { return Logger.getLogger( log ); }
51,357
public static void init( String msg ) { init( Level.INFO, msg ); }
public static void init( String msg ) { init( Level.INFO, msg ); }
51,358
public static void junit( String msg ) { junit( Level.FINEST, msg ); }
public static void junit( String msg ) { junit( Level.FINEST, msg ); }
51,359
public static void log( String where, Level level, String msg ) { if ( initPending ) { init(); } getLogger( where ).log( level, msg ); }
public static void log( String where, Level level, String msg ) { if ( initPending ) { init(); } getLogger( where ).log( level, msg ); }
51,360
public static void log( String where, Level level, String msg ) { if ( initPending ) { init(); } getLogger( where ).log( level, msg ); }
public static void log( String where, Level level, String msg ) { if ( initPending ) { init(); } getLogger( where ).log( level, msg ); }
51,361
public static void main( String args[] ) { try { XRLog.cascade( "Cascade msg" ); XRLog.cascade( Level.WARNING, "Cascade msg" ); XRLog.exception( "Exception msg" ); XRLog.exception( "Exception msg", new Exception() ); XRLog.general( "General msg" ); XRLog.general( Level.WARNING, "Gener...
public static void main( String args[] ) { try { XRLog.cascade( "Cascade msg" ); XRLog.cascade( Level.WARNING, "Cascade msg" ); XRLog.exception( "Exception msg" ); XRLog.exception( "Exception msg", new Exception() ); XRLog.general( "General msg" ); XRLog.general( Level.WARNING, "Gener...
51,362
public static void main( String args[] ) { try { XRLog.cascade( "Cascade msg" ); XRLog.cascade( Level.WARNING, "Cascade msg" ); XRLog.exception( "Exception msg" ); XRLog.exception( "Exception msg", new Exception() ); XRLog.general( "General msg" ); XRLog.general( Level.WARNING, "Gener...
public static void main( String args[] ) { try { XRLog.cascade( "Cascade msg" ); XRLog.cascade( Level.WARNING, "Cascade msg" ); XRLog.exception( "Exception msg" ); XRLog.exception( "Exception msg", new Exception() ); XRLog.general( "General msg" ); XRLog.general( Level.WARNING, "Gener...
51,363
public static void setLevel(String log, Level level) { getLogger(log).setLevel(level); }
public static void setLevel(String log, Level level) { getLogger(log).setLevel(level); }
51,364
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { String cname = in.readUTF(); if (!cname.equals("")) { if (cname.equals ("UnicastRef2")) { // hack for interoperating with JDK cname = "UnicastRef"; in.read (); //some unknown UnicastRef2 field } c...
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { String cname = in.readUTF(); if (!cname.equals("")) { if (cname.equals ("UnicastRef2")) { // hack for interoperating with JDK cname = "UnicastRef"; in.read (); //some unknown UnicastRef2 field } c...
51,366
public void testFactoryException() { TestWorkflow.configFile = "osworkflow-badfactory.xml"; //we expect an InternalWorkflowException (can't throw a checked exception in constructor, otherwise the ejb provider //will break spec by having a constructor try { TestWorkflow workflow = new TestWorkflow...
public void testFactoryException() { TestWorkflow.configFile = "/osworkflow-badfactory.xml"; //we expect an InternalWorkflowException (can't throw a checked exception in constructor, otherwise the ejb provider //will break spec by having a constructor try { TestWorkflow workflow = new TestWorkflo...
51,367
public void testStoreException() throws Exception { TestWorkflow.configFile = "osworkflow-jdbc.xml"; TestWorkflow workflow = new TestWorkflow("testuser"); //correct behaviour is to get a store exception since we can't look up the DS try { workflow.initialize("file:auto1.xml", 1, new HashMap()); ...
public void testStoreException() throws Exception { TestWorkflow.configFile = "/osworkflow-jdbc.xml"; TestWorkflow workflow = new TestWorkflow("testuser"); //correct behaviour is to get a store exception since we can't look up the DS try { workflow.initialize("file:auto1.xml", 1, new HashMap()); ...
51,368
public void testStoreException() throws Exception { TestWorkflow.configFile = "osworkflow-jdbc.xml"; TestWorkflow workflow = new TestWorkflow("testuser"); //correct behaviour is to get a store exception since we can't look up the DS try { workflow.initialize("file:auto1.xml", 1, new HashMap()); ...
public void testStoreException() throws Exception { TestWorkflow.configFile = "osworkflow-jdbc.xml"; TestWorkflow workflow = new TestWorkflow("testuser"); //correct behaviour is to get a store exception since we can't look up the DS try { workflow.initialize(getClass().getClassLoader().getResourc...
51,369
public void commit(Xid xid, boolean onePhase, ConnectionDelegate connection) throws XAException { if (trace) { log.trace("commiting xid " + xid + ", onePhase=" + onePhase); } TxState tx = removeTx(xid); if (onePhase) { //Invalid xid if (tx == null) { ...
public void commit(Xid xid, boolean onePhase, ConnectionDelegate connection) throws XAException { if (trace) { log.trace("commiting xid " + xid + ", onePhase=" + onePhase); } TxState tx = removeTx(xid); if (onePhase) { //Invalid xid if (tx == null) { ...
51,371