File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed
blocking-service/src/main/java/com/example
reactive-service/src/main/java/com/example/reactiveservice Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ public class Word {
16
16
private String text ;
17
17
18
18
@ Transient
19
- private String data ;
19
+ private String computedData ;
20
20
21
21
}
Original file line number Diff line number Diff line change @@ -24,9 +24,8 @@ public List<Word> findWords(@RequestParam int limit) {
24
24
}
25
25
26
26
private Word fillData (Word word ) {
27
- BCryptPasswordEncoder encoder = new BCryptPasswordEncoder ();
28
- String encoded = encoder .encode (word .getText ());
29
- word .setData (encoded );
27
+ String encoded = new BCryptPasswordEncoder ().encode (word .getText ());
28
+ word .setComputedData (encoded );
30
29
return word ;
31
30
}
32
31
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ public class Word {
11
11
12
12
private String text ;
13
13
14
- private String data ;
14
+ private String computedData ;
15
15
16
16
}
Original file line number Diff line number Diff line change @@ -22,9 +22,8 @@ public Flux<Word> findWords(@RequestParam int limit) {
22
22
}
23
23
24
24
private Word fillData (Word word ) {
25
- BCryptPasswordEncoder encoder = new BCryptPasswordEncoder ();
26
- String encoded = encoder .encode (word .getText ());
27
- word .setData (encoded );
25
+ String encoded = new BCryptPasswordEncoder ().encode (word .getText ());
26
+ word .setComputedData (encoded );
28
27
return word ;
29
28
}
30
29
You can’t perform that action at this time.
0 commit comments