Skip to content

Commit 40c1f9d

Browse files
committed
Remove superfluous public keyword from method in interface declarations.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1178224 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3a3329b commit 40c1f9d

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/main/java/org/apache/commons/io/filefilter/ConditionalFileFilter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ public interface ConditionalFileFilter {
3535
* @param ioFileFilter the filter to be added
3636
* @since Commons IO 1.1
3737
*/
38-
public void addFileFilter(IOFileFilter ioFileFilter);
38+
void addFileFilter(IOFileFilter ioFileFilter);
3939

4040
/**
4141
* Returns this conditional file filter's list of file filters.
4242
*
4343
* @return the file filter list
4444
* @since Commons IO 1.1
4545
*/
46-
public List<IOFileFilter> getFileFilters();
46+
List<IOFileFilter> getFileFilters();
4747

4848
/**
4949
* Removes the specified file filter.
@@ -53,7 +53,7 @@ public interface ConditionalFileFilter {
5353
* <code>false</code> otherwise
5454
* @since Commons IO 1.1
5555
*/
56-
public boolean removeFileFilter(IOFileFilter ioFileFilter);
56+
boolean removeFileFilter(IOFileFilter ioFileFilter);
5757

5858
/**
5959
* Sets the list of file filters, replacing any previously configured
@@ -62,6 +62,6 @@ public interface ConditionalFileFilter {
6262
* @param fileFilters the list of filters
6363
* @since Commons IO 1.1
6464
*/
65-
public void setFileFilters(List<IOFileFilter> fileFilters);
65+
void setFileFilters(List<IOFileFilter> fileFilters);
6666

6767
}

src/main/java/org/apache/commons/io/filefilter/IOFileFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public interface IOFileFilter extends FileFilter, FilenameFilter {
3939
* @param file the File to check
4040
* @return true if this file matches the test
4141
*/
42-
public boolean accept(File file);
42+
boolean accept(File file);
4343

4444
/**
4545
* Checks to see if the File should be accepted by this filter.
@@ -50,6 +50,6 @@ public interface IOFileFilter extends FileFilter, FilenameFilter {
5050
* @param name the filename within the directory to check
5151
* @return true if this file matches the test
5252
*/
53-
public boolean accept(File dir, String name);
53+
boolean accept(File dir, String name);
5454

5555
}

src/main/java/org/apache/commons/io/input/TailerListener.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ public interface TailerListener {
2929
* giving the listener a method of stopping the tailer.
3030
* @param tailer the tailer.
3131
*/
32-
public void init(Tailer tailer);
32+
void init(Tailer tailer);
3333

3434
/**
3535
* This method is called if the tailed file is not found.
3636
* <p>
3737
* <b>Note:</b> this is called from the tailer thread.
3838
*/
39-
public void fileNotFound();
39+
void fileNotFound();
4040

4141
/**
4242
* Called if a file rotation is detected.
@@ -46,22 +46,22 @@ public interface TailerListener {
4646
* <p>
4747
* <b>Note:</b> this is called from the tailer thread.
4848
*/
49-
public void fileRotated();
49+
void fileRotated();
5050

5151
/**
5252
* Handles a line from a Tailer.
5353
* <p>
5454
* <b>Note:</b> this is called from the tailer thread.
5555
* @param line the line.
5656
*/
57-
public void handle(String line);
57+
void handle(String line);
5858

5959
/**
6060
* Handles an Exception .
6161
* <p>
6262
* <b>Note:</b> this is called from the tailer thread.
6363
* @param ex the exception.
6464
*/
65-
public void handle(Exception ex);
65+
void handle(Exception ex);
6666

6767
}

0 commit comments

Comments
 (0)