/[classpath]/classpath/java/net/URLStreamHandler.java
ViewVC logotype

Diff of /classpath/java/net/URLStreamHandler.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.28 by tromey, Fri Apr 23 21:13:20 2004 UTC revision 1.29 by mark, Thu Jul 1 23:46:16 2004 UTC
# Line 1  Line 1 
1  /* URLStreamHandler.java -- Abstract superclass for all protocol handlers  /* URLStreamHandler.java -- Abstract superclass for all protocol handlers
2     Copyright (C) 1998, 1999, 2002, 2003 Free Software Foundation, Inc.     Copyright (C) 1998, 1999, 2002, 2003, 2004 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 204  public abstract class URLStreamHandler Line 204  public abstract class URLStreamHandler
204        {        {
205          // Context is available, but only override it if there is a new file.          // Context is available, but only override it if there is a new file.
206          int lastSlash = file.lastIndexOf('/');          int lastSlash = file.lastIndexOf('/');
207            if (lastSlash < 0)
208          file =            file = spec.substring(start, end);
209            file.substring(0, lastSlash) + '/' + spec.substring(start, end);          else
210              file = (file.substring(0, lastSlash)
211                      + '/' + spec.substring(start, end));
212    
213          if (url.getProtocol().equals("file"))          if (url.getProtocol().equals("file"))
214            {            {

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26