From df649251d25376b8e47f6e672dee27d824fd7c24 Mon Sep 17 00:00:00 2001 From: Rustam Vishnyakov Date: Wed, 6 Feb 2019 18:52:35 +0300 Subject: [PATCH] A better external name for REPLACE_SUM code style option --- .../src/com/intellij/psi/codeStyle/JavaCodeStyleSettings.java | 2 ++ java/java-tests/testData/codeStyle/jsonExport.j2ee.json | 1 + java/java-tests/testData/codeStyle/jsonExport.json | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/psi/codeStyle/JavaCodeStyleSettings.java b/java/java-impl/src/com/intellij/psi/codeStyle/JavaCodeStyleSettings.java index 624848599001..ff66cb54fe64 100644 --- a/java/java-impl/src/com/intellij/psi/codeStyle/JavaCodeStyleSettings.java +++ b/java/java-impl/src/com/intellij/psi/codeStyle/JavaCodeStyleSettings.java @@ -106,6 +106,8 @@ public class JavaCodeStyleSettings extends CustomCodeStyleSettings implements Im public boolean REPLACE_CAST = false; public boolean REPLACE_INSTANCEOF_AND_CAST = false; public boolean REPLACE_NULL_CHECK = true; + + @Property(externalName = "replace_int_sum_lambda_with_method_ref") public boolean REPLACE_SUM = true; public boolean SPACES_WITHIN_ANGLE_BRACKETS; diff --git a/java/java-tests/testData/codeStyle/jsonExport.j2ee.json b/java/java-tests/testData/codeStyle/jsonExport.j2ee.json index 5c3cf874f04a..a290a9688371 100644 --- a/java/java-tests/testData/codeStyle/jsonExport.j2ee.json +++ b/java/java-tests/testData/codeStyle/jsonExport.j2ee.json @@ -156,6 +156,7 @@ ], "repeat_synchronized": true, "replace_instanceof_and_cast": false, + "replace_int_sum_lambda_with_method_ref": true, "replace_null_check": true, "resource_list_new_line_after_left_paren": false, "resource_list_right_paren_on_new_line": false, diff --git a/java/java-tests/testData/codeStyle/jsonExport.json b/java/java-tests/testData/codeStyle/jsonExport.json index 95d4da6b067c..461af572f599 100644 --- a/java/java-tests/testData/codeStyle/jsonExport.json +++ b/java/java-tests/testData/codeStyle/jsonExport.json @@ -146,8 +146,8 @@ ], "repeat_synchronized": true, "replace_instanceof_and_cast": false, + "replace_int_sum_lambda_with_method_ref": true, "replace_null_check": true, - "replace_sum": true, "resource_list_new_line_after_left_paren": false, "resource_list_right_paren_on_new_line": false, "resource_list_wrap": "off",