diff options
author | Steven Knight <knight@baldmt.com> | 2010-01-01 08:48:06 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-01-01 08:48:06 (GMT) |
commit | 49741b1a5d109c8bd131328441d322b2b040a525 (patch) | |
tree | 2d18a008bd977ac4cc5f43814556be45be5e3e89 /test | |
parent | f02e5c23e2a26e0ffd5cc7e8b830f8f48778227a (diff) | |
download | SCons-49741b1a5d109c8bd131328441d322b2b040a525.zip SCons-49741b1a5d109c8bd131328441d322b2b040a525.tar.gz SCons-49741b1a5d109c8bd131328441d322b2b040a525.tar.bz2 |
Remove unnecessary imports to avoid javac warnings.
Add a necessary serialVersionUID.
Diffstat (limited to 'test')
-rw-r--r-- | test/Java/multi-step.py | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/test/Java/multi-step.py b/test/Java/multi-step.py index 19b8167..a8efcd4 100644 --- a/test/Java/multi-step.py +++ b/test/Java/multi-step.py @@ -136,11 +136,12 @@ import java.awt.*; import java.applet.*; public class Hello extends Applet { - public void paint(Graphics g) { - g.drawString("Hello from SCons signed applet",250,150); - } + static final long serialVersionUID = 0; + public void paint(Graphics g) + { + g.drawString("Hello from SCons signed applet",250,150); } - +} """) test.write(['src', 'javah', 'MyID.cc'], """\ @@ -152,10 +153,6 @@ int getMyID() """) test.write(['src', 'javah', 'MyID.java'], """\ -import java.util.*; -import java.io.IOException; -import java.lang.reflect.*; - public class MyID { static private long current = System.currentTimeMillis(); @@ -180,8 +177,6 @@ denv.SharedLibrary('myid','MyID.cc') test.write(['src', 'jni', 'A.java'], """\ package web.jni; -import web.jni.*; - public class A { class C @@ -477,9 +472,6 @@ public class Bool { test.write(['src', 'server', 'JavaSource', 'com', 'gnu', 'scons', 'web', 'tools', 'StringUtils.java'], """\ package com.gnu.scons.web.tools; -import java.util.Iterator; -import java.util.Map; - public class StringUtils { public static String toPercent( String value ) |