Skip to content

Commit 1335f4c

Browse files
authored
Update README.md example to use default Validator constructor (#3)
1 parent 2a2ec0a commit 1335f4c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,8 @@ public class Main {
101101
.setDeliveryDate(deliveryDate)
102102
.build();
103103

104-
// Create a Config instance
105-
Config config = Config.newBuilder().build();
106-
// Create a validator object with your Config instance
107-
Validator validator = new Validator(config);
104+
// Create a validator object with the default Configuration
105+
Validator validator = new Validator();
108106

109107
{
110108
// Validate the transaction object using the validator

0 commit comments

Comments
 (0)