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
396894b4
Commit
396894b4
authored
13 years ago
by
kaloyane
Browse files
Options
Downloads
Patches
Plain Diff
[LMS-2446] bugfix: prevent unsynchronized state changes in the BioFormat readers instances
SVN: 22343
parent
ba6cd00d
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
image_readers/source/java/ch/systemsx/cisd/imagereaders/bioformats/BioFormatsImageUtils.java
+13
-10
13 additions, 10 deletions
...sx/cisd/imagereaders/bioformats/BioFormatsImageUtils.java
with
13 additions
and
10 deletions
image_readers/source/java/ch/systemsx/cisd/imagereaders/bioformats/BioFormatsImageUtils.java
+
13
−
10
View file @
396894b4
...
...
@@ -61,20 +61,23 @@ final class BioFormatsImageUtils
*/
public
static
IFormatReader
tryToCreateReaderForFile
(
String
fileName
)
{
for
(
IFormatReader
reader
:
READERS
)
synchronized
(
READERS
)
{
try
for
(
IFormatReader
reader
:
READERS
)
{
if
(
reader
.
isThisType
(
fileName
))
try
{
return
createReader
(
reader
.
getClass
());
}
if
(
reader
.
isThisType
(
fileName
))
{
return
createReader
(
reader
.
getClass
());
}
}
finally
{
// "r.isThisType(fileName)" line can open a file handle,
// so we need to close it
closeOpenedFiles
(
reader
);
}
finally
{
// "r.isThisType(fileName)" line can open a file handle,
// so we need to close it
closeOpenedFiles
(
reader
);
}
}
}
return
null
;
...
...
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