From 2b4e2512530a5d0a12e92071eb2e3198722dcd6b Mon Sep 17 00:00:00 2001 From: jhugunin Date: Fri, 23 Jan 2004 20:38:34 +0000 Subject: [PATCH] Fix to stop leaving 'foo' files around in the top of tests after running the suite. --- tests/new/MissingTypeInDeclareParents.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/new/MissingTypeInDeclareParents.java b/tests/new/MissingTypeInDeclareParents.java index a2fd4f619..7f1e18014 100644 --- a/tests/new/MissingTypeInDeclareParents.java +++ b/tests/new/MissingTypeInDeclareParents.java @@ -7,8 +7,8 @@ import java.io.*; public class MissingTypeInDeclareParents { public static void main(String[] args) throws Exception { - FileWriter fr = new FileWriter("foo"); - fr.close(); + String s = "f" + "oo"; + int x = s.indexOf("o"); Tester.check(true, "Kilroy was here"); } } @@ -17,5 +17,5 @@ class C { } aspect A { /** Xlint warning expected where FileWriter is outside code controlled by implementation */ - declare parents : FileWriter extends Runnable; // CW 20 Xlint warning + declare parents : String extends Runnable; // CW 20 Xlint warning } -- 2.39.5