bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public int hashCode() { long val1 = 0, val2 = 0; // Its obvious here that I have no idea how to generate a good // hash key for (int i = 0; i < addr.length; i++) val1 = val1 + (addr[ i] << ((addr.length - i) / 8)); for (int i = 0; i < addr.length; i++) val2 =...
public int hashCode() { long val1 = 0, val2 = 0; // Its obvious here that I have no idea how to generate a good // hash key for (int i = 0; i < addr.length; i++) val1 = val1 + (addr[ i] << ((addr.length - i) / 8)); for (int i = 0; i < addr.length; i++) val2 =...
25,254
public boolean isAnyLocalAddress() { return (this.equals(ANY_IF)); }
public boolean isAnyLocalAddress() { return (this.equals(ANY_IF)); }
25,255
public boolean isMulticastAddress() { if (addr.length == 0) return (false); // Mask against high order bits of 1110 if ((addr[ 0] & 0xF0) == 224) return (true); return (false); }
public boolean isMulticastAddress() { if (addr.length == 0) return (false); // Mask against high order bits of 1110 if ((addr[ 0] & 0xF0) == 224) return (true); return (false); }
25,256
public boolean isMulticastAddress() { if (addr.length == 0) return (false); // Mask against high order bits of 1110 if ((addr[ 0] & 0xF0) == 224) return (true); return (false); }
public boolean isMulticastAddress() { if (addr.length == 0) return (false); // Mask against high order bits of 1110 if ((addr[ 0] & 0xF0) == 224) return (true); return (false); }
25,257
public String toString() { StringBuffer sb; if (hostName != null) sb = new StringBuffer(hostName).append('/'); else if (hostname_alias != null) sb = new StringBuffer(hostname_alias).append('/'); else sb = new StringBuffer(); sb.append(getHostAddres...
public String toString() { StringBuffer sb; if (hostName != null) sb = new StringBuffer(hostName).append('/'); else if (hostname_alias != null) sb = new StringBuffer(hostname_alias).append('/'); else sb = new StringBuffer(); sb.append(getHostAddres...
25,258
public Selector(int axis, List tests) { this.axis = axis; this.tests = new Test[tests.size()]; tests.toArray(this.tests); if (axis == NAMESPACE && this.tests.length > 0 && this.tests[0] instanceof NameTest) { NameTest nt = (NameTest) this.tests[0]; this.tests[0] = new Nam...
public Selector(int axis, List tests) { this.axis = axis; int len = tests.size(); this.tests = new Test[(len == 0) ? 1 : len]; if (len > 0) tests.toArray(this.tests); if (axis == NAMESPACE && this.tests.length > 0 && this.tests[0] instanceof NameTest) { NameTest nt = (NameTest) ...
25,259
public Selector(int axis, List tests) { this.axis = axis; this.tests = new Test[tests.size()]; tests.toArray(this.tests); if (axis == NAMESPACE && this.tests.length > 0 && this.tests[0] instanceof NameTest) { NameTest nt = (NameTest) this.tests[0]; this.tests[0] = new Nam...
public Selector(int axis, List tests) { this.axis = axis; this.tests = new Test[tests.size()]; tests.toArray(this.tests); if (axis == NAMESPACE && this.tests.length > 0 && this.tests[0] instanceof NameTest) { NameTest nt = (NameTest) this.tests[0]; this.tests[0] = new Nam...
25,260
void addChildNodes(Node context, Collection acc, boolean recurse) { Node child = context.getFirstChild(); while (child != null) { acc.add(child); if (recurse) { addChildNodes(child, acc, recurse); } child = child.getNextSibling(); } }
void addChildNodes(Node context, Collection acc, boolean recurse) Node child = context.getFirstChild(); while (child != null) acc.add(child); if (recurse) addChildNodes(child, acc, recurse); } child = child.getNextSibling(); } }
25,261
void addChildNodes(Node context, Collection acc, boolean recurse) { Node child = context.getFirstChild(); while (child != null) { acc.add(child); if (recurse) { addChildNodes(child, acc, recurse); } child = child.getNextSibling(); } }
void addChildNodes(Node context, Collection acc, boolean recurse) { Node child = context.getFirstChild(); while (child != null) { acc.add(child); if (recurse) { addChildNodes(child, acc, recurse); child = child.getNextSibling(); }
25,262
void addFollowingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getNextSibling(); } if (recurse) { ...
void addFollowingNodes(Node context, Collection acc, boolean recurse) { if (context != null && recurse) addChildNodes(context, acc, true); Node cur = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? null : context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { ...
25,263
void addFollowingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getNextSibling(); } if (recurse) { ...
void addFollowingNodes(Node context, Collection acc, boolean recurse) Node cur = context.getNextSibling(); while (cur != null) acc.add(cur); if (recurse) addChildNodes(cur, acc, true); } cur = cur.getNextSibling(); } if (recurse) contex...
25,264
void addFollowingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getNextSibling(); } if (recurse) { ...
void addFollowingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); cur = cur.getNextSibling(); if (recurse) { co...
25,265
void addFollowingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getNextSibling(); } if (recurse) { ...
void addFollowingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getNextSibling(); } if (recurse) { ...
25,266
void addNamespaceAttributes(Node context, Collection acc) { NamedNodeMap attrs = context.getAttributes(); if (attrs != null) { int attrLen = attrs.getLength(); for (int i = 0; i < attrLen; i++) { Node attr = attrs.item(i); if (isNamespaceAttribute(attr)) ...
void addNamespaceAttributes(Node context, Collection acc) NamedNodeMap attrs = context.getAttributes(); if (attrs != null) int attrLen = attrs.getLength(); for (int i = 0; i < attrLen; i++) Node attr = attrs.item(i); if (isNamespaceAttribute(attr)) ...
25,267
void addNamespaceAttributes(Node context, Collection acc) { NamedNodeMap attrs = context.getAttributes(); if (attrs != null) { int attrLen = attrs.getLength(); for (int i = 0; i < attrLen; i++) { Node attr = attrs.item(i); if (isNamespaceAttribute(attr)) ...
void addNamespaceAttributes(Node context, Collection acc) { NamedNodeMap attrs = context.getAttributes(); if (attrs != null) { int attrLen = attrs.getLength(); for (int i = 0; i < attrLen; i++) { Node attr = attrs.item(i); if (isNamespaceAttribute(attr)) ...
25,268
void addParentNode(Node context, Collection acc, boolean recurse) { Node parent = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? ((Attr) context).getOwnerElement() : context.getParentNode(); if (parent != null) { acc.add(parent); if (recurse) { addParentNode(parent...
void addParentNode(Node context, Collection acc, boolean recurse) Node parent = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? ((Attr) context).getOwnerElement() : context.getParentNode(); if (parent != null) acc.add(parent); if (recurse) addParentNode(parent, acc,...
25,269
void addParentNode(Node context, Collection acc, boolean recurse) { Node parent = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? ((Attr) context).getOwnerElement() : context.getParentNode(); if (parent != null) { acc.add(parent); if (recurse) { addParentNode(parent...
void addParentNode(Node context, Collection acc, boolean recurse) { Node parent = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? ((Attr) context).getOwnerElement() : context.getParentNode(); if (parent != null) { acc.add(parent); if (recurse) { addParentNode(parent...
25,270
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getPreviousSibling(); } if (recurse) ...
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? null : context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur...
25,271
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getPreviousSibling(); } if (recurse) ...
void addPrecedingNodes(Node context, Collection acc, boolean recurse) Node cur = context.getPreviousSibling(); while (cur != null) acc.add(cur); if (recurse) addChildNodes(cur, acc, true); } cur = cur.getPreviousSibling(); } if (recurse) ...
25,272
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getPreviousSibling(); } if (recurse) ...
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); cur = cur.getPreviousSibling(); if (recurse) { ...
25,273
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getPreviousSibling(); } if (recurse) ...
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getPreviousSibling(); } if (recurse) ...
25,274
public Expr clone(Object context) { int len = tests.length; List tests2 = new ArrayList(len); for (int i = 0; i < len; i++) { tests2.add(tests[i].clone(context)); } return new Selector(axis, tests2); }
public Expr clone(Object context) int len = tests.length; List tests2 = new ArrayList(len); for (int i = 0; i < len; i++) tests2.add(tests[i].clone(context)); } return new Selector(axis, tests2); }
25,275
public Expr clone(Object context) { int len = tests.length; List tests2 = new ArrayList(len); for (int i = 0; i < len; i++) { tests2.add(tests[i].clone(context)); } return new Selector(axis, tests2); }
public Expr clone(Object context) { int len = tests.length; List tests2 = new ArrayList(len); for (int i = 0; i < len; i++) { tests2.add(tests[i].clone(context)); return new Selector(axis, tests2); }
25,276
public Object evaluate(Node context, int pos, int len) { Set acc = new LinkedHashSet(); addCandidates(context, acc); List candidates = new ArrayList(acc); //Collections.sort(candidates, documentOrderComparator); List ret = filterCandidates(candidates, false); return ret; }
publicObjectevaluate(Nodecontext,intpos,intlen){Setacc=newLinkedHashSet();addCandidates(context,acc);Listcandidates=newArrayList(acc);//Collections.sort(candidates,documentOrderComparator);Listret=filterCandidates(candidates,false);returnret;}
25,277
List filterCandidates(List candidates, boolean cascade) { int len = candidates.size(); int tlen = tests.length; if (tlen > 0 && len > 0) { // Present the result of each successful generation to the next test for (int j = 0; j < tlen && len > 0; j++) { Test test = tests...
List filterCandidates(List candidates, boolean cascade) int len = candidates.size(); int tlen = tests.length; if (tlen > 0 && len > 0) // Present the result of each successful generation to the next test for (int j = 0; j < tlen && len > 0; j++) Test test = tests[j]; ...
25,278
List filterCandidates(List candidates, boolean cascade) { int len = candidates.size(); int tlen = tests.length; if (tlen > 0 && len > 0) { // Present the result of each successful generation to the next test for (int j = 0; j < tlen && len > 0; j++) { Test test = tests...
List filterCandidates(List candidates, boolean cascade) { int len = candidates.size(); int tlen = tests.length; if (tlen > 0 && len > 0) { // Present the result of each successful generation to the next test for (int j = 0; j < tlen && len > 0; j++) { Test test = tests...
25,279
private int getContextPosition(Node ctx) { int pos = 1; for (ctx = ctx.getPreviousSibling(); ctx != null; ctx = ctx.getPreviousSibling()) { pos++; } return pos; }
private int getContextPosition(Node ctx) int pos = 1; for (ctx = ctx.getPreviousSibling(); ctx != null; ctx = ctx.getPreviousSibling()) pos++; } return pos; }
25,280
private int getContextPosition(Node ctx) { int pos = 1; for (ctx = ctx.getPreviousSibling(); ctx != null; ctx = ctx.getPreviousSibling()) { pos++; } return pos; }
private int getContextPosition(Node ctx) { int pos = 1; for (ctx = ctx.getPreviousSibling(); ctx != null; ctx = ctx.getPreviousSibling()) { pos++; return pos; }
25,281
private int getContextSize(Node ctx) { if (ctx.getNodeType() == Node.ATTRIBUTE_NODE) { Node parent = ((Attr) ctx).getOwnerElement(); return parent.getAttributes().getLength(); } Node parent = ctx.getParentNode(); if (parent != null) { return parent.getChildNodes().getLeng...
private int getContextSize(Node ctx) { if (ctx.getNodeType() == Node.ATTRIBUTE_NODE) { Node parent = ((Attr) ctx).getOwnerElement(); return parent.getAttributes().getLength(); } Node parent = ctx.getParentNode(); if (parent != null) { return parent.getChildNodes().getLeng...
25,282
private int getContextSize(Node ctx) { if (ctx.getNodeType() == Node.ATTRIBUTE_NODE) { Node parent = ((Attr) ctx).getOwnerElement(); return parent.getAttributes().getLength(); } Node parent = ctx.getParentNode(); if (parent != null) { return parent.getChildNodes().getLeng...
private int getContextSize(Node ctx) { if (ctx.getNodeType() == Node.ATTRIBUTE_NODE) { Node parent = ((Attr) ctx).getOwnerElement(); return parent.getAttributes().getLength(); } Node parent = ctx.getParentNode(); if (parent != null) { return parent.getChildNodes().getLeng...
25,283
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
public boolean matches(Node context) short nodeType = context.getNodeType(); switch (axis) case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
25,284
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
25,285
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
public boolean matches(Node context) short nodeType = context.getNodeType(); switch (axis) case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
25,286
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
25,287
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
public boolean matches(Node context) short nodeType = context.getNodeType(); switch (axis) case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
25,288
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
25,289
public boolean references(QName var) { for (int i = 0; i < tests.length; i++) { if (tests[i].references(var)) { return true; } } return false; }
public boolean references(QName var) for (int i = 0; i < tests.length; i++) if (tests[i].references(var)) return true; } } return false; }
25,290
public boolean references(QName var) { for (int i = 0; i < tests.length; i++) { if (tests[i].references(var)) { return true; } } return false; }
public boolean references(QName var) { for (int i = 0; i < tests.length; i++) { if (tests[i].references(var)) { return true; return false; }
25,291
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
public String toString() StringBuffer buf = new StringBuffer(); switch (axis) case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] inst...
25,292
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
25,293
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
public String toString() StringBuffer buf = new StringBuffer(); switch (axis) case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] inst...
25,294
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
25,295
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
public String toString() StringBuffer buf = new StringBuffer(); switch (axis) case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] inst...
25,296
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
25,297
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
public String toString() StringBuffer buf = new StringBuffer(); switch (axis) case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] inst...
25,298
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
25,299
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
25,300
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
public String toString() StringBuffer buf = new StringBuffer(); switch (axis) case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] inst...
25,301
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
25,302
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); if (currentValue != null) { Component comp = comboBox.getRenderer() ...
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); if (currentValue != null) { Component comp = comboBox.getRenderer() ...
25,303
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); if (currentValue != null) { Component comp = comboBox.getRenderer() ...
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); if (currentValue != null) { Component comp = comboBox.getRenderer() ...
25,304
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); if (currentValue != null) { Component comp = comboBox.getRenderer() ...
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); if (currentValue != null) { Component comp = comboBox.getRenderer() ...
25,305
public Dimension(int w, int h) { width = w; height = h; }
public Dimension() { width = w; height = h; }
25,306
public Dimension(int w, int h) { width = w; height = h; }
public Dimension(int w, int h) { width = w; height = h; }
25,307
public BasicArrowButton(int direction) { super(); setDirection(direction); setBorder(tmpBorder); }
public BasicArrowButton(int direction) { super(); setDirection(direction); }
25,308
public BasicComboBoxEditor() { editor = new JTextField(); editor.setBorder(null); editor.setColumns(9); listener = new ComboBoxEditorListener(); }
public BasicComboBoxEditor() { editor = new JTextField(); editor.setBorder(null); editor.setColumns(9); }
25,309
public BasicComboBoxRenderer() { setHorizontalAlignment(SwingConstants.LEFT); setBorder(noFocusBorder); }
public BasicComboBoxRenderer() { setOpaque(true); setBorder(noFocusBorder); }
25,310
public Rectangle(int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height; }
public Rectangle(int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height; }
25,311
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; } } } }
25,312
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; } } } }
25,313
public CertPathValidatorResult engineValidate(CertPath path, CertPathParameters params) throws CertPathValidatorException, InvalidAlgorithmParameterException { if (!(params instanceof PKIXParameters)) throw new InvalidAlgorithmParameterException("not a PKIXPa...
public CertPathValidatorResult engineValidate(CertPath path, CertPathParameters params) throws CertPathValidatorException, InvalidAlgorithmParameterException { if (!(params instanceof PKIXParameters)) throw new InvalidAlgorithmParameterException("not a PKIXPa...
25,314
public Extension(byte[] encoded) throws IOException { this.encoded = (byte[]) encoded.clone(); DERReader der = new DERReader(encoded); // Extension ::= SEQUENCE { DERValue val = der.read(); if (DEBUG) debug("read val tag == " + val.getTag() + " len == " + val.getLength()); if (!val.isConstructed()...
public Extension(byte[] encoded) throws IOException { this.encoded = (byte[]) encoded.clone(); DERReader der = new DERReader(encoded); // Extension ::= SEQUENCE { DERValue val = der.read(); if (Configuration.DEBUG) log.fine("read val tag == " + val.getTag() + " len == " + val.getLength()); if (!va...
25,315
public Extension(byte[] encoded) throws IOException { this.encoded = (byte[]) encoded.clone(); DERReader der = new DERReader(encoded); // Extension ::= SEQUENCE { DERValue val = der.read(); if (DEBUG) debug("read val tag == " + val.getTag() + " len == " + val.getLength()); if (!val.isConstructed()...
public Extension(byte[] encoded) throws IOException { this.encoded = (byte[]) encoded.clone(); DERReader der = new DERReader(encoded); // Extension ::= SEQUENCE { DERValue val = der.read(); if (DEBUG) debug("read val tag == " + val.getTag() + " len == " + val.getLength()); if (!val.isConstructed()...
25,316
public Extension(byte[] encoded) throws IOException { this.encoded = (byte[]) encoded.clone(); DERReader der = new DERReader(encoded); // Extension ::= SEQUENCE { DERValue val = der.read(); if (DEBUG) debug("read val tag == " + val.getTag() + " len == " + val.getLength()); if (!val.isConstructed()...
public Extension(byte[] encoded) throws IOException { this.encoded = (byte[]) encoded.clone(); DERReader der = new DERReader(encoded); // Extension ::= SEQUENCE { DERValue val = der.read(); if (DEBUG) debug("read val tag == " + val.getTag() + " len == " + val.getLength()); if (!val.isConstructed()...
25,317
public Extension(byte[] encoded) throws IOException { this.encoded = (byte[]) encoded.clone(); DERReader der = new DERReader(encoded); // Extension ::= SEQUENCE { DERValue val = der.read(); if (DEBUG) debug("read val tag == " + val.getTag() + " len == " + val.getLength()); if (!val.isConstructed()...
public Extension(byte[] encoded) throws IOException { this.encoded = (byte[]) encoded.clone(); DERReader der = new DERReader(encoded); // Extension ::= SEQUENCE { DERValue val = der.read(); if (DEBUG) debug("read val tag == " + val.getTag() + " len == " + val.getLength()); if (!val.isConstructed()...
25,318
public CertPathValidatorException(String msg) { super(msg); index = -1; certPath = null; }
public CertPathValidatorException() { super(msg); index = -1; certPath = null; }
25,319
public CertPathValidatorException(String msg) { super(msg); index = -1; certPath = null; }
public CertPathValidatorException(String msg) { super(msg); index = -1; certPath = null; }
25,320
public int compareTo(Date when) { return (getTime() < when.getTime()) ? -1 : (getTime() == when.getTime()) ? 0 : 1; }
public int compareTo(Date when) { return (getTime() < when.getTime()) ? -1 : (getTime() == when.getTime()) ? 0 : 1; }
25,321
public void addSubjectName(Principal subjectName) throws IOException { if (subjectName instanceof X500DistinguishedName) subjectNames.add(subjectName); else if (subjectName instanceof X500Principal) subjectNames.add(new X500DistinguishedName(((X500Principal) subjectName).getEncoded())); else ...
public void addSubjectName(byte[] subjectName) throws IOException { if (subjectName instanceof X500DistinguishedName) subjectNames.add(subjectName); else if (subjectName instanceof X500Principal) subjectNames.add(new X500DistinguishedName(((X500Principal) subjectName).getEncoded())); else sub...
25,322
public void addSubjectName(Principal subjectName) throws IOException { if (subjectName instanceof X500DistinguishedName) subjectNames.add(subjectName); else if (subjectName instanceof X500Principal) subjectNames.add(new X500DistinguishedName(((X500Principal) subjectName).getEncoded())); else ...
public void addSubjectName(Principal subjectName) throws IOException { if (subjectName instanceof X500DistinguishedName) subjectNames.add(subjectName); else if (subjectName instanceof X500Principal) subjectNames.add(new X500DistinguishedName(((X500Principal) subjectName).getEncoded())); else ...
25,323
engineValidate(CertPath certPath, CertPathParameters params) throws CertPathValidatorException, java.security.InvalidAlgorithmParameterException;
engineValidate(CertPath certPath, CertPathParameters params) throws CertPathValidatorException, java.security.InvalidAlgorithmParameterException;
25,324
public InvalidAlgorithmParameterException(String msg) { super(msg); }
public InvalidAlgorithmParameterException() { super(msg); }
25,325
public InvalidAlgorithmParameterException(String msg) { super(msg); }
public InvalidAlgorithmParameterException(String msg) { super(); }
25,326
public Date() { this(System.currentTimeMillis()); }
public Date() { this(System.currentTimeMillis()); }
25,327
public abstract void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException;
public abstract void checkValidity() throws CertificateExpiredException, CertificateNotYetValidException;
25,328
public InvalidKeyException(String msg) { super(msg); }
public InvalidKeyException() { super(msg); }
25,329
public InvalidKeyException(String msg) { super(msg); }
public InvalidKeyException(String msg) { }
25,330
public static boolean equals(Object[] a1, Object[] a2) { // Quick test which saves comparing elements of the same array, and also // catches the case that both are null. if (a1 == a2) return true; if (null == a1 || null == a2) return false; // If they're the same length, test each elemen...
public static boolean equals(boolean[] a1, boolean[] a2) { // Quick test which saves comparing elements of the same array, and also // catches the case that both are null. if (a1 == a2) return true; if (null == a1 || null == a2) return false; // If they're the same length, test each elem...
25,331
public static boolean equals(Object[] a1, Object[] a2) { // Quick test which saves comparing elements of the same array, and also // catches the case that both are null. if (a1 == a2) return true; if (null == a1 || null == a2) return false; // If they're the same length, test each elemen...
public static boolean equals(Object[] a1, Object[] a2) { // Quick test which saves comparing elements of the same array, and also // catches the case that both are null. if (a1 == a2) return true; if (null == a1 || null == a2) return false; // If they're the same length, test each elemen...
25,332
public void addIssuerName(Principal issuerName) throws IOException { if (issuerName instanceof X500DistinguishedName) issuerNames.add(issuerName); else if (issuerName instanceof X500Principal) issuerNames.add(new X500DistinguishedName(((X500Principal) issuerName).getEncoded())); else issuerNa...
public void addIssuerName(byte[] issuerName) throws IOException { if (issuerName instanceof X500DistinguishedName) issuerNames.add(issuerName); else if (issuerName instanceof X500Principal) issuerNames.add(new X500DistinguishedName(((X500Principal) issuerName).getEncoded())); else issuerNames...
25,333
public void addIssuerName(Principal issuerName) throws IOException { if (issuerName instanceof X500DistinguishedName) issuerNames.add(issuerName); else if (issuerName instanceof X500Principal) issuerNames.add(new X500DistinguishedName(((X500Principal) issuerName).getEncoded())); else issuerNa...
public void addIssuerName(Principal issuerName) throws IOException { if (issuerName instanceof X500DistinguishedName) issuerNames.add(issuerName); else if (issuerName instanceof X500Principal) issuerNames.add(new X500DistinguishedName(((X500Principal) issuerName).getEncoded())); else issuerNa...
25,334
public final Class getCategory() { return JobImpressionsSupported.class; }
public Class getCategory() { return JobImpressionsSupported.class; }
25,335
public final String getName() { return "job-impressions-supported"; }
public String getName() { return "job-impressions-supported"; }
25,336
public boolean equals(Object obj) { if (obj instanceof ActivationDesc) { ActivationDesc that = (ActivationDesc) obj; return groupid.equals(that.groupid) && classname.equals(that.classname) && location.equals(that.location) && data.equals(that.data) ...
public boolean equals(Object obj) { if (obj instanceof ActivationDesc) { ActivationDesc that = (ActivationDesc) obj; return groupid.equals(that.groupid) && classname.equals(that.classname) && location.equals(that.location) && data.equals(that.data) ...
25,337
public int hashCode() { return groupid.hashCode() ^ classname.hashCode() ^ location.hashCode() ^ data.hashCode(); }
public int hashCode() { return groupid.hashCode() ^ classname.hashCode() ^ location.hashCode() ^ data.hashCode(); }
25,338
public static ActivationGroupID currentGroupID() { throw new Error("Not implemented");}
public static ActivationGroupID currentGroupID() { throw new Error("Not implemented");}
25,339
public boolean equals(Object obj) { if (obj instanceof ActivationGroupID) { ActivationGroupID that = (ActivationGroupID) obj; return system.equals(that.system); } else return false; }
public boolean equals(Object obj) { if (obj instanceof ActivationGroupID) { ActivationGroupID that = (ActivationGroupID) obj; return system.equals(that.system); } else return false; }
25,340
public boolean equals(Object obj) { if (! (obj instanceof MarshalledObject)) return false; // hashCode even differs, don't do the time-consuming comparisons if (obj.hashCode() != hash) return false; MarshalledObject aobj = (MarshalledObject)obj; if (objBytes == null || aobj.objBytes == ...
public boolean equals(Object obj) { if (! (obj instanceof MarshalledObject)) return false; // hashCode even differs, don't do the time-consuming comparisons if (obj.hashCode() != hash) return false; MarshalledObject aobj = (MarshalledObject) obj; if (objBytes == null || aobj.objBytes ==...
25,341
public int hashCode() { return system.hashCode(); }
public int hashCode() { return uid.hashCode(); }
25,342
public int hashCode() { return hash; }
public int hashCode() { return hash; }
25,343
long write(ByteBuffer[] srcs) throws IOException;
long write(ByteBuffer[] srcs) throws IOException;
25,344
public SocketException(String message) { super(message); }
public SocketException() { super(message); }
25,345
public SocketException(String message) { super(message); }
public SocketException(String message) { }
25,346
clone(){ try { return(super.clone()); } catch(Exception e) { return(null); }}
clone(){ try { return(super.clone()); } catch(Exception e) { return(null); }}
25,347
getParameter(String paramName, String mimeString){ int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null); String value = mimeString.substring(idx + paramName.length() + 2); idx = value.indexOf(" "); if (idx == -1) return(value); else return(value.substring(0, idx));}
getParameter(String paramName, String mimeString){ int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null); String value = mimeString.substring(idx + paramName.length() + 1); idx = value.indexOf(" "); if (idx == -1) return(value); else return(value.substring(0, idx));}
25,348
getReaderForText(Transferable transferable) throws UnsupportedFlavorException, IOException, UnsupportedEncodingException{ if (!transferable.isDataFlavorSupported(this)) throw new UnsupportedFlavorException(this...
getReaderForText(Transferable transferable) throws UnsupportedFlavorException, IOException, UnsupportedEncodingException{ if (!transferable.isDataFlavorSupported(this)) throw new UnsupportedFlavorException(this...
25,349
tryToLoadClass(String className, ClassLoader classLoader) throws ClassNotFoundException{ try { return(Class.forName(className)); } catch(Exception e) { } // Commented out for Java 1.1 /* try { return(className.getClass().getClassLoader().findClass(className)); } catch(Exceptio...
tryToLoadClass(String className, ClassLoader classLoader) throws ClassNotFoundException{ try { return(Class.forName(className)); } catch(Exception e) { ; } // Commented out for Java 1.1 /* try { return(className.getClass().getClassLoader().findClass(className)); } catch(Excepti...
25,350
public String toLowerCase() { return toLowerCase(Locale.getDefault()); }
public String toLowerCase(Locale loc) { return toLowerCase(Locale.getDefault()); }
25,351
public String toLowerCase() { return toLowerCase(Locale.getDefault()); }
public String toLowerCase() { boolean turkish = "tr".equals(loc.getLanguage()); int i = count; int x = offset - 1; while (--i >= 0) { char ch = value[++x]; if ((turkish && ch == '\u0049') || ch != Character.toLowerCase(ch)) break; } if (i < 0) return this; char[] newStr = (char[]) value.clone(); do { char ch ...
25,352
public int indexOf(String str) { return indexOf(str, 0); }
public int indexOf(int ch) { return indexOf(str, 0); }
25,353