mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
a bullet-proof non-directory assertion (EA-38183)
This commit is contained in:
@@ -351,7 +351,9 @@ public final class LoadTextUtil {
|
||||
return convertLineSeparators(buffer).first;
|
||||
}
|
||||
|
||||
assert !file.isDirectory() : "'"+file.getPresentableUrl() + "' is directory";
|
||||
if (file.isDirectory()) {
|
||||
throw new AssertionError("'" + file.getPresentableUrl() + "' is directory");
|
||||
}
|
||||
final FileType fileType = file.getFileType();
|
||||
|
||||
if (fileType.isBinary()) {
|
||||
|
||||
Reference in New Issue
Block a user