添加新的模块,并且替换被丢弃的 fileTreeTraverser 方法
This commit is contained in:
parent
0bb9073a67
commit
77d3a177ea
|
@ -9,6 +9,7 @@
|
|||
<outputRelativeToContentRoot value="true" />
|
||||
<module name="codebank" />
|
||||
<module name="core-java-collections-list" />
|
||||
<module name="core-java-io" />
|
||||
<module name="core-java-datetime-conversion" />
|
||||
<module name="core-java-annotations" />
|
||||
<module name="core-java-8" />
|
||||
|
@ -57,7 +58,6 @@
|
|||
<module name="core-java-exceptions-4" target="1.8" />
|
||||
<module name="core-java-function" target="1.8" />
|
||||
<module name="core-java-functional" target="1.8" />
|
||||
<module name="core-java-io" target="1.8" />
|
||||
<module name="core-java-io-2" target="1.8" />
|
||||
<module name="core-java-io-3" target="1.8" />
|
||||
<module name="core-java-io-4" target="1.8" />
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-collections-list/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-datetime-conversion/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-datetime-conversion/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-io/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-io/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/core-java-modules/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/core-java-modules/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/jackson-modules/jackson-annotations/src/main/java" charset="UTF-8" />
|
||||
|
|
|
@ -209,8 +209,7 @@
|
|||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>${maven-javadoc-plugin.version}</version>
|
||||
<configuration>
|
||||
<source>${maven.compiler.source}</source>
|
||||
<target>${maven.compiler.target}</target>
|
||||
<source>11</source>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
|
@ -287,7 +286,7 @@
|
|||
<avaitility.version>1.7.0</avaitility.version>
|
||||
|
||||
<!-- maven plugins -->
|
||||
<maven-javadoc-plugin.version>3.3.1</maven-javadoc-plugin.version>
|
||||
<maven-javadoc-plugin.version>3.3.2</maven-javadoc-plugin.version>
|
||||
<hsqldb.version>2.4.0</hsqldb.version>
|
||||
<esapi.version>2.3.0.0</esapi.version>
|
||||
<jmh-generator-annprocess.version>1.19</jmh-generator-annprocess.version>
|
||||
|
|
|
@ -72,7 +72,7 @@ public class JavaFolderSizeUnitTest {
|
|||
public void whenGetFolderSizeUsingGuava_thenCorrect() {
|
||||
final File folder = new File(path);
|
||||
|
||||
final Iterable<File> files = com.google.common.io.Files.fileTreeTraverser().breadthFirstTraversal(folder);
|
||||
final Iterable<File> files = com.google.common.io.Files.fileTraverser().breadthFirst(folder);
|
||||
final long size = StreamSupport.stream(files.spliterator(), false).filter(File::isFile).mapToLong(File::length).sum();
|
||||
|
||||
assertEquals(EXPECTED_SIZE, size);
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<module>core-java-annotations</module>
|
||||
<module>core-java-collections-list</module>
|
||||
<module>core-java-datetime-conversion</module>
|
||||
<!-- <module>core-java-io</module>-->
|
||||
<module>core-java-io</module>
|
||||
</modules>
|
||||
|
||||
<dependencyManagement>
|
||||
|
|
Loading…
Reference in New Issue