bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
private void updateOptimization() { int transformType = transform.getType(); boolean optimizedTransform = (transformType & (AffineTransform.TYPE_TRANSLATION | AffineTransform.TYPE_IDENTITY)) != 0; isOptimized = clip instanceof Rectangle && optimizedTransform && paint instanceof Co... | private void updateOptimization() { int transformType = transform.getType(); boolean optimizedTransform = (transformType & (AffineTransform.TYPE_TRANSLATION | AffineTransform.TYPE_IDENTITY)) != 0; boolean optimizedClip = (clip == null || clip instanceof Rectangle); isOptimized = optimizedClip ... | 21,192 |
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalSliderUI(); return instance; } | public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalSliderUI instance; if (o == null) { instance = new MetalSliderUI(); return instance; } | 21,193 |
public void addColumn(Object columnName) { addColumn(columnName, new Vector(dataVector.size())); } // addColumn() | public void addColumn(Object columnName) { addColumn(columnName, new Vector(dataVector.size())); } // addColumn() | 21,195 |
public void addRow(Vector rowData) { // TODO } // addRow() | public void addRow(Vector rowData) { // TODO dataVector.add(rowData); fireTableDataChanged(); } // addRow() | 21,196 |
protected static Vector convertToVector(Object[] data) { // Variables int index; Vector vector; // Check for null if (data == null) { return null; } // if // Process vector = new Vector(); for (index = 0; index < data.length; index++) { vector.add(data[index]); } // for: index // Return new Vector retu... | protected static Vector convertToVector(Object[] data) { // Variables int index; Vector vector; // Check for null if (data == null) { return null; } // if // Process vector = new Vector(); for (index = 0; index < data.length; index++) { vector.add(data[index]); } // for: index // Return new Vector retu... | 21,197 |
protected static Vector convertToVector(Object[] data) { // Variables int index; Vector vector; // Check for null if (data == null) { return null; } // if // Process vector = new Vector(); for (index = 0; index < data.length; index++) { vector.add(data[index]); } // for: index // Return new Vector retu... | protected static Vector convertToVector(Object[] data) { // Variables int index; Vector vector; // Check for null if (data == null) { return null; } // if // Process vector = new Vector(); for (index = 0; index < data.length; index++) { vector.add(data[index]); } // for: index // Return new Vector retu... | 21,198 |
public Object getValueAt(int row, int column) { // Variables Vector rowVector; // Get Row Vector rowVector = (Vector) dataVector.get(row); // Get Data return rowVector.get(column); } // getValueAt() | public Object getValueAt(int row, int column) { // Variables Vector rowVector; // Get Row Vector rowVector = (Vector) dataVector.get(row); // Get Data return rowVector.get(column); } // getValueAt() | 21,199 |
public void insertRow(int row, Vector rowData) { dataVector.add(row, rowData); } // insertRow() | public void insertRow(int row, Vector rowData) { dataVector.add(row, rowData); fireTableDataChanged(); } // insertRow() | 21,200 |
public void moveRow(int startIndex, int endIndex, int toIndex) { // Variables int index; Vector vector; // Move Rows for (index = 0; index < (endIndex - startIndex); index++) { vector = (Vector) dataVector.remove(startIndex); dataVector.add(toIndex, vector); } // for } // moveRow() | public void moveRow(int startIndex, int endIndex, int toIndex) { // Variables int index; Vector vector; // Move Rows for (index = 0; index < (endIndex - startIndex); index++) { vector = (Vector) dataVector.remove(startIndex); dataVector.add(toIndex, vector); } // for } // moveRow() | 21,201 |
public void moveRow(int startIndex, int endIndex, int toIndex) { // Variables int index; Vector vector; // Move Rows for (index = 0; index < (endIndex - startIndex); index++) { vector = (Vector) dataVector.remove(startIndex); dataVector.add(toIndex, vector); } // for } // moveRow() | public void moveRow(int startIndex, int endIndex, int toIndex) { // Variables int index; Vector vector; // Move Rows for (index = 0; index < (endIndex - startIndex); index++) { vector = (Vector) dataVector.remove(startIndex); dataVector.add(toIndex, vector); } // for } // moveRow() | 21,202 |
public void newRowsAdded(TableModelEvent event) { // TODO } // newRowsAdded() | public void newRowsAdded(TableModelEvent event) { // TODO } // newRowsAdded() | 21,203 |
public void removeRow(int row) { dataVector.remove(row); } // removeRow() | public void removeRow(int row) { dataVector.remove(row); fireTableDataChanged(); } // removeRow() | 21,204 |
public void setColumnCount(int columnCount) { // TODO } // setColumnCount() | public void setColumnCount(int columnCount) { // TODO } // setColumnCount() | 21,205 |
public void setDataVector(Vector data, Vector columnNames) { // Variables int rowIndex; int numRows; int numColumns; Vector columnVector; // Set Data dataVector = data; columnIdentifiers = columnNames; // Check Data numRows = data.size(); numColumns = columnNames.size(); for (rowIndex = 0; rowIndex < numRo... | public void setDataVector(Vector data, Vector columnNames) { // Variables int rowIndex; int numRows; int numColumns; Vector columnVector; // Set Data dataVector = data; columnIdentifiers = columnNames; // Check Data numRows = data.size(); numColumns = columnNames.size(); for (rowIndex = 0; rowIndex < numRo... | 21,206 |
public void setDataVector(Vector data, Vector columnNames) { // Variables int rowIndex; int numRows; int numColumns; Vector columnVector; // Set Data dataVector = data; columnIdentifiers = columnNames; // Check Data numRows = data.size(); numColumns = columnNames.size(); for (rowIndex = 0; rowIndex < numRo... | public void setDataVector(Vector data, Vector columnNames) { // Variables int rowIndex; int numRows; int numColumns; Vector columnVector; // Set Data dataVector = data; columnIdentifiers = columnNames; // Check Data numRows = data.size(); numColumns = columnNames.size(); for (rowIndex = 0; rowIndex < numRo... | 21,207 |
public void setRowCount(int rowCount) { // TODO } // setRowCount() | public void setRowCount(int rowCount) { // TODO } // setRowCount() | 21,208 |
public void setValueAt(Object value, int row, int column) { // Variables Vector rowVector; // Get Row Vector rowVector = (Vector) dataVector.get(row); // Set Data rowVector.remove(column); rowVector.add(column, value); } // setValueAt() | public void setValueAt(Object value, int row, int column) { // Variables Vector rowVector; // Get Row Vector rowVector = (Vector) dataVector.get(row); // Set Data rowVector.remove(column); rowVector.add(column, value); } // setValueAt() | 21,209 |
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr... | protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr... | 21,211 |
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr... | protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr... | 21,212 |
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr... | protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr... | 21,213 |
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr... | protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr... | 21,214 |
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr... | protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr... | 21,215 |
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr... | protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr... | 21,216 |
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr... | protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr... | 21,217 |
protected View createView(FlowView fv, int startOffset, int spanLeft, int rowIndex) { View logicalView = getLogicalView(fv); // FIXME: Handle the bias thing correctly. int index = logicalView.getViewIndex(startOffset, Position.Bias.Forward); View retVal = null;... | protected View createView(FlowView fv, int startOffset, int spanLeft, int rowIndex) { View logicalView = getLogicalView(fv); // FIXME: Handle the bias thing correctly. int index = logicalView.getViewIndex(startOffset, Position.Bias.Forward); View retVal = null;... | 21,219 |
protected View createView(FlowView fv, int startOffset, int spanLeft, int rowIndex) { View logicalView = getLogicalView(fv); // FIXME: Handle the bias thing correctly. int index = logicalView.getViewIndex(startOffset, Position.Bias.Forward); View retVal = null;... | protected View createView(FlowView fv, int startOffset, int spanLeft, int rowIndex) { View logicalView = getLogicalView(fv); // FIXME: Handle the bias thing correctly. int index = logicalView.getViewIndex(startOffset, Position.Bias.Forward); View retVal = null;... | 21,220 |
public void layout(FlowView fv) { fv.removeAll(); Element el = fv.getElement(); int rowStart = el.getStartOffset(); int end = el.getEndOffset(); int rowIndex = 0; while (rowStart >= 0 && rowStart < end) { View row = fv.createRow(); fv.append(row); r... | public void layout(FlowView fv) { fv.removeAll(); int rowStart = el.getStartOffset(); int end = el.getEndOffset(); int rowIndex = 0; while (rowStart >= 0 && rowStart < end) { View row = fv.createRow(); fv.append(row); rowStart = layoutRow(fv, rowIn... | 21,222 |
public void layout(FlowView fv) { fv.removeAll(); Element el = fv.getElement(); int rowStart = el.getStartOffset(); int end = el.getEndOffset(); int rowIndex = 0; while (rowStart >= 0 && rowStart < end) { View row = fv.createRow(); fv.append(row); r... | public void layout(FlowView fv) { fv.removeAll(); Element el = fv.getElement(); int rowStart = el.getStartOffset(); int end = el.getEndOffset(); int rowIndex = 0; while (rowStart >= 0 && rowStart < end) { View row = fv.createRow(); fv.append(row); r... | 21,223 |
public void layout(FlowView fv) { fv.removeAll(); Element el = fv.getElement(); int rowStart = el.getStartOffset(); int end = el.getEndOffset(); int rowIndex = 0; while (rowStart >= 0 && rowStart < end) { View row = fv.createRow(); fv.append(row); r... | public void layout(FlowView fv) { fv.removeAll(); Element el = fv.getElement(); int rowStart = el.getStartOffset(); int end = el.getEndOffset(); int rowIndex = 0; while (rowStart >= 0 && rowStart < end) { View row = fv.createRow(); fv.append(row); r... | 21,224 |
protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | 21,225 |
protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | 21,226 |
protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | 21,227 |
protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | 21,228 |
protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | 21,229 |
protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | 21,230 |
protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | 21,231 |
protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | 21,232 |
protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | 21,233 |
LogicalView(Element el, int axis) { super(el, axis); } | LogicalView(Element el) { super(el, axis); } | 21,235 |
LogicalView(Element el, int axis) { super(el, axis); } | LogicalView(Element el, int axis) { super(el); } | 21,236 |
public FlowView(Element element, int axis) { super(element, axis); strategy = sharedStrategy; layoutDirty = true; } | public FlowView(Element element, int axis) { super(element, axis); strategy = sharedStrategy; layoutSpan = Short.MAX_VALUE; } | 21,237 |
protected SizeRequirements calculateMinorAxisRequirements(int axis, SizeRequirements r) { SizeRequirements res = r; if (res == null) res = new SizeRequirements(); res.minimum = (int) layoutPool.getMinimumSpan(axis); res.preferred = Math.max(... | protected SizeRequirements calculateMinorAxisRequirements(int axis, SizeRequirements r) { SizeRequirements res = r; if (res == null) res = new SizeRequirements(); res.minimum = (int) layoutPool.getMinimumSpan(axis); res.preferred = Math.max(... | 21,238 |
public void changedUpdate(DocumentEvent changes, Shape a, ViewFactory vf) { layoutPool.changedUpdate(changes, a, vf); strategy.changedUpdate(this, changes, getInsideAllocation(a)); layoutDirty = true; } | public void changedUpdate(DocumentEvent changes, Shape a, ViewFactory vf) { layoutPool.changedUpdate(changes, a, vf); strategy.changedUpdate(this, changes, getInsideAllocation(a)); } | 21,239 |
public int getFlowStart(int index) { return getLeftInset(); // TODO: Is this correct? } | public int getFlowStart(int index) { return 0; // TODO: Is this correct? } | 21,240 |
public void insertUpdate(DocumentEvent changes, Shape a, ViewFactory vf) { // First we must send the insertUpdate to the logical view so it can // be updated accordingly. layoutPool.insertUpdate(changes, a, vf); strategy.insertUpdate(this, changes, getInsideAllocation(a)); layoutDirty = true; } | public void insertUpdate(DocumentEvent changes, Shape a, ViewFactory vf) { // First we must send the insertUpdate to the logical view so it can // be updated accordingly. layoutPool.insertUpdate(changes, a, vf); strategy.insertUpdate(this, changes, getInsideAllocation(a)); } | 21,241 |
protected void layout(int width, int height) { int flowAxis = getFlowAxis(); if (flowAxis == X_AXIS) { if (layoutSpan != width) { layoutChanged(Y_AXIS); layoutSpan = width; } } else { if (layoutSpan != height) { layoutChanged(X... | protected void layout(int width, int height) { int flowAxis = getFlowAxis(); if (flowAxis == X_AXIS) { if (layoutSpan != width) { layoutChanged(Y_AXIS); layoutSpan = width; } } else { if (layoutSpan != height) { layoutChanged(X... | 21,242 |
protected void layout(int width, int height) { int flowAxis = getFlowAxis(); if (flowAxis == X_AXIS) { if (layoutSpan != width) { layoutChanged(Y_AXIS); layoutSpan = width; } } else { if (layoutSpan != height) { layoutChanged(X... | protected void layout(int width, int height) { int flowAxis = getFlowAxis(); if (flowAxis == X_AXIS) { if (layoutSpan != width) { layoutChanged(Y_AXIS); layoutSpan = width; } } else { if (layoutSpan != height) { layoutChanged(X... | 21,243 |
protected void layout(int width, int height) { int flowAxis = getFlowAxis(); if (flowAxis == X_AXIS) { if (layoutSpan != width) { layoutChanged(Y_AXIS); layoutSpan = width; } } else { if (layoutSpan != height) { layoutChanged(X... | protected void layout(int width, int height) { int flowAxis = getFlowAxis(); if (flowAxis == X_AXIS) { if (layoutSpan != width) { layoutChanged(Y_AXIS); layoutSpan = width; } } else { if (layoutSpan != height) { layoutChanged(X... | 21,244 |
protected void layout(int width, int height) { int flowAxis = getFlowAxis(); if (flowAxis == X_AXIS) { if (layoutSpan != width) { layoutChanged(Y_AXIS); layoutSpan = width; } } else { if (layoutSpan != height) { layoutChanged(X... | protected void layout(int width, int height) { int flowAxis = getFlowAxis(); if (flowAxis == X_AXIS) { if (layoutSpan != width) { layoutChanged(Y_AXIS); layoutSpan = width; } } else { if (layoutSpan != height) { layoutChanged(X... | 21,245 |
protected void loadChildren(ViewFactory vf) { if (layoutPool == null) { layoutPool = new LogicalView(getElement(), getAxis()); layoutPool.setParent(this); } } | protected void loadChildren(ViewFactory vf) { if (layoutPool == null) { layoutPool = new LogicalView(getElement(), getAxis()); layoutPool.setParent(this); } } | 21,246 |
public void removeUpdate(DocumentEvent changes, Shape a, ViewFactory vf) { layoutPool.removeUpdate(changes, a, vf); strategy.removeUpdate(this, changes, getInsideAllocation(a)); layoutDirty = true; } | public void removeUpdate(DocumentEvent changes, Shape a, ViewFactory vf) { layoutPool.removeUpdate(changes, a, vf); strategy.removeUpdate(this, changes, getInsideAllocation(a)); } | 21,248 |
public void layoutChanged(int axis) { switch (axis) { case X_AXIS: xLayoutValid = false; break; case Y_AXIS: yLayoutValid = false; break; default: throw new IllegalArgumentException("Invalid axis parameter."); } } | public void layoutChanged(int axis) { switch (axis) { case X_AXIS: xLayoutValid = false; break; case Y_AXIS: yLayoutValid = false; break; default: throw new IllegalArgumentException("Invalid axis parameter."); } } | 21,249 |
public void layoutChanged(int axis) { switch (axis) { case X_AXIS: xLayoutValid = false; break; case Y_AXIS: yLayoutValid = false; break; default: throw new IllegalArgumentException("Invalid axis parameter."); } } | public void layoutChanged(int axis) { switch (axis) { case X_AXIS: xLayoutValid = false; break; case Y_AXIS: yLayoutValid = false; break; default: throw new IllegalArgumentException("Invalid axis parameter."); layoutValid[axis] = false; layoutValid[axis... | 21,250 |
protected void layout(int width, int height) { baselineLayout(width, X_AXIS, offsetsX, spansX); baselineLayout(height, Y_AXIS, offsetsY, spansY); } | protected void layout(int width, int height) { baselineLayout(width, X_AXIS, offsetsX, spansX); baselineLayout(height, Y_AXIS, offsetsY, spansY); } | 21,251 |
protected boolean isLayoutValid(int axis) { boolean valid = false; switch (axis) { case X_AXIS: valid = xLayoutValid; break; case Y_AXIS: valid = yLayoutValid; break; default: throw new IllegalArgumentException("Invalid axis parameter."); } return ... | protected boolean isLayoutValid(int axis) { boolean valid = false; switch (axis) { case X_AXIS: valid = xLayoutValid; break; case Y_AXIS: valid = yLayoutValid; break; default: throw new IllegalArgumentException("Invalid axis parameter."); } return ... | 21,252 |
protected boolean isLayoutValid(int axis) { boolean valid = false; switch (axis) { case X_AXIS: valid = xLayoutValid; break; case Y_AXIS: valid = yLayoutValid; break; default: throw new IllegalArgumentException("Invalid axis parameter."); } return ... | protected boolean isLayoutValid(int axis) { boolean valid = false; switch (axis) { case X_AXIS: valid = xLayoutValid; break; case Y_AXIS: valid = yLayoutValid; break; default: throw new IllegalArgumentException("Invalid axis parameter."); } return ... | 21,253 |
public void insert(MenuItem item, int index) { if (index < 0) throw new IllegalArgumentException("Index is less than zero"); items.insertElementAt(item, index); MenuPeer mp = (MenuPeer) getPeer(); // FIXME: Need to add a peer method here. // if (mp != null) // mp.insertItem(item, index); } | insert(MenuItem item, int index) { if (index < 0) throw new IllegalArgumentException("Index is less than zero"); items.insertElementAt(item, index); MenuPeer mp = (MenuPeer) getPeer(); // FIXME: Need to add a peer method here. // if (mp != null) // mp.insertItem(item, index); } | 21,254 |
public void insertSeparator(int index) { insert(separator, index); } | public void insertSeparator(int index) { insert(separator, index); } | 21,255 |
public boolean isTearOff() { return (isTearOff); } | public boolean isTearOff() { return (isTearOff); } | 21,256 |
public String paramString() { return (",isTearOff=" + isTearOff + ",isHelpMenu=" + isHelpMenu + super.paramString()); } | public String paramString() { return (",isTearOff=" + isTearOff + ",isHelpMenu=" + isHelpMenu + super.paramString()); } | 21,257 |
public synchronized void remove(int index) { items.removeElementAt(index); MenuPeer mp = (MenuPeer) getPeer(); if (mp != null) mp.delItem(index); } | remove(int index) { items.removeElementAt(index); MenuPeer mp = (MenuPeer) getPeer(); if (mp != null) mp.delItem(index); } | 21,258 |
public synchronized void removeAll() { int count = getItemCount(); for (int i = 0; i < count; i++) { // We must always remove item 0. remove(0); } } | removeAll() { int count = getItemCount(); for (int i = 0; i < count; i++) { // We must always remove item 0. remove(0); } } | 21,259 |
public void removeNotify() { super.removeNotify(); } | public void removeNotify() { super.removeNotify(); } | 21,260 |
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... | 21,262 |
public Component locate(int x, int y) { synchronized (getTreeLock ()) { if (!contains (x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible ()) continue; int x2 = x... | public Component locate(int x, int y) { synchronized (getTreeLock ()) { if (!contains (x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible ()) continue; int x2 = x... | 21,263 |
public Component locate(int x, int y) { synchronized (getTreeLock ()) { if (!contains (x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible ()) continue; int x2 = x... | public Component locate(int x, int y) { synchronized (getTreeLock ()) { if (!contains (x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible ()) continue; int x2 = x... | 21,264 |
public ActivationGroupID(ActivationSystem system) { this.system = system; } | public ActivationGroupID(ActivationSystem aSystem) { this.system = system; } | 21,265 |
public ActivationGroupID(ActivationSystem system) { this.system = system; } | public ActivationGroupID(ActivationSystem system) { system = aSystem; uid = new UID(); } | 21,266 |
public PolicyError(String a_details, short a_reason) { super(a_details); reason = a_reason; } | public PolicyError() { super(a_details); reason = a_reason; } | 21,267 |
public PolicyError(String a_details, short a_reason) { super(a_details); reason = a_reason; } | public PolicyError(String a_details, short a_reason) { super(a_details); reason = a_reason; } | 21,268 |
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(... | public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores"); AccessController.doPrivileged (new PrivilegedAction() { public Object run() { // Note that all implementation class nam... | 21,269 |
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(... | public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(... | 21,270 |
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(... | public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(... | 21,271 |
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(... | public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(... | 21,272 |
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(... | public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(... | 21,273 |
public Object run() { // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Signature.SHA1withDSA", gnu.java.security.provider.DSAS... | public Object run() { // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Signature.SHA1withDSA", gnu.java.security.provider.DSAS... | 21,274 |
public Object run() { // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Signature.SHA1withDSA", gnu.java.security.provider.DSAS... | public Object run() { // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Signature.SHA1withDSA", gnu.java.security.provider.DSAS... | 21,275 |
public Object run() { // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Signature.SHA1withDSA", gnu.java.security.provider.DSAS... | public Object run() { // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Signature.SHA1withDSA", gnu.java.security.provider.DSAS... | 21,276 |
public Object run() { // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Signature.SHA1withDSA", gnu.java.security.provider.DSAS... | public Object run() { // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Signature.SHA1withDSA", gnu.java.security.provider.DSAS... | 21,277 |
public JProgressBar(int minimum, int maximum) { this(minimum, maximum, HORIZONTAL); } | public JProgressBar() { this(minimum, maximum, HORIZONTAL); } | 21,278 |
public JProgressBar(int minimum, int maximum) { this(minimum, maximum, HORIZONTAL); } | public JProgressBar(int minimum, int maximum) { this(0, 100, HORIZONTAL); } | 21,279 |
public JOptionPane(Object message, int messageType) { this(message, messageType, DEFAULT_OPTION, null, null, null); } | public JOptionPane() { this(message, messageType, DEFAULT_OPTION, null, null, null); } | 21,280 |
public JOptionPane(Object message, int messageType) { this(message, messageType, DEFAULT_OPTION, null, null, null); } | public JOptionPane(Object message, int messageType) { this("JOptionPane message", PLAIN_MESSAGE, DEFAULT_OPTION, null, null, null); } | 21,281 |
public Object put(Object key, Object value) { Object old; if (value != null) old = super.put(key, value); else old = super.remove(key); if (key instanceof String && old != value) firePropertyChange((String) key, old, value); return old; } | public Object put(Object key, Object value) { Object old; if (value != null) old = super.put(key, value); else old = super.remove(key); if (key instanceof String && old != value) firePropertyChange((String) key, old, value); return old; } | 21,282 |
public void putDefaults(Object[] entries) { for (int i = 0; (2 * i + 1) < entries.length; ++i) { super.put(entries[2 * i], entries[2 * i + 1]); } firePropertyChange("UIDefaults", null, null); } | public void putDefaults(Object[] entries) { for (int i = 0; (2 * i + 1) < entries.length; ++i) { checkAndPut(entries[2 * i], entries[2 * i + 1]); } firePropertyChange("UIDefaults", null, null); } | 21,283 |
private final void detectDeadlock() throws UninterruptiblePragma { if (threadState == WAITING) { walkWaitingThreads(this); } } | private final void detectDeadlock() throws UninterruptiblePragma { if (threadState == WAITING) { walkWaitingThreads(this); } } | 21,284 |
public final void interrupt() throws UninterruptiblePragma { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true); try { switch (threadState) { cas... | public final void interrupt() { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true); try { switch (threadState) { case ASLEEP: case WAI... | 21,285 |
public final void interrupt() throws UninterruptiblePragma { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true); try { switch (threadState) { cas... | public final void interrupt() throws UninterruptiblePragma { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true); try { switch (threadState) { cas... | 21,286 |
public final boolean isAlive() { switch (threadState) { case CREATED: return false; case RUNNING: case SUSPENDED: case WAITING: case ASLEEP: case YIELDING: return !stopping; case STOPPED: case DESTROYED: return false; ... | public final boolean isAlive() { switch (threadState) { case CREATED: return false; case RUNNING: case SUSPENDED: case WAITING_ENTER: case WAITING_NOTIFY: case WAITING_NOTIFY_TIMEOUT: case ASLEEP: case YIELDING: return !stopping; case STO... | 21,287 |
public final boolean isWaiting() { return (threadState == WAITING); } | public final boolean isWaiting() { return ((threadState >= WAITING_ENTER) && (threadState <= WAITING_NOTIFY_TIMEOUT)); } | 21,288 |
final void prepareWait(Monitor monitor) throws UninterruptiblePragma { // Keep this order of assignments! this.waitForMonitor = monitor; this.threadState = WAITING; } | final void prepareWait(Monitor monitor, int waitState) { // Keep this order of assignments! this.waitForMonitor = monitor; this.threadState = WAITING; } | 21,289 |
final void prepareWait(Monitor monitor) throws UninterruptiblePragma { // Keep this order of assignments! this.waitForMonitor = monitor; this.threadState = WAITING; } | final void prepareWait(Monitor monitor) throws UninterruptiblePragma { // Keep this order of assignments! this.waitForMonitor = monitor; this.threadState = waitState; } | 21,290 |
public final void start() { switch (threadState) { case CREATED: { //Screen.debug("thread.start"); final VmScheduler scheduler = VmMagic.currentProcessor().getScheduler(); stack = VmSystem.allocStack(stackSize); Unsafe.initThread(t... | public final void start() { switch (threadState) { case CREATED: { //Screen.debug("thread.start"); final VmScheduler scheduler = VmMagic.currentProcessor().getScheduler(); stack = VmSystem.allocStack(stackSize); Unsafe.initThread(t... | 21,291 |
final void verifyState() throws UninterruptiblePragma { switch (threadState) { case CREATED: if (queueEntry.isInUse()) { throw new Error( "Created thread cannot have an inuse queueEntry"); } if (sleepQueueEntry.isInUse()) { throw new Error( "... | final void verifyState() throws UninterruptiblePragma { switch (threadState) { case CREATED: if (queueEntry.isInUse()) { throw new Error( "Created thread cannot have an inuse queueEntry"); } if (sleepQueueEntry.isInUse()) { throw new Error( "... | 21,292 |
final void wakeUpByScheduler() { switch (threadState) { case ASLEEP: case RUNNING: case YIELDING: { // Do nothing } break; case WAITING: { final Monitor mon = this.waitForMonitor; mon.removeTh... | final void wakeUpByScheduler() { switch (threadState) { case ASLEEP: case RUNNING: case YIELDING: { // Do nothing } break; case WAITING: { final Monitor mon = this.waitForMonitor; mon.removeTh... | 21,293 |
final void wakeupAfterMonitor(Monitor monitor) { if (this.threadState == WAITING) { final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true); try { this.threadState = RUNNING; proc.getScheduler().addToReadyQueue(this, fal... | final void wakeupAfterMonitor(Monitor monitor) { if (isWaiting()) { final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true); try { this.threadState = RUNNING; proc.getScheduler().addToReadyQueue(this, false, "thread.wake... | 21,294 |
private final void walkWaitingThreads(VmThread thread) throws UninterruptiblePragma { if (thread == null) { return; } final Monitor waitForMonitor = thread.waitForMonitor; if (waitForMonitor == null) { return; } final VmThread owner = waitForMonitor.ge... | private final void walkWaitingThreads(VmThread thread) { if (thread == null) { return; } final Monitor waitForMonitor = thread.waitForMonitor; if (waitForMonitor == null) { return; } final VmThread owner = waitForMonitor.getOwner(); if (owner ==... | 21,295 |
public void from_any(Any an_any) throws TypeMismatch, InvalidValue { checkType(official_type, an_any.type()); try { Streamable s = an_any.extract_Streamable(); Object members = s.getClass().getField("value").get(s); checkArrayValid(members); Any member; St... | public void from_any(Any an_any) throws TypeMismatch, InvalidValue { checkType(official_type, an_any.type()); try { Streamable s = an_any.extract_Streamable(); Object members = s.getClass().getField("value").get(s); checkArrayValid(members); Any member; St... | 21,296 |
public void from_any(Any an_any) throws TypeMismatch, InvalidValue { checkType(official_type, an_any.type()); try { Streamable s = an_any.extract_Streamable(); Object members = s.getClass().getField("value").get(s); checkArrayValid(members); Any member; St... | public void from_any(Any an_any) throws TypeMismatch, InvalidValue { checkType(official_type, an_any.type()); try { Streamable s = an_any.extract_Streamable(); Object members = s.getClass().getField("value").get(s); checkArrayValid(members); Any member; St... | 21,297 |
public Any to_any() { try { Streamable memberHolder = holderFactory.createHolder(official_components); if (memberHolder == null) memberHolder = holderFactory.createHolder(final_components); Class memberHolderClass = memberHolder.getClass(); Class memberClass = me... | public Any to_any() { try { Streamable memberHolder = HolderLocator.createHolder(official_components); if (memberHolder == null) memberHolder = holderFactory.createHolder(final_components); Class memberHolderClass = memberHolder.getClass(); Class memberClass = me... | 21,298 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.