r2dbc / r2dbc-pool

Connection Pooling for Reactive Relational Database Connectivity
https://r2dbc.io
Apache License 2.0
332 stars 55 forks source link

Remove boilerplate code #91

Closed manijangid78 closed 3 years ago

manijangid78 commented 3 years ago

from line 245 :

 if (clock == null) {
                throw new IllegalArgumentException("Clock must not be null");
       }
       this.clock=clock;

replace with

   `this.clock = Assert.requireNonNull(clock,"Clock must not be null");`

I am beginner to contribute opensource.

mp911de commented 3 years ago

Thank you for your contribution. That's merged and backported now.