Skip to content

Commit 35e1afd

Browse files
committed
iluwatar#107 Tolerant Reader JavaDoc
1 parent 0bda2bd commit 35e1afd

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

tolerant-reader/src/main/java/com/iluwatar/tolerantreader/App.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
* Tolerant Reader is an integration pattern that helps creating robust communication
88
* systems. The idea is to be as tolerant as possible when reading data from another
99
* service. This way, when the communication schema changes, the readers must not break.
10-
*
11-
* In this example we use Java serialization to write representations of RainbowFish
12-
* objects to file. RainbowFish is the initial version which we can easily read and
13-
* write using RainbowFishSerializer methods. RainbowFish then evolves to RainbowFishV2
10+
* <p>
11+
* In this example we use Java serialization to write representations of {@link RainbowFish}
12+
* objects to file. {@link RainbowFish} is the initial version which we can easily read and
13+
* write using {@link RainbowFishSerializer} methods. {@link RainbowFish} then evolves to {@link RainbowFishV2}
1414
* and we again write it to file with a method designed to do just that. However, the reader
1515
* client does not know about the new format and still reads with the method designed for
1616
* V1 schema. Fortunately the reading method has been designed with the Tolerant Reader
17-
* pattern and does not break even though RainbowFishV2 has new fields that are serialized.
17+
* pattern and does not break even though {@link RainbowFishV2} has new fields that are serialized.
1818
*
1919
*/
2020
public class App {

tolerant-reader/src/main/java/com/iluwatar/tolerantreader/RainbowFishSerializer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
/**
1212
*
13-
* RainbowFishSerializer provides methods for reading and writing RainbowFish objects to file.
14-
* Tolerant Reader pattern is implemented here by serializing maps instead of RainbowFish objects.
13+
* RainbowFishSerializer provides methods for reading and writing {@link RainbowFish} objects to file.
14+
* Tolerant Reader pattern is implemented here by serializing maps instead of {@link RainbowFish} objects.
1515
* This way the reader does not break even though new properties are added to the schema.
1616
*
1717
*/

tolerant-reader/src/test/java/com/iluwatar/tolerantreader/AppTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99

1010
import com.iluwatar.tolerantreader.App;
1111

12-
12+
/**
13+
*
14+
* Application test
15+
*
16+
*/
1317
public class AppTest {
1418

1519
@Test

0 commit comments

Comments
 (0)