lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/store FSDirectory.java RAMDirectory.java OutputStream.java
Date Sat, 07 Aug 2004 11:19:29 GMT
dnaber      2004/08/07 04:19:29

  Modified:    src/java/org/apache/lucene/store FSDirectory.java
                        RAMDirectory.java OutputStream.java
  Log:
  remove useless "throws IOException" declarations
  
  Revision  Changes    Path
  1.33      +8 -9      jakarta-lucene/src/java/org/apache/lucene/store/FSDirectory.java
  
  Index: FSDirectory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/store/FSDirectory.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- FSDirectory.java	19 May 2004 15:46:33 -0000	1.32
  +++ FSDirectory.java	7 Aug 2004 11:19:28 -0000	1.33
  @@ -156,37 +156,36 @@
     }
   
     /** Returns an array of strings, one for each file in the directory. */
  -  public final String[] list() throws IOException {
  +  public final String[] list() {
       return directory.list();
     }
   
     /** Returns true iff a file with the given name exists. */
  -  public final boolean fileExists(String name) throws IOException {
  +  public final boolean fileExists(String name) {
       File file = new File(directory, name);
       return file.exists();
     }
   
     /** Returns the time the named file was last modified. */
  -  public final long fileModified(String name) throws IOException {
  +  public final long fileModified(String name) {
       File file = new File(directory, name);
       return file.lastModified();
     }
   
     /** Returns the time the named file was last modified. */
  -  public static final long fileModified(File directory, String name)
  -       throws IOException {
  +  public static final long fileModified(File directory, String name) {
       File file = new File(directory, name);
       return file.lastModified();
     }
   
     /** Set the modified time of an existing file to now. */
  -  public void touchFile(String name) throws IOException {
  +  public void touchFile(String name) {
       File file = new File(directory, name);
       file.setLastModified(System.currentTimeMillis());
     }
   
     /** Returns the length in bytes of a file in the directory. */
  -  public final long fileLength(String name) throws IOException {
  +  public final long fileLength(String name) {
       File file = new File(directory, name);
       return file.length();
     }
  @@ -347,7 +346,7 @@
     }
   
     /** Closes the store to future operations. */
  -  public final synchronized void close() throws IOException {
  +  public final synchronized void close() {
       if (--refCount <= 0) {
         synchronized (DIRECTORIES) {
           DIRECTORIES.remove(directory);
  @@ -432,7 +431,7 @@
     }
   
     /** Random-access methods */
  -  protected final void seekInternal(long position) throws IOException {
  +  protected final void seekInternal(long position) {
     }
   
     protected final void finalize() throws IOException {
  
  
  
  1.16      +3 -3      jakarta-lucene/src/java/org/apache/lucene/store/RAMDirectory.java
  
  Index: RAMDirectory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/store/RAMDirectory.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- RAMDirectory.java	9 May 2004 12:41:47 -0000	1.15
  +++ RAMDirectory.java	7 Aug 2004 11:19:28 -0000	1.16
  @@ -106,13 +106,13 @@
     }
   
     /** Returns the time the named file was last modified. */
  -  public final long fileModified(String name) throws IOException {
  +  public final long fileModified(String name) {
       RAMFile file = (RAMFile)files.get(name);
       return file.lastModified;
     }
   
     /** Set the modified time of an existing file to now. */
  -  public void touchFile(String name) throws IOException {
  +  public void touchFile(String name) {
   //     final boolean MONITOR = false;
       
       RAMFile file = (RAMFile)files.get(name);
  
  
  
  1.5       +1 -1      jakarta-lucene/src/java/org/apache/lucene/store/OutputStream.java
  
  Index: OutputStream.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/store/OutputStream.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- OutputStream.java	29 Mar 2004 22:48:05 -0000	1.4
  +++ OutputStream.java	7 Aug 2004 11:19:29 -0000	1.5
  @@ -149,7 +149,7 @@
      * occur.
      * @see #seek(long)
      */
  -  public final long getFilePointer() throws IOException {
  +  public final long getFilePointer() {
       return bufferStart + bufferPosition;
     }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message