bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void endDraggingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(); } // endDra...
public void endDraggingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(); } // endDra...
14,261
public void endResizingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(); } // endRes...
public void endResizingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(); } // endRes...
14,262
protected Rectangle getBoundsForIconOf(JInternalFrame frame) { // IconRects has no order to it. // The icon _must_ be placed in the first free slot (working from // the bottom left corner) // The icon also must not be placed where another icon is placed // (regardless whether that frame is an icon c...
protected Rectangle getBoundsForIconOf(JInternalFrame frame) { // IconRects has no order to it. // The icon _must_ be placed in the first free slot (working from // the bottom left corner) // The icon also must not be placed where another icon is placed // (regardless whether that frame is an icon c...
14,263
protected Rectangle getPreviousBounds(JInternalFrame frame) { return frame.getNormalBounds(); } // getPreviousBounds()
protected Rectangle getPreviousBounds(JInternalFrame frame) { return frame.getNormalBounds(); } // getPreviousBounds()
14,264
public void iconifyFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); JDesktopIcon icon = frame.getDesktopIcon(); if (p != null && p.getSelectedFrame() == frame) p.setSelectedFrame(null); else { try { frame.setSelected(false); } catch (PropertyVetoException e) { ...
public void iconifyFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); JDesktopIcon icon = frame.getDesktopIcon(); if (p != null && p.getSelectedFrame() == frame) p.setSelectedFrame(null); else { try { frame.setSelected(false); } catch (PropertyVetoException e) { ...
14,265
public void iconifyFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); JDesktopIcon icon = frame.getDesktopIcon(); if (p != null && p.getSelectedFrame() == frame) p.setSelectedFrame(null); else { try { frame.setSelected(false); } catch (PropertyVetoException e) { ...
public void iconifyFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); JDesktopIcon icon = frame.getDesktopIcon(); if (p != null && p.getSelectedFrame() == frame) p.setSelectedFrame(null); else { try { frame.setSelected(false); } catch (PropertyVetoException e) { ...
14,266
public void maximizeFrame(JInternalFrame frame) { // Can't maximize from iconified state. // It can only return to maximized state, but that would fall under // deiconify. if (frame.isIcon()) return; frame.setNormalBounds(frame.getBounds()); Container p = frame.getParent(); if (p != null) ...
public void maximizeFrame(JInternalFrame frame) { // Can't maximize from iconified state. // It can only return to maximized state, but that would fall under // deiconify. if (frame.isIcon()) return; frame.setNormalBounds(frame.getBounds()); Container p = frame.getParent(); if (p != null) ...
14,267
public void minimizeFrame(JInternalFrame frame) { Rectangle normalBounds = frame.getNormalBounds(); JDesktopPane p = frame.getDesktopPane(); if (p != null) p.setSelectedFrame(frame); else { try { frame.setSelected(true); } catch (PropertyVetoException e) { // Do nothing. } ...
public void minimizeFrame(JInternalFrame frame) { Rectangle normalBounds = frame.getNormalBounds(); JDesktopPane p = frame.getDesktopPane(); if (p != null) p.setSelectedFrame(frame); else { try { frame.setSelected(true); } catch (PropertyVetoException e) { // Do nothing. } ...
14,268
public void openFrame(JInternalFrame frame) { Container c = frame.getParent(); if (c == null) c = frame.getDesktopIcon().getParent(); if (c == null) return; c.remove(frame.getDesktopIcon()); c.add(frame); frame.setVisible(true); } // openFrame()
public void openFrame(JInternalFrame frame) { Container c = frame.getParent(); if (c == null) c = frame.getDesktopIcon().getParent(); if (c == null) return; c.remove(frame.getDesktopIcon()); c.add(frame); frame.setVisible(true); } // openFrame()
14,269
protected void removeIconFor(JInternalFrame frame) { JDesktopIcon icon = frame.getDesktopIcon(); Container c = icon.getParent(); if (c != null && icon != null) c.remove(icon); } // removeIconFor()
protected void removeIconFor(JInternalFrame frame) { JDesktopIcon icon = frame.getDesktopIcon(); Container c = icon.getParent(); if (c != null && icon != null) c.remove(icon); } // removeIconFor()
14,270
public void resizeFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { dragCache.setBounds(newX, newY, newWidth, newHeight); if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { // FIXME: Do outline drag painting. } else setBoundsForFrame(...
public void resizeFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { dragCache.setBounds(newX, newY, newWidth, newHeight); if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { // FIXME: Do outline drag painting. } else setBoundsForFrame(...
14,271
public void setBoundsForFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { component.setBounds(newX, newY, newWidth, newHeight); component.revalidate(); // If not null, I'd rather repaint the parent if (component.getParent() != null) compone...
public void setBoundsForFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { component.setBounds(newX, newY, newWidth, newHeight); component.revalidate(); // If not null, I'd rather repaint the parent if (component.getParent() != null) compone...
14,272
protected void setPreviousBounds(JInternalFrame frame, Rectangle rect) { frame.setNormalBounds(rect); } // setPreviousBounds()
protected void setPreviousBounds(JInternalFrame frame, Rectangle rect) { frame.setNormalBounds(rect); } // setPreviousBounds()
14,273
protected void setWasIcon(JInternalFrame frame, boolean value) { frame.setWasIcon(value, WAS_ICON_ONCE_PROPERTY); } // setWasIcon()
protected void setWasIcon(JInternalFrame frame, Boolean value) { frame.setWasIcon(value, WAS_ICON_ONCE_PROPERTY); } // setWasIcon()
14,274
protected void setWasIcon(JInternalFrame frame, boolean value) { frame.setWasIcon(value, WAS_ICON_ONCE_PROPERTY); } // setWasIcon()
protected void setWasIcon(JInternalFrame frame, boolean value) { frame.setWasIcon(value, WAS_ICON_ONCE_PROPERTY); } // setWasIcon()
14,275
protected boolean wasIcon(JInternalFrame frame) { return frame.getWasIcon(); } // wasIcon()
protected boolean wasIcon(JInternalFrame frame) { return frame.getWasIcon(); } // wasIcon()
14,276
public PluginDescriptorModel(XMLElement e) throws PluginException { this(null, null, e); }
public PluginDescriptorModel(XMLElement e) throws PluginException { this(null, null, e); }
14,277
public ClassLoader getPluginClassLoader() { if (classLoader == null) { if (system) { classLoader = ClassLoader.getSystemClassLoader(); } else { if (jarFile == null) { throw new RuntimeException("Cannot create classloader without a jarfile"); } final int reqMax = requires.length; final PluginCla...
public ClassLoader getPluginClassLoader() { if (classLoader == null) { if (system) { classLoader = ClassLoader.getSystemClassLoader(); } else { if (jarFile == null) { throw new RuntimeException("Cannot create classloader without a jarfile"); } final int reqMax = requires.length; final PluginCla...
14,278
public Object run() { return new PluginClassLoader(PluginDescriptorModel.this, jarFile, preLoaders); }
public Object run() { return new PluginClassLoader(PluginDescriptorModel.this, jarFile, preLoaders); }
14,279
public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ...
public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ...
14,280
public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ...
public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ...
14,281
public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ...
public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ...
14,282
public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ...
public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ...
14,283
final void startPlugin() throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; //BootLog.info("Resolve on plugin " + getId()); try { AccessController.doPrivileged(new Privi...
final void startPlugin() throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; //BootLog.info("Resolve on plugin " + getId()); try { AccessController.doPrivileged(new Privi...
14,284
final void startPlugin() throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; //BootLog.info("Resolve on plugin " + getId()); try { AccessController.doPrivileged(new Privi...
final void startPlugin() throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; //BootLog.info("Resolve on plugin " + getId()); try { AccessController.doPrivileged(new Privi...
14,285
final void startPlugin() throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; //BootLog.info("Resolve on plugin " + getId()); try { AccessController.doPrivileged(new Privi...
final void startPlugin() throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; //BootLog.info("Resolve on plugin " + getId()); try { AccessController.doPrivileged(new Privi...
14,286
public Object run() throws PluginException { resolve(); final int reqMax = requires.length; for (int i = 0; i < reqMax; i++) { final String reqId = requires[i].getPluginId(); //BootLog.info("Start dependency " + reqId); final Plugi...
public Object run() throws PluginException { resolve(); final int reqMax = requires.length; for (int i = 0; i < reqMax; i++) { final String reqId = requires[i].getPluginId(); //BootLog.info("Start dependency " + reqId); final Plugi...
14,287
public Object run() throws PluginException { resolve(); final int reqMax = requires.length; for (int i = 0; i < reqMax; i++) { final String reqId = requires[i].getPluginId(); //BootLog.info("Start dependency " + reqId); final Plugi...
public Object run() throws PluginException { resolve(); final int reqMax = requires.length; for (int i = 0; i < reqMax; i++) { final String reqId = requires[i].getPluginId(); //BootLog.info("Start dependency " + reqId); final Plugi...
14,288
protected void unresolve() throws PluginException { if (resolved) { if (runtime != null) { runtime.unresolve(); } for (int i = 0; i < requires.length; i++) { requires[i].unresolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].unresolve(); } for (int i = 0; i < exten...
protected void unresolve() throws PluginException { if (resolved) { if (runtime != null) { runtime.unresolve(); } for (int i = 0; i < requires.length; i++) { requires[i].unresolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].unresolve(); } for (int i = 0; i < exten...
14,289
public void startSystemPlugins() throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescriptors(); //...
public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript...
14,290
private final void emmitMOV() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: X86Register r1 = X86Register.getRegister(((Register) args[0]).name); X86Register r2 = X86Register.getRegister(((Register) args[1]).name); if (r1 instan...
private final void emmitMOV() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: X86Register r1 = X86Register.getRegister(((Register) args[0]).name); X86Register r2 = X86Register.getRegister(((Register) args[1]).name); if (r1 instan...
14,298
private final void emmitMOV() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: X86Register r1 = X86Register.getRegister(((Register) args[0]).name); X86Register r2 = X86Register.getRegister(((Register) args[1]).name); if (r1 instan...
private final void emmitMOV() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: X86Register r1 = X86Register.getRegister(((Register) args[0]).name); X86Register r2 = X86Register.getRegister(((Register) args[1]).name); if (r1 instan...
14,299
private final void emmitXCHG() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: stream.writeXCHG(getReg(0), getReg(1)); break; case ER_ADDR: Address ind = getAddress(0); stream.writeXCHG(getRegister(ind.g...
private final void emmitXCHG() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: stream.writeXCHG(getReg(0), getReg(1)); break; case ER_ADDR: ind = getAddress(0); stream.writeXCHG(getRegister(ind.getImg())...
14,304
private int getAddressingMode(int maxArgs) { int ret = N_ADDR; if (maxArgs > 3) { throw new Error("Invalid number of arguments: " + maxArgs); } for (int i = 0; i < maxArgs; i++) { try { if (operands == null) break; Object o = operands.g...
private int getAddressingMode(int maxArgs) { int ret = N_ADDR; if (maxArgs > 3) { throw new Error("Invalid number of arguments: " + maxArgs); } for (int i = 0; i < maxArgs; i++) { try { if (operands == null) break; Object o = operands.g...
14,306
public Error(String s) { super(s); }
public Error() { super(s); }
14,307
public Error(String s) { super(s); }
public Error(String s) { }
14,308
public IllegalArgumentException(String s) { super(s); }
public IllegalArgumentException(String s) { super(s); }
14,309
public static ActionListener add(ActionListener a, ActionListener b) { return (ActionListener) addInternal(a, b); }
public static ComponentListener add(ComponentListener a, ComponentListener b) { return (ActionListener) addInternal(a, b); }
14,310
public static ActionListener add(ActionListener a, ActionListener b) { return (ActionListener) addInternal(a, b); }
public static ActionListener add(ActionListener a, ActionListener b) { return (ComponentListener) addInternal(a, b); }
14,311
public static ActionListener remove(ActionListener l, ActionListener oldl) { return (ActionListener) removeInternal(l, oldl); }
protected EventListener remove(EventListener oldl) { return (ActionListener) removeInternal(l, oldl); }
14,312
public static ActionListener remove(ActionListener l, ActionListener oldl) { return (ActionListener) removeInternal(l, oldl); }
public static ActionListener remove(ActionListener l, ActionListener oldl) { if (a == oldl) return b; if (b == oldl) return a; if (a instanceof AWTEventMulticaster) { EventListener newa = ((AWTEventMulticaster) a).remove(oldl); if (newa != a) return new AWTEventMulticaster(newa, b); } if (b instanceof AWTEventM...
14,313
public Rectangle(int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height; }
public Rectangle() { this.x = x; this.y = y; this.width = width; this.height = height; }
14,314
public Rectangle(int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height; }
public Rectangle(int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height; }
14,315
public abstract byte get ();
public abstract byte get ();
14,316
public abstract int get (int index);
public abstract int get (int index);
14,317
public abstract char get (int index);
public abstract char get (int index);
14,318
public abstract short get (int index);
public abstract short get (int index);
14,319
public static NumberFormat getInstance (Locale loc) { // For now always return a number instance. return getNumberInstance (loc); }
public static final NumberFormat getInstance () { // For now always return a number instance. return getNumberInstance (loc); }
14,320
public static NumberFormat getInstance (Locale loc) { // For now always return a number instance. return getNumberInstance (loc); }
public static NumberFormat getInstance (Locale loc) { // For now always return a number instance. return getInstance (Locale.getDefault()); }
14,321
public static NumberFormat getCurrencyInstance (Locale loc) { return computeInstance (loc, "currencyFormat", "$#,##0.00;($#,##0.00)"); }
public static final NumberFormat getCurrencyInstance () { return computeInstance (loc, "currencyFormat", "$#,##0.00;($#,##0.00)"); }
14,322
public static NumberFormat getCurrencyInstance (Locale loc) { return computeInstance (loc, "currencyFormat", "$#,##0.00;($#,##0.00)"); }
public static NumberFormat getCurrencyInstance (Locale loc) { return getCurrencyInstance (Locale.getDefault()); }
14,323
public static NumberFormat getPercentInstance (Locale loc) { return computeInstance (loc, "percentFormat", "#,##0%"); }
public static final NumberFormat getPercentInstance () { return computeInstance (loc, "percentFormat", "#,##0%"); }
14,324
public static NumberFormat getPercentInstance (Locale loc) { return computeInstance (loc, "percentFormat", "#,##0%"); }
public static NumberFormat getPercentInstance (Locale loc) { return getPercentInstance (Locale.getDefault()); }
14,325
public static NumberFormat getNumberInstance (Locale loc) { return computeInstance (loc, "numberFormat", "#,##0.###"); }
public static final NumberFormat getNumberInstance () { return computeInstance (loc, "numberFormat", "#,##0.###"); }
14,326
public static NumberFormat getNumberInstance (Locale loc) { return computeInstance (loc, "numberFormat", "#,##0.###"); }
public static NumberFormat getNumberInstance (Locale loc) { return getNumberInstance (Locale.getDefault()); }
14,327
public static final DateFormat getTimeInstance (int style, Locale loc) { return computeInstance (style, loc, false, true); }
public static final DateFormat getTimeInstance () { return computeInstance (style, loc, false, true); }
14,328
public static final DateFormat getTimeInstance (int style, Locale loc) { return computeInstance (style, loc, false, true); }
public static final DateFormat getTimeInstance (int style, Locale loc) { return getTimeInstance (DEFAULT, Locale.getDefault()); }
14,329
public static final DateFormat getDateInstance (int style, Locale loc) { return computeInstance (style, loc, true, false); }
public static final DateFormat getDateInstance () { return computeInstance (style, loc, true, false); }
14,330
public static final DateFormat getDateInstance (int style, Locale loc) { return computeInstance (style, loc, true, false); }
public static final DateFormat getDateInstance (int style, Locale loc) { return getDateInstance (DEFAULT, Locale.getDefault()); }
14,331
public void applyPattern(String pattern) { tokens = new Vector(); compileFormat(pattern); this.pattern = pattern; }
public void applyPattern(String pattern) { tokens = new ArrayList(); compileFormat(pattern); this.pattern = pattern; }
14,332
public FieldPosition (int field_id) { this.field_id = field_id; }
public FieldPosition (Format.Field field) { this.field_id = field_id; }
14,333
public FieldPosition (int field_id) { this.field_id = field_id; }
public FieldPosition (int field_id) { this(field, -1); }
14,334
public abstract StringBuffer format (Object obj, StringBuffer sb, FieldPosition pos) throws IllegalArgumentException;
public abstract StringBuffer format (Object obj, StringBuffer sb, FieldPosition pos) throws IllegalArgumentException;
14,335
public synchronized StringBuffer append(String str) { if (str == null) str = "null"; int len = str.count; ensureCapacity_unsynchronized(count + len); str.getChars(0, len, value, count); count += len; return this; }
public StringBuffer append(Object obj) { if (str == null) str = "null"; int len = str.count; ensureCapacity_unsynchronized(count + len); str.getChars(0, len, value, count); count += len; return this; }
14,336
public synchronized StringBuffer append(String str) { if (str == null) str = "null"; int len = str.count; ensureCapacity_unsynchronized(count + len); str.getChars(0, len, value, count); count += len; return this; }
public synchronized StringBuffer append(String str) { if (str == null) str = "null"; int len = str.count; ensureCapacity_unsynchronized(count + len); str.getChars(0, len, value, count); count += len; return this; }
14,337
public void append (String text) { append (text, null); }
public void append (AttributedCharacterIterator iterator) { append (text, null); }
14,338
public void append (String text) { append (text, null); }
public void append (String text) { char c = iterator.first(); Vector more_ranges = new Vector(); Vector more_attributes = new Vector(); do { formattedString = formattedString + String.valueOf (c); more_attributes.add (iterator.getAttributes()); more_ranges.add (new Integer (formattedString.length())); c = iter...
14,339
public abstract Object parseObject (String str, ParsePosition pos);
public abstract Object parseObject (String str, ParsePosition pos);
14,340
public abstract int getBeginIndex ();
public abstract int getBeginIndex ();
14,341
public abstract int getEndIndex ();
public abstract int getEndIndex ();
14,342
getAllAttributeKeys();
getAllAttributeKeys();
14,343
public abstract char setIndex (int index) throws IllegalArgumentException;
public abstract char setIndex (int index) throws IllegalArgumentException;
14,344
public ArrayList() { this(DEFAULT_CAPACITY); }
public ArrayList(int capacity) { this(DEFAULT_CAPACITY); }
14,345
public ArrayList() { this(DEFAULT_CAPACITY); }
public ArrayList() { if (capacity < 0) throw new IllegalArgumentException(); data = (E[]) new Object[capacity]; }
14,346
getRunLimit(AttributedCharacterIterator.Attribute attrib);
getRunLimit(AttributedCharacterIterator.Attribute attrib);
14,347
getRunStart(AttributedCharacterIterator.Attribute attrib);
getRunStart(AttributedCharacterIterator.Attribute attrib);
14,348
public abstract int getIndex ();
public abstract int getIndex ();
14,349
getAttribute(AttributedCharacterIterator.Attribute attrib);
getAttribute(AttributedCharacterIterator.Attribute attrib);
14,350
public abstract char next ();
public abstract char next ();
14,351
public <T> T[] toArray(T[] a) { if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; System.arraycopy(data, 0, a, 0, size); return a; }
public Object[] toArray() { if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; System.arraycopy(data, 0, a, 0, size); return a; }
14,352
public <T> T[] toArray(T[] a) { if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; System.arraycopy(data, 0, a, 0, size); return a; }
public <T> T[] toArray(T[] a) { if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; System.arraycopy(data, 0, a, 0, size); return a; }
14,353
public boolean canWrite() { // First do a SecurityCheck before doing anything else. checkWrite(); // Test for existence. This is required by the spec if (! VMFile.exists(path)) return false; if (VMFile.isDirectory(path)) return VMFile.canWriteDirectory(this); else return VMFile...
public boolean canWrite() { // First do a SecurityCheck before doing anything else. checkWrite(); // Test for existence. This is required by the spec if (! VMFile.exists(path)) return false; if (VMFile.isDirectory(path)) return VMFile.canWriteDirectory(this); else return VMFile...
14,354
private void checkRead() { // Check the SecurityManager SecurityManager s = System.getSecurityManager(); if (s != null) s.checkRead(path); }
private void checkRead() { // Check the SecurityManager SecurityManager s = System.getSecurityManager(); if (s != null) s.checkRead(path); }
14,355
private void checkWrite() { // Check the SecurityManager SecurityManager s = System.getSecurityManager(); if (s != null) s.checkWrite(path); }
private void checkWrite() { // Check the SecurityManager SecurityManager s = System.getSecurityManager(); if (s != null) s.checkWrite(path); }
14,356
public static File createTempFile(String prefix, String suffix) throws IOException { return createTempFile(prefix, suffix, null); }
public static synchronized File createTempFile(String prefix, String suffix, File directory) throws IOException { return createTempFile(prefix, suffix, null); }
14,357
public static File createTempFile(String prefix, String suffix) throws IOException { return createTempFile(prefix, suffix, null); }
public static File createTempFile(String prefix, String suffix) throws IOException { if (directory == null) { String dirname = System.getProperty("java.io.tmpdir"); if (dirname == null) throw new IOException("Cannot determine system temporary directory"); directory = new File(dirname); if (! VMFile.exists(di...
14,358
public synchronized boolean delete() { SecurityManager s = System.getSecurityManager(); if (s != null) s.checkDelete(path); return VMFile.delete(path); }
public synchronized boolean delete() { SecurityManager s = System.getSecurityManager(); if (s != null) s.checkDelete(path); return VMFile.delete(path); }
14,359
public synchronized boolean delete() { SecurityManager s = System.getSecurityManager(); if (s != null) s.checkDelete(path); return VMFile.delete(path); }
public synchronized boolean delete() { SecurityManager s = System.getSecurityManager(); if (s != null) s.checkDelete(path); return VMFile.delete(path); }
14,360
public boolean equals(Object obj) { if (! (obj instanceof File)) return false; File other = (File) obj; if (VMFile.IS_CASE_SENSITIVE) return path.equals(other.path); else return path.equalsIgnoreCase(other.path); }
public boolean equals(Object obj) { if (! (obj instanceof File)) return false; File other = (File) obj; if (VMFile.IS_CASE_SENSITIVE) return path.equals(other.path); else return path.equalsIgnoreCase(other.path); }
14,361
public String getAbsolutePath() { if (isAbsolute()) return path; else if (separatorChar == '\\' && path.length() > 0 && path.charAt (0) == '\\') { // On Windows, even if the path starts with a '\\' it is not // really absolute until we prefix the drive specifier from ...
public String getAbsolutePath() { if (isAbsolute()) return path; else if (separatorChar == '\\' && path.length() > 0 && path.charAt (0) == '\\') { // On Windows, even if the path starts with a '\\' it is not // really absolute until we prefix the drive specifier from ...
14,362
public String getAbsolutePath() { if (isAbsolute()) return path; else if (separatorChar == '\\' && path.length() > 0 && path.charAt (0) == '\\') { // On Windows, even if the path starts with a '\\' it is not // really absolute until we prefix the drive specifier from ...
public String getAbsolutePath() { if (isAbsolute()) return path; else if (separatorChar == '\\' && path.length() > 0 && path.charAt (0) == '\\') { // On Windows, even if the path starts with a '\\' it is not // really absolute until we prefix the drive specifier from ...
14,363
public String getAbsolutePath() { if (isAbsolute()) return path; else if (separatorChar == '\\' && path.length() > 0 && path.charAt (0) == '\\') { // On Windows, even if the path starts with a '\\' it is not // really absolute until we prefix the drive specifier from ...
public String getAbsolutePath() { if (isAbsolute()) return path; else if (separatorChar == '\\' && path.length() > 0 && path.charAt (0) == '\\') { // On Windows, even if the path starts with a '\\' it is not // really absolute until we prefix the drive specifier from ...
14,364
public String getAbsolutePath() { if (isAbsolute()) return path; else if (separatorChar == '\\' && path.length() > 0 && path.charAt (0) == '\\') { // On Windows, even if the path starts with a '\\' it is not // really absolute until we prefix the drive specifier from ...
public String getAbsolutePath() { if (isAbsolute()) return path; else if (separatorChar == '\\' && path.length() > 0 && path.charAt (0) == '\\') { // On Windows, even if the path starts with a '\\' it is not // really absolute until we prefix the drive specifier from ...
14,365
public String getAbsolutePath() { if (isAbsolute()) return path; else if (separatorChar == '\\' && path.length() > 0 && path.charAt (0) == '\\') { // On Windows, even if the path starts with a '\\' it is not // really absolute until we prefix the drive specifier from ...
public String getAbsolutePath() { if (isAbsolute()) return path; else if (separatorChar == '\\' && path.length() > 0 && path.charAt (0) == '\\') { // On Windows, even if the path starts with a '\\' it is not // really absolute until we prefix the drive specifier from ...
14,366
public String getAbsolutePath() { if (isAbsolute()) return path; else if (separatorChar == '\\' && path.length() > 0 && path.charAt (0) == '\\') { // On Windows, even if the path starts with a '\\' it is not // really absolute until we prefix the drive specifier from ...
public String getAbsolutePath() { if (isAbsolute()) return path; else if (separatorChar == '\\' && path.length() > 0 && path.charAt (0) == '\\') { // On Windows, even if the path starts with a '\\' it is not // really absolute until we prefix the drive specifier from ...
14,367
public String getParent() { String prefix = null; int nameSeqIndex = 0; // The "prefix", if present, is the leading "/" on UNIX and // either the drive specifier (e.g. "C:") or the leading "\\" // of a UNC network path on Windows. if (separatorChar == '/' && path.charAt (0) == '/') { p...
public String getParent() { String prefix = null; int nameSeqIndex = 0; // The "prefix", if present, is the leading "/" on UNIX and // either the drive specifier (e.g. "C:") or the leading "\\" // of a UNC network path on Windows. if (separatorChar == '/' && path.charAt (0) == '/') { p...
14,368
public String getParent() { String prefix = null; int nameSeqIndex = 0; // The "prefix", if present, is the leading "/" on UNIX and // either the drive specifier (e.g. "C:") or the leading "\\" // of a UNC network path on Windows. if (separatorChar == '/' && path.charAt (0) == '/') { p...
public String getParent() { String prefix = null; int nameSeqIndex = 0; // The "prefix", if present, is the leading "/" on UNIX and // either the drive specifier (e.g. "C:") or the leading "\\" // of a UNC network path on Windows. if (separatorChar == '/' && path.charAt (0) == '/') { p...
14,369
public String getParent() { String prefix = null; int nameSeqIndex = 0; // The "prefix", if present, is the leading "/" on UNIX and // either the drive specifier (e.g. "C:") or the leading "\\" // of a UNC network path on Windows. if (separatorChar == '/' && path.charAt (0) == '/') { p...
public String getParent() { String prefix = null; int nameSeqIndex = 0; // The "prefix", if present, is the leading "/" on UNIX and // either the drive specifier (e.g. "C:") or the leading "\\" // of a UNC network path on Windows. if (separatorChar == '/' && path.charAt (0) == '/') { p...
14,370
public String getParent() { String prefix = null; int nameSeqIndex = 0; // The "prefix", if present, is the leading "/" on UNIX and // either the drive specifier (e.g. "C:") or the leading "\\" // of a UNC network path on Windows. if (separatorChar == '/' && path.charAt (0) == '/') { p...
public String getParent() { String prefix = null; int nameSeqIndex = 0; // The "prefix", if present, is the leading "/" on UNIX and // either the drive specifier (e.g. "C:") or the leading "\\" // of a UNC network path on Windows. if (separatorChar == '/' && path.charAt (0) == '/') { p...
14,371
public boolean isAbsolute() { if (separatorChar == '\\') return path.startsWith(dupSeparator) || (path.length() > 2 && ((path.charAt(0) >= 'a' && path.charAt(0) <= 'z') || (path.charAt(0) >= 'A' && path.charAt(0) <= 'Z')) && path.charAt(1) == ':' && path.charAt(2) == '\\'); else retu...
public boolean isAbsolute() { if (separatorChar == '\\') return path.startsWith(dupSeparator) || (path.length() > 2 && ((path.charAt(0) >= 'a' && path.charAt(0) <= 'z') || (path.charAt(0) >= 'A' && path.charAt(0) <= 'Z')) && path.charAt(1) == ':' && path.charAt(2) == '\\'); else retu...
14,372