Skip to content

Commit c6d0ca1

Browse files
Grudi RadevGrudi Radev
authored andcommitted
Fix code formatting for custom Couchbase Data type key
1 parent d939cf6 commit c6d0ca1

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/couchbase/CouchbaseDataProperties.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ public class CouchbaseDataProperties {
4141
private Consistency consistency = Consistency.READ_YOUR_OWN_WRITES;
4242

4343
/**
44-
* Name of the field that will store the type information for complex types when using MappingCouchbaseConverter.
44+
* Name of the field that will store the type information for complex types when using
45+
* MappingCouchbaseConverter.
4546
*/
4647
private String typeKey = DefaultCouchbaseTypeMapper.DEFAULT_TYPE_KEY;
4748

@@ -68,4 +69,5 @@ public String getTypeKey() {
6869
public void setTypeKey(String typeKey) {
6970
this.typeKey = typeKey;
7071
}
72+
7173
}

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/couchbase/SpringBootCouchbaseDataConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,5 @@ public IndexManager indexManager() {
101101
public String typeKey() {
102102
return this.properties.getTypeKey();
103103
}
104+
104105
}

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/couchbase/CouchbaseDataAutoConfigurationTests.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,16 @@ void customConversions() {
131131
@Test
132132
void typeKeyIsClassByDefault() {
133133
load(CouchbaseTestConfigurer.class);
134-
AbstractCouchbaseDataConfiguration couchbaseDataConfiguration = this.context.getBean(AbstractCouchbaseDataConfiguration.class);
134+
AbstractCouchbaseDataConfiguration couchbaseDataConfiguration = this.context
135+
.getBean(AbstractCouchbaseDataConfiguration.class);
135136
assertThat(couchbaseDataConfiguration.typeKey()).isEqualTo(DefaultCouchbaseTypeMapper.DEFAULT_TYPE_KEY);
136137
}
137138

138139
@Test
139140
void customTypeKey() {
140141
load(CouchbaseTestConfigurer.class, "spring.data.couchbase.type-key=custom");
141-
AbstractCouchbaseDataConfiguration couchbaseDataConfiguration = this.context.getBean(AbstractCouchbaseDataConfiguration.class);
142+
AbstractCouchbaseDataConfiguration couchbaseDataConfiguration = this.context
143+
.getBean(AbstractCouchbaseDataConfiguration.class);
142144
assertThat(couchbaseDataConfiguration.typeKey()).isEqualTo("custom");
143145
}
144146

0 commit comments

Comments
 (0)