From 91437afcbab58bef9b8626bd7e406bcbc0871559 Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Wed, 16 Mar 2022 17:25:25 +0100 Subject: [PATCH] fix typo in inspection problem descriptor GitOrigin-RevId: e384ea2dca273f83f6c533c9cab2e3a6f0834a10 --- .../resources/messages/JavaAnalysisBundle.properties | 2 +- .../daemonCodeAnalyzer/advHighlighting7/IDEA111450.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java/java-analysis-api/resources/messages/JavaAnalysisBundle.properties b/java/java-analysis-api/resources/messages/JavaAnalysisBundle.properties index b370d5621fba..7236c9de453c 100644 --- a/java/java-analysis-api/resources/messages/JavaAnalysisBundle.properties +++ b/java/java-analysis-api/resources/messages/JavaAnalysisBundle.properties @@ -183,7 +183,7 @@ anonymous.ref.loc.can.be.replaced.with.lambda=Anonymous #ref #loc can be replace assigning.a.collection.of.nullable.elements=Assigning a collection of nullable elements into a collection of non-null elements nullable.stuff.error.overriding.nullable.with.notnull=Overriding a collection of nullable elements with a collection of non-null elements nullable.stuff.error.overriding.notnull.with.nullable=Overriding a collection of not-null elements with a collection of nullable elements -comparision.between.object.and.primitive=Comparision between Object and primitive is illegal and is accepted in java 7 only +comparision.between.object.and.primitive=Comparison between Object and primitive is illegal and is accepted in java 7 only custom.exception.class.should.have.a.constructor=Custom exception class should have a constructor with a single message parameter of String type delimiters.argument.contains.duplicated.characters=Delimiters argument contains duplicated characters deprecated.class.usage.group.xml=XML diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/IDEA111450.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/IDEA111450.java index d16f8ffad6fd..a21d777cbd58 100644 --- a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/IDEA111450.java +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/IDEA111450.java @@ -32,7 +32,7 @@ class Test { System.out.println((char) c1 == (char) o); // Although a reference comparison, the cast on the wrapper has a side effect; not redundant. - System.out.println(o == (char) c1); - System.out.println((char) c1 == o); + System.out.println(o == (char) c1); + System.out.println((char) c1 == o); } } \ No newline at end of file