question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No replacement for Files.fileTreeTraverser() and MoreFiles.directoryTreeTraverser()

See original GitHub issue

As of 23.3, com.google.common.collect.TreeTraverser is deprecated. Are Files.fileTreeTraverser() and MoreFiles.directoryTreeTraverser() deprecated too? Should users migrate to java.nio.file.SimpleFileVisitor?

Note that MoreFiles.directoryTreeTraverser() appeared in 21.0 (Java 8), despite SimpleFileVisitor presence (Java 7).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
cgdeckercommented, Nov 6, 2017

We’re adding Files.fileTraverser() and MoreFiles.fileTraverser() as graph.Traverser versions of the TreeTraverser-returning methods and will be deprecating those methods. That should be in this week’s release.

0reactions
jrtomcommented, Oct 27, 2017

Files and MoreFiles are also each @Beta.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deprecated API - Guava
The returned TreeTraverser type is deprecated. Use the replacement method MoreFiles.fileTraverser() instead with the same semantics as this method. This method ...
Read more >
tried to access method com.google.common ... - Stack Overflow
looks like that the problem seems to be in accessing the method Files.fileTreeTraverser() from class FileUtils. Any ideas why its coming and how ......
Read more >
Viewing online file analysis results for 'BetterIntelliJ-1.13.jar'
This report is generated from a file or URL submitted to this webservice on ... Not all malicious and suspicious indicators are displayed....
Read more >
jsr305 - OSCHINA - 中文开源技术交流社区
fileTraverser()和MoreFiles.fileTraverser(),并弃用了 Files.fileTreeTraverser()和MoreFiles.directoryTreeTraverser()。还包含以下更新内容:base: Graduated ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found