bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public static InetAddress getByName(String host) throws UnknownHostException { System.out.println("CLASS: InetAddress.getByName("+host+")"); if ( (host == null) || (host.length() == 0) ) { return loopbackHost; } else { byte[] addr = pton(host); if (addr != null) { return new InetAddress(null, addr); }...
public static InetAddress getByName(String host) throws UnknownHostException { System.out.println("CLASS: InetAddress.getByName("+host+")"); if ( (host == null) || (host.length() == 0) ) { return loopbackHost; } else { byte[] addr = pton(host); if (addr != null) { return new InetAddress(null, addr); }...
43,172
public String getHostAddress() { int len = address.length; /* allocate room for result */ /* defined in <netinet/in.h> INET6_ADDRSTRLEN = 46 */ StringBuffer addrBuffer = new StringBuffer(46); System.out.println("CLASS: InetAddress.getHostAddress()"); /* We have an IPv6 address. * Return full address for no...
public String getHostAddress() { int len = address.length; /* allocate room for result */ /* defined in <netinet/in.h> INET6_ADDRSTRLEN = 46 */ StringBuffer addrBuffer = new StringBuffer(46); System.out.println("CLASS: InetAddress.getHostAddress()"); /* We have an IPv6 address. * Return full address for no...
43,173
public String getHostName() { System.out.println("CLASS: InetAddress.getHostName()"); if (hostName == null) { try { hostName = getHostByAddress(address); } catch (UnknownHostException he) { hostName = getHostAddress(); } } return hostName; }
public String getHostName() { System.out.println("CLASS: InetAddress.getHostName()"); if (hostName == null) { try { hostName = getHostByAddress(address); } catch (UnknownHostException he) { hostName = getHostAddress(); } } return hostName; }
43,174
public static InetAddress getLocalHost() throws UnknownHostException { System.out.println("CLASS: InetAddress.getLocalHost()"); SecurityManager s = System.getSecurityManager(); /* need to check if they are allowed to to do this */ if (localHost == null) { String host = getLocalHostName(); if (s != null) {...
public static InetAddress getLocalHost() throws UnknownHostException { System.out.println("CLASS: InetAddress.getLocalHost()"); SecurityManager s = System.getSecurityManager(); /* need to check if they are allowed to to do this */ if (localHost == null) { String host = getLocalHostName(); if (s != null) {...
43,175
public int hashCode() { System.out.println("CLASS: InetAddress.hashCode()"); int hash = 0; int i = 0; int len = address.length; if (len == 16) { /* only want the last 4 bytes of IPv6 address */ i = len - 4; } for ( ; i < len; i++) hash = (hash << 8) | (address[i] & 0xFF); return hash; }
public int hashCode() { System.out.println("CLASS: InetAddress.hashCode()"); int hash = 0; int i = 0; int len = address.length; if (len == 16) { /* only want the last 4 bytes of IPv6 address */ i = len - 4; } for ( ; i < len; i++) hash = (hash << 8) | (address[i] & 0xFF); return hash; }
43,176
public boolean isMulticastAddress() { System.out.println("CLASS: InetAddress.isMulticastAddress()"); int len = address.length; /* IPv4 address check for class D address */ if (len == 4) return ((address[0] & 0xF0) == 0xE0); /* IPv6 address check */ if (len == 16) return (address[0] == (byte) 0xFF); /*...
public boolean isMulticastAddress() { System.out.println("CLASS: InetAddress.isMulticastAddress()"); int len = address.length; /* IPv4 address check for class D address */ if (len == 4) return ((address[0] & 0xF0) == 0xE0); /* IPv6 address check */ if (len == 16) return (address[0] == (byte) 0xFF); /*...
43,177
public String toString() { System.out.println("CLASS: InetAddress.toString()"); return getHostName() + "/" + getHostAddress(); }
public String toString() { System.out.println("CLASS: InetAddress.toString()"); return getHostName() + "/" + getHostAddress(); }
43,178
private boolean handleConfiguration(boolean loaded, String conf, boolean shouldBePublic) { String[] confs = getRealConfs(conf); if (_md != null) { for (int i = 0; i < confs.length; i++) { Configuration c = _md.getConfiguration(confs[i]); if (c == null) { ...
private boolean handleConfiguration(boolean loaded, String conf, boolean shouldBePublic) { if (_md != null) { for (int i = 0; i < confs.length; i++) { Configuration c = _md.getConfiguration(confs[i]); if (c == null) { _confsToFetch.remove(con...
43,179
protected void runRunners(Runner[] runners) throws Exception { Thread[] threads = new Thread[runners.length]; for (int i = 0; i < runners.length; i++) { threads[i] = new Thread(runners[i]); threads[i].start(); } for (int i = 0; i < runners.length; i++) { ...
protected void runRunners(Runner[] runners) throws Exception { Thread[] threads = new Thread[runners.length]; for (int i = 0; i < runners.length; i++) { threads[i] = new Thread(runners[i]); threads[i].start(); } for (int i = 0; i < runners.length; i++) { t...
43,182
public void setJMSDeliveryMode(int deliveryMode) throws JMSException { if (deliveryMode == DeliveryMode.PERSISTENT) { reliable = true; } else if (deliveryMode == DeliveryMode.NON_PERSISTENT) { reliable = false; } else { throw new JBossJMSException("De...
public void setJMSDeliveryMode(int deliveryMode) throws JMSException { if (deliveryMode == DeliveryMode.PERSISTENT) { reliable = true; } else if (deliveryMode == DeliveryMode.NON_PERSISTENT) { reliable = false; } else { throw new MessagingJMSException...
43,185
public MessageSupport(long messageID, boolean reliable, long expiration, long timestamp, byte priority, int deliveryCount, Map headers, ...
public MessageSupport(long messageID, boolean reliable, long expiration, long timestamp, byte priority, int deliveryCount, Map headers, ...
43,186
public MessageSupport(long messageID, boolean reliable, long expiration, long timestamp, byte priority, int deliveryCount, Map headers, ...
public MessageSupport(long messageID, boolean reliable, long expiration, long timestamp, byte priority, int deliveryCount, Map headers, ...
43,187
public JBossTemporaryQueue(ConnectionDelegate delegate) { super(new GUID().toString()); this.delegate = delegate; }
public JBossTemporaryQueue(SessionDelegate delegate) { super(new GUID().toString()); this.delegate = delegate; }
43,188
public JBossTemporaryTopic(ConnectionDelegate delegate) { super(new GUID().toString()); this.delegate = delegate; }
public JBossTemporaryTopic(SessionDelegate delegate) { super(new GUID().toString()); this.delegate = delegate; }
43,189
void afterCommit();
void afterCommit();
43,190
void afterRollback();
void afterRollback();
43,191
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; Border border = c.getCu...
if (prev_inline == null) { prev_inline = new InlineTextBox(); ((InlineTextBox) prev_inline).setMasterText(""); ((InlineTextBox) prev_inline).start_index = 0; ((InlineTextBox) prev_inline).end_index = 0; curr_line.addChild(prev_inline); } if (prev_inline == null) { prev_inline = new InlineTextBox(); ((InlineTextBox) pre...
43,192
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; Border border = c.getCu...
publicstaticvoidlayoutContent(Contextc,Boxbox,ListcontentList){//Hereweshouldalwaysbeinsidesomethingthatcorrespondstoablock-levelelement//forformattingpurposesRectanglebounds=newRectangle();bounds.width=c.getExtents().width;Borderborder=c.getCurrentStyle().getBorderWidth(c.getBlockFormattingContext().getWidth(),c.getBl...
43,193
public void addInlineChild(Context c, InlineBox ib) { if (ib == null) { throw new NullPointerException("trying to add null child"); } if (getChildCount() == 0 && ib instanceof InlineTextBox) {//first box on line InlineTextBox child = (InlineTextBox) ib; if (chil...
public void addInlineChild(Context c, InlineBox ib) { if (ib == null) { throw new NullPointerException("trying to add null child"); } if (getChildCount() == 0 && ib instanceof InlineTextBox) {//first box on line InlineTextBox child = (InlineTextBox) ib; if (chil...
43,194
public void init() throws ServletException { super.init(); ServiceRegistry registry = getXFire().getServiceRegistry(); ObjectServiceFactory factory = new ObjectServiceFactory(getXFire().getTransportManager()); Service service = factory.create(Workflow.class, "Workflow", null, null); ...
public void init() throws ServletException { super.init(); ServiceRegistry registry = getXFire().getServiceRegistry(); ObjectServiceFactory factory = new ObjectServiceFactory(getXFire().getTransportManager()); Service service = factory.create(Workflow.class); service.getBinding()....
43,196
public static String getCondition(String name) { return (String) conditions.get(name); }
public static String getCondition(String name) { return (String) conditions.get(name); }
43,197
public static String getFunction(String name) { return (String) functions.get(name); }
public static String getFunction(String name) { return (String) functions.get(name); }
43,198
public static String getRegister(String name) { return (String) registers.get(name); }
public static String getRegister(String name) { return (String) registers.get(name); }
43,199
public static String getValidator(String name) { return (String) validators.get(name); }
public static String getValidator(String name) { return (String) validators.get(name); }
43,200
public void run() { int iterations = numMessages / commitSize; try { for (int outerCount = 0; outerCount < iterations; outerCount++) { for (int innerCount = 0; innerCount < commitSize; innerCount++) { Message m = sess.createMessage(); ...
publicvoidrun(){intiterations=numMessages/commitSize;try{for(intouterCount=0;outerCount<iterations;outerCount++){for(intinnerCount=0;innerCount<commitSize;innerCount++){Messagem=sess.createMessage();m.setStringProperty("PROD_NAME",prodName);m.setIntProperty("MSG_NUMBER",outerCount*commitSize+innerCount);prod.send(m);//...
43,201
private ObjectName deploy(String destConfig) throws Exception { ObjectName on = ServerManagement.deploy(destConfig); ServerManagement.invoke(on, "create", new Object[0], new String[0]); ServerManagement.invoke(on, "start", new Object[0], new String[0]); return on; }
protected ObjectName deploy(String destConfig) throws Exception { ObjectName on = ServerManagement.deploy(destConfig); ServerManagement.invoke(on, "create", new Object[0], new String[0]); ServerManagement.invoke(on, "start", new Object[0], new String[0]); return on; }
43,202
private void undeployDestination(String name) throws Exception { if (isQueue()) { ServerManagement.undeployQueue(name); } else { ServerManagement.undeployTopic(name); } }
protected void undeployDestination(String name) throws Exception { if (isQueue()) { ServerManagement.undeployQueue(name); } else { ServerManagement.undeployTopic(name); } }
43,203
public GridLayout (int rows, int cols, int hgap, int vgap) { if (rows < 0) throw new IllegalArgumentException ("number of rows cannot be negative"); if (cols < 0) throw new IllegalArgumentException ("number of columns cannot be negative"); if (rows == 0 && cols == 0) throw new IllegalArgument...
public GridLayout () { if (rows < 0) throw new IllegalArgumentException ("number of rows cannot be negative"); if (cols < 0) throw new IllegalArgumentException ("number of columns cannot be negative"); if (rows == 0 && cols == 0) throw new IllegalArgumentException ("both rows and columns cann...
43,204
public GridLayout (int rows, int cols, int hgap, int vgap) { if (rows < 0) throw new IllegalArgumentException ("number of rows cannot be negative"); if (cols < 0) throw new IllegalArgumentException ("number of columns cannot be negative"); if (rows == 0 && cols == 0) throw new IllegalArgument...
public GridLayout (int rows, int cols, int hgap, int vgap) { if (rows < 0) throw new IllegalArgumentException ("number of rows cannot be negative"); if (cols < 0) throw new IllegalArgumentException ("number of columns cannot be negative"); if (rows == 0 && cols == 0) throw new IllegalArgument...
43,205
Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();}
Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();}
43,206
Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();}
Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();}
43,207
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("Routable is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null) { ...
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("Routable is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null) { ...
43,208
public void actionPerformed( ActionEvent evt ) { root.panel.view.c.debug_draw_boxes = !root.panel.view.c.debug_draw_boxes; root.panel.view.repaint(); }
public void actionPerformed( ActionEvent evt ) { root.panel.view.getContext().debug_draw_boxes = !root.panel.view.getContext().debug_draw_boxes; root.panel.view.repaint(); }
43,209
public void actionPerformed( ActionEvent evt ) { root.panel.view.c.debug_draw_inline_boxes = !root.panel.view.c.debug_draw_inline_boxes; root.panel.view.repaint(); }
public void actionPerformed( ActionEvent evt ) { root.panel.view.getContext().debug_draw_inline_boxes = !root.panel.view.getContext().debug_draw_inline_boxes; root.panel.view.repaint(); }
43,210
public void actionPerformed( ActionEvent evt ) { root.panel.view.c.debug_draw_line_boxes = !root.panel.view.c.debug_draw_line_boxes; root.panel.view.repaint(); }
public void actionPerformed( ActionEvent evt ) { root.panel.view.getContext().debug_draw_line_boxes = !root.panel.view.getContext().debug_draw_line_boxes; root.panel.view.repaint(); }
43,211
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
43,212
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
43,213
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
43,214
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
43,215
public void onMessage(Message m) { messages.add(m); log.info("Added message " + m + " to my list"); latch.release(); //latch = new Latch(); };
public void onMessage(Message m) { messages.add(m); log.trace("Added message " + m + " to my list"); latch.release(); //latch = new Latch(); };
43,216
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.info("Got message:" + count); if (count == 0) { if (!("a".equals(tm.getText()))) { failed = true; ...
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + count); if (count == 0) { if (!("a".equals(tm.getText()))) { failed = true; ...
43,217
public void testRedelMessageListener1() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons = sess.createConsumer(queue); RedelMessageListenerImpl listen...
public void testRedelMessageListener1() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons = sess.createConsumer(queue); RedelMessageListenerImpl listen...
43,221
public void testRedelMessageListener2() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons = sess.createConsumer(queue); RedelMessageListenerImpl listene...
public void testRedelMessageListener2() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons = sess.createConsumer(queue); RedelMessageListenerImpl listene...
43,222
public void testRedelMessageListener2() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons = sess.createConsumer(queue); RedelMessageListenerImpl listene...
public void testRedelMessageListener2() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons = sess.createConsumer(queue); RedelMessageListenerImpl listene...
43,223
public void testSetMessageListenerTwice() throws Exception { if (log.isTraceEnabled()) log.trace("testSetMessageListenerTwice"); MessageListenerImpl listener1 = new MessageListenerImpl(); topicConsumer.setMessageListener(listener1); log.info("Set message listener1"); MessageListenerI...
public void testSetMessageListenerTwice() throws Exception { if (log.isTraceEnabled()) log.trace("testSetMessageListenerTwice"); MessageListenerImpl listener1 = new MessageListenerImpl(); topicConsumer.setMessageListener(listener1); log.trace("Set message listener1"); MessageListener...
43,225
public void testSetMessageListenerTwice() throws Exception { if (log.isTraceEnabled()) log.trace("testSetMessageListenerTwice"); MessageListenerImpl listener1 = new MessageListenerImpl(); topicConsumer.setMessageListener(listener1); log.info("Set message listener1"); MessageListenerI...
public void testSetMessageListenerTwice() throws Exception { if (log.isTraceEnabled()) log.trace("testSetMessageListenerTwice"); MessageListenerImpl listener1 = new MessageListenerImpl(); topicConsumer.setMessageListener(listener1); log.info("Set message listener1"); MessageListenerI...
43,226
public void testSetMessageListenerTwice() throws Exception { if (log.isTraceEnabled()) log.trace("testSetMessageListenerTwice"); MessageListenerImpl listener1 = new MessageListenerImpl(); topicConsumer.setMessageListener(listener1); log.info("Set message listener1"); MessageListenerI...
public void testSetMessageListenerTwice() throws Exception { if (log.isTraceEnabled()) log.trace("testSetMessageListenerTwice"); MessageListenerImpl listener1 = new MessageListenerImpl(); topicConsumer.setMessageListener(listener1); log.info("Set message listener1"); MessageListenerI...
43,227
public void testSetMessageListenerWhileReceiving() throws Exception { if (log.isTraceEnabled()) log.trace("testSetMessageListenerWhileReceiving"); consumerConnection.start(); worker1= new Thread(new Runnable() { public void run() { try { topic...
public void testSetMessageListenerWhileReceiving() throws Exception { if (log.isTraceEnabled()) log.trace("testSetMessageListenerWhileReceiving"); consumerConnection.start(); worker1= new Thread(new Runnable() { public void run() { try { topic...
43,228
public void testTimeoutReceiveOnClose() throws Exception { if (log.isTraceEnabled()) log.trace("testTimeoutReceiveOnClose"); consumerConnection.start(); final Latch latch = new Latch(); final long timeToSleep = 1000; Thread closerThread = new Thread(new Runnable() { public voi...
public void testTimeoutReceiveOnClose() throws Exception { if (log.isTraceEnabled()) log.trace("testTimeoutReceiveOnClose"); consumerConnection.start(); final Latch latch = new Latch(); final long timeToSleep = 1000; Thread closerThread = new Thread(new Runnable() { public voi...
43,229
private float calcFloatProportionalValue(float relVal, short primitiveType, float baseValue, CssContext ctx) { float absVal = Float.MIN_VALUE; // NOTE: absolute datatypes (px, pt, pc, cm, etc.) are converted once and stored. // this could be done on instantiation, but it seems more clear to hav...
private float calcFloatProportionalValue(float relVal, short primitiveType, float baseValue, CssContext ctx) { float absVal = Float.MIN_VALUE; // NOTE: absolute datatypes (px, pt, pc, cm, etc.) are converted once and stored. // this could be done on instantiation, but it seems more clear to hav...
43,230
public Image getImage(String uri) { java.io.InputStream is = null; Image img = null; if (imageCache != null) { SoftReference ref = (SoftReference) imageCache.get(uri); if (ref != null) { img = (Image) ref.get(); } if (img != null) { ...
public Image getImage(String uri) { java.io.InputStream is = null; Image img = null; if (imageCache != null) { SoftReference ref = (SoftReference) imageCache.get(uri); if (ref != null) { img = (Image) ref.get(); } if (img != null) { ...
43,231
public java.io.Reader getReader(String uri) { java.io.InputStream is = null; Reader reader = null; try { is = new URL(resolveURI(uri)).openStream(); reader = new BufferedReader(new java.io.InputStreamReader(is)); } catch (java.net.MalformedURLException e) { ...
public java.io.Reader getReader(String uri) { java.io.InputStream is = null; Reader reader = null; try { is = new URL(uri).openStream(); reader = new BufferedReader(new java.io.InputStreamReader(is)); } catch (java.net.MalformedURLException e) { XRLog.exc...
43,232
public JOptionPane(Object message, int messageType, int optionType) { this(message, messageType, optionType, null, null, null); }
public JOptionPane() { this(message, messageType, optionType, null, null, null); }
43,233
public JOptionPane(Object message, int messageType, int optionType) { this(message, messageType, optionType, null, null, null); }
public JOptionPane(Object message, int messageType, int optionType) { this("JOptionPane message", PLAIN_MESSAGE, DEFAULT_OPTION, null, null, null); }
43,234
public JDialog createDialog(Component parentComponent, String title) { Frame toUse = getFrameForComponent(parentComponent); if (toUse == null) toUse = getRootFrame(); JDialog dialog = new JDialog(toUse, title); inputValue = UNINITIALIZED_VALUE; value = UNINITIALIZED_VALUE; // FIXME: This dialo...
public JDialog createDialog(Component parentComponent, String title) { Frame toUse = getFrameForComponent(parentComponent); if (toUse == null) toUse = getRootFrame(); JDialog dialog = new JDialog(toUse, title); inputValue = UNINITIALIZED_VALUE; value = UNINITIALIZED_VALUE; // FIXME: This dialo...
43,235
public static Object showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSele...
public static Object showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSele...
43,236
public static Object showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSele...
public static Object showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSele...
43,237
public static Object showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSele...
public static Object showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSele...
43,238
public void testExecTwoActions() throws Exception { long id = workflow.initialize(getClass().getResource("/samples/auto3.xml").toString(), 100, null); List currentSteps = workflow.getCurrentSteps(id); assertEquals("Unexpected number of current steps", 1, currentSteps.size()); assertEqual...
public void testExecTwoActions() throws Exception { long id = workflow.initialize(getClass().getResource("/samples/auto3.xml").toString(), 100, null); List currentSteps = workflow.getCurrentSteps(id); assertEquals("Unexpected number of current steps", 1, currentSteps.size()); assertEqual...
43,239
public void testSimpleFinish() throws Exception { long id = workflow.initialize(getClass().getResource("/samples/finish1.xml").toString(), 100, null); workflow.doAction(id, 1, null); assertTrue("Finished workflow should have no current actions", workflow.getCurrentSteps(id).size() == 0); ...
public void testSimpleFinish() throws Exception { long id = workflow.initialize(getClass().getResource("/samples/finish1.xml").toString(), 100, null); workflow.doAction(id, 1, null); assertTrue("Finished workflow should have no current actions", workflow.getCurrentSteps(id).size() == 0); ...
43,240
public void doAction(long id, int actionId, Map inputs) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry.getState() != WorkflowEntry.ACTIVATED) { return; } WorkflowDescriptor wf = getConfiguration()....
public void doAction(long id, int actionId, Map inputs) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry.getState() != WorkflowEntry.ACTIVATED) { return; } WorkflowDescriptor wf = getConfiguration()....
43,241
public void testExampleWorkflow() throws Exception { WorkflowQuery query; String workflowName = getClass().getResource("/samples/example.xml").toString(); assertTrue("canInitialize for workflow " + workflowName + " is false", workflow.canInitialize(workflowName, 1)); long workflowId = wo...
public void testExampleWorkflow() throws Exception { WorkflowQuery query; String workflowName = getClass().getResource("/samples/example.xml").toString(); assertTrue("canInitialize for workflow " + workflowName + " is false", workflow.canInitialize(workflowName, 1)); long workflowId = wo...
43,242
public void testExampleWorkflow() throws Exception { WorkflowQuery query; String workflowName = getClass().getResource("/samples/example.xml").toString(); assertTrue("canInitialize for workflow " + workflowName + " is false", workflow.canInitialize(workflowName, 1)); long workflowId = wo...
public void testExampleWorkflow() throws Exception { WorkflowQuery query; String workflowName = getClass().getResource("/samples/example.xml").toString(); assertTrue("canInitialize for workflow " + workflowName + " is false", workflow.canInitialize(workflowName, 1)); long workflowId = wo...
43,243
public void testExampleWorkflow() throws Exception { WorkflowQuery query; String workflowName = getClass().getResource("/samples/example.xml").toString(); assertTrue("canInitialize for workflow " + workflowName + " is false", workflow.canInitialize(workflowName, 1)); long workflowId = wo...
public void testExampleWorkflow() throws Exception { WorkflowQuery query; String workflowName = getClass().getResource("/samples/example.xml").toString(); assertTrue("canInitialize for workflow " + workflowName + " is false", workflow.canInitialize(workflowName, 1)); long workflowId = wo...
43,244
public WorkflowQuery(int field, int type, int operator, Object value) { this.type = type; this.operator = operator; this.field = field; this.value = value; }
public WorkflowQuery(int field, int type, int operator, Object value) { this.type = type; this.operator = operator; this.field = field; this.value = value; }
43,245
public WorkflowQuery(int field, int type, int operator, Object value) { this.type = type; this.operator = operator; this.field = field; this.value = value; }
public WorkflowQuery(int field, int type, int operator, Object value) { this.type = type; this.operator = operator; this.field = field; this.value = value; }
43,246
public FieldExpression(int field, int context, int operator, Object value) { this.context = context; this.operator = operator; this.field = field; this.value = value; }
public FieldExpression(int field, int context, int operator, Object value) { this.context = context; this.operator = operator; this.field = field; this.value = value; }
43,247
public void changeEntryState(long id, int newState) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry.getState() == newState) { return; } if (canModifyEntryState(id, newState)) { if ((newSt...
public void changeEntryState(long id, int newState) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry.getState() == newState) { return; } if (canModifyEntryState(id, newState)) { if ((newSt...
43,248
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // build the invocation long hash = MethodHashing.calculateHash(method); MethodInvocation invocation = new MethodInvocation(interceptors, hash, method, method, null); invocation.setArguments(args); // init...
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // build the invocation long hash = MethodHashing.calculateHash(method); MethodInfo info = new MethodInfo(); info.hash = hash; info.advisedMethod = method; info.unadvisedMethod = method; MethodInvocation invocation...
43,249
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // build the invocation long hash = MethodHashing.calculateHash(method); MethodInvocation invocation = new MethodInvocation(interceptors, hash, method, method, null); invocation.setArguments(args); // init...
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // build the invocation long hash = MethodHashing.calculateHash(method); MethodInvocation invocation = new MethodInvocation(interceptors, hash, method, method, null); invocation.setArguments(args); // init...
43,250
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // build the invocation long hash = MethodHashing.calculateHash(method); MethodInvocation invocation = new MethodInvocation(interceptors, hash, method, method, null); invocation.setArguments(args); // init...
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // build the invocation long hash = MethodHashing.calculateHash(method); MethodInvocation invocation = new MethodInvocation(interceptors, hash, method, method, null); invocation.setArguments(args); // init...
43,251
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { state = in.readInt(); messages = readList(in); acks = readList(in); }
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { state = in.readInt(); messages = readList(in); acks = readList(in); }
43,252
private List readList(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); List l = new ArrayList(size); for (int i = 0; i < size; i++) { l.add(in.readObject()); } return l; }
private List readList(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); List l = null; for (int i = 0; i < size; i++) { l.add(in.readObject()); } return l; }
43,253
private List readList(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); List l = new ArrayList(size); for (int i = 0; i < size; i++) { l.add(in.readObject()); } return l; }
private List readList(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); List l = new ArrayList(size); if (size != -1) { l.add(in.readObject()); } return l; }
43,254
private List readList(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); List l = new ArrayList(size); for (int i = 0; i < size; i++) { l.add(in.readObject()); } return l; }
private List readList(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); List l = new ArrayList(size); for (int i = 0; i < size; i++) { l = new ArrayList(size); for (int i = 0; i < size; i++) { l.add(in.readObject()); } } ...
43,255
private List readList(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); List l = new ArrayList(size); for (int i = 0; i < size; i++) { l.add(in.readObject()); } return l; }
private List readList(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); List l = new ArrayList(size); for (int i = 0; i < size; i++) { l.add(in.readObject()); } return l; }
43,256
public void writeExternal(ObjectOutput out) throws IOException { out.writeInt(state); writeList(messages, out); writeList(acks, out); }
public void writeExternal(ObjectOutput out) throws IOException { out.writeInt(state); writeList(messages, out); writeList(acks, out); }
43,257
private void writeList(List l, ObjectOutput out) throws IOException { out.writeInt(l.size()); Iterator iter = l.iterator(); while (iter.hasNext()) { out.writeObject(iter.next()); } }
private void writeList(List l, ObjectOutput out) throws IOException { out.writeInt(l.size()); Iterator iter = l.iterator(); while (iter.hasNext()) { out.writeObject(iter.next()); } }
43,258
private void writeList(List l, ObjectOutput out) throws IOException { out.writeInt(l.size()); Iterator iter = l.iterator(); while (iter.hasNext()) { out.writeObject(iter.next()); } }
private void writeList(List l, ObjectOutput out) throws IOException { out.writeInt(l.size()); Iterator iter = l.iterator(); while (iter.hasNext()) { out.writeInt(-1); } else { out.writeInt(l.size()); Iterator iter = l.iterator(); while (iter.hasNext()) { out.writeObject(iter.next()); } ...
43,259
public static void createCell(WorkflowDescriptor workflow, WorkflowGraphModel model, Point location, DragData script) { if(script.equals(DragData.JOIN)) { createJoin(workflow, model, location); } else if(script.equals(DragData.SPLIT)) { createSplit(workflow, model, location); } else if...
publicstaticvoidcreateCell(WorkflowDescriptorworkflow,WorkflowGraphModelmodel,Pointlocation,DragDatascript){if(script.equals(DragData.JOIN)){createJoin(workflow,model,location);}elseif(script.equals(DragData.SPLIT)){createSplit(workflow,model,location);}elseif(script.equals(DragData.STEP)){createStep(workflow,model,loc...
43,260
public static void createStep(WorkflowDescriptor workflow, WorkflowGraphModel model, Point location) { // create new step String name = JOptionPane.showInputDialog("Step Name?"); if(name == null || name.trim().length() == 0) return; StepDescriptor step = DescriptorBuilder.createStep(name, Utils.getNextId...
public static void createStep(WorkflowDescriptor workflow, WorkflowGraphModel model, Point location) { // create new step String name = JOptionPane.showInputDialog(ResourceManager.getString("step.add.name")); if(name == null || name.trim().length() == 0) return; StepDescriptor step = DescriptorBuilder.cr...
43,261
public JBossMessage(long messageID) { this(messageID, true, 0, System.currentTimeMillis(), (byte)4, null, null, null, null, null, null, null, null); }
public JBossMessage(long messageID) { this(messageID, true, 0, System.currentTimeMillis(), (byte)4, null, null, null, null, null, null, null, null); }
43,262
public WorkflowDescriptor(Element root) { init(root); }
public WorkflowDescriptor(Element root) { init(root); }
43,265
public int getInlineWidth() { return inlineWidth; }
public int getInlineWidth(CssContext cssCtx) { return inlineWidth; }
43,267
public void componentResized(ComponentEvent e) { html.relayout(); }
public void componentResized(ComponentEvent e) { geckoBrowser.setSize(gscroll.getSize()); }
43,271
private void switchPage(File file, boolean reload) { cbFrame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); try { if (reload) { XRLog.load("Reloading " + currentDisplayed); html.reloadDocument(file.toURL().toExternalForm()); geckoBrow...
private void switchPage(File file, boolean reload) { cbFrame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); try { if (reload) { XRLog.load("Reloading " + currentDisplayed); html.reloadDocument(file.toURL().toExternalForm()); geckoBrow...
43,272
public static void setLookAndFeel(String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException { Class c = Class.forName(className); LookAndFeel a = (LookAndFeel) c.newInstance(); // throws class-cast-exception setLookAndFeel(a); }
public static void setLookAndFeel(String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException { Class c = Class.forName(className); LookAndFeel a = (LookAndFeel) c.newInstance(); // throws class-cast-exception setLookAndFeel(a); }
43,273
public static void setLookAndFeel(String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException { Class c = Class.forName(className); LookAndFeel a = (LookAndFeel) c.newInstance(); // throws class-cast-exception setLookAndFeel(a); }
public static void setLookAndFeel(String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException { Class c = Class.forName(className); LookAndFeel a = (LookAndFeel) c.newInstance(); // throws class-cast-exception setLookAndFeel(a); }
43,274
public void setDocument(InputStream stream, String url) throws Exception { super.setDocument(stream, url, new XhtmlNamespaceHandler()); }
public void setDocument(InputStream stream, String url) throws Exception { super.setDocument(stream, url, new XhtmlNamespaceHandler()); }
43,275
private int appendStylesheet(StylesheetInfo si, int count, java.util.TreeMap sorter, String media) { if (!si.appliesToMedia(media)) return count; Stylesheet ss = _styleFactory.getStylesheet(si); if (ss == null) return count;//couldn't load it for (java.util.Iterator rulesets = ss.getRule...
private int appendStylesheet(StylesheetInfo si, int count, java.util.TreeMap sorter, String media) { if (!si.appliesToMedia(media)) return count; Stylesheet ss = si.getStylesheet(); if (ss == null) { ss = _styleFactory.getStylesheet(si); si.setStylesheet(ss); } if (ss == null) return count;//co...
43,276
public void nodeStructureChanged(TreeNode node) throws NotImplementedException { // TODO }
public void nodeStructureChanged(TreeNode node) { // TODO }
43,277
public void nodeStructureChanged(TreeNode node) throws NotImplementedException { // TODO }
int n = getChildCount(root); int[] childIdx = new int[n]; Object[] children = new Object[n]; for (int i = 0; i < n; i++) { childIdx[i] = i; children[i] = getChild(root, i); } fireTreeStructureChanged(this, new Object[] { root }, childIdx, children); int n = getChildCount(root); int[] childIdx = new int[n]; Object[] c...
43,278
public void reload() throws NotImplementedException { // TODO }
public void reload() { // TODO }
43,279
public void reload() throws NotImplementedException { // TODO }
int n = getChildCount(root); int[] childIdx = new int[n]; Object[] children = new Object[n]; for (int i = 0; i < n; i++) { childIdx[i] = i; children[i] = getChild(root, i); } fireTreeStructureChanged(this, new Object[] { root }, childIdx, children); int n = getChildCount(root); int[] childIdx = new int[n]; Object...
43,280
public TreeModelEvent(Object source, Object[] path, int[] childIndices, Object[] children) { super(source); this.path = new TreePath(path); this.childIndices = childIndices; this.children = children; } // TreeModelEvent()
public TreeModelEvent(Object source, Object[] path, int[] childIndices, Object[] children) { super(source); this.path = new TreePath(path); this.childIndices = childIndices; this.children = children; } // TreeModelEvent()
43,281
public TreeModelEvent(Object source, Object[] path, int[] childIndices, Object[] children) { super(source); this.path = new TreePath(path); this.childIndices = childIndices; this.children = children; } // TreeModelEvent()
public TreeModelEvent(Object source, Object[] path, int[] childIndices, Object[] children) { super(source); this.path = new TreePath(path); this.childIndices = childIndices; this.children = children; } // TreeModelEvent()
43,282
public void treeNodesChanged(TreeModelEvent event);
public void treeNodesChanged(TreeModelEvent event);
43,283
public void treeNodesInserted(TreeModelEvent event);
public void treeNodesInserted(TreeModelEvent event);
43,284
public void treeNodesRemoved(TreeModelEvent event);
public void treeNodesRemoved(TreeModelEvent event);
43,285
public void treeStructureChanged(TreeModelEvent event);
public void treeStructureChanged(TreeModelEvent event);
43,286