Skip to content

Commit 65f957b

Browse files
author
Marcel Overdijk
committed
Removed java.nio.file.Path
1 parent 32d43ef commit 65f957b

2 files changed

Lines changed: 1 addition & 26 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=0.10.0-SNAPSHOT
1+
version=0.9.1-SNAPSHOT

rivescript-core/src/main/java/com/rivescript/RiveScript.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
import java.io.FileReader;
5454
import java.io.FilenameFilter;
5555
import java.io.IOException;
56-
import java.nio.file.Path;
5756
import java.util.ArrayList;
5857
import java.util.Arrays;
5958
import java.util.Collections;
@@ -592,18 +591,6 @@ public void loadFile(File file) throws RiveScriptException, ParserException {
592591
parse(file.toString(), code.toArray(new String[0]));
593592
}
594593

595-
/**
596-
* Loads a single RiveScript document from disk.
597-
*
598-
* @param path the path to the RiveScript document
599-
* @throws RiveScriptException in case of a loading error
600-
* @throws ParserException in case of a parsing error
601-
*/
602-
public void loadFile(Path path) throws RiveScriptException, ParserException {
603-
requireNonNull(path, "'path' must not be null");
604-
loadFile(path.toFile());
605-
}
606-
607594
/**
608595
* Loads a single RiveScript document from disk.
609596
*
@@ -664,18 +651,6 @@ public boolean accept(File dir, String name) {
664651
}
665652
}
666653

667-
/**
668-
* Loads multiple RiveScript documents from a directory on disk.
669-
*
670-
* @param path The path to the directory containing the RiveScript documents
671-
* @throws RiveScriptException in case of a loading error
672-
* @throws ParserException in case of a parsing error
673-
*/
674-
public void loadDirectory(Path path, String... extensions) throws RiveScriptException, ParserException {
675-
requireNonNull(path, "'path' must not be null");
676-
loadDirectory(path.toFile(), extensions);
677-
}
678-
679654
/**
680655
* Loads multiple RiveScript documents from a directory on disk.
681656
*

0 commit comments

Comments
 (0)