bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
SendTransactionRequest(int nodeId, long txId) { super(nodeId, txId, false); }
SendTransactionRequest() { super(nodeId, txId, false); }
30,413
SendTransactionRequest(int nodeId, long txId) { super(nodeId, txId, false); }
SendTransactionRequest(int nodeId, long txId) { }
30,414
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 (child.getSubstring().start...
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 (child.getSubstring().start...
30,415
private void paintPage(RenderingContext c, PageBox page) { Shape working = _outputDevice.getClip(); Rectangle content = page.getPrintingClippingBounds(c); _outputDevice.clip(content); int top = -page.getPaintingTop() + page.getStyle().getMarginBorderPa...
private void paintPage(RenderingContext c, PageBox page) { Shape working = _outputDevice.getClip(); Rectangle content = page.getPrintingClippingBounds(c); _outputDevice.clip(content); int top = -page.getPaintingTop() + page.getStyle().getMarginBorderPa...
30,416
void writeArray(Array x) throws SQLException;
void writeArray(Array value) throws SQLException;
30,417
void writeAsciiStream(InputStream x) throws SQLException;
void writeAsciiStream(InputStream stream) throws SQLException;
30,418
void writeBigDecimal(BigDecimal x) throws SQLException;
void writeBigDecimal(BigDecimal value) throws SQLException;
30,419
void writeBinaryStream(InputStream x) throws SQLException;
void writeBinaryStream(InputStream stream) throws SQLException;
30,420
void writeBlob(Blob x) throws SQLException;
void writeBlob(Blob value) throws SQLException;
30,421
void writeBoolean(boolean x) throws SQLException;
void writeBoolean(boolean value) throws SQLException;
30,422
void writeByte(byte x) throws SQLException;
void writeByte(byte value) throws SQLException;
30,423
void writeBytes(byte[] x) throws SQLException;
void writeBytes(byte[] value) throws SQLException;
30,424
void writeCharacterStream(Reader x) throws SQLException;
void writeCharacterStream(Reader stream) throws SQLException;
30,425
void writeClob(Clob x) throws SQLException;
void writeClob(Clob value) throws SQLException;
30,426
void writeDate(Date x) throws SQLException;
void writeDate(Date value) throws SQLException;
30,427
void writeDouble(double x) throws SQLException;
void writeDouble(double value) throws SQLException;
30,428
void writeFloat(float x) throws SQLException;
void writeFloat(float value) throws SQLException;
30,429
void writeInt(int x) throws SQLException;
void writeInt(int value) throws SQLException;
30,430
void writeLong(long x) throws SQLException;
void writeLong(long value) throws SQLException;
30,431
void writeObject(SQLData x) throws SQLException;
void writeObject(SQLData value) throws SQLException;
30,432
void writeRef(Ref x) throws SQLException;
void writeRef(Ref value) throws SQLException;
30,433
void writeShort(short x) throws SQLException;
void writeShort(short value) throws SQLException;
30,434
void writeString(String x) throws SQLException;
void writeString(String value) throws SQLException;
30,435
void writeStruct(Struct x) throws SQLException;
void writeStruct(Struct value) throws SQLException;
30,436
void writeTime(Time x) throws SQLException;
void writeTime(Time value) throws SQLException;
30,437
void writeTimestamp(Timestamp x) throws SQLException;
void writeTimestamp(Timestamp value) throws SQLException;
30,438
void writeURL(URL x) throws SQLException;
void writeURL(URL value) throws SQLException;
30,439
protected void setUp() throws Exception { super.setUp(); if (nodeCount < 1) { throw new Exception("Node count not defined! Initalize nodeCount in the test's setUp()"); } ic = new Context[nodeCount]; queue = new Queue[nodeCount]; topic = new Topic[nodeCount]; for(int ...
protected void setUp() throws Exception { super.setUp(); if (nodeCount < 1) { throw new Exception("Node count not defined! Initalize nodeCount in the test's setUp()"); } ic = new Context[nodeCount]; queue = new Queue[nodeCount]; topic = new Topic[nodeCount]; for(int ...
30,440
void remove() throws JMSException { if (trace) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try { ...
void remove() throws JMSException { if (trace) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try { ...
30,441
void remove() throws JMSException { if (trace) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try { ...
void remove() throws JMSException { if (trace) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try { ...
30,442
public void setBounds(int x, int y, int width, int height) { if (swingComponent != null) swingComponent.getJComponent().setBounds(x, y, width, height); }
public void setBounds(int x, int y, int width, int height) { if (swingComponent != null) swingComponent.getJComponent().setBounds(x, y, width, height); }
30,445
public void run() { test(0, 5); test(-1481821192, 1); }
public void run() { test(0, 5); test(-1481821192, 1); }
30,446
public DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector) throws JMSException { try { Connection conn = null; PreparedStatement ps = null; Transa...
public DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, boolean noLocal) throws JMSException { try { Connection conn = null; PreparedStatement ps = nul...
30,447
public DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector) throws JMSException { try { Connection conn = null; PreparedStatement ps = null; Transa...
public DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector) throws JMSException { try { Connection conn = null; PreparedStatement ps = null; Transa...
30,448
public DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector) throws JMSException { try { Connection conn = null; PreparedStatement ps = null; Transa...
public DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector) throws JMSException { try { Connection conn = null; PreparedStatement ps = null; Transa...
30,449
public DurableSubscription getDurableSubscription(String clientID, String subscriptionName) throws JMSException { //Look in memory first DurableSubscription sub = super.getDurableSubscription(clientID, subscriptionName); if (sub != null) { return sub; } try { ...
public DurableSubscription getDurableSubscription(String clientID, String subscriptionName) throws JMSException { //Look in memory first DurableSubscription sub = super.getDurableSubscription(clientID, subscriptionName); if (sub != null) { return sub; } try { ...
30,450
public Set loadDurableSubscriptionsForTopic(String topicName) throws JMSException { try { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection...
public Set loadDurableSubscriptionsForTopic(String topicName) throws JMSException { try { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection...
30,451
public DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector) throws JMSExcepti...
public DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, boolean noLocal) ...
30,452
public DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector) throws JMSExcepti...
public DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector) throws JMSExcepti...
30,453
public final StringBuffer format (Object objectArray, StringBuffer appendBuf, FieldPosition fpos) { return format ((Object[])objectArray, appendBuf, fpos); }
public final StringBuffer format (Object objectArray, StringBuffer appendBuf, FieldPosition fpos) { return format ((Object[])objectArray, appendBuf, fpos); }
30,454
public final StringBuffer format (Object objectArray, StringBuffer appendBuf, FieldPosition fpos) { return format ((Object[])objectArray, appendBuf, fpos); }
public final StringBuffer format (Object objectArray, StringBuffer appendBuf, FieldPosition fpos) { MessageFormat mf = new MessageFormat (pattern); StringBuffer sb = new StringBuffer (); FieldPosition fp = new FieldPosition (NumberFormat.INTEGER_FIELD); return mf.formatInternal(arguments, sb, fp, null).toS...
30,455
public void tearDown() throws Exception { conn.close(); ServerManagement.undeployQueue("Queue"); ServerManagement.deInit(); super.tearDown(); }
public void tearDown() throws Exception { conn.close(); ServerManagement.undeployQueue("Queue"); super.tearDown(); }
30,456
public JTextComponent() { repaintListener = new DocumentListener() { public void changedUpdate(DocumentEvent ev) { repaint(); } public void insertUpdate(DocumentEvent ev) { repaint(); } public void removeUpdate(DocumentEvent ev) { repaint(); } }; Keymap defkeymap = getKeymap(DEFAULT_KEYMAP); ...
public JTextComponent() { repaintListener = new DocumentListener() { public void changedUpdate(DocumentEvent ev) { repaint(); } public void insertUpdate(DocumentEvent ev) { repaint(); } public void removeUpdate(DocumentEvent ev) { repaint(); } }; Keymap defkeymap = getKeymap(DEFAULT_KEYMAP); ...
30,457
public void setDocument(Document newDoc) { Document oldDoc = doc; doc = newDoc; // setup document listener if (oldDoc != null) oldDoc.removeDocumentListener(repaintListener); if (newDoc != null) newDoc.addDocumentListener(repaintListener); firePropertyChange("document", oldDoc, newDoc); r...
public void setDocument(Document newDoc) { Document oldDoc = doc; doc = newDoc; // setup document listener if (oldDoc != null) oldDoc.removeDocumentListener(repaintListener); if (newDoc != null) newDoc.addDocumentListener(repaintListener); firePropertyChange("document", oldDoc, newDoc); r...
30,458
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<workflow>"); Iterator iter = metaAttributes.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); XMLUtil.printIndent(out, inde...
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<workflow>"); Iterator iter = metaAttributes.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); XMLUtil.printIndent(out, inde...
30,459
public HibernateStep(HibernateStep step) { this.actionId = step.getActionId(); this.caller = step.getCaller(); this.finishDate = step.getFinishDate(); this.dueDate = step.getDueDate(); this.startDate = step.getStartDate(); this.id = step.getId(); this.owner = step.ge...
public HibernateStep(HibernateStep step) { this.actionId = step.getActionId(); this.caller = step.getCaller(); this.finishDate = step.getFinishDate(); this.dueDate = step.getDueDate(); this.startDate = step.getStartDate(); this.id = step.getId(); this.owner = step.ge...
30,460
ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionID) throws JMSException;
ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionID) throws JMSException;
30,461
public void run() { RepaintManager rm = RepaintManager.globalManager; setLive(false); rm.validateInvalidComponents(); rm.paintDirtyRegions(); }
public void run() { ThreadGroup threadGroup = Thread.currentThread().getThreadGroup(); RepaintManager rm = (RepaintManager) currentRepaintManagers.get(threadGroup); setLive(false); rm.validateInvalidComponents(); rm.paintDirtyRegions(); }
30,462
public static RepaintManager currentManager(Component component) { if (globalManager == null) globalManager = new RepaintManager(); return globalManager; }
public static RepaintManager currentManager(Component component) { if (globalManager == null) globalManager = new RepaintManager(); return globalManager; }
30,463
public static void setCurrentManager(RepaintManager manager) { globalManager = manager; }
public static void setCurrentManager(RepaintManager manager) { if (currentRepaintManagers == null) currentRepaintManagers = new HashMap(); ThreadGroup threadGroup = Thread.currentThread().getThreadGroup(); currentRepaintManagers.put(threadGroup, manager); }
30,464
public Icon getDefaultIcon() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); return defaults.getIcon(getPropertyPrefix() + "icon"); }
public Icon getDefaultIcon() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); return defaults.getIcon(getPropertyPrefix() + "icon"); }
30,465
protected void paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY) { Color savedColor = g.getColor(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); g.setColor(defaults.getColor("Label.disabledForeground")); int mnemIndex = l.getDisplayedMnem...
protected void paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY) { Color savedColor = g.getColor(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); g.setColor(defaults.getColor("Label.disabledForeground")); int mnemIndex = l.getDisplayedMnem...
30,466
public static ComponentUI createUI(final JComponent c) { return new BasicLabelUI(); }
public static ComponentUI createUI(final JComponent c) { return new BasicLabelUI(); }
30,467
private String applyTypeRule(String rule, String type, String ruleType, Matcher m) { String res = rule == null ? "$"+ruleType+"0" : rule; for (int i = 0; i < TYPES.length; i++) { if (TYPES[i].equals(type)) { res = res.replaceAll("[^\\\\]\\$"+type, "\\$"); ...
private String applyTypeRule(String rule, String type, String ruleType, Matcher m) { String res = rule == null ? "$"+ruleType+"0" : rule; for (int i = 0; i < TYPES.length; i++) { if (TYPES[i].equals(type)) { res = res.replaceAll("([^\\\\])\\$"+type, "$1\\$...
30,468
private String applyTypeRule(String rule, String type, String ruleType, Matcher m) { String res = rule == null ? "$"+ruleType+"0" : rule; for (int i = 0; i < TYPES.length; i++) { if (TYPES[i].equals(type)) { res = res.replaceAll("[^\\\\]\\$"+type, "\\$"); ...
private String applyTypeRule(String rule, String type, String ruleType, Matcher m) { String res = rule == null ? "$"+ruleType+"0" : rule; for (int i = 0; i < TYPES.length; i++) { if (TYPES[i].equals(type)) { res = res.replaceAll("[^\\\\]\\$"+type, "\\$"); ...
30,469
public Matcher appendReplacement (StringBuffer sb, String replacement) throws IllegalStateException { assertMatchOp(); sb.append(input.subSequence(appendPosition, match.getStartIndex()).toString()); sb.append(match.substituteInto(replacement)); appendPosition = match.getEndIndex(); return this; ...
public Matcher appendReplacement (StringBuffer sb, String replacement) throws IllegalStateException { assertMatchOp(); sb.append(input.subSequence(appendPosition, match.getStartIndex()).toString()); sb.append(RE.getReplacement(replacement, match, RE.REG_REPLACE_USE_BACKSLASHESCAPE)); appendPosition...
30,470
public void tearDown() throws Exception { super.tearDown(); initialContext.close(); ServerManagement.stop(); }
public void tearDown() throws Exception { super.tearDown(); initialContext.close(); }
30,471
public void tearDown() throws Exception { producerConnection.close(); consumerConnection.close(); if (worker1 != null) { worker1.interrupt(); } ServerManagement.undeployTopic("Topic"); ServerManagement.undeployQueue("Queue"); ServerManagement.undeployQueue("Queue2");...
public void tearDown() throws Exception { producerConnection.close(); consumerConnection.close(); if (worker1 != null) { worker1.interrupt(); } ServerManagement.undeployTopic("Topic"); ServerManagement.undeployQueue("Queue"); ServerManagement.undeployQueue("Queue2");...
30,472
public void testRemotingInternals() throws Exception { if (ServerManagement.isRemote()) return; Connector serverConnector = ServerManagement.getConnector(); ServerInvoker serverInvoker = serverConnector.getServerInvoker(); JMSServerInvocationHandler invocationHandler = (JMSServ...
public void testRemotingInternals() throws Exception { if (ServerManagement.isRemote()) return; Connector serverConnector = ServerManagement.getConnector(); ServerInvoker serverInvoker = serverConnector.getServerInvoker(); JMSServerInvocationHandler invocationHandler = (JMSServ...
30,473
public void testRemotingInternals() throws Exception { if (ServerManagement.isRemote()) return; Connector serverConnector = ServerManagement.getConnector(); ServerInvoker serverInvoker = serverConnector.getServerInvoker(); JMSServerInvocationHandler invocationHandler = (JMSServ...
public void testRemotingInternals() throws Exception { if (ServerManagement.isRemote()) return; Connector serverConnector = ServerManagement.getConnector(); ServerInvoker serverInvoker = serverConnector.getServerInvoker(); JMSServerInvocationHandler invocationHandler = (JMSServ...
30,474
protected void ensureResolved(boolean haltOnFailure) { ensureMessageInitialised(); Object reference = getProject().getReference("ivy.resolved.descriptor"); if (reference == null) { Message.verbose("no resolved descriptor found: launching default resolve"); IvyResolve resol...
protected void ensureResolved(boolean haltOnFailure, String org, String module) { ensureMessageInitialised(); Object reference = getProject().getReference("ivy.resolved.descriptor"); if (reference == null) { Message.verbose("no resolved descriptor found: launching default resolve"); ...
30,475
private static BorderPropertySet getBorderProperty(CalculatedStyle style, CssContext ctx) { if (style._border == null) { String key = BorderPropertySet.deriveKey(style); style._border = (BorderPropertySet) _cachedRects.get(key); ...
private static BorderPropertySet getBorderProperty(CalculatedStyle style, CssContext ctx) { if (style._border == null) { String key = BorderPropertySet.deriveKey(style); style._border = (BorderPropertySet) getCachedRect(key); ...
30,477
private static BorderPropertySet getBorderProperty(CalculatedStyle style, CssContext ctx) { if (style._border == null) { String key = BorderPropertySet.deriveKey(style); style._border = (BorderPropertySet) _cachedRects.get(key); ...
private static BorderPropertySet getBorderProperty(CalculatedStyle style, CssContext ctx) { if (style._border == null) { String key = BorderPropertySet.deriveKey(style); style._border = (BorderPropertySet) _cachedRects.get(key); ...
30,478
private static RectPropertySet getMarginProperty(CalculatedStyle style, CSSName shorthandProp, CSSName[] sides, float parentWidth, ...
private static RectPropertySet getMarginProperty(CalculatedStyle style, CSSName shorthandProp, CSSName[] sides, float parentWidth, ...
30,479
private static RectPropertySet getMarginProperty(CalculatedStyle style, CSSName shorthandProp, CSSName[] sides, float parentWidth, ...
private static RectPropertySet getMarginProperty(CalculatedStyle style, CSSName shorthandProp, CSSName[] sides, float parentWidth, ...
30,480
private static RectPropertySet getPaddingProperty(CalculatedStyle style, CSSName shorthandProp, CSSName[] sides, float parentWidth, ...
private static RectPropertySet getPaddingProperty(CalculatedStyle style, CSSName shorthandProp, CSSName[] sides, float parentWidth, ...
30,481
private static RectPropertySet getPaddingProperty(CalculatedStyle style, CSSName shorthandProp, CSSName[] sides, float parentWidth, ...
private static RectPropertySet getPaddingProperty(CalculatedStyle style, CSSName shorthandProp, CSSName[] sides, float parentWidth, ...
30,482
public void addNamingListener(Name target, int scope, NamingListener l) throws NamingException;
void addNamingListener (Name target, int scope, NamingListener l) throws NamingException;
30,483
public void removeNamingListener(NamingListener l) throws NamingException;
void removeNamingListener (NamingListener l) throws NamingException;
30,484
public boolean targetMustExist() throws NamingException;
boolean targetMustExist() throws NamingException;
30,485
public int checkImage(Image image, int width, int height, ImageObserver observer) { // TODO Auto-generated method stub return 0; }
public int checkImage(Image image, int width, int height, ImageObserver observer) { // TODO Auto-generated method stub int status = ImageObserver.ALLBITS | ImageObserver.WIDTH | ImageObserver.HEIGHT; if (image instanceof JNodeImage) { status = ((JNodeImage) image).checkImage(); } if (observer != null) observer.i...
30,487
public Image createImage(byte[] data, int offset, int len) { if (len >= 4 && data[offset + 0] == 'G' && data[offset + 1] == 'I' && data[offset + 2] == 'F' && data[offset + 3] == '8') { try { return createImage(new GIFDecoder(new ByteArrayInputStream( data, offset, len))); } catch (LinkageError err) { ...
public Image createImage(byte[] data, int offset, int len) { if (len >= 4 && data[offset + 0] == 'G' && data[offset + 1] == 'I' && data[offset + 2] == 'F' && data[offset + 3] == '8') { try { return createImage(new GIFDecoder(new ByteArrayInputStream( data, offset, len))); } catch (LinkageError err) { ...
30,488
public Image getImage(final String filename) { log.debug("getImage(" + filename + ")"); return (Image) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image =...
public Image getImage(final String filename) { log.debug("getImage(" + filename + ")"); return testErrorImage((Image) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); ...
30,489
public Image getImage(final String filename) { log.debug("getImage(" + filename + ")"); return (Image) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image =...
public Image getImage(final String filename) { log.debug("getImage(" + filename + ")"); return (Image) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image =...
30,490
public Image getImage(final String filename) { log.debug("getImage(" + filename + ")"); return (Image) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image =...
public Image getImage(final String filename) { log.debug("getImage(" + filename + ")"); return (Image) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image =...
30,491
public Image getImage(final String filename) { log.debug("getImage(" + filename + ")"); return (Image) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image =...
public Image getImage(final String filename) { log.debug("getImage(" + filename + ")"); return (Image) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image =...
30,492
public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image = getImage(new URL("file:" + new File(userDir, filename))); return image != null ? image : getImage(new URL("file:" + new File(filename).getAbsol...
public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image = getImage(new URL("file:" + new File(userDir, filename))); return image != null ? image : getImage(new URL("file:" + new File(filename).getAbsol...
30,493
public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image = getImage(new URL("file:" + new File(userDir, filename))); return image != null ? image : getImage(new URL("file:" + new File(filename).getAbsol...
public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image = getImage(new URL("file:" + new File(userDir, filename))); return image != null ? image : getImage(new URL("file:" + new File(filename).getAbsol...
30,494
public Object run() { try { final URLConnection conn = url.openConnection(); final String type = conn.getContentType(); if ("image/gif".equals(type) || url.getFile().toLowerCase().endsWith(".gif")) { try { return createImage(new GIFDecoder(conn .getInputStream(), true)); ...
public Object run() { try { final URLConnection conn = url.openConnection(); final String type = conn.getContentType(); if ("image/gif".equals(type) || url.getFile().toLowerCase().endsWith(".gif")) { try { return createImage(new GIFDecoder(conn .getInputStream(), true)); ...
30,495
public boolean prepareImage(Image image, int width, int height, ImageObserver observer) { // TODO Auto-generated method stub return false; }
public boolean prepareImage(Image image, int width, int height, ImageObserver observer) { // TODO Auto-generated method stub return false; }
30,496
public void testAddReceiver_1() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); as...
public void testAddReceiver_1() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); as...
30,497
public void testAddReceiver_2() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); as...
public void testAddReceiver_2() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); as...
30,498
public void testAddReceiver_3() throws Throwable { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); as...
public void testAddReceiver_3() throws Throwable { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); as...
30,499
public void testAddReceiver_4() throws Exception { if (!channel.isRecoverable()) { // we test only recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); asser...
public void testAddReceiver_4() throws Exception { if (!channel.isRecoverable()) { // we test only recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); asser...
30,500
public void testAddReceiver_5() throws Exception { if (!channel.isRecoverable()) { // we test only recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); asser...
public void testAddReceiver_5() throws Exception { if (!channel.isRecoverable()) { // we test only recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); asser...
30,501
public void testAddReceiver_6() throws Throwable { if (!channel.isRecoverable()) { // we test only recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); asser...
public void testAddReceiver_6() throws Throwable { if (!channel.isRecoverable()) { // we test only recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); asser...
30,502
public void testJGroupsChannelNotConnected() throws Exception { Peer peer = (Peer)channel; assertTrue(jchannel.isConnected()); jchannel.close(); try { peer.join(); fail("should throw DistributedException"); } catch(DistributedException e) { //OK ...
public void testJGroupsChannelNotConnected() throws Exception { assertTrue(jchannel.isConnected()); jchannel.close(); try { peer.join(); fail("should throw DistributedException"); } catch(DistributedException e) { //OK } }
30,503
public void testJGroupsChannelNotConnected() throws Exception { Peer peer = (Peer)channel; assertTrue(jchannel.isConnected()); jchannel.close(); try { peer.join(); fail("should throw DistributedException"); } catch(DistributedException e) { //OK ...
public void testJGroupsChannelNotConnected() throws Exception { Peer peer = (Peer)channel; assertTrue(jchannel.isConnected()); jchannel.close(); try { ((DistributedChannel)channel).join(); fail("should throw DistributedException"); } catch(DistributedException e) ...
30,504
public void testNonRecoverableDistributedChannel_1() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.is...
public void testNonRecoverableDistributedChannel_1() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.is...
30,505
public void testNonRecoverableDistributedChannel_10() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } if (!channel.acceptReliableMessages()) { // we test channels that don't accept reliable messages re...
public void testNonRecoverableDistributedChannel_10() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } if (!channel.acceptReliableMessages()) { // we test channels that don't accept reliable messages re...
30,507
public void testNonRecoverableDistributedChannel_12() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } if (!channel.acceptReliableMessages()) { // we test channels that accept reliable messages return; ...
public void testNonRecoverableDistributedChannel_12() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } if (!channel.acceptReliableMessages()) { // we test channels that accept reliable messages return; ...
30,508
public void testNonRecoverableDistributedChannel_12_mixed() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } if (!channel.acceptReliableMessages()) { // we test channels that accept reliable messages re...
public void testNonRecoverableDistributedChannel_12_mixed() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } if (!channel.acceptReliableMessages()) { // we test channels that accept reliable messages re...
30,509
public void testNonRecoverableDistributedChannel_13() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.i...
public void testNonRecoverableDistributedChannel_13() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.i...
30,510
public void testNonRecoverableDistributedChannel_14() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.i...
public void testNonRecoverableDistributedChannel_14() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.i...
30,511
public void testNonRecoverableDistributedChannel_15() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.i...
public void testNonRecoverableDistributedChannel_15() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.i...
30,512
public void testNonRecoverableDistributedChannel_16() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.i...
public void testNonRecoverableDistributedChannel_16() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.i...
30,513
public void testNonRecoverableDistributedChannel_16_mixed() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jcha...
public void testNonRecoverableDistributedChannel_16_mixed() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jcha...
30,514
public void testNonRecoverableDistributedChannel_17() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.i...
public void testNonRecoverableDistributedChannel_17() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.i...
30,515
public void testNonRecoverableDistributedChannel_18() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.i...
public void testNonRecoverableDistributedChannel_18() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.i...
30,516
public void testNonRecoverableDistributedChannel_19_2() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } if (!channel.acceptReliableMessages()) { // we test channels that accept reliable messages return...
public void testNonRecoverableDistributedChannel_19_2() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } if (!channel.acceptReliableMessages()) { // we test channels that accept reliable messages return...
30,517