Changeset 12049


Ignore:
Timestamp:
2006-07-07T09:46:00+12:00 (18 years ago)
Author:
mdewsnip
Message:

(FindBugs) No longer Cloneable, made a couple of variables final, and removed a dead function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/util/GURL.java

    r5785 r12049  
    4747 */
    4848public class GURL
    49     implements Cloneable, Serializable {
     49    implements Serializable {
    5050
    5151    private Integer type;
     
    7171
    7272    /* Static Integer identifiers for ease of use. */
    73     static public Integer INTERNAL = new Integer(0);
    74     static public Integer EXTERNAL = new Integer(1);
     73    static final public Integer INTERNAL = new Integer(0);
     74    static final public Integer EXTERNAL = new Integer(1);
    7575
    7676    public GURL(String url_str) {
     
    124124    }
    125125
    126     /* private String getLocalFile() {
    127     String local_file = getPath() + File.separator + getFile();
    128     // Strip msdos roots if they're still there.
    129     while(local_file.indexOf(":") != -1) {
    130         local_file = local_file.substring(0, local_file.indexOf(":")) + local_file.substring(local_file.indexOf(":") + 1);
    131     }
    132     return local_file;
    133     } */
    134 
    135126    public String getPath() {
    136127    return getHost() + parsePath(url.getFile());
     
    180171    return raw;
    181172    }
    182 
    183173}
Note: See TracChangeset for help on using the changeset viewer.