Changeset 9148

Show
Ignore:
Timestamp:
07/09/08 19:02:48 (4 months ago)
Author:
hannes
Message:

Don't throw IOExceptions in getChecksum()/lastModified() methods

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • helma-ng/trunk/src/org/helma/javascript/ReloadableScript.java

    r9141 r9148  
    202202     * @return true if none of the included files has been updated since 
    203203     * we last checked. 
    204      * @throws IOException an I/O exception occurred during the check 
    205      */ 
    206     protected boolean isUpToDate() throws IOException { 
     204     */ 
     205    protected boolean isUpToDate() { 
    207206        if (resource == null) { 
    208207            return repository.getChecksum() == checksum; 
  • helma-ng/trunk/src/org/helma/repository/FileRepository.java

    r9141 r9148  
    115115     * @throws IOException an I/O error occurred 
    116116     */ 
    117     public synchronized long getChecksum() throws IOException
     117    public synchronized long getChecksum()
    118118        // delay checksum check if already checked recently 
    119119        if (System.currentTimeMillis() > lastChecksumTime + cacheTime) { 
  • helma-ng/trunk/src/org/helma/repository/Repository.java

    r9141 r9148  
    3636     * @throws IOException an I/O error occurred 
    3737     */ 
    38     public long getChecksum() throws IOException
     38    public long getChecksum()
    3939 
    4040    /** 
     
    4444     * @throws IOException an I/O error occurred 
    4545     */ 
    46     public long lastModified() throws IOException
     46    public long lastModified()
    4747 
    4848 
  • helma-ng/trunk/src/org/helma/repository/Resource.java

    r9141 r9148  
    3333     * @return last modified date 
    3434     */ 
    35     public long lastModified() throws IOException
     35    public long lastModified()
    3636 
    3737    /** 
     
    4545     * @return content length 
    4646     */ 
    47     public long getLength() throws IOException
     47    public long getLength()
    4848 
    4949    /** 
  • helma-ng/trunk/src/org/helma/repository/WebappRepository.java

    r9143 r9148  
    3434    } 
    3535 
    36     public long getChecksum() throws IOException
     36    public long getChecksum()
    3737        return timestamp; 
    3838    } 
    3939 
    40     public long lastModified() throws IOException
     40    public long lastModified()
    4141        return timestamp; 
    4242    } 
  • helma-ng/trunk/src/org/helma/repository/WebappResource.java

    r9143 r9148  
    1919    } 
    2020 
    21     public long lastModified() throws IOException
     21    public long lastModified()
    2222        return repository.lastModified(); 
    2323    } 
     
    3131    } 
    3232 
    33     public long getLength() throws IOException
     33    public long getLength()
    3434        return 0; 
    3535    }