bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public int getContentLength() { try { if (!connected) connect(); return (int) file.length(); } catch (IOException e) { return -1; } }
public int getContentLength() { try { if (!connected) connect(); return (int) file.length(); } catch (IOException e) { return -1; } }
25,038
public int getContentLength() { try { if (!connected) connect(); return (int) file.length(); } catch (IOException e) { return -1; } }
public int getContentLength() { try { if (!connected) connect(); return (int) file.length(); } catch (IOException e) { return -1; } }
25,039
public int getContentLength() { try { if (!connected) connect(); return (int) file.length(); } catch (IOException e) { return -1; } }
public int getContentLength() { try { if (!connected) connect(); return (int) file.length(); } catch (IOException e) { return -1; } }
25,040
public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException, NotImplementedException { // FIXME: Not implemented }
public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException { // FIXME: Not implemented }
25,041
public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException, NotImplementedException { // FIXME: Not implemented }
Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object oldKey = e.nextElement(); Object newKey = getStaticAttribute(oldKey); Object key = (newKey == null) ? oldKey : newKey; out.writeObject(key); out.writeObject(a.getAttribute(oldKey)); } out.writeObject(null); out.writeObject(null); Enumeration e...
25,042
public InvalidAddressHolder(InvalidAddress initialValue) { value = initialValue; }
public InvalidAddressHolder() { value = initialValue; }
25,043
public InvalidAddressHolder(InvalidAddress initialValue) { value = initialValue; }
public InvalidAddressHolder(InvalidAddress initialValue) { }
25,044
public static int[] read(InputStream input) { LongSeqHolder h = new LongSeqHolder(); h._read(input); return h.value; }
public static int[] read(InputStream input) { LongSeqHolder h = new LongSeqHolder(); h._read(input); return h.value; }
25,045
public static void write(OutputStream output, int[] value) { LongSeqHolder h = new LongSeqHolder(value); h._write(output); }
public static void write(OutputStream output, int[] value) { LongSeqHolder h = new LongSeqHolder(value); h._write(output); }
25,046
public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ...
public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ...
25,047
public void addElement(Object object) { if (list.size() == 0) { list.add(object); selectedItem = object; fireContentsChanged(this, -1, -1); } else { list.add(object); fireIntervalAdded(this, list.size() - 1, list.size() - 1); } }
public void addElement(Object object) { if (list.size() == 0) { list.add(object); selectedItem = object; fireContentsChanged(this, -1, -1); } else { list.add(object); fireIntervalAdded(this, list.size() - 1, list.size() - 1); } }
25,048
public void removeElementAt(int index) { int selected = getIndexOf(selectedItem); list.remove(index); if (selected == index) // choose a new selected item { if (selected > 0) selectedItem = getElementAt(selected - 1); else selectedItem = getElementAt(selected); ...
public void removeElementAt(int index){int selected = getIndexOf(selectedItem);list.remove(index);if (selected == index) // choose a new selected item{if (selected > 0)selectedItem = getElementAt(selected - 1);else selectedItem = getElementAt(selected);}fireIntervalRemoved(this, index, index);}
25,049
public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); VmProcessor.current().getArchitecture().getStackReader() .debugStackTrace(); Unsafe.die("getStackTrace"); return null;...
public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); VmProcessor.current().getArchitecture().getStackReader() .debugStackTrace(); Unsafe.die("getStackTrace"); return null;...
25,051
public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); VmProcessor.current().getArchitecture().getStackReader() .debugStackTrace(); Unsafe.die("getStackTrace"); return null;...
public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); VmProcessor.current().getArchitecture().getStackReader() .debugStackTrace(); Unsafe.die("getStackTrace"); return null;...
25,052
public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); VmProcessor.current().getArchitecture().getStackReader() .debugStackTrace(); Unsafe.die("getStackTrace"); return null;...
public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); VmProcessor.current().getArchitecture().getStackReader() .debugStackTrace(); Unsafe.die("getStackTrace"); return null;...
25,053
public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); VmProcessor.current().getArchitecture().getStackReader() .debugStackTrace(); Unsafe.die("getStackTrace"); return null;...
public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); VmProcessor.current().getArchitecture().getStackReader() .debugStackTrace(); Unsafe.die("getStackTrace"); return null;...
25,054
protected void formatDevice(Device device) throws IOException { /* Format the MBR & partitiontable */ GrubBootSector mbr = (GrubBootSector) (createFormatter() .getBootSector()); mbr.getPartition(0).clear(); mbr.getPartition(1).clear(); mbr.getPartition(2).clear(); ...
protected void formatDevice(Device device) throws IOException { /* Format the MBR & partitiontable */ GrubBootSector mbr = (GrubBootSector) (createFormatter() .getBootSector()); mbr.getPartition(0).clear(); mbr.getPartition(1).clear(); mbr.getPartition(2).clear(); ...
25,056
public AccessibleContext getAccessibleContext() { return null; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJMenuBar(); return accessibleContext; }
25,057
public int hashCode() { return getLastPathComponent().hashCode(); } // hashCode()
public int hashCode() { return getLastPathComponent().hashCode(); } // hashCode()
25,058
public int hashCode() { return getLastPathComponent().hashCode(); } // hashCode()
public int hashCode() { return getLastPathComponent().hashCode(); } // hashCode()
25,059
private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException { // TODO } // readObject()
private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException { // TODO } // readObject()
25,060
private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException { // TODO } // readObject()
private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException { // TODO } // readObject()
25,061
public String toString() { return null; // TODO } // toString()
public String toString() { return null; // TODO } // toString()
25,062
public String toString() { return null; // TODO } // toString()
public String toString() { return null; // TODO } // toString()
25,063
private void writeObject(ObjectOutputStream value0) throws IOException { // TODO } // writeObject()
private void writeObject(ObjectOutputStream value0) throws IOException { // TODO } // writeObject()
25,064
private void writeObject(ObjectOutputStream value0) throws IOException { // TODO } // writeObject()
private void writeObject(ObjectOutputStream value0) throws IOException { // TODO } // writeObject()
25,065
private void makeTabs(AbstractColorChooserPanel[] panels) { pane.removeAll(); for (int i = 0; i < panels.length; i++) pane.addTab(panels[i].getDisplayName(), panels[i].getSmallDisplayIcon(), panels[i]); }
void makeTabs(AbstractColorChooserPanel[] panels) { pane.removeAll(); for (int i = 0; i < panels.length; i++) pane.addTab(panels[i].getDisplayName(), panels[i].getSmallDisplayIcon(), panels[i]); }
25,066
private void updatePreviewPanel(JComponent preview) { if (prevContainer == null) { prevContainer = new JPanel(); prevContainer.setLayout(new BorderLayout()); chooser.add(prevContainer, BorderLayout.CENTER); } prevContainer.removeAll(); prevContainer.add(preview, BorderLayout.CENTER); }
void updatePreviewPanel(JComponent preview) { if (prevContainer == null) { prevContainer = new JPanel(); prevContainer.setLayout(new BorderLayout()); chooser.add(prevContainer, BorderLayout.CENTER); } prevContainer.removeAll(); prevContainer.add(preview, BorderLayout.CENTER); }
25,067
public UIResource() { }
public UIResource() { }
25,069
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
25,070
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); ...
25,071
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
25,072
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
25,073
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
25,074
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
publicvoidlayoutContainer(Containerparent){if(parentinstanceofJScrollPane){JScrollPanesc=(JScrollPane)parent;synchronized(sc.getTreeLock()){JViewportviewport=sc.getViewport();DimensionviewSize=viewport.getViewSize();PointviewPos=viewport.getViewPosition();intx1=0,x2=0,x3=0,x4=0;inty1=0,y2=0,y3=0,y4=0;RectanglescrollPan...
25,075
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
25,076
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
public Dimension minimumLayoutSize(Container parent) { if (parent != null && parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimensi...
25,077
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
25,078
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
25,079
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
25,080
public Dimension preferredLayoutSize(Container parent) { if (parent != null && parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dime...
public Dimension preferredLayoutSize(Container parent) { if (parent != null && parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dime...
25,081
public Dimension preferredLayoutSize(Container parent) { if (parent != null && parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dime...
public Dimension preferredLayoutSize(Container parent) { if (parent != null && parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dime...
25,082
public Dimension preferredLayoutSize(Container parent) { if (parent != null && parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dime...
public Dimension preferredLayoutSize(Container parent) { if (parent != null && parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dime...
25,083
public boolean isAbsolute() { return (scheme != null); }
public boolean isAbsolute() { return (scheme != null); }
25,084
public static void setErr(PrintStream err) { setStaticField(System.class, "err", err); }
public static void setErr(PrintStream err) throws PrivilegedActionPragma { setStaticField(System.class, "err", err); }
25,086
public static void setOut(PrintStream out) { setStaticField(System.class, "out", out); }
public static void setOut(PrintStream out) throws PrivilegedActionPragma { setStaticField(System.class, "out", out); }
25,087
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding the rootPane (initialization stages) use super.add. // Otherwise pass the add onto the content pane. if (comp == rootPane) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEna...
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding the rootPane (initialization stages) use super.add. // Otherwise pass the add onto the content pane. if (comp == rootPane) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEna...
25,088
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding the rootPane (initialization stages) use super.add. // Otherwise pass the add onto the content pane. if (comp == rootPane) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEna...
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding the rootPane (initialization stages) use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabl...
25,089
public boolean dispatchKeyEvent (KeyEvent e) { Component focusOwner = getGlobalPermanentFocusOwner (); if (focusOwner != null) redispatchEvent(focusOwner, e); // Loop through all registered KeyEventPostProcessors, giving // each a chance to process this event. Iterator i = getKeyEventPostProcesso...
public boolean dispatchKeyEvent (KeyEvent e) { Component focusOwner = getFocusOwner(); if (focusOwner == null) focusOwner = getFocusedWindow(); if (focusOwner != null) redispatchEvent(focusOwner, e); // Loop through all registered KeyEventPostProcessors, giving // each a chance to process this event...
25,090
public InetAddress[] getHostByName(String hostname) throws UnknownHostException { ArrayList list = null; for (Iterator i = nlm.getNetworkLayers().iterator(); i.hasNext(); ) { final NetworkLayer layer = (NetworkLayer)i.next(); final ProtocolAddress[] addrs = layer.getHo...
public byte[][] getHostByName(String hostname) throws UnknownHostException { ArrayList list = null; for (Iterator i = nlm.getNetworkLayers().iterator(); i.hasNext(); ) { final NetworkLayer layer = (NetworkLayer)i.next(); final ProtocolAddress[] addrs = layer.getHostByN...
25,091
public InetAddress[] getHostByName(String hostname) throws UnknownHostException { ArrayList list = null; for (Iterator i = nlm.getNetworkLayers().iterator(); i.hasNext(); ) { final NetworkLayer layer = (NetworkLayer)i.next(); final ProtocolAddress[] addrs = layer.getHo...
public InetAddress[] getHostByName(String hostname) throws UnknownHostException { ArrayList list = null; for (Iterator i = nlm.getNetworkLayers().iterator(); i.hasNext(); ) { final NetworkLayer layer = (NetworkLayer)i.next(); final ProtocolAddress[] addrs = layer.getHo...
25,092
public InetAddress[] getHostByName(String hostname) throws UnknownHostException { ArrayList list = null; for (Iterator i = nlm.getNetworkLayers().iterator(); i.hasNext(); ) { final NetworkLayer layer = (NetworkLayer)i.next(); final ProtocolAddress[] addrs = layer.getHo...
public InetAddress[] getHostByName(String hostname) throws UnknownHostException { ArrayList list = null; for (Iterator i = nlm.getNetworkLayers().iterator(); i.hasNext(); ) { final NetworkLayer layer = (NetworkLayer)i.next(); final ProtocolAddress[] addrs = layer.getHo...
25,093
public InetAddress[] getHostByName(String hostname) throws UnknownHostException { ArrayList list = null; for (Iterator i = nlm.getNetworkLayers().iterator(); i.hasNext(); ) { final NetworkLayer layer = (NetworkLayer)i.next(); final ProtocolAddress[] addrs = layer.getHo...
public InetAddress[] getHostByName(String hostname) throws UnknownHostException { ArrayList list = null; for (Iterator i = nlm.getNetworkLayers().iterator(); i.hasNext(); ) { final NetworkLayer layer = (NetworkLayer)i.next(); final ProtocolAddress[] addrs = layer.getHo...
25,094
public static Pattern compile(String regex) { throw new InternalError("Not implemented yet"); }
public static Pattern compile (String regex) throws PatternSyntaxException { throw new InternalError("Not implemented yet"); }
25,095
public static Pattern compile(String regex) { throw new InternalError("Not implemented yet"); }
public static Pattern compile(String regex) { return compile(regex, 0); }
25,096
public Matcher matcher(CharSequence input) { throw new InternalError("Not implemented yet"); }
public Matcher matcher (CharSequence input) { throw new InternalError("Not implemented yet"); }
25,097
public Matcher matcher(CharSequence input) { throw new InternalError("Not implemented yet"); }
public Matcher matcher(CharSequence input) { return new Matcher(this, input); }
25,098
public static boolean matches(String regex, CharSequence input) { throw new InternalError("Not implemented yet"); }
public static boolean matches (String regex, CharSequence input) { throw new InternalError("Not implemented yet"); }
25,099
public static boolean matches(String regex, CharSequence input) { throw new InternalError("Not implemented yet"); }
public static boolean matches(String regex, CharSequence input) { return compile(regex).matcher(input).matches(); }
25,100
public String[] split(CharSequence input, int limit) { throw new InternalError("Not implemented yet"); }
public String[] split (CharSequence input) { throw new InternalError("Not implemented yet"); }
25,101
public String[] split(CharSequence input, int limit) { throw new InternalError("Not implemented yet"); }
public String[] split(CharSequence input, int limit) { return split(input, 0); }
25,102
public void addChangeListener(ChangeListener listener) { changeListenerList.add(ChangeListener.class, listener); }
public void addChangeListener(ChangeListener listener) { listenerList.add(ChangeListener.class, listener); }
25,103
protected void fireStateChanged() { Object[] changeListeners = changeListenerList.getListenerList(); if (changeEvent == null) changeEvent = new ChangeEvent(this); for (int i = changeListeners.length - 2; i >= 0; i -= 2) { if (changeListeners[i] == ChangeListener.class) ((ChangeListener) changeLi...
protected void fireStateChanged() { Object[] changeListeners = listenerList.getListenerList(); if (changeEvent == null) changeEvent = new ChangeEvent(this); for (int i = changeListeners.length - 2; i >= 0; i -= 2) { if (changeListeners[i] == ChangeListener.class) ((ChangeListener) changeListener...
25,104
public ChangeListener[] getChangeListeners() { return (ChangeListener[]) changeListenerList.getListenerList(); }
public ChangeListener[] getChangeListeners() { return (ChangeListener[]) listenerList.getListeners(ChangeListener.class); }
25,105
public void removeChangeListener(ChangeListener listener) { changeListenerList.remove(ChangeListener.class, listener); }
public void removeChangeListener(ChangeListener listener) { listenerList.remove(ChangeListener.class, listener); }
25,106
public static Reader newReader(ReadableByteChannel ch, CharsetDecoder dec, int minBufferCap) { throw new Error("not implemented"); }
public static Reader newReader(ReadableByteChannel ch, CharsetDecoder dec, int minBufferCap) { throw new Error("not implemented"); }
25,107
private void insertContentTag(ElementSpec tag) { BranchElement paragraph = (BranchElement) elementStack.peek(); int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinNextDirection) { int index...
private void insertContentTag(ElementSpec tag) { BranchElement paragraph = (BranchElement) elementStack.peek(); int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinNextDirection) { int index...
25,110
private Object processResolution(ObjectStreamClass osc, Object obj, int handle) throws IOException { if (osc != null && obj instanceof Serializable) { try { Method m = osc.readResolveMethod; if(m != null) { obj = m.invoke(obj, new Object[] {}); } } catch (IllegalAccessException ignor...
private Object processResolution(ObjectStreamClass osc, Object obj, int handle) throws IOException { if (osc != null && obj instanceof Serializable) { try { Method m = osc.readResolveMethod; if(m != null) { obj = m.invoke(obj, new Object[] {}); } } catch (IllegalAccessException ignor...
25,112
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { if(dump) dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); if(dump) dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); if(dump) dumpElement(Long.toHexSt...
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { if(dump) dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); if(dump) dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); if(dump) dumpElement(Long.toHexSt...
25,114
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { if(dump) dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); if(dump) dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); if(dump) dumpElement(Long.toHexSt...
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { if(dump) dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); if(dump) dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); if(dump) dumpElement(Long.toHexSt...
25,115
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { if(dump) dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); if(dump) dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); if(dump) dumpElement(Long.toHexSt...
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { if(dump) dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); if(dump) dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); if(dump) dumpElement(Long.toHexString(uid) + ";...
25,116
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { if(dump) dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); if(dump) dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); if(dump) dumpElement(Long.toHexSt...
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { if(dump) dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); if(dump) dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); if(dump) dumpElement(Long.toHexSt...
25,117
private void readNextBlock() throws IOException { readNextBlock(this.realInputStream.readByte()); }
private void readNextBlock() throws IOException { byte marker = this.realInputStream.readByte(); while (marker == TC_RESET) { if(dump) dumpElementln("RESET"); clearHandles(); marker = this.realInputStream.readByte(); } readNextBlock(marker); }
25,118
public static AlgorithmParameters getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty("AlgorithmParameters." + algorithm); if (classname != null) return getInstance(classname...
public static AlgorithmParameters getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty("AlgorithmParameters." + algorithm); if (classname != null) return getInstance(classname...
25,120
public static AlgorithmParameters getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty("AlgorithmParameters." + algorithm); if (classname != null) return getInstance(classname...
publicstaticAlgorithmParametersgetInstance(Stringalgorithm)throwsNoSuchAlgorithmException{Provider[]p=Security.getProviders();for(inti=0;i<p.length;i++){ Stringclassname= p[i].getProperty("AlgorithmParameters."+algorithm); if(classname!=null) returngetInstance(classname,algorithm,p[i]);}thrownewNoSuchAlgorithmException...
25,121
public static AlgorithmParameters getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty("AlgorithmParameters." + algorithm); if (classname != null) return getInstance(classname...
public static AlgorithmParameters getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty("AlgorithmParameters." + algorithm); if (classname != null) return getInstance(classname...
25,122
public final AlgorithmParameterSpec getParameterSpec(Class paramSpec) throws InvalidParameterSpecException { return paramSpi.engineGetParameterSpec(paramSpec); }
public final AlgorithmParameterSpec getParameterSpec(Class paramSpec) throws InvalidParameterSpecException { return paramSpi.engineGetParameterSpec(paramSpec); }
25,124
public final void init(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException { paramSpi.engineInit(paramSpec); }
public final void init(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException { paramSpi.engineInit(paramSpec); }
25,125
private void addNotifyContainerChildren() { synchronized (getTreeLock ()) { for (int i = ncomponents; --i >= 0; ) { component[i].addNotify(); if (component[i].isLightweight ()) { // If we're not lightweight, and we just got a lightweight ...
private void addNotifyContainerChildren() { synchronized (getTreeLock ()) { for (int i = ncomponents; --i >= 0; ) { component[i].addNotify(); if (component[i].isLightweight ()) { // If we're not lightweight, and we just got a lightweight ...
25,126
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); if(!gfx.hitClip(bounds.x,bounds.y, bounds.width, bounds.height)) return; Graphics g2 = gfx.create(bounds.x, bounds.y, bounds.width, bound...
privatevoidvisitChild(Graphicsgfx,GfxVisitorvisitor,Componentcomp){Rectanglebounds=comp.getBounds();if(!gfx.hitClip(bounds.x,bounds.y,bounds.width,bounds.height))return;Graphicsg2=gfx.create(bounds.x,bounds.y,bounds.width,bounds.height);try{visitor.visit(comp,g2);}finally{g2.dispose();}}
25,127
private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { synchronized (getTreeLock ()) { for (int i = ncomponents - 1; i >= 0; --i) { Component comp = component[i]; boolean applicable = comp.isVisible() ...
private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { synchronized (getTreeLock()) { for (int i = ncomponents - 1; i >= 0; --i) { Component comp = component[i]; boolean applicable = comp.isVisible() ...
25,128
private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { synchronized (getTreeLock ()) { for (int i = ncomponents - 1; i >= 0; --i) { Component comp = component[i]; boolean applicable = comp.isVisible() ...
private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { synchronized (getTreeLock ()) { for (int i = ncomponents - 1; i >= 0; --i) { Component comp = component[i]; boolean applicable = comp.isVisible() ...
25,129
public GroupDescriptor(byte src[]) { data = new byte[src.length]; System.arraycopy(src, 0, data, 0, src.length); }
public GroupDescriptor(byte src[]) { data = new byte[src.length]; System.arraycopy(src, 0, data, 0, src.length); }
25,130
public int getFreeInodesCount() { return Ext2Utils.get16(data, 14); }
public int getFreeInodesCount() { return Ext2Utils.get16(data, 14); }
25,131
public String toString () { String string = null; if (source instanceof Component) string = getClass ().getName () + "[" + paramString () + "] on " + ((Component) source).getName (); else if (source instanceof MenuComponent) string = getClass ().getName () + "[" + paramString () + "] on " ...
public String toString () { String string = null; if (source instanceof Component) string = getClass ().getName () + "[" + paramString () + "] on " + ((Component) source).getName (); else if (source instanceof MenuComponent) string = getClass ().getName () + "[" + paramString () + "] on " ...
25,132
private Node successor(Node here, boolean forward) { Node next; // the "leftmost" end is funky if (here == null) { return forward ? root : null; } // // Forward, this is preorder: children before siblings. // Backward, it's postorder: we saw the children already. // if (forwa...
private Node successor(Node here, boolean forward) { Node next; // the "leftmost" end is funky if (here == null) { return forward ? root : null; } // // Forward, this is preorder: children before siblings. // Backward, it's postorder: we saw the children already. // if (forwa...
25,133
private IconvProvider() { IconvMetaData.setup(); }
public IconvProvider() { IconvMetaData.setup(); }
25,134
ValueOfNode(TemplateNode children, TemplateNode next, Expr select, boolean disableOutputEscaping) { super(children, next); this.select = select; this.disableOutputEscaping = disableOutputEscaping; }
ValueOfNode(TemplateNode children, TemplateNode next, Expr select, boolean disableOutputEscaping) { super(children, next); this.select = select; this.disableOutputEscaping = disableOutputEscaping; }
25,135
ValueOfNode(TemplateNode children, TemplateNode next, Expr select, boolean disableOutputEscaping) { super(children, next); this.select = select; this.disableOutputEscaping = disableOutputEscaping; }
ValueOfNode(TemplateNode children, TemplateNode next, Expr select, boolean disableOutputEscaping) { this.select = select; this.disableOutputEscaping = disableOutputEscaping; }
25,136
TemplateNode clone(Stylesheet stylesheet) { return new ValueOfNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), select.clone(stylesheet), ...
TemplateNode clone(Stylesheet stylesheet) { return new ValueOfNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), select.clone(stylesheet), ...
25,137
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); String value = Expr._string(context, ret); //System.err.println("value-of: "+context+" "+ s...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); String value; if (ret instanceof Collection) { StringBuffer buf = new StringBuffer(); for (Ite...
25,139
public synchronized void addConsumer(ImageConsumer ic) { if (consumers.contains(ic)) return; consumers.addElement(ic); }
public synchronized void addConsumer(ImageConsumer ic) { if (consumers.contains(ic)) return; consumers.addElement(ic); }
25,140
public synchronized boolean isConsumer(ImageConsumer ic) { if (consumers.contains(ic)) return true; return false; }
public synchronized boolean isConsumer(ImageConsumer ic) { if (consumers.contains(ic)) return true; return false; }
25,141
public void newPixels() { if( animated == true ) { ImageConsumer ic; Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.SINGLEFRAME ); } } }
public void newPixels() { if( animated == true ) { ImageConsumer ic; Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.SINGLEFRAME ); } } }
25,142
public void newPixels() { if( animated == true ) { ImageConsumer ic; Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.SINGLEFRAME ); } } }
public void newPixels() { if( animated == true ) { ImageConsumer ic; Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.SINGLEFRAME ); } } }
25,143
public void newPixels() { if( animated == true ) { ImageConsumer ic; Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.SINGLEFRAME ); } } }
public void newPixels() { if( animated == true ) { ImageConsumer ic; Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.SINGLEFRAME ); } } }
25,144
public synchronized void removeConsumer(ImageConsumer ic) { consumers.removeElement(ic); }
public synchronized void removeConsumer(ImageConsumer ic) { consumers.removeElement(ic); }
25,145
public void requestTopDownLeftRightResend(ImageConsumer ic) { startProduction ( ic ); }
public void requestTopDownLeftRightResend(ImageConsumer ic) { startProduction ( ic ); }
25,146
private void sendPicture ( ImageConsumer ic ) { ic.setHints( ImageConsumer.TOPDOWNLEFTRIGHT ); if( props != null ) { ic.setProperties( props ); } ic.setDimensions(width, height); ic.setColorModel(cm); if( pixeli != null ) { ic.setPixels( 0, 0, width, height, cm, pixeli, offset, scansize ); } else { ...
private void sendPicture(ImageConsumer ic) { ic.setHints( ImageConsumer.TOPDOWNLEFTRIGHT ); if( props != null ) { ic.setProperties( props ); } ic.setDimensions(width, height); ic.setColorModel(cm); if( pixeli != null ) { ic.setPixels( 0, 0, width, height, cm, pixeli, offset, scansize ); } else { ic...
25,147
private void sendPicture ( ImageConsumer ic ) { ic.setHints( ImageConsumer.TOPDOWNLEFTRIGHT ); if( props != null ) { ic.setProperties( props ); } ic.setDimensions(width, height); ic.setColorModel(cm); if( pixeli != null ) { ic.setPixels( 0, 0, width, height, cm, pixeli, offset, scansize ); } else { ...
private void sendPicture ( ImageConsumer ic ) { ic.setHints( ImageConsumer.TOPDOWNLEFTRIGHT ); if( props != null ) { ic.setProperties( props ); } ic.setDimensions(width, height); ic.setColorModel(cm); if( pixeli != null ) { ic.setPixels( 0, 0, width, height, cm, pixeli, offset, scansize ); } else { ...
25,148