#vulnerable code 
                                public static Database from(String url, int maxPoolSize) {
        return Database.from(new NonBlockingConnectionPool(Util.connectionProvider(url), maxPoolSize, 1000));
    } 
                            #location 2 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public static Database from(String url, int maxPoolSize) {
        return Database.from( //
                Pools.nonBlocking() //
                        .url(url) //
                        .maxPoolSize(maxPoolSize) //
                        .build());
    }