bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public final String getName() { return "number-up-supported"; }
public String getName() { return "number-up-supported"; }
23,919
public void setDraggedColumn(TableColumn d) { draggedColumn = d; }
public void setDraggedColumn(TableColumn draggingIt) { draggedColumn = d; }
23,921
public void setDraggedColumn(TableColumn d) { draggedColumn = d; }
public void setDraggedColumn(TableColumn d) { draggedColumn = draggingIt; }
23,922
public void setReorderingAllowed(boolean r) { reorderingAllowed = r; }
public void setReorderingAllowed(boolean allowed) { reorderingAllowed = r; }
23,923
public void setReorderingAllowed(boolean r) { reorderingAllowed = r; }
public void setReorderingAllowed(boolean r) { reorderingAllowed = allowed; }
23,924
public void setResizingAllowed(boolean r) { resizingAllowed = r; }
public void setResizingAllowed(boolean allowed) { resizingAllowed = r; }
23,925
public void setResizingAllowed(boolean r) { resizingAllowed = r; }
public void setResizingAllowed(boolean r) { resizingAllowed = allowed; }
23,926
public void setResizingColumn(TableColumn r) { resizingColumn = r; }
public void setResizingColumn(TableColumn resizingIt) { resizingColumn = r; }
23,927
public void setResizingColumn(TableColumn r) { resizingColumn = r; }
public void setResizingColumn(TableColumn r) { resizingColumn = resizingIt; }
23,928
public Object getService (BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException { throw new Error ("Not implemented"); }
public Object getService (BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException, NotImplementedException { throw new Error ("Not implemented"); }
23,941
public int getViewCount() { if (view != null) return 1; else return 0; }
public int getViewCount() { if (view != null) return 1; else return 0; }
23,949
public Shape modelToView(int position, Shape a, Position.Bias bias) throws BadLocationException { return ((View) view).modelToView(position, a, bias); }
public Shape modelToView(int position, Shape a, Position.Bias bias) throws BadLocationException { return view.modelToView(position, a, bias); }
23,950
public void preferenceChanged(View view, boolean width, boolean height) { textComponent.revalidate(); }
public void preferenceChanged(View v, boolean width, boolean height) { textComponent.revalidate(); }
23,952
protected Rectangle getVisibleEditorRect() { JTextComponent textComponent = getComponent(); int width = textComponent.getWidth(); int height = textComponent.getHeight(); if (width <= 0 || height <= 0) return new Rectangle(0, 0, 0, 0); Insets insets = textComponent.getInsets(); return new Rect...
protected Rectangle getVisibleEditorRect() { int width = textComponent.getWidth(); int height = textComponent.getHeight(); if (width <= 0 || height <= 0) return new Rectangle(0, 0, 0, 0); Insets insets = textComponent.getInsets(); return new Rectangle(insets.left, insets.top, width - inse...
23,953
ObjectContext() { }
ObjectContext(Object newObject) { }
23,956
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) { Toolkit.getDefaultToolkit().loadSystemColors(colors); int colo...
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) { Toolkit.getDefaultToolkit().loadSystemColors(colors); int colo...
23,958
public RootView(JTextComponent parent) { super(null); textComponent = parent; }
public RootView() { super(null); textComponent = parent; }
23,959
public RootView(JTextComponent parent) { super(null); textComponent = parent; }
public RootView(JTextComponent parent) { super(null); textComponent = parent; }
23,960
public void paint(Graphics g, Shape s) { System.out.println("Michael: BasicTextUI.RootView.paint"); if (view != null) view.paint(g, s); }
public void paint(Graphics g, Shape s) { if (view != null) view.paint(g, s); }
23,961
public void installUI(final JComponent c) { super.installUI(c); c.setOpaque(true); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = new PlainDocument(); textComponent.setDocument(doc); } rootView = new RootView(textComponent); ...
public void installUI(final JComponent c) { super.installUI(c); c.setOpaque(true); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = getEditorKit(textComponent).createDefaultDocument(); textComponent.setDocument(doc); } rootView =...
23,964
public void installUI(final JComponent c) { super.installUI(c); c.setOpaque(true); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = new PlainDocument(); textComponent.setDocument(doc); } rootView = new RootView(textComponent); ...
public void installUI(final JComponent c) { super.installUI(c); c.setOpaque(true); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = new PlainDocument(); textComponent.setDocument(doc); } rootView = new RootView(textComponent); ...
23,965
public Rectangle modelToView(JTextComponent t, int pos) throws BadLocationException { return modelToView(t, pos, null); }
public Rectangle modelToView(JTextComponent t, int pos) throws BadLocationException { return modelToView(t, pos, Position.Bias.Forward); }
23,966
protected void paintBackground(Graphics g) { g.setColor(Color.WHITE); // FIXME: set background color g.fillRect(0, 0, textComponent.getWidth(), textComponent.getHeight()); }
protected void paintBackground(Graphics g) { g.setColor(textComponent.getBackground()); // FIXME: set background color g.fillRect(0, 0, textComponent.getWidth(), textComponent.getHeight()); }
23,967
protected void paintSafely(Graphics g) { Caret caret = textComponent.getCaret(); Highlighter highlighter = textComponent.getHighlighter(); if (textComponent.isOpaque()) paintBackground(g); rootView.paint(g, getVisibleEditorRect()); if (highlighter != null) highlighter.paint(g); if...
protected void paintSafely(Graphics g) { Caret caret = textComponent.getCaret(); Highlighter highlighter = textComponent.getHighlighter(); if (textComponent.isOpaque()) paintBackground(g); rootView.paint(g, getVisibleEditorRect()); if (highlighter != null) highlighter.paint(g); if...
23,968
public void uninstallUI(final JComponent c) { super.uninstallUI(c); rootView = null; uninstallDefaults(); uninstallListeners(); uninstallKeyboardActions(); }
public void uninstallUI(final JComponent component) { super.uninstallUI(c); rootView = null; uninstallDefaults(); uninstallListeners(); uninstallKeyboardActions(); }
23,969
public void uninstallUI(final JComponent c) { super.uninstallUI(c); rootView = null; uninstallDefaults(); uninstallListeners(); uninstallKeyboardActions(); }
public void uninstallUI(final JComponent c) { super.uninstallUI(c); rootView = null; uninstallDefaults(); uninstallListeners(); uninstallKeyboardActions(); }
23,970
public BufferedImageSurface(BufferedImage image) { super(image.getWidth(), image.getHeight()); this.model = image.getColorModel(); this.sImage = image; final Raster raster = image.getRaster(); final DataBuffer dataBuffer = raster.getDataBuffer(); final SampleModel sampleModel = raster.getSampleModel(); ...
public BufferedImageSurface(BufferedImage image) { super(image.getWidth(), image.getHeight()); this.model = image.getColorModel(); this.sImage = image; final Raster raster = image.getRaster(); final DataBuffer dataBuffer = raster.getDataBuffer(); final SampleModel sampleModel = raster.getSampleModel(); ...
23,972
public Image createImage(int width, int height) { GraphicsEnvironment graphicsEnv = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice dev = graphicsEnv.getDefaultScreenDevice(); GraphicsConfiguration conf = dev.getDefaultConfiguration(); Image image = conf.createCompatibleImage(width...
public Image createImage(ImageProducer prod) { GraphicsEnvironment graphicsEnv = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice dev = graphicsEnv.getDefaultScreenDevice(); GraphicsConfiguration conf = dev.getDefaultConfiguration(); Image image = conf.createCompatibleImage(width, h...
23,973
public Image createImage(int width, int height) { GraphicsEnvironment graphicsEnv = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice dev = graphicsEnv.getDefaultScreenDevice(); GraphicsConfiguration conf = dev.getDefaultConfiguration(); Image image = conf.createCompatibleImage(width...
public Image createImage(int width, int height) { GraphicsEnvironment graphicsEnv = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice dev = graphicsEnv.getDefaultScreenDevice(); GraphicsConfiguration conf = dev.getDefaultConfiguration(); Image image = conf.createCompatibleImage(width...
23,974
public void addMethod(Method method) { if(Modifier.isPublic(method.getModifiers())) { String name = ClassHelper.getTruncatedName(method.getName()); Class retType = method.getReturnType(); Class[] params = method.getParameterTypes(); boolean isVoid = retType.equals(java.lang.Void.TYPE); Class methodClass = m...
public void addMethod(Method method) { if(Modifier.isPublic(method.getModifiers())) { String name = ClassHelper.getTruncatedName(method.getName()); Class retType = method.getReturnType(); Class[] params = method.getParameterTypes(); boolean isVoid = retType.equals(java.lang.Void.TYPE); Class methodClass = m...
23,975
public void addMethod(Method method) { if(Modifier.isPublic(method.getModifiers())) { String name = ClassHelper.getTruncatedName(method.getName()); Class retType = method.getReturnType(); Class[] params = method.getParameterTypes(); boolean isVoid = retType.equals(java.lang.Void.TYPE); Class methodClass = m...
public void addMethod(Method method) { if(Modifier.isPublic(method.getModifiers())) { String name = ClassHelper.getTruncatedName(method.getName()); Class retType = method.getReturnType(); Class[] params = method.getParameterTypes(); boolean isVoid = retType.equals(java.lang.Void.TYPE); Class methodClass = m...
23,976
public void addMethod(Method method) { if(Modifier.isPublic(method.getModifiers())) { String name = ClassHelper.getTruncatedName(method.getName()); Class retType = method.getReturnType(); Class[] params = method.getParameterTypes(); boolean isVoid = retType.equals(java.lang.Void.TYPE); Class methodClass = m...
public void addMethod(Method method) { if(Modifier.isPublic(method.getModifiers())) { String name = ClassHelper.getTruncatedName(method.getName()); Class retType = method.getReturnType(); Class[] params = method.getParameterTypes(); boolean isVoid = retType.equals(java.lang.Void.TYPE); Class methodClass = m...
23,977
public String toString() { StringBuffer buf = new StringBuffer (LoginModuleControlFlag.class.getName()); buf.append ('.'); if (this == OPTIONAL) buf.append ("OPTIONAL"); else if (this == REQUIRED) buf.append ("REQUIRED"); else if (this == REQUISITE) buf.append ("REQU...
public String toString() { StringBuffer buf = new StringBuffer (LoginModuleControlFlag.class.getName()); buf.append ('.'); if (this == OPTIONAL) buf.append ("OPTIONAL"); else if (this == REQUIRED) buf.append ("REQUIRED"); else if (this == REQUISITE) buf.append ("REQU...
23,978
public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new MD5().digest()))); } return valid.booleanValue(); }
public boolean selfTest() { if (valid == null) { String d = Util.toString(new MD5().digest()); valid = Boolean.valueOf(DIGEST0.equals(d)); } return valid.booleanValue(); }
23,979
public final Object attachment() { return attached; }
public final synchronized Object attachment() { return attached; }
23,980
public void read(cdrInput in) { try { request_id = in.read_ulong(); response_flags = (byte) in.read(); // Skip 3 reserved octets: in.skip(3); // Read target address. AddressingDisposition = in.read_ushort(); switch (AddressingDisposition) { ...
public void read(cdrInput in) { try { request_id = in.read_ulong(); response_flags = (byte) in.read(); // Skip 3 reserved octets: in.skip(3); // Read target address. AddressingDisposition = in.read_ushort(); switch (AddressingDisposition) { ...
23,981
public synchronized int codePointCount(int start, int end) { if (start < 0 || end >= count || start > end) throw new StringIndexOutOfBoundsException(); start += offset; end += offset; int count = 0; while (start < end) { char base = value[start]; if (base < Character.MIN_HIGH_SURROGATE |...
public synchronized int codePointCount(int start, int end) { if (start < 0 || end > count || start > end) throw new StringIndexOutOfBoundsException(); start += offset; end += offset; int count = 0; while (start < end) { char base = value[start]; if (base < Character.MIN_HIGH_SURROGATE ||...
23,982
private static int upperCaseExpansion(char ch) { return Character.direction[Character.readChar(ch) >> 7] & 3; }
private static int upperCaseExpansion(char ch) { return Character.direction[0][Character.readCodePoint((int)ch) >> 7] & 3; }
23,983
public int indexOf(String str, int fromIndex) { if (fromIndex < 0) fromIndex = 0; int limit = count - str.count; for ( ; fromIndex <= limit; fromIndex++) if (regionMatches(fromIndex, str)) return fromIndex; return -1; }
public int indexOf(String str) { if (fromIndex < 0) fromIndex = 0; int limit = count - str.count; for ( ; fromIndex <= limit; fromIndex++) if (regionMatches(fromIndex, str)) return fromIndex; return -1; }
23,984
public int indexOf(String str, int fromIndex) { if (fromIndex < 0) fromIndex = 0; int limit = count - str.count; for ( ; fromIndex <= limit; fromIndex++) if (regionMatches(fromIndex, str)) return fromIndex; return -1; }
public int indexOf(String str, int fromIndex) { if (fromIndex < 0) fromIndex = 0; int limit = count - str.count; for ( ; fromIndex <= limit; fromIndex++) if (regionMatches(fromIndex, str)) return fromIndex; return -1; }
23,985
public FTPFSEntry(FTPFileSystem fileSystem, FTPFile ftpFile) { this.fileSystem = fileSystem; this.ftpFile = ftpFile; }
FTPFSEntry(FTPFileSystem fileSystem, FTPFile ftpFile) { this.fileSystem = fileSystem; this.ftpFile = ftpFile; }
23,986
public void setEras (String[] value) { eras = value; }
public void setEras (String[] labels) { eras = value; }
23,987
public void setEras (String[] value) { eras = value; }
public void setEras (String[] value) { eras = labels; }
23,988
public void setLocalPatternChars (String value) { localPatternChars = value; }
public void setLocalPatternChars (String chars) { localPatternChars = value; }
23,989
public void setLocalPatternChars (String value) { localPatternChars = value; }
public void setLocalPatternChars (String value) { localPatternChars = chars; }
23,990
public void setMonths (String[] value) { months = value; }
public void setMonths (String[] labels) { months = value; }
23,991
public void setMonths (String[] value) { months = value; }
public void setMonths (String[] value) { months = labels; }
23,992
public void setShortMonths (String[] value) { shortMonths = value; }
public void setShortMonths (String[] labels) { shortMonths = value; }
23,993
public void setShortMonths (String[] value) { shortMonths = value; }
public void setShortMonths (String[] value) { shortMonths = labels; }
23,994
public void setShortWeekdays (String[] value) { shortWeekdays = value; }
public void setShortWeekdays (String[] labels) { shortWeekdays = value; }
23,995
public void setShortWeekdays (String[] value) { shortWeekdays = value; }
public void setShortWeekdays (String[] value) { shortWeekdays = labels; }
23,996
public void setWeekdays (String[] value) { weekdays = value; }
public void setWeekdays (String[] labels) { weekdays = value; }
23,997
public void setWeekdays (String[] value) { weekdays = value; }
public void setWeekdays (String[] value) { weekdays = labels; }
23,998
public void setZoneStrings (String[][] value) { zoneStrings = value; }
public void setZoneStrings (String[][] zones) { zoneStrings = value; }
23,999
public void setZoneStrings (String[][] value) { zoneStrings = value; }
public void setZoneStrings (String[][] value) { zoneStrings = zones; }
24,000
public Set<Map.Entry<K, V>> entrySet() { if (entries == null) { // @classpath-bugfix give an 'inconvertible types' at compilation //Class<Map.Entry<K,V>> klass = // (Class<Map.Entry<K,V>>) Map.Entry.class; Class klass = Map.Entry.class; // @classpath-bugfix-end entries = new CheckedEn...
public Set<Map.Entry<K, V>> entrySet() { if (entries == null) { // @classpath-bugfix give an 'inconvertible types' at compilation //Class<Map.Entry<K,V>> klass = // (Class<Map.Entry<K,V>>) Map.Entry.class; Class<Map.Entry<K,V>> klass = (Class<Map.Entry<K,V>>) (Class) Map.Entry.class; //...
24,001
public Set<Map.Entry<K, V>> entrySet() { if (entries == null) { Map.Entry<K,V> entry = new AbstractMap.BasicMapEntry<K, V>(k, v) { /** * Sets the value of the map entry to the supplied value. * An exception is always thrown, as the map is immutable. * * @param o The new value. ...
public Set<Map.Entry<K, V>> entrySet() { if (entries == null) { Map.Entry<K,V> entry = new AbstractMap.SimpleEntry<K, V>(k, v) { /** * Sets the value of the map entry to the supplied value. * An exception is always thrown, as the map is immutable. * * @param o The new value. ...
24,002
UnmodifiableCollection(Collection<T> c) { this.c = c; if (c == null) throw new NullPointerException(); }
UnmodifiableCollection(Collection<? extends T> c) { this.c = c; if (c == null) throw new NullPointerException(); }
24,003
UnmodifiableIterator(Iterator<T> i) { this.i = i; }
UnmodifiableIterator(Iterator<? extends T> i) { this.i = i; }
24,004
UnmodifiableList(List<T> l) { super(l); list = l; }
UnmodifiableList(List<? extends T> l) { super(l); list = l; }
24,005
UnmodifiableList(List<T> l) { super(l); list = l; }
UnmodifiableList(List<T> l) { super(l); list = (List<T>) l; }
24,006
UnmodifiableEntrySet(Set<T> s) { super(s); }
UnmodifiableEntrySet(Set<Map.Entry<K,V>> s) { super(s); }
24,007
public Iterator<T> iterator() { return new UnmodifiableIterator<T>(c.iterator()) { /** * Obtains the next element from the underlying set of * map entries. * * @return the next element in the collection. * @throws NoSuchElementException if there are no more elements. */ pu...
public Iterator<Map.Entry<K,V>> iterator() { return new UnmodifiableIterator<T>(c.iterator()) { /** * Obtains the next element from the underlying set of * map entries. * * @return the next element in the collection. * @throws NoSuchElementException if there are no more elements. *...
24,008
public Iterator<T> iterator() { return new UnmodifiableIterator<T>(c.iterator()) { /** * Obtains the next element from the underlying set of * map entries. * * @return the next element in the collection. * @throws NoSuchElementException if there are no more elements. */ pu...
public Iterator<T> iterator() { return new UnmodifiableIterator<Map.Entry<K,V>>(c.iterator()) { /** * Obtains the next element from the underlying set of * map entries. * * @return the next element in the collection. * @throws NoSuchElementException if there are no more elements. *...
24,009
public Iterator<T> iterator() { return new UnmodifiableIterator<T>(c.iterator()) { /** * Obtains the next element from the underlying set of * map entries. * * @return the next element in the collection. * @throws NoSuchElementException if there are no more elements. */ pu...
public Iterator<T> iterator() { return new UnmodifiableIterator<T>(c.iterator()) { /** * Obtains the next element from the underlying set of * map entries. * * @return the next element in the collection. * @throws NoSuchElementException if there are no more elements. */ pu...
24,010
public Iterator<T> iterator() { return new UnmodifiableIterator<T>(c.iterator()) { /** * Obtains the next element from the underlying set of * map entries. * * @return the next element in the collection. * @throws NoSuchElementException if there are no more elements. */ pu...
public Iterator<T> iterator() { return new UnmodifiableIterator<T>(c.iterator()) { /** * Obtains the next element from the underlying set of * map entries. * * @return the next element in the collection. * @throws NoSuchElementException if there are no more elements. */ pu...
24,011
public T next() { final Map.Entry e = (Map.Entry) super.next(); return (T) new Map.Entry() { /** * Returns <code>true</code> if the object, o, is also a map entry with an * identical key and value. * * @param o the object to compare. ...
public Map.Entry<K,V> next() { final Map.Entry e = (Map.Entry) super.next(); return (T) new Map.Entry() { /** * Returns <code>true</code> if the object, o, is also a map entry with an * identical key and value. * * @param o the object to com...
24,012
public T next() { final Map.Entry e = (Map.Entry) super.next(); return (T) new Map.Entry() { /** * Returns <code>true</code> if the object, o, is also a map entry with an * identical key and value. * * @param o the object to compare. ...
public T next() { final Map.Entry e = (Map.Entry) super.next(); return (T) new Map.Entry() { /** * Returns <code>true</code> if the object, o, is also a map entry with an * identical key and value. * * @param o the object to compare. ...
24,013
UnmodifiableMap(Map<K, V> m) { this.m = m; if (m == null) throw new NullPointerException(); }
UnmodifiableMap(Map<? extends K, ? extends V> m) { this.m = m; if (m == null) throw new NullPointerException(); }
24,014
UnmodifiableMap(Map<K, V> m) { this.m = m; if (m == null) throw new NullPointerException(); }
UnmodifiableMap(Map<K, V> m) { this.m = (Map<K,V>) m; if (m == null) throw new NullPointerException(); }
24,015
public Set<Map.Entry<K, V>> entrySet() { if (entries == null) entries = new UnmodifiableEntrySet<Map.Entry<K,V>>(m.entrySet()); return entries; }
public Set<Map.Entry<K, V>> entrySet() { if (entries == null) entries = new UnmodifiableEntrySet<K,V>(m.entrySet()); return entries; }
24,016
UnmodifiableRandomAccessList(List<T> l) { super(l); }
UnmodifiableRandomAccessList(List<? extends T> l) { super(l); }
24,017
UnmodifiableSet(Set<T> s) { super(s); }
UnmodifiableSet(Set<? extends T> s) { super(s); }
24,018
UnmodifiableSortedMap(SortedMap<K, V> sm) { super(sm); this.sm = sm; }
UnmodifiableSortedMap(SortedMap<K, ? extends V> sm) { super(sm); this.sm = sm; }
24,019
UnmodifiableSortedMap(SortedMap<K, V> sm) { super(sm); this.sm = sm; }
UnmodifiableSortedMap(SortedMap<K, V> sm) { super(sm); this.sm = (SortedMap<K,V>) sm; }
24,020
int binarySearch(List<? extends T> l, T key) { return binarySearch(l, key, null); }
public static <T> int binarySearch(List<? extends Comparable<? super T>> l, T key) { return binarySearch(l, key, null); }
24,021
public static <T> void fill(List<T> l, T val) { ListIterator<T> itr = l.listIterator(); for (int i = l.size() - 1; i >= 0; --i) { itr.next(); itr.set(val); } }
public static <T> void fill(List<? super T> l, T val) { ListIterator<T> itr = l.listIterator(); for (int i = l.size() - 1; i >= 0; --i) { itr.next(); itr.set(val); } }
24,022
public static <T> void fill(List<T> l, T val) { ListIterator<T> itr = l.listIterator(); for (int i = l.size() - 1; i >= 0; --i) { itr.next(); itr.set(val); } }
public static <T> void fill(List<T> l, T val) { ListIterator<? super T> itr = l.listIterator(); for (int i = l.size() - 1; i >= 0; --i) { itr.next(); itr.set(val); } }
24,023
public static <T> void reverse(List<T> l) { ListIterator<T> i1 = l.listIterator(); int pos1 = 1; int pos2 = l.size(); ListIterator<T> i2 = l.listIterator(pos2); while (pos1 < pos2) { T o = i1.next(); i1.set(i2.previous()); i2.set(o); ++pos1; --pos2; } }
public static void reverse(List<?> l) { ListIterator<T> i1 = l.listIterator(); int pos1 = 1; int pos2 = l.size(); ListIterator<T> i2 = l.listIterator(pos2); while (pos1 < pos2) { T o = i1.next(); i1.set(i2.previous()); i2.set(o); ++pos1; --pos2; } }
24,024
public static <T> void reverse(List<T> l) { ListIterator<T> i1 = l.listIterator(); int pos1 = 1; int pos2 = l.size(); ListIterator<T> i2 = l.listIterator(pos2); while (pos1 < pos2) { T o = i1.next(); i1.set(i2.previous()); i2.set(o); ++pos1; --pos2; } }
public static <T> void reverse(List<T> l) { ListIterator i1 = l.listIterator(); int pos1 = 1; int pos2 = l.size(); ListIterator<T> i2 = l.listIterator(pos2); while (pos1 < pos2) { T o = i1.next(); i1.set(i2.previous()); i2.set(o); ++pos1; --pos2; } }
24,025
public static <T> void reverse(List<T> l) { ListIterator<T> i1 = l.listIterator(); int pos1 = 1; int pos2 = l.size(); ListIterator<T> i2 = l.listIterator(pos2); while (pos1 < pos2) { T o = i1.next(); i1.set(i2.previous()); i2.set(o); ++pos1; --pos2; } }
public static <T> void reverse(List<T> l) { ListIterator<T> i1 = l.listIterator(); int pos1 = 1; int pos2 = l.size(); ListIterator i2 = l.listIterator(pos2); while (pos1 < pos2) { T o = i1.next(); i1.set(i2.previous()); i2.set(o); ++pos1; --pos2; } }
24,026
public static <T> void reverse(List<T> l) { ListIterator<T> i1 = l.listIterator(); int pos1 = 1; int pos2 = l.size(); ListIterator<T> i2 = l.listIterator(pos2); while (pos1 < pos2) { T o = i1.next(); i1.set(i2.previous()); i2.set(o); ++pos1; --pos2; } }
public static <T> void reverse(List<T> l) { ListIterator<T> i1 = l.listIterator(); int pos1 = 1; int pos2 = l.size(); ListIterator<T> i2 = l.listIterator(pos2); while (pos1 < pos2) { T o = i1.next(); i1.set(i2.previous()); i2.set(o); ++pos1; --pos2; } }
24,027
public static <T> Collection<T> unmodifiableCollection(Collection<T> c) { return new UnmodifiableCollection<T>(c); }
public static <T> Collection<T> unmodifiableCollection(Collection<? extends T> c) { return new UnmodifiableCollection<T>(c); }
24,028
public static <T> List<T> unmodifiableList(List<T> l) { if (l instanceof RandomAccess) return new UnmodifiableRandomAccessList<T>(l); return new UnmodifiableList<T>(l); }
public static <T> List<T> unmodifiableList(List<? extends T> l) { if (l instanceof RandomAccess) return new UnmodifiableRandomAccessList<T>(l); return new UnmodifiableList<T>(l); }
24,029
public static <K, V> Map<K, V> unmodifiableMap(Map<K, V> m) { return new UnmodifiableMap<K, V>(m); }
public static <K, V> Map<K, V> unmodifiableMap(Map<? extends K, ? extends V> m) { return new UnmodifiableMap<K, V>(m); }
24,030
public static <T> Set<T> unmodifiableSet(Set<T> s) { return new UnmodifiableSet<T>(s); }
public static <T> Set<T> unmodifiableSet(Set<? extends T> s) { return new UnmodifiableSet<T>(s); }
24,031
public static <K, V> SortedMap<K, V> unmodifiableSortedMap(SortedMap<K, V> m) { return new UnmodifiableSortedMap<K, V>(m); }
public static <K, V> SortedMap<K, V> unmodifiableSortedMap(SortedMap<K, ? extends V> m) { return new UnmodifiableSortedMap<K, V>(m); }
24,032
protected void pushCharacterStyle() { charAttrStack.push(charAttr); }
protected void pushCharacterStyle() { charAttrStack.push(charAttr.copyAttributes()); }
24,036
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ...
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ...
24,038
public void updateUI() { setUI((PopupMenuUI) UIManager.getUI(this)); invalidate(); }
public void updateUI() { setUI((PopupMenuUI) UIManager.getUI(this)); }
24,040
public String getSelectedText() { // We return "" here since JLabel's text is not selectable. return ""; }
public String getSelectedText() { // We return "" here since JLabel's text is not selectable. return null; }
24,043
public JLabel() { this(null, null, LEADING); }
public JLabel() { this("", null, LEADING); }
24,044
protected String paramString() { return "JLabel"; }
protected String paramString() { return super.paramString(); }
24,045
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
24,048
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
24,049
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
24,050
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
24,052
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
24,053
public boolean isCellEditable(EventObject event) { if (event == null || !(event instanceof MouseEvent)) return true; //Todo: if the right number of clicks has occured, return true; return false; } // isCellEditable()
public boolean isCellEditable(EventObject event) { if (event == null || !(event instanceof MouseEvent) || (((MouseEvent) event).getClickCount() >= getClickCountToStart())) return true; //Todo: if the right number of clicks has occured, return true; return false; } // isCellEditable()
24,055
protected EnumSyntax[] getEnumValueTable() { // FIXME return null; }
protected EnumSyntax[] getEnumValueTable() { // FIXME return enumValueTable; }
24,056