From 457576539ab1a410f1412be76268c6bb3d24e072 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Fri, 1 Jan 2010 08:48:06 +0000 Subject: [PATCH] Remove unnecessary imports to avoid javac warnings. Add a necessary serialVersionUID. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4589 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- test/Java/multi-step.py | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/test/Java/multi-step.py b/test/Java/multi-step.py index 19b81674..a8efcd46 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 ) -- 2.26.2