IJ-CR-145218 [java-inspections] IDEA-201932 Provide inspection to highlight redundant creation operations in java date time api

- combine into one inspection
- fix messages

GitOrigin-RevId: d4e064948f8c730c4d68c58e6c9b1277c6b66b4d
This commit is contained in:
Mikhail Pyltsin
2024-09-27 17:12:29 +00:00
committed by intellij-monorepo-bot
parent a7dfa7615e
commit f474d8047b
26 changed files with 869 additions and 934 deletions
@@ -1673,15 +1673,17 @@ if.may.be.factorized.problem.descriptor=<code>#ref</code> can be factorized #loc
if.may.be.factorized.quickfix=Replace with factorized expression
redundant.string.format.call.display.name=Redundant call to 'String.format()'
redundant.call.problem.descriptor=Redundant call to <code>#ref()</code> #loc
inspection.explicit.chrono.field.display.name=Calls of 'java.time' methods with explicit 'ChronoField' or 'ChronoUnit' arguments can be simplified
inspection.explicit.chrono.field.problem.descriptor=Calls with explicit 'ChronoField' or 'ChronoUnit' arguments call can be simplified
inspection.explicit.chrono.field.family.name=Simplify calls with explicit 'ChronoField' or 'ChronoUnit' arguments
inspection.redundant.creation.java.time.display.name=Redundant creation of 'java.time' objects
inspection.redundant.creation.java.time.error.message=Redundant creation of ''{0}'' object
inspection.redundant.creation.java.time.family.name=Simplify creation of 'java.time' object
inspection.simplifiable.compare.java.time.display.name=Expression with 'java.time' 'compareTo()' call can be simplified
inspection.simplifiable.compare.java.time.family.name=Simplify expression with 'java.time' 'compareTo()' call
inspection.simplifiable.compare.java.time.problem.descriptor=Expression with 'java.time' <code>#ref()</code> call can be simplified
inspection.redundant.java.time.operation.display.name=Redundant operation on 'java.time' object
inspection.redundant.java.time.operation.explicit.chrono.field.family.name=Simplify calls with explicit 'ChronoField' or 'ChronoUnit' arguments
inspection.redundant.java.time.operation.explicit.chrono.field.problem.descriptor=Calls with explicit 'ChronoField' or 'ChronoUnit' arguments call can be simplified
inspection.redundant.java.time.operation.creation.java.time.redundant.call.message=Redundant ''{0}'' call
inspection.redundant.java.time.operation.creation.java.time.error.message=Redundant creation of ''{0}'' object
inspection.redundant.java.time.operation.creation.java.time.error.remove.fix.message=Remove ''{0}'' call
inspection.redundant.java.time.operation.creation.java.time.error.replace.fix.message=Replace with ''{0}'' call
inspection.redundant.java.time.operation.creation.java.time.family.name=Simplify creation of 'java.time' object
inspection.redundant.java.time.operation.creation.java.time.remove.family.name=Remove unnecessary call
inspection.redundant.java.time.operation.compare.java.time.family.name=Simplify expression with 'java.time' 'compareTo()' call
inspection.redundant.java.time.operation.compare.java.time.problem.descriptor=Expression with 'java.time' <code>#ref()</code> call can be simplified
redundant.string.format.call.quickfix=Remove redundant call to 'String.format()'
redundant.string.formatted.call.quickfix=Remove redundant call to 'String.formatted()'
equals.called.on.enum.constant.display.name='equals()' called on enum value