Remove changes to 001-HelloWorld
The test 001-HelloWorld was turned into a copy of test 170 a while
ago. This returns test 001-HelloWorld to its original state as a pure
hello-world program.
Partial revert of commit 976b298a4e
Test: ./test.py --host -j50
Change-Id: I20b021ca54655cc84f4fd27b2d145c3054bbb8f5
diff --git a/test/001-HelloWorld/src/Main.java b/test/001-HelloWorld/src/Main.java
index 401e852..1ef6289 100644
--- a/test/001-HelloWorld/src/Main.java
+++ b/test/001-HelloWorld/src/Main.java
@@ -14,37 +14,8 @@
* limitations under the License.
*/
-import java.util.concurrent.*;
-
-interface I {
-}
-
-class A implements I {
- static int x = (int)(10*Math.random()); // Suppress initialization.
-}
-
public class Main {
- public static void main(String[] args) throws Exception {
-
- final CountDownLatch first = new CountDownLatch(1);
- final CountDownLatch second = new CountDownLatch(1);
-
- new Thread(new Runnable() {
- public void run() {
- try {
- synchronized(I.class) {
- first.countDown();
- second.await();
- }
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }).start();
-
- first.await();
- new A();
- second.countDown();
- System.out.println("Hello, world!");
+ public static void main(String[] args) {
+ System.out.println("Hello, world!");
}
}