jakarta-bsf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r432164 - in /jakarta/bsf/trunk: src/org/apache/bsf/engines/java/ src/org/apache/bsf/engines/netrexx/ src/org/apache/bsf/util/ src/org/apache/bsf/util/type/ test/org/apache/bsf/util/
Date Thu, 17 Aug 2006 06:11:06 GMT
Author: sanka
Date: Wed Aug 16 23:11:05 2006
New Revision: 432164

URL: http://svn.apache.org/viewvc?rev=432164&view=rev
Log:
Removing causes that generated some of the warnings in compilation

Modified:
    jakarta/bsf/trunk/src/org/apache/bsf/engines/java/JavaEngine.java
    jakarta/bsf/trunk/src/org/apache/bsf/engines/netrexx/NetRexxEngine.java
    jakarta/bsf/trunk/src/org/apache/bsf/util/EngineUtils.java
    jakarta/bsf/trunk/src/org/apache/bsf/util/ReflectionUtils.java
    jakarta/bsf/trunk/src/org/apache/bsf/util/type/TypeConvertorRegistry.java
    jakarta/bsf/trunk/test/org/apache/bsf/util/EngineUtilsTest.java

Modified: jakarta/bsf/trunk/src/org/apache/bsf/engines/java/JavaEngine.java
URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/src/org/apache/bsf/engines/java/JavaEngine.java?rev=432164&r1=432163&r2=432164&view=diff
==============================================================================
--- jakarta/bsf/trunk/src/org/apache/bsf/engines/java/JavaEngine.java (original)
+++ jakarta/bsf/trunk/src/org/apache/bsf/engines/java/JavaEngine.java Wed Aug 16 23:11:05
2006
@@ -84,7 +84,6 @@
 public class JavaEngine extends BSFEngineImpl
 {
   Class javaclass=null;
-  private boolean bsfHandleCreated = false;
   static Hashtable codeToClass=new Hashtable();
   static String serializeCompilation="";
   static String placeholder="$$CLASSNAME$$";

Modified: jakarta/bsf/trunk/src/org/apache/bsf/engines/netrexx/NetRexxEngine.java
URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/src/org/apache/bsf/engines/netrexx/NetRexxEngine.java?rev=432164&r1=432163&r2=432164&view=diff
==============================================================================
--- jakarta/bsf/trunk/src/org/apache/bsf/engines/netrexx/NetRexxEngine.java (original)
+++ jakarta/bsf/trunk/src/org/apache/bsf/engines/netrexx/NetRexxEngine.java Wed Aug 16 23:11:05
2006
@@ -82,7 +82,6 @@
 public class NetRexxEngine extends BSFEngineImpl
 {
 	BSFFunctions mgrfuncs;
-	private boolean bsfHandleCreated = false;
 	static Hashtable codeToClass=new Hashtable();
 	static String serializeCompilation="";
 	static String placeholder="$$CLASSNAME$$";

Modified: jakarta/bsf/trunk/src/org/apache/bsf/util/EngineUtils.java
URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/src/org/apache/bsf/util/EngineUtils.java?rev=432164&r1=432163&r2=432164&view=diff
==============================================================================
--- jakarta/bsf/trunk/src/org/apache/bsf/util/EngineUtils.java (original)
+++ jakarta/bsf/trunk/src/org/apache/bsf/util/EngineUtils.java Wed Aug 16 23:11:05 2006
@@ -43,7 +43,7 @@
         Class mc=Method.class;            // get the "Method" class object
         Class arg[]={boolean.class};      // define an array with the primitive "boolean"
pseudo class object
         try {
-            Object o=mc.getMethod("setAccessible", arg ); // is this method available?
+            mc.getMethod("setAccessible", arg ); // is this method available?
             bMethodHasSetAccessible=true; // no exception, hence method exists
         }
         catch (Exception e)

Modified: jakarta/bsf/trunk/src/org/apache/bsf/util/ReflectionUtils.java
URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/src/org/apache/bsf/util/ReflectionUtils.java?rev=432164&r1=432163&r2=432164&view=diff
==============================================================================
--- jakarta/bsf/trunk/src/org/apache/bsf/util/ReflectionUtils.java (original)
+++ jakarta/bsf/trunk/src/org/apache/bsf/util/ReflectionUtils.java Wed Aug 16 23:11:05 2006
@@ -371,7 +371,6 @@
 	// get write method and type of property
 	Method wm;
 	Class propType;
-	Object[] args;
 	if (index != null) {
 	  // if index != null, then property is indexed - pd better be so too
 	  if (!(pd instanceof IndexedPropertyDescriptor)) {

Modified: jakarta/bsf/trunk/src/org/apache/bsf/util/type/TypeConvertorRegistry.java
URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/src/org/apache/bsf/util/type/TypeConvertorRegistry.java?rev=432164&r1=432163&r2=432164&view=diff
==============================================================================
--- jakarta/bsf/trunk/src/org/apache/bsf/util/type/TypeConvertorRegistry.java (original)
+++ jakarta/bsf/trunk/src/org/apache/bsf/util/type/TypeConvertorRegistry.java Wed Aug 16 23:11:05
2006
@@ -181,7 +181,6 @@
 	String key = from.getName () + " -> " + to.getName ();
 	TypeConvertor tc = (TypeConvertor) reg.get (key);
 	if (tc == null) {
-	  Class objectClass = Object.class;
 	  if (from != void.class
 		  && from != Void.class
 		  && to == String.class) {

Modified: jakarta/bsf/trunk/test/org/apache/bsf/util/EngineUtilsTest.java
URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/test/org/apache/bsf/util/EngineUtilsTest.java?rev=432164&r1=432163&r2=432164&view=diff
==============================================================================
--- jakarta/bsf/trunk/test/org/apache/bsf/util/EngineUtilsTest.java (original)
+++ jakarta/bsf/trunk/test/org/apache/bsf/util/EngineUtilsTest.java Wed Aug 16 23:11:05 2006
@@ -143,7 +143,7 @@
         // try to create a bean by passing a wrong string ...
         // should throw a BSFException
             try {
-                Object obj1 = EngineUtils.createBean("nonExsitentClass",null);
+                EngineUtils.createBean("nonExsitentClass",null);
                 fail();
             }
             catch (BSFException bsfe) {



---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-dev-help@jakarta.apache.org


Mime
View raw message