Skip to content

Commit 75e2ba3

Browse files
committed
#354 - Polishing.
Add author tags. Reformat code. Original pull request: #355.
1 parent bf19cb3 commit 75e2ba3

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/main/java/org/springframework/data/r2dbc/core/DefaultReactiveDataAccessStrategy.java

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
* Default {@link ReactiveDataAccessStrategy} implementation.
5555
*
5656
* @author Mark Paluch
57+
* @author Louis Morgan
5758
*/
5859
public class DefaultReactiveDataAccessStrategy implements ReactiveDataAccessStrategy {
5960

src/test/java/org/springframework/data/r2dbc/core/ReactiveDataAccessStrategyTestSupport.java

+7-6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
* Abstract base class for {@link R2dbcDialect}-aware {@link DefaultReactiveDataAccessStrategy} tests.
4646
*
4747
* @author Mark Paluch
48+
* @author Louis Morgan
4849
*/
4950
public abstract class ReactiveDataAccessStrategyTestSupport {
5051

@@ -180,12 +181,14 @@ public void shouldReadAndWriteBinary() {
180181

181182
@Test // gh-354
182183
public void shouldNotWriteReadOnlyFields() {
184+
183185
TypeWithReadOnlyFields toSave = new TypeWithReadOnlyFields();
186+
184187
toSave.setWritableField("writable");
185188
toSave.setReadOnlyField("readonly");
186189
toSave.setReadOnlyArrayField("readonly_array".getBytes());
187-
assertThat(getStrategy().getOutboundRow(toSave))
188-
.containsOnlyKeys(SqlIdentifier.unquoted("writable_field"));
190+
191+
assertThat(getStrategy().getOutboundRow(toSave)).containsOnlyKeys(SqlIdentifier.unquoted("writable_field"));
189192
}
190193

191194
private <T> void testType(BiConsumer<PrimitiveTypes, T> setter, Function<PrimitiveTypes, T> getter, T testValue,
@@ -250,9 +253,7 @@ static class PrimitiveTypes {
250253
@Data
251254
static class TypeWithReadOnlyFields {
252255
String writableField;
253-
@ReadOnlyProperty
254-
String readOnlyField;
255-
@ReadOnlyProperty
256-
byte[] readOnlyArrayField;
256+
@ReadOnlyProperty String readOnlyField;
257+
@ReadOnlyProperty byte[] readOnlyArrayField;
257258
}
258259
}

0 commit comments

Comments
 (0)