From 3cc5f493dda07e48c295268b49291acbb3f49c2e Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Tue, 11 Feb 2025 08:58:36 +0100 Subject: [PATCH] [java-highlighting] JavaErrorBundle.properties: unused properties removed Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: 426a4ad67359142cfc19259cc81e734b1b0e4031 --- .../messages/JavaErrorBundle.properties | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/java/java-psi-impl/resources/messages/JavaErrorBundle.properties b/java/java-psi-impl/resources/messages/JavaErrorBundle.properties index 06d6a3d93638..d83beceff322 100644 --- a/java/java-psi-impl/resources/messages/JavaErrorBundle.properties +++ b/java/java-psi-impl/resources/messages/JavaErrorBundle.properties @@ -6,8 +6,6 @@ annotation.missing.method=Cannot find @interface method ''{0}()'' annotation.unknown.method=Cannot find @interface method ''{0}()'' annotation.not.applicable=''@{0}'' not applicable to {1} annotation.annotation.type.expected=Annotation type expected -annotation.not.allowed.in.permit.list=Annotations not allowed in 'permits' list - generics.wrong.number.of.type.arguments=Wrong number of type arguments: {0}; required: {1} generics.methods.have.same.erasure={0}; both methods have same erasure generics.methods.have.same.erasure.override={0}; both methods have same erasure, yet neither overrides the other @@ -56,7 +54,6 @@ return.from.constructor=Cannot return a value from a constructor #{0} - exceptions list (comma separated), {1} - exceptions count in the list, {2} - exception source unhandled.exceptions=Unhandled {1, choice, 0#exception|2#exceptions}: {0} variable.already.defined=Variable ''{0}'' is already defined in the scope -modifier.not.allowed=Modifier ''{0}'' not allowed here not.a.statement=Not a statement invalid.statement=Invalid statement incompatible.types=Incompatible types. Found: ''{1}'', required: ''{0}'' @@ -102,9 +99,6 @@ switch.expr.empty='switch' expression does not have any case clauses switch.statement.empty='switch' statement does not have any case clauses switch.expr.incomplete='switch' expression does not cover all possible input values switch.statement.incomplete='switch' statement does not cover all possible input values -switch.expr.no.result=Switch expression does not have any result expressions -switch.expr.should.produce.result=Switch expression should produce result in all execution paths -switch.expr.rule.should.produce.result=Switch expression rule should produce result in all execution paths incorrect.number.of.nested.patterns=Incorrect number of nested patterns: expected {0} but found {1} identifier.is.not.allowed.here=Identifier is not allowed here @@ -202,24 +196,14 @@ module.unwanted.modifier.warn=Modifiers on 'requires java.base' are prohibited i yield.unqualified.method.warn=Unqualified call to 'yield' method is not supported in releases since Java 14 redundant.semicolon.warn=Redundant semicolons between import statements are prohibited starting from Java 21 -module.no.package=A module file should not have 'package' statement -module.file.wrong.name=Module declaration should be in a file named 'module-info.java' -module.file.duplicate='module-info.java' already exists in the module -module.duplicate.requires=Duplicate ''requires'': {0} -module.duplicate.exports=Duplicate ''exports'': {0} -module.duplicate.opens=Duplicate ''opens'': {0} -module.duplicate.uses=Duplicate ''uses'': {0} -module.duplicate.provides=Duplicate ''provides'': {0} module.duplicate.exports.target=Duplicate ''exports'' target: {0} module.duplicate.opens.target=Duplicate ''opens'' target: {0} module.duplicate.impl=Duplicate implementation: {0} -module.file.wrong.location=Module declaration should be located in a module's source root module.open.duplicate.text=Go to duplicate module.not.found=Module not found: {0} module.ambiguous=Ambiguous module reference: {0} module.not.on.path=Module is not in dependencies: {0} module.cyclic.dependence=Cyclic dependence: {0} -module.opens.in.weak.module='opens' is not allowed in an open module package.not.found=Package not found: {0} package.is.empty=Package is empty: {0} module.service.enum=The service definition is an enum: {0} @@ -230,8 +214,6 @@ module.service.inner=The service implementation is an inner class: {0} module.service.no.ctor=The service implementation does not have a public default constructor: {0} module.service.provider.type=The ''provider'' method return type must be a subtype of the service interface type: {0} module.service.unused=Service interface provided but not exported or used -module.conflicting.reads=Module ''{0}'' reads package ''{1}'' from both ''{2}'' and ''{3}'' -module.conflicting.packages=Package ''{0}'' exists in another module: {1} module.access.to.unnamed=Package ''{0}'' is declared in the unnamed module, but module ''{1}'' does not read it module.access.from.named=Package ''{0}'' is declared in module ''{1}'', which does not export it to module ''{2}'' module.access.from.unnamed=Package ''{0}'' is declared in module ''{1}'', which does not export it to the unnamed module @@ -250,13 +232,6 @@ insufficient.language.level={0} are not supported at language level ''{1}'' bad.type.in.switch.expression=Bad type in switch expression: {0} cannot be converted to {1} switch.expression.cannot.be.void=Target type for switch expression cannot be void annotation.on.static.member.qualifying.type.family.name=Move type annotation -not.allowed.in.sealed.hierarchy=''{0}'' is not allowed in the sealed hierarchy -invalid.permits.clause.direct.implementation=Invalid permits clause: ''{0}'' must directly {1, choice, 1#extend|2#implement} ''{2}'' -permitted.subclass.must.have.modifier=All sealed class subclasses must either be final, sealed or non-sealed -permits.list.generics.are.not.allowed=Generics are not allowed in permits list -local.classes.must.not.extend.sealed.classes=Local classes must not extend sealed classes -class.not.allowed.to.extend.sealed.class.from.another.package={0} ''{1}'' from another package not allowed to extend sealed {2} ''{3}'' in unnamed module -class.not.allowed.to.extend.sealed.class.from.another.module=Class is not allowed to extend sealed class from another module create.class.action.this.not.valid.java.qualified.name=This is not a valid Java qualified name text.class.inherits.abstract.and.default={0} inherits abstract and default for {1} from types {2} and {3} text.class.inherits.unrelated.defaults={0} inherits unrelated defaults for {1} from types {2}