bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public boolean references(QName var) { for (Iterator i = args.iterator(); i.hasNext(); ) { if (((Expr) i.next()).references(var)) { return true; } } return false; }
public boolean references(QName var) { for (Iterator i = args.iterator(); i.hasNext(); ) { if (((Expr) i.next()).references(var)) { return true; return false; }
22,680
public CharacterBreakIterator () { iter = null; // FIXME? }
public CharacterBreakIterator () { // FIXME? }
22,681
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = 0; try { while (in.hasRemaining ()) { char c; byte b1 = in.get (); int highNibble = (b1...
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position(); try { while (in.hasRemaining ()) { char c; byte b1 = in.get (); int high...
22,682
protected CoderResult encodeLoop (CharBuffer in, ByteBuffer out) { int inPos = 0; try { // TODO: Optimize this in the case in.hasArray() / out.hasArray() while (in.hasRemaining ()) { int remaining = out.remaining (); char c = in.get (); ...
protected CoderResult encodeLoop (CharBuffer in, ByteBuffer out) { int inPos = in.position(); try { // TODO: Optimize this in the case in.hasArray() / out.hasArray() while (in.hasRemaining ()) { int remaining = out.remaining (); char c = in.get ()...
22,683
public int getPreferredWidth(Rectangle rect) { int maximalWidth = 0; Rectangle r = new Rectangle(); int n = getRowCount(); for (int i = 0; i < n; i++) { TreePath path = getPathForRow(i); r.setBounds(0,0,0,0); r = getBounds(path, r); if (r.x + r.width > maximalWidth) ...
public int getPreferredWidth(Rectangle rect) { int maximalWidth = 0; Rectangle r = new Rectangle(); int n = getRowCount(); for (int i = 0; i < n; i++) { TreePath path = getPathForRow(i); r.setBounds(0, 0, 0, 0); r = getBounds(path, r); if (r.x + r.width > maximalWidth)...
22,685
public final void requestFocus() { jComponent.requestFocus(); // save old focus component SwingComponentPeer oldFocusPeer; Component fc = toolkit.getFocusHandler().getFocusedComponent(); if (fc != null) { oldFocusPeer = (SwingComponentPeer) fc.getPeer(); } else { oldFocusPeer = null; } // se...
public final void requestFocus() { jComponent.requestFocus(); // save old focus component SwingComponentPeer oldFocusPeer; Component fc = toolkit.getFocusHandler().getFocusedComponent(); if (fc != null) { oldFocusPeer = (SwingComponentPeer) fc.getPeer(); } else { oldFocusPeer = null; } // se...
22,687
public final void requestFocus() { jComponent.requestFocus(); // save old focus component SwingComponentPeer oldFocusPeer; Component fc = toolkit.getFocusHandler().getFocusedComponent(); if (fc != null) { oldFocusPeer = (SwingComponentPeer) fc.getPeer(); } else { oldFocusPeer = null; } // se...
public final void requestFocus() { jComponent.requestFocus(); // save old focus component SwingComponentPeer oldFocusPeer; Component fc = toolkit.getFocusHandler().getFocusedComponent(); if (fc != null) { oldFocusPeer = (SwingComponentPeer) fc.getPeer(); } else { oldFocusPeer = null; } // se...
22,688
public synchronized void unloadPlugin(String pluginId) throws PluginException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(PluginSecurityConstants.UNLOAD_PERM); } final PluginDescriptorModel descr = (PluginDescriptorModel)getPlu...
public synchronized void unloadPlugin(String pluginId) throws PluginException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(PluginSecurityConstants.UNLOAD_PERM); } final PluginDescriptorModel descr = (PluginDescriptorModel)getPlu...
22,689
protected AbstractSelectionKey () { }
protected AbstractSelectionKey() { }
22,690
public final void cancel () { if (ok) selector ().selectedKeys ().add (this); ok = false; }
public final void cancel() { if (ok) selector ().selectedKeys ().add (this); ok = false; }
22,691
public final void cancel () { if (ok) selector ().selectedKeys ().add (this); ok = false; }
public final void cancel () { if (ok) selector ().selectedKeys ().add (this); ok = false; }
22,692
public final boolean isValid () { return ok; }
public final boolean isValid() { return ok; }
22,693
public final boolean isValid () { return ok; }
public final boolean isValid () { return ! cancelled; }
22,694
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTabbedPaneUI instance; if (o == null) { instance = new MetalTabbedPaneUI(); instances.put(component, instance); } else instanc...
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTabbedPaneUI instance; if (o == null) { instance = new MetalTabbedPaneUI(); instances.put(component, instance); } else instanc...
22,695
public final InputMap getInputMap(int condition) { enableEvents(AWTEvent.KEY_EVENT_MASK); switch (condition) { case WHEN_FOCUSED: if (inputMap_whenFocused == null) inputMap_whenFocused = new InputMap(); return inputMap_whenFocused; case WHEN_ANCESTOR_OF_FOCUSED_COMPONENT: ...
public final InputMap getInputMap(int condition) { enableEvents(AWTEvent.KEY_EVENT_MASK); switch (condition) { case WHEN_FOCUSED: if (inputMap_whenFocused == null) inputMap_whenFocused = new InputMap(); return inputMap_whenFocused; case WHEN_ANCESTOR_OF_FOCUSED_COMPONENT: ...
22,696
private void paintChildrenOptimized(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // paintingTile becomes true just before we start p...
private void paintChildrenOptimized(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // paintingTile becomes true just before we start p...
22,697
private void paintDoubleBuffered(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Component root = getRoot(this); Image buffer = rm.getOffscreenBuffer(this, root.getWidth(), root.getHeight()); //Rectangle ...
private void paintDoubleBuffered(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Component root = getRoot(this); Image buffer = rm.getVolatileOffscreenBuffer(this, root.getWidth(), root.getHeight()); //Re...
22,698
public DebugGraphics(Graphics graphics) { // TODO } // DebugGraphics()
public DebugGraphics(Graphics graphics) { // TODO } // DebugGraphics()
22,700
public DOMResult() { } // DOMResult()
public DOMResult() { } // DOMResult()
22,702
public String getSystemId() { return systemId; } // getSystemId()
public String getSystemId() { return systemId; } // getSystemId()
22,703
public void setSystemId(String systemID) { this.systemId = systemID; } // systemID()
public void setSystemId(String systemID) { this.systemId = systemID; } // systemID()
22,704
static void fillMetalPattern(Graphics g, int x, int y, int w, int h, Color light, Color dark) { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); else ...
static void fillMetalPattern(Component c, Graphics g, int x, int y, int w, int h, Color light, Color dark) { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); ...
22,706
static void fillMetalPattern(Graphics g, int x, int y, int w, int h, Color light, Color dark) { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); else ...
static void fillMetalPattern(Graphics g, int x, int y, int w, int h, Color light, Color dark) { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); else ...
22,707
static void fillMetalPattern(Graphics g, int x, int y, int w, int h, Color light, Color dark) { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); else ...
static void fillMetalPattern(Graphics g, int x, int y, int w, int h, Color light, Color dark) { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); else ...
22,708
static void fillMetalPattern(Graphics g, int x, int y, int w, int h, Color light, Color dark) { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); else ...
static void fillMetalPattern(Graphics g, int x, int y, int w, int h, Color light, Color dark) { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); else ...
22,709
static void fillMetalPattern(Graphics g, int x, int y, int w, int h, Color light, Color dark) { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); else ...
static void fillMetalPattern(Graphics g, int x, int y, int w, int h, Color light, Color dark) { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); else ...
22,710
protected Component addSingletonComponent(Component oldComponent, Component newComponent) { return null; // TODO } // addSingletonComponent()
protected Component addSingletonComponent(Component oldComponent, Component newComponent) { return null; // TODO } // addSingletonComponent()
22,711
public void installUI(JComponent c) { prepareForUIInstall(); super.installUI(c); tree = (JTree) c; installDefaults(); installComponents(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; isEditing = false; TreeModel mod = tree.getModel(); setModel(mod); tree.s...
public void installUI(JComponent c) { prepareForUIInstall(); super.installUI(c); tree = (JTree) c; installDefaults(); installComponents(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; isEditing = false; TreeModel mod = tree.getModel(); setModel(mod); if ...
22,712
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (treeModel != null) { Object root = treeModel.getRoot(); paintRecursive(g, 0, 0, 0, 0, tree, treeModel, root); if (hasControlIcons()) paintControlIcons(g, 0, 0, 0, 0, tree, treeModel, root); } }
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (treeModel != null) { Object root = treeModel.getRoot(); paintRecursive(g, 0, 0, 0, 0, tree, treeModel, root); if (hasControlIcons()) paintControlIcons(g, 0, 0, 0, 0, tree, treeModel, root); } }
22,713
int paintControlIcons(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object node) { int h = descent; int rowHeight = getRowHeight(); TreePath path = new TreePath(getPathToRoot(node, 0)); Icon icon = getCurrent...
int paintControlIcons(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object node) { int h = descent; int rowHeight = getRowHeight(); TreePath path = new TreePath(getPathToRoot(node, 0)); Icon icon = getCurrent...
22,714
private String getDefaultDisplayName(boolean dst) { int offset = getRawOffset(); if (dst && this instanceof SimpleTimeZone) { // ugly, but this is a design failure of the API: // getDisplayName takes a dst parameter even though // TimeZone knows nothing about daylight saving offsets. offset += ((Simpl...
private String getDefaultDisplayName(boolean dst) { int offset = getRawOffset(); if (dst && this instanceof SimpleTimeZone) { // ugly, but this is a design failure of the API: // getDisplayName takes a dst parameter even though // TimeZone knows nothing about daylight saving offsets. offset += ((Simpl...
22,715
private String getDefaultDisplayName(boolean dst) { int offset = getRawOffset(); if (dst && this instanceof SimpleTimeZone) { // ugly, but this is a design failure of the API: // getDisplayName takes a dst parameter even though // TimeZone knows nothing about daylight saving offsets. offset += ((Simpl...
private String getDefaultDisplayName(boolean dst) { int offset = getRawOffset(); if (dst && this instanceof SimpleTimeZone) { // ugly, but this is a design failure of the API: // getDisplayName takes a dst parameter even though // TimeZone knows nothing about daylight saving offsets. offset += ((Simpl...
22,716
private String getDefaultDisplayName(boolean dst) { int offset = getRawOffset(); if (dst && this instanceof SimpleTimeZone) { // ugly, but this is a design failure of the API: // getDisplayName takes a dst parameter even though // TimeZone knows nothing about daylight saving offsets. offset += ((Simpl...
private String getDefaultDisplayName(boolean dst) { int offset = getRawOffset(); if (dst && this instanceof SimpleTimeZone) { // ugly, but this is a design failure of the API: // getDisplayName takes a dst parameter even though // TimeZone knows nothing about daylight saving offsets. offset += ((Simpl...
22,717
private String getDefaultDisplayName(boolean dst) { int offset = getRawOffset(); if (dst && this instanceof SimpleTimeZone) { // ugly, but this is a design failure of the API: // getDisplayName takes a dst parameter even though // TimeZone knows nothing about daylight saving offsets. offset += ((Simpl...
private String getDefaultDisplayName(boolean dst) { int offset = getRawOffset(); if (dst && this instanceof SimpleTimeZone) { // ugly, but this is a design failure of the API: // getDisplayName takes a dst parameter even though // TimeZone knows nothing about daylight saving offsets. offset += ((Simpl...
22,718
private void addColorToQueue(Color c) { if (--start == -1) start = numRows * numCols - 1; colors[start] = c; }
void addColorToQueue(Color c) { if (--start == -1) start = numRows * numCols - 1; colors[start] = c; }
22,719
public Thread[] threads() { Thread[] result = new Thread[threadsCount()]; Enumeration e = threads.elements(); for (int n = 0; e.hasMoreElements(); n++) result[n] = (Thread) e.nextElement(); return result; }
public Thread[] threads() { Thread[] result = new Thread[threadsCount()]; Enumeration e = threads.elements(); for (int n = 0; e.hasMoreElements(); n++) result[n] = (Thread) e.nextElement(); return result; }
22,720
public SinkChannelImpl (SelectorProvider selectorProvider, int native_fd) { super (selectorProvider); this.native_fd = native_fd; }
public SinkChannelImpl (SelectorProvider selectorProvider, VMChannel channel) { super (selectorProvider); this.native_fd = native_fd; }
22,721
public SinkChannelImpl (SelectorProvider selectorProvider, int native_fd) { super (selectorProvider); this.native_fd = native_fd; }
public SinkChannelImpl (SelectorProvider selectorProvider, int native_fd) { super (selectorProvider); vmch = channel; }
22,722
protected final void implCloseSelectableChannel() throws IOException { throw new Error ("Not implemented"); }
protected final void implCloseSelectableChannel() throws IOException { vmch.close(); }
22,723
protected final void implConfigureBlocking (boolean blocking) throws IOException { throw new Error ("Not implemented"); }
protected final void implConfigureBlocking (boolean blocking) throws IOException { vmch.setBlocking(blocking); }
22,724
public final int write (ByteBuffer dst) throws IOException { throw new Error ("Not implemented"); }
public final int write (ByteBuffer dst) throws IOException { return vmch.write(dst); }
22,725
public SourceChannelImpl (SelectorProvider selectorProvider, int native_fd) { super (selectorProvider); this.native_fd = native_fd; }
public SourceChannelImpl (SelectorProvider selectorProvider, VMChannel channel) { super (selectorProvider); this.native_fd = native_fd; }
22,726
public SourceChannelImpl (SelectorProvider selectorProvider, int native_fd) { super (selectorProvider); this.native_fd = native_fd; }
public SourceChannelImpl (SelectorProvider selectorProvider, int native_fd) { super (selectorProvider); vmch = channel; }
22,727
protected final void implCloseSelectableChannel() throws IOException { throw new Error ("Not implemented"); }
protected final void implCloseSelectableChannel() throws IOException { vmch.close(); }
22,728
protected void implConfigureBlocking (boolean blocking) throws IOException { throw new Error ("Not implemented"); }
protected void implConfigureBlocking (boolean blocking) throws IOException { vmch.setBlocking(blocking); }
22,729
public final int read (ByteBuffer src) throws IOException { throw new Error ("Not implemented"); }
public final int read (ByteBuffer src) throws IOException { return vmch.read(src); }
22,730
public PipeImpl (SelectorProvider provider) throws IOException { super(); VMPipe.init (this, provider); }
public PipeImpl (SelectorProvider provider) throws IOException { super(); VMChannel[] pipe = VMPipe.pipe(); sink = new SinkChannelImpl(provider, pipe[0]); source = new SourceChannelImpl(provider, pipe[1]); }
22,731
public boolean implies(Permission perm) { PermissionCollection pc = getPermissions(); if (pc == null) return (false); return (pc.implies(perm)); }
public boolean implies(Permission perm) { PermissionCollection pc = getPermissions(); if (pc == null) return (false); return (pc.implies(perm)); }
22,732
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null" + linesep); else sb.append(code_source + ...
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null" + linesep); else sb.append(code_source + ...
22,733
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null" + linesep); else sb.append(code_source + ...
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null" + linesep); else sb.append(code_source + ...
22,734
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null" + linesep); else sb.append(code_source + ...
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null"); else sb.append(code_source); sb.append(linesep); if (cla...
22,735
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null" + linesep); else sb.append(code_source + ...
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null" + linesep); else sb.append(perms);...
22,736
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null" + linesep); else sb.append(code_source + ...
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null" + linesep); else sb.append(code_source + ...
22,737
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null" + linesep); else sb.append(code_source + ...
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null" + linesep); else sb.append(code_source + ...
22,738
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tabPane.setFont(defaults.getFont("TabbedPane.font")); tabPane.setForeground(defaults.getColor("TabbedPane.foreground")); tabPane.setBackground(defaults.getColor("TabbedPane.background")); tabPane.setOpaque(tru...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tabPane.setFont(defaults.getFont("TabbedPane.font")); tabPane.setForeground(defaults.getColor("TabbedPane.foreground")); tabPane.setBackground(defaults.getColor("TabbedPane.background")); tabPane.setOpaque(fal...
22,740
protected Charset(String canonicalName, String[] aliases) { checkName(canonicalName); if (aliases != null) { int n = aliases.length; for (int i = 0; i < n; ++i) checkName(aliases[i]); } this.canonicalName = canonicalName; this.aliases = aliases; }
protected Charset(String canonicalName, String[] aliases) { checkName(canonicalName); if (aliases != null) { int n = aliases.length; for (int i = 0; i < n; ++i) checkName(aliases[i]); } this.canonicalName = canonicalName; this.aliases = aliases; }
22,741
protected Charset(String canonicalName, String[] aliases) { checkName(canonicalName); if (aliases != null) { int n = aliases.length; for (int i = 0; i < n; ++i) checkName(aliases[i]); } this.canonicalName = canonicalName; this.aliases = aliases; }
protected Charset(String canonicalName, String[] aliases) { checkName(canonicalName); if (aliases != null) { int n = aliases.length; for (int i = 0; i < n; ++i) checkName(aliases[i]); } this.canonicalName = canonicalName; this.aliases = aliases; }
22,742
public final Set aliases() { if (aliases == null) { return Collections.EMPTY_SET; } // should we cache the aliasSet instead? int n = aliases.length; if (n == 0) { return Collections.EMPTY_SET; } HashSet aliasSet = new HashSet(n); for (int i = 0; i < n; ++i) aliasSet.add(aliases[i]); return Collections.u...
public final Set aliases() { if (aliases == null) { return Collections.EMPTY_SET; } // should we cache the aliasSet instead? int n = aliases.length; if (n == 0) { return Collections.EMPTY_SET; } HashSet aliasSet = new HashSet(n); for (int i = 0; i < n; ++i) aliasSet.add(aliases[i]); return Collections.u...
22,743
public final Set aliases() { if (aliases == null) { return Collections.EMPTY_SET; } // should we cache the aliasSet instead? int n = aliases.length; if (n == 0) { return Collections.EMPTY_SET; } HashSet aliasSet = new HashSet(n); for (int i = 0; i < n; ++i) aliasSet.add(aliases[i]); return Collections.u...
public final Set aliases() { if (aliases == null) { return Collections.EMPTY_SET; } // should we cache the aliasSet instead? int n = aliases.length; if (n == 0) { return Collections.EMPTY_SET; } HashSet aliasSet = new HashSet(n); for (int i = 0; i < n; ++i) aliasSet.add(aliases[i]); return Collections.u...
22,744
public final Set aliases() { if (aliases == null) { return Collections.EMPTY_SET; } // should we cache the aliasSet instead? int n = aliases.length; if (n == 0) { return Collections.EMPTY_SET; } HashSet aliasSet = new HashSet(n); for (int i = 0; i < n; ++i) aliasSet.add(aliases[i]); return Collections.u...
public final Set aliases() { if (aliases == null) { return Collections.EMPTY_SET; } // should we cache the aliasSet instead? int n = aliases.length; if (n == 0) { return Collections.EMPTY_SET; } HashSet aliasSet = new HashSet(n); for (int i = 0; i < n; ++i) aliasSet.add(aliases[i]); return Collections.u...
22,745
public final Set aliases() { if (aliases == null) { return Collections.EMPTY_SET; } // should we cache the aliasSet instead? int n = aliases.length; if (n == 0) { return Collections.EMPTY_SET; } HashSet aliasSet = new HashSet(n); for (int i = 0; i < n; ++i) aliasSet.add(aliases[i]); return Collections.u...
public final Set aliases() { if (aliases == null) { return Collections.EMPTY_SET; } // should we cache the aliasSet instead? int n = aliases.length; if (n == 0) { return Collections.EMPTY_SET; } HashSet aliasSet = new HashSet(n); for (int i = 0; i < n; ++i) aliasSet.add(aliases[i]); return Collections.u...
22,746
public static SortedMap availableCharsets() { TreeMap charsets = new TreeMap(String.CASE_INSENSITIVE_ORDER); for (Iterator i = provider().charsets(); i.hasNext();) { Charset cs = (Charset) i.next(); charsets.put(cs.name(), cs); } return Collections.unmodifiableSortedMap(charsets); }
public static SortedMap availableCharsets() { TreeMap charsets = new TreeMap(String.CASE_INSENSITIVE_ORDER); for (Iterator i = provider().charsets(); i.hasNext();) { Charset cs = (Charset) i.next(); charsets.put(cs.name(), cs); } return Collections.unmodifiableSortedMap(charsets); }
22,747
public static SortedMap availableCharsets() { TreeMap charsets = new TreeMap(String.CASE_INSENSITIVE_ORDER); for (Iterator i = provider().charsets(); i.hasNext();) { Charset cs = (Charset) i.next(); charsets.put(cs.name(), cs); } return Collections.unmodifiableSortedMap(charsets); }
public static SortedMap availableCharsets() { TreeMap charsets = new TreeMap(String.CASE_INSENSITIVE_ORDER); for (Iterator i = provider().charsets(); i.hasNext();) { Charset cs = (Charset) i.next(); charsets.put(cs.name(), cs); } return Collections.unmodifiableSortedMap(charsets); }
22,748
public static SortedMap availableCharsets() { TreeMap charsets = new TreeMap(String.CASE_INSENSITIVE_ORDER); for (Iterator i = provider().charsets(); i.hasNext();) { Charset cs = (Charset) i.next(); charsets.put(cs.name(), cs); } return Collections.unmodifiableSortedMap(charsets); }
public static SortedMap availableCharsets() { TreeMap charsets = new TreeMap(String.CASE_INSENSITIVE_ORDER); for (Iterator i = provider().charsets(); i.hasNext();) { Charset cs = (Charset) i.next(); charsets.put(cs.name(), cs); } return Collections.unmodifiableSortedMap(charsets); }
22,749
public boolean canEncode() { return true; }
public boolean canEncode() { return true; }
22,750
private static Charset charsetForName(String charsetName) { checkName(charsetName); return provider().charsetForName(charsetName); }
private static Charset charsetForName(String charsetName) { checkName(charsetName); return provider().charsetForName(charsetName); }
22,751
private static void checkName(String name) { int n = name.length(); if (n == 0) throw new IllegalCharsetNameException(name); char ch = name.charAt(0); if (!(('A' <= ch && ch <= 'Z') || ('a' <= ch && ch <= 'z') || ('0' <= ch && ch <= '9'))) throw new IllegalCharsetNameException(name); for (int i = 1; i < n; ++...
private static void checkName(String name) { int n = name.length(); if (n == 0) throw new IllegalCharsetNameException(name); char ch = name.charAt(0); if (!(('A' <= ch && ch <= 'Z') || ('a' <= ch && ch <= 'z') || ('0' <= ch && ch <= '9'))) throw new IllegalCharsetNameException(name); for (int i = 1; i < n; ++...
22,752
private static void checkName(String name) { int n = name.length(); if (n == 0) throw new IllegalCharsetNameException(name); char ch = name.charAt(0); if (!(('A' <= ch && ch <= 'Z') || ('a' <= ch && ch <= 'z') || ('0' <= ch && ch <= '9'))) throw new IllegalCharsetNameException(name); for (int i = 1; i < n; ++...
private static void checkName(String name) { int n = name.length(); if (n == 0) throw new IllegalCharsetNameException(name); char ch = name.charAt(0); if (!(('A' <= ch && ch <= 'Z') || ('a' <= ch && ch <= 'z') || ('0' <= ch && ch <= '9'))) throw new IllegalCharsetNameException(name); for (int i = 1; i < n; ++...
22,753
private static void checkName(String name) { int n = name.length(); if (n == 0) throw new IllegalCharsetNameException(name); char ch = name.charAt(0); if (!(('A' <= ch && ch <= 'Z') || ('a' <= ch && ch <= 'z') || ('0' <= ch && ch <= '9'))) throw new IllegalCharsetNameException(name); for (int i = 1; i < n; ++...
private static void checkName(String name) { int n = name.length(); if (n == 0) throw new IllegalCharsetNameException(name); char ch = name.charAt(0); if (!(('A' <= ch && ch <= 'Z') || ('a' <= ch && ch <= 'z') || ('0' <= ch && ch <= '9'))) throw new IllegalCharsetNameException(name); for (int i = 1; i < n; ++...
22,754
private static void checkName(String name) { int n = name.length(); if (n == 0) throw new IllegalCharsetNameException(name); char ch = name.charAt(0); if (!(('A' <= ch && ch <= 'Z') || ('a' <= ch && ch <= 'z') || ('0' <= ch && ch <= '9'))) throw new IllegalCharsetNameException(name); for (int i = 1; i < n; ++...
private static void checkName(String name) { int n = name.length(); if (n == 0) throw new IllegalCharsetNameException(name); char ch = name.charAt(0); if (!(('A' <= ch && ch <= 'Z') || ('a' <= ch && ch <= 'z') || ('0' <= ch && ch <= '9'))) throw new IllegalCharsetNameException(name); for (int i = 1; i < n; ++...
22,755
public final int compareTo(Object ob) { return canonicalName.compareToIgnoreCase(((Charset) ob).canonicalName); }
public final int compareTo(Object ob) { return canonicalName.compareToIgnoreCase(((Charset) ob).canonicalName); }
22,756
public abstract boolean contains(Charset cs);
public abstract boolean contains(Charset cs);
22,757
public CharBuffer decode(ByteBuffer bb) { try { CharsetDecoder decoder = (CharsetDecoder) cachedDecoder.get(); if (decoder == null) { decoder = newDecoder().onMalformedInput(CodingErrorAction.REPLACE).onUnmappableCharacter(CodingErrorAction.REPLACE); cachedDecoder.set(decoder); } decoder.reset(); retu...
public CharBuffer decode(ByteBuffer bb) { try { CharsetDecoder decoder = (CharsetDecoder) cachedDecoder.get(); if (decoder == null) { decoder = newDecoder().onMalformedInput(CodingErrorAction.REPLACE).onUnmappableCharacter(CodingErrorAction.REPLACE); cachedDecoder.set(decoder); } decoder.reset(); retu...
22,758
public CharBuffer decode(ByteBuffer bb) { try { CharsetDecoder decoder = (CharsetDecoder) cachedDecoder.get(); if (decoder == null) { decoder = newDecoder().onMalformedInput(CodingErrorAction.REPLACE).onUnmappableCharacter(CodingErrorAction.REPLACE); cachedDecoder.set(decoder); } decoder.reset(); retu...
public CharBuffer decode(ByteBuffer bb) { try { CharsetDecoder decoder = (CharsetDecoder) cachedDecoder.get(); if (decoder == null) { decoder = newDecoder().onMalformedInput(CodingErrorAction.REPLACE).onUnmappableCharacter(CodingErrorAction.REPLACE); cachedDecoder.set(decoder); } decoder.reset(); retu...
22,759
public String displayName() { return canonicalName; }
public String displayName() { return canonicalName; }
22,760
public final ByteBuffer encode(CharBuffer cb) { try { CharsetEncoder encoder = (CharsetEncoder) cachedEncoder.get(); if (encoder == null) { encoder = newEncoder().onMalformedInput(CodingErrorAction.REPLACE).onUnmappableCharacter(CodingErrorAction.REPLACE); cachedEncoder.set(encoder); } return encoder.en...
public final ByteBuffer encode(CharBuffer cb) { try { CharsetEncoder encoder = (CharsetEncoder) cachedEncoder.get(); if (encoder == null) { encoder = newEncoder().onMalformedInput(CodingErrorAction.REPLACE).onUnmappableCharacter(CodingErrorAction.REPLACE); cachedEncoder.set(encoder); } return encoder.en...
22,761
public final ByteBuffer encode(CharBuffer cb) { try { CharsetEncoder encoder = (CharsetEncoder) cachedEncoder.get(); if (encoder == null) { encoder = newEncoder().onMalformedInput(CodingErrorAction.REPLACE).onUnmappableCharacter(CodingErrorAction.REPLACE); cachedEncoder.set(encoder); } return encoder.en...
public final ByteBuffer encode(CharBuffer cb) { try { CharsetEncoder encoder = (CharsetEncoder) cachedEncoder.get(); if (encoder == null) { encoder = newEncoder().onMalformedInput(CodingErrorAction.REPLACE).onUnmappableCharacter(CodingErrorAction.REPLACE); cachedEncoder.set(encoder); } return encoder.en...
22,762
public final boolean equals(Object ob) { if (ob instanceof Charset) return canonicalName.equalsIgnoreCase(((Charset) ob).canonicalName); else return false; }
public final boolean equals(Object ob) { if (ob instanceof Charset) return canonicalName.equalsIgnoreCase(((Charset) ob).canonicalName); else return false; }
22,763
public final boolean equals(Object ob) { if (ob instanceof Charset) return canonicalName.equalsIgnoreCase(((Charset) ob).canonicalName); else return false; }
public final boolean equals(Object ob) { if (ob instanceof Charset) return canonicalName.equalsIgnoreCase(((Charset) ob).canonicalName); else return false; }
22,764
public static Charset forName(String charsetName) { Charset cs = charsetForName(charsetName); if (cs == null) throw new UnsupportedCharsetException(charsetName); return cs; }
public static Charset forName(String charsetName) { Charset cs = charsetForName(charsetName); if (cs == null) throw new UnsupportedCharsetException(charsetName); return cs; }
22,765
public static Charset forName(String charsetName) { Charset cs = charsetForName(charsetName); if (cs == null) throw new UnsupportedCharsetException(charsetName); return cs; }
public static Charset forName(String charsetName) { Charset cs = charsetForName(charsetName); if (cs == null) throw new UnsupportedCharsetException(charsetName); return cs; }
22,766
public final int hashCode() { return canonicalName.hashCode(); }
public final int hashCode() { return canonicalName.hashCode(); }
22,767
public final boolean isRegistered(String name) { return !name.startsWith("x-") && !name.startsWith("X-"); }
public final boolean isRegistered(String name) { return !name.startsWith("x-") && !name.startsWith("X-"); }
22,768
public static boolean isSupported(String charsetName) { return charsetForName(charsetName) != null; }
public static boolean isSupported(String charsetName) { return charsetForName(charsetName) != null; }
22,769
public final String name() { return canonicalName; }
public final String name() { return canonicalName; }
22,770
public abstract CharsetDecoder newDecoder();
public abstract CharsetDecoder newDecoder();
22,771
public abstract CharsetEncoder newEncoder();
public abstract CharsetEncoder newEncoder();
22,772
private static final CharsetProvider provider() { return (CharsetProvider)AccessController.doPrivileged(new PrivilegedAction() { public Object run() { return Provider.provider(); }}); }
private static final CharsetProvider provider() { return (CharsetProvider)AccessController.doPrivileged(new PrivilegedAction() { public Object run() { return Provider.provider(); }}); }
22,773
public final String toString() { return canonicalName; }
public final String toString() { return canonicalName; }
22,774
public IllegalCharsetNameException (String charsetName) { super (charsetName); }
public IllegalCharsetNameException (String charsetName) { super (); this.charsetName = charsetName; }
22,775
public UnsupportedCharsetException (String charsetName) { super (charsetName); }
public UnsupportedCharsetException (String charsetName) { super (); this.charsetName = charsetName; }
22,776
boolean match(CharIndexed input, REMatch mymatch) { // number of times we've matched so far int numRepeats = 0; // Possible positions for the next repeat to match at REMatch newMatch = mymatch; REMatch last = null; REMatch current; // Add the '0-repeats' index // positions.elementAt(z) == position [] in input aft...
boolean match(CharIndexed input, REMatch mymatch) { // number of times we've matched so far int numRepeats = 0; // Possible positions for the next repeat to match at REMatch newMatch = mymatch; REMatch last = null; REMatch current; // Add the '0-repeats' index // positions.elementAt(z) == position [] in input aft...
22,777
boolean match(CharIndexed input, REMatch mymatch) { // number of times we've matched so far int numRepeats = 0; // Possible positions for the next repeat to match at REMatch newMatch = mymatch; REMatch last = null; REMatch current; // Add the '0-repeats' index // positions.elementAt(z) == position [] in input aft...
boolean match(CharIndexed input, REMatch mymatch) { // number of times we've matched so far int numRepeats = 0; // Possible positions for the next repeat to match at REMatch newMatch = mymatch; REMatch last = null; REMatch current; // Add the '0-repeats' index // positions.elementAt(z) == position [] in input aft...
22,778
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIs...
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIs...
22,781
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIs...
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIs...
22,782
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIs...
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIs...
22,783
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIs...
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIs...
22,784
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIs...
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIs...
22,785
public static void insertSystemProperties(Properties res) { final Vm vm = Vm.getVm(); final VmArchitecture arch = vm.getArch(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); r...
public static void insertSystemProperties(Properties res) { final Vm vm = Vm.getVm(); final VmArchitecture arch = vm.getArch(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); r...
22,786
public Document createDocument(String namespaceURI, String rootName, DocumentType doctype) { Document doc = new DomDocument(this); Element root = null; if (rootName != null) { root = doc.createElementNS(namespaceURI, rootName); ...
public Document createDocument(String namespaceURI, String rootName, DocumentType doctype) { Document doc = new DomDocument(this); Element root = null; if (rootName != null) { root = doc.createElementNS(namespaceURI, rootName); ...
22,787