#vulnerable code 
                                public static Database create(int maxSize) {
        return Database
                .from(new NonBlockingConnectionPool(connectionProvider(nextUrl()), maxSize, 1000));
    } 
                            #location 3 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public static Database create(int maxSize) {
        return Database.from(Pools.nonBlocking().connectionProvider(connectionProvider(nextUrl()))
                .maxPoolSize(maxSize).build());
    }