bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public String format(LogRecord record) { StringBuffer buf = new StringBuffer(400); Level level = record.getLevel(); long millis = record.getMillis(); Object[] params = record.getParameters(); ResourceBundle bundle = record.getResourceBundle(); String key, message; buf.append("<record>"); buf.append(lineSep); ... | public String format(LogRecord record) { StringBuffer buf = new StringBuffer(400); Level level = record.getLevel(); long millis = record.getMillis(); Object[] params = record.getParameters(); ResourceBundle bundle = record.getResourceBundle(); String key, message; buf.append("<record>"); buf.append(lineSep); ... | 16,681 |
public String format(LogRecord record) { StringBuffer buf = new StringBuffer(400); Level level = record.getLevel(); long millis = record.getMillis(); Object[] params = record.getParameters(); ResourceBundle bundle = record.getResourceBundle(); String key, message; buf.append("<record>"); buf.append(lineSep); ... | public String format(LogRecord record) { StringBuffer buf = new StringBuffer(400); Level level = record.getLevel(); long millis = record.getMillis(); Object[] params = record.getParameters(); ResourceBundle bundle = record.getResourceBundle(); String key, message; buf.append("<record>"); buf.append(lineSep); ... | 16,682 |
public String format(LogRecord record) { StringBuffer buf = new StringBuffer(400); Level level = record.getLevel(); long millis = record.getMillis(); Object[] params = record.getParameters(); ResourceBundle bundle = record.getResourceBundle(); String key, message; buf.append("<record>"); buf.append(lineSep); ... | public String format(LogRecord record) { StringBuffer buf = new StringBuffer(400); Level level = record.getLevel(); long millis = record.getMillis(); Object[] params = record.getParameters(); ResourceBundle bundle = record.getResourceBundle(); String key, message; buf.append("<record>"); buf.append(lineSep); ... | 16,683 |
public String format(LogRecord record) { StringBuffer buf = new StringBuffer(400); Level level = record.getLevel(); long millis = record.getMillis(); Object[] params = record.getParameters(); ResourceBundle bundle = record.getResourceBundle(); String key, message; buf.append("<record>"); buf.append(lineSep); ... | public String format(LogRecord record) { StringBuffer buf = new StringBuffer(400); Level level = record.getLevel(); long millis = record.getMillis(); Object[] params = record.getParameters(); ResourceBundle bundle = record.getResourceBundle(); String key, message; buf.append("<record>"); buf.append(lineSep); ... | 16,684 |
public String format(LogRecord record) { StringBuffer buf = new StringBuffer(400); Level level = record.getLevel(); long millis = record.getMillis(); Object[] params = record.getParameters(); ResourceBundle bundle = record.getResourceBundle(); String key, message; buf.append("<record>"); buf.append(lineSep); ... | public String format(LogRecord record) { StringBuffer buf = new StringBuffer(400); Level level = record.getLevel(); long millis = record.getMillis(); Object[] params = record.getParameters(); ResourceBundle bundle = record.getResourceBundle(); String key, message; buf.append("<record>"); buf.append(lineSep); ... | 16,685 |
public String getHead(Handler h) { StringBuffer buf; String encoding; buf = new StringBuffer(80); buf.append("<?xml version=\"1.0\" encoding=\""); encoding = h.getEncoding(); /* file.encoding is a system property with the Sun JVM, indicating * the platform-default file encoding. Unfortunately, the API * spec... | public String getHead(Handler h) { StringBuffer buf; String encoding; buf = new StringBuffer(80); buf.append("<?xml version=\"1.0\" encoding=\""); encoding = h.getEncoding(); /* file.encoding is a system property with the Sun JVM, indicating * the platform-default file encoding. Unfortunately, the API * spec... | 16,687 |
public String getTail(Handler h) { return "</log>" + lineSep; } | public String getTail(Handler h) { return "</log>" + lineSep; } | 16,688 |
public XMLStreamReader createXMLStreamReader(Reader reader) throws XMLStreamException { /* return new XMLStreamReaderImpl(reader, null, null, resolver, reporter, validating, namespaceAware, coalescing, repl... | public XMLStreamReader createXMLStreamReader(Reader reader) throws XMLStreamException { /* return new XMLStreamReaderImpl(reader, null, null, resolver, reporter, validating, namespaceAware, coalescing, repl... | 16,689 |
public Dimension getPreferredSize(JComponent c) { maybeUpdateLayoutState(); if (list.getModel().getSize() == 0) return new Dimension(0, 0); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() - 1); return bounds.getSize(); } | public Dimension getPreferredSize(JComponent c) { maybeUpdateLayoutState(); if (list.getModel().getSize() == 0) return new Dimension(0, 0); int nrows = Math.min(list.getVisibleRowCount(), list.getModel().getSize()); Rectangle bounds = getCellBounds(list, 0, nrows - 1); return bounds.getSize(); } | 16,691 |
public Point indexToLocation(JList list, int index) { throw new Error("Not implemented"); } | public Point indexToLocation(JList list, int index) { return new Point(0, convertRowToY(index)); } | 16,692 |
public int locationToIndex(JList list, Point location) { throw new Error("Not implemented"); } | public int locationToIndex(JList list, Point location) { return convertYToRow(location.y); } | 16,694 |
public static ActivationSystem getSystem() throws ActivationException { if (system == null) return DefaultActivationSystem.singleton; else return system; } | public static ActivationSystem getSystem() throws ActivationException { if (system == null) return DefaultActivationSystem.get(); else return system; } | 16,695 |
public ActivationException(String s) { this(s, null); } | public ActivationException() { this(s, null); } | 16,696 |
public ActivationException(String s) { this(s, null); } | public ActivationException(String s) { this(null, null); } | 16,697 |
public ActivationGroupDesc(String className, String location, MarshalledObject data, Properties overrides, ActivationGroupDesc.CommandEnvironment cmd) { throw new Error("Not implemented");} | public ActivationGroupDesc(String className, String location, MarshalledObject data, Properties overrides, ActivationGroupDesc.CommandEnvironment cmd) { throw new Error("Not implemented");} | 16,698 |
public boolean isBorderOpaque() { return false; } | public boolean isBorderOpaque() { return false; } | 16,699 |
boolean remove(Object o); | boolean remove(Object o); | 16,700 |
public int compareTo (BigDecimal val) { if (scale == val.scale) return intVal.compareTo (val.intVal); BigInteger thisParts[] = intVal.divideAndRemainder (BigInteger.valueOf (10).pow (scale)); BigInteger valParts[] = val.intVal.divideAndRemainder (BigInteger.valueOf (10).pow (val.scale)); ... | public int compareTo (BigDecimal val) { if (scale == val.scale) return intVal.compareTo (val.intVal); BigInteger thisParts[] = intVal.divideAndRemainder (BigInteger.valueOf (10).pow (scale)); BigInteger valParts[] = val.intVal.divideAndRemainder (BigInteger.valueOf (10).pow (val.scale)); ... | 16,701 |
public BigInteger abs() { return abs(this); } | private static BigInteger abs(BigInteger x) { return abs(this); } | 16,702 |
public BigInteger abs() { return abs(this); } | public BigInteger abs() { return x.isNegative() ? neg(x) : x; } | 16,703 |
public BigInteger add(BigInteger val) { return add(this, val, 1); } | private static BigInteger add(int x, int y) { return add(this, val, 1); } | 16,704 |
public BigInteger add(BigInteger val) { return add(this, val, 1); } | public BigInteger add(BigInteger val) { return valueOf((long) x + (long) y); } | 16,705 |
public int compareTo(BigInteger val) { return compareTo(this, val); } | private static int compareTo(BigInteger x, BigInteger y) { return compareTo(this, val); } | 16,706 |
public int compareTo(BigInteger val) { return compareTo(this, val); } | public int compareTo(BigInteger val) { if (x.words == null && y.words == null) return x.ival < y.ival ? -1 : x.ival > y.ival ? 1 : 0; boolean x_negative = x.isNegative(); boolean y_negative = y.isNegative(); if (x_negative != y_negative) return x_negative ? -1 : 1; int x_len = x.words == null ? 1 : x.ival; int y_... | 16,707 |
public BigInteger negate() { return neg(this); } | private static boolean negate(int[] dest, int[] src, int len) { return neg(this); } | 16,708 |
public BigInteger negate() { return neg(this); } | public BigInteger negate() { long carry = 1; boolean negative = src[len-1] < 0; for (int i = 0; i < len; i++) { carry += ((long) (~src[i]) & 0xffffffffL); dest[i] = (int) carry; carry >>= 32; } return (negative && dest[len-1] < 0); } | 16,709 |
public BigInteger divide(BigInteger val) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | private static void divide(long x, long y, BigInteger quotient, BigInteger remainder, int rounding_mode) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | 16,710 |
public BigInteger divide(BigInteger val) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | public BigInteger divide(BigInteger val) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | 16,711 |
public BigInteger divide(BigInteger val) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | public BigInteger divide(BigInteger val) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | 16,712 |
public final Class getCategory() { return PrinterName.class; } | public Class getCategory() { return PrinterName.class; } | 16,713 |
public final String getName() { return "printer-name"; } | public String getName() { return "printer-name"; } | 16,714 |
public int hashCode() { return value.hashCode() + locale.hashCode(); } | public int hashCode() { return value.hashCode() ^ locale.hashCode(); } | 16,715 |
protected void updateLayout(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape) { Rectangle b = shape.getBounds(); if (ec != null) preferenceChanged(this, true, true); } | protected void updateLayout(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape) { Rectangle b = shape.getBounds(); if (ec != null) preferenceChanged(this, true, true); } | 16,716 |
public int getEndIndex() { return offset + count; } | public int getEndIndex() { return offset + count; } | 16,718 |
public static String getClientHost() throws ServerNotActiveException { throw new Error("Not implemented");} | public static String getClientHost() throws ServerNotActiveException { throw new Error("Not implemented");} | 16,719 |
public ServerNotActiveException(String s) { super(s); } | public ServerNotActiveException() { super(s); } | 16,720 |
public ServerNotActiveException(String s) { super(s); } | public ServerNotActiveException(String s) { } | 16,721 |
protected void frameInit() { super.setLayout(new BorderLayout(1, 1)); enableEvents(AWTEvent.WINDOW_EVENT_MASK); getRootPane(); // will do set/create // Setup the defaultLookAndFeelDecoration if requested. if (isDefaultLookAndFeelDecorated() && UIManager.getLookAndFeel().getSupportsWi... | protected void frameInit() { super.setLayout(new BorderLayout()); setBackground(UIManager.getDefaults().getColor("control")); enableEvents(AWTEvent.WINDOW_EVENT_MASK); getRootPane(); // will do set/create // Setup the defaultLookAndFeelDecoration if requested. if (isDefaultLookAndFeelDecora... | 16,722 |
Frame(String title){ super(); this.title = title; // Top-level frames are initially invisible. visible = false; noteFrame(this);} | Frame(String title){ super(); this.title = title; // Top-level frames are initially invisible. visible = false; noteFrame(this);} | 16,723 |
Frame(String title){ super(); this.title = title; // Top-level frames are initially invisible. visible = false; noteFrame(this);} | Frame(String title){ super(); this.title = title; // Top-level frames are initially invisible. visible = false; noteFrame(this);} | 16,724 |
public abstract boolean addMember(Principal user); | public abstract boolean addMember(Principal user); | 16,725 |
public abstract boolean isMember(Principal member); | public abstract boolean isMember(Principal member); | 16,726 |
public abstract Enumeration members(); | public abstract Enumeration members(); | 16,727 |
public abstract boolean removeMember(Principal user); | public abstract boolean removeMember(Principal user); | 16,728 |
public AbstractTableModel() { // TODO } // AbstractTableModel() | public AbstractTableModel() { // TODO } // AbstractTableModel() | 16,729 |
public void addTableModelListener(TableModelListener listener) { listenerList.add(TableModelListener.class, listener); } // addTableModelListener() | public void addTableModelListener(TableModelListener listener) { listenerList.add(TableModelListener.class, listener); } // addTableModelListener() | 16,730 |
public int findColumn(String columnName) { // Variables int index; String name; int count; // Process Columns count = getColumnCount(); for (index = 0; index < count; index++) { name = getColumnName(index); if (columnName.equals(name) == true) { return index; } // if } // for // Unable to Locate ... | public int findColumn(String columnName) { // Variables int index; String name; int count; // Process Columns count = getColumnCount(); for (index = 0; index < count; index++) { name = getColumnName(index); if (columnName.equals(name) == true) { return index; } // if } // for // Unable to Locate ... | 16,731 |
public int findColumn(String columnName) { // Variables int index; String name; int count; // Process Columns count = getColumnCount(); for (index = 0; index < count; index++) { name = getColumnName(index); if (columnName.equals(name) == true) { return index; } // if } // for // Unable to Locate ... | public int findColumn(String columnName) { // Variables int index; String name; int count; // Process Columns count = getColumnCount(); for (index = 0; index < count; index++) { name = getColumnName(index); if (columnName.equals(name) == true) { return index; } // if } // for // Unable to Locate ... | 16,732 |
public void fireTableCellUpdated(int row, int column) { fireTableChanged(new TableModelEvent(this, row, row, column)); } // fireTableCellUpdated() | public void fireTableCellUpdated(int row, int column) { fireTableChanged(new TableModelEvent(this, row, row, column)); } // fireTableCellUpdated() | 16,733 |
public void fireTableChanged(TableModelEvent event) { // Variables Object[] list; int index; TableModelListener listener; // Get Listener List list = listenerList.getListenerList(); for (index = 0; index < list.length; index += 2) { // Get Listener listener = (TableModelListener) list[index + 1]; /... | public void fireTableChanged(TableModelEvent event) { // Variables Object[] list; int index; TableModelListener listener; // Get Listener List list = listenerList.getListenerList(); for (index = 0; index < list.length; index += 2) { // Get Listener listener = (TableModelListener) list[index + 1]; /... | 16,734 |
public void fireTableChanged(TableModelEvent event) { // Variables Object[] list; int index; TableModelListener listener; // Get Listener List list = listenerList.getListenerList(); for (index = 0; index < list.length; index += 2) { // Get Listener listener = (TableModelListener) list[index + 1]; /... | public void fireTableChanged(TableModelEvent event) { // Variables Object[] list; int index; TableModelListener listener; // Get Listener List list = listenerList.getListenerList(); for (index = 0; index < list.length; index += 2) { // Get Listener listener = (TableModelListener) list[index + 1]; /... | 16,735 |
public void fireTableDataChanged() { fireTableChanged(new TableModelEvent(this)); } // fireTableDataChanged() | public void fireTableDataChanged() { fireTableChanged(new TableModelEvent(this)); } // fireTableDataChanged() | 16,736 |
public void fireTableRowsDeleted(int firstRow, int lastRow) { fireTableChanged(new TableModelEvent(this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.DELETE)); } // fireTableRowsDeleted() | public void fireTableRowsDeleted(int firstRow, int lastRow) { fireTableChanged(new TableModelEvent(this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.DELETE)); } // fireTableRowsDeleted() | 16,737 |
public void fireTableRowsInserted(int firstRow, int lastRow) { fireTableChanged(new TableModelEvent(this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT)); } // fireTableRowsInserted() | public void fireTableRowsInserted(int firstRow, int lastRow) { fireTableChanged(new TableModelEvent(this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT)); } // fireTableRowsInserted() | 16,738 |
public void fireTableRowsUpdated(int firstRow, int lastRow) { fireTableChanged(new TableModelEvent(this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.UPDATE)); } // fireTableRowsUpdated() | public void fireTableRowsUpdated(int firstRow, int lastRow) { fireTableChanged(new TableModelEvent(this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.UPDATE)); } // fireTableRowsUpdated() | 16,739 |
public void fireTableStructureChanged() { fireTableChanged(new TableModelEvent(this, TableModelEvent.HEADER_ROW)); } // fireTableStructureChanged() | public void fireTableStructureChanged() { fireTableChanged(new TableModelEvent(this, TableModelEvent.HEADER_ROW)); } // fireTableStructureChanged() | 16,740 |
public Class getColumnClass(int columnIndex) { return Object.class; } // getColumnClass() | public Class getColumnClass(int columnIndex) { return Object.class; } // getColumnClass() | 16,741 |
public String getColumnName(int columnIndex) { // Variables int index; int left; int base; int multiplier; StringBuffer buffer; boolean foundFirst; // Ok, this is not the best solution in the world // and it does produce wrong answers starting 1378 // but it's a start. I sure hope there is a more // s... | public String getColumnName(int columnIndex) { // Variables int index; int left; int base; int multiplier; StringBuffer buffer; boolean foundFirst; // Ok, this is not the best solution in the world // and it does produce wrong answers starting 1378 // but it's a start. I sure hope there is a more // s... | 16,742 |
public String getColumnName(int columnIndex) { // Variables int index; int left; int base; int multiplier; StringBuffer buffer; boolean foundFirst; // Ok, this is not the best solution in the world // and it does produce wrong answers starting 1378 // but it's a start. I sure hope there is a more // s... | public String getColumnName(int columnIndex) { // Variables int index; int left; int base; int multiplier; StringBuffer buffer; boolean foundFirst; // Ok, this is not the best solution in the world // and it does produce wrong answers starting 1378 // but it's a start. I sure hope there is a more // s... | 16,743 |
public EventListener[] getListeners(Class listenerType) { return listenerList.getListeners(listenerType); } // getListeners() | public EventListener[] getListeners(Class listenerType) { return listenerList.getListeners(listenerType); } // getListeners() | 16,744 |
public boolean isCellEditable(int rowIndex, int columnIndex) { return false; } // isCellEditable() | public boolean isCellEditable(int rowIndex, int columnIndex) { return false; } // isCellEditable() | 16,745 |
public void removeTableModelListener(TableModelListener listener) { listenerList.remove(TableModelListener.class, listener); } // removeTableModelListener() | public void removeTableModelListener(TableModelListener listener) { listenerList.remove(TableModelListener.class, listener); } // removeTableModelListener() | 16,746 |
public void setValueAt(Object value, int rowIndex, int columnIndex) { // Do nothing... } // setValueAt() | public void setValueAt(Object value, int rowIndex, int columnIndex) { // Do nothing... } // setValueAt() | 16,747 |
public synchronized void close() { hwCursor.closeCursor(); final DpmsState dpmsState = getDpms(); //log.debug("Old DPMS state: " + dpmsState); setDpms(DpmsState.OFF); vgaIO.unlock(); oldVgaState.restoreToVGA(vgaIO); setDpms(dpmsState); // For debugging purposes //final NVidiaVgaState debugState = new NVidiaVg... | publiclog.debug("Old DPMS state: " + dpmsState); synchronizedlog.debug("Old DPMS state: " + dpmsState); voidlog.debug("Old DPMS state: " + dpmsState); close()log.debug("Old DPMS state: " + dpmsState); { hwCursor.closeCursor(); finallog.debug("Old DPMS state: " + dpmsState); DpmsStatelog.debug("Old DPMS state: " + dp... | 16,748 |
createURLStreamHandler(String protocol); | createURLStreamHandler(String protocol); | 16,750 |
private AccessibleJTableHeaderCell(JTableHeader h, Component comp, int r, int c) { } | private AccessibleJTableHeaderCell(JTableHeader h, Component comp, int r, int c) { } | 16,751 |
public AccessibleContext getAccessibleContext() { // TODO Auto-generated method stub return null; } | public AccessibleContext getAccessibleContext() { // TODO Auto-generated method stub return this; } | 16,752 |
public AccessibleRole getAccessibleRole() { // TODO Auto-generated method stub return null; } | Component renderer = getColumnHeaderRenderer(); if (renderer instanceof Accessible) { Accessible ac = (Accessible) renderer; return ac.getAccessibleContext().getAccessibleRole(); } Component renderer = getColumnHeaderRenderer(); if (renderer instanceof Accessible) { Accessible ac = (Accessible) renderer; return ac.getA... | 16,753 |
public Accessible getAccessibleAt(int r, int c) { return getAccessibleChild(r * getAccessibleColumnCount() + c); } | public Accessible getAccessibleAt(int r, int c) { TableCellRenderer cellRenderer = getCellRenderer(r, c); Component renderer = cellRenderer.getTableCellRendererComponent( JTable.this, getValueAt(r, c), isCellSelected(r, c), false, r, c); if (renderer instanceof Accessible) return (Accessible) renderer; retu... | 16,754 |
public static Border createLineBorder( Color color, int thickness) { /* Creates a line border withe the specified color and width. The width applies to all 4 sides of the border. To specify widths individually for the top, bottom, left, and right, use createMatteBorder(int,int,int,int,Color). Parameters: ... | public static Border createLineBorder( Color color, int thickness) { /* Creates a line border withe the specified color and width. The width applies to all 4 sides of the border. To specify widths individually for the top, bottom, left, and right, use createMatteBorder(int,int,int,int,Color). Parameters: ... | 16,755 |
public void setBorderPainted(boolean b) { if (b != paint_border) { paint_border = b; revalidate(); repaint(); } } | public void setBorderPainted(boolean b) { if (b != paint_border) { paint_border = b; revalidate(); repaint(); } } | 16,756 |
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int size = w*h; int outOffset = 0; int[] pixel = null; if (iArray == null) iArray = new int[w*h*numBands]; for (int yy=y; yy<(y+h); yy++) { for (int xx=x; xx<(x+w); xx++) { getPixel(xx, yy, pixel, data); Sy... | public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int size = w*h; int outOffset = 0; int[] pixel = null; if (iArray == null) iArray = new int[w*h*numBands]; for (int yy=y; yy<(y+h); yy++) { for (int xx=x; xx<(x+w); xx++) { getPixel(xx, yy, pixel, data); Sy... | 16,757 |
public void addRow(Vector rowData) { int rowIndex = dataVector.size(); dataVector.add(rowData); newRowsAdded(new TableModelEvent( this, rowIndex, rowIndex, -1, TableModelEvent.INSERT) ); } | public void addRow(Vector rowData) { int rowIndex = dataVector.size(); dataVector.add(rowData); newRowsAdded(new TableModelEvent( this, rowIndex, rowIndex, -1, TableModelEvent.INSERT) ); } | 16,758 |
protected static Vector convertToVector(Object[] data) { if (data == null) return null; Vector vector = new Vector(data.length); for (int i = 0; i < data.length; i++) vector.add(data[i]); return vector; } | protected static Vector convertToVector(Object[] data) { if (data == null) return null; Vector vector = new Vector(data.length); for (int i = 0; i < data.length; i++) vector.add(data[i]); return vector; } | 16,759 |
public int getColumnCount() { return (columnIdentifiers == null ? 0 : columnIdentifiers.size()); } | public int getColumnCount() { return (columnIdentifiers == null ? 0 : columnIdentifiers.size()); } | 16,760 |
public String getColumnName(int column) { String result = ""; if (columnIdentifiers == null) result = super.getColumnName(column); else { if (column < getColumnCount()) { Object id = columnIdentifiers.get(column); if (id != null) result = id.toString(); els... | public String getColumnName(int column) { String result = ""; if (columnIdentifiers == null) result = super.getColumnName(column); else { if (column < getColumnCount()) { Object id = columnIdentifiers.get(column); if (id != null) result = id.toString(); els... | 16,761 |
public int getRowCount() { return dataVector.size(); } | public int getRowCount() { return dataVector.size(); } | 16,763 |
public Object getValueAt(int row, int column) { return ((Vector) dataVector.get(row)).get(column); } | public Object getValueAt(int row, int column) { return ((Vector) dataVector.get(row)).get(column); } | 16,764 |
public void insertRow(int row, Vector rowData) { dataVector.add(row, rowData); fireTableRowsInserted(row,row); } | public void insertRow(int row, Vector rowData) { dataVector.add(row, rowData); fireTableRowsInserted(row,row); } | 16,765 |
public void insertRow(int row, Vector rowData) { dataVector.add(row, rowData); fireTableRowsInserted(row,row); } | public void insertRow(int row, Vector rowData) { dataVector.add(row, rowData); fireTableRowsInserted(row, row); } | 16,766 |
public boolean isCellEditable(int row, int column) { return true; } | public boolean isCellEditable(int row, int column) { return true; } | 16,767 |
public void moveRow(int startIndex, int endIndex, int toIndex) { Vector removed = new Vector(); for (int i = endIndex; i >= startIndex; i--) { removed.add(this.dataVector.remove(i)); } for (int i = 0; i <= endIndex - startIndex; i++) { dataVector.insertElementAt(removed.get(i), toIndex); ... | public void moveRow(int startIndex, int endIndex, int toIndex) { Vector removed = new Vector(); for (int i = endIndex; i >= startIndex; i--) { removed.add(this.dataVector.remove(i)); } for (int i = 0; i <= endIndex - startIndex; i++) { dataVector.insertElementAt(removed.get(i), toIndex); ... | 16,768 |
public void removeRow(int row) { dataVector.remove(row); fireTableRowsDeleted(row,row); } | public void removeRow(int row) { dataVector.remove(row); fireTableRowsDeleted(row,row); } | 16,769 |
public void removeRow(int row) { dataVector.remove(row); fireTableRowsDeleted(row,row); } | public void removeRow(int row) { dataVector.remove(row); fireTableRowsDeleted(row, row); } | 16,770 |
public void setColumnIdentifiers(Vector columnIdentifiers) { this.columnIdentifiers = columnIdentifiers; setColumnCount((columnIdentifiers == null ? 0 : columnIdentifiers.size())); } | public void setColumnIdentifiers(Vector columnIdentifiers) { this.columnIdentifiers = columnIdentifiers; setColumnCount(columnIdentifiers == null ? 0 : columnIdentifiers.size()); } | 16,771 |
public void setRowCount(int rowCount) { int existingRowCount = dataVector.size(); if (rowCount < existingRowCount) { dataVector.setSize(rowCount); fireTableRowsDeleted(rowCount,existingRowCount-1); } else { int rowsToAdd = rowCount - existingRowCount; for (int i = 0; i < ... | public void setRowCount(int rowCount) { int existingRowCount = dataVector.size(); if (rowCount < existingRowCount) { dataVector.setSize(rowCount); fireTableRowsDeleted(rowCount, existingRowCount - 1); } else { int rowsToAdd = rowCount - existingRowCount; for (int i = 0; i... | 16,772 |
public void setRowCount(int rowCount) { int existingRowCount = dataVector.size(); if (rowCount < existingRowCount) { dataVector.setSize(rowCount); fireTableRowsDeleted(rowCount,existingRowCount-1); } else { int rowsToAdd = rowCount - existingRowCount; for (int i = 0; i < ... | public void setRowCount(int rowCount) { int existingRowCount = dataVector.size(); if (rowCount < existingRowCount) { dataVector.setSize(rowCount); fireTableRowsDeleted(rowCount,existingRowCount-1); } else { int rowsToAdd = rowCount - existingRowCount; for (int i = 0; i < ... | 16,773 |
public void setValueAt(Object value, int row, int column) { ((Vector) dataVector.get(row)).set(column, value); fireTableCellUpdated(row,column); } | public void setValueAt(Object value, int row, int column) { ((Vector) dataVector.get(row)).set(column, value); fireTableCellUpdated(row,column); } | 16,774 |
public void setValueAt(Object value, int row, int column) { ((Vector) dataVector.get(row)).set(column, value); fireTableCellUpdated(row,column); } | public void setValueAt(Object value, int row, int column) { ((Vector) dataVector.get(row)).set(column, value); fireTableCellUpdated(row, column); } | 16,775 |
public Object getValue() throws Exception { if (value == unset) value = doExecute(); return value; } | public Object getValue() throws Exception { if (value == UNSET) value = doExecute(); return value; } | 16,776 |
public String toString() { String result = super.toString(); if (value != unset) return value.getClass().getName() + " " + result; return result; } | public String toString() { String result = super.toString(); if (value != UNSET) return value.getClass().getName() + " " + result; return result; } | 16,777 |
final Object doExecute() throws Exception { Class klazz = (target instanceof Class) ? (Class) target : target.getClass(); Object args[] = (arguments == null) ? new Object[0] : arguments; Class argTypes[] = new Class[args.length]; for (int i = 0; i < args.length; i++) argTypes[i] = args[i].getClass()... | final Object doExecute() throws Exception { Class klazz = (target instanceof Class) ? (Class) target : target.getClass(); Object args[] = (arguments == null) ? new Object[0] : arguments; Class argTypes[] = new Class[args.length]; for (int i = 0; i < args.length; i++) argTypes[i] = args[i].getClass()... | 16,778 |
public String toString() { String result = target.getClass().getName() + "." + methodName + "("; String sep = ""; for (int i = 0; i < arguments.length; i++) { result = result + sep + arguments[i].getClass().getName(); sep = ", "; } result = result + ")"; return result; } | public String toString() { StringBuffer result = new StringBuffer(); Class klass = target.getClass(); result.append( ((WeakHashMap) classMaps.get(klass)).get(target)); result.append("."); result.append(methodName); result.append("("); String sep = ""; for (int i = 0; i < arguments.length; i++) { res... | 16,779 |
public String toString() { String result = target.getClass().getName() + "." + methodName + "("; String sep = ""; for (int i = 0; i < arguments.length; i++) { result = result + sep + arguments[i].getClass().getName(); sep = ", "; } result = result + ")"; return result; } | public String toString() { String result = target.getClass().getName() + "." + methodName + "("; String sep = ""; for (int i = 0; i < arguments.length; i++) { result = result + sep + arguments[i].getClass().getName(); sep = ", "; } result = result + ")"; return result; } | 16,780 |
public String toString() { String result = target.getClass().getName() + "." + methodName + "("; String sep = ""; for (int i = 0; i < arguments.length; i++) { result = result + sep + arguments[i].getClass().getName(); sep = ", "; } result = result + ")"; return result; } | public String toString() { String result = target.getClass().getName() + "." + methodName + "("; String sep = ""; for (int i = 0; i < arguments.length; i++) { result = result + sep + arguments[i].getClass().getName(); sep = ", "; } result = result + ")"; return result; } | 16,781 |
public abstract long get (); | public abstract long get (); | 16,791 |
public int hashCode () { // FIXME: Check what SUN calculates here. return super.hashCode (); } | public int hashCode () { // FIXME: Check what SUN calculates here. long hashCode = get(position()) + 31; long multiplier = 1; for (int i = position() + 1; i < limit(); ++i) { multiplier *= 31; hashCode += (get(i) + 30)*multiplier; } return ((int)hashCode); } | 16,792 |
public abstract LongBuffer put (long b); | public abstract LongBuffer put (long b); | 16,793 |
final public static LongBuffer wrap (long[] array, int offset, int length) { return new LongBufferImpl (array, 0, array.length, offset + length, offset, -1, false); } | public static final LongBuffer wrap (long[] array, int offset, int length) { return new LongBufferImpl (array, 0, array.length, offset + length, offset, -1, false); } | 16,794 |
public gnuIorInfo(ORB_1_4 an_orb, POA a_poa, IOR an_ior) { orb = an_orb; poa = a_poa; ior = an_ior; } | public gnuIorInfo(ORB_1_4 an_orb, gnuPOA a_poa, IOR an_ior) { orb = an_orb; poa = a_poa; ior = an_ior; } | 16,795 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.