diff --git a/jetty-http2/http2-http-client-transport/src/test/java/org/eclipse/jetty/http2/client/http/MultiplexedConnectionPoolTest.java b/jetty-http2/http2-http-client-transport/src/test/java/org/eclipse/jetty/http2/client/http/MultiplexedConnectionPoolTest.java index a68cbd7cc9e..08d4d702a74 100644 --- a/jetty-http2/http2-http-client-transport/src/test/java/org/eclipse/jetty/http2/client/http/MultiplexedConnectionPoolTest.java +++ b/jetty-http2/http2-http-client-transport/src/test/java/org/eclipse/jetty/http2/client/http/MultiplexedConnectionPoolTest.java @@ -1,19 +1,14 @@ // -// ======================================================================== -// Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others. -// ------------------------------------------------------------------------ -// All rights reserved. This program and the accompanying materials -// are made available under the terms of the Eclipse Public License v1.0 -// and Apache License v2.0 which accompanies this distribution. +// ======================================================================== +// Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others. // -// The Eclipse Public License is available at -// http://www.eclipse.org/legal/epl-v10.html +// This program and the accompanying materials are made available under the +// terms of the Eclipse Public License v. 2.0 which is available at +// https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 +// which is available at https://www.apache.org/licenses/LICENSE-2.0. // -// The Apache License v2.0 is available at -// http://www.opensource.org/licenses/apache2.0.php -// -// You may elect to redistribute this code under either of these licenses. -// ======================================================================== +// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 +// ======================================================================== // package org.eclipse.jetty.http2.client.http; diff --git a/jetty-util/src/test/java/org/eclipse/jetty/util/PoolTest.java b/jetty-util/src/test/java/org/eclipse/jetty/util/PoolTest.java index 4d5b6615288..ebdf1ad0bc7 100644 --- a/jetty-util/src/test/java/org/eclipse/jetty/util/PoolTest.java +++ b/jetty-util/src/test/java/org/eclipse/jetty/util/PoolTest.java @@ -224,7 +224,7 @@ public class PoolTest Pool pool = factory.getPool(2); // Reserve an entry - Pool.Entry e1 = pool.reserve(); + Pool.Entry e1 = pool.reserve(-1); assertThat(pool.size(), is(1)); assertThat(pool.getReservedCount(), is(1)); assertThat(pool.getIdleCount(), is(0)); @@ -245,7 +245,7 @@ public class PoolTest assertThat(pool.getInUseCount(), is(0)); // Reserve another entry - Pool.Entry e2 = pool.reserve(); + Pool.Entry e2 = pool.reserve(-1); assertThat(pool.size(), is(2)); assertThat(pool.getReservedCount(), is(1)); assertThat(pool.getIdleCount(), is(1)); @@ -259,7 +259,7 @@ public class PoolTest assertThat(pool.getInUseCount(), is(0)); // Reserve another entry - Pool.Entry e3 = pool.reserve(); + Pool.Entry e3 = pool.reserve(-1); assertThat(pool.size(), is(2)); assertThat(pool.getReservedCount(), is(1)); assertThat(pool.getIdleCount(), is(1));