bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public TextHitInfo getStrongCaret (TextHitInfo hit1, TextHitInfo hit2, TextLayout layout) { return layout.peer.getStrongCaret(hit1, hit2); }
public TextHitInfo getStrongCaret (TextHitInfo hit1, TextHitInfo hit2, TextLayout layout) { return layout.peer.getStrongCaret(hit1, hit2); }
15,862
public TextHitInfo getStrongCaret (TextHitInfo hit1, TextHitInfo hit2, TextLayout layout) { return layout.peer.getStrongCaret(hit1, hit2); }
public TextHitInfo getStrongCaret (TextHitInfo hit1, TextHitInfo hit2, TextLayout layout) { throw new Error ("not implemented"); }
15,863
protected Object clone () { try { TextLayout tl = (TextLayout) super.clone (); tl.peer = (ClasspathTextLayoutPeer) this.peer.clone(); return tl; } catch (CloneNotSupportedException e) { // This should never occur throw new InternalError (); } }
protected Object clone () { try { TextLayout tl = (TextLayout) super.clone (); tl.peer = (ClasspathTextLayoutPeer) this.peer.clone(); return tl; } catch (CloneNotSupportedException e) { // This should never occur throw new InternalError (); } }
15,864
public float getAdvance () { return peer.getAdvance(); }
public float getAdvance () { float totalAdvance = 0f; for(int i = 0; i < runs.length; i++) totalAdvance += runs[i].getLogicalBounds().getWidth(); return totalAdvance; }
15,865
public float getAscent () { return peer.getAscent(); }
public float getAscent () { return lm.getAscent(); }
15,866
public byte getBaseline () { return peer.getBaseline(); }
public byte getBaseline () { return (byte)lm.getBaselineIndex(); }
15,867
public float[] getBaselineOffsets () { return peer.getBaselineOffsets(); }
public float[] getBaselineOffsets () { return lm.getBaselineOffsets(); }
15,868
public Shape getBlackBoxBounds (int firstEndpoint, int secondEndpoint) { return peer.getBlackBoxBounds(firstEndpoint, secondEndpoint); }
public Shape getBlackBoxBounds (int firstEndpoint, int secondEndpoint) { if( firstEndpoint < 0 || secondEndpoint > getCharacterCount() ) return new Rectangle2D.Float(); GeneralPath gp = new GeneralPath(); int i = 0; double advance = 0; while( runIndices[i + 1][1] < firstEndpoint ) { advance += runs[i].getLogic...
15,869
public Rectangle2D getBounds() { return peer.getBounds(); }
public Rectangle2D getBounds() { if( boundsCache == null ) boundsCache = getOutline(new AffineTransform()).getBounds(); return boundsCache; }
15,870
public int getCharacterCount () { return peer.getCharacterCount(); }
public int getCharacterCount () { return string.length(); }
15,871
public byte getCharacterLevel (int index) { return peer.getCharacterLevel(index); }
public byte getCharacterLevel (int index) { throw new Error ("not implemented"); }
15,872
public float getDescent () { return peer.getDescent(); }
public float getDescent () { return lm.getDescent(); }
15,873
public TextLayout getJustifiedLayout (float justificationWidth) { return peer.getJustifiedLayout(justificationWidth); }
public TextLayout getJustifiedLayout (float justificationWidth) { TextLayout newLayout = (TextLayout)clone(); if( hasWhitespace ) newLayout.handleJustify( justificationWidth ); return newLayout; }
15,874
public float getLeading () { return peer.getLeading(); }
public float getLeading () { return lm.getLeading(); }
15,875
public int[] getLogicalRangesForVisualSelection (TextHitInfo firstEndpoint, TextHitInfo secondEndpoint) { return peer.getLogicalRangesForVisualSelection(firstEndpoint, secondEndpoint); }
public int[] getLogicalRangesForVisualSelection (TextHitInfo firstEndpoint, TextHitInfo secondEndpoint) { throw new Error ("not implemented"); }
15,876
public TextHitInfo getNextLeftHit (int offset) { return getNextLeftHit(offset, DEFAULT_CARET_POLICY); }
public TextHitInfo getNextLeftHit (int offset) { throw new Error ("not implemented"); }
15,877
public TextHitInfo getNextRightHit (int offset) { return getNextRightHit(offset, DEFAULT_CARET_POLICY); }
public TextHitInfo getNextRightHit (int offset) { throw new Error ("not implemented"); }
15,878
public Shape getOutline (AffineTransform tx) { return peer.getOutline(tx); }
public Shape getOutline (AffineTransform tx) { float x = 0f; GeneralPath gp = new GeneralPath(); for(int i = 0; i < runs.length; i++) { gp.append( runs[i].getOutline( x, 0f ), false ); Rectangle2D r = runs[i].getLogicalBounds(); x += r.getWidth(); } if( tx != null ) gp.transform( tx ); return gp; }
15,879
public float getVisibleAdvance () { return peer.getVisibleAdvance(); }
public float getVisibleAdvance () { float totalAdvance = 0f; if( runs.length <= 0 ) return 0f; if( !Character.isWhitespace( string.charAt( string.length() -1 ) ) ) return getAdvance(); for(int i = 0; i < runs.length - 1; i++) totalAdvance += runs[i].getLogicalBounds().getWidth(); int lastRun = runIndices[ r...
15,880
public TextHitInfo getVisualOtherHit (TextHitInfo hit) { return peer.getVisualOtherHit(hit); }
public TextHitInfo getVisualOtherHit (TextHitInfo hit) { throw new Error ("not implemented"); }
15,881
protected void handleJustify (float justificationWidth) { peer.handleJustify(justificationWidth); }
protected void handleJustify (float justificationWidth) { double deltaW = justificationWidth - getVisibleAdvance(); int nglyphs = 0; int lastNWS = string.length() - 1; while( Character.isWhitespace( string.charAt( lastNWS ) ) ) lastNWS--; int[] wsglyphs = new int[string.length() * 10]; for(int run = 0; run < ...
15,882
public int hashCode () { return peer.hashCode(); }
public int hashCode () { throw new Error ("not implemented"); }
15,884
public boolean isLeftToRight () { return peer.isLeftToRight(); }
public boolean isLeftToRight () { return leftToRight; }
15,885
public boolean isVertical () { return peer.isVertical(); }
public boolean isVertical () { return false; }
15,886
public String toString () { return peer.toString(); }
public String toString () { return "TextLayout [string:"+string+", Font:"+font+" Rendercontext:"+ frc+"]"; }
15,887
void appear() { // All machinery is only required if the carret is blinking. if (blinkListener != null) { blinkListener.ignoreNextEvent = true; // If the caret is visible, erase the current position by repainting // over. if (visible) repaint(); // Draw the care...
void appear() { // All machinery is only required if the carret is blinking. if (blinkListener != null) { blinkListener.ignoreNextEvent = true; // If the caret is visible, erase the current position by repainting // over. if (visible) repaint(); // Draw the care...
15,888
void appear() { // All machinery is only required if the carret is blinking. if (blinkListener != null) { blinkListener.ignoreNextEvent = true; // If the caret is visible, erase the current position by repainting // over. if (visible) repaint(); // Draw the care...
void appear() { // All machinery is only required if the carret is blinking. if (blinkListener != null) { blinkListener.ignoreNextEvent = true; // If the caret is visible, erase the current position by repainting // over. if (visible) repaint(); // Draw the care...
15,889
void appear() { // All machinery is only required if the carret is blinking. if (blinkListener != null) { blinkListener.ignoreNextEvent = true; // If the caret is visible, erase the current position by repainting // over. if (visible) repaint(); // Draw the care...
void appear() { // All machinery is only required if the carret is blinking. if (blinkListener != null) { blinkListener.ignoreNextEvent = true; // If the caret is visible, erase the current position by repainting // over. if (visible) repaint(); // Draw the care...
15,890
public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; int dot = getDot(); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) { assert false : "Unexpected bad caret location: " + do...
public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; int dot = getDot(); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) { assert false : "Unexpected bad caret location: " + do...
15,891
public void setDot(int dot) { if (dot >= 0) { this.mark = dot; this.dot = dot; handleHighlight(); adjustVisibility(this); appear(); } }
public void setDot(int dot) { if (dot >= 0) { this.mark = dot; handleHighlight(); adjustVisibility(this); appear(); } }
15,892
public void setVisible(boolean v) { if (v != visible) { visible = v; updateTimerStatus(); Rectangle area = null; try { area = getComponent().modelToView(getDot()); } catch (BadLocationException ex) { assert false: "Unexpected bad...
public void setVisible(boolean v) { if (v != visible) { visible = v; updateTimerStatus(); Rectangle area = null; try { area = getComponent().modelToView(dot); } catch (BadLocationException ex) { assert false: "Unexpected bad care...
15,893
public void setVisible(boolean v) { if (v != visible) { visible = v; updateTimerStatus(); Rectangle area = null; try { area = getComponent().modelToView(getDot()); } catch (BadLocationException ex) { assert false: "Unexpected bad...
public void setVisible(boolean v) { if (v != visible) { visible = v; updateTimerStatus(); Rectangle area = null; try { area = getComponent().modelToView(getDot()); } catch (BadLocationException e) { assert false: "Unexpected bad ...
15,894
public void setVisible(boolean v) { if (v != visible) { visible = v; updateTimerStatus(); Rectangle area = null; try { area = getComponent().modelToView(getDot()); } catch (BadLocationException ex) { assert false: "Unexpected bad...
public void setVisible(boolean v) { if (v != visible) { visible = v; updateTimerStatus(); Rectangle area = null; try { area = getComponent().modelToView(getDot()); } catch (BadLocationException ex) { AssertionError ae; ae = new A...
15,895
public void setElem(int i, int val) { data[i+offset] = (double) val; }
public void setElem(int i, int val) { data[i+offset] = val; }
15,896
public Insets getBorderInsets(Component c, Insets s) { if (s == null) s = new Insets(0,0,0,0); s.left = s.right = s.top = s.bottom = 5; return s; }
public Insets getBorderInsets(Component c, Insets s) { if (s == null) s = new Insets(0,0,0,0); s.left = s.right = s.top = s.bottom = 5; return s; }
15,897
public Insets getBorderInsets(Component c, Insets s) { if (s == null) s = new Insets(0,0,0,0); s.left = s.right = s.top = s.bottom = 5; return s; }
public Insets getBorderInsets(Component c, Insets s) { if (s == null) s = new Insets(0,0,0,0); s.left = s.right = s.top = s.bottom = 5; return s; }
15,898
public boolean isBorderOpaque() { return false; }
public boolean isBorderOpaque() { return false; }
15,900
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { }
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { }
15,901
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); progressBar.setFont(defaults.getFont("ProgressBar.font")); progressBar.setForeground(defaults.getColor("ProgressBar.foreground")); progressBar.setBackground(defaults.getColor("ProgressBar.background")); progre...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); progressBar.setFont(defaults.getFont("ProgressBar.font")); progressBar.setForeground(defaults.getColor("ProgressBar.foreground")); progressBar.setBackground(defaults.getColor("ProgressBar.background")); progre...
15,911
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); progressBar.setFont(defaults.getFont("ProgressBar.font")); progressBar.setForeground(defaults.getColor("ProgressBar.foreground")); progressBar.setBackground(defaults.getColor("ProgressBar.background")); progre...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); progressBar.setFont(defaults.getFont("ProgressBar.font")); progressBar.setForeground(defaults.getColor("ProgressBar.foreground")); progressBar.setBackground(defaults.getColor("ProgressBar.background")); progre...
15,912
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); progressBar.setFont(defaults.getFont("ProgressBar.font")); progressBar.setForeground(defaults.getColor("ProgressBar.foreground")); progressBar.setBackground(defaults.getColor("ProgressBar.background")); progre...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); progressBar.setFont(defaults.getFont("ProgressBar.font")); progressBar.setForeground(defaults.getColor("ProgressBar.foreground")); progressBar.setBackground(defaults.getColor("ProgressBar.background")); progre...
15,913
public Connection(URL url) { super (url); // @classpath-bugfix /* Set up some variables */ doInput = true; permission = new FilePermission(getURL().getFile(), DEFAULT_PERMISSION); }
public Connection(URL url) { super (url); // @classpath-bugfix /* Set up some variables */ permission = new FilePermission(getURL().getFile(), DEFAULT_PERMISSION); }
15,914
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 }
15,917
public InvalidAddressHolder(InvalidAddress initialValue) { value = initialValue; }
public InvalidAddressHolder() { value = initialValue; }
15,919
public InvalidAddressHolder(InvalidAddress initialValue) { value = initialValue; }
public InvalidAddressHolder(InvalidAddress initialValue) { }
15,920
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; }
15,921
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); }
15,922
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) ...
15,923
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); } }
15,924
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;...
15,926
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;...
15,927
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(); ...
15,929
public AccessibleContext getAccessibleContext() { return null; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJMenuBar(); return accessibleContext; }
15,930
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]); }
15,931
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); }
15,932
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...
15,934
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(); ...
15,935
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...
15,936
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...
15,937
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...
15,938
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...
15,939
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...
15,940
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); ...
15,941
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); ...
15,942
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); ...
15,943
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...
15,944
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...
15,945
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...
15,946
public boolean isAbsolute() { return (scheme != null); }
public boolean isAbsolute() { return scheme != null; }
15,947
public static void setErr(PrintStream err) { setStaticField(System.class, "err", err); }
public static void setErr(PrintStream err) throws PrivilegedActionPragma { setStaticField(System.class, "err", err); }
15,949
public static void setOut(PrintStream out) { setStaticField(System.class, "out", out); }
public static void setOut(PrintStream out) throws PrivilegedActionPragma { setStaticField(System.class, "out", out); }
15,950
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...
15,951
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...
15,952
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...
15,953
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...
15,954
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...
15,955
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...
15,956
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"); }
15,957
public static Pattern compile(String regex) { throw new InternalError("Not implemented yet"); }
public static Pattern compile(String regex) { return compile(regex, 0); }
15,958
public Matcher matcher(CharSequence input) { throw new InternalError("Not implemented yet"); }
public Matcher matcher(CharSequence input) { return new Matcher(this, input); }
15,959
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(); }
15,960
public String[] split(CharSequence input, int limit) { throw new InternalError("Not implemented yet"); }
public String[] split (CharSequence input) { throw new InternalError("Not implemented yet"); }
15,961
public String[] split(CharSequence input, int limit) { throw new InternalError("Not implemented yet"); }
public String[] split(CharSequence input, int limit) { return split(input, 0); }
15,962
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) { return new ChannelReader(ch, dec, minBufferCap); }
15,963
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...
15,965
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...
15,967
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...
15,969
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...
15,970
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...
15,971
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); }
15,972
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...
15,973
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 ...
15,975
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); }
15,976
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 " ...
15,977
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...
15,978
private IconvProvider() { IconvMetaData.setup(); }
public IconvProvider() { IconvMetaData.setup(); }
15,979
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; }
15,980
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; }
15,981
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), ...
15,982
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...
15,984