bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
protected final int next(int numBits) { if (numBits == 0) return 0; byte tmp[] = new byte[numBits / 8 + (1 * (numBits % 8))]; secureRandomSpi.engineNextBytes(tmp); randomBytesUsed += tmp.length; counter++; int ret = 0; for (int i = 0; i < tmp.length; i++) ret |= tmp[i] << (8 * i); r... | protected final int next(int numBits) { if (numBits == 0) return 0; byte tmp[] = new byte[numBits / 8 + (1 * (numBits % 8))]; secureRandomSpi.engineNextBytes(tmp); randomBytesUsed += tmp.length; counter++; int ret = 0; for (int i = 0; i < tmp.length; i++) ret |= tmp[i] << (8 * i); l... | 14,172 |
public TaggedProfileHolder(TaggedProfile initialValue) { value = initialValue; } | public TaggedProfileHolder() { value = initialValue; } | 14,173 |
public TaggedProfileHolder(TaggedProfile initialValue) { value = initialValue; } | public TaggedProfileHolder(TaggedProfile initialValue) { } | 14,174 |
NodeNumberNode(TemplateNode children, TemplateNode next, int level, Pattern count, Pattern from, TemplateNode format, String lang, int letterValue, String groupingSeparator, int groupingSize) { super(children, next, format, lang, letterValue, groupingSeparator, ... | NodeNumberNode(TemplateNode children, TemplateNode next, int level, Pattern count, Pattern from, TemplateNode format, String lang, int letterValue, String groupingSeparator, int groupingSize) { super(children, next, format, lang, letterValue, groupingSeparator, ... | 14,175 |
NodeNumberNode(TemplateNode children, TemplateNode next, int level, Pattern count, Pattern from, TemplateNode format, String lang, int letterValue, String groupingSeparator, int groupingSize) { super(children, next, format, lang, letterValue, groupingSeparator, ... | NodeNumberNode(TemplateNode children, TemplateNode next, int level, Pattern count, Pattern from, TemplateNode format, String lang, int letterValue, String groupingSeparator, int groupingSize) { super(children, next, format, lang, letterValue, groupingSeparator, ... | 14,176 |
TemplateNode clone(Stylesheet stylesheet) { return new NodeNumberNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), level, ... | TemplateNode clone(Stylesheet stylesheet) { return new NodeNumberNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), level, ... | 14,177 |
boolean countMatches(Node current, Node node) { if (count == null) { int cnt = current.getNodeType(); int nnt = node.getNodeType(); if (cnt != nnt) { return false; } if (nnt == Node.ELEMENT_NODE || nnt == Node.ATTRIBUTE_NODE) { Stri... | boolean countMatches(Node current, Node node) { if (count == null) { int cnt = current.getNodeType(); int nnt = node.getNodeType(); if (cnt != nnt) { return false; } if (nnt == Node.ELEMENT_NODE || nnt == Node.ATTRIBUTE_NODE) { Stri... | 14,179 |
public byte[] getData(int tagSignature) { if (tagSignature == icSigHead) return header.getData(getSize()); TagEntry t = (TagEntry) tagTable.get(TagEntry.tagHashKey(tagSignature)); if (t == null) return null; return t.getData(); } | public byte[] getData() { if (tagSignature == icSigHead) return header.getData(getSize()); TagEntry t = (TagEntry) tagTable.get(TagEntry.tagHashKey(tagSignature)); if (t == null) return null; return t.getData(); } | 14,180 |
public byte[] getData(int tagSignature) { if (tagSignature == icSigHead) return header.getData(getSize()); TagEntry t = (TagEntry) tagTable.get(TagEntry.tagHashKey(tagSignature)); if (t == null) return null; return t.getData(); } | public byte[] getData(int tagSignature) { if (tagSignature == icSigHead) return header.getData(getSize()); TagEntry t = (TagEntry) tagTable.get(TagEntry.tagHashKey(tagSignature)); if (t == null) return null; return t.getData(); } | 14,181 |
public byte[] getData(int tagSignature) { if (tagSignature == icSigHead) return header.getData(getSize()); TagEntry t = (TagEntry) tagTable.get(TagEntry.tagHashKey(tagSignature)); if (t == null) return null; return t.getData(); } | public byte[] getData(int tagSignature) { if (tagSignature == icSigHead) return header.getData(getSize()); TagEntry t = (TagEntry) tagTable.get(TagEntry.tagHashKey(tagSignature)); if (t == null) return null; return t.getData(); } | 14,182 |
private void _handleEndTag_remaining(TagElement tag) { HTML.Tag h = tag.getHTMLTag(); handleEndTag(tag); endTag(tag.fictional()); if (h.isPreformatted()) preformatted--; if (preformatted < 0) preformatted = 0; if (h == HTML.Tag.TITLE) { titleOpen = false; titleHandled =... | void _handleEndTag_remaining(TagElement tag) { HTML.Tag h = tag.getHTMLTag(); handleEndTag(tag); endTag(tag.fictional()); if (h.isPreformatted()) preformatted--; if (preformatted < 0) preformatted = 0; if (h == HTML.Tag.TITLE) { titleOpen = false; titleHandled = true; ... | 14,183 |
private void _handleStartTag(TagElement tag) { validator.openTag(tag, attributes); startingTag(tag); handleStartTag(tag); HTML.Tag h = tag.getHTMLTag(); if (h.isPreformatted()) preformatted++; if (h == HTML.Tag.TITLE) { if (titleHandled) error("Repetetive <TITLE> tag"); ... | void _handleStartTag(TagElement tag) { validator.openTag(tag, attributes); startingTag(tag); handleStartTag(tag); HTML.Tag h = tag.getHTMLTag(); if (h.isPreformatted()) preformatted++; if (h == HTML.Tag.TITLE) { if (titleHandled) error("Repetetive <TITLE> tag"); tit... | 14,184 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new OtherwiseNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new OtherwiseNode(); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; } | 14,185 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new OtherwiseNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new OtherwiseNode(); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret; | 14,186 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { children.apply(stylesheet, mode, context, pos, len, parent, nextSi... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException if (children != null) children.apply(stylesheet, mode, context, pos, len, parent, nextSibl... | 14,187 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { children.apply(stylesheet, mode, context, pos, len, parent, nextSi... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { children.apply(stylesheet, mode, context, pos, len, parent, nextSi... | 14,188 |
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); } | public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); } | 14,189 |
public Expr clone(Object context) { NamespaceContext n = nsctx; if (context instanceof NamespaceContext) { n = (NamespaceContext) context; } FunctionAvailableFunction f = new FunctionAvailableFunction(n); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < l... | public Expr clone(Object context) NamespaceContext n = nsctx; if (context instanceof NamespaceContext) n = (NamespaceContext) context; } FunctionAvailableFunction f = new FunctionAvailableFunction(n); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len... | 14,190 |
public Expr clone(Object context) { NamespaceContext n = nsctx; if (context instanceof NamespaceContext) { n = (NamespaceContext) context; } FunctionAvailableFunction f = new FunctionAvailableFunction(n); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < l... | public Expr clone(Object context) { NamespaceContext n = nsctx; if (context instanceof NamespaceContext) { n = (NamespaceContext) context; FunctionAvailableFunction f = new FunctionAvailableFunction(n); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < le... | 14,191 |
public CharacterBreakIterator () { iter = null; // FIXME? } | public CharacterBreakIterator () { // FIXME? } | 14,192 |
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... | 14,193 |
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 ()... | 14,194 |
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... | 14,196 |
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... | 14,197 |
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... | 14,198 |
public final void cancel () { if (ok) selector ().selectedKeys ().add (this); ok = false; } | public final void cancel () { if (ok) selector ().selectedKeys ().add (this); ok = false; } | 14,199 |
public final boolean isValid () { return ok; } | public final boolean isValid () { return ! cancelled; } | 14,200 |
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... | 14,201 |
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: ... | 14,202 |
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... | 14,203 |
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... | 14,204 |
public DebugGraphics(Graphics graphics) { // TODO } // DebugGraphics() | public DebugGraphics() { // TODO } // DebugGraphics() | 14,206 |
public DOMResult() { } // DOMResult() | public DOMResult() { } // DOMResult() | 14,208 |
public void setSystemId(String systemID) { this.systemId = systemID; } // systemID() | public void setSystemId(String systemID) { this.systemId = systemID; } // systemID() | 14,209 |
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); ... | 14,211 |
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 ... | 14,212 |
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 ... | 14,213 |
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 ... | 14,214 |
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 ... | 14,215 |
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... | 14,216 |
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... | 14,217 |
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... | 14,218 |
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... | 14,219 |
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... | 14,220 |
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... | 14,221 |
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; } | 14,222 |
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; } | 14,223 |
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; } | 14,224 |
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; } | 14,225 |
protected final void implCloseSelectableChannel() throws IOException { throw new Error ("Not implemented"); } | protected final void implCloseSelectableChannel() throws IOException { vmch.close(); } | 14,226 |
protected final void implConfigureBlocking (boolean blocking) throws IOException { throw new Error ("Not implemented"); } | protected final void implConfigureBlocking (boolean blocking) throws IOException { vmch.setBlocking(blocking); } | 14,227 |
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); } | 14,228 |
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; } | 14,229 |
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; } | 14,230 |
protected void implConfigureBlocking (boolean blocking) throws IOException { throw new Error ("Not implemented"); } | protected void implConfigureBlocking (boolean blocking) throws IOException { vmch.setBlocking(blocking); } | 14,231 |
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); } | 14,232 |
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]); } | 14,233 |
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)); } | 14,234 |
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 + ... | 14,235 |
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... | 14,236 |
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)... | 14,237 |
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 + ... | 14,238 |
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 + ... | 14,239 |
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... | 14,241 |
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... | 14,242 |
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.unm... | 14,243 |
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... | 14,244 |
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... | 14,245 |
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... | 14,246 |
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... | 14,247 |
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... | 14,248 |
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-"); } | 14,249 |
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(); }}); } | 14,250 |
public IllegalCharsetNameException (String charsetName) { super (charsetName); } | public IllegalCharsetNameException (String charsetName) { super (); this.charsetName = charsetName; } | 14,251 |
public UnsupportedCharsetException (String charsetName) { super (charsetName); } | public UnsupportedCharsetException (String charsetName) { super (); this.charsetName = charsetName; } | 14,252 |
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... | 14,253 |
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... | 14,254 |
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... | 14,257 |
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); ... | 14,258 |
public Servant reference_to_servant(org.omg.CORBA.Object the_Object) throws ObjectNotActive, WrongPolicy, WrongAdapter { if (applies(ServantRetentionPolicyValue.RETAIN)) { AOM.Obj ref = aom.findObject(the_Object); if (ref == nul... | public Servant reference_to_servant(org.omg.CORBA.Object the_Object) throws ObjectNotActive, WrongPolicy, WrongAdapter { if (applies(ServantRetentionPolicyValue.RETAIN)) { AOM.Obj ref = aom.findObject(the_Object); if (ref == nul... | 14,259 |
public static final String getDefaultType() { String tmp; //Security reads every property in java.security so it //will return this property if it exists. tmp = Security.getProperty("keystore.type"); if (tmp == null) tmp = "jks"; return tmp; } | public static final String getDefaultType() { String tmp; //Security reads every property in java.security so it //will return this property if it exists. tmp = Security.getProperty("keystore.type"); if (tmp == null) tmp = "jks"; return tmp; } | 14,260 |
public static KeyStore getInstance(String type) throws KeyStoreException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty("KeyStore." + type); if (classname != null) return getInstance(classname, type, p[i]); } throw new KeyStoreE... | public static KeyStore getInstance(String type) throws KeyStoreException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty("KeyStore." + type); if (classname != null) return getInstance(classname, type, p[i]); } throw new KeyStoreE... | 14,261 |
public Dimension getViewSize() { if (isViewSizeSet) return viewSize; else return getView().getSize(); } | public Dimension getViewSize() { if (isViewSizeSet) return viewSize; else { Component view = getView(); if (view != null) return view.getPreferredSize(); else return new Dimension(); } } | 14,262 |
private synchronized static ConnectionRunner getConnectionRunner() { if(freelist.size() == 0){ if(size < max_size){ ++size; ConnectionRunner a = new ConnectionRunner(group, new Integer(size).toString()); a.start(); freelist.add(a); }else while(freelist.size() == 0) try{ ConnectionRunnerPool.class.... | private static synchronized ConnectionRunner getConnectionRunner() { if(freelist.size() == 0){ if(size < max_size){ ++size; ConnectionRunner a = new ConnectionRunner(group, new Integer(size).toString()); a.start(); freelist.add(a); }else while(freelist.size() == 0) try{ ConnectionRunnerPool.class.... | 14,263 |
addNotify(){ if (menuBar != null) menuBar.addNotify(); if (peer == null) peer = getToolkit ().createFrame (this); // We now know there's a Frame (us) with a live peer, so we can start the // fundamental queue and dispatch thread, by inserting a dummy event. if (parent != null && parent.isDisplayable()) fi... | addNotify(){ if (menuBar != null) menuBar.addNotify(); if (peer == null) peer = getToolkit ().createFrame (this); // We now know there's a Frame (us) with a live peer, so we can start the // fundamental queue and dispatch thread, by inserting a dummy event. if (parent != null && parent.isDisplayable()) fi... | 14,264 |
public void removeNotify(){ if (menuBar != null) menuBar.removeNotify(); super.removeNotify(); // By now we've been disconnected from the peer, and the peer set to // null. This is formally the same as saying "we just became // un-displayable", so we wake up the event queue with a dummy event to // see if it'... | public void removeNotify(){ if (menuBar != null) menuBar.removeNotify(); super.removeNotify(); // By now we've been disconnected from the peer, and the peer set to // null. This is formally the same as saying "we just became // un-displayable", so we wake up the event queue with a dummy event to // see if it'... | 14,265 |
protected void installDefaults() { LookAndFeel.installColorsAndFont(tabPane, "TabbedPane.background", "TabbedPane.foreground", "TabbedPane.font"); tabPane.setOpaque(false); highlight = UIManager.getColor("TabbedPane.highlight"); ligh... | protected void installDefaults() { LookAndFeel.installColorsAndFont(tabPane, "TabbedPane.background", "TabbedPane.foreground", "TabbedPane.font"); tabPane.setOpaque(false); highlight = UIManager.getColor("TabbedPane.highlight"); ligh... | 14,266 |
protected void installDefaults() { LookAndFeel.installColorsAndFont(tabPane, "TabbedPane.background", "TabbedPane.foreground", "TabbedPane.font"); tabPane.setOpaque(false); highlight = UIManager.getColor("TabbedPane.highlight"); ligh... | protected void installDefaults() { LookAndFeel.installColorsAndFont(tabPane, "TabbedPane.background", "TabbedPane.foreground", "TabbedPane.font"); tabPane.setOpaque(false); highlight = UIManager.getColor("TabbedPane.highlight"); ligh... | 14,267 |
public int getScrollableBlockIncrement(Rectangle visible, int orientation, int direction) { return 0; } | public int getScrollableBlockIncrement(Rectangle visible, int orientation, int direction) { if (orientation == SwingConstants.HORIZONTAL) return visible.width; else if (orientation == SwingConstants.VERTICAL) return visible.height; else throw new IllegalArgumentException("or... | 14,269 |
public int getScrollableUnitIncrement(Rectangle visible, int orientation, int direction) { return 0; } | public int getScrollableUnitIncrement(Rectangle visible, int orientation, int direction) { if (orientation == SwingConstants.HORIZONTAL) return visible.width / 10; else if (orientation == SwingConstants.VERTICAL) return visible.height / 10; else throw new IllegalArgumentExcep... | 14,270 |
public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | 14,273 |
public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | 14,274 |
public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | 14,275 |
public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | 14,276 |
public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | 14,277 |
public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | 14,278 |
public void installUI(JComponent c) { c.setOpaque(true); c.setBackground(UIManager.getColor("control")); super.installUI(c); } | public void installUI(JComponent c) { c.setBackground(UIManager.getColor("control")); super.installUI(c); } | 14,279 |
public void editingCanceled(ChangeEvent e) { editingPath = null; editingRow = -1; stopEditingInCompleteEditing = false; if (editingComponent != null) tree.remove(editingComponent.getParent()); editingComponent = null; if (cellEditor != null) { if (cellEditor i... | public void editingCanceled(ChangeEvent e) { editingPath = null; editingRow = -1; stopEditingInCompleteEditing = false; if (editingComponent != null) tree.remove(editingComponent.getParent()); editingComponent = null; if (cellEditor != null) { if (cellEditor i... | 14,280 |
public void editingStopped(ChangeEvent e) { editingPath = null; editingRow = -1; stopEditingInCompleteEditing = false; if (editingComponent != null) { tree.remove(editingComponent.getParent()); editingComponent = null; } if (cellEditor != null) { ... | public void editingStopped(ChangeEvent e) { editingPath = null; editingRow = -1; stopEditingInCompleteEditing = false; if (editingComponent != null) { tree.remove(editingComponent.getParent()); editingComponent = null; } if (cellEditor != null) { ... | 14,281 |
public void actionPerformed(ActionEvent e) { TreePath lead = tree.getLeadSelectionPath(); if (e.getActionCommand().equals("selectPreviousChangeLead") || e.getActionCommand().equals("selectPreviousExtendSelection") || e.getActionCommand().equals("selectPrevious") || e.getActio... | public void actionPerformed(ActionEvent e) { TreePath lead = tree.getLeadSelectionPath(); if (e.getActionCommand().equals("selectPreviousChangeLead") || e.getActionCommand().equals("selectPreviousExtendSelection") || e.getActionCommand().equals("selectPrevious") || e.getActio... | 14,283 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.