bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
private void sendPicture ( ImageConsumer ic ) { ic.setHints( ImageConsumer.TOPDOWNLEFTRIGHT ); if( props != null ) { ic.setProperties( props ); } ic.setDimensions(width, height); ic.setColorModel(cm); if( pixeli != null ) { ic.setPixels( 0, 0, width, height, cm, pixeli, offset, scansize ); } else { ...
private void sendPicture ( ImageConsumer ic ) { ic.setHints( ImageConsumer.TOPDOWNLEFTRIGHT ); if( props != null ) { ic.setProperties( props ); } ic.setDimensions(width, height); ic.setColorModel(cm); if( pixeli != null ) { ic.setPixels( 0, 0, width, height, cm, pixeli, offset, scansize ); } else { ...
15,985
private void sendPicture ( ImageConsumer ic ) { ic.setHints( ImageConsumer.TOPDOWNLEFTRIGHT ); if( props != null ) { ic.setProperties( props ); } ic.setDimensions(width, height); ic.setColorModel(cm); if( pixeli != null ) { ic.setPixels( 0, 0, width, height, cm, pixeli, offset, scansize ); } else { ...
private void sendPicture ( ImageConsumer ic ) { ic.setHints( ImageConsumer.TOPDOWNLEFTRIGHT ); if( props != null ) { ic.setProperties( props ); } ic.setDimensions(width, height); ic.setColorModel(cm); if( pixeli != null ) { ic.setPixels( 0, 0, width, height, cm, pixeli, offset, scansize ); } else { ...
15,986
public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) { consumers.addElement(ic); } Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE ); } }
public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) { consumers.addElement(ic); } Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE ); } }
15,987
public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) { consumers.addElement(ic); } Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE ); } }
public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) { consumers.addElement(ic); Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE );
15,988
public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) { consumers.addElement(ic); } Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE ); } }
public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) { consumers.addElement(ic); } Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE ); } }
15,989
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ChooseNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new ChooseNode(); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; }
15,990
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ChooseNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ChooseNode(); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret;
15,991
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer("choose"); buf.append('['); buf.append(']'); return buf.toString(); }
15,992
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R...
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R...
15,993
public final VmType loadClass(String className, boolean resolve) throws ClassNotFoundException, PrivilegedActionPragma { final VmType<?> cls; if (className.charAt(0) == '[') { cls = loadArrayClass(className, resolve); addLoadedClass(className, cls); } else { ...
public final VmType loadClass(String className, boolean resolve) throws ClassNotFoundException, PrivilegedActionPragma { final VmType<?> cls; if (className.charAt(0) == '[') { cls = loadArrayClass(className, resolve); addLoadedClass(className, cls); } else { ...
15,994
public SelectorImpl (SelectorProvider provider) { super (provider); keys = new HashSet (); selected = new HashSet (); }
public SelectorImpl (SelectorProvider provider) { super (provider); keys = new HashSet (); selected = new HashSet (); }
15,995
private final void deregisterCancelledKeys() { Set ckeys = cancelledKeys (); synchronized (ckeys) { Iterator it = ckeys.iterator(); while (it.hasNext ()) { keys.remove ((SelectionKeyImpl) it.next ()); it.remove (); } } }
private final void deregisterCancelledKeys() { Set<SelectionKey> ckeys = cancelledKeys (); synchronized (ckeys) { Iterator it = ckeys.iterator(); while (it.hasNext ()) { keys.remove ((SelectionKeyImpl) it.next ()); it.remove (); } } }
15,996
private final void deregisterCancelledKeys() { Set ckeys = cancelledKeys (); synchronized (ckeys) { Iterator it = ckeys.iterator(); while (it.hasNext ()) { keys.remove ((SelectionKeyImpl) it.next ()); it.remove (); } } }
private final void deregisterCancelledKeys() { Set ckeys = cancelledKeys (); synchronized (ckeys) { Iterator<SelectionKey> it = ckeys.iterator(); while (it.hasNext ()) { keys.remove ((SelectionKeyImpl) it.next ()); it.remove (); } } }
15,997
private final int[] getFDsAsArray (int ops) { int[] result; int counter = 0; Iterator it = keys.iterator (); // Count the number of file descriptors needed while (it.hasNext ()) { SelectionKeyImpl key = (SelectionKeyImpl) it.next (); if ((key.interestOps () & ops) != 0) { ...
private final int[] getFDsAsArray (int ops) { int[] result; int counter = 0; Iterator<SelectionKey> it = keys.iterator (); // Count the number of file descriptors needed while (it.hasNext ()) { SelectionKeyImpl key = (SelectionKeyImpl) it.next (); if ((key.interestOps () & ops) != 0)...
15,998
public final Set keys() { if (!isOpen()) throw new ClosedSelectorException(); return Collections.unmodifiableSet (keys); }
public final Set<SelectionKey> keys() { if (!isOpen()) throw new ClosedSelectorException(); return Collections.unmodifiableSet (keys); }
15,999
public final Set selectedKeys() { if (!isOpen()) throw new ClosedSelectorException(); return selected; }
public final Set<SelectionKey> selectedKeys() { if (!isOpen()) throw new ClosedSelectorException(); return selected; }
16,000
protected IOR createIOR(cObject ref) throws BAD_OPERATION { IOR ior = super.createIOR(ref); if (iIor != null) { AOM.Obj obj = rootPOA.findIorKey(ior.key); POA poa; // Null means that the object was connected to the ORB directly. if (obj == null) poa = rootPOA; ...
protected IOR createIOR(cObject ref) throws BAD_OPERATION { IOR ior = super.createIOR(ref); if (iIor != null) { AOM.Obj obj = rootPOA.findIorKey(ior.key); gnuPOA poa; // Null means that the object was connected to the ORB directly. if (obj == null) poa = rootPOA; ...
16,001
protected DomIterator(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion) { if (!root.isSupported("MutationEvents", "2.0")) { throw new DomEx(DomEx.NOT_SUPPORTED_ERR, "Iterator need...
protected DomIterator(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion) { if (!root.isSupported("MutationEvents", "2.0")) { throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR, ...
16,003
public Node nextNode() { if (done) { throw new DomEx(DomEx.INVALID_STATE_ERR); } right = true; return walk(true); }
public Node nextNode() { if (done) { throw new DomDOMException(DOMException.INVALID_STATE_ERR); } right = true; return walk(true); }
16,004
public Node previousNode() { if (done) { throw new DomEx(DomEx.INVALID_STATE_ERR); } Node previous = reference; right = false; walk(false); return previous; }
public Node previousNode() { if (done) { throw new DomDOMException(DOMException.INVALID_STATE_ERR); } Node previous = reference; right = false; walk(false); return previous; }
16,005
private final void addBranch(int target, byte flags) { IRBasicBlock pred = this.currentBlock; IRBasicBlock succ = startBB(target); pred.addSuccessor(succ); endBB(flags); }
private final void addBranch(int target, byte flags) { IRBasicBlock pred = this.currentBlock; IRBasicBlock succ = startBB(target); branchTargets.put(new Integer(getInstructionAddress()), new Integer(target)); endBB(flags); }
16,006
public static Throwable systemException(int nr, int address) throws UninterruptiblePragma, LoadStaticsPragma, PrivilegedActionPragma { //Unsafe.getCurrentProcessor().getArchitecture().getStackReader().debugStackTrace(); if (false) { Unsafe.debug(nr); Unsafe.debug(address); Unsafe.die("System exception"); ...
public static Throwable systemException(int nr, int address) throws UninterruptiblePragma, LoadStaticsPragma, PrivilegedActionPragma { //Unsafe.getCurrentProcessor().getArchitecture().getStackReader().debugStackTrace(); if (false) { Unsafe.debug(nr); Unsafe.debug(address); Unsafe.die("System exception"); ...
16,008
public boolean nameAndTypeEquals(Node other) { if (other == this) { return true; } // node types must match if (nodeType != other.getNodeType()) { return false; } // if both have namespaces, do a "full" comparision // this is a "global" partition String ns1 = this....
public boolean nameAndTypeEquals(Node other) { if (other == this) { return true; } // node types must match if (nodeType != other.getNodeType()) { return false; } // if both have namespaces, do a "full" comparision // this is a "global" partition String ns1 = this....
16,009
public Class getUIClass(String id, ClassLoader loader) { String className = (String) get (id); if (className == null) return null; try { if (loader != null) return loader.loadClass (className); return Class.forName (className); } catch (Exception e) { ...
public Class getUIClass(String id, ClassLoader loader) { String className = (String) get (id); if (className == null) return null; try { if (loader == null) loader = ClassLoader.getSystemClassLoader(); return loader.loadClass (className); return Class.forName (className...
16,010
public Class getUIClass(String id, ClassLoader loader) { String className = (String) get (id); if (className == null) return null; try { if (loader != null) return loader.loadClass (className); return Class.forName (className); } catch (Exception e) { ...
public Class getUIClass(String id, ClassLoader loader) { String className = (String) get (id); if (className == null) return null; try { if (loader != null) return loader.loadClass (className); } catch (Exception e) { return null; } }
16,011
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
16,012
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
16,013
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
16,014
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
16,015
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
16,016
public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "fb0"; final int count = (args.length > 1) ? Integer.parseInt(args[1]) : 100; final String tests = (args.length > 2) ? args[2] : "plrREQ"; Surface g = null; try { ...
public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "fb0"; final int count = (args.length > 1) ? Integer.parseInt(args[1]) : 100; final String tests = (args.length > 2) ? args[2] : "plrREQ"; Surface g = null; try { ...
16,018
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha...
protected void perform() { log.info("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawShapeLineTest...
16,020
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha...
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha...
16,021
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha...
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha...
16,022
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha...
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha...
16,023
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha...
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha...
16,024
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha...
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha...
16,025
public void write(byte[] buf, int off, int len) throws IOException { crc.update(buf, off, len); super.write(buf, off, len); }
public synchronized void write(byte[] buf, int off, int len) throws IOException { crc.update(buf, off, len); super.write(buf, off, len); }
16,026
public void write(byte[] buf, int off, int len) throws IOException { crc.update(buf, off, len); super.write(buf, off, len); }
public void write(byte[] buf, int off, int len) throws IOException { crc.update(buf, off, len); }
16,027
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; ButtonModel m = b.getModel(); if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && ! m.isPressed() && ! m.isArmed() && b.isEnabled() && (b.getBackground() ...
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && ! m.isPressed() && ! m.isArmed() && b.isEnabled() && (b.getBackground() instanceof UIResource)) ...
16,028
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; ButtonModel m = b.getModel(); if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && ! m.isPressed() && ! m.isArmed() && b.isEnabled() && (b.getBackground() ...
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; ButtonModel m = b.getModel(); if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && b.isEnabled() && (b.getBackground() instanceof UIResource)) { ...
16,029
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; ButtonModel m = b.getModel(); if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && ! m.isPressed() && ! m.isArmed() && b.isEnabled() && (b.getBackground() ...
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; ButtonModel m = b.getModel(); if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && ! m.isPressed() && ! m.isArmed() && b.isEnabled() && (b.getBackground() ...
16,030
public void addChangeListener(ChangeListener listener) { // TODO } // addChangeListener()
public void addChangeListener(ChangeListener listener) { // TODO } // addChangeListener()
16,031
protected void fireStateChanged() { // TODO } // fireStateChanged()
protected void fireStateChanged() { // TODO } // fireStateChanged()
16,032
public Color getSelectedColor() { return null; // TODO } // getSelectedColor()
public Color getSelectedColor() { return null; // TODO } // getSelectedColor()
16,033
public void removeChangeListener(ChangeListener listener) { // TODO } // removeChangeListener()
public void removeChangeListener(ChangeListener listener) { // TODO } // removeChangeListener()
16,034
public void setSelectedColor(Color color) { // TODO } // setSelectedColor()
public void setSelectedColor(Color color) { // TODO } // setSelectedColor()
16,035
public InetAddress(byte[] ipaddr) { this(ipaddr, null, null); }
public InetAddress(byte[] ipaddr) { this(ipaddr, null, null); }
16,036
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ...
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return null; Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ...
16,037
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ...
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ...
16,038
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ...
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ...
16,039
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ...
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ...
16,040
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ...
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] addr2 = ((InetAddress) obj).addr; if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ret...
16,041
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ...
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (addr.length != addr2.length) return false; for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ...
16,042
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ...
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (addr[i] != addr2[i]) return false; return...
16,043
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ...
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ...
16,044
public byte[] getAddress() { byte[] ipaddr = new byte[ addr.length]; for (int i = 0; i < addr.length; i++) { ipaddr[ i] = (byte) addr[ i]; } return ipaddr; }
public byte[] getAddress() { byte[] ipaddr = new byte[ addr.length]; for (int i = 0; i < addr.length; i++) { ipaddr[ i] = (byte) addr[ i]; } return ipaddr; }
16,045
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ...
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ...
16,046
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ...
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ...
16,047
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ...
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ...
16,048
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ...
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ...
16,049
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ...
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ...
16,050
public static InetAddress getByAddress(byte[] addr) throws UnknownHostException { if (addr.length != 4 && addr.length != 16) throw new UnknownHostException("IP address has illegal length"); if (addr.length == 4) // return new Inet4Address(null,addr); ...
public static InetAddress getByAddress(byte[] addr) throws UnknownHostException { if (addr.length != 4 && addr.length != 16) throw new UnknownHostException("IP address has illegal length"); if (addr.length == 4) // return new Inet4Address(null,addr); ...
16,051
public static InetAddress getByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) return getLocalHost(); // First, check to see if it is an IP address. If so, then don't // do a DNS lookup. StringTokenizer s...
public static InetAddress getByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) return getLocalHost(); // First, check to see if it is an IP address. If so, then don't // do a DNS lookup. StringTokenizer s...
16,052
public String getHostAddress() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < addr.length; i++) { sb.append(addr[ i] & 0xff); if (i < (addr.length - 1)) sb.append("."); } return sb.toString(); }
public String getHostAddress() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < addr.length; i++) { sb.append(addr[ i] & 0xff); if (i < (addr.length - 1)) sb.append("."); } return sb.toString(); }
16,053
public String getHostAddress() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < addr.length; i++) { sb.append(addr[ i] & 0xff); if (i < (addr.length - 1)) sb.append("."); } return sb.toString(); }
public String getHostAddress() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < addr.length; i++) { sb.append(addr[ i] & 0xff); if (i < (addr.length - 1)) sb.append("."); } return sb.toString(); }
16,054
public String getHostAddress() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < addr.length; i++) { sb.append(addr[ i] & 0xff); if (i < (addr.length - 1)) sb.append("."); } return sb.toString(); }
public String getHostAddress() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < addr.length; i++) { sb.append(addr[ i] & 0xff); if (i < (addr.length - 1)) sb.append("."); } for ( ; ; ) { sb.append(addr[i] & 0xff); i++; if (i == len) break; sb.append('.'...
16,055
public String getHostName() { if (hostName != null) return (hostName); try { hostName = getHostByAddr(addr); return (hostName); } catch (UnknownHostException e) { if (hostname_alias != null) return (hostname_alias); else ...
public String getHostName() { if (hostName != null) return (hostName); try { hostName = getHostByAddr(addr); return (hostName); } catch (UnknownHostException e) { if (hostname_alias != null) return (hostname_alias); else ...
16,057
public String getHostName() { if (hostName != null) return (hostName); try { hostName = getHostByAddr(addr); return (hostName); } catch (UnknownHostException e) { if (hostname_alias != null) return (hostname_alias); else ...
public String getHostName() { if (hostName != null) return (hostName); try { hostName = getHostByAddr(addr); return (hostName); } catch (UnknownHostException e) { if (hostname_alias != null) return (hostname_alias); else ...
16,058
static InetAddress getInaddrAny() throws UnknownHostException { if (inaddr_any == null) { byte[] tmp = new byte[] { 0, 0, 0, 0}; inaddr_any = new InetAddress(tmp); } return (inaddr_any); }
static InetAddress getInaddrAny() throws UnknownHostException { if (inaddr_any == null) { byte[] tmp = new byte[] { 0, 0, 0, 0}; inaddr_any = new InetAddress(tmp); } return (inaddr_any); }
16,059
static InetAddress getInaddrAny() throws UnknownHostException { if (inaddr_any == null) { byte[] tmp = new byte[] { 0, 0, 0, 0}; inaddr_any = new InetAddress(tmp); } return (inaddr_any); }
static InetAddress getInaddrAny() throws UnknownHostException { if (inaddr_any == null) { byte[] tmp = new byte[] { 0, 0, 0, 0}; inaddr_any = new InetAddress(tmp); } return (inaddr_any); }
16,060
public static InetAddress getLocalHost() throws UnknownHostException { return VMNetUtils.getAPI().getLocalAddress(); // return Ifconfig.getLocalAddress().toInetAddress(); /* * String hostname = getLocalHostName(); */ }
public static InetAddress getLocalHost() throws UnknownHostException { return VMNetUtils.getAPI().getLocalAddress(); // return Ifconfig.getLocalAddress().toInetAddress(); /* * String hostname = getLocalHostName(); */ }
16,061
public int hashCode() { long val1 = 0, val2 = 0; // Its obvious here that I have no idea how to generate a good // hash key for (int i = 0; i < addr.length; i++) val1 = val1 + (addr[ i] << ((addr.length - i) / 8)); for (int i = 0; i < addr.length; i++) val2 =...
public int hashCode() { long val1 = 0, val2 = 0; // Its obvious here that I have no idea how to generate a good // hash key for (int i = 0; i < addr.length; i++) val1 = val1 + (addr[ i] << ((addr.length - i) / 8)); for (int i = 0; i < addr.length; i++) val2 =...
16,062
public int hashCode() { long val1 = 0, val2 = 0; // Its obvious here that I have no idea how to generate a good // hash key for (int i = 0; i < addr.length; i++) val1 = val1 + (addr[ i] << ((addr.length - i) / 8)); for (int i = 0; i < addr.length; i++) val2 =...
public int hashCode() { long val1 = 0, val2 = 0; // Its obvious here that I have no idea how to generate a good // hash key for (int i = 0; i < addr.length; i++) val1 = val1 + (addr[ i] << ((addr.length - i) / 8)); for (int i = 0; i < addr.length; i++) val2 =...
16,063
public int hashCode() { long val1 = 0, val2 = 0; // Its obvious here that I have no idea how to generate a good // hash key for (int i = 0; i < addr.length; i++) val1 = val1 + (addr[ i] << ((addr.length - i) / 8)); for (int i = 0; i < addr.length; i++) val2 =...
public int hashCode() { long val1 = 0, val2 = 0; // Its obvious here that I have no idea how to generate a good // hash key for (int i = 0; i < addr.length; i++) val1 = val1 + (addr[ i] << ((addr.length - i) / 8)); for (int i = 0; i < addr.length; i++) val2 =...
16,064
public boolean isAnyLocalAddress() { return (this.equals(ANY_IF)); }
public boolean isAnyLocalAddress() { return (this.equals(ANY_IF)); }
16,065
public boolean isMulticastAddress() { if (addr.length == 0) return (false); // Mask against high order bits of 1110 if ((addr[ 0] & 0xF0) == 224) return (true); return (false); }
public boolean isMulticastAddress() { if (addr.length == 0) return (false); // Mask against high order bits of 1110 if ((addr[ 0] & 0xF0) == 224) return (true); return (false); }
16,066
public boolean isMulticastAddress() { if (addr.length == 0) return (false); // Mask against high order bits of 1110 if ((addr[ 0] & 0xF0) == 224) return (true); return (false); }
public boolean isMulticastAddress() { if (addr.length == 0) return (false); // Mask against high order bits of 1110 if ((addr[ 0] & 0xF0) == 224) return (true); return (false); }
16,067
public String toString() { StringBuffer sb; if (hostName != null) sb = new StringBuffer(hostName).append('/'); else if (hostname_alias != null) sb = new StringBuffer(hostname_alias).append('/'); else sb = new StringBuffer(); sb.append(getHostAddres...
public String toString() { StringBuffer sb; if (hostName != null) sb = new StringBuffer(hostName).append('/'); else if (hostname_alias != null) sb = new StringBuffer(hostname_alias).append('/'); else sb = new StringBuffer(); sb.append(getHostAddres...
16,068
public Selector(int axis, List tests) { this.axis = axis; this.tests = new Test[tests.size()]; tests.toArray(this.tests); if (axis == NAMESPACE && this.tests.length > 0 && this.tests[0] instanceof NameTest) { NameTest nt = (NameTest) this.tests[0]; this.tests[0] = new Nam...
public Selector(int axis, List tests) { this.axis = axis; int len = tests.size(); this.tests = new Test[(len == 0) ? 1 : len]; if (len > 0) tests.toArray(this.tests); if (axis == NAMESPACE && this.tests.length > 0 && this.tests[0] instanceof NameTest) { NameTest nt = (NameTest) ...
16,069
public Selector(int axis, List tests) { this.axis = axis; this.tests = new Test[tests.size()]; tests.toArray(this.tests); if (axis == NAMESPACE && this.tests.length > 0 && this.tests[0] instanceof NameTest) { NameTest nt = (NameTest) this.tests[0]; this.tests[0] = new Nam...
public Selector(int axis, List tests) { this.axis = axis; this.tests = new Test[tests.size()]; tests.toArray(this.tests); if (axis == NAMESPACE && this.tests.length > 0 && this.tests[0] instanceof NameTest) { NameTest nt = (NameTest) this.tests[0]; this.tests[0] = new Nam...
16,070
void addChildNodes(Node context, Collection acc, boolean recurse) { Node child = context.getFirstChild(); while (child != null) { acc.add(child); if (recurse) { addChildNodes(child, acc, recurse); } child = child.getNextSibling(); } }
void addChildNodes(Node context, Collection acc, boolean recurse) Node child = context.getFirstChild(); while (child != null) acc.add(child); if (recurse) addChildNodes(child, acc, recurse); } child = child.getNextSibling(); } }
16,071
void addChildNodes(Node context, Collection acc, boolean recurse) { Node child = context.getFirstChild(); while (child != null) { acc.add(child); if (recurse) { addChildNodes(child, acc, recurse); } child = child.getNextSibling(); } }
void addChildNodes(Node context, Collection acc, boolean recurse) { Node child = context.getFirstChild(); while (child != null) { acc.add(child); if (recurse) { addChildNodes(child, acc, recurse); child = child.getNextSibling();
16,072
void addFollowingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getNextSibling(); } if (recurse) { ...
void addFollowingNodes(Node context, Collection acc, boolean recurse) { if (context != null && recurse) addChildNodes(context, acc, true); Node cur = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? null : context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { ...
16,073
void addFollowingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getNextSibling(); } if (recurse) { ...
void addFollowingNodes(Node context, Collection acc, boolean recurse) Node cur = context.getNextSibling(); while (cur != null) acc.add(cur); if (recurse) addChildNodes(cur, acc, true); } cur = cur.getNextSibling(); } if (recurse) co...
16,074
void addFollowingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getNextSibling(); } if (recurse) { ...
void addFollowingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); cur = cur.getNextSibling(); if (recurse) { ...
16,075
void addFollowingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getNextSibling(); } if (recurse) { ...
void addFollowingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getNextSibling(); } if (recurse) { ...
16,076
void addNamespaceAttributes(Node context, Collection acc) { NamedNodeMap attrs = context.getAttributes(); if (attrs != null) { int attrLen = attrs.getLength(); for (int i = 0; i < attrLen; i++) { Node attr = attrs.item(i); if (isNamespaceAttribute(attr)) ...
void addNamespaceAttributes(Node context, Collection acc) NamedNodeMap attrs = context.getAttributes(); if (attrs != null) int attrLen = attrs.getLength(); for (int i = 0; i < attrLen; i++) Node attr = attrs.item(i); if (isNamespaceAttribute(attr)) ...
16,077
void addNamespaceAttributes(Node context, Collection acc) { NamedNodeMap attrs = context.getAttributes(); if (attrs != null) { int attrLen = attrs.getLength(); for (int i = 0; i < attrLen; i++) { Node attr = attrs.item(i); if (isNamespaceAttribute(attr)) ...
void addNamespaceAttributes(Node context, Collection acc) { NamedNodeMap attrs = context.getAttributes(); if (attrs != null) { int attrLen = attrs.getLength(); for (int i = 0; i < attrLen; i++) { Node attr = attrs.item(i); if (isNamespaceAttribute(attr)) ...
16,078
void addParentNode(Node context, Collection acc, boolean recurse) { Node parent = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? ((Attr) context).getOwnerElement() : context.getParentNode(); if (parent != null) { acc.add(parent); if (recurse) { addParentNode(parent...
void addParentNode(Node context, Collection acc, boolean recurse) Node parent = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? ((Attr) context).getOwnerElement() : context.getParentNode(); if (parent != null) acc.add(parent); if (recurse) addParentNode(parent, a...
16,079
void addParentNode(Node context, Collection acc, boolean recurse) { Node parent = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? ((Attr) context).getOwnerElement() : context.getParentNode(); if (parent != null) { acc.add(parent); if (recurse) { addParentNode(parent...
void addParentNode(Node context, Collection acc, boolean recurse) { Node parent = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? ((Attr) context).getOwnerElement() : context.getParentNode(); if (parent != null) { acc.add(parent); if (recurse) { addParentNode(parent...
16,080
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getPreviousSibling(); } if (recurse) ...
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? null : context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur...
16,081
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getPreviousSibling(); } if (recurse) ...
void addPrecedingNodes(Node context, Collection acc, boolean recurse) Node cur = context.getPreviousSibling(); while (cur != null) acc.add(cur); if (recurse) addChildNodes(cur, acc, true); } cur = cur.getPreviousSibling(); } if (recurse) ...
16,082
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getPreviousSibling(); } if (recurse) ...
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); cur = cur.getPreviousSibling(); if (recurse) {...
16,083
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getPreviousSibling(); } if (recurse) ...
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getPreviousSibling(); } if (recurse) ...
16,084
public Expr clone(Object context) { int len = tests.length; List tests2 = new ArrayList(len); for (int i = 0; i < len; i++) { tests2.add(tests[i].clone(context)); } return new Selector(axis, tests2); }
public Expr clone(Object context) int len = tests.length; List tests2 = new ArrayList(len); for (int i = 0; i < len; i++) tests2.add(tests[i].clone(context)); } return new Selector(axis, tests2); }
16,085
public Expr clone(Object context) { int len = tests.length; List tests2 = new ArrayList(len); for (int i = 0; i < len; i++) { tests2.add(tests[i].clone(context)); } return new Selector(axis, tests2); }
public Expr clone(Object context) { int len = tests.length; List tests2 = new ArrayList(len); for (int i = 0; i < len; i++) { tests2.add(tests[i].clone(context)); return new Selector(axis, tests2);
16,086
List filterCandidates(List candidates, boolean cascade) { int len = candidates.size(); int tlen = tests.length; if (tlen > 0 && len > 0) { // Present the result of each successful generation to the next test for (int j = 0; j < tlen && len > 0; j++) { Test test = tests...
List filterCandidates(List candidates, boolean cascade) int len = candidates.size(); int tlen = tests.length; if (tlen > 0 && len > 0) // Present the result of each successful generation to the next test for (int j = 0; j < tlen && len > 0; j++) Test test = tests[j]...
16,087
List filterCandidates(List candidates, boolean cascade) { int len = candidates.size(); int tlen = tests.length; if (tlen > 0 && len > 0) { // Present the result of each successful generation to the next test for (int j = 0; j < tlen && len > 0; j++) { Test test = tests...
List filterCandidates(List candidates, boolean cascade) { int len = candidates.size(); int tlen = tests.length; if (tlen > 0 && len > 0) { // Present the result of each successful generation to the next test for (int j = 0; j < tlen && len > 0; j++) { Test test = tests...
16,088
private int getContextPosition(Node ctx) { int pos = 1; for (ctx = ctx.getPreviousSibling(); ctx != null; ctx = ctx.getPreviousSibling()) { pos++; } return pos; }
private int getContextPosition(Node ctx) int pos = 1; for (ctx = ctx.getPreviousSibling(); ctx != null; ctx = ctx.getPreviousSibling()) pos++; } return pos; }
16,089