Skip to content

Commit b420fcb

Browse files
committed
Fix PublicMemberInNonPublicType violations
1 parent 494eb7c commit b420fcb

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

qulice-pmd/src/main/java/com/qulice/pmd/SourceValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ final class SourceValidator {
4949
* @return Collection of violations.
5050
*/
5151
@SuppressWarnings({"PMD.AvoidInstantiatingObjectsInLoops", "PMD.CloseResource"})
52-
public Collection<PmdError> validate(
52+
Collection<PmdError> validate(
5353
final Collection<File> sources, final String path) {
5454
this.config.setRuleSets(new ListOf<>("com/qulice/pmd/ruleset.xml"));
5555
this.config.setThreads(0);

qulice-pmd/src/main/resources/com/qulice/pmd/ruleset.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
<exclude name="ExcessiveImports"/>
3030
<exclude name="CyclomaticComplexity"/>
3131
<exclude name="FinalFieldCouldBeStatic"/>
32-
<exclude name="PublicMemberInNonPublicType"/>
3332
</rule>
3433
<rule ref="category/java/documentation.xml">
3534
<exclude name="CommentRequired"/>

qulice-pmd/src/test/resources/com/qulice/pmd/StaticAccessToStaticFields.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static int another() {
2929
return 1;
3030
}
3131

32-
public int add(final int a) {
32+
int add(final int a) {
3333
return a + this.num;
3434
}
3535
}

qulice-pmd/src/test/resources/com/qulice/pmd/SwaggerApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* Test class for swagger annotation.
99
*/
10-
class SwaggerApi {
10+
public class SwaggerApi {
1111
/**
1212
* Get settings by name.
1313
* @param name Name.

0 commit comments

Comments
 (0)