8298618: Typo in JPEGImageReader and JPEGImageWriter

Reviewed-by: iris, jdv, abhiscxk
This commit is contained in:
Prasanta Sadhukhan 2022-12-13 10:21:57 +00:00
parent 173778e2fe
commit 3b1142a280
2 changed files with 2 additions and 2 deletions

View File

@ -1824,7 +1824,7 @@ public class JPEGImageReader extends ImageReader {
Thread currThread = Thread.currentThread();
if (theThread == null || theThread != currThread) {
throw new IllegalStateException("Attempt to clear thread lock " +
" form wrong thread." +
" from wrong thread." +
" Locked thread: " + theThread +
"; current thread: " + currThread);
}

View File

@ -1821,7 +1821,7 @@ public class JPEGImageWriter extends ImageWriter {
private synchronized void clearThreadLock() {
Thread currThread = Thread.currentThread();
if (theThread == null || theThread != currThread) {
throw new IllegalStateException("Attempt to clear thread lock form wrong thread. " +
throw new IllegalStateException("Attempt to clear thread lock from wrong thread. " +
"Locked thread: " + theThread +
"; current thread: " + currThread);
}