Skip to content

Commit 1cc1d48

Browse files
authored
Merge pull request #374 from oracle/checkstyle-fixes
Fixes for checkstyle scan, and prepare for uptake of checkstyle v10
2 parents db3fb09 + 6193d68 commit 1cc1d48

File tree

5 files changed

+19
-14
lines changed

5 files changed

+19
-14
lines changed

imagetool/src/main/java/com/oracle/weblogic/imagetool/aru/AruProduct.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public enum AruProduct {
3232

3333
private final String productId;
3434
private final String description;
35+
3536
AruProduct(String productId, String description) {
3637
this.productId = productId;
3738
this.description = description;

imagetool/src/main/java/com/oracle/weblogic/imagetool/cli/cache/CacheCLI.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@
1010
import picocli.CommandLine.Unmatched;
1111

1212
@Command(
13-
name = "cache",
14-
description = "List and set cache options",
15-
versionProvider = HelpVersionProvider.class,
16-
commandListHeading = "%nCommands:%n%n",
17-
subcommands = {
18-
ListCacheItems.class,
19-
AddInstallerEntry.class,
20-
AddPatchEntry.class,
21-
AddEntry.class,
22-
DeleteEntry.class
23-
},
24-
sortOptions = false
13+
name = "cache",
14+
description = "List and set cache options",
15+
versionProvider = HelpVersionProvider.class,
16+
commandListHeading = "%nCommands:%n%n",
17+
subcommands = {
18+
ListCacheItems.class,
19+
AddInstallerEntry.class,
20+
AddPatchEntry.class,
21+
AddEntry.class,
22+
DeleteEntry.class
23+
},
24+
sortOptions = false
2525
)
2626
public class CacheCLI {
2727

imagetool/src/main/java/com/oracle/weblogic/imagetool/installer/FmwInstallerType.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public enum FmwInstallerType {
8383

8484
private final InstallerType[] installers;
8585
private final Set<AruProduct> products;
86+
8687
FmwInstallerType(Set<AruProduct> products, InstallerType... installers) {
8788
this.installers = installers;
8889
this.products = products;

imagetool/src/test/java/com/oracle/weblogic/imagetool/cli/menu/CommonOptionsTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ private static void setPrivateField(String fieldname, Object target, Object valu
4444
/**
4545
* handleChown() should set the Dockerfile userid and groupid.
4646
* use case: user provides derek:data. Result should be "derek" for user and "data" for group.
47+
*
4748
* @throws Exception if reflection fails (developer error)
4849
*/
4950
@Test
@@ -66,6 +67,7 @@ void handleChown() throws Exception {
6667
/**
6768
* handleChown() should set the Dockerfile userid and groupid.
6869
* use case: default, no input. Result should be "oracle" for both.
70+
*
6971
* @throws Exception if reflection fails (developer error)
7072
*/
7173
@Test
@@ -87,6 +89,7 @@ void handleChownDefault() throws Exception {
8789

8890
/**
8991
* Test CommonOptions handleChown method.
92+
*
9093
* @throws Exception if reflection fails (developer error)
9194
*/
9295
@Test
@@ -172,7 +175,7 @@ void testResolveOptions() throws Exception {
172175
resourceTemplatesField.setAccessible(true);
173176
List<Path> resolveFiles =
174177
Arrays.asList(new File("target/test-classes/templates/resolver.yml").toPath(),
175-
new File("target/test-classes/templates/verrazzano.yml").toPath());
178+
new File("target/test-classes/templates/verrazzano.yml").toPath());
176179
resourceTemplatesField.set(wdtOptions, resolveFiles);
177180

178181
Field imageTagField = WdtFullOptions.class.getDeclaredField("wdtDomainHome");

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
<plugin>
215215
<groupId>org.apache.maven.plugins</groupId>
216216
<artifactId>maven-checkstyle-plugin</artifactId>
217-
<version>3.1.0</version>
217+
<version>3.1.2</version>
218218
<executions>
219219
<execution>
220220
<id>checkstyle</id>

0 commit comments

Comments
 (0)