Skip to content

Commit

Permalink
fix ant.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
stallboy committed Nov 23, 2021
1 parent 3fb6884 commit db82d2c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ jobs:
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build with Ant
run: ant -noinput -buildfile build.xml
3 changes: 2 additions & 1 deletion src/configgen/data/AllData.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public AllData(AllDefine allDefine) {

Map<String, List<DSheet>> dSheetMap = new TreeMap<>();
try {
Files.walkFileTree(dataDir, new SimpleFileVisitor<>() {
//noinspection Convert2Diamond
Files.walkFileTree(dataDir, new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult visitFile(Path path, BasicFileAttributes a) {

Expand Down
3 changes: 2 additions & 1 deletion src/configgen/define/AllDefine.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ public void extract(DefineView defineView) {
private TreeSet<String> scanDefineXmlFiles() {
TreeSet<String> defineXmlFiles = new TreeSet<>();
try {
Files.walkFileTree(dataDir, new SimpleFileVisitor<>() {
//noinspection Convert2Diamond
Files.walkFileTree(dataDir, new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult visitFile(Path path, BasicFileAttributes a) {
if (isDefineXmlFile(path)) {
Expand Down

0 comments on commit db82d2c

Please sign in to comment.