Skip to content

Commit acbcb6b

Browse files
russgoldrjeberhard
authored andcommitted
Handle line-length and indentation errors
1 parent ccb997c commit acbcb6b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

operator/src/main/java/oracle/kubernetes/weblogic/domain/model/MonitoringExporterConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private static void writeArray(JsonWriter out, String name, @NotNull String [] v
170170
out.endArray();
171171
}
172172

173-
private void writeOptionalStringValues(JsonWriter out, @Nullable Map<String, String[]> stringValues) throws IOException {
173+
private void writeOptionalStringValues(JsonWriter out, Map<String, String[]> stringValues) throws IOException {
174174
if (stringValues != null && !stringValues.isEmpty()) {
175175
out.name("stringValues");
176176
out.beginObject();
@@ -181,7 +181,7 @@ private void writeOptionalStringValues(JsonWriter out, @Nullable Map<String, Str
181181
}
182182
}
183183

184-
@Override
184+
@Override
185185
public MonitoringExporterConfiguration read(JsonReader in) throws IOException {
186186
MonitoringExporterConfiguration configuration = new MonitoringExporterConfiguration();
187187
in.beginObject();

operator/src/test/java/oracle/kubernetes/weblogic/domain/model/MonitoringExporterConfigurationTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ void deserializeFromJson() {
3838
final String jsonString = configuration.asJsonString();
3939
assertThat(jsonString, hasJsonPath("$.metricsNameSnakeCase", equalTo(true)));
4040
assertThat(jsonString, hasJsonPath("$.queries[0].applicationRuntimes.key", equalTo("name")));
41-
assertThat(jsonString, hasJsonPath("$.queries[0].applicationRuntimes.componentRuntimes.type", equalTo("WebAppComponentRuntime")));
41+
assertThat(jsonString, hasJsonPath("$.queries[0].applicationRuntimes.componentRuntimes.type",
42+
equalTo("WebAppComponentRuntime")));
4243
assertThat(configuration.matchesYaml(CONFIG), is(true));
4344
}
4445

0 commit comments

Comments
 (0)