mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove old code ? TRUE : FALSE
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -98,7 +98,7 @@ public class JavacOutputParser extends OutputParser {
|
||||
final String filePath = part1.replace(File.separatorChar, '/');
|
||||
final Boolean fileExists = ApplicationManager.getApplication().runReadAction(new Computable<Boolean>(){
|
||||
public Boolean compute(){
|
||||
return LocalFileSystem.getInstance().findFileByPath(filePath) != null? Boolean.TRUE : Boolean.FALSE;
|
||||
return LocalFileSystem.getInstance().findFileByPath(filePath) != null;
|
||||
}
|
||||
});
|
||||
if (!fileExists.booleanValue()) {
|
||||
@@ -236,7 +236,7 @@ public class JavacOutputParser extends OutputParser {
|
||||
protected void doExecute(final String line, @Nullable final String filePath, final Callback callback) {
|
||||
final boolean fileExists = filePath != null && ApplicationManager.getApplication().runReadAction(new Computable<Boolean>(){
|
||||
public Boolean compute(){
|
||||
return LocalFileSystem.getInstance().findFileByPath(filePath) != null? Boolean.TRUE : Boolean.FALSE;
|
||||
return LocalFileSystem.getInstance().findFileByPath(filePath) != null;
|
||||
}
|
||||
});
|
||||
if (fileExists) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -92,7 +92,7 @@ public class ChangeContextUtil {
|
||||
}
|
||||
}
|
||||
else if (canChangeQualifier) {
|
||||
refExpr.putCopyableUserData(CAN_REMOVE_QUALIFIER_KEY, canRemoveQualifier(refExpr) ? Boolean.TRUE : Boolean.FALSE);
|
||||
refExpr.putCopyableUserData(CAN_REMOVE_QUALIFIER_KEY, canRemoveQualifier(refExpr));
|
||||
}
|
||||
}
|
||||
else if (includeRefClasses) {
|
||||
|
||||
+2
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -212,8 +212,7 @@ class UpdateFoldRegionsOperation implements Runnable {
|
||||
}
|
||||
else if (region.isValid() && info.isLightRegion(region)) {
|
||||
boolean isExpanded = region.isExpanded();
|
||||
rangeToExpandStatusMap.put(TextRange.create(region),
|
||||
isExpanded ? Boolean.TRUE : Boolean.FALSE);
|
||||
rangeToExpandStatusMap.put(TextRange.create(region), isExpanded);
|
||||
}
|
||||
else {
|
||||
toRemove.add(region);
|
||||
|
||||
Reference in New Issue
Block a user