rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
} | fireTableDataChanged(); } | public void insertRow(int row, Vector rowData) { dataVector.add(row, rowData); } // insertRow() |
int index; Vector vector; for (index = 0; index < (endIndex - startIndex); index++) { vector = (Vector) dataVector.remove(startIndex); | for (int index = 0; index < (endIndex - startIndex); index++) { Vector vector = (Vector) dataVector.remove(startIndex); | 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() |
} } | } fireTableDataChanged(); } | 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 newRowsAdded(TableModelEvent event) { } | public void newRowsAdded(TableModelEvent event) { fireTableChanged(event); } | public void newRowsAdded(TableModelEvent event) { // TODO } // newRowsAdded() |
} | fireTableDataChanged(); } | public void removeRow(int row) { dataVector.remove(row); } // removeRow() |
public void setColumnCount(int columnCount) { } | public void setColumnCount(int columnCount) { for (int i = 0; i < dataVector.size(); ++i) { ((Vector) dataVector.get(i)).setSize(columnCount); } columnIdentifiers.setSize(columnCount); fireTableDataChanged(); } | public void setColumnCount(int columnCount) { // TODO } // setColumnCount() |
public void setDataVector(Vector data, Vector columnNames) { int rowIndex; int numRows; int numColumns; Vector columnVector; | public void setDataVector(Vector data, Vector columnNames) { | 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... |
numRows = data.size(); numColumns = columnNames.size(); for (rowIndex = 0; rowIndex < numRows; rowIndex++) { columnVector = (Vector) dataVector.get(rowIndex); columnVector.setSize(numColumns); } } | for (int r = 0; r < data.size(); r++) { ((Vector) dataVector.get(r)).setSize(columnNames.size()); } } | 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 setRowCount(int rowCount) { } | public void setRowCount(int rowCount) { dataVector.setSize(rowCount); fireTableDataChanged(); } | public void setRowCount(int rowCount) { // TODO } // setRowCount() |
Vector rowVector; rowVector = (Vector) dataVector.get(row); rowVector.remove(column); rowVector.add(column, value); } | ((Vector) dataVector.get(row)).set(column, value); fireTableDataChanged(); } | 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() |
limit(capacity()); | public IntBuffer compact () { int copied = 0; while (remaining () > 0) { put (copied, get ()); copied++; } position (copied); return this; } | |
int maxBreakWeight = View.BadBreakWeight; int breakX = x; int breakSpan = desiredSpan; int currentX = x; int currentSpan = desiredSpan; | int breakWeight = BadBreakWeight; int breakSpan = 0; int currentSpan = 0; | 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... |
int weight = view.getBreakWeight(axis, currentX, currentSpan); if (weight >= maxBreakWeight) | int spanLeft = desiredSpan - currentSpan; int weight = view.getBreakWeight(axis, x + currentSpan, spanLeft); if (weight >= breakWeight && weight > BadBreakWeight) | 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... |
breakX = currentX; | 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... | |
maxBreakWeight = weight; | breakWeight = weight; if (weight >= ForcedBreakWeight) break; | 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... |
int size = (int) view.getPreferredSpan(axis); currentX += size; currentSpan -= size; | currentSpan += view.getPreferredSpan(axis); | 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... |
if (breakIndex > -1) | if (breakIndex >= 0) | 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... |
breakX, breakSpan); | x + breakSpan, spanLeft); View lv = getLogicalView(fv); for (int i = breakIndex; i < count; i++) { View tmp = row.getView(i); if (contains(lv, tmp)) tmp.setParent(lv); else if (tmp.getViewCount() > 0) reparent(tmp, lv); } | 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... |
if (alloc == null) { fv.layoutChanged(X_AXIS); fv.layoutChanged(Y_AXIS); } else { Component host = fv.getContainer(); if (host != null) host.repaint(alloc.x, alloc.y, alloc.width, alloc.height); } | public void changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { // The default implementation does nothing. } | |
int index = logicalView.getViewIndex(startOffset, Position.Bias.Forward); View retVal = null; if (index >= 0) { retVal = logicalView.getView(index); | int index = logicalView.getViewIndex(startOffset, Position.Bias.Forward); View retVal = logicalView.getView(index); | 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;... | |
if (alloc == null) { fv.layoutChanged(X_AXIS); fv.layoutChanged(Y_AXIS); } else { Component host = fv.getContainer(); if (host != null) host.repaint(alloc.x, alloc.y, alloc.width, alloc.height); } | public void insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { // The default implementation does nothing. } | |
Element el = fv.getElement(); | 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... | |
int rowStart = el.getStartOffset(); int end = el.getEndOffset(); int rowIndex = 0; while (rowStart >= 0 && rowStart < end) | for (int rowIndex = 0; start < end; rowIndex++) | 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... |
rowStart = layoutRow(fv, rowIndex, rowStart); rowIndex++; | int next = layoutRow(fv, rowIndex, start); if (row.getViewCount() == 0) { row.append(createView(fv, start, Integer.MAX_VALUE, rowIndex)); next = row.getEndOffset(); } if (start < next) start = next; else assert false: "May not happen"; | 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... |
int offset = pos; View logicalView = getLogicalView(fv); if (span == 0) span = Integer.MAX_VALUE; | int end = fv.getEndOffset(); | 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... |
Row: while (span > 0) | int preX = x; int availableSpan = span; TabExpander tabExp = fv instanceof TabExpander ? (TabExpander) fv : null; boolean forcedBreak = false; while (pos < end && span >= 0) | 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... |
if (logicalView.getViewIndex(offset, Position.Bias.Forward) == - 1) break; View view = createView(fv, offset, span, rowIndex); if (view == null) | View view = createView(fv, pos, span, rowIndex); if (view == null || (span == 0 && view.getPreferredSpan(axis) > 0)) | 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... |
int viewSpan = (int) view.getPreferredSpan(axis); int breakWeight = view.getBreakWeight(axis, x, span); row.append(view); offset += (view.getEndOffset() - view.getStartOffset()); x += viewSpan; span -= viewSpan; | int viewSpan; if (axis == X_AXIS && view instanceof TabableView) viewSpan = (int) ((TabableView) view).getTabbedSpan(x, tabExp); else viewSpan = (int) view.getPreferredSpan(axis); | 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... |
if (span < 0 || breakWeight >= View.ForcedBreakWeight) | int breakWeight = view.getBreakWeight(axis, pos, span); if (breakWeight >= ForcedBreakWeight) | 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... |
int flowStart = fv.getFlowStart(axis); int flowSpan = fv.getFlowSpan(axis); adjustRow(fv, rowIndex, flowSpan, flowStart); | 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... | |
offset = row.getView(rowViewCount - 1).getEndOffset(); | { view = view.breakView(axis, pos, x, span); if (view != null) { if (axis == X_AXIS && view instanceof TabableView) viewSpan = (int) ((TabableView) view).getTabbedSpan(x, tabExp); | 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... |
offset = - 1; break Row; | viewSpan = (int) view.getPreferredSpan(axis); | 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... |
return offset != pos ? offset : - 1; | if (span < 0) adjustRow(fv, rowIndex, availableSpan, preX); else if (row.getViewCount() == 0) { View view = createView(fv, pos, Integer.MAX_VALUE, rowIndex); row.append(view); } return row.getEndOffset(); | 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... |
if (alloc == null) { fv.layoutChanged(X_AXIS); fv.layoutChanged(Y_AXIS); } else { Component host = fv.getContainer(); if (host != null) host.repaint(alloc.x, alloc.y, alloc.width, alloc.height); } | public void removeUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { // The default implementation does nothing. } | |
LogicalView(Element el, int axis) | LogicalView(Element el) | LogicalView(Element el, int axis) { super(el, axis); } |
super(el, axis); | super(el); | LogicalView(Element el, int axis) { super(el, axis); } |
layoutDirty = true; | layoutSpan = Short.MAX_VALUE; | public FlowView(Element element, int axis) { super(element, axis); strategy = sharedStrategy; layoutDirty = true; } |
(int) layoutPool.getMinimumSpan(axis)); | (int) layoutPool.getPreferredSpan(axis)); | 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(... |
layoutDirty = true; | public void changedUpdate(DocumentEvent changes, Shape a, ViewFactory vf) { layoutPool.changedUpdate(changes, a, vf); strategy.changedUpdate(this, changes, getInsideAllocation(a)); layoutDirty = true; } | |
return getLeftInset(); | return 0; | public int getFlowStart(int index) { return getLeftInset(); // TODO: Is this correct? } |
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)); layoutDirty = true; } | |
if (layoutSpan != width) { layoutChanged(Y_AXIS); layoutSpan = width; } } else { if (layoutSpan != height) { layoutChanged(X_AXIS); layoutSpan = height; } | layoutChanged(flowAxis); layoutChanged(getAxis()); layoutSpan = span; | 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... |
if (layoutDirty) | if (! isLayoutValid(flowAxis)) | 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... |
layoutDirty = false; | int newSpan = (int) getPreferredSpan(axis); if (oldSpan != newSpan) { View parent = getParent(); if (parent != null) parent.preferenceChanged(this, axis == X_AXIS, axis == Y_AXIS); } | 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... |
if (getPreferredSpan(getAxis()) != height) preferenceChanged(this, false, true); | 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... | |
layoutPool = new LogicalView(getElement(), getAxis()); layoutPool.setParent(this); | layoutPool = new LogicalView(getElement()); | protected void loadChildren(ViewFactory vf) { if (layoutPool == null) { layoutPool = new LogicalView(getElement(), getAxis()); layoutPool.setParent(this); } } |
layoutPool.setParent(this); strategy.insertUpdate(this, null, null); | protected void loadChildren(ViewFactory vf) { if (layoutPool == null) { layoutPool = new LogicalView(getElement(), getAxis()); layoutPool.setParent(this); } } | |
layoutDirty = true; | public void removeUpdate(DocumentEvent changes, Shape a, ViewFactory vf) { layoutPool.removeUpdate(changes, a, vf); strategy.removeUpdate(this, changes, getInsideAllocation(a)); layoutDirty = true; } | |
switch (axis) { case X_AXIS: xLayoutValid = false; break; case Y_AXIS: yLayoutValid = false; break; default: | if (axis != X_AXIS && axis != Y_AXIS) | 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; | 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."); } } |
baselineLayout(width, X_AXIS, offsetsX, spansX); baselineLayout(height, Y_AXIS, offsetsY, spansY); | int[] newSpan = new int[]{ width, height }; int count = getViewCount(); int minorAxis = myAxis == X_AXIS ? Y_AXIS : X_AXIS; if ((! isLayoutValid(minorAxis)) || newSpan[minorAxis] != span[minorAxis]) { requirements[minorAxis] = calculateMinorAxisRequirements(minorAxis, requirements[minorAxis]); layoutMinorAxis(newSp... | protected void layout(int width, int height) { baselineLayout(width, X_AXIS, offsetsX, spansX); baselineLayout(height, Y_AXIS, offsetsY, spansY); } |
boolean valid = false; switch (axis) { case X_AXIS: valid = xLayoutValid; break; case Y_AXIS: valid = yLayoutValid; break; default: | if (axis != X_AXIS && axis != Y_AXIS) | 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 ... |
} return valid; | return layoutValid[axis]; | 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 ... |
public void insert(MenuItem item, int index) { | insert(MenuItem item, int index) { | 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); } |
public void insertSeparator(int index) { insert(separator, index); } | insertSeparator(int index) { insert(new MenuItem(separatorLabel), index); } | public void insertSeparator(int index) { insert(separator, index); } |
public boolean isTearOff() { return (isTearOff); } | isTearOff() { return(isTearOff); } | public boolean isTearOff() { return (isTearOff); } |
public String paramString() { return (",isTearOff=" + isTearOff + ",isHelpMenu=" + isHelpMenu + super.paramString()); } | paramString() { return (",isTearOff=" + isTearOff + ",isHelpMenu=" + isHelpMenu + super.paramString()); } | public String paramString() { return (",isTearOff=" + isTearOff + ",isHelpMenu=" + isHelpMenu + super.paramString()); } |
public synchronized void remove(int index) { | remove(int index) { | public synchronized void remove(int index) { items.removeElementAt(index); MenuPeer mp = (MenuPeer) getPeer(); if (mp != null) mp.delItem(index); } |
public synchronized void removeAll() { | removeAll() { | public synchronized void removeAll() { int count = getItemCount(); for (int i = 0; i < count; i++) { // We must always remove item 0. remove(0); } } |
public void removeNotify() { super.removeNotify(); | removeNotify() { Enumeration e = items.elements(); while (e.hasMoreElements()) { MenuItem mi = (MenuItem) e.nextElement(); mi.removeNotify(); | public void removeNotify() { super.removeNotify(); } |
super.removeNotify(); } | public void removeNotify() { super.removeNotify(); } | |
repaint(comp.getX(), comp.getY(), comp.getWidth(), comp.getHeight()); | 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)... | |
if (!component[i].isVisible ()) continue; | Component comp = component[i]; int x2 = x - comp.x; int y2 = y - comp.y; if (comp.contains (x2, y2) && !comp.isLightweight()) return comp; } | 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... |
int x2 = x - component[i].x; int y2 = y - component[i].y; if (component[i].contains (x2, y2)) return component[i]; | for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; int x2 = x - comp.x; int y2 = y - comp.y; if (comp.contains (x2, y2) && comp.isLightweight()) return comp; | 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 ActivationGroupID(ActivationSystem system) | public ActivationGroupID(ActivationSystem aSystem) | public ActivationGroupID(ActivationSystem system) { this.system = system; } |
this.system = system; | system = aSystem; uid = new UID(); | public ActivationGroupID(ActivationSystem system) { this.system = system; } |
public PolicyError(String a_details, short a_reason) | public PolicyError() | public PolicyError(String a_details, short a_reason) { super(a_details); reason = a_reason; } |
super(a_details); reason = a_reason; | public PolicyError(String a_details, short a_reason) { super(a_details); reason = a_reason; } | |
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"); | 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"); | 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(... |
put("KeyPairGenerator.DiffieHellman", DiffieHellmanKeyPairGeneratorImpl.class.getName ()); | 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(... | |
put("Alg.Alias.KeyPairGenerator.DH", "DiffieHellman"); | 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(... | |
put("KeyFactory.DiffieHellman", DiffieHellmanKeyFactoryImpl.class.getName()); put("Alg.Alias.KeyFactory.DH", "DiffieHellman"); | 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(... | |
put("KeyAgreement.DiffieHellman", gnu.javax.crypto.DiffieHellmanImpl.class.getName()); put("Alg.Alias.KeyAgreement.DH", "DiffieHellman"); put("Cipher.RSAES-PKCS1-v1_5", gnu.javax.crypto.RSACipherImpl.class.getName()); put("Alg.Alias.Cipher.RSA", "RSAES-PKCS1-v1_5"); | 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(... | |
put("KeyPairGenerator.DiffieHellman", DiffieHellmanKeyPairGeneratorImpl.class.getName ()); | 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... | |
put("Alg.Alias.KeyPairGenerator.DH", "DiffieHellman"); | 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... | |
put("KeyFactory.DiffieHellman", DiffieHellmanKeyFactoryImpl.class.getName()); put("Alg.Alias.KeyFactory.DH", "DiffieHellman"); | 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... | |
put("KeyAgreement.DiffieHellman", gnu.javax.crypto.DiffieHellmanImpl.class.getName()); put("Alg.Alias.KeyAgreement.DH", "DiffieHellman"); put("Cipher.RSAES-PKCS1-v1_5", gnu.javax.crypto.RSACipherImpl.class.getName()); put("Alg.Alias.Cipher.RSA", "RSAES-PKCS1-v1_5"); | 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 JProgressBar(int minimum, int maximum) | public JProgressBar() | public JProgressBar(int minimum, int maximum) { this(minimum, maximum, HORIZONTAL); } |
this(minimum, maximum, HORIZONTAL); | this(0, 100, HORIZONTAL); | public JProgressBar(int minimum, int maximum) { this(minimum, maximum, HORIZONTAL); } |
public JOptionPane(Object message, int messageType) | public JOptionPane() | public JOptionPane(Object message, int messageType) { this(message, messageType, DEFAULT_OPTION, null, null, null); } |
this(message, messageType, DEFAULT_OPTION, null, null, null); | this("JOptionPane message", PLAIN_MESSAGE, DEFAULT_OPTION, null, null, null); | public JOptionPane(Object message, int messageType) { this(message, messageType, DEFAULT_OPTION, null, null, null); } |
Object old; if (value != null) old = super.put(key, value); else old = super.remove(key); | Object old = checkAndPut(key, value); | 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; } |
super.put(entries[2 * i], entries[2 * i + 1]); | checkAndPut(entries[2 * i], entries[2 * i + 1]); | 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); } |
private final void detectDeadlock() throws UninterruptiblePragma { if (threadState == WAITING) { walkWaitingThreads(this); | private final void detectDeadlock() { if (isWaiting()) { walkWaitingThreads(this); | private final void detectDeadlock() throws UninterruptiblePragma { if (threadState == WAITING) { walkWaitingThreads(this); } } |
public final void interrupt() throws UninterruptiblePragma { | public final void interrupt() { | 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... |
case WAITING: { wakeUpByScheduler(); proc.getScheduler().addToReadyQueue(this, false, "thread.interrupt"); } | case WAITING_ENTER: case WAITING_NOTIFY: case WAITING_NOTIFY_TIMEOUT: { wakeUpByScheduler(); proc.getScheduler().addToReadyQueue(this, false, "thread.interrupt"); } | 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... |
case WAITING: | case WAITING_ENTER: case WAITING_NOTIFY: case WAITING_NOTIFY_TIMEOUT: | 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; ... |
return (threadState == WAITING); | return ((threadState >= WAITING_ENTER) && (threadState <= WAITING_NOTIFY_TIMEOUT)); | public final boolean isWaiting() { return (threadState == WAITING); } |
final void prepareWait(Monitor monitor) throws UninterruptiblePragma { | final void prepareWait(Monitor monitor, int waitState) { | final void prepareWait(Monitor monitor) throws UninterruptiblePragma { // Keep this order of assignments! this.waitForMonitor = monitor; this.threadState = WAITING; } |
this.threadState = WAITING; | this.threadState = waitState; | final void prepareWait(Monitor monitor) throws UninterruptiblePragma { // Keep this order of assignments! this.waitForMonitor = monitor; this.threadState = WAITING; } |
case WAITING: | case WAITING_ENTER: case WAITING_NOTIFY: case WAITING_NOTIFY_TIMEOUT: | 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... |
case WAITING: if (waitForMonitor == null) { throw new Error( "Waiting thread must have a waitForMonitor"); } if (!queueEntry.isInUse()) { throw new Error( "Waiting thread must have an inuse queueEntry"); } | case WAITING_ENTER: case WAITING_NOTIFY: case WAITING_NOTIFY_TIMEOUT: if (waitForMonitor == null) { throw new Error("Waiting thread must have a waitForMonitor"); } if (!queueEntry.isInUse()) { throw new Error("Waiting thread must have an inuse queueEntry"); } | 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( "... |
case WAITING: { final Monitor mon = this.waitForMonitor; mon.removeThreadFromQueues(this); } | case WAITING_ENTER: case WAITING_NOTIFY: case WAITING_NOTIFY_TIMEOUT: { final Monitor mon = this.waitForMonitor; mon.removeThreadFromQueues(this); } | final void wakeUpByScheduler() { switch (threadState) { case ASLEEP: case RUNNING: case YIELDING: { // Do nothing } break; case WAITING: { final Monitor mon = this.waitForMonitor; mon.removeTh... |
if (this.threadState == WAITING) { | if (isWaiting()) { | 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... |
private final void walkWaitingThreads(VmThread thread) throws UninterruptiblePragma { | private final void walkWaitingThreads(VmThread thread) { | 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... |
holder = holderFactory.createHolder(official_components); | holder = HolderLocator.createHolder(official_components); | 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... |
holder = holderFactory.createHolder(final_components); | holder = HolderLocator.createHolder(final_components); | 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... |
holderFactory.createHolder(official_components); | HolderLocator.createHolder(official_components); | 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... |
memberHolder = holderFactory.createHolder(final_components); | memberHolder = HolderLocator.createHolder(final_components); | 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.