Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
71b504a2
Commit
71b504a2
authored
16 years ago
by
brinn
Browse files
Options
Downloads
Patches
Plain Diff
change: replace CheckedExceptionTunnel(InterruptedException) with StopException
SVN: 6524
parent
df2049c3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/source/java/ch/systemsx/cisd/common/utilities/FileUtilities.java
+5
-11
5 additions, 11 deletions
...java/ch/systemsx/cisd/common/utilities/FileUtilities.java
with
5 additions
and
11 deletions
common/source/java/ch/systemsx/cisd/common/utilities/FileUtilities.java
+
5
−
11
View file @
71b504a2
...
@@ -48,6 +48,7 @@ import org.apache.commons.lang.StringUtils;
...
@@ -48,6 +48,7 @@ import org.apache.commons.lang.StringUtils;
import
ch.systemsx.cisd.common.exceptions.CheckedExceptionTunnel
;
import
ch.systemsx.cisd.common.exceptions.CheckedExceptionTunnel
;
import
ch.systemsx.cisd.common.exceptions.EnvironmentFailureException
;
import
ch.systemsx.cisd.common.exceptions.EnvironmentFailureException
;
import
ch.systemsx.cisd.common.exceptions.StopException
;
import
ch.systemsx.cisd.common.logging.ISimpleLogger
;
import
ch.systemsx.cisd.common.logging.ISimpleLogger
;
import
ch.systemsx.cisd.common.logging.LogLevel
;
import
ch.systemsx.cisd.common.logging.LogLevel
;
import
ch.systemsx.cisd.common.parser.filter.AlwaysAcceptLineFilter
;
import
ch.systemsx.cisd.common.parser.filter.AlwaysAcceptLineFilter
;
...
@@ -593,11 +594,7 @@ public final class FileUtilities
...
@@ -593,11 +594,7 @@ public final class FileUtilities
{
{
return
;
return
;
}
}
if
(
Thread
.
interrupted
())
StopException
.
check
();
{
throw
new
CheckedExceptionTunnel
(
new
InterruptedException
(
"lastChanged() interrupted"
));
}
traverse
(
entry
);
traverse
(
entry
);
}
}
}
}
...
@@ -647,8 +644,7 @@ public final class FileUtilities
...
@@ -647,8 +644,7 @@ public final class FileUtilities
* file system.
* file system.
* @throws CheckedExceptionTunnel of an {@link IOException} if the <var>path</var> does not
* @throws CheckedExceptionTunnel of an {@link IOException} if the <var>path</var> does not
* exist or is not readable.
* exist or is not readable.
* @throws CheckedExceptionTunnel of a {@link InterruptedException} if the thread that the
* @throws StopException if the thread that the method runs in gets interrupted.
* method runs in gets interrupted.
*/
*/
public
static
long
lastChanged
(
final
File
path
,
final
boolean
subDirectoriesOnly
,
public
static
long
lastChanged
(
final
File
path
,
final
boolean
subDirectoriesOnly
,
final
long
stopWhenFindYounger
)
final
long
stopWhenFindYounger
)
...
@@ -675,8 +671,7 @@ public final class FileUtilities
...
@@ -675,8 +671,7 @@ public final class FileUtilities
* file system.
* file system.
* @throws CheckedExceptionTunnel of an {@link IOException} if the <var>path</var> does not
* @throws CheckedExceptionTunnel of an {@link IOException} if the <var>path</var> does not
* exist or is not readable.
* exist or is not readable.
* @throws CheckedExceptionTunnel of a {@link InterruptedException} if the thread that the
* @throws StopException if the thread that the method runs in gets interrupted.
* method runs in gets interrupted.
*/
*/
public
static
long
lastChangedRelative
(
final
File
path
,
final
boolean
subDirectoriesOnly
,
public
static
long
lastChangedRelative
(
final
File
path
,
final
boolean
subDirectoriesOnly
,
final
long
stopWhenFindYoungerRelative
)
final
long
stopWhenFindYoungerRelative
)
...
@@ -690,8 +685,7 @@ public final class FileUtilities
...
@@ -690,8 +685,7 @@ public final class FileUtilities
* file system.
* file system.
* @throws CheckedExceptionTunnel of an {@link IOException} if the <var>path</var> does not
* @throws CheckedExceptionTunnel of an {@link IOException} if the <var>path</var> does not
* exist or is not readable.
* exist or is not readable.
* @throws CheckedExceptionTunnel of a {@link InterruptedException} if the thread that the
* @throws StopException if the thread that the method runs in gets interrupted.
* method runs in gets interrupted.
*/
*/
public
static
long
lastChanged
(
final
File
path
)
public
static
long
lastChanged
(
final
File
path
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment