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

code in our own ...concurrent.locks.
This commit is contained in:
Gary Gregory 2020-06-26 14:35:14 -04:00
parent 46a081d69c
commit bb017e0d4d
4 changed files with 6 additions and 5 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.lock;
package org.apache.commons.lang3.concurrent.locks;
import java.util.Objects;
import java.util.concurrent.locks.StampedLock;

View File

@ -17,8 +17,8 @@
/**
* <p>
* Provides support classes for multi-threaded programming. This package is intended to be an extension to
* {@link java.util.concurrent.lock}.
* {@link java.util.concurrent.locks}.
* </p>
* @since 3.11
*/
package org.apache.commons.lang3.concurrent.lock;
package org.apache.commons.lang3.concurrent.locks;

View File

@ -28,6 +28,7 @@
import java.lang.reflect.Modifier;
import java.util.Random;
import java.util.stream.IntStream;
import org.junit.jupiter.api.Test;
/**

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.lock;
package org.apache.commons.lang3.concurrent.locks;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
@ -24,7 +24,7 @@
import java.util.function.LongConsumer;
import org.apache.commons.lang3.concurrent.lock.Locks.Lock;
import org.apache.commons.lang3.concurrent.locks.Locks.Lock;
import org.apache.commons.lang3.function.FailableConsumer;
import org.junit.jupiter.api.Test;