JRE locks live in a ...concurrent.lock package so let's put our lock

code in our own ...concurrent.lock
This commit is contained in:
Gary Gregory 2020-06-26 09:04:17 -04:00
parent eee51821a8
commit d18fb1abdf
2 changed files with 4 additions and 3 deletions

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.lang3.concurrent;
package org.apache.commons.lang3.concurrent.lock;
import java.util.Objects;
import java.util.concurrent.locks.StampedLock;

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.lang3.concurrent;
package org.apache.commons.lang3.concurrent.lock;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
@ -24,7 +24,8 @@ import static org.junit.jupiter.api.Assertions.fail;
import java.util.function.LongConsumer;
import org.apache.commons.lang3.concurrent.Locks.Lock;
import org.apache.commons.lang3.concurrent.lock.Locks;
import org.apache.commons.lang3.concurrent.lock.Locks.Lock;
import org.apache.commons.lang3.function.FailableConsumer;
import org.junit.jupiter.api.Test;