bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public Component[] getMenuComponents() { return null; // TODO } // getMenuComponents() | public Component[] getMenuComponents() { return null; // TODO } // getMenuComponents() | 24,925 |
public JPopupMenu getPopupMenu() { return null; // TODO } // getPopupMenu() | public JPopupMenu getPopupMenu() { return null; // TODO } // getPopupMenu() | 24,926 |
protected Point getPopupMenuOrigin() { return null; // TODO } // getPopupMenuOrigin() | protected Point getPopupMenuOrigin() { return null; // TODO } // getPopupMenuOrigin() | 24,927 |
public MenuElement[] getSubElements() { return null; // TODO } // getSubElements() | public MenuElement[] getSubElements() { return null; // TODO } // getSubElements() | 24,928 |
public String getUIClassID() { return uiClassID; } // getUIClassID() | public String getUIClassID() { return uiClassID; } // getUIClassID() | 24,929 |
public void insert(String text, int index) { // TODO } // insert() | public void insert(String text, int index) { // TODO } // insert() | 24,930 |
public void insertSeparator(int index) { // TODO } // insertSeparator() | public void insertSeparator(int index) { // TODO } // insertSeparator() | 24,931 |
public boolean isMenuComponent(Component component) { return false; // TODO } // isMenuComponent() | public boolean isMenuComponent(Component component) { return false; // TODO } // isMenuComponent() | 24,932 |
public boolean isPopupMenuVisible() { return false; // TODO } // isPopupMenuVisible() | public boolean isPopupMenuVisible() { return false; // TODO } // isPopupMenuVisible() | 24,933 |
public boolean isSelected() { return false; // TODO } // isSelected() | public boolean isSelected() { return false; // TODO } // isSelected() | 24,934 |
public boolean isTearOff() { return false; // TODO } // isTearOff() | public boolean isTearOff() { return false; // TODO } // isTearOff() | 24,935 |
public boolean isTopLevelMenu() { return false; // TODO } // isTopLevelMenu() | public boolean isTopLevelMenu() { return false; // TODO } // isTopLevelMenu() | 24,936 |
public void menuSelectionChanged(boolean changed) { // TODO } // menuSelectionChanged() | public void menuSelectionChanged(boolean changed) { // TODO } // menuSelectionChanged() | 24,937 |
protected String paramString() { return null; // TODO } // paramString() | protected String paramString() { return null; // TODO } // paramString() | 24,938 |
protected void processKeyEvent(KeyEvent event) { // TODO } // processKeyEvent() | protected void processKeyEvent(KeyEvent event) { // TODO } // processKeyEvent() | 24,939 |
public void remove(JMenuItem item) { // TODO } // remove() | public void remove(JMenuItem item) { // TODO } // remove() | 24,940 |
public void removeAll() { // TODO } // removeAll() | public void removeAll() { // TODO } // removeAll() | 24,941 |
public void removeMenuListener(MenuListener listener) { // TODO } // removeMenuListener() | public void removeMenuListener(MenuListener listener) { // TODO } // removeMenuListener() | 24,942 |
public void setAccelerator(KeyStroke keystroke) { // TODO } // setAccelerator() | public void setAccelerator(KeyStroke keystroke) { // TODO } // setAccelerator() | 24,943 |
public void setDelay(int delay) { // TODO } // setDelay() | public void setDelay(int delay) { // TODO } // setDelay() | 24,944 |
public void setMenuLocation(int x, int y) { // TODO } // setMenuLocation() | public void setMenuLocation(int x, int y) { // TODO } // setMenuLocation() | 24,945 |
public void setModel(ButtonModel model) { // TODO } // setModel() | public void setModel(ButtonModel model) { // TODO } // setModel() | 24,946 |
public void setPopupMenuVisible(boolean popup) { // TODO } // setPopupMenuVisible() | public void setPopupMenuVisible(boolean popup) { // TODO } // setPopupMenuVisible() | 24,947 |
public void setSelected(boolean selected) { // TODO } // setSelected() | public void setSelected(boolean selected) { // TODO } // setSelected() | 24,948 |
public void updateUI() { //setUI((MenuUI) UIManager.get(this)); invalidate(); } // updateUI() | public void updateUI() { //setUI((MenuUI) UIManager.get(this)); invalidate(); } // updateUI() | 24,949 |
private void writeObject(ObjectOutputStream stream) throws IOException { // TODO } // writeObject() | private void writeObject(ObjectOutputStream stream) throws IOException { // TODO } // writeObject() | 24,950 |
public boolean hasNext() throws XMLStreamException { return peekEvent != null || reader.hasNext(); } | public boolean hasNext() { return peekEvent != null || reader.hasNext(); } | 24,951 |
public boolean hasNext() throws XMLStreamException { return peekEvent != null || reader.hasNext(); } | public boolean hasNext() throws XMLStreamException { if (peekEvent != null) return true; try { return reader.hasNext(); } catch (XMLStreamException e) { return false; } } | 24,952 |
public XMLEvent next() throws XMLStreamException { XMLEvent ret = peek(); peekEvent = null; return ret; } | public XMLEvent next() throws XMLStreamException { XMLEvent ret = peek(); peekEvent = null; return ret; } | 24,953 |
public XMLEvent next() throws XMLStreamException { XMLEvent ret = peek(); peekEvent = null; return ret; } | public XMLEvent next() throws XMLStreamException { XMLEvent ret = peek(); peekEvent = null; return ret; } | 24,954 |
void apply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { //System.err.println("...applying " + toString() + " to " + context); if (node != null) { node.apply(stylesheet, mode, ... | System.err.println("...applying " + toString() + " to " + context); System.err.println("...applying " + toString() + " to " + context); voidSystem.err.println("...applying " + toString() + " to " + context); apply(StylesheetSystem.err.println("...applying " + toString() + " to " + context); stylesheet,System.err.printl... | 24,955 |
Tab(String name, Icon icon, Component tab, String descr) { this.name = name; this.icon = icon; this.tab = tab; this.descr = descr; } | Tab(String name, Icon icon, Component tab, String descr) { this.name = name; this.icon = icon; this.tab = tab; this.descr = descr; } | 24,956 |
public AccessibleContext getAccessibleContext() { return null; } | public AccessibleContext getAccessibleContext() { return null; } | 24,957 |
public TabbedPaneUI getUI() { return (TabbedPaneUI) ui; } | public TabbedPaneUI getUI() { return (TabbedPaneUI) ui; } | 24,958 |
public String getUIClassID() { return "JTabbedPane"; } | public String getUIClassID() { return "JTabbedPane"; } | 24,959 |
protected String paramString() { return "JTabbedPane"; } | protected String paramString() { return "JTabbedPane"; } | 24,960 |
public void setUI(TabbedPaneUI ui) { super.setUI(ui); } | public void setUI(TabbedPaneUI ui) { super.setUI(ui); } | 24,961 |
public void updateUI() { setUI((TabbedPaneUI) UIManager.getUI(this)); } | public void updateUI() { setUI((TabbedPaneUI) UIManager.getUI(this)); } | 24,962 |
public Dimension preferredLayoutSize(Container c) { Dimension p = super.preferredLayoutSize(c); System.out.println(" PREF-SIZE from RootLayout = " + p); return p; } | public Dimension preferredLayoutSize(Container c) { Dimension p = super.preferredLayoutSize(c); System.out.println(" PREF-SIZE from RootLayout = " + p); return p; } | 24,963 |
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); //System.out.println("don't do that !"); } | protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); //System.out.println("don't do that !"); } | 24,964 |
Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); System.out.println("created the glasspane: " + p); return p; } | Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); System.out.println("created the glasspane: " + p); return p; } | 24,965 |
JLayeredPane createLayeredPane() { JLayeredPane l = new JLayeredPane(); return l; } | JLayeredPane createLayeredPane() { JLayeredPane l = new JLayeredPane(); return l; } | 24,966 |
protected LayoutManager createRootLayout() { return new RootLayout(); } | protected LayoutManager createRootLayout() { return new RootLayout(); } | 24,967 |
public String getUIClassID() { return "JPanel"; } | public String getUIClassID() { return "JPanel"; } | 24,968 |
private Runtime() { if (current != null) throw new InternalError("Attempt to recreate Runtime"); String path = SystemProperties.getProperty("java.library.path", "."); String pathSep = SystemProperties.getProperty("path.separator", ":"); String fileSep = SystemProperties.getProperty("file.separator",... | private Runtime() { if (current != null) throw new InternalError("Attempt to recreate Runtime"); String path = SystemProperties.getProperty("java.library.path", "."); String pathSep = SystemProperties.getProperty("path.separator", ":"); String fileSep = SystemProperties.getProperty("file.separator",... | 24,969 |
public SwingWindow(Window awtComponent) { this.awtComponent = awtComponent; } | public SwingWindow(Window awtComponent) { super(awtComponent); } | 24,971 |
public AccessibleContext getAccessibleContext() { return null; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJLabel(); return accessibleContext; } | 24,972 |
public CaretPolicy () { // Do nothing here. } | public CaretPolicy() { // Do nothing here. } | 24,973 |
public CaretPolicy () { // Do nothing here. } | publicCaretPolicy(){//Donothinghere.} | 24,974 |
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); } | 24,975 |
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"); } | 24,976 |
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 (); } } | 24,977 |
public boolean equals (Object obj) { if (! (obj instanceof TextLayout)) return false; return equals ((TextLayout) obj); } | public boolean equals (Object obj) { if( !( obj instanceof TextLayout) ) return false; return equals ((TextLayout) obj); } | 24,978 |
public boolean equals (Object obj) { if (! (obj instanceof TextLayout)) return false; return equals ((TextLayout) obj); } | public boolean equals (Object obj) { if (! (obj instanceof TextLayout)) return false; return equals( (TextLayout) obj ); } | 24,979 |
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; } | 24,980 |
public float getAscent () { return peer.getAscent(); } | public float getAscent () { return lm.getAscent(); } | 24,981 |
public byte getBaseline () { return peer.getBaseline(); } | public byte getBaseline () { return (byte)lm.getBaselineIndex(); } | 24,982 |
public float[] getBaselineOffsets () { return peer.getBaselineOffsets(); } | public float[] getBaselineOffsets () { return lm.getBaselineOffsets(); } | 24,983 |
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... | 24,984 |
public Rectangle2D getBounds() { return peer.getBounds(); } | public Rectangle2D getBounds() { if( boundsCache == null ) boundsCache = getOutline(new AffineTransform()).getBounds(); return boundsCache; } | 24,985 |
public Shape getCaretShape (TextHitInfo hit) { return getCaretShape(hit, getBounds()); } | public Shape getCaretShape (TextHitInfo hit) { return getCaretShape( hit, getBounds() ); } | 24,986 |
public Shape[] getCaretShapes (int offset) { return getCaretShapes(offset, getBounds()); } | public Shape[] getCaretShapes (int offset) { return getCaretShapes( offset, getBounds() ); } | 24,987 |
public int getCharacterCount () { return peer.getCharacterCount(); } | public int getCharacterCount () { return string.length(); } | 24,988 |
public byte getCharacterLevel (int index) { return peer.getCharacterLevel(index); } | public byte getCharacterLevel (int index) { throw new Error ("not implemented"); } | 24,989 |
public float getDescent () { return peer.getDescent(); } | public float getDescent () { return lm.getDescent(); } | 24,990 |
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; } | 24,991 |
public float getLeading () { return peer.getLeading(); } | public float getLeading () { return lm.getLeading(); } | 24,992 |
public int[] getLogicalRangesForVisualSelection (TextHitInfo firstEndpoint, TextHitInfo secondEndpoint) { return peer.getLogicalRangesForVisualSelection(firstEndpoint, secondEndpoint); } | public int[] getLogicalRangesForVisualSelection (TextHitInfo firstEndpoint, TextHitInfo secondEndpoint) { throw new Error ("not implemented"); } | 24,993 |
public TextHitInfo getNextLeftHit (int offset) { return getNextLeftHit(offset, DEFAULT_CARET_POLICY); } | public TextHitInfo getNextLeftHit (int offset) { throw new Error ("not implemented"); } | 24,994 |
public TextHitInfo getNextRightHit (int offset) { return getNextRightHit(offset, DEFAULT_CARET_POLICY); } | public TextHitInfo getNextRightHit (int offset) { throw new Error ("not implemented"); } | 24,995 |
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; } | 24,996 |
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... | 24,997 |
public Shape getVisualHighlightShape (TextHitInfo firstEndpoint, TextHitInfo secondEndpoint) { return getVisualHighlightShape(firstEndpoint, secondEndpoint, getBounds()); } | public Shape getVisualHighlightShape (TextHitInfo firstEndpoint, TextHitInfo secondEndpoint) { return getVisualHighlightShape( firstEndpoint, secondEndpoint, getBounds() ); } | 24,998 |
public TextHitInfo getVisualOtherHit (TextHitInfo hit) { return peer.getVisualOtherHit(hit); } | public TextHitInfo getVisualOtherHit (TextHitInfo hit) { throw new Error ("not implemented"); } | 24,999 |
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 ... | 25,000 |
public int hashCode () { return peer.hashCode(); } | public int hashCode () { throw new Error ("not implemented"); } | 25,002 |
public boolean isLeftToRight () { return peer.isLeftToRight(); } | public boolean isLeftToRight () { return leftToRight; } | 25,003 |
public boolean isVertical () { return peer.isVertical(); } | public boolean isVertical () { return false; } | 25,004 |
public String toString () { return peer.toString(); } | public String toString () { return "TextLayout [string:"+string+", Font:"+font+" Rendercontext:"+ frc+"]"; } | 25,005 |
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... | 25,006 |
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... | 25,007 |
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... | 25,008 |
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... | 25,009 |
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(); } } | 25,010 |
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... | 25,011 |
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 ... | 25,012 |
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... | 25,013 |
public void setElem(int i, int val) { data[i+offset] = (double) val; } | public void setElem(int i, int val) { data[i+offset] = val; } | 25,014 |
public static Selector open () throws IOException { return SelectorProvider.provider ().openSelector (); } | public static Selector open() throws IOException { return SelectorProvider.provider ().openSelector (); } | 25,015 |
public static Selector open () throws IOException { return SelectorProvider.provider ().openSelector (); } | public static Selector open () throws IOException { return SelectorProvider.provider().openSelector(); } | 25,016 |
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; } | 25,017 |
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; } | 25,018 |
public boolean isBorderOpaque() { return false; } | public boolean isBorderOpaque() { return false; } | 25,020 |
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) { } | 25,021 |
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... | 25,031 |
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... | 25,032 |
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... | 25,033 |
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 */ doInput = true; permission = new FilePermission(getURL().getFile(), DEFAULT_PERMISSION); } | 25,034 |
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,036 |
public int getContentLength() { try { if (!connected) connect(); return (int) file.length(); } catch (IOException e) { return -1; } } | if (file.isDirectory()) { return getDirectoryListing().length; } if (file.isDirectory()) { return getDirectoryListing().length; } public if (file.isDirectory()) { return getDirectoryListing().length; } int if (file.isDirectory()) { return getDirectoryListing().length; } getContentLength() if (file.isDirectory()) { re... | 25,037 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.