From: <cg...@us...> - 2008-10-27 03:08:53
|
Revision: 5515 http://jython.svn.sourceforge.net/jython/?rev=5515&view=rev Author: cgroves Date: 2008-10-27 03:08:48 +0000 (Mon, 27 Oct 2008) Log Message: ----------- Missed this when adding type information to Py.tojava Modified Paths: -------------- trunk/jython/src/org/python/util/PythonInterpreter.java Modified: trunk/jython/src/org/python/util/PythonInterpreter.java =================================================================== --- trunk/jython/src/org/python/util/PythonInterpreter.java 2008-10-26 22:13:05 UTC (rev 5514) +++ trunk/jython/src/org/python/util/PythonInterpreter.java 2008-10-27 03:08:48 UTC (rev 5515) @@ -22,7 +22,7 @@ * Initializes the jython runtime. This should only be called once, and * should be called before any other python objects are created (including a * PythonInterpreter). - * + * * @param preProperties * A set of properties. Typically System.getProperties() is used. * @param postProperties @@ -188,7 +188,7 @@ /** * Get the value of a variable in the local namespace - * + * * @param name * the name of the variable * @return the value of the variable, or null if that name isn't assigned @@ -202,7 +202,7 @@ * as an instance of the given Java class. * <code>interp.get("foo", Object.class)</code> will return the most * appropriate generic Java object. - * + * * @param name * the name of the variable * @param javaclass @@ -210,7 +210,7 @@ * @return the value of the variable as the given class, or null if that * name isn't assigned */ - public Object get(String name, Class javaclass) { + public <T> T get(String name, Class<T> javaclass) { PyObject val = locals.__finditem__(name.intern()); if(val == null) { return null; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |