bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void setResizingColumn(TableColumn r) { resizingColumn = r; }
public void setResizingColumn(TableColumn r) { resizingColumn = resizingIt; }
38,218
protected void bcsPreDeserializationHook (ObjectInputStream ois) throws ClassNotFoundException, IOException { throw new Error ("Not implemented"); }
protected void bcsPreDeserializationHook (ObjectInputStream ois) throws ClassNotFoundException, IOException, NotImplementedException { throw new Error ("Not implemented"); }
38,224
protected void bcsPreSerializationHook (ObjectOutputStream oos) throws IOException { throw new Error ("Not implemented"); }
protected void bcsPreSerializationHook (ObjectOutputStream oos) throws IOException, NotImplementedException { throw new Error ("Not implemented"); }
38,225
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"); }
38,235
public int getViewCount() { if (view != null) return 1; else return 0; }
public int getViewCount() { if (view != null) return 1; else return 0; }
38,243
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); }
38,244
public void preferenceChanged(View view, boolean width, boolean height) { textComponent.revalidate(); }
public void preferenceChanged(View v, boolean width, boolean height) { textComponent.revalidate(); }
38,246
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 - inset...
38,247
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); } textCompon...
publicvoidinstallUI(finalJComponentc){super.installUI(c);c.setOpaque(true);textComponent=(JTextComponent)c;Documentdoc=textComponent.getDocument();if(doc==null){ doc=getEditorKit(textComponent).createDefaultDocument(); textComponent.setDocument(doc);}textComponent.addPropertyChangeListener(updateHandler);modelChanged()...
38,248
protected void paintBackground(Graphics g) { // This method does nothing. All the background filling is done by the // ComponentUI update method. However, the method is called by paint // to provide a way for subclasses to draw something different (e.g. // background images etc) on the background. }
protected void paintBackground(Graphics g) {Color old = g.getColor(); g.setColor(textComponent.getBackground()); g.fillRect(0, 0, textComponent.getWidth(), textComponent.getHeight()); g.setColor(old); // This method does nothing. All the background filling is done by theColor old = g.getColor(); g.setColor(textCompo...
38,250
ObjectContext() { }
ObjectContext(Object newObject) { }
38,251
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...
38,253
public RootView(JTextComponent parent) { super(null); textComponent = parent; }
public RootView(JTextComponent parent) { super(null); textComponent = parent; }
38,254
public RootView(JTextComponent parent) { super(null); textComponent = parent; }
public RootView(JTextComponent parent) { super(null); textComponent = parent; }
38,255
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); }
38,256
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); ...
38,260
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); ...
38,261
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); }
38,262
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()); }
38,263
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...
38,264
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(); }
38,268
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(); }
38,269
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(); ...
38,271
public static BitmapGraphics createInstance(DataBuffer dataBuffer, int width, int height, int bytesPerLine) { final ResourceManager rm; try { rm = (ResourceManager) InitialNaming.lookup(ResourceManager.NAME); } catch (NamingException ex) { throw new RuntimeException("Cannot find ResourceManager", ex); } final...
public static BitmapGraphics createInstance(DataBuffer dataBuffer, int width, int height, int bytesPerLine) { final ResourceManager rm; try { rm = (ResourceManager) InitialNaming.lookup(ResourceManager.NAME); } catch (NamingException ex) { throw new RuntimeException("Cannot find ResourceManager", ex); } final...
38,272
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...
38,273
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...
38,274
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...
38,275
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...
38,276
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...
38,277
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...
38,279
protected byte[] getResult() { byte[] result = new byte[] { (byte) h0, (byte) (h0 >>> 8), (byte) (h0 >>> 16), (byte) (h0 >>> 24), (byte) h1, (byte) (h1 >>> 8), (byte) (h1 >>> 16), (byte) (h1 >>> 24), ...
protected byte[] getResult() { byte[] result = new byte[] { (byte) h0, (byte) (h0 >>> 8), (byte) (h0 >>> 16), (byte) (h0 >>> 24), (byte) h1, (byte) (h1 >>> 8), (byte) (h1 >>> 16), (byte) (h1 >>> 24), ...
38,281
protected byte[] padBuffer() { int n = (int) (count % BLOCK_SIZE); int padding = (n < 56) ? (56 - n) : (120 - n); byte[] result = new byte[padding + 8]; // padding is always binary 1 followed by binary 0s result[0] = (byte) 0x80; // save number of bits, casting the long to an array of 8 bytes lo...
protected byte[] padBuffer() { int n = (int)(count % BLOCK_SIZE); int padding = (n < 56) ? (56 - n) : (120 - n); byte[] result = new byte[padding + 8]; // padding is always binary 1 followed by binary 0s result[0] = (byte) 0x80; // save number of bits, casting the long to an array of 8 bytes lon...
38,282
protected byte[] padBuffer() { int n = (int) (count % BLOCK_SIZE); int padding = (n < 56) ? (56 - n) : (120 - n); byte[] result = new byte[padding + 8]; // padding is always binary 1 followed by binary 0s result[0] = (byte) 0x80; // save number of bits, casting the long to an array of 8 bytes lo...
protectedbyte[]padBuffer(){intn=(int)(count%BLOCK_SIZE);intpadding=(n<56)?(56-n):(120-n);byte[]result=newbyte[padding+8];//paddingisalwaysbinary1followedbybinary0sresult[0]=(byte)0x80;//savenumberofbits,castingthelongtoanarrayof8byteslongbits=count<<3;result[padding++]=(byte)bits;result[padding++]=(byte)(bits>>>8);resu...
38,283
protected byte[] padBuffer() { int n = (int) (count % BLOCK_SIZE); int padding = (n < 56) ? (56 - n) : (120 - n); byte[] result = new byte[padding + 8]; // padding is always binary 1 followed by binary 0s result[0] = (byte) 0x80; // save number of bits, casting the long to an array of 8 bytes lo...
protectedbyte[]padBuffer(){intn=(int)(count%BLOCK_SIZE);intpadding=(n<56)?(56-n):(120-n);byte[]result=newbyte[padding+8];//paddingisalwaysbinary1followedbybinary0sresult[0]=(byte)0x80;//savenumberofbits,castingthelongtoanarrayof8byteslongbits=count<<3;result[padding++]=(byte)bits;result[padding++]=(byte)(bits>>>8);resu...
38,284
protected byte[] padBuffer() { int n = (int) (count % BLOCK_SIZE); int padding = (n < 56) ? (56 - n) : (120 - n); byte[] result = new byte[padding + 8]; // padding is always binary 1 followed by binary 0s result[0] = (byte) 0x80; // save number of bits, casting the long to an array of 8 bytes lo...
protected byte[] padBuffer() { int n = (int) (count % BLOCK_SIZE); int padding = (n < 56) ? (56 - n) : (120 - n); byte[] result = new byte[padding + 8]; // padding is always binary 1 followed by binary 0s result[0] = (byte) 0x80; // save number of bits, casting the long to an array of 8 bytes lo...
38,285
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(); }
38,286
protected synchronized void transform(byte[] in, int i) { int X0 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | in[i++] << 24; int X1 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | in[i++] << 24; int X2 = (in[i++] & 0xFF) | (in[i++] & 0xF...
protected synchronized void transform(byte[] in, int i) { int X0 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | in[i++] << 24; int X1 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | in[i++] << 24; int X2 = (in[i++] & 0xFF) | (in[i++] & 0xF...
38,287
protected synchronized void transform(byte[] in, int i) { int X0 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | in[i++] << 24; int X1 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | in[i++] << 24; int X2 = (in[i++] & 0xFF) | (in[i++] & 0xF...
protectedsynchronizedvoidtransform(byte[]in,inti){intX0=(in[i++]&0xFF)|(in[i++]&0xFF)<<8|(in[i++]&0xFF)<<16|in[i++]<<24;intX1=(in[i++]&0xFF)|(in[i++]&0xFF)<<8|(in[i++]&0xFF)<<16|in[i++]<<24;intX2=(in[i++]&0xFF)|(in[i++]&0xFF)<<8|(in[i++]&0xFF)<<16|in[i++]<<24;intX3=(in[i++]&0xFF)|(in[i++]&0xFF)<<8|(in[i++]&0xFF)<<16|in...
38,288
protected synchronized void transform(byte[] in, int i) { int X0 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | in[i++] << 24; int X1 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | in[i++] << 24; int X2 = (in[i++] & 0xFF) | (in[i++] & 0xF...
protectedsynchronizedvoidtransform(byte[]in,inti){intX0=(in[i++]&0xFF)|(in[i++]&0xFF)<<8|(in[i++]&0xFF)<<16|in[i++]<<24;intX1=(in[i++]&0xFF)|(in[i++]&0xFF)<<8|(in[i++]&0xFF)<<16|in[i++]<<24;intX2=(in[i++]&0xFF)|(in[i++]&0xFF)<<8|(in[i++]&0xFF)<<16|in[i++]<<24;intX3=(in[i++]&0xFF)|(in[i++]&0xFF)<<8|(in[i++]&0xFF)<<16|in...
38,289
public final Object attachment() { return attached; }
public final synchronized Object attachment() { return attached; }
38,290
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) { ...
38,291
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 ||...
38,292
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; }
38,293
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; }
38,294
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; }
38,295
public FTPFSEntry(FTPFileSystem fileSystem, FTPFile ftpFile) { this.fileSystem = fileSystem; this.ftpFile = ftpFile; }
FTPFSEntry(FTPFileSystem fileSystem, FTPFile ftpFile) { this.fileSystem = fileSystem; this.ftpFile = ftpFile; }
38,296
public void setEras (String[] value) { eras = value; }
public void setEras (String[] labels) { eras = value; }
38,297
public void setEras (String[] value) { eras = value; }
public void setEras (String[] value) { eras = labels; }
38,298
public void setLocalPatternChars (String value) { localPatternChars = value; }
public void setLocalPatternChars (String chars) { localPatternChars = value; }
38,299
public void setLocalPatternChars (String value) { localPatternChars = value; }
public void setLocalPatternChars (String value) { localPatternChars = chars; }
38,300
public void setMonths (String[] value) { months = value; }
public void setMonths (String[] labels) { months = value; }
38,301
public void setMonths (String[] value) { months = value; }
public void setMonths (String[] value) { months = labels; }
38,302
public void setShortMonths (String[] value) { shortMonths = value; }
public void setShortMonths (String[] labels) { shortMonths = value; }
38,303
public void setShortMonths (String[] value) { shortMonths = value; }
public void setShortMonths (String[] value) { shortMonths = labels; }
38,304
public void setShortWeekdays (String[] value) { shortWeekdays = value; }
public void setShortWeekdays (String[] labels) { shortWeekdays = value; }
38,305
public void setShortWeekdays (String[] value) { shortWeekdays = value; }
public void setShortWeekdays (String[] value) { shortWeekdays = labels; }
38,306
public void setWeekdays (String[] value) { weekdays = value; }
public void setWeekdays (String[] labels) { weekdays = value; }
38,307
public void setWeekdays (String[] value) { weekdays = value; }
public void setWeekdays (String[] value) { weekdays = labels; }
38,308
public void setZoneStrings (String[][] value) { zoneStrings = value; }
public void setZoneStrings (String[][] zones) { zoneStrings = value; }
38,309
public void setZoneStrings (String[][] value) { zoneStrings = value; }
public void setZoneStrings (String[][] value) { zoneStrings = zones; }
38,310
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; // @cl...
38,311
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.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. ...
38,312
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(); }
38,313
UnmodifiableIterator(Iterator<T> i) { this.i = i; }
UnmodifiableIterator(Iterator<? extends T> i) { this.i = i; }
38,314
UnmodifiableList(List<T> l) { super(l); list = l; }
UnmodifiableList(List<? extends T> l) { super(l); list = l; }
38,315
UnmodifiableList(List<T> l) { super(l); list = l; }
UnmodifiableList(List<T> l) { super(l); list = (List<T>) l; }
38,316
UnmodifiableEntrySet(Set<T> s) { super(s); }
UnmodifiableEntrySet(Set<Map.Entry<K,V>> s) { super(s); }
38,317
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. *...
38,318
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...
38,319
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...
38,320
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...
38,321
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...
38,322
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. ...
38,323
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(); }
38,324
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(); }
38,325
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; }
38,326
UnmodifiableRandomAccessList(List<T> l) { super(l); }
UnmodifiableRandomAccessList(List<? extends T> l) { super(l); }
38,327
UnmodifiableSet(Set<T> s) { super(s); }
UnmodifiableSet(Set<? extends T> s) { super(s); }
38,328
UnmodifiableSortedMap(SortedMap<K, V> sm) { super(sm); this.sm = sm; }
UnmodifiableSortedMap(SortedMap<K, ? extends V> sm) { super(sm); this.sm = sm; }
38,329
UnmodifiableSortedMap(SortedMap<K, V> sm) { super(sm); this.sm = sm; }
UnmodifiableSortedMap(SortedMap<K, V> sm) { super(sm); this.sm = (SortedMap<K,V>) sm; }
38,330
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); }
38,331
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); } }
38,332
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); } }
38,333
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; } }
38,334
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; } }
38,335
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; } }
38,336
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; } }
38,337
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); }
38,338
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); }
38,339
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); }
38,340
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); }
38,341
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); }
38,342
public void start(HTML.Tag t, MutableAttributeSet a) { // Put the old attribute set on the stack. pushCharacterStyle(); // And create the new one by adding the attributes in <code>a</code>. if (a != null) charAttr.addAttribute(t, a.copyAttributes()); ...
if(CharacterAttributeTranslator.translateTag(charAttr, t, a)) return; if(CharacterAttributeTranslator.translateTag(charAttr, t, a)) return; if(CharacterAttributeTranslator.translateTag(charAttr, t, a)) return; if(CharacterAttributeTranslator.translateTag(charAttr, t, a)) return; if(CharacterAttributeTransl...
38,343
public void end(HTML.Tag t) { // FIXME: What else must be done here? blockClose(t); }
publicvoidend(HTML.Tagt){//FIXME:Whatelsemustbedonehere?blockClose(t);}
38,344
public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: What else must be done here? blockOpen(t, a); }
publicvoidstart(HTML.Tagt,MutableAttributeSeta){//FIXME:Whatelsemustbedonehere?blockOpen(t,a);}
38,345
protected void pushCharacterStyle() { charAttrStack.push(charAttr); }
protected void pushCharacterStyle() { charAttrStack.push(charAttr.copyAttributes()); }
38,348
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() { ...
38,350
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() { ...
publicvoidsetVisible(finalbooleanvisible){//Hookupthiscallsothatitgetsexecutedontheeventthreadinorder//toavoidsynchronizationproblemswhencallingthelayoutmanager.if(!SwingUtilities.isEventDispatchThread()){SwingUtilities.invokeLater(newRunnable(){publicvoidrun(){setVisible(visible);}});}if(visible==isVisible())return;bo...
38,351
public void updateUI() { setUI((PopupMenuUI) UIManager.getUI(this)); invalidate(); }
public void updateUI() { setUI((PopupMenuUI) UIManager.getUI(this)); }
38,353
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; }
38,358