bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public static UserException readUserException(String idl, InputStream input) { try { String holder = toHelperName(idl); Class holderClass = Class.forName(holder); Method read = holderClass.getMethod("read", new Class[] ...
public static UserException readUserException(String idl, InputStream input) { try { String holder = toHelperName(idl); Class holderClass = Class.forName(holder); Method read = helperClass.getMethod("read", new Class[] ...
13,610
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
13,611
public Expr clone(Object context) { Stylesheet s = stylesheet; if (context instanceof Stylesheet) { s = (Stylesheet) context; } DocumentFunction f = new DocumentFunction(s, base); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len; i++) { ar...
public Expr clone(Object context) Stylesheet s = stylesheet; if (context instanceof Stylesheet) s = (Stylesheet) context; } DocumentFunction f = new DocumentFunction(s, base); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len; i++) args2...
13,612
public Expr clone(Object context) { Stylesheet s = stylesheet; if (context instanceof Stylesheet) { s = (Stylesheet) context; } DocumentFunction f = new DocumentFunction(s, base); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len; i++) { ar...
public Expr clone(Object context) { Stylesheet s = stylesheet; if (context instanceof Stylesheet) { s = (Stylesheet) context; DocumentFunction f = new DocumentFunction(s, base); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len; i++) { arg...
13,613
Collection document(String uri, String base) { if ("".equals(uri) || uri == null) { uri = this.base.getBaseURI(); } // Get fragment Expr fragment = null; int hi = uri.indexOf('#'); if (hi != -1) { String f = uri.substring(hi + 1); uri = uri.substring(0, hi); ...
Collection document(String uri, String base) if ("".equals(uri) || uri == null) uri = this.base.getBaseURI(); } // Get fragment Expr fragment = null; int hi = uri.indexOf('#'); if (hi != -1) String f = uri.substring(hi + 1); uri = uri.substring(0, hi); ...
13,614
Collection document(String uri, String base) { if ("".equals(uri) || uri == null) { uri = this.base.getBaseURI(); } // Get fragment Expr fragment = null; int hi = uri.indexOf('#'); if (hi != -1) { String f = uri.substring(hi + 1); uri = uri.substring(0, hi); ...
Collection document(String uri, String base) { if ("".equals(uri) || uri == null) { uri = this.base.getBaseURI(); // Get fragment Expr fragment = null; int hi = uri.indexOf('#'); if (hi != -1) { String f = uri.substring(hi + 1); uri = uri.substring(0, hi); ...
13,615
JarURLConnection(URL url) throws MalformedURLException{ super(url); // Now, strip off the "jar:" and everything from the "!/" to the end // to get the "real" URL inside String url_string = url.toExternalForm(); if (!url_string.startsWith("jar:")) throw new MalformedURLException(url_string); if (url_string.inde...
JarURLConnection(URL url) throws MalformedURLException{ super(url); // Now, strip off the "jar:" and everything from the "!/" to the end // to get the "real" URL inside String url_string = url.toExternalForm(); if (!url_string.startsWith("jar:")) throw new MalformedURLException(url_string); if (url_string.inde...
13,618
JarURLConnection(URL url) throws MalformedURLException{ super(url); // Now, strip off the "jar:" and everything from the "!/" to the end // to get the "real" URL inside String url_string = url.toExternalForm(); if (!url_string.startsWith("jar:")) throw new MalformedURLException(url_string); if (url_string.inde...
JarURLConnection(URL url) throws MalformedURLException{ super(url); // Now, strip off the "jar:" and everything from the "!/" to the end // to get the "real" URL inside if (! url.getProtocol().equals("jar")) throw new MalformedURLException(url + ": Not jar protocol."); if (!url_string.startsWith("jar:")) throw ...
13,619
JarURLConnection(URL url) throws MalformedURLException{ super(url); // Now, strip off the "jar:" and everything from the "!/" to the end // to get the "real" URL inside String url_string = url.toExternalForm(); if (!url_string.startsWith("jar:")) throw new MalformedURLException(url_string); if (url_string.inde...
JarURLConnection(URL url) throws MalformedURLException{ super(url); // Now, strip off the "jar:" and everything from the "!/" to the end // to get the "real" URL inside String url_string = url.toExternalForm(); if (!url_string.startsWith("jar:")) throw new MalformedURLException(url_string); if (url_string.inde...
13,620
JarURLConnection(URL url) throws MalformedURLException{ super(url); // Now, strip off the "jar:" and everything from the "!/" to the end // to get the "real" URL inside String url_string = url.toExternalForm(); if (!url_string.startsWith("jar:")) throw new MalformedURLException(url_string); if (url_string.inde...
JarURLConnection(URL url) throws MalformedURLException{ super(url); // Now, strip off the "jar:" and everything from the "!/" to the end // to get the "real" URL inside String url_string = url.toExternalForm(); if (!url_string.startsWith("jar:")) throw new MalformedURLException(url_string); if (url_string.inde...
13,621
JarURLConnection(URL url) throws MalformedURLException{ super(url); // Now, strip off the "jar:" and everything from the "!/" to the end // to get the "real" URL inside String url_string = url.toExternalForm(); if (!url_string.startsWith("jar:")) throw new MalformedURLException(url_string); if (url_string.inde...
JarURLConnection(URL url) throws MalformedURLException{ super(url); // Now, strip off the "jar:" and everything from the "!/" to the end // to get the "real" URL inside String url_string = url.toExternalForm(); if (!url_string.startsWith("jar:")) throw new MalformedURLException(url_string); if (url_string.inde...
13,622
getAttributes() throws IOException{ return(getJarEntry().getAttributes());}
getAttributes() throws IOException{ return(getJarEntry().getAttributes());}
13,623
getCertificates() throws IOException{ return(getJarEntry().getCertificates());}
getCertificates() throws IOException{ return(getJarEntry().getCertificates());}
13,624
getEntryName(){ return(entry_name);}
getEntryName(){ return(entry_name);}
13,625
getJarEntry() throws IOException{ if (jar_file == null) jar_file = getJarFile(); return(jar_file.getJarEntry(entry_name));}
getJarEntry() throws IOException{ if (jar_file == null) jar_file = getJarFile(); return(jar_file.getJarEntry(entry_name));}
13,626
getJarEntry() throws IOException{ if (jar_file == null) jar_file = getJarFile(); return(jar_file.getJarEntry(entry_name));}
getJarEntry() throws IOException{ if (jar_file == null) jar_file = getJarFile(); return(jar_file.getJarEntry(entry_name));}
13,627
getJarFile() throws IOException;
public abstract JarFile getJarFile() throws IOException;
13,628
getJarFileURL(){ return(real_url);}
getJarFileURL(){ return(real_url);}
13,629
getMainAttributes() throws IOException{ return(getManifest().getMainAttributes());}
getMainAttributes() throws IOException{ return(getManifest().getMainAttributes());}
13,630
getManifest() throws IOException{ if (jar_file == null) jar_file = getJarFile(); return(jar_file.getManifest());}
getManifest() throws IOException{ if (jar_file == null) jar_file = getJarFile(); return(jar_file.getManifest());}
13,631
getManifest() throws IOException{ if (jar_file == null) jar_file = getJarFile(); return(jar_file.getManifest());}
getManifest() throws IOException{ if (jar_file == null) jar_file = getJarFile(); return(jar_file.getManifest());}
13,632
public AccessibleJApplet() { super(); // Nothing to do here. }
protected AccessibleJApplet() { super(); // Nothing to do here. }
13,633
public Frame() { this(""); }
public Frame() { this(""); }
13,635
public void addNotify() { if (peer == null) peer = getToolkit().createFrame(this); super.addNotify(); }
public void addNotify() { if (peer == null) peer = getToolkit().createFrame(this); super.addNotify(); }
13,636
public int getCursorType() { return (getCursor().getType()); }
public int getCursorType() { return (getCursor().getType()); }
13,637
public static Frame[] getFrames() { //Frame[] array = new Frames[frames.size()]; //return frames.toArray(array); // see finalize() comment String msg = "FIXME: can't be implemented without weak references"; throw new UnsupportedOperationException(msg); }
public static Frame[] getFrames() { //Frame[] array = new Frames[frames.size()]; //return frames.toArray(array); // see finalize() comment String msg = "FIXME: can't be implemented without weak references"; throw new UnsupportedOperationException(msg); }
13,638
public Image getIconImage() { return (icon); }
public Image getIconImage() { return (icon); }
13,639
public MenuBar getMenuBar() { return (menuBar); }
public MenuBar getMenuBar() { return (menuBar); }
13,640
public int getState() { /* FIXME: State might have changed in the peer... Must check. */ return state; }
public int getState() { /* FIXME: State might have changed in the peer... Must check. */ return state; }
13,641
public String getTitle() { return (title); }
public String getTitle() { return (title); }
13,642
public boolean isResizable() { return (resizable); }
public boolean isResizable() { return (resizable); }
13,643
protected String paramString() { return (getClass().getName()); }
protected String paramString() { return (getClass().getName()); }
13,644
public void remove(MenuComponent menu) { menuBar.remove(menu); }
public void remove(MenuComponent menu) { menuBar.remove(menu); }
13,645
public void setCursor(int type) { setCursor(new Cursor(type)); }
public void setCursor(int type) { setCursor(new Cursor(type)); }
13,646
public synchronized void setIconImage(Image icon) { this.icon = icon; if (peer != null) ((FramePeer) peer).setIconImage(icon); }
public synchronized void setIconImage(Image icon) { this.icon = icon; if (peer != null) ((FramePeer) peer).setIconImage(icon); }
13,647
public synchronized void setMenuBar(MenuBar menuBar) { this.menuBar = menuBar; if (peer != null) ((FramePeer) peer).setMenuBar(menuBar); }
public synchronized void setMenuBar(MenuBar menuBar) { this.menuBar = menuBar; if (peer != null) ((FramePeer) peer).setMenuBar(menuBar); }
13,648
public synchronized void setResizable(boolean resizable) { this.resizable = resizable; if (peer != null) ((FramePeer) peer).setResizable(resizable); }
public synchronized void setResizable(boolean resizable) { this.resizable = resizable; if (peer != null) ((FramePeer) peer).setResizable(resizable); }
13,649
public synchronized void setTitle(String title) { this.title = title; if (peer != null) ((FramePeer) peer).setTitle(title); }
public synchronized void setTitle(String title) { this.title = title; if (peer != null) ((FramePeer) peer).setTitle(title); }
13,650
public abstract Object get(String name, Object defvalue) throws IOException, IllegalArgumentException;
public abstract boolean get(String name, boolean defvalue) throws IOException, IllegalArgumentException;
13,652
public Serializable read_value() { return read_value((Class) null); }
public Serializable read_value() { return Vio.read(this); }
13,653
private void printList(File[] list, PrintStream out) { if (list != null) { Arrays.sort(list, new Comparator<File>() { public int compare(File f1, File f2) { boolean b1 = f1.isDirectory(); boolean b2 = f2.isDirectory(); return ...
private void printList(File[] list, PrintStream out) { if (list != null) { Arrays.sort(list, new Comparator<File>() { public int compare(File f1, File f2) { boolean b1 = f1.isDirectory(); boolean b2 = f2.isDirectory(); return ...
13,654
private void printList(File[] list, PrintStream out) { if (list != null) { Arrays.sort(list, new Comparator<File>() { public int compare(File f1, File f2) { boolean b1 = f1.isDirectory(); boolean b2 = f2.isDirectory(); return ...
private void printList(File[] list, PrintStream out) { if (list != null) { Arrays.sort(list, new Comparator<File>() { public int compare(File f1, File f2) { boolean b1 = f1.isDirectory(); boolean b2 = f2.isDirectory(); return ...
13,655
private void printList(File[] list, PrintStream out) { if (list != null) { Arrays.sort(list, new Comparator<File>() { public int compare(File f1, File f2) { boolean b1 = f1.isDirectory(); boolean b2 = f2.isDirectory(); return ...
private void printList(File[] list, PrintStream out) { if (list != null) { Arrays.sort(list, new Comparator<File>() { public int compare(File f1, File f2) { boolean b1 = f1.isDirectory(); boolean b2 = f2.isDirectory(); return ...
13,656
protected URLConnection openConnection(URL url) throws IOException { // If a hostname is set, then we need to switch protocols to ftp // in order to transfer this from the remote host. String host = url.getHost(); if ((host != null) && (! host.equals(""))) { throw new IOException("ftp protoco...
protected URLConnection openConnection(URL url) throws IOException { // If a hostname is set, then we need to switch protocols to ftp // in order to transfer this from the remote host. String host = url.getHost(); if ((host != null) && (! host.equals(""))) { throw new IOException("ftp protoco...
13,657
protected URLConnection openConnection(URL url) throws IOException { // If a hostname is set, then we need to switch protocols to ftp // in order to transfer this from the remote host. String host = url.getHost(); if ((host != null) && (! host.equals(""))) { throw new IOException("ftp protoco...
protected URLConnection openConnection(URL url) throws IOException { // If a hostname is set, then we need to switch protocols to ftp // in order to transfer this from the remote host. String host = url.getHost(); if ((host != null) && (! host.equals(""))) { throw new IOException("ftp protoco...
13,658
protected void acceptDrag (int dragOperation) { // FIXME: implement this }
protected void acceptDrag(int dragOperation) throws NotImplementedException { // FIXME: implement this }
13,659
protected void acceptDrop (int dropOperation) { // FIXME: implement this }
protected void acceptDrop(int dropOperation) throws NotImplementedException { // FIXME: implement this }
13,660
protected DataFlavor[] getCurrentDataFlavors () { // FIXME: implement this return null; }
protected DataFlavor[] getCurrentDataFlavors() throws NotImplementedException { // FIXME: implement this return null; }
13,661
protected Transferable getTransferable() throws InvalidDnDOperationException { // FIXME: implement this return null; }
protected Transferable getTransferable() throws InvalidDnDOperationException, NotImplementedException { // FIXME: implement this return null; }
13,662
protected void rejectDrag () { // FIXME: implement this }
protected void rejectDrag() throws NotImplementedException { // FIXME: implement this }
13,663
protected void rejectDrop () { // FIXME: implement this }
protected void rejectDrop() throws NotImplementedException { // FIXME: implement this }
13,664
public AbstractButton() { this("",null); }
public AbstractButton() { init("", null); updateUI(); }
13,665
protected void fireActionPerformed(ActionEvent e) { e.setSource(this); ActionListener[] listeners = getActionListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].actionPerformed(e); }
protected void fireActionPerformed(ActionEvent e) { ActionEvent ae = new ActionEvent( this, e.getID(), getActionCommand(), e.getWhen(), e.getModifiers()); ActionListener[] listeners = getActionListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].actionPerformed(e); }
13,666
protected void fireActionPerformed(ActionEvent e) { e.setSource(this); ActionListener[] listeners = getActionListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].actionPerformed(e); }
protected void fireActionPerformed(ActionEvent e) { e.setSource(this); ActionListener[] listeners = getActionListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].actionPerformed(ae); }
13,667
public String getActionCommand() { return getModel().getActionCommand(); }
public String getActionCommand() { String ac = model.getActionCommand(); if (ac != null) return ac; else return text; }
13,668
public void setActionCommand(String aCommand) { getModel().setActionCommand(aCommand); }
public void setActionCommand(String actionCommand) { getModel().setActionCommand(aCommand); }
13,669
public void setActionCommand(String aCommand) { getModel().setActionCommand(aCommand); }
public void setActionCommand(String aCommand) { model.setActionCommand(actionCommand); }
13,670
compareTo(Object obj){ return(compareTo((CollationKey)obj));}
compareTo(Object obj){ return(compareTo((CollationKey)obj));}
13,671
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); CollationKey ck = (CollationKey)obj; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArray()))...
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); CollationKey ck = (CollationKey)obj; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArray()))...
13,672
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); CollationKey ck = (CollationKey)obj; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArray()))...
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); CollationKey ck = (CollationKey)obj; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArray()))...
13,673
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); CollationKey ck = (CollationKey)obj; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArray()))...
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); if (ck.collator != collator) return false; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArr...
13,674
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); CollationKey ck = (CollationKey)obj; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArray()))...
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); CollationKey ck = (CollationKey)obj; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArray()))...
13,675
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); CollationKey ck = (CollationKey)obj; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArray()))...
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); CollationKey ck = (CollationKey)obj; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArray()))...
13,676
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); CollationKey ck = (CollationKey)obj; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArray()))...
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); CollationKey ck = (CollationKey)obj; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArray()))...
13,677
getSourceString(){ return(str);}
getSourceString(){ return(str);}
13,678
hashCode(){ return(key.hashCode());}
hashCode(){ return(key.hashCode());}
13,679
toByteArray(){ return(key);}
toByteArray(){ return(key);}
13,680
TemplateNode clone(Stylesheet stylesheet) { int len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i < len; i++) { withParams2.add(((WithParam) withParams.get(i)).clone(stylesheet)); } TemplateNode ret = new CallTemplateNode(name, withParams2); if (childre...
TemplateNode clone(Stylesheet stylesheet) int len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i < len; i++) withParams2.add(((WithParam) withParams.get(i)).clone(stylesheet)); } TemplateNode ret = new CallTemplateNode(name, withParams2); if (children ...
13,681
TemplateNode clone(Stylesheet stylesheet) { int len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i < len; i++) { withParams2.add(((WithParam) withParams.get(i)).clone(stylesheet)); } TemplateNode ret = new CallTemplateNode(name, withParams2); if (childre...
TemplateNode clone(Stylesheet stylesheet) { int len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i < len; i++) { withParams2.add(((WithParam) withParams.get(i)).clone(stylesheet)); TemplateNode ret = new CallTemplateNode(name, withParams2); if (children...
13,682
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (withParams != null) { // compute the parameter values LinkedList values = new LinkedList(); for (Iterator i = wi...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (withParams != null) { // compute the parameter values LinkedList values = new LinkedList(); for (Iterator i = wi...
13,683
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (withParams != null) { // compute the parameter values LinkedList values = new LinkedList(); for (Iterator i = wi...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException if (withParams != null) // compute the parameter values LinkedList values = new LinkedList(); for (Iterator i = with...
13,684
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (withParams != null) { // compute the parameter values LinkedList values = new LinkedList(); for (Iterator i = wi...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (withParams != null) { // compute the parameter values LinkedList values = new LinkedList(); for (Iterator i = wi...
13,685
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (withParams != null) { // compute the parameter values LinkedList values = new LinkedList(); for (Iterator i = wi...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (withParams != null) { // compute the parameter values LinkedList values = new LinkedList(); for (Iterator i = wi...
13,686
public boolean references(QName var) { if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { return true; } } } return super.references(var); }
public boolean references(QName var) if (withParams != null) for (Iterator i = withParams.iterator(); i.hasNext(); ) if (((WithParam) i.next()).references(var)) return true; } } } return super.references(var); }
13,687
public boolean references(QName var) { if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { return true; } } } return super.references(var); }
public boolean references(QName var) { if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { return true; return super.references(var);
13,688
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("name="); buf.append(name); buf.append(']'); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer("call-template"); buf.append('['); buf.append("name="); buf.append(name); buf.append(']'); return buf.toString(); }
13,689
protected InetAddress getHostAddress(URL url) { String hostname = url.getHost(); if (hostname == "") return null; try { return InetAddress.getByName(hostname); } catch (UnknownHostException e) { return null; } }
protected InetAddress getHostAddress(URL url) { String hostname = url.getHost(); if (hostname.equals("")) return null; try { return InetAddress.getByName(hostname); } catch (UnknownHostException e) { return null; } }
13,697
protected boolean hostsEqual(URL url1, URL url2) throws UnknownHostException { InetAddress addr1 = InetAddress.getByName(url1.getHost()); InetAddress addr2 = InetAddress.getByName(url2.getHost()); return addr1.equals(addr2); }
protected boolean hostsEqual(URL url1, URL url2) throws UnknownHostException { InetAddress addr1 = InetAddress.getByName(url1.getHost()); InetAddress addr2 = InetAddress.getByName(url2.getHost()); return addr1.equals(addr2); }
13,698
protected abstract URLConnection openConnection(URL u) throws IOException;
protected abstract URLConnection openConnection(URL url) throws IOException;
13,700
protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl...
protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, " { String genuineHost;//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf...
13,701
protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl...
protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl...
13,702
protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl...
protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl...
13,703
protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl...
protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl...
13,704
protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl...
protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl...
13,705
protected boolean sameFile(URL url1, URL url2) { if (url1 == url2) return true; // This comparison is very conservative. It assumes that any // field can be null. if (url1 == null || url2 == null || url1.getPort() != url2.getPort()) return false; String s1, s2; s1 = url1.getProtocol(); s2 = url2.getProtoco...
protected boolean sameFile(URL url1, URL url2) { if (url1 == url2) return true; // This comparison is very conservative. It assumes that any // field can be null. if (url1 == null || url2 == null) return false; int p1 = url1.getPort(); if (p1 == -1) p1 = url1.ph.getDefaultPort(); int p2 = url2.getPort(); if (p2...
13,706
protected boolean sameFile(URL url1, URL url2) { if (url1 == url2) return true; // This comparison is very conservative. It assumes that any // field can be null. if (url1 == null || url2 == null || url1.getPort() != url2.getPort()) return false; String s1, s2; s1 = url1.getProtocol(); s2 = url2.getProtoco...
protected boolean sameFile(URL url1, URL url2) { if (url1 == url2) return true; // This comparison is very conservative. It assumes that any // field can be null. if (url1 == null || url2 == null || url1.getPort() != url2.getPort()) return false; String s1; String s2; s1 = url1.getProtocol(); s2 = url2.get...
13,707
protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP...
protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP...
13,708
protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP...
protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = url.getProtocol(); authority = url.getAuthority(); if (authority == null) authority = ""; // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on ...
13,709
protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP...
protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP...
13,710
protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP...
protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP...
13,711
protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP...
protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP...
13,712
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new IfNode(test.clone(stylesheet)); 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 IfNode(test.clone(stylesheet)); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; }
13,713
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new IfNode(test.clone(stylesheet)); 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 IfNode(test.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret;
13,714
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = test.evaluate(context, pos, len); boolean success = (ret instanceof Boolean) ? ((Boolean) ret).booleanValue() : Expr._bo...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException Object ret = test.evaluate(context, pos, len); boolean success = (ret instanceof Boolean) ? ((Boolean) ret).booleanValue() : Expr._boo...
13,715
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = test.evaluate(context, pos, len); boolean success = (ret instanceof Boolean) ? ((Boolean) ret).booleanValue() : Expr._bo...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = test.evaluate(context, pos, len); boolean success = (ret instanceof Boolean) ? ((Boolean) ret).booleanValue() : Expr._bo...
13,716
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("test="); buf.append(test); buf.append(']'); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer("if"); buf.append('['); buf.append("test="); buf.append(test); buf.append(']'); return buf.toString(); }
13,717
public SwingFrame(Frame awtFrame) { this.awtComponent = awtFrame;// setFocusCycleRoot(true);// final KeyboardFocusManager manager = KeyboardFocusManager// .getCurrentKeyboardFocusManager();// setFocusTraversalPolicy(manager.getDefaultFocusTraversalPolicy()); addInte...
public SwingFrame(Frame awtFrame) { this.awtComponent = awtFrame;// setFocusCycleRoot(true);// final KeyboardFocusManager manager = KeyboardFocusManager// .getCurrentKeyboardFocusManager();// setFocusTraversalPolicy(manager.getDefaultFocusTraversalPolicy()); }
13,718
Node getRow(final int index) { int i = 0; for (Node ctx = getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (!"tr".equalsIgnoreCase(ctx.getLocalName())) { continue; } if (index == i) { return ctx; } i++; ...
Node getRow(final int index) { int i = 0; for (Node ctx = getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); } if (!"tr".equalsIgnoreCase(name)) { continue; } if (in...
13,719
public static void main(String[] args) throws Exception { final ParsedArguments cmdLine = HELP_INFO.parse(args); final File dir = ARG_DIR.getFile(cmdLine); boolean mkOk = false; mkOk=dir.mkdir(); if(!mkOk){ System.err.println("Directory can't make"); } ...
public static void main(String[] args) throws Exception { final ParsedArguments cmdLine = HELP_INFO.parse(args); final File dir = ARG_DIR.getFile(cmdLine); boolean mkOk = false; mkOk=dir.mkdir(); if(!mkOk){ System.err.println("Directory can't make"); } ...
13,723
public MenuElement[] getSubElements() { MenuElement[] subElements = new MenuElement[getComponentCount()]; for (int i = 0; i < getComponentCount(); i++) subElements[i] = (MenuElement) getMenu(i); return subElements; }
public MenuElement[] getSubElements() { MenuElement[] subElements = new MenuElement[getComponentCount()]; for (int i = 0; i < getComponentCount(); i++) { menu = getMenu(i); if (menu != null) { subElements[j++] = (MenuElement) menu; } else doResize = true; } return subElements; }
13,724