Skip to content

Commit 85d4bd0

Browse files
committed
AbstractTypedIOService: fix bracket whitespace
1 parent a1ae219 commit 85d4bd0

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

src/main/java/org/scijava/io/AbstractTypedIOService.java

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public abstract class AbstractTypedIOService<D> extends AbstractHandlerService<L
5656
public D open(String source) throws IOException {
5757
try {
5858
return open(locationService.resolve(source));
59-
} catch (URISyntaxException e) {
59+
}
60+
catch (URISyntaxException e) {
6061
throw new IOException(e);
6162
}
6263
}
@@ -77,7 +78,8 @@ public D open(Location source) throws IOException {
7778
public void save(D data, String destination) throws IOException {
7879
try {
7980
save(data, locationService.resolve(destination));
80-
} catch (URISyntaxException e) {
81+
}
82+
catch (URISyntaxException e) {
8183
throw new IOException(e);
8284
}
8385
}
@@ -97,7 +99,8 @@ public void save(D data, Location destination) throws IOException {
9799
public boolean canOpen(String source) {
98100
try {
99101
return canOpen(locationService.resolve(source));
100-
} catch (URISyntaxException e) {
102+
}
103+
catch (URISyntaxException e) {
101104
return false;
102105
}
103106
}
@@ -109,7 +112,8 @@ public boolean canOpen(Location source) {
109112
try {
110113
Class<D> ignored = (Class<D>) (opener.getDataType());
111114
return true;
112-
} catch(ClassCastException e) {
115+
}
116+
catch(ClassCastException e) {
113117
return false;
114118
}
115119
}
@@ -118,7 +122,8 @@ public boolean canOpen(Location source) {
118122
public boolean canSave(D data, String source) {
119123
try {
120124
return canSave(data, locationService.resolve(source));
121-
} catch (URISyntaxException e) {
125+
}
126+
catch (URISyntaxException e) {
122127
return false;
123128
}
124129
}

0 commit comments

Comments
 (0)