bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public ErrorHandler getErrorHandler() { return errorHandler; }
public ErrorHandler getErrorHandler() { return errorHandler; }
14,473
public static final SchemaFactory newInstance(String schemaLanguage) { // TODO throw new IllegalArgumentException(schemaLanguage); }
if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); publicif (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); staticif (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); finalif (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); SchemaFactoryif (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); newInstance(Stringif (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); schemaLanguage)if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); {if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); //if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); TODOif (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); throwif (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); newif (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); IllegalArgumentException(schemaLanguage);if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory(); }
14,474
public void setErrorHandler(ErrorHandler errorHandler) { this.errorHandler = errorHandler; }
public void setErrorHandler(ErrorHandler errorHandler) { this.errorHandler = errorHandler; }
14,475
public StreamSource(File file) { setSystemId (file); }
public StreamSource(File file) { setSystemId (file); }
14,476
public LinkedHashSet(Collection<? extends T> c) { super(c); }
public LinkedHashSet() { super(c); }
14,477
public LinkedHashSet(Collection<? extends T> c) { super(c); }
public LinkedHashSet(Collection<? extends T> c) { super(); }
14,478
public LinkedHashMap(int initialCapacity, float loadFactor) { super(initialCapacity, loadFactor); accessOrder = false; }
public LinkedHashMap() { super(initialCapacity, loadFactor); accessOrder = false; }
14,479
public LinkedHashMap(int initialCapacity, float loadFactor) { super(initialCapacity, loadFactor); accessOrder = false; }
public LinkedHashMap(int initialCapacity, float loadFactor) { super(); accessOrder = false; }
14,480
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new TextNode(disableOutputEscaping); 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 TextNode(disableOutputEscaping); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; }
14,481
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new TextNode(disableOutputEscaping); 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 TextNode(disableOutputEscaping); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret; }
14,482
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new TextNode(disableOutputEscaping); 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 TextNode(disableOutputEscaping); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; }
14,483
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new TextNode(disableOutputEscaping); 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 TextNode(disableOutputEscaping); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret; }
14,484
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) { // Create a document fragment to hold the text DocumentFragment fragment = doc.createDocumentFragment(); // Apply children to the fragment children.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment value = Expr.stringValue(fragment); } Text text = doc.createTextNode(value); if (disableOutputEscaping) { text.setUserData("disable-output-escaping", "yes", stylesheet); } // Insert into result tree if (nextSibling != null) { parent.insertBefore(text, nextSibling); } else { parent.appendChild(text); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) // Create a document fragment to hold the text DocumentFragment fragment = doc.createDocumentFragment(); // Apply children to the fragment children.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment value = Expr.stringValue(fragment); } Text text = doc.createTextNode(value); if (disableOutputEscaping) text.setUserData("disable-output-escaping", "yes", stylesheet); } // Insert into result tree if (nextSibling != null) parent.insertBefore(text, nextSibling); } else parent.appendChild(text); } if (next != null) next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
14,485
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) { // Create a document fragment to hold the text DocumentFragment fragment = doc.createDocumentFragment(); // Apply children to the fragment children.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment value = Expr.stringValue(fragment); } Text text = doc.createTextNode(value); if (disableOutputEscaping) { text.setUserData("disable-output-escaping", "yes", stylesheet); } // Insert into result tree if (nextSibling != null) { parent.insertBefore(text, nextSibling); } else { parent.appendChild(text); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) { // Create a document fragment to hold the text DocumentFragment fragment = doc.createDocumentFragment(); // Apply children to the fragment children.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment value = Expr.stringValue(fragment); Text text = doc.createTextNode(value); if (disableOutputEscaping) { text.setUserData("disable-output-escaping", "yes", stylesheet); // Insert into result tree if (nextSibling != null) { parent.insertBefore(text, nextSibling); else { parent.appendChild(text); if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); }
14,486
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) { // Create a document fragment to hold the text DocumentFragment fragment = doc.createDocumentFragment(); // Apply children to the fragment children.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment value = Expr.stringValue(fragment); } Text text = doc.createTextNode(value); if (disableOutputEscaping) { text.setUserData("disable-output-escaping", "yes", stylesheet); } // Insert into result tree if (nextSibling != null) { parent.insertBefore(text, nextSibling); } else { parent.appendChild(text); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) // Create a document fragment to hold the text DocumentFragment fragment = doc.createDocumentFragment(); // Apply children to the fragment children.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment value = Expr.stringValue(fragment); } Text text = doc.createTextNode(value); if (disableOutputEscaping) text.setUserData("disable-output-escaping", "yes", stylesheet); } // Insert into result tree if (nextSibling != null) parent.insertBefore(text, nextSibling); } else parent.appendChild(text); } if (next != null) next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
14,487
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) { // Create a document fragment to hold the text DocumentFragment fragment = doc.createDocumentFragment(); // Apply children to the fragment children.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment value = Expr.stringValue(fragment); } Text text = doc.createTextNode(value); if (disableOutputEscaping) { text.setUserData("disable-output-escaping", "yes", stylesheet); } // Insert into result tree if (nextSibling != null) { parent.insertBefore(text, nextSibling); } else { parent.appendChild(text); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) { // Create a document fragment to hold the text DocumentFragment fragment = doc.createDocumentFragment(); // Apply children to the fragment children.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment value = Expr.stringValue(fragment); Text text = doc.createTextNode(value); if (disableOutputEscaping) { text.setUserData("disable-output-escaping", "yes", stylesheet); // Insert into result tree if (nextSibling != null) { parent.insertBefore(text, nextSibling); else { parent.appendChild(text); if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); }
14,488
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) { // Create a document fragment to hold the text DocumentFragment fragment = doc.createDocumentFragment(); // Apply children to the fragment children.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment value = Expr.stringValue(fragment); } Text text = doc.createTextNode(value); if (disableOutputEscaping) { text.setUserData("disable-output-escaping", "yes", stylesheet); } // Insert into result tree if (nextSibling != null) { parent.insertBefore(text, nextSibling); } else { parent.appendChild(text); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) // Create a document fragment to hold the text DocumentFragment fragment = doc.createDocumentFragment(); // Apply children to the fragment children.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment value = Expr.stringValue(fragment); } Text text = doc.createTextNode(value); if (disableOutputEscaping) text.setUserData("disable-output-escaping", "yes", stylesheet); } // Insert into result tree if (nextSibling != null) parent.insertBefore(text, nextSibling); } else parent.appendChild(text); } if (next != null) next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
14,489
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) { // Create a document fragment to hold the text DocumentFragment fragment = doc.createDocumentFragment(); // Apply children to the fragment children.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment value = Expr.stringValue(fragment); } Text text = doc.createTextNode(value); if (disableOutputEscaping) { text.setUserData("disable-output-escaping", "yes", stylesheet); } // Insert into result tree if (nextSibling != null) { parent.insertBefore(text, nextSibling); } else { parent.appendChild(text); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) { // Create a document fragment to hold the text DocumentFragment fragment = doc.createDocumentFragment(); // Apply children to the fragment children.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment value = Expr.stringValue(fragment); Text text = doc.createTextNode(value); if (disableOutputEscaping) { text.setUserData("disable-output-escaping", "yes", stylesheet); // Insert into result tree if (nextSibling != null) { parent.insertBefore(text, nextSibling); else { parent.appendChild(text); if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); }
14,490
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) { // Create a document fragment to hold the text DocumentFragment fragment = doc.createDocumentFragment(); // Apply children to the fragment children.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment value = Expr.stringValue(fragment); } Text text = doc.createTextNode(value); if (disableOutputEscaping) { text.setUserData("disable-output-escaping", "yes", stylesheet); } // Insert into result tree if (nextSibling != null) { parent.insertBefore(text, nextSibling); } else { parent.appendChild(text); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) // Create a document fragment to hold the text DocumentFragment fragment = doc.createDocumentFragment(); // Apply children to the fragment children.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment value = Expr.stringValue(fragment); } Text text = doc.createTextNode(value); if (disableOutputEscaping) text.setUserData("disable-output-escaping", "yes", stylesheet); } // Insert into result tree if (nextSibling != null) parent.insertBefore(text, nextSibling); } else parent.appendChild(text); } if (next != null) next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
14,491
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) { // Create a document fragment to hold the text DocumentFragment fragment = doc.createDocumentFragment(); // Apply children to the fragment children.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment value = Expr.stringValue(fragment); } Text text = doc.createTextNode(value); if (disableOutputEscaping) { text.setUserData("disable-output-escaping", "yes", stylesheet); } // Insert into result tree if (nextSibling != null) { parent.insertBefore(text, nextSibling); } else { parent.appendChild(text); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) { // Create a document fragment to hold the text DocumentFragment fragment = doc.createDocumentFragment(); // Apply children to the fragment children.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment value = Expr.stringValue(fragment); Text text = doc.createTextNode(value); if (disableOutputEscaping) { text.setUserData("disable-output-escaping", "yes", stylesheet); // Insert into result tree if (nextSibling != null) { parent.insertBefore(text, nextSibling); else { parent.appendChild(text); if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); }
14,492
final void apply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (stylesheet.terminated) { return; } if (Thread.currentThread().isInterrupted()) { // Try to head off any infinite loops at the pass return; } if (stylesheet.debug) { System.err.println("Applying " + toString()); System.err.println("\twith context=" + context + ", pos=" + pos + ", len=" + len); } doApply(stylesheet, mode, context, pos, len, parent, nextSibling); }
final void apply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException if (stylesheet.terminated) return; } if (Thread.currentThread().isInterrupted()) // Try to head off any infinite loops at the pass return; } if (stylesheet.debug) System.err.println("Applying " + toString()); System.err.println("\twith context=" + context + ", pos=" + pos + ", len=" + len); } doApply(stylesheet, mode, context, pos, len, parent, nextSibling); }
14,493
final void apply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (stylesheet.terminated) { return; } if (Thread.currentThread().isInterrupted()) { // Try to head off any infinite loops at the pass return; } if (stylesheet.debug) { System.err.println("Applying " + toString()); System.err.println("\twith context=" + context + ", pos=" + pos + ", len=" + len); } doApply(stylesheet, mode, context, pos, len, parent, nextSibling); }
final void apply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (stylesheet.terminated) { return; if (Thread.currentThread().isInterrupted()) { // Try to head off any infinite loops at the pass return; if (stylesheet.debug) { System.err.println("Applying " + toString()); System.err.println("\twith context=" + context + ", pos=" + pos + ", len=" + len); doApply(stylesheet, mode, context, pos, len, parent, nextSibling); }
14,494
public static String stringValue(Node node) { return stringValue(node, false); }
public static String stringValue(Collection nodeSet) { return stringValue(node, false); }
14,495
public static String stringValue(Node node) { return stringValue(node, false); }
public static String stringValue(Node node) { StringBuffer buf = new StringBuffer(); for (Iterator i = nodeSet.iterator(); i.hasNext(); ) { buf.append(stringValue((Node) i.next())); } return buf.toString(); }
14,496
public RuntimeException(String s) { super(s); }
public RuntimeException(String s) { super(s); }
14,497
public NodeReader(InputStream is, PreferencesFactory factory) { this(new InputStreamReader(is), factory); }
public NodeReader(InputStream is, PreferencesFactory factory) { this(new InputStreamReader(is), factory); }
14,498
public void remove(Component comp) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } }
public void remove(int index) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } }
14,501
public void remove(Component comp) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } }
public void remove(Component comp) { synchronized (getTreeLock ()) { Component r = component[index]; ComponentListener[] list = r.getComponentListeners(); for (int j = 0; j < list.length; j++) r.removeComponentListener(list[j]); r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); r.parent = null; if (isShowing ()) { if (component[i] == comp) { remove(i); break; } } } }
14,502
public void remove(Component comp) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } }
public void remove(Component comp) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } }
14,503
public Point(int x, int y) { this.x = x; this.y = y; }
public Point() { this.x = x; this.y = y; }
14,505
public Point(int x, int y) { this.x = x; this.y = y; }
public Point(int x, int y) { this.x = x; this.y = y; }
14,506
private Security() { }
private Security() { }
14,507
public static int addProvider(Provider provider) { return insertProviderAt(provider, providers.size() + 1); }
public static int addProvider(Provider provider) { return insertProviderAt(provider, providers.size() + 1); }
14,508
public static String getAlgorithmProperty(String algName, String propName) { /* TODO: Figure out what this actually does */ return null; }
public static String getAlgorithmProperty(String algName, String propName) { /* TODO: Figure out what this actually does */ return null; }
14,509
public static String getProperty(String key) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("getProperty." + key); return secprops.getProperty(key); }
public static String getProperty(String key) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("getProperty." + key); return secprops.getProperty(key); }
14,510
public static String getProperty(String key) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("getProperty." + key); return secprops.getProperty(key); }
public static String getProperty(String key) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("getProperty." + key); return secprops.getProperty(key); }
14,511
public static Provider getProvider(String name) { Provider p; int max = providers.size(); for (int i = 0; i < max; i++) { p = (Provider) providers.elementAt(i); if (p.getName() == name) return p; } return null; }
public static Provider getProvider(String name) { Provider p; int max = providers.size(); for (int i = 0; i < max; i++) { p = (Provider) providers.elementAt(i); if (p.getName() == name) return p; } return null; }
14,512
public static Provider getProvider(String name) { Provider p; int max = providers.size(); for (int i = 0; i < max; i++) { p = (Provider) providers.elementAt(i); if (p.getName() == name) return p; } return null; }
public static Provider getProvider(String name) { Provider p; int max = providers.size(); for (int i = 0; i < max; i++) { p = (Provider) providers.elementAt(i); if (p.getName() == name) return p; } return null; }
14,513
public static Provider getProvider(String name) { Provider p; int max = providers.size(); for (int i = 0; i < max; i++) { p = (Provider) providers.elementAt(i); if (p.getName() == name) return p; } return null; }
public static Provider getProvider(String name) { Provider p; int max = providers.size(); for (int i = 0; i < max; i++) { p = (Provider) providers.elementAt(i); if (p.getName().equals(name)) return p; } return null; }
14,514
public static Provider[] getProviders() { Provider array[] = new Provider[ providers.size()]; providers.copyInto(array); return array; }
public static Provider[] getProviders() { Provider array[] = new Provider[ providers.size()]; providers.copyInto(array); return array; }
14,515
public static int insertProviderAt(Provider provider, int position) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("insertProvider." + provider.getName()); position--; int max = providers.size(); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName() == provider .getName()) return -1; } if (position < 0) position = 0; if (position > max) position = max; providers.insertElementAt(provider, position); return position + 1; }
public static int insertProviderAt(Provider provider, int position) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("insertProvider." + provider.getName()); position--; int max = providers.size(); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName() == provider .getName()) return -1; } if (position < 0) position = 0; if (position > max) position = max; providers.insertElementAt(provider, position); return position + 1; }
14,516
public static int insertProviderAt(Provider provider, int position) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("insertProvider." + provider.getName()); position--; int max = providers.size(); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName() == provider .getName()) return -1; } if (position < 0) position = 0; if (position > max) position = max; providers.insertElementAt(provider, position); return position + 1; }
public static int insertProviderAt(Provider provider, int position) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("insertProvider." + provider.getName()); position--; int max = providers.size(); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName() == provider .getName()) return -1; } if (position < 0) position = 0; if (position > max) position = max; providers.insertElementAt(provider, position); return position + 1; }
14,517
public static int insertProviderAt(Provider provider, int position) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("insertProvider." + provider.getName()); position--; int max = providers.size(); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName() == provider .getName()) return -1; } if (position < 0) position = 0; if (position > max) position = max; providers.insertElementAt(provider, position); return position + 1; }
public static int insertProviderAt(Provider provider, int position) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("insertProvider." + provider.getName()); position--; int max = providers.size(); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName() == provider .getName()) return -1; } if (position < 0) position = 0; if (position > max) position = max; providers.insertElementAt(provider, position); return position + 1; }
14,518
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) System.err.println("Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) System.err.println("Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
14,519
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) System.err.println("Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) System.err.println("Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
14,520
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) System.err.println("Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) System.err.println("Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
14,521
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) System.err.println("Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) System.err.println("Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
14,522
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) System.err.println("Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) System.err.println("Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
14,523
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) System.err.println("Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) System.err.println("Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
14,524
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) System.err.println("Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) System.err.println("Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
14,525
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) System.err.println("Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) { System.err.println ("WARNING: Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
14,526
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) System.err.println("Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int i = 1; String name; while ((name = secprops.getProperty("security.provider." + i)) != null) { Exception exception = null; try { providers.addElement(Class.forName(name).newInstance()); } catch (ClassNotFoundException x) { exception = x; } catch (InstantiationException x) { exception = x; } catch (IllegalAccessException x) { exception = x; } if (exception != null) System.err.println("Error loading security provider " + name + ": " + exception); i++; } } catch (FileNotFoundException ignored) { // Actually we probibly shouldn't ignore these, once the security // properties file is actually installed somewhere. } catch (IOException ignored) { } }
14,527
public static void removeProvider(String name) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("removeProvider." + name); Provider p = null; int max = providers.size(); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName() == name) { providers.remove(i); break; } } }
public static void removeProvider(String name) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("removeProvider." + name); Provider p = null; int max = providers.size(); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName() == name) { providers.remove(i); break; } } }
14,529
public static void removeProvider(String name) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("removeProvider." + name); Provider p = null; int max = providers.size(); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName() == name) { providers.remove(i); break; } } }
public static void removeProvider(String name) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("removeProvider." + name); Provider p = null; int max = providers.size(); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName() == name) { providers.remove(i); break; } } }
14,530
public static void removeProvider(String name) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("removeProvider." + name); Provider p = null; int max = providers.size(); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName() == name) { providers.remove(i); break; } } }
public static void removeProvider(String name) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("removeProvider." + name); Provider p = null; int max = providers.size(); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName() == name) { providers.remove(i); break; } } }
14,531
public static void setProperty(String key, String datnum) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("setProperty." + key); secprops.put(key, datnum); }
public static void setProperty(String key, String datnum) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("setProperty." + key); secprops.put(key, datnum); }
14,532
public static void setProperty(String key, String datnum) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("setProperty." + key); secprops.put(key, datnum); }
public static void setProperty(String key, String datnum) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("setProperty." + key); secprops.put(key, datnum); }
14,533
public String getProperty(String key) { return getProperty(key, null); }
public String getProperty(String key) { Properties prop = this; do { String value = (String) prop.get(key); if (value != null) return value; prop = prop.defaults; } while (prop != null); return null; }
14,534
public InvalidParameterException(String msg) { super(msg); }
public InvalidParameterException() { super(msg); }
14,535
public InvalidParameterException(String msg) { super(msg); }
public InvalidParameterException(String msg) { }
14,536
public <T> T[] toArray(T[] a) { int size = size(); if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; Iterator<E> itr = iterator(); for (int pos = 0; pos < size; pos++) { try { a[pos] = (T) (itr.next()); } catch (ClassCastException exception) { throw new ArrayStoreException("The element is of the wrong type "+ "for storing in this array."); } } return a; }
public Object[] toArray() { int size = size(); if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; Iterator<E> itr = iterator(); for (int pos = 0; pos < size; pos++) { try { a[pos] = (T) (itr.next()); } catch (ClassCastException exception) { throw new ArrayStoreException("The element is of the wrong type "+ "for storing in this array."); } } return a; }
14,537
public <T> T[] toArray(T[] a) { int size = size(); if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; Iterator<E> itr = iterator(); for (int pos = 0; pos < size; pos++) { try { a[pos] = (T) (itr.next()); } catch (ClassCastException exception) { throw new ArrayStoreException("The element is of the wrong type "+ "for storing in this array."); } } return a; }
public <T> T[] toArray(T[] a) { int size = size(); if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; Iterator<E> itr = iterator(); for (int pos = 0; pos < size; pos++) { try { a[pos] = (T) (itr.next()); } catch (ClassCastException exception) { throw new ArrayStoreException("The element is of the wrong type "+ "for storing in this array."); } } return a; }
14,538
public <T> T[] toArray(T[] a) { int size = size(); if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; Iterator<E> itr = iterator(); for (int pos = 0; pos < size; pos++) { try { a[pos] = (T) (itr.next()); } catch (ClassCastException exception) { throw new ArrayStoreException("The element is of the wrong type "+ "for storing in this array."); } } return a; }
public <T> T[] toArray(T[] a) { int size = size(); if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; Iterator<E> itr = iterator(); for (int pos = 0; pos < size; pos++) { try { a[pos] = (T) (itr.next()); } catch (ClassCastException exception) { throw new ArrayStoreException("The element is of the wrong type "+ "for storing in this array."); } } return a; }
14,539
public final InputStream openStream() throws IOException { return openConnection().getInputStream(); }
public InputStream openStream() throws IOException { return openConnection().getInputStream(); }
14,540
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; int pos = 0; // Leading whitespaces must be deleted first. while (pos < line.length() && Character.isWhitespace(c = line.charAt(pos))) pos++; // If empty line or begins with a comment character, skip this line. if ((line.length() - pos) == 0 || line.charAt(pos) == '#' || line.charAt(pos) == '!') continue; // The characters up to the next Whitespace, ':', or '=' // describe the key. But look for escape sequences. StringBuffer key = new StringBuffer(); while (pos < line.length() && ! Character.isWhitespace(c = line.charAt(pos++)) && c != '=' && c != ':') { if (c == '\\') { if (pos == line.length()) { // The line continues on the next line. line = reader.readLine(); pos = 0; while (pos < line.length() && Character.isWhitespace(c = line.charAt(pos))) pos++; } else { c = line.charAt(pos++); switch (c) { case 'n': key.append('\n'); break; case 't': key.append('\t'); break; case 'r': key.append('\r'); break; case 'u': if (pos + 4 <= line.length()) { char uni = (char) Integer.parseInt (line.substring(pos, pos + 4), 16); key.append(uni); pos += 4; } // else throw exception? break; default: key.append(c); break; } } } else key.append(c); } boolean isDelim = (c == ':' || c == '='); while (pos < line.length() && Character.isWhitespace(c = line.charAt(pos))) pos++; if (! isDelim && (c == ':' || c == '=')) { pos++; while (pos < line.length() && Character.isWhitespace(c = line.charAt(pos))) pos++; } StringBuffer element = new StringBuffer(line.length() - pos); while (pos < line.length()) { c = line.charAt(pos++); if (c == '\\') { if (pos == line.length()) { // The line continues on the next line. line = reader.readLine(); // We might have seen a backslash at the end of // the file. The JDK ignores the backslash in // this case, so we follow for compatibility. if (line == null) break; pos = 0; while (pos < line.length() && Character.isWhitespace(c = line.charAt(pos))) pos++; element.ensureCapacity(line.length() - pos + element.length()); } else { c = line.charAt(pos++); switch (c) { case 'n': element.append('\n'); break; case 't': element.append('\t'); break; case 'r': element.append('\r'); break; case 'u': if (pos + 4 <= line.length()) { char uni = (char) Integer.parseInt (line.substring(pos, pos + 4), 16); element.append(uni); pos += 4; } // else throw exception? break; default: element.append(c); break; } } } else element.append(c); } put(key.toString(), element.toString()); } }
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; int pos = 0; // Leading whitespaces must be deleted first. while (pos < line.length() && Character.isWhitespace(c = line.charAt(pos))) pos++; // If empty line or begins with a comment character, skip this line. if ((line.length() - pos) == 0 || line.charAt(pos) == '#' || line.charAt(pos) == '!') continue; // The characters up to the next Whitespace, ':', or '=' // describe the key. But look for escape sequences. StringBuffer key = new StringBuffer(); while (pos < line.length() && ! Character.isWhitespace(c = line.charAt(pos++)) && c != '=' && c != ':') { if (c == '\\') { if (pos == line.length()) { // The line continues on the next line. line = reader.readLine(); pos = 0; while (pos < line.length() && Character.isWhitespace(c = line.charAt(pos))) pos++; } else { c = line.charAt(pos++); switch (c) { case 'n': key.append('\n'); break; case 't': key.append('\t'); break; case 'r': key.append('\r'); break; case 'u': if (pos + 4 <= line.length()) { char uni = (char) Integer.parseInt (line.substring(pos, pos + 4), 16); key.append(uni); pos += 4; } // else throw exception? break; default: key.append(c); break; } } } else key.append(c); } boolean isDelim = (c == ':' || c == '='); while (pos < line.length() && Character.isWhitespace(c = line.charAt(pos))) pos++; if (! isDelim && (c == ':' || c == '=')) { pos++; while (pos < line.length() && Character.isWhitespace(c = line.charAt(pos))) pos++; } StringBuffer element = new StringBuffer(line.length() - pos); while (pos < line.length()) { c = line.charAt(pos++); if (c == '\\') { if (pos == line.length()) { // The line continues on the next line. line = reader.readLine(); // We might have seen a backslash at the end of // the file. The JDK ignores the backslash in // this case, so we follow for compatibility. if (line == null) break; pos = 0; while (pos < line.length() && Character.isWhitespace(c = line.charAt(pos))) pos++; element.ensureCapacity(line.length() - pos + element.length()); } else { c = line.charAt(pos++); switch (c) { case 'n': element.append('\n'); break; case 't': element.append('\t'); break; case 'r': element.append('\r'); break; case 'u': if (pos + 4 <= line.length()) { char uni = (char) Integer.parseInt (line.substring(pos, pos + 4), 16); element.append(uni); pos += 4; } // else throw exception? break; default: element.append(c); break; } } } else element.append(c); } put(key.toString(), element.toString()); } }
14,541
public synchronized T remove(int index) { checkBoundExclusive(index); T temp = elementData[index]; modCount++; elementCount--; if (index < elementCount) System.arraycopy(elementData, index + 1, elementData, index, elementCount - index); elementData[elementCount] = null; return temp; }
public boolean remove(Object o) { checkBoundExclusive(index); T temp = elementData[index]; modCount++; elementCount--; if (index < elementCount) System.arraycopy(elementData, index + 1, elementData, index, elementCount - index); elementData[elementCount] = null; return temp; }
14,543
public synchronized T remove(int index) { checkBoundExclusive(index); T temp = elementData[index]; modCount++; elementCount--; if (index < elementCount) System.arraycopy(elementData, index + 1, elementData, index, elementCount - index); elementData[elementCount] = null; return temp; }
public synchronized T remove(int index) { checkBoundExclusive(index); T temp = elementData[index]; modCount++; elementCount--; if (index < elementCount) System.arraycopy(elementData, index + 1, elementData, index, elementCount - index); elementData[elementCount] = null; return temp; }
14,544
public static Socket get_socket(Object key) { if (true) return null; synchronized (sockets) { Socket s = (Socket) sockets.get(key); if (s == null) return null; // Ensure that the socket is fully reusable. else if (not_reusable(s)) { sockets.remove(key); return null; } else { try { // Set one minute time out that will be changed later. s.setSoTimeout(60*1000); } catch (SocketException e) { s = null; } sockets.remove(key); return s; } }}
public static Socket get_socket(Object key) { if (true) return null; synchronized (sockets) { Socket s = (Socket) sockets.get(key); if (s == null) return null; // Ensure that the socket is fully reusable. else if (not_reusable(s)) { sockets.remove(key); return null; } else { try { // Set one minute time out that will be changed later. s.setSoTimeout(60 * 1000); } catch (SocketException e) { s = null; } sockets.remove(key); return s; } }}
14,545
public static Socket get_socket(Object key) { if (true) return null; synchronized (sockets) { Socket s = (Socket) sockets.get(key); if (s == null) return null; // Ensure that the socket is fully reusable. else if (not_reusable(s)) { sockets.remove(key); return null; } else { try { // Set one minute time out that will be changed later. s.setSoTimeout(60*1000); } catch (SocketException e) { s = null; } sockets.remove(key); return s; } }}
public static Socket get_socket(Object key) { if (true) return null; synchronized (sockets) { Socket s = (Socket) sockets.get(key); if (s == null) return null; // Ensure that the socket is fully reusable. else if (not_reusable(s)) { sockets.remove(key); return null; } else { try { // Set one minute time out that will be changed later. s.setSoTimeout(60*1000); } catch (SocketException e) { s = null; } sockets.remove(key); return s; } }}
14,546
public static void classCastFailed(Object object) { if (object == null) { throw new ClassCastException("Object is null"); } else { throw new ClassCastException(object.getClass().getName()); } }
public static void classCastFailed(Object object) { if (object == null) { throw new ClassCastException("Object is null"); } else { throw new ClassCastException(object.getClass().getName()); } }
14,547
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
public final static VmType getPrimitiveArrayClass(char type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
14,548
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 'Z': return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
14,549
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 'B': return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
14,550
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 'C': return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
14,551
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 'S': return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
14,552
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 'I': return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
14,553
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 'F': return FloatArrayClass; case 11: return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
14,554
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 'J': return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
14,555
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongArrayClass; case 'D': return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
14,556
public final VmArrayClass getArrayClass() { return getArrayClass(null); }
public final VmArrayClass getArrayClass() { return getArrayClass(null); }
14,557
public ClassCastException(String s) { super(s); }
public ClassCastException() { super(s); }
14,558
public ClassCastException(String s) { super(s); }
public ClassCastException(String s) { }
14,559
public NoClassDefFoundError(String s) { super(s); }
public NoClassDefFoundError(String s) { super(s); }
14,560
public final VmField getField(VmConstFieldRef fieldRef) { return getField(fieldRef.getName(), fieldRef.getSignature()); }
public final VmField getField(VmConstFieldRef fieldRef) { return getField(fieldRef.getName(), fieldRef.getSignature()); }
14,561
public ArrayIndexOutOfBoundsException(String s) { super(s); }
public ArrayIndexOutOfBoundsException() { super(s); }
14,562
public ArrayIndexOutOfBoundsException(String s) { super(s); }
public ArrayIndexOutOfBoundsException(String s) { super(s); }
14,563
public ArithmeticException(String s) { super(s); }
public ArithmeticException(String s) { super(s); }
14,564
public AbstractMethodError(String s) { super(s); }
public AbstractMethodError(String s) { super(s); }
14,565
CopyOfNode(TemplateNode children, TemplateNode next, Expr select) { super(children, next); this.select = select; }
CopyOfNode(Expr select) { super(children, next); this.select = select; }
14,566
CopyOfNode(TemplateNode children, TemplateNode next, Expr select) { super(children, next); this.select = select; }
CopyOfNode(TemplateNode children, TemplateNode next, Expr select) { this.select = select; }
14,567
TemplateNode clone(Stylesheet stylesheet) { return new CopyOfNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), select.clone(stylesheet)); }
TemplateNode clone(Stylesheet stylesheet) { return new CopyOfNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), select.clone(stylesheet)); }
14,568
public abstract Object evaluate(Node context, int pos, int len);
public abstract Object evaluate(Node context, int pos, int len);
14,569
public static <T> void sort(List<T> l, Comparator<? super T> c) { T[] a = (T[]) l.toArray(); Arrays.sort(a, c); ListIterator<T> i = l.listIterator(); for (int pos = 0, alen = a.length; pos < alen; pos++) { i.next(); i.set(a[pos]); } }
public static <T extends Comparable<? super T>> void sort(List<T> l) { T[] a = (T[]) l.toArray(); Arrays.sort(a, c); ListIterator<T> i = l.listIterator(); for (int pos = 0, alen = a.length; pos < alen; pos++) { i.next(); i.set(a[pos]); } }
14,570
public static <T> void sort(List<T> l, Comparator<? super T> c) { T[] a = (T[]) l.toArray(); Arrays.sort(a, c); ListIterator<T> i = l.listIterator(); for (int pos = 0, alen = a.length; pos < alen; pos++) { i.next(); i.set(a[pos]); } }
public static <T> void sort(List<T> l, Comparator<? super T> c) { T[] a = (T[]) l.toArray(); Arrays.sort(a, c); ListIterator<T> i = l.listIterator(); for (int pos = 0, alen = a.length; pos < alen; pos++) { i.next(); i.set(a[pos]); } }
14,571
public static MessageDigest getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) {} } throw new NoSuchAlgorithmException(algorithm); }
public static MessageDigest getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) { } } throw new NoSuchAlgorithmException(algorithm); }
14,572
public String getName() { return vmMethod.getName(); }
public String getName() { return vmMethod.getName(); }
14,573
public Class[] getParameterTypes() { if (parameterTypes == null) { int cnt = vmMethod.getNoArguments(); ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { list.add(vmMethod.getArgumentType(i).asClass()); } parameterTypes = list; } return (Class[])parameterTypes.toArray(new Class[parameterTypes.size()]); }
public Class[] getParameterTypes() { if (parameterTypes == null) { int cnt = vmMethod.getNoArguments(); ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { list.add(vmMethod.getArgumentType(i).asClass()); } parameterTypes = list; } return (Class[])parameterTypes.toArray(new Class[parameterTypes.size()]); }
14,574
public static String getEncodingOfClass(Class clazz) { return getEncodingOfClass(clazz.getName(), true); }
public static String getEncodingOfClass(String type, boolean descriptor) { return getEncodingOfClass(clazz.getName(), true); }
14,575
public static String getEncodingOfClass(Class clazz) { return getEncodingOfClass(clazz.getName(), true); }
public static String getEncodingOfClass(Class clazz) { if (! descriptor || type.charAt(0) == '[') return type.replace('.', '/'); if (type.equals("boolean")) return "Z"; if (type.equals("byte")) return "B"; if (type.equals("short")) return "S"; if (type.equals("char")) return "C"; if (type.equals("int")) return "I"; if (type.equals("long")) return "J"; if (type.equals("float")) return "F"; if (type.equals("double")) return "D"; if (type.equals("void")) return "V"; return 'L' + type.replace('.', '/') + ';'; }
14,576
public Class getReturnType() { return vmMethod.getReturnType().asClass(); }
public Class getReturnType() { return vmMethod.getReturnType().asClass(); }
14,577