Skip to content

Commit 1c4e43a

Browse files
committed
Merge remote-tracking branch 'origin/checkstyle-enforcement' into checkstyle-enforcement
# Conflicts: # operator/pom.xml
2 parents abed3b1 + c34a5fd commit 1c4e43a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+386
-434
lines changed

json-schema-maven-plugin/pom.xml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,6 @@
6969
</mojoDependencies>
7070
</configuration>
7171
</plugin>
72-
<plugin>
73-
<groupId>com.coveo</groupId>
74-
<artifactId>fmt-maven-plugin</artifactId>
75-
<version>2.8</version>
76-
<executions>
77-
<execution>
78-
<phase>test</phase>
79-
<goals>
80-
<goal>check</goal>
81-
</goals>
82-
</execution>
83-
</executions>
84-
</plugin>
8572
</plugins>
8673
</build>
8774
</project>

json-schema-maven-plugin/src/main/java/oracle/kubernetes/json/mojo/ExternalSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ URL getUrl() throws MalformedURLException {
2222
return new URL(url);
2323
}
2424

25-
URL getCacheURL(String baseDir) throws MalformedURLException {
25+
URL getCacheUrl(String baseDir) throws MalformedURLException {
2626
return new File(new File(baseDir), cache).toURI().toURL();
2727
}
2828
}

json-schema-maven-plugin/src/main/java/oracle/kubernetes/json/mojo/FileSystem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ abstract class FileSystem {
1818

1919
static final FileSystem LIVE_FILE_SYSTEM = new LiveFileSystem();
2020

21-
abstract URL toURL(File file) throws MalformedURLException;
21+
abstract URL toUrl(File file) throws MalformedURLException;
2222

2323
abstract File[] listFiles(File directory);
2424

@@ -41,7 +41,7 @@ abstract class FileSystem {
4141
private static class LiveFileSystem extends FileSystem {
4242

4343
@Override
44-
URL toURL(File file) throws MalformedURLException {
44+
URL toUrl(File file) throws MalformedURLException {
4545
return file.toURI().toURL();
4646
}
4747

json-schema-maven-plugin/src/main/java/oracle/kubernetes/json/mojo/JsonSchemaMojo.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import java.util.List;
1313
import java.util.Map;
1414
import java.util.Optional;
15+
1516
import org.apache.maven.plugin.AbstractMojo;
1617
import org.apache.maven.plugin.MojoExecutionException;
1718
import org.apache.maven.plugins.annotations.LifecyclePhase;
@@ -91,7 +92,7 @@ private void addExternalSchemas() throws MojoExecutionException {
9192
if (kubernetesVersion != null) main.setKubernetesVersion(kubernetesVersion);
9293
for (ExternalSchema externalSchema : externalSchemas)
9394
main.defineSchemaUrlAndContents(
94-
externalSchema.getUrl(), externalSchema.getCacheURL(baseDir));
95+
externalSchema.getUrl(), externalSchema.getCacheUrl(baseDir));
9596
} catch (IOException e) {
9697
throw new MojoExecutionException("Unable to define external schema: ", e);
9798
}
@@ -117,12 +118,12 @@ private File getMarkdownFile() {
117118
}
118119

119120
private URL[] toUrls(List<String> paths) {
120-
return paths.stream().map(this::toURL).toArray(URL[]::new);
121+
return paths.stream().map(this::toUrl).toArray(URL[]::new);
121122
}
122123

123-
private URL toURL(String classpathElement) {
124+
private URL toUrl(String classpathElement) {
124125
try {
125-
return fileSystem.toURL(new File(classpathElement));
126+
return fileSystem.toUrl(new File(classpathElement));
126127
} catch (MalformedURLException e) {
127128
throw new UncheckedMalformedUrlException(e);
128129
}

json-schema-maven-plugin/src/main/java/oracle/kubernetes/json/mojo/Main.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import java.io.IOException;
99
import java.net.URL;
1010
import java.util.Map;
11+
1112
import org.apache.maven.plugin.MojoExecutionException;
1213

1314
public interface Main {
@@ -23,11 +24,11 @@ public interface Main {
2324
/**
2425
* Defines an external schema URL to be used for object definitions.
2526
*
26-
* @param schemaURL the schema URL
27+
* @param schemaUrl the schema URL
2728
* @param cacheUrl a file url specifying a local cache of the schema
2829
* @throws IOException if there is a problem using the URLs
2930
*/
30-
void defineSchemaUrlAndContents(URL schemaURL, URL cacheUrl) throws IOException;
31+
void defineSchemaUrlAndContents(URL schemaUrl, URL cacheUrl) throws IOException;
3132

3233
/**
3334
* Specifies that deprecated fields should be included when generating a schema. If false, they

json-schema-maven-plugin/src/main/java/oracle/kubernetes/json/mojo/MainImpl.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import java.net.URL;
1111
import java.net.URLClassLoader;
1212
import java.util.Map;
13+
1314
import oracle.kubernetes.json.SchemaGenerator;
1415
import oracle.kubernetes.json.YamlDocGenerator;
1516
import org.apache.maven.plugin.MojoExecutionException;
@@ -51,8 +52,8 @@ public void setKubernetesVersion(String kubernetesVersion) throws IOException {
5152
}
5253

5354
@Override
54-
public void defineSchemaUrlAndContents(URL schemaURL, URL cacheUrl) throws IOException {
55-
generator.addExternalSchema(schemaURL, cacheUrl);
55+
public void defineSchemaUrlAndContents(URL schemaUrl, URL cacheUrl) throws IOException {
56+
generator.addExternalSchema(schemaUrl, cacheUrl);
5657
}
5758

5859
@SuppressWarnings("ResultOfMethodCallIgnored")

json-schema-maven-plugin/src/test/java/oracle/kubernetes/json/mojo/TestFileSystem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void defineURL(File file, URL url) {
7676
}
7777

7878
@Override
79-
URL toURL(File file) throws MalformedURLException {
79+
URL toUrl(File file) throws MalformedURLException {
8080
return urls.get(file);
8181
}
8282

json-schema-maven-plugin/src/test/java/oracle/kubernetes/json/mojo/TestMain.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ public void setKubernetesVersion(String kubernetesVersion) {
9292
}
9393

9494
@Override
95-
public void defineSchemaUrlAndContents(URL schemaURL, URL cacheUrl) {
96-
schemas.put(schemaURL, cacheUrl);
95+
public void defineSchemaUrlAndContents(URL schemaUrl, URL cacheUrl) {
96+
schemas.put(schemaUrl, cacheUrl);
9797
}
9898

9999
@Override

json-schema/src/main/java/oracle/kubernetes/json/EnumClass.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
package oracle.kubernetes.json;
66

7-
import static java.lang.annotation.ElementType.FIELD;
8-
97
import java.lang.annotation.Retention;
108
import java.lang.annotation.RetentionPolicy;
119
import java.lang.annotation.Target;
1210

11+
import static java.lang.annotation.ElementType.FIELD;
12+
1313
/** Specifies an enum class whose values match the permitted values for the field. */
1414
@Retention(RetentionPolicy.RUNTIME)
1515
@Target(FIELD)

json-schema/src/main/java/oracle/kubernetes/json/Pattern.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
package oracle.kubernetes.json;
66

7-
import static java.lang.annotation.ElementType.FIELD;
8-
97
import java.lang.annotation.Retention;
108
import java.lang.annotation.RetentionPolicy;
119
import java.lang.annotation.Target;
1210

11+
import static java.lang.annotation.ElementType.FIELD;
12+
1313
/** Supplies an ECMA 262 regular expression that the field must match. */
1414
@Retention(RetentionPolicy.RUNTIME)
1515
@Target(FIELD)

0 commit comments

Comments
 (0)