summaryrefslogtreecommitdiff
path: root/java/awt/EventDispatchThread.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/awt/EventDispatchThread.java')
-rw-r--r--java/awt/EventDispatchThread.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/awt/EventDispatchThread.java b/java/awt/EventDispatchThread.java
index 097cc001b..0803ff675 100644
--- a/java/awt/EventDispatchThread.java
+++ b/java/awt/EventDispatchThread.java
@@ -43,14 +43,14 @@ package java.awt;
*/
class EventDispatchThread extends Thread
{
- private static int dispatchThreadNum = 1;
+ private static int dispatchThreadNum;
private EventQueue queue;
EventDispatchThread(EventQueue queue)
{
super();
- setName("AWT-EventQueue-" + dispatchThreadNum++);
+ setName("AWT-EventQueue-" + ++dispatchThreadNum);
this.queue = queue;
setPriority(NORM_PRIORITY + 1);
start();