Skip to content

Commit cf3a363

Browse files
committed
Code formatting.
1 parent 4c2a87b commit cf3a363

File tree

7 files changed

+26
-15
lines changed

7 files changed

+26
-15
lines changed

.idea/codeStyles/Project.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.junie/guidelines.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ sd-kotlin-spring-talks/
4545
- AssertJ is used for fluent assertions
4646
- Mockk is available for mocking
4747
- Prefer plain Kotlin mocks
48-
- Use Gradle [test fixtures](https://docs.gradle.org/current/userguide/java_testing.html#sec:java_test_fixtures) for shared test doubles and utilities
48+
- Use
49+
Gradle [test fixtures](https://docs.gradle.org/current/userguide/java_testing.html#sec:java_test_fixtures)
50+
for shared test doubles and utilities
4951
- Tests are organized into unit (`src/test`) and integration (`src/it`) suites
5052
- JUnit 5's `@DynamicTest` feature is used for test parameterization
5153
- Spring's `@SpringBootTest` is used for integration tests

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@ using [Spring](https://spring.io/projects/spring-framework) and
1010

1111
## Building
1212

13-
The project is built with [Gradle](https://docs.gradle.org/current/userguide/userguide.html) and uses the [Gradle Wrapper](https://docs.gradle.org/current/userguide/gradle_wrapper.html#gradle_wrapper_reference), which can be invoked from the project root once the [Gradle prerequisites](https://docs.gradle.org/current/userguide/installation.html#sec:prerequisites) are met.
13+
The project is built
14+
with [Gradle](https://docs.gradle.org/current/userguide/userguide.html) and uses
15+
the [Gradle Wrapper](https://docs.gradle.org/current/userguide/gradle_wrapper.html#gradle_wrapper_reference),
16+
which can be invoked from the project root once
17+
the [Gradle prerequisites](https://docs.gradle.org/current/userguide/installation.html#sec:prerequisites)
18+
are met.
1419

15-
The project currently requires Gradle to be invoked with a Java Development Kit (JDK) version 21 or higher.
20+
The project currently requires Gradle to be invoked with a Java Development
21+
Kit (JDK) version 21 or higher.
1622

1723
The primary build task is `build`.

subprojects/child-context/domain-service/src/main/kotlin/org/sdkotlin/springdemo/childcontext/domainservice/ChildContextService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ interface ChildContextService {
2525
fun get(childContextId: String): ConfigurableApplicationContext?
2626

2727
fun removeAndCloseIfPresent(childContextId: String):
28-
ConfigurableApplicationContext?
28+
ConfigurableApplicationContext?
2929
}

subprojects/child-context/domain-service/src/main/kotlin/org/sdkotlin/springdemo/childcontext/domainservice/ConcurrentMapChildContextService.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ConcurrentMapChildContextService(
2121
}
2222

2323
private val childContextsMap:
24-
ConcurrentMap<String, ConfigurableApplicationContext> =
24+
ConcurrentMap<String, ConfigurableApplicationContext> =
2525
ConcurrentHashMap()
2626

2727
override fun createIfAbsent(
@@ -51,16 +51,16 @@ class ConcurrentMapChildContextService(
5151

5252
val springApplicationBuilder =
5353
SpringApplicationBuilder(*sourceJavaClasses)
54-
.parent(parentContext)
55-
.properties(
56-
mapOf(CHILD_CONTEXT_ID_PROPERTY_NAME to childContextId)
57-
)
54+
.parent(parentContext)
55+
.properties(
56+
mapOf(CHILD_CONTEXT_ID_PROPERTY_NAME to childContextId)
57+
)
5858

5959
springApplicationBuilderConfigurer(springApplicationBuilder)
6060

6161
springApplicationBuilder
62-
.build()
63-
.run()
62+
.build()
63+
.run()
6464
}
6565
}
6666

@@ -71,7 +71,7 @@ class ConcurrentMapChildContextService(
7171
childContextsMap[childContextId]
7272

7373
override fun removeAndCloseIfPresent(childContextId: String):
74-
ConfigurableApplicationContext? {
74+
ConfigurableApplicationContext? {
7575

7676
val applicationContext = childContextsMap.remove(childContextId)
7777

subprojects/time-service/src/it/kotlin/org/sdkotlin/springdemo/timeservice/conf/TimeServiceConfigurationIT.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ internal class TimeServiceConfigurationIT {
2929
timeServer: TimeServer?
3030
) {
3131
assertThat(timeServer)
32-
.describedAs("timeServer")
33-
.isNotNull
32+
.describedAs("timeServer")
33+
.isNotNull
3434
}
3535
}

subprojects/time-service/src/main/kotlin/org/sdkotlin/springdemo/timeservice/conf/TimeServiceConfiguration.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ class TimeServiceConfiguration {
1414
timeClients: List<TimeClient>,
1515
applicationCoroutineScope: CoroutineScope,
1616
) = TimeServer(timeClients, applicationCoroutineScope)
17-
.also { it.init() }
17+
.also { it.init() }
1818
}

0 commit comments

Comments
 (0)