aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/example/threadsafe.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/jdbc/example/threadsafe.java')
-rw-r--r--src/interfaces/jdbc/example/threadsafe.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/interfaces/jdbc/example/threadsafe.java b/src/interfaces/jdbc/example/threadsafe.java
index c35570a4c2a..cb6c0d03f2f 100644
--- a/src/interfaces/jdbc/example/threadsafe.java
+++ b/src/interfaces/jdbc/example/threadsafe.java
@@ -2,7 +2,6 @@ package example;
import java.io.*;
import java.sql.*;
-import java.text.*;
// rare in user code, but we use the LargeObject API in this test
import org.postgresql.largeobject.*;
@@ -106,7 +105,7 @@ public class threadsafe
// will yield as long as either of the children are still running
System.out.println("Waiting for threads to run");
while (thread1.isAlive() || thread2.isAlive() || thread3.isAlive())
- thread0.yield();
+ Thread.yield();
}
finally
{