From 74f239671282a2688e023b0b9e0073de2ea42901 Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Fri, 20 Jun 2025 15:07:38 +0200 Subject: [PATCH] Java: more friendly inspection name GitOrigin-RevId: a6117958a34f30f60f6814ee9d0ad661f931ec70 --- .../underscoresInLiterals/afterInsertUnderscores.java | 2 +- .../underscoresInLiterals/beforeInsertUnderscores.java | 2 +- java/openapi/resources/messages/JavaBundle.properties | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java/java-tests/testData/codeInsight/underscoresInLiterals/afterInsertUnderscores.java b/java/java-tests/testData/codeInsight/underscoresInLiterals/afterInsertUnderscores.java index e66a04121b8e..6560e7282597 100644 --- a/java/java-tests/testData/codeInsight/underscoresInLiterals/afterInsertUnderscores.java +++ b/java/java-tests/testData/codeInsight/underscoresInLiterals/afterInsertUnderscores.java @@ -1,4 +1,4 @@ -// "Fix all 'Unreadable numeric literal' problems in file" "true" +// "Fix all 'Numeric literal can use underscore separators' problems in file" "true" class C { int c = 299_792_000; diff --git a/java/java-tests/testData/codeInsight/underscoresInLiterals/beforeInsertUnderscores.java b/java/java-tests/testData/codeInsight/underscoresInLiterals/beforeInsertUnderscores.java index 66e8e9eee542..5687a6e2c931 100644 --- a/java/java-tests/testData/codeInsight/underscoresInLiterals/beforeInsertUnderscores.java +++ b/java/java-tests/testData/codeInsight/underscoresInLiterals/beforeInsertUnderscores.java @@ -1,4 +1,4 @@ -// "Fix all 'Unreadable numeric literal' problems in file" "true" +// "Fix all 'Numeric literal can use underscore separators' problems in file" "true" class C { int c = 299792000; diff --git a/java/openapi/resources/messages/JavaBundle.properties b/java/openapi/resources/messages/JavaBundle.properties index 462195e58c1b..601620b23ab2 100644 --- a/java/openapi/resources/messages/JavaBundle.properties +++ b/java/openapi/resources/messages/JavaBundle.properties @@ -449,7 +449,7 @@ inspection.illegal.character=Illegal character inspection.suspicious.ternary.in.varargs.display.name=Suspicious ternary operator in varargs method call inspection.suspicious.ternary.in.varargs.description=Ternary operator in varargs call contains array and non-array branches inspection.suspicious.ternary.in.varargs.quickfix=Wrap in array initializer -inspection.insert.literal.underscores.display.name=Unreadable numeric literal +inspection.insert.literal.underscores.display.name=Numeric literal can use underscore separators inspection.insert.literal.underscores.family.name=Insert underscores into numeric literal inspection.missingJavadoc.display.name=Missing Javadoc inspection.replace.javadoc.display.name=Comment replaceable with Javadoc