Print this page
4719 Common patchset for jdk1.7 support preparation

@@ -54,11 +54,11 @@
             Aggregate a;
             Number address;
             String f;
             boolean done = false;
             for (int i = 0; (i < 20) && !done; ++i) {
-                Thread.currentThread().sleep(100);
+                Thread.sleep(100);
                 a = consumer.getAggregate();
                 for (Aggregation agg : a.getAggregations()) {
                     for (Tuple tuple : agg.asMap().keySet()) {
                         address = (Number)tuple.get(0).getValue();
                         if (address instanceof Integer) {

@@ -86,11 +86,11 @@
             consumer.open();
             int pid = consumer.createProcess(cmd);
             consumer.compile(userLookupProgram);
             consumer.enable();
             consumer.go();
-            Thread.currentThread().sleep(500);
+            Thread.sleep(500);
             Aggregate a = consumer.getAggregate();
             Number address;
             String f;
             for (Aggregation agg : a.getAggregations()) {
                 for (Tuple tuple : agg.asMap().keySet()) {