Skip to content

Commit 16d4289

Browse files
committed
ParseService: move default method impl to iface
1 parent 857c1e8 commit 16d4289

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/main/java/org/scijava/parse/DefaultParseService.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ public class DefaultParseService extends AbstractService implements
5353
ParseService
5454
{
5555

56-
@Override
57-
public Items parse(final String arg) {
58-
return parse(arg, true);
59-
}
60-
6156
@Override
6257
public Items parse(final String arg, final boolean strict) {
6358
if (arg == null) throw new NullPointerException("arg must not be null");

src/main/java/org/scijava/parse/ParseService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ public interface ParseService extends SciJavaService {
5252
* @throws IllegalArgumentException If the string does not conform to expected
5353
* syntax.
5454
*/
55-
Items parse(String arg);
55+
default Items parse(final String arg) {
56+
return parse(arg, true);
57+
}
5658

5759
/**
5860
* Parses a comma-delimited list of data elements.

0 commit comments

Comments
 (0)