mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
[fb] Fixed some more bugs.
https://xtext-builds.itemis.de/jenkins/job/xtext.code.analysis/3414/findbugsResult/new/ Signed-off-by: Dennis Huebner <dennis.huebner@itemis.de>
This commit is contained in:
parent
99f99b4ab8
commit
754a5ef242
2 changed files with 3 additions and 3 deletions
|
@ -119,8 +119,7 @@ public abstract class AbstractPartialContentAssistParser extends AbstractContent
|
|||
if (skippedAs != null) {
|
||||
result.append(skippedAs);
|
||||
} else {
|
||||
if (appendTextToParse((ICompositeNode) child, offset, skipOptional
|
||||
|| child.getTotalEndOffset() < offset, result)) {
|
||||
if (appendTextToParse((ICompositeNode) child, offset, skipOptional, result)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -100,7 +100,8 @@ public class Files {
|
|||
}
|
||||
}
|
||||
if (deleteParentFolder) {
|
||||
if (parentFolder.list() != null && parentFolder.list().length == 0 && !parentFolder.delete()) {
|
||||
String[] children = parentFolder.list();
|
||||
if (children != null && children.length == 0 && !parentFolder.delete()) {
|
||||
log.error("Couldn't delete " + parentFolder.getAbsolutePath());
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue