Skip to content

Commit a85c02a

Browse files
authored
run format (#10445)
1 parent 9d546d3 commit a85c02a

File tree

2 files changed

+8
-6
lines changed
  • airbyte-commons/src/main/java/io/airbyte/commons/json
  • airbyte-scheduler/persistence/src/main/java/io/airbyte/scheduler/persistence/job_tracker

2 files changed

+8
-6
lines changed

airbyte-commons/src/main/java/io/airbyte/commons/json/Jsons.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public static int getIntOrZero(final JsonNode json, final List<String> keys) {
209209
public static Map<String, Object> flatten(final JsonNode node) {
210210
if (node.isObject()) {
211211
final Map<String, Object> output = new HashMap<>();
212-
for (final Iterator<Entry<String, JsonNode>> it = node.fields(); it.hasNext(); ) {
212+
for (final Iterator<Entry<String, JsonNode>> it = node.fields(); it.hasNext();) {
213213
final Entry<String, JsonNode> entry = it.next();
214214
final String field = entry.getKey();
215215
final JsonNode value = entry.getValue();
@@ -239,8 +239,8 @@ public static Map<String, Object> flatten(final JsonNode node) {
239239
/**
240240
* Prepend all keys in subMap with prefix, then merge that map into originalMap.
241241
* <p>
242-
* If subMap contains a null key, then instead it is replaced with prefix. I.e. {null: value} is treated as {prefix: value} when merging into
243-
* originalMap.
242+
* If subMap contains a null key, then instead it is replaced with prefix. I.e. {null: value} is
243+
* treated as {prefix: value} when merging into originalMap.
244244
*/
245245
public static void mergeMaps(final Map<String, Object> originalMap, final String prefix, final Map<String, Object> subMap) {
246246
originalMap.putAll(subMap.entrySet().stream().collect(toMap(
@@ -256,7 +256,8 @@ public static void mergeMaps(final Map<String, Object> originalMap, final String
256256
}
257257

258258
/**
259-
* By the Jackson DefaultPrettyPrinter prints objects with an extra space as follows: {"name" : "airbyte"}. We prefer {"name": "airbyte"}.
259+
* By the Jackson DefaultPrettyPrinter prints objects with an extra space as follows: {"name" :
260+
* "airbyte"}. We prefer {"name": "airbyte"}.
260261
*/
261262
private static class JsonPrettyPrinter extends DefaultPrettyPrinter {
262263

airbyte-scheduler/persistence/src/main/java/io/airbyte/scheduler/persistence/job_tracker/JobTracker.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ private static Map<String, Object> configToMetadata(final JsonNode config, final
234234
final Map<String, Object> output = new HashMap<>();
235235
final JsonNode maybeProperties = schema.get("properties");
236236

237-
// If additionalProperties is not set, or it's a boolean, then there's no schema for additional properties. Use the accept-all schema.
237+
// If additionalProperties is not set, or it's a boolean, then there's no schema for additional
238+
// properties. Use the accept-all schema.
238239
// Otherwise, it's an actual schema.
239240
final JsonNode maybeAdditionalProperties = schema.get("additionalProperties");
240241
final JsonNode additionalPropertiesSchema;
@@ -244,7 +245,7 @@ private static Map<String, Object> configToMetadata(final JsonNode config, final
244245
additionalPropertiesSchema = maybeAdditionalProperties;
245246
}
246247

247-
for (final Iterator<Entry<String, JsonNode>> it = config.fields(); it.hasNext(); ) {
248+
for (final Iterator<Entry<String, JsonNode>> it = config.fields(); it.hasNext();) {
248249
final Entry<String, JsonNode> entry = it.next();
249250
final String field = entry.getKey();
250251
final JsonNode value = entry.getValue();

0 commit comments

Comments
 (0)