mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
notnull
This commit is contained in:
@@ -31,13 +31,13 @@ import java.awt.*;
|
||||
|
||||
public class JavaFoldingBuilder extends JavaFoldingBuilderBase {
|
||||
@Override
|
||||
protected boolean isBelowRightMargin(Project project, int lineLength) {
|
||||
protected boolean isBelowRightMargin(@NotNull Project project, int lineLength) {
|
||||
final CodeStyleSettings settings = CodeStyleSettingsManager.getSettings(project);
|
||||
return lineLength <= settings.getRightMargin(JavaLanguage.INSTANCE);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean shouldShowExplicitLambdaType(PsiAnonymousClass anonymousClass, PsiNewExpression expression) {
|
||||
protected boolean shouldShowExplicitLambdaType(@NotNull PsiAnonymousClass anonymousClass, @NotNull PsiNewExpression expression) {
|
||||
PsiElement parent = expression.getParent();
|
||||
if (parent instanceof PsiReferenceExpression || parent instanceof PsiAssignmentExpression) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user