mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-21 05:51:25 +07:00
[java] correct naming in modules-related inspections (IDEA-176097)
This commit is contained in:
@@ -21,7 +21,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Represents a package access control statement ({@code exports} or {@code opens}) of a Java module declaration.
|
||||
* Represents a package access control directive ({@code exports} or {@code opens}) of a Java module declaration.
|
||||
*
|
||||
* @since 2017.1
|
||||
*/
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.intellij.psi;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Represents a {@code provides} statement of a Java module declaration.
|
||||
* Represents a {@code provides} directive of a Java module declaration.
|
||||
*
|
||||
* @since 2016.3
|
||||
*/
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.intellij.psi;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Represents a {@code requires} statement of a Java module declaration.
|
||||
* Represents a {@code requires} directive of a Java module declaration.
|
||||
*
|
||||
* @since 2016.3
|
||||
*/
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.intellij.psi;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Represents a {@code uses} statement of a Java module declaration.
|
||||
* Represents a {@code uses} directive of a Java module declaration.
|
||||
*
|
||||
* @since 2016.3
|
||||
*/
|
||||
|
||||
@@ -373,7 +373,7 @@ expected.catch.or.finally='catch' or 'finally' expected
|
||||
expected.boolean.expression=Boolean expression expected
|
||||
expected.with='with' expected
|
||||
expected.module.declaration=Module declaration expected
|
||||
expected.module.statement=Module statement expected
|
||||
expected.module.statement=Module directive expected
|
||||
|
||||
error.cannot.resolve.class=Cannot resolve class ''{0}''
|
||||
error.cannot.resolve.class.or.package=Cannot resolve class or package ''{0}''
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<file>module-info.java</file>
|
||||
<line>1</line>
|
||||
<entry_point TYPE="java.module" FQNAME="MAIN" />
|
||||
<problem_class severity="WARNING">Redundant 'requires' statement in module-info</problem_class>
|
||||
<description>Redundant statement 'requires M2'</description>
|
||||
<problem_class severity="WARNING">Redundant 'requires' directive in module-info</problem_class>
|
||||
<description>Redundant directive 'requires M2'</description>
|
||||
</problem>
|
||||
</problems>
|
||||
@@ -4,7 +4,7 @@
|
||||
<file>module-info.java</file>
|
||||
<line>1</line>
|
||||
<entry_point TYPE="java.module" FQNAME="MAIN" />
|
||||
<problem_class severity="WARNING">Redundant 'requires' statement in module-info</problem_class>
|
||||
<description>Redundant statement 'requires M2'</description>
|
||||
<problem_class severity="WARNING">Redundant 'requires' directive in module-info</problem_class>
|
||||
<description>Redundant directive 'requires M2'</description>
|
||||
</problem>
|
||||
</problems>
|
||||
@@ -4,7 +4,7 @@
|
||||
<file>module-info.java</file>
|
||||
<line>1</line>
|
||||
<entry_point TYPE="java.module" FQNAME="MAIN" />
|
||||
<problem_class severity="WARNING">Redundant 'requires' statement in module-info</problem_class>
|
||||
<description>Redundant statement 'requires M2'</description>
|
||||
<problem_class severity="WARNING">Redundant 'requires' directive in module-info</problem_class>
|
||||
<description>Redundant directive 'requires M2'</description>
|
||||
</problem>
|
||||
</problems>
|
||||
@@ -4,7 +4,7 @@
|
||||
<file>module-info.java</file>
|
||||
<line>1</line>
|
||||
<entry_point TYPE="java.module" FQNAME="MAIN" />
|
||||
<problem_class severity="WARNING">Redundant 'requires' statement in module-info</problem_class>
|
||||
<description>Redundant statement 'requires M6'</description>
|
||||
<problem_class severity="WARNING">Redundant 'requires' directive in module-info</problem_class>
|
||||
<description>Redundant directive 'requires M6'</description>
|
||||
</problem>
|
||||
</problems>
|
||||
@@ -4,7 +4,7 @@
|
||||
<file>module-info.java</file>
|
||||
<line>1</line>
|
||||
<entry_point TYPE="java.module" FQNAME="MAIN" />
|
||||
<problem_class severity="WARNING">Redundant 'requires' statement in module-info</problem_class>
|
||||
<description>Redundant statement 'requires java.base'</description>
|
||||
<problem_class severity="WARNING">Redundant 'requires' directive in module-info</problem_class>
|
||||
<description>Redundant directive 'requires java.base'</description>
|
||||
</problem>
|
||||
</problems>
|
||||
@@ -4,14 +4,14 @@
|
||||
<file>module-info.java</file>
|
||||
<line>1</line>
|
||||
<entry_point TYPE="java.module" FQNAME="MAIN" />
|
||||
<problem_class severity="WARNING">Redundant 'requires' statement in module-info</problem_class>
|
||||
<description>Redundant statement 'requires M7'</description>
|
||||
<problem_class severity="WARNING">Redundant 'requires' directive in module-info</problem_class>
|
||||
<description>Redundant directive 'requires M7'</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>module-info.java</file>
|
||||
<line>1</line>
|
||||
<entry_point TYPE="java.module" FQNAME="MAIN" />
|
||||
<problem_class severity="WARNING">Redundant 'requires' statement in module-info</problem_class>
|
||||
<description>Redundant statement 'requires M4'</description>
|
||||
<problem_class severity="WARNING">Redundant 'requires' directive in module-info</problem_class>
|
||||
<description>Redundant directive 'requires M4'</description>
|
||||
</problem>
|
||||
</problems>
|
||||
@@ -11,7 +11,7 @@ PsiJavaFile:BadContent.java
|
||||
PsiWhiteSpace(' ')
|
||||
PsiJavaToken:LBRACE('{')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiErrorElement:Module statement expected
|
||||
PsiErrorElement:Module directive expected
|
||||
PsiIdentifier:some('some')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiIdentifier:junk('junk')
|
||||
|
||||
@@ -11,5 +11,5 @@ PsiJavaFile:Incomplete4.java
|
||||
PsiWhiteSpace(' ')
|
||||
PsiJavaToken:LBRACE('{')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiErrorElement:Module statement expected
|
||||
PsiErrorElement:Module directive expected
|
||||
PsiIdentifier:junk('junk')
|
||||
@@ -20,7 +20,7 @@ PsiJavaFile:Requires4.java
|
||||
PsiIdentifier:A('A')
|
||||
PsiErrorElement:';' expected
|
||||
<empty list>
|
||||
PsiErrorElement:Module statement expected
|
||||
PsiErrorElement:Module directive expected
|
||||
PsiJavaToken:COMMA(',')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiIdentifier:B('B')
|
||||
|
||||
@@ -480,10 +480,10 @@ inspection.compiler.javac.quirks.anno.array.comma.fix=Remove trailing comma
|
||||
inspection.compiler.javac.quirks.qualifier.type.args.problem=Generics in qualifier reference may cause compilation error in some Javac versions (e.g. JDK 5 and JDK 6).
|
||||
inspection.compiler.javac.quirks.qualifier.type.args.fix=Remove generic parameter
|
||||
|
||||
inspection.redundant.requires.statement.name=Redundant 'requires' statement in module-info
|
||||
inspection.redundant.requires.statement.description=Redundant statement ''requires {0}''
|
||||
inspection.redundant.requires.statement.fix.family=Delete redundant 'requires' statement
|
||||
inspection.redundant.requires.statement.fix.name=Delete statement ''requires {0}''
|
||||
inspection.redundant.requires.statement.name=Redundant 'requires' directive in module-info
|
||||
inspection.redundant.requires.statement.description=Redundant directive ''requires {0}''
|
||||
inspection.redundant.requires.statement.fix.family=Delete redundant 'requires' directive
|
||||
inspection.redundant.requires.statement.fix.name=Delete directive ''requires {0}''
|
||||
|
||||
inspection.root.node.title=Inspections
|
||||
|
||||
@@ -767,7 +767,7 @@ inspection.lambda.to.method.call.fix.family.name=Replace lambda expression with
|
||||
inspection.lambda.to.method.call.fix.name=Replace lambda expression with ''{0}''
|
||||
|
||||
inspection.module.exports.package.to.itself=Module exports/opens package to itself
|
||||
exports.to.itself.delete.statement.fix=Delete statement
|
||||
exports.to.itself.delete.statement.fix=Delete directive
|
||||
exports.to.itself.delete.module.ref.fix=Delete reference to module ''{0}''
|
||||
|
||||
inspection.requires.auto.module=Dependencies on automatic modules
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
The inspection detects a situation where Java 9 module A requires Java 9 module B, but A doesn't use any package from B.
|
||||
Also, requiring the module 'java.base' is redundant.
|
||||
<p>
|
||||
The fix deletes the 'requires' statement for such redundant dependencies.
|
||||
If the deleted dependency re-exported modules that are actually used, the fix adds 'requires' statements for these modules.
|
||||
The fix deletes the 'requires' directive for such redundant dependencies.
|
||||
If the deleted dependency re-exported modules that are actually used, the fix adds 'requires' directive for these modules.
|
||||
<p>
|
||||
<small>New in 2017.1</small>
|
||||
</body>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
The inspection warns about use of automatic modules in the "requires" clauses.
|
||||
The inspection warns about use of automatic modules in the "requires" directive.
|
||||
Corresponds to <code>-Xlint:requires-automatic</code> and <code>-Xlint:requires-transitive-automatic</code> Javac options.
|
||||
</body>
|
||||
</html>
|
||||
@@ -306,8 +306,8 @@ extract.side.effects.convert.to.if=Convert to 'if' statement
|
||||
extract.side.effects=Extract side {0, choice, 1#effect|2#effects}
|
||||
extract.side.effects.family.name=Delete statement extracting side effects
|
||||
|
||||
module.info.add.requires.family.name=Add 'requires' statement to module-info.java
|
||||
module.info.add.requires.name=Add ''requires {0}'' statement to module-info.java
|
||||
module.info.add.requires.family.name=Add 'requires' directive to module-info.java
|
||||
module.info.add.requires.name=Add ''requires {0}'' directive to module-info.java
|
||||
|
||||
collection.to.array.text=Apply conversion ''.toArray({0})''
|
||||
collection.to.array.family.name=Apply conversion '.toArray()'
|
||||
@@ -319,7 +319,8 @@ wrap.with.java.io.file.text=Wrap using 'new File()'
|
||||
wrap.with.java.io.file.parameter.single.text=Wrap parameter using 'new File()'
|
||||
wrap.with.java.io.file.parameter.multiple.text=Wrap {0, choice, 1#1st|2#2nd|3#3rd|4#{0,number}th} parameter using ''new File()''
|
||||
|
||||
java.9.merge.module.statements.fix.family.name=Merge with other ''{0}'' statement
|
||||
java.9.merge.module.statements.fix.name=Merge with other ''{0} {1}'' statement
|
||||
java.9.merge.module.statements.fix.family.name=Merge with other ''{0}'' directive
|
||||
java.9.merge.module.statements.fix.name=Merge with other ''{0} {1}'' directive
|
||||
|
||||
model.create.constructor.quickfix.message=Create constructor ''{0}''
|
||||
model.create.constructor.quickfix.message.family.name=Create constructor
|
||||
Reference in New Issue
Block a user