mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-11 05:59:52 +00:00
8298618: Typo in JPEGImageReader and JPEGImageWriter
Reviewed-by: iris, jdv, abhiscxk
This commit is contained in:
parent
173778e2fe
commit
3b1142a280
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user