mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
PR#2508 Reviewed-by: Tagir Valeev <tagir.valeev@jetbrains.com> GitOrigin-RevId: c3914e71028831bcd72121e0f3070d4ed1fc01db
15 lines
279 B
Java
15 lines
279 B
Java
// "Replace with bulk 'Files.readAttributes()' call" "true-preview"
|
|
import java.io.*;
|
|
|
|
class Foo {
|
|
|
|
private File file;
|
|
|
|
boolean printDirectory() {
|
|
try {
|
|
return file.isDirec<caret>tory() && file.isFile();
|
|
} catch (Exception e) {
|
|
}
|
|
return false;
|
|
}
|
|
} |