bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
JPanel updateTable() { DefaultTableModel mod = (DefaultTableModel) fileTable.getModel(); ListModel lm = fileList.getModel(); DateFormat dt = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT); File curr = null; int size = lm.getSize(); ...
JPanel updateTable() { DefaultTableModel mod = (DefaultTableModel) fileTable.getModel(); ListModel lm = fileList.getModel(); DateFormat dt = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT); File curr = null; int size = lm.getSize(); ...
22,250
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ProcessingInstructionNode(name); 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 ProcessingInstructionNode(name); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; }
22,251
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ProcessingInstructionNode(name); 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 ProcessingInstructionNode(name); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret; }
22,252
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ProcessingInstructionNode(name); 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 ProcessingInstructionNode(name); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; }
22,253
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ProcessingInstructionNode(name); 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 ProcessingInstructionNode(name); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret; }
22,254
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ...
22,255
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ...
22,256
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ...
22,257
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ...
22,258
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ...
22,259
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String data = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ...
22,260
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("name="); buf.append(name); buf.append(']'); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer("processing-instruction"); buf.append('['); buf.append("name="); buf.append(name); buf.append(']'); return buf.toString(); }
22,261
public void receive(SocketBuffer skbuf, NetDeviceAPI deviceAPI) throws SocketException { // Update statistics stat.ipackets.inc(); // Get IP header final IPv4Header hdr = new IPv4Header(skbuf); if (!hdr.isChecksumOk()) { stat.badsum.inc(); //log.de...
public void receive(SocketBuffer skbuf, NetDeviceAPI deviceAPI) throws SocketException { // Update statistics stat.ipackets.inc(); // Get IP header final IPv4Header hdr = new IPv4Header(skbuf); if (!hdr.isChecksumOk()) { stat.badsum.inc(); //log.de...
22,263
public UDPProtocol(IPv4Service ipService) throws NetworkException { this.ipService = ipService; this.icmp = new ICMPUtils(ipService); try { dsiFactory = new UDPDatagramSocketImplFactory(this); try { AccessController.doPrivileged(new PrivilegedExceptionAction...
public UDPProtocol(IPv4Service ipService) throws NetworkException { this.ipService = ipService; this.icmp = new ICMPUtils(ipService); try { dsiFactory = new UDPDatagramSocketImplFactory(this); try { AccessController.doPrivileged(new PrivilegedExceptionAction...
22,264
public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || title != null && index >= title.length()) throw new IllegalArgumentException(); if (title == null || title.charAt(index) != mnemonicKey) index = -1; underlinedChar...
public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || title != null && index >= title.length()) throw new IllegalArgumentException(); if (title == null || title.charAt(index) != mnemonicKey) index = -1; underlinedChar...
22,266
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } TemplateNode ret = new ForEachNode(select.clone(stylesheet), s...
TemplateNode clone(Stylesheet stylesheet) int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } TemplateNode ret = new ForEachNode(select.clone(stylesheet), sortK...
22,267
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } TemplateNode ret = new ForEachNode(select.clone(stylesheet), s...
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); TemplateNode ret = new ForEachNode(select.clone(stylesheet), sor...
22,268
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } TemplateNode ret = new ForEachNode(select.clone(stylesheet), s...
TemplateNode clone(Stylesheet stylesheet) int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } TemplateNode ret = new ForEachNode(select.clone(stylesheet), sortK...
22,269
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } TemplateNode ret = new ForEachNode(select.clone(stylesheet), s...
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); TemplateNode ret = new ForEachNode(select.clone(stylesheet), sor...
22,270
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } TemplateNode ret = new ForEachNode(select.clone(stylesheet), s...
TemplateNode clone(Stylesheet stylesheet) int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } TemplateNode ret = new ForEachNode(select.clone(stylesheet), sortK...
22,271
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } TemplateNode ret = new ForEachNode(select.clone(stylesheet), s...
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); TemplateNode ret = new ForEachNode(select.clone(stylesheet), sor...
22,272
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { // Set current template to null Template saved = stylesheet.currentTemplate; stylesheet.currentT...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException if (children != null) // Set current template to null Template saved = stylesheet.currentTemplate; stylesheet.currentTempl...
22,273
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { // Set current template to null Template saved = stylesheet.currentTemplate; stylesheet.currentT...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { // Set current template to null Template saved = stylesheet.currentTemplate; stylesheet.currentT...
22,274
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { // Set current template to null Template saved = stylesheet.currentTemplate; stylesheet.currentT...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException if (children != null) // Set current template to null Template saved = stylesheet.currentTemplate; stylesheet.currentTempl...
22,275
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { // Set current template to null Template saved = stylesheet.currentTemplate; stylesheet.currentT...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { // Set current template to null Template saved = stylesheet.currentTemplate; stylesheet.currentT...
22,276
public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (sortKeys != null) { for (Iterator i = sortKeys.iterator(); i.hasNext(); ) { if (((SortKey) i.next()).references(var)) { return t...
public boolean references(QName var) if (select != null && select.references(var)) return true; } if (sortKeys != null) for (Iterator i = sortKeys.iterator(); i.hasNext(); ) if (((SortKey) i.next()).references(var)) return true; ...
22,277
public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (sortKeys != null) { for (Iterator i = sortKeys.iterator(); i.hasNext(); ) { if (((SortKey) i.next()).references(var)) { return t...
public boolean references(QName var) { if (select != null && select.references(var)) { return true; if (sortKeys != null) { for (Iterator i = sortKeys.iterator(); i.hasNext(); ) { if (((SortKey) i.next()).references(var)) { return tru...
22,278
public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (sortKeys != null) { for (Iterator i = sortKeys.iterator(); i.hasNext(); ) { if (((SortKey) i.next()).references(var)) { return t...
public boolean references(QName var) if (select != null && select.references(var)) return true; } if (sortKeys != null) for (Iterator i = sortKeys.iterator(); i.hasNext(); ) if (((SortKey) i.next()).references(var)) return true; ...
22,279
public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (sortKeys != null) { for (Iterator i = sortKeys.iterator(); i.hasNext(); ) { if (((SortKey) i.next()).references(var)) { return t...
public boolean references(QName var) { if (select != null && select.references(var)) { return true; if (sortKeys != null) { for (Iterator i = sortKeys.iterator(); i.hasNext(); ) { if (((SortKey) i.next()).references(var)) { return tru...
22,280
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("select="); buf.append(select); buf.append(']'); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer("for-each"); buf.append('['); buf.append("select="); buf.append(select); buf.append(']'); return buf.toString(); }
22,281
cObject(org.omg.CORBA.Object _object, int _port, byte[] _key) { object = _object; port = _port; key = _key; }
cObject(org.omg.CORBA.Object _object, int _port, byte[] _key, java.lang.Object an_identity ) { object = _object; port = _port; key = _key; }
22,282
public cObject add(org.omg.CORBA.Object object, int port) { return add(generateObjectKey(object), object, port); }
public cObject add(org.omg.CORBA.Object object, int port) { return add(generateObjectKey(object), object, port, null); }
22,284
public cObject getKey(org.omg.CORBA.Object stored_object) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_object.equals(ref.object)) return...
public cObject getKey(org.omg.CORBA.Object stored_object) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_object.equals(ref.object) || stored_object...
22,286
public Object getProperty(String string) { if (properties == null) return null; return properties.get(string); }
public Object getProperty(String string) { if (properties == null) return null; return properties.get(string); }
22,289
public String[] getPropertyNames() { // FIXME: implement return null; }
public String[] getPropertyNames() { // FIXME: implement return null; }
22,290
public void addSelectionPath(TreePath value0) { // TODO }
if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = new TreePath[temp.length]; System.arraycopy(temp, 0, selection, 0, temp.len...
22,291
public void addSelectionPaths(TreePath[] value0) { // TODO }
if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = v0;...
22,292
public void clearSelection() { // TODO }
selection = null; selection = null; publicselection = null; voidselection = null; clearSelection()selection = null; selection = null; { //selection = null; TODOselection = null; selection = null; }
22,293
protected void fireValueChanged(TreeSelectionEvent event) { TreeSelectionListener[] listeners = getTreeSelectionListeners(); for (int i = listeners.length - 1; i >= 0; --i) listeners[i].valueChanged(event); }
protected void fireValueChanged(TreeSelectionEvent event) { TreeSelectionListener[] listeners = getTreeSelectionListeners(); for (int i = 0; i < listeners.length; ++i) listeners[i].valueChanged(event); }
22,294
public int getLeadSelectionRow() { if ((rowMapper == null) || (leadPath == null)) return -1; else return rowMapper.getRowsForPaths(new TreePath[]{ leadPath })[0]; }
public int getLeadSelectionRow() { if ((rowMapper == null) || (leadPath == null)) return -1; else return rowMapper.getRowsForPaths(new TreePath[] { leadPath })[0]; }
22,295
public int getMaxSelectionRow() { if ((rowMapper == null) || (selection == null) || (selection.length == 0)) return -1; else { int[] rows = rowMapper.getRowsForPaths(selection); int maxRow = -1; for (int index = 0; index < rows.length; index++) maxRow = Math.max(maxRow, rows[index]);...
public int getMaxSelectionRow() { if ((rowMapper == null) || (selection == null) || (selection.length == 0)) return -1; else { int[] rows = rowMapper.getRowsForPaths(selection); int maxRow = -1; for (int index = 0; index < rows.length; index++) maxRow = Math.max(maxRow, rows[index]);...
22,296
public int getMaxSelectionRow() { if ((rowMapper == null) || (selection == null) || (selection.length == 0)) return -1; else { int[] rows = rowMapper.getRowsForPaths(selection); int maxRow = -1; for (int index = 0; index < rows.length; index++) maxRow = Math.max(maxRow, rows[index]);...
public int getMaxSelectionRow() { if ((rowMapper == null) || (selection == null) || (selection.length == 0)) return -1; else { int[] rows = rowMapper.getRowsForPaths(selection); int maxRow = -1; for (int index = 0; index < rows.length; index++) maxRow = Math.max(maxRow, rows[index]);...
22,297
public int getMinSelectionRow() { if ((rowMapper == null) || (selection == null) || (selection.length == 0)) return -1; else { int[] rows = rowMapper.getRowsForPaths(selection); int minRow = Integer.MAX_VALUE; for (int index = 0; index < rows.length; index++) minRow = Math.min(minRow...
public int getMinSelectionRow() { if ((rowMapper == null) || (selection == null) || (selection.length == 0)) return -1; else { int[] rows = rowMapper.getRowsForPaths(selection); int minRow = Integer.MAX_VALUE; for (int index = 0; index < rows.length; index++) minRow = Math.min(minRow...
22,298
public int getMinSelectionRow() { if ((rowMapper == null) || (selection == null) || (selection.length == 0)) return -1; else { int[] rows = rowMapper.getRowsForPaths(selection); int minRow = Integer.MAX_VALUE; for (int index = 0; index < rows.length; index++) minRow = Math.min(minRow...
public int getMinSelectionRow() { if ((rowMapper == null) || (selection == null) || (selection.length == 0)) return -1; else { int[] rows = rowMapper.getRowsForPaths(selection); int minRow = Integer.MAX_VALUE; for (int index = 0; index < rows.length; index++) minRow = Math.min(minRow...
22,299
public TreeSelectionListener[] getTreeSelectionListeners() { return (TreeSelectionListener[]) listenerList.getListeners(TreeSelectionListener.class); }
public TreeSelectionListener[] getTreeSelectionListeners() { return (TreeSelectionListener[]) getListeners(TreeSelectionListener.class); }
22,300
public boolean isPathSelected(TreePath value0) { return false; // TODO }
public boolean isPathSelected(TreePath value0) { if (selection == null) return false; for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) return true; } return false; // TODO }
22,301
private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException { // TODO }
private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException { // TODO }
22,302
public void removeSelectionPath(TreePath value0) { // TODO }
int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, temp, 0, index); System.arraycopy(selection, index + 1, temp, index, selection.length -...
22,303
public void removeSelectionPaths(TreePath[] value0) { // TODO }
if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { index = x; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection...
22,304
public void setSelectionPath(TreePath path) { selection = new TreePath[] { path }; }
public void setSelectionPath(TreePath path) { selection = new TreePath[] { path }; }
22,305
public final Object getObject(String key) { for (ResourceBundle bundle = this; bundle != null; bundle = bundle.parent) { Object o = bundle.handleGetObject(key); if (o != null) return o; } throw new MissingResourceException("Key not found", getClass().getName(), ...
public final Object getObject(String key) { for (ResourceBundle bundle = this; bundle != null; bundle = bundle.parent) { Object o = bundle.handleGetObject(key); if (o != null) return o; } throw new MissingResourceException("Key not found", getClass().getName(), ...
22,306
private static ResourceBundle tryBundle(String localizedName, ClassLoader classloader) { ResourceBundle bundle = null; try { Class rbClass; if (classloader == null) rbClass = Class.forName(localizedName); else rbClass = c...
private static ResourceBundle tryBundle(String localizedName, ClassLoader classloader) { ResourceBundle bundle = null; try { Class rbClass; if (classloader == null) rbClass = Class.forName(localizedName); else rbClass = c...
22,307
public final void clear() { isTimeSet = false; areFieldsSet = false; int hour = fields[ZONE_OFFSET] / (60 * 60 * 1000); int minute = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int...
public final void clear() { isTimeSet = false; areFieldsSet = false; int hour = fields[ZONE_OFFSET] / (60 * 60 * 1000); int minute = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int...
22,308
public final void clear() { isTimeSet = false; areFieldsSet = false; int hour = fields[ZONE_OFFSET] / (60 * 60 * 1000); int minute = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int...
public final void clear() { isTimeSet = false; areFieldsSet = false; int hour = fields[ZONE_OFFSET] / (60 * 60 * 1000); int minute = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int...
22,309
public final void clear() { isTimeSet = false; areFieldsSet = false; int hour = fields[ZONE_OFFSET] / (60 * 60 * 1000); int minute = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int...
public final void clear() { isTimeSet = false; areFieldsSet = false; int hour = fields[ZONE_OFFSET] / (60 * 60 * 1000); int minute = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int...
22,310
public final void clear() { isTimeSet = false; areFieldsSet = false; int hour = fields[ZONE_OFFSET] / (60 * 60 * 1000); int minute = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int...
public final void clear() { isTimeSet = false; areFieldsSet = false; int hour = fields[ZONE_OFFSET] / (60 * 60 * 1000); int minute = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int...
22,311
public void set(int field, int value) { if (isTimeSet) for (int i = 0; i < FIELD_COUNT; i++) isSet[i] = false; isTimeSet = false; fields[field] = value; isSet[field] = true; // The five valid date patterns, in order of validity // 1 YEAR + MONTH + DAY_OF_MONTH // 2 YEAR + MONTH + WEEK_OF_MONTH ...
public void set(int field, int value) { if (isTimeSet) for (int i = 0; i < FIELD_COUNT; i++) isSet[i] = false; isTimeSet = false; fields[field] = value; isSet[field] = true; // The five valid date patterns, in order of validity // 1 YEAR + MONTH + DAY_OF_MONTH // 2 YEAR + MONTH + WEEK_OF_MONTH ...
22,312
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); table.setFont(defaults.getFont("Table.font")); table.setGridColor(defaults.getColor("Table.gridColor")); table.setForeground(defaults.getColor("Table.foreground")); table.setBackground(defaults.getColor("Tabl...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); table.setFont(defaults.getFont("Table.font")); table.setGridColor(defaults.getColor("Table.gridColor")); table.setForeground(defaults.getColor("Table.foreground")); table.setBackground(defaults.getColor("Tabl...
22,313
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); table.setFont(defaults.getFont("Table.font")); table.setGridColor(defaults.getColor("Table.gridColor")); table.setForeground(defaults.getColor("Table.foreground")); table.setBackground(defaults.getColor("Tabl...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); table.setFont(defaults.getFont("Table.font")); table.setGridColor(defaults.getColor("Table.gridColor")); table.setForeground(defaults.getColor("Table.foreground")); table.setBackground(defaults.getColor("Tabl...
22,314
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =...
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =...
22,316
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =...
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =...
22,317
public static void main(String[] args) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(args); final File dir = ARG_DIR.getFile(cmdLine); if (dir.exists() && dir.isDirectory()) { System.setProperty("user.dir", dir.getAbsoluteFile().getCanonicalPath()); } else if("/".equals(dir.getCanonicalPath())) { ...
public static void main(String[] args) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(args); final File dir = ARG_DIR.getFile(cmdLine); if (dir.exists() && dir.isDirectory()) { System.setProperty("user.dir", dir.getAbsoluteFile().getCanonicalPath()); } else if("/".equals(dir.getCanonicalPath())) { ...
22,320
private void doAssembly() { for (int i = 0; i < modules.size(); i++) { ((AssemblerModule) modules.get(i)).setNativeStream(nativeStream); } for (Iterator it = instructions.iterator(); it.hasNext();) { Instruction ins = (Instruction) it.next(); //handle prefixes ...
private void doAssembly() { for (int i = 0; i < modules.size(); i++) { ((AssemblerModule) modules.get(i)).setNativeStream(nativeStream); } for (Iterator it = instructions.iterator(); it.hasNext();) { Instruction ins = (Instruction) it.next(); //handle prefixes ...
22,321
public void add(int index, Object element) { elements.add(index, element); fireContentsChanged(this, index, index); }
public void add(int index, Object element) { elements.add(index, element); fireIntervalAdded(this, index, index); }
22,322
public void addElement(Object element) { elements.add(element); fireIntervalAdded(this, elements.size(), elements.size()); }
public void addElement(Object element) { elements.add(element); fireIntervalAdded(this, s, s); }
22,323
public void clear() { elements.clear(); fireIntervalRemoved(this, 0, elements.size()); }
public void clear() { elements.clear(); fireIntervalRemoved(this, 0, s - 1); } }
22,324
public String getAccessibleName() { return accessibleName == null ? getName() : accessibleName; }
public String getAccessibleName() { return accessibleName == null ? getName() : accessibleName; }
22,326
void dispatchEventImpl(AWTEvent e) { // Give toolkit a chance to dispatch the event // to globally registered listeners. Toolkit.getDefaultToolkit().globalDispatchEvent(e); // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. ...
void dispatchEventImpl(AWTEvent e) { // Give toolkit a chance to dispatch the event // to globally registered listeners. Toolkit.getDefaultToolkit().globalDispatchEvent(e); // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. ...
22,327
void dispatchEventImpl(AWTEvent e) { // Give toolkit a chance to dispatch the event // to globally registered listeners. Toolkit.getDefaultToolkit().globalDispatchEvent(e); // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. ...
void dispatchEventImpl(AWTEvent e) { // Give toolkit a chance to dispatch the event // to globally registered listeners. Toolkit.getDefaultToolkit().globalDispatchEvent(e); // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. ...
22,328
protected void processMouseEvent(MouseEvent e) { if (mouseListener == null) return; switch (e.id) { case MouseEvent.MOUSE_CLICKED: mouseListener.mouseClicked(e); break; case MouseEvent.MOUSE_ENTERED: mouseListener.mouseEntered(e); break; case MouseEvent.MOUSE_EXITED: mo...
protected void processMouseEvent(MouseEvent e) { if (mouseListener == null) return; switch (e.id) { case MouseEvent.MOUSE_CLICKED: mouseListener.mouseClicked(e); break; case MouseEvent.MOUSE_ENTERED: mouseListener.mouseEntered(e); break; case MouseEvent.MOUSE_EXITED: mo...
22,330
protected SoundbankResource(Soundbank soundBank, String name, Class dataClass) { this.soundBank = soundBank; this.name = name; this.dataClass = dataClass; }
protected SoundbankResource(Soundbank soundbank, String name, Class dataClass) { this.soundBank = soundBank; this.name = name; this.dataClass = dataClass; }
22,331
protected SoundbankResource(Soundbank soundBank, String name, Class dataClass) { this.soundBank = soundBank; this.name = name; this.dataClass = dataClass; }
protected SoundbankResource(Soundbank soundBank, String name, Class dataClass) { this.soundbank = soundbank; this.name = name; this.dataClass = dataClass; }
22,332
private static void fireDummyEvent(){ EventQueue.invokeLater(new Runnable() { public void run() { } });}
private static void fireDummyEvent(){ EventQueue.invokeLater(new Runnable() { public void run() { } });}
22,333
EventQueue.invokeLater(new Runnable() { public void run() { } });
EventQueue.invokeLater(new Runnable() { public void run() { } });
22,334
public void setSelectedIndex(int index) { checkIndex(index, -1, tabs.size()); if (index != getSelectedIndex()) { if (getSelectedIndex() != -1 && getSelectedComponent() != null) getSelectedComponent().hide(); if (index != -1 && getComponentAt(index) != null) getComponentAt(index).show(); model.setSelec...
public void setSelectedIndex(int index) { checkIndex(index, -1, tabs.size()); if (index != getSelectedIndex()) { if (getSelectedIndex() != -1 && getSelectedComponent() != null) getSelectedComponent().hide(); if (index != -1 && getComponentAt(index) != null) getComponentAt(index).show(); model.setSelec...
22,335
public void addActionListener(ActionListener listener) { actions.addElement(listener); }
public void addActionListener(ActionListener listener) { listenerList.add (ActionListener.class, listener); }
22,336
void fireActionPerformed() { for (int i=0;i<actions.size();i++) { ActionListener a = (ActionListener) actions.elementAt(i); a.actionPerformed(new ActionEvent(this, ticks, "Timer")); } }
protected void fireActionPerformed (ActionEvent event) { for (int i=0;i<actions.size();i++) { ActionListener a = (ActionListener) actions.elementAt(i); a.actionPerformed(new ActionEvent(this, ticks, "Timer")); } }
22,337
void fireActionPerformed() { for (int i=0;i<actions.size();i++) { ActionListener a = (ActionListener) actions.elementAt(i); a.actionPerformed(new ActionEvent(this, ticks, "Timer")); } }
void fireActionPerformed() { ActionListener[] listeners = getActionListeners(); for (int i = 0; i < listeners.length; i++) { ActionListener a = (ActionListener) actions.elementAt(i); a.actionPerformed(new ActionEvent(this, ticks, "Timer")); } }
22,338
void fireActionPerformed() { for (int i=0;i<actions.size();i++) { ActionListener a = (ActionListener) actions.elementAt(i); a.actionPerformed(new ActionEvent(this, ticks, "Timer")); } }
void fireActionPerformed() { for (int i=0;i<actions.size();i++) { ActionListener a = (ActionListener) actions.elementAt(i); a.actionPerformed(new ActionEvent(this, ticks, "Timer")); } }
22,339
public void removeActionListener(ActionListener listener) { actions.removeElement(listener); }
public void removeActionListener(ActionListener listener) { listenerList.remove (ActionListener.class, listener); }
22,340
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { // TODO } // firePropertyChange()
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { // TODO } // firePropertyChange()
22,341
public Constructor(VmMethod vmMethod) { this.vmMethod = vmMethod; }
public Constructor(VmMethod vmMethod) { this.vmMethod = vmMethod; }
22,342
public boolean equals(Object o) { return (this == o); }
public boolean equals(Object o) { return (this == o); }
22,343
public Class[] getExceptionTypes() { if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { list.add(exceptions.getException(i).getResolvedVmClas...
public Class[] getExceptionTypes() { if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { list.add(exceptions.getException(i).getResolvedVmClas...
22,344
private int getModifiersInternal() { return vmMethod.getModifiers(); }
private int getModifiersInternal() { return vmMethod.getModifiers(); }
22,345
public int hashCode() { final Class<?> declClass = getDeclaringClass(); return declClass.getName().hashCode(); }
public int hashCode() { final Class<?> declClass = getDeclaringClass(); return declClass.getName().hashCode(); }
22,346
public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> declClass = getDeclaringClass(); sb.append(declClass.getName()).append('('); Class<?>[] c = getParameterTypes(); ...
public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> declClass = getDeclaringClass(); sb.append(declClass.getName()).append('('); Class<?>[] c = getParameterTypes(); ...
22,347
public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> declClass = getDeclaringClass(); sb.append(declClass.getName()).append('('); Class<?>[] c = getParameterTypes(); ...
public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> declClass = getDeclaringClass(); sb.append(declClass.getName()).append('('); Class<?>[] c = getParameterTypes(); ...
22,348
public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> declClass = getDeclaringClass(); sb.append(declClass.getName()).append('('); Class<?>[] c = getParameterTypes(); ...
public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> declClass = getDeclaringClass(); sb.append(declClass.getName()).append('('); Class<?>[] c = getParameterTypes(); ...
22,349
public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> declClass = getDeclaringClass(); sb.append(declClass.getName()).append('('); Class<?>[] c = getParameterTypes(); ...
public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> declClass = getDeclaringClass(); sb.append(declClass.getName()).append('('); Class<?>[] c = getParameterTypes(); ...
22,350
protected void init(String text, Icon icon) { super.init(text, icon); setModel(new DefaultButtonModel()); // Initializes properties for this menu item, that are different // from Abstract button properties. /* NOTE: According to java specifications paint_border should be set to false, since menu...
protected void init(String text, Icon icon) { super.init(text, icon); setModel(new DefaultButtonModel()); // Initializes properties for this menu item, that are different // from Abstract button properties. /* NOTE: According to java specifications paint_border should be set to false, since menu...
22,351
public Dimension getMaximumSize(JComponent c) { // that's what Suns implementation does return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); }
public Dimension getMaximumSize(JComponent c) { // that's what Suns implementation does return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); }
22,352
public boolean filter (Object provider) { if (provider instanceof ImageReaderSpi) { ImageWriterSpi spi = (ImageWriterSpi) provider; String[] formatNames = spi.getFormatNames(); for (int i = formatNames.length - 1; i >= 0; --i) if (formatName.equals(formatNames[i]...
public boolean filter (Object provider) { if (provider instanceof ImageReaderSpi) { ImageReaderSpi spi = (ImageReaderSpi) provider; String[] formatNames = spi.getFormatNames(); for (int i = formatNames.length - 1; i >= 0; --i) if (formatName.equals(formatNames[i]...
22,353
public static ServerSocketChannel open() throws IOException { return SelectorProvider.provider().openServerSocketChannel(); }
public static ServerSocketChannel open() throws IOException { return SelectorProvider.provider().openServerSocketChannel(); }
22,354
public final int validOps() { return SelectionKey.OP_ACCEPT; }
public final int validOps() { return SelectionKey.OP_ACCEPT; }
22,355
public EntityReference createEntityReference(String name, //EntityDeclaration declaration) String replacementText) { //return new EntityReferenceImpl(location, declaration, name); return new EntityReferenceImpl(location...
public EntityReference createEntityReference(String name, //EntityDeclaration declaration) EntityDeclaration declaration) { //return new EntityReferenceImpl(location, declaration, name); return new EntityReferenceImpl(lo...
22,356
public EntityReference createEntityReference(String name, //EntityDeclaration declaration) String replacementText) { //return new EntityReferenceImpl(location, declaration, name); return new EntityReferenceImpl(location...
public EntityReference createEntityReference(String name, //EntityDeclaration declaration) String replacementText) { //return new EntityReferenceImpl(location, declaration, name); return new EntityReferenceImpl(location...
22,357
private String parseXMLDecl(boolean ignoreEncoding) throws SAXException, IOException { String version; String encodingName = null; String standalone = null; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; String inputEncoding = null; switch (this.encoding) { ...
private String parseXMLDecl(boolean ignoreEncoding) throws SAXException, IOException { String version; String encodingName = null; String standalone = null; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; String inputEncoding = null; switch (this.encoding) { ...
22,358
Object getNegotiatedProperty(String propName) throws SaslException;
Object getNegotiatedProperty(String propName) throws SaslException;
22,359
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
22,360