bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
30,360
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
30,361
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
30,362
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
30,363
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
30,364
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
30,365
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
30,366
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
30,367
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
30,368
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
30,369
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
30,370
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
30,371
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
30,372
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
30,373
static void printArguments(String[] args) { if (verbose) { System.out.println("raw arguments:"); for (int i = 0; i < args.length; i++) System.out.println(" " + args[i]); } }
static void printArguments(String[] args) { if (verbose) { System.out.println(Messages.getString("Main.RawArguments")); for (int i = 0; i < args.length; i++) System.out.println(" " + args[i]); } }
30,374
public int rowAtPoint(Point point) { if (point != null) { int y0 = getLocation().y; int nrows = getRowCount(); Dimension gap = getIntercellSpacing(); int height = getRowHeight() + (gap == null ? 0 : gap.height); int y = point.y; for (int i = 0; i < nrows; ++i) ...
public int rowAtPoint(Point point) { if (point != null) { int y0 = getLocation().y; int nrows = getRowCount(); Dimension gap = getIntercellSpacing(); int height = getRowHeight() + (gap == null ? 0 : gap.height); int y = point.y; for (int i = 0; i < nrows; ++i) ...
30,375
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalInternalFrameUI((JInternalFrame) component); return instance; }
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalInternalFrameUI instance; if (o == null) { instance = new MetalInternalFrameUI((JInternalFrame) component); return instance; }
30,377
protected AccessibleJDesktopPane(JDesktopPane component) { super(component); // TODO } // AccessibleJDesktopPane()
protected AccessibleJDesktopPane(JDesktopPane component) { super(component); // TODO } // AccessibleJDesktopPane()
30,379
public AccessibleRole getAccessibleRole() { return AccessibleRole.DESKTOP_PANE; } // getAccessibleRole()
public AccessibleRole getAccessibleRole() { return AccessibleRole.DESKTOP_PANE; } // getAccessibleRole()
30,380
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJDesktopPane(this); } // if return accessibleContext; } // getAccessibleContext()
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJDesktopPane(this); } // if return accessibleContext; } // getAccessibleContext()
30,381
public JInternalFrame[] getAllFrames() { return null; // TODO } // getAllFrames()
public JInternalFrame[] getAllFrames() { return null; // TODO } // getAllFrames()
30,382
public JInternalFrame[] getAllFramesInLayer(int layer) { return null; // TODO } // getAllFramesInLayer()
public JInternalFrame[] getAllFramesInLayer(int layer) { return null; // TODO } // getAllFramesInLayer()
30,383
public int getDragMode() { return dragMode; } // getDragMode()
public int getDragMode() { return dragMode; } // getDragMode()
30,384
public int getDragMode() { return dragMode; } // getDragMode()
public int getDragMode() { return dragMode; } // getDragMode()
30,385
public JInternalFrame getSelectedFrame() { return null; // TODO } // getSelectedFrame()
public JInternalFrame getSelectedFrame() { return null; // TODO } // getSelectedFrame()
30,386
public DesktopPaneUI getUI() { return (DesktopPaneUI) ui; } // getUI()
public DesktopPaneUI getUI() { return (DesktopPaneUI) ui; } // getUI()
30,387
public DesktopPaneUI getUI() { return (DesktopPaneUI) ui; } // getUI()
public DesktopPaneUI getUI() { return (DesktopPaneUI) ui; } // getUI()
30,388
public String getUIClassID() { return uiClassID; } // getUIClassID()
public String getUIClassID() { return uiClassID; } // getUIClassID()
30,389
public boolean isOpaque() { return true; } // isOpaque()
public boolean isOpaque() { return true; } // isOpaque()
30,390
public boolean isOpaque() { return true; } // isOpaque()
public boolean isOpaque() { return true; } // isOpaque()
30,391
protected String paramString() { return null; // TODO } // paramString()
protected String paramString() { return null; // TODO } // paramString()
30,392
public void setDesktopManager(DesktopManager manager) { this.desktopManager = manager; // TODO } // setDesktopManager()
public void setDesktopManager(DesktopManager manager) { this.desktopManager = manager; // TODO } // setDesktopManager()
30,393
public void setDragMode(int mode) { this.dragMode = mode; // TODO } // setDragMode()
public void setDragMode(int mode) { this.dragMode = mode; // TODO } // setDragMode()
30,394
public void setUI(DesktopPaneUI ui) { super.setUI(ui); } // setUI()
public void setUI(DesktopPaneUI ui) { super.setUI(ui); } // setUI()
30,395
public void setUI(DesktopPaneUI ui) { super.setUI(ui); } // setUI()
public void setUI(DesktopPaneUI ui) { super.setUI(ui); } // setUI()
30,396
public void updateUI() { setUI((DesktopPaneUI) UIManager.get(this)); invalidate(); } // updateUI()
public void updateUI() { setUI((DesktopPaneUI) UIManager.get(this)); invalidate(); } // updateUI()
30,397
public void updateUI() { setUI((DesktopPaneUI) UIManager.get(this)); invalidate(); } // updateUI()
public void updateUI() { setUI((DesktopPaneUI) UIManager.get(this)); invalidate(); } // updateUI()
30,398
public CompoundEdit() { } // CompoundEdit()
public CompoundEdit() { } // CompoundEdit()
30,399
public void die() { // Variables int index; UndoableEdit current; // Loop through all contained UndoableEdits for (index = edits.size() - 1; index >= 0; index--) { current = (UndoableEdit) edits.elementAt(index); current.die(); } // for: index } // die()
public void die() { // Variables int index; UndoableEdit current; // Loop through all contained UndoableEdits for (index = edits.size() - 1; index >= 0; index--) { current = (UndoableEdit) edits.elementAt(index); current.die(); } // for: index } // die()
30,400
public void die() { // Variables int index; UndoableEdit current; // Loop through all contained UndoableEdits for (index = edits.size() - 1; index >= 0; index--) { current = (UndoableEdit) edits.elementAt(index); current.die(); } // for: index } // die()
public void die() { // Variables int index; UndoableEdit current; // Loop through all contained UndoableEdits for (index = edits.size() - 1; index >= 0; index--) { current = (UndoableEdit) edits.elementAt(index); current.die(); } // for: index } // die()
30,401
public String getPresentationName() { if (edits.size() == 0) { return super.getPresentationName(); } else { return lastEdit().getPresentationName(); } } // getPresentationName()
public String getPresentationName() { if (edits.size() == 0) { return super.getPresentationName(); } else { return lastEdit().getPresentationName(); } } // getPresentationName()
30,402
public boolean isInProgress() { return inProgress; } // isInProgress()
public boolean isInProgress() { return inProgress; } // isInProgress()
30,403
public boolean isSignificant() { // Variables int index; UndoableEdit current; // Check each edit for (index = 0; index < edits.size(); index++) { current = (UndoableEdit) edits.elementAt(index); if (current.isSignificant() == true) { return true; } } // for: index return false; } // isSignificant()
public boolean isSignificant() { // Variables int index; UndoableEdit current; // Check each edit for (index = 0; index < edits.size(); index++) { current = (UndoableEdit) edits.elementAt(index); if (current.isSignificant() == true) { return true; } } // for: index return false; } // isSignificant()
30,404
public boolean isSignificant() { // Variables int index; UndoableEdit current; // Check each edit for (index = 0; index < edits.size(); index++) { current = (UndoableEdit) edits.elementAt(index); if (current.isSignificant() == true) { return true; } } // for: index return false; } // isSignificant()
public boolean isSignificant() { // Variables int index; UndoableEdit current; // Check each edit for (index = 0; index < edits.size(); index++) { current = (UndoableEdit) edits.elementAt(index); if (current.isSignificant() == true) { return true; } } // for: index return false; } // isSignificant()
30,405
protected UndoableEdit lastEdit() { if (edits.size() == 0) { return null; } return (UndoableEdit) edits.elementAt(edits.size() - 1); } // lastEdit()
protected UndoableEdit lastEdit() { if (edits.size() == 0) { return null; } return (UndoableEdit) edits.elementAt(edits.size() - 1); } // lastEdit()
30,406
public boolean addEdit(UndoableEdit anEdit) { return false; } // addEdit()
public boolean addEdit(UndoableEdit anEdit) { return false; } // addEdit()
30,407
public boolean addEdit(UndoableEdit anEdit);
public boolean addEdit(UndoableEdit anEdit);
30,408
public boolean replaceEdit(UndoableEdit anEdit);
public boolean replaceEdit(UndoableEdit anEdit);
30,409
public boolean canRedo() { if (alive == true && hasBeenDone == false) { return true; } // if return false; } // canRedo()
public boolean canRedo() { if (alive == true && hasBeenDone == false) { return true; } // if return false; } // canRedo()
30,410
public boolean canUndo() { if (alive == true && hasBeenDone == true) { return true; } // if return false; } // canUndo()
public boolean canUndo() { if (alive == true && hasBeenDone == true) { return true; } // if return false; } // canUndo()
30,411
public void die() { alive = false; } // die()
public void die() { alive = false; } // die()
30,412
public void die();
public void die();
30,413
public String getPresentationName();
public String getPresentationName();
30,414
public String getRedoPresentationName() { if (getPresentationName().equals("") == true) { return RedoName; } else { return RedoName + " " + getPresentationName(); } } // getRedoPresentationName()
public String getRedoPresentationName() { if (getPresentationName().equals("") == true) { return RedoName; } else { return RedoName + " " + getPresentationName(); } } // getRedoPresentationName()
30,415
public String getRedoPresentationName();
public String getRedoPresentationName();
30,416
public String getUndoPresentationName() { if (getPresentationName().equals("") == true) { return UndoName; } else { return UndoName + " " + getPresentationName(); } } // getUndoPresentationName()
public String getUndoPresentationName() { if (getPresentationName().equals("") == true) { return UndoName; } else { return UndoName + " " + getPresentationName(); } } // getUndoPresentationName()
30,417
public String getUndoPresentationName();
public String getUndoPresentationName();
30,418
public boolean isSignificant() { return true; } // isSignificant()
public boolean isSignificant() { return true; } // isSignificant()
30,419
public boolean isSignificant();
public boolean isSignificant();
30,420
public void redo() throws CannotRedoException;
public void redo() throws CannotRedoException;
30,421
public String toString() { return null; // TODO } // toString()
public String toString() { return null; // TODO } // toString()
30,422
public void undo() throws CannotUndoException;
public void undo() throws CannotUndoException;
30,423
public void mouseEntered(MouseEvent e) { /* When mouse enters menu item, it should be considered selected if (i) if this menu is a submenu in some other menu (ii) or if this menu is in a menu bar and some other menu in a menu bar was just selected. (If nothing was selected, menu...
public void mouseEntered(MouseEvent e) { /* When mouse enters menu item, it should be considered selected if (i) if this menu is a submenu in some other menu (ii) or if this menu is in a menu bar and some other menu in a menu bar was just selected. (If nothing was selected, menu...
30,424
public void mouseEntered(MouseEvent e) { /* When mouse enters menu item, it should be considered selected if (i) if this menu is a submenu in some other menu (ii) or if this menu is in a menu bar and some other menu in a menu bar was just selected. (If nothing was selected, menu...
public void mouseEntered(MouseEvent e) { /* When mouse enters menu item, it should be considered selected if (i) if this menu is a submenu in some other menu (ii) or if this menu is in a menu bar and some other menu in a menu bar was just selected. (If nothing was selected, menu...
30,425
protected SizeRequirements calculateMajorAxisRequirements(int axis, SizeRequirements r) { SizeRequirements sr = super.calculateMajorAxisRequirements(axis, r); // FIXME: adjust it if the CSS width or height attribute is specified // and applicable ...
protected SizeRequirements calculateMajorAxisRequirements(int axis, SizeRequirements r) { SizeRequirements sr = super.calculateMajorAxisRequirements(axis, r); // FIXME: adjust it if the CSS width or height attribute is specified // and applicable ...
30,427
protected SizeRequirements calculateMinorAxisRequirements(int axis, SizeRequirements r) { SizeRequirements sr = super.calculateMinorAxisRequirements(axis, r); // FIXME: adjust it if the CSS width or height attribute is specified // and applicable. ...
protected SizeRequirements calculateMinorAxisRequirements(int axis, SizeRequirements r) { SizeRequirements sr = super.calculateMinorAxisRequirements(axis, r); // FIXME: adjust it if the CSS width or height attribute is specified // and applicable. ...
30,428
public void changedUpdate(DocumentEvent ev, Shape a, ViewFactory f) { super.changedUpdate(ev, a, f); // If more elements were added, then need to set the properties for them int currPos = ev.getOffset(); if (currPos <= getStartOffset() && (currPos + ev.getLength()) >= getEn...
public void changedUpdate(DocumentEvent ev, Shape a, ViewFactory f) { super.changedUpdate(ev, a, f); // If more elements were added, then need to set the properties for them int currPos = ev.getOffset(); if (currPos <= getStartOffset() && (currPos + ev.getLength()) >= getEn...
30,429
protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { // FIXME: Not implemented. super.layoutMinorAxis(targetSpan, axis, offsets, spans); }
protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { // FIXME: Not implemented. int viewCount = getViewCount(); for (int i = 0; i < viewCount; i++) { View view = getView(i); int min = (int) view.getMinimumSpan(axis); int max; Length length = css...
30,430
public float getMaximumSpan(int axis) { if (axis == getAxis()) return getPreferredSpan(axis); else return Integer.MAX_VALUE; }
public float getMaximumSpan(int axis) { if (axis == getAxis()) return getPreferredSpan(axis); else return Integer.MAX_VALUE; }
30,431
public float getMaximumSpan(int axis) { if (axis == getAxis()) return getPreferredSpan(axis); else return Integer.MAX_VALUE; }
public float getMaximumSpan(int axis) { if (axis == getAxis()) return getPreferredSpan(axis); else requirements[axis] = calculateMinorAxisRequirements(axis, requirements[axis]); } return requirements[axis].maximum; }
30,432
protected void layoutMajorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { SizeRequirements[] childReqs = getChildRequirements(axis); // Calculate the spans and offsets using the SizeRequirements uility // methods. SizeRequirements.calculateTiledPositions(targe...
protected void layoutMajorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { SizeRequirements[] childReqs = getChildRequirements(axis); // Calculate the spans and offsets using the SizeRequirements uility // methods. SizeRequirements.calculateTiledPositions(targe...
30,433
protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { SizeRequirements[] childReqs = getChildRequirements(axis); // Calculate the spans and offsets using the SizeRequirements uility // methods. // TODO: This might be an opportunity for perf...
protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { SizeRequirements[] childReqs = getChildRequirements(axis); // Calculate the spans and offsets using the SizeRequirements uility // methods. // TODO: This might be an opportunity for perf...
30,434
public void paint(Graphics g, Shape a) { // Adjust size if the size is changed. Rectangle bounds = a.getBounds(); if (bounds.width != getWidth() || bounds.height != getHeight()) setSize(bounds.width, bounds.height); Rectangle inside = getInsideAllocation(a); Rectangle copy = new Rectangle(inside)...
public void paint(Graphics g, Shape a) { // Adjust size if the size is changed. Rectangle bounds = a.getBounds(); if (bounds.width != getWidth() || bounds.height != getHeight()) setSize(bounds.width, bounds.height); Rectangle inside = getInsideAllocation(a); Rectangle copy = new Rectangle(inside)...
30,435
public void replace(int offset, int length, View[] views) { // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + views.length]; System.arraycopy(spansX, 0, newSpansX, 0, offset); System.arraycopy(spansX, offset + l...
public void replace(int offset, int length, View[] views) { // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + views.length]; System.arraycopy(spansX, 0, newSpansX, 0, offset); System.arraycopy(spansX, offset + l...
30,436
public void replace(int offset, int length, View[] views) { // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + views.length]; System.arraycopy(spansX, 0, newSpansX, 0, offset); System.arraycopy(spansX, offset + l...
public void replace(int offset, int length, View[] views) { // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + views.length]; System.arraycopy(spansX, 0, newSpansX, 0, offset); System.arraycopy(spansX, offset + l...
30,437
public void replace(int offset, int length, View[] views) { // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + views.length]; System.arraycopy(spansX, 0, newSpansX, 0, offset); System.arraycopy(spansX, offset + l...
public void replace(int offset, int length, View[] views) { // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + views.length]; System.arraycopy(spansX, 0, newSpansX, 0, offset); System.arraycopy(spansX, offset + l...
30,438
public void replace(int offset, int length, View[] views) { // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + views.length]; System.arraycopy(spansX, 0, newSpansX, 0, offset); System.arraycopy(spansX, offset + l...
public void replace(int offset, int length, View[] views) { // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + views.length]; System.arraycopy(spansX, 0, newSpansX, 0, offset); System.arraycopy(spansX, offset + l...
30,439
public void replace(int offset, int length, View[] views) { // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + views.length]; System.arraycopy(spansX, 0, newSpansX, 0, offset); System.arraycopy(spansX, offset + l...
public void replace(int offset, int length, View[] views) { // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + views.length]; System.arraycopy(spansX, 0, newSpansX, 0, offset); System.arraycopy(spansX, offset + l...
30,440
public void replace(int offset, int length, View[] views) { // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + views.length]; System.arraycopy(spansX, 0, newSpansX, 0, offset); System.arraycopy(spansX, offset + l...
public void replace(int offset, int length, View[] views) { // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + views.length]; System.arraycopy(spansX, 0, newSpansX, 0, offset); System.arraycopy(spansX, offset + l...
30,441
public void replace(int offset, int length, View[] views) { // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + views.length]; System.arraycopy(spansX, 0, newSpansX, 0, offset); System.arraycopy(spansX, offset + l...
public void replace(int offset, int length, View[] views) { // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + views.length]; System.arraycopy(spansX, 0, newSpansX, 0, offset); System.arraycopy(spansX, offset + l...
30,442
public void replace(int offset, int length, View[] views) { // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + views.length]; System.arraycopy(spansX, 0, newSpansX, 0, offset); System.arraycopy(spansX, offset + l...
public void replace(int offset, int length, View[] views) { // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + views.length]; System.arraycopy(spansX, 0, newSpansX, 0, offset); System.arraycopy(spansX, offset + l...
30,443
public float getInset(int size, View v) { // FIXME: Not implemented. return 0; }
public float getInset(int size, View v) { // FIXME: Not implemented. float inset; switch (size) { case View.TOP: inset = topInset; break; case View.BOTTOM: inset = bottomInset; break; case View.LEFT: inset = leftInset; break; case View.RIGHT: inset = rightInset; break; default: inset = 0.0F; } return in...
30,444
public ColorModel(int bits) { // @classpath-bugfix Fix difference between Sun's class and this class. this(bits, // total bits, sRGB, four channels nArray(bits / 4, 4), // bits for each channel ColorSpace.getInstance(ColorSpace.CS_sRGB), // sRGB true, // has alpha false, // not premultiplied TRANSLUCEN...
public ColorModel(int bits) { // @classpath-bugfix Fix difference between Sun's class and this class. this(bits, // total bits, sRGB, four channels nArray(bits / 4, 4), // bits for each channel ColorSpace.getInstance(ColorSpace.CS_sRGB), // sRGB true, // has alpha false, // not premultiplied TRANSLUC...
30,445
public float getPartialSpan(int p0, int p1) { Element el = getElement(); Document doc = el.getDocument(); Segment seg = new Segment(); try { doc.getText(p0, p1 - p0, seg); } catch (BadLocationException ex) { throw new AssertionError("BadLocationException must not be thrown...
public float getPartialSpan(int p0, int p1) { Element el = getElement(); Document doc = el.getDocument(); Segment seg = new Segment(); try { doc.getText(p0, p1 - p0, seg); } catch (BadLocationException ex) { AssertionError ae; ae = new AssertionError("BadLocationException ...
30,447
public Segment getText(int p0, int p1) { Segment txt = new Segment(); try { getDocument().getText(p0, p1 - p0, txt); } catch (BadLocationException ex) { throw new AssertionError("BadLocationException should not be " + "thrown here. p0 = " + p0 + "...
public Segment getText(int p0, int p1) { Segment txt = new Segment(); try { getDocument().getText(p0, p1 - p0, txt); } catch (BadLocationException ex) { AssertionError ae; ae = new AssertionError("BadLocationException should not be " + "thrown her...
30,449
public abstract void setText (CharacterIterator newText);
public abstract void setText (CharacterIterator newText);
30,451
protected void insertUpdate(ElementSpec[] data) { // Push the current path to the stack. Element current = root; int index = current.getElementIndex(offset); while (! current.isLeaf()) { Element child = current.getElement(index); int editIndex = child.isLeaf() ? index...
protected void insertUpdate(ElementSpec[] data) { // Push the current path to the stack. Element current = root; int index = current.getElementIndex(offset); while (! current.isLeaf()) { Element child = current.getElement(index); int editIndex = child.isLeaf() ? index...
30,453
protected void insertUpdate(ElementSpec[] data) { // Push the current path to the stack. Element current = root; int index = current.getElementIndex(offset); while (! current.isLeaf()) { Element child = current.getElement(index); int editIndex = child.isLeaf() ? index...
protected void insertUpdate(ElementSpec[] data) { // Push the current path to the stack. Element current = root; int index = current.getElementIndex(offset); while (! current.isLeaf()) { Element child = current.getElement(index); int editIndex = child.isLeaf() ? index...
30,454
protected void insertUpdate(ElementSpec[] data) { // Push the current path to the stack. Element current = root; int index = current.getElementIndex(offset); while (! current.isLeaf()) { Element child = current.getElement(index); int editIndex = child.isLeaf() ? index...
protected void insertUpdate(ElementSpec[] data) { // Push the current path to the stack. Element current = root; int index = current.getElementIndex(offset); while (! current.isLeaf()) { Element child = current.getElement(index); int editIndex = child.isLeaf() ? index...
30,455
protected void create(ElementSpec[] data) { writeLock(); try { // Clear content if there is some. int len = getLength(); if (len > 0) remove(0, len); // Now we insert the content. StringBuilder b = new StringBuilder(); for (int i = 0; i < data.length; ++i...
protected void create(ElementSpec[] data) { try { // Clear content if there is some. int len = getLength(); if (len > 0) remove(0, len); // Now we insert the content. StringBuilder b = new StringBuilder(); for (int i = 0; i < data.length; ++i) { ...
30,456
protected void create(ElementSpec[] data) { writeLock(); try { // Clear content if there is some. int len = getLength(); if (len > 0) remove(0, len); // Now we insert the content. StringBuilder b = new StringBuilder(); for (int i = 0; i < data.length; ++i...
protected void create(ElementSpec[] data) { writeLock(); try { // Clear content if there is some. int len = getLength(); if (len > 0) remove(0, len); // Now we insert the content. StringBuilder b = new StringBuilder(); for (int i = 0; i < data.length; ++i...
30,457
protected void create(ElementSpec[] data) { writeLock(); try { // Clear content if there is some. int len = getLength(); if (len > 0) remove(0, len); // Now we insert the content. StringBuilder b = new StringBuilder(); for (int i = 0; i < data.length; ++i...
protected void create(ElementSpec[] data) { writeLock(); try { // Clear content if there is some. int len = getLength(); if (len > 0) remove(0, len); // Now we insert the content. StringBuilder b = new StringBuilder(); for (int i = 0; i < data.length; ++i...
30,458
protected void insert(int offset, ElementSpec[] data) throws BadLocationException { if (data == null || data.length == 0) return; try { // writeLock() and writeUnlock() should always be in a try/finally // block so that locking balance is guaranteed even if some // exception ...
protected void insert(int offset, ElementSpec[] data) throws BadLocationException { if (data == null || data.length == 0) return; try { // writeLock() and writeUnlock() should always be in a try/finally // block so that locking balance is guaranteed even if some // exception ...
30,460
public Object stringToValue (String value) throws ParseException { int vLength = value.length(); // For value to be a valid it must be the same length as the mask // note this doesn't take into account symbols that occupy more than // one character, this is something we may possibly need to fix. ...
public Object stringToValue (String value) throws ParseException { int vLength = value.length(); // For value to be a valid it must be the same length as the mask // note this doesn't take into account symbols that occupy more than // one character, this is something we may possibly need to fix. ...
30,462
public String valueToString (Object value) throws ParseException { String result = super.valueToString(value); int rLength = result.length(); // If value is longer than the mask, truncate it. Note we may need to // account for symbols that are more than one character long. if (rLength > maskLeng...
public String valueToString(Object value) throws ParseException { String result = super.valueToString(value); int rLength = result.length(); // If value is longer than the mask, truncate it. Note we may need to // account for symbols that are more than one character long. if (rLength > maskLengt...
30,463
public String valueToString (Object value) throws ParseException { String result = super.valueToString(value); int rLength = result.length(); // If value is longer than the mask, truncate it. Note we may need to // account for symbols that are more than one character long. if (rLength > maskLeng...
public String valueToString (Object value) throws ParseException { String result = super.valueToString(value); int rLength = result.length(); // If value is longer than the mask, truncate it. Note we may need to // account for symbols that are more than one character long. if (rLength > maskLeng...
30,464
public static boolean isLetter(char ch) { return ((1 << getType(ch)) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER))) != 0; }
public static boolean isLetter(char ch) { return ((1 << getType(ch)) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER))) != 0; }
30,465
public CRL engineGenerateCRL(InputStream inStream) throws CRLException { try { return generateCRL(inStream); } catch (IOException ioe) { throw new CRLException(ioe.toString()); } }
public CRL engineGenerateCRL(InputStream inStream) throws CRLException { try { return generateCRL(inStream); } catch (IOException ioe) { CRLException crle = new CRLException(ioe.getMessage()); crle.initCause (ioe); throw crle; } }
30,466
public Collection engineGenerateCRLs(InputStream inStream) throws CRLException { LinkedList crls = new LinkedList(); while (true) { try { crls.add(generateCRL(inStream)); } catch (EOFException eof) { break; } catch (IOExcept...
public Collection engineGenerateCRLs(InputStream inStream) throws CRLException { LinkedList crls = new LinkedList(); while (true) { try { crls.add(generateCRL(inStream)); } catch (EOFException eof) { break; } catch (IOExcept...
30,467
public Certificate engineGenerateCertificate(InputStream inStream) throws CertificateException { try { return generateCert(inStream); } catch (IOException ioe) { throw new CertificateException(ioe.toString()); } }
public Certificate engineGenerateCertificate(InputStream inStream) throws CertificateException { try { return generateCert(inStream); } catch (IOException ioe) { CertificateException ce = new CertificateException(ioe.getMessage()); ce.initCause (ioe); throw ce; } }
30,468