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