Skip to content

Commit 3b1142a

Browse files
committed
8298618: Typo in JPEGImageReader and JPEGImageWriter
Reviewed-by: iris, jdv, abhiscxk
1 parent 173778e commit 3b1142a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1824,7 +1824,7 @@ private synchronized void clearThreadLock() {
18241824
Thread currThread = Thread.currentThread();
18251825
if (theThread == null || theThread != currThread) {
18261826
throw new IllegalStateException("Attempt to clear thread lock " +
1827-
" form wrong thread." +
1827+
" from wrong thread." +
18281828
" Locked thread: " + theThread +
18291829
"; current thread: " + currThread);
18301830
}

src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1821,7 +1821,7 @@ private synchronized void setThreadLock() {
18211821
private synchronized void clearThreadLock() {
18221822
Thread currThread = Thread.currentThread();
18231823
if (theThread == null || theThread != currThread) {
1824-
throw new IllegalStateException("Attempt to clear thread lock form wrong thread. " +
1824+
throw new IllegalStateException("Attempt to clear thread lock from wrong thread. " +
18251825
"Locked thread: " + theThread +
18261826
"; current thread: " + currThread);
18271827
}

0 commit comments

Comments
 (0)