remove old code ? TRUE : FALSE

This commit is contained in:
Konstantin Bulenkov
2015-07-06 00:42:22 +02:00
parent bb411f0576
commit 5812dd1908
3 changed files with 7 additions and 8 deletions
@@ -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) {
@@ -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);