bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public int indexOf(String str) { return indexOf(str, 0); }
public int indexOf(String str) { return indexOf(ch, 0); }
25,354
public abstract boolean isDataFlavorSupported(DataFlavor flavor);
public abstract boolean isDataFlavorSupported(DataFlavor flavor);
25,355
public abstract Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException;
Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException;
25,356
public IllegalArgumentException(String s) { super(s); }
public IllegalArgumentException(String s) { super(s); }
25,357
public boolean startsWith(String prefix) { return regionMatches(false, 0, prefix, 0, prefix.count); }
public boolean startsWith(String prefix, int toffset) { return regionMatches(false, 0, prefix, 0, prefix.count); }
25,358
public boolean startsWith(String prefix) { return regionMatches(false, 0, prefix, 0, prefix.count); }
public boolean startsWith(String prefix) { return regionMatches(false, toffset, prefix, 0, prefix.count); }
25,359
public RuntimeException(String s) { super(s); }
public RuntimeException(String s) { super(s); }
25,360
getParameter(String paramName){ return getParameter(paramName, mimeType);}
getParameter(String paramName){ return getParameter(paramName, mimeType);}
25,361
getParameter(String paramName){ return getParameter(paramName, mimeType);}
getParameter(String paramName){ return getParameter(paramName, mimeType);}
25,362
public ClassNotFoundException(String s) { this(s, null); }
public ClassNotFoundException() { this(s, null); }
25,363
public ClassNotFoundException(String s) { this(s, null); }
public ClassNotFoundException(String s) { this(null, null); }
25,364
void setLocale (Locale loc) { if (type == null) ; else if (type.equals("number")) { formatClass = java.lang.Number.class; if (style == null) format = NumberFormat.getInstance(loc); else if (style.equals("currency")) format = NumberFormat.getCurrencyInstance(loc); else if (style.equals("percent"))...
void setLocale (Locale loc) { if (type == null) ; else if (type.equals("number")) { formatClass = java.lang.Number.class; if (style == null) format = NumberFormat.getInstance(loc); else if (style.equals("currency")) format = NumberFormat.getCurrencyInstance(loc); else if (style.equals("percent"))...
25,365
public Field(String name) { super(name); }
protected Field(String name) { super(name); }
25,366
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); }
25,367
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()); }
25,368
public static NumberFormat getCurrencyInstance (Locale loc) { NumberFormat format; format = computeInstance (loc, "currencyFormat", "$#,##0.00;($#,##0.00)"); format.setMaximumFractionDigits(format.getCurrency().getDefaultFractionDigits()); return format; }
public static final NumberFormat getCurrencyInstance () { NumberFormat format; format = computeInstance (loc, "currencyFormat", "$#,##0.00;($#,##0.00)"); format.setMaximumFractionDigits(format.getCurrency().getDefaultFractionDigits()); return format; }
25,369
public static NumberFormat getCurrencyInstance (Locale loc) { NumberFormat format; format = computeInstance (loc, "currencyFormat", "$#,##0.00;($#,##0.00)"); format.setMaximumFractionDigits(format.getCurrency().getDefaultFractionDigits()); return format; }
public static NumberFormat getCurrencyInstance (Locale loc) { NumberFormat format; format = computeInstance (loc, "currencyFormat", "$#,##0.00;($#,##0.00)"); format.setMaximumFractionDigits(format.getCurrency().getDefaultFractionDigits()); return format; }
25,370
public static NumberFormat getPercentInstance (Locale loc) { return computeInstance (loc, "percentFormat", "#,##0%"); }
public static final NumberFormat getPercentInstance () { return computeInstance (loc, "percentFormat", "#,##0%"); }
25,371
public static NumberFormat getPercentInstance (Locale loc) { return computeInstance (loc, "percentFormat", "#,##0%"); }
public static NumberFormat getPercentInstance (Locale loc) { return getPercentInstance (Locale.getDefault()); }
25,372
public static NumberFormat getNumberInstance (Locale loc) { return computeInstance (loc, "numberFormat", "#,##0.###"); }
public static final NumberFormat getNumberInstance () { return computeInstance (loc, "numberFormat", "#,##0.###"); }
25,373
public static NumberFormat getNumberInstance (Locale loc) { return computeInstance (loc, "numberFormat", "#,##0.###"); }
public static NumberFormat getNumberInstance (Locale loc) { return getNumberInstance (Locale.getDefault()); }
25,374
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); }
25,375
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()); }
25,376
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); }
25,377
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()); }
25,378
public abstract StringBuffer format (Object obj, StringBuffer sb, FieldPosition pos) throws IllegalArgumentException;
public abstract StringBuffer format (Object obj, StringBuffer sb, FieldPosition pos) throws IllegalArgumentException;
25,379
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; }
25,380
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; }
25,381
public void append (String text) { append (text, null); }
public void append (AttributedCharacterIterator iterator) { append (text, null); }
25,382
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...
25,383
public int hashCode() { return hashcode; }
public int hashCode() { return hashcodeCache; }
25,384
public abstract Object parseObject (String str, ParsePosition pos);
public abstract Object parseObject (String str, ParsePosition pos);
25,385
public static int parseInt(String s) { return parseInt(s, 10, false); }
public static int parseInt(String str, int radix) { return parseInt(s, 10, false); }
25,386
public static int parseInt(String s) { return parseInt(s, 10, false); }
public static int parseInt(String s) { return parseInt(str, radix, false); }
25,387
public Dimension preferredLayoutSize(Container c) { Dimension menuBarSize; Dimension prefSize; Dimension containerSize = c.getSize(); Dimension contentPaneSize = contentPane.getPreferredSize(); if (containerSize.width == 0 && containerSize.height == 0) { if (me...
public Dimension preferredLayoutSize(Container c) { Dimension menuBarSize; Dimension prefSize; Dimension containerSize = c.getSize(); Dimension contentPaneSize = contentPane.getPreferredSize(); if (containerSize.width == 0 && containerSize.height == 0) { if (me...
25,388
JRootPane() { setLayout(createRootLayout()); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI(); }
public JRootPane() { setLayout(createRootLayout()); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI(); }
25,389
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); }
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); }
25,390
JComponent createContentPane() { JPanel p = new JPanel(); p.setName(this.getName()+".contentPane"); p.setLayout(new BorderLayout()); return p; }
protected JComponent createContentPane() { JPanel p = new JPanel(); p.setName(this.getName()+".contentPane"); p.setLayout(new BorderLayout()); return p; }
25,391
JComponent createContentPane() { JPanel p = new JPanel(); p.setName(this.getName()+".contentPane"); p.setLayout(new BorderLayout()); return p; }
JComponent createContentPane() { JPanel p = new JPanel(); p.setName(this.getName()+".contentPane"); p.setLayout(new BorderLayout()); return p; }
25,392
Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName()+".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); return p; }
protected Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName()+".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); return p; }
25,393
Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName()+".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); return p; }
Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName()+".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); return p; }
25,394
JLayeredPane createLayeredPane() { JLayeredPane l = new JLayeredPane(); l.setLayout(null); return l; }
protected JLayeredPane createLayeredPane() { JLayeredPane l = new JLayeredPane(); l.setLayout(null); return l; }
25,395
protected LayoutManager createRootLayout() { return new RootLayout(); }
protected LayoutManager createRootLayout() { return new RootLayout(); }
25,396
public Container getContentPane() { if (contentPane == null) { setContentPane(createContentPane()); } return contentPane; }
public Container getContentPane() { if (contentPane == null) { setContentPane(createContentPane()); } return contentPane; }
25,397
public Container getContentPane() { if (contentPane == null) { setContentPane(createContentPane()); } return contentPane; }
public Container getContentPane() { if (contentPane == null) { setContentPane(createContentPane()); } return contentPane; }
25,398
JMenuBar getJMenuBar() { return menuBar; }
JMenuBar getJMenuBar() { return menuBar; }
25,399
void setJMenuBar(JMenuBar m) { menuBar = m; getLayeredPane().add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); }
public void setJMenuBar(JMenuBar m) { menuBar = m; getLayeredPane().add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); }
25,400
void addLayoutComponent(Component component, Object contraint);
void addLayoutComponent(Component component, Object contraint);
25,401
public Dimension getSize(Dimension d) { if (d == null) d = new Dimension(); d.width = width; d.height = height; return d; }
public Dimension getSize() { if (d == null) d = new Dimension(); d.width = width; d.height = height; return d; }
25,402
public Dimension getSize(Dimension d) { if (d == null) d = new Dimension(); d.width = width; d.height = height; return d; }
public Dimension getSize(Dimension d) { if (d == null) d = new Dimension(); d.width = width; d.height = height; return d; }
25,403
JLayeredPane() { layers = new TreeMap (); componentToLayer = new Hashtable (); }
public JLayeredPane() { layers = new TreeMap (); componentToLayer = new Hashtable (); }
25,404
protected abstract void bind(InetAddress host, int port) throws IOException;
protected abstract void bind(InetAddress host, int port) throws IOException;
25,405
protected abstract void connect(String host, int port) throws IOException;
protected abstract void connect(String host, int port) throws IOException;
25,406
protected abstract void sendUrgentData(int data) throws IOException;
protected abstract void sendUrgentData(int data) throws IOException;
25,407
public InternalError(String s) { super(s); }
public InternalError(String s) { super(s); }
25,408
protected abstract void shutdownInput () throws IOException;
protected abstract void shutdownInput () throws IOException;
25,409
protected abstract void shutdownOutput () throws IOException;
protected abstract void shutdownOutput () throws IOException;
25,410
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R...
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new Rectangle(); // icon rectangle Rectangle vr = ...
25,412
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R...
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R...
25,413
public static MenuSelectionManager defaultManager () { return manager; }
public static MenuSelectionManager defaultManager() { return manager; }
25,415
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
25,416
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
25,417
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { // if new selected path contains more elements then current ...
25,418
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
25,419
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
25,420
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
25,421
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
25,422
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
25,423
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
25,424
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
25,425
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
25,426
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
25,427
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ...
25,428
public void clearSelectedPath () { for (int i = 0; i < selection.size (); i++) ((MenuElement) selection.get (i)).menuSelectionChanged (false); selection.clear (); }
public void clearSelectedPath() { for (int i = 0; i < selection.size (); i++) ((MenuElement) selection.get (i)).menuSelectionChanged (false); selection.clear (); }
25,429
public void clearSelectedPath () { for (int i = 0; i < selection.size (); i++) ((MenuElement) selection.get (i)).menuSelectionChanged (false); selection.clear (); }
public void clearSelectedPath () { for (int i = 0; i < selection.size (); i++) ((MenuElement) selection.get (i)).menuSelectionChanged (false); selection.clear (); }
25,430
public void clearSelectedPath () { for (int i = 0; i < selection.size (); i++) ((MenuElement) selection.get (i)).menuSelectionChanged (false); selection.clear (); }
public void clearSelectedPath () { for (int i = 0; i < selection.size (); i++) ((MenuElement) selection.get (i)).menuSelectionChanged (false); fireStateChanged(); selectedPath.clear(); }
25,431
public void processMouseEvent (MouseEvent event) { Component c = ((MenuElement) event.getSource ()).getComponent (); if (selection.size () == 0) { ((MenuElement) event.getSource ()).processMouseEvent (event, getPath (c), ...
public void processMouseEvent(MouseEvent event) { Component c = ((MenuElement) event.getSource ()).getComponent (); if (selection.size () == 0) { ((MenuElement) event.getSource ()).processMouseEvent (event, getPath (c), ...
25,432
public void processMouseEvent (MouseEvent event) { Component c = ((MenuElement) event.getSource ()).getComponent (); if (selection.size () == 0) { ((MenuElement) event.getSource ()).processMouseEvent (event, getPath (c), ...
public void processMouseEvent (MouseEvent event) { Component c = ((MenuElement) event.getSource ()).getComponent (); if (selection.size () == 0) { ((MenuElement) event.getSource ()).processMouseEvent (event, getPath (c), ...
25,433
public void processMouseEvent (MouseEvent event) { Component c = ((MenuElement) event.getSource ()).getComponent (); if (selection.size () == 0) { ((MenuElement) event.getSource ()).processMouseEvent (event, getPath (c), ...
public void processMouseEvent (MouseEvent event) { Component c = ((MenuElement) event.getSource ()).getComponent (); if (selection.size () == 0) { ((MenuElement) event.getSource ()).processMouseEvent (event, getPath (c), ...
25,434
stringWidth(String str){ char[] buf = new char[str.length()]; str.getChars(0, str.length(), buf, 0); return(charsWidth(buf, 0, buf.length));}
stringWidth(String str){ char[] buf = new char[str.length()]; str.getChars(0, str.length(), buf, 0); return(charsWidth(buf, 0, buf.length));}
25,435
stringWidth(String str){ char[] buf = new char[str.length()]; str.getChars(0, str.length(), buf, 0); return(charsWidth(buf, 0, buf.length));}
stringWidth(String str){ char[] buf = new char[str.length()]; str.getChars(0, str.length(), buf, 0); return(charsWidth(buf, 0, buf.length));}
25,436
getHeight(){ return(getAscent() + getDescent() + getLeading());}
getHeight(){ return(getAscent() + getDescent() + getLeading());}
25,437
public static String getKeyText(int keyCode) { switch (keyCode) { case VK_CANCEL: return "Cancel"; case VK_BACK_SPACE: return "Backspace"; case VK_TAB: return "Tab"; case VK_ENTER: return "Enter"; case VK_CLEAR: return "Clear"; case VK_SHIFT: ...
public static String getKeyText(int keyCode) { switch (keyCode) { case VK_CANCEL: return "Cancel"; case VK_BACK_SPACE: return "Backspace"; case VK_TAB: return "Tab"; case VK_ENTER: return "Enter"; case VK_CLEAR: return "Clear"; case VK_SHIFT: ...
25,438
public ArrayList() { this(DEFAULT_CAPACITY); }
public ArrayList(int capacity) { this(DEFAULT_CAPACITY); }
25,439
public ArrayList() { this(DEFAULT_CAPACITY); }
public ArrayList() { if (capacity < 0) throw new IllegalArgumentException(); data = (E[]) new Object[capacity]; }
25,440
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; }
25,441
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; }
25,442
getFontMetrics(Font font);
getFontMetrics(Font font);
25,443
getAscent(){ return(1);}
getAscent(){ return(1);}
25,444
public static void drawStringUnderlineCharAt(Graphics g, String text, int underlinedIndex, int x, int y) { Graphics2D g2; Rectangle2D.Double underline; FontRenderContext frc; FontMetrics fmet; LineMetrics lineM...
public static void drawStringUnderlineCharAt(Graphics g, String text, int underlinedIndex, int x, int y) { Graphics2D g2; Rectangle2D.Double underline; FontRenderContext frc; FontMetrics fmet; LineMetrics lineM...
25,445
public static String toString(int i) { // This is tricky: in libgcj, String.valueOf(int) is a fast native // implementation. In Classpath it just calls back to // Integer.toString(int, int). return String.valueOf(i); }
public static String toString(int num, int radix) { // This is tricky: in libgcj, String.valueOf(int) is a fast native // implementation. In Classpath it just calls back to // Integer.toString(int, int). return String.valueOf(i); }
25,447
public static String toString(int i) { // This is tricky: in libgcj, String.valueOf(int) is a fast native // implementation. In Classpath it just calls back to // Integer.toString(int, int). return String.valueOf(i); }
public static String toString(int i) { // This is tricky: in libgcj, String.valueOf(int) is a fast native // implementation. In Classpath it just calls back to // Integer.toString(int, int). if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) radix = 10; char[] buffer = new char[33]; int i =...
25,448
public VerifyError(String s) { super(s); }
public VerifyError(String s) { super(s); }
25,449
public static void insertSystemProperties(Properties res) { final String arch; final Vm vm = Vm.getVm(); arch = vm.getArch().getName(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); res.put("java.home", "/"); res.put("...
public static void insertSystemProperties(Properties res) { final String arch; final Vm vm = Vm.getVm(); arch = vm.getArch().getName(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); res.put("java.home", "/"); res.put("...
25,450
public static void insertSystemProperties(Properties res) { final String arch; final Vm vm = Vm.getVm(); arch = vm.getArch().getName(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); res.put("java.home", "/"); res.put("...
public static void insertSystemProperties(Properties res) { final String arch; final Vm vm = Vm.getVm(); arch = vm.getArch().getName(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); res.put("java.home", "/"); res.put("...
25,451
public static void insertSystemProperties(Properties res) { final String arch; final Vm vm = Vm.getVm(); arch = vm.getArch().getName(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); res.put("java.home", "/"); res.put("...
public static void insertSystemProperties(Properties res) { final String arch; final Vm vm = Vm.getVm(); arch = vm.getArch().getName(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); res.put("java.home", "/"); res.put("...
25,452
public VmType loadClass(String name, boolean resolve) throws ClassNotFoundException, PrivilegedActionPragma { // Also implement the java.lang.ClassLoader principals here // otherwise they cannot work in java.lang.ClassLoader. if ((parent != null) && !parent.skipParentLoader(name)) { ...
public VmType loadClass(String name, boolean resolve) throws ClassNotFoundException, PrivilegedActionPragma { // Also implement the java.lang.ClassLoader principals here // otherwise they cannot work in java.lang.ClassLoader. if ((parent != null) && !parent.skipParentLoader(name)) { ...
25,454
public final Object newInstance(VmType cls, int size) { testInited(); if (cls.isArray()) { throw new IllegalArgumentException("Cannot instantiate an array like this"); } if (cls.isInterface()) { throw new IllegalArgumentException("Cannot instantiate an interface"); } final Object obj = allocObject((VmNorma...
public final Object newInstance(VmType cls, int size) { testInited(); if (cls.isArray()) { throw new IllegalArgumentException("Cannot instantiate an array like this"); } if (cls.isInterface()) { throw new IllegalArgumentException("Cannot instantiate an interface"); } final Object obj = allocObject((VmNorma...
25,456
public ArrayStoreException(String s) { super(s); }
public ArrayStoreException(String s) { super(s); }
25,457
public IndexOutOfBoundsException(String s) { super(s); }
public IndexOutOfBoundsException(String s) { super(s); }
25,458