mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 19:02:13 +07:00
@@ -59,6 +59,7 @@ public class JavaAnalysisScope extends AnalysisScope {
|
||||
for (final PsiClass aClass : classes) {
|
||||
if (aClass.hasModifierProperty(PsiModifier.PUBLIC)) {
|
||||
onlyPackLocalClasses = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (onlyPackLocalClasses) {
|
||||
|
||||
+1
@@ -372,6 +372,7 @@ public class InlineParameterExpressionProcessor extends BaseRefactoringProcessor
|
||||
for (PsiParameter parameter : myMethod.getParameterList().getParameters()) {
|
||||
if (parameter.getType().equals(((PsiParameter)element).getType()) && parameter.getName().equals(((PsiParameter)element).getName())) {
|
||||
bound = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!bound) {
|
||||
|
||||
+4
-1
@@ -105,7 +105,10 @@ public class HighlightingSettingsPerFile extends HighlightingLevelManager implem
|
||||
defaults[rootIndex] = setting;
|
||||
boolean toRemove = true;
|
||||
for (FileHighlightingSetting aDefault : defaults) {
|
||||
if (aDefault != FileHighlightingSetting.NONE) toRemove = false;
|
||||
if (aDefault != FileHighlightingSetting.NONE) {
|
||||
toRemove = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (toRemove) {
|
||||
myHighlightSettings.remove(virtualFile);
|
||||
|
||||
@@ -164,6 +164,7 @@ public class PatchProjectUtil {
|
||||
for (VirtualFile includeRoot : included) {
|
||||
if (VfsUtilCore.isAncestor(toExclude, includeRoot, false)) {
|
||||
toExcludeSibling = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (toExcludeSibling) {
|
||||
|
||||
@@ -84,6 +84,7 @@ public abstract class WebReferencesAnnotatorBase extends ExternalAnnotator<WebRe
|
||||
for (MyFetchResult fetchResult : fetchResults) {
|
||||
if (fetchResult != MyFetchResult.UNKNOWN_HOST) {
|
||||
containsAvailableHosts = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -730,13 +730,12 @@ public abstract class UsefulTestCase extends TestCase {
|
||||
|
||||
@SafeVarargs
|
||||
public static <T> void assertOneOf(T value, @NotNull T... values) {
|
||||
boolean found = false;
|
||||
for (T v : values) {
|
||||
if (Objects.equals(value, v)) {
|
||||
found = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
Assert.assertTrue(value + " should be equal to one of " + Arrays.toString(values), found);
|
||||
Assert.fail(value + " should be equal to one of " + Arrays.toString(values));
|
||||
}
|
||||
|
||||
public static void printThreadDump() {
|
||||
|
||||
@@ -218,6 +218,7 @@ public class PyParameterInfoHandler implements ParameterInfoHandler<PyArgumentLi
|
||||
for (EnumSet<ParameterInfoUIContextEx.Flag> set : hintFlags.values()) {
|
||||
if (set.contains(ParameterInfoUIContextEx.Flag.HIGHLIGHT)) {
|
||||
canOfferNext = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
// highlight the next parameter to be filled
|
||||
|
||||
@@ -166,6 +166,7 @@ public class PyReplaceExpressionUtil implements PyElementTypes {
|
||||
for (PyExpression argument : arguments) {
|
||||
if (argument instanceof PyStarArgument) {
|
||||
hasStarArguments = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!hasStarArguments) {
|
||||
|
||||
Reference in New Issue
Block a user