From: <pj...@us...> - 2009-04-06 01:03:49
|
Revision: 6171 http://jython.svn.sourceforge.net/jython/?rev=6171&view=rev Author: pjenvey Date: 2009-04-06 01:03:47 +0000 (Mon, 06 Apr 2009) Log Message: ----------- make exposed methods final Modified Paths: -------------- trunk/jython/src/org/python/core/PyClass.java trunk/jython/src/org/python/core/PyType.java Modified: trunk/jython/src/org/python/core/PyClass.java =================================================================== --- trunk/jython/src/org/python/core/PyClass.java 2009-04-05 23:21:56 UTC (rev 6170) +++ trunk/jython/src/org/python/core/PyClass.java 2009-04-06 01:03:47 UTC (rev 6171) @@ -149,8 +149,12 @@ } @Override + public PyObject __call__(PyObject[] args, String[] keywords) { + return classobj___call__(args, keywords); + } + @ExposedMethod - public PyObject __call__(PyObject[] args, String[] keywords) { + final PyObject classobj___call__(PyObject[] args, String[] keywords) { PyInstance inst; if (__del__ == null) { inst = new PyInstance(this); Modified: trunk/jython/src/org/python/core/PyType.java =================================================================== --- trunk/jython/src/org/python/core/PyType.java 2009-04-05 23:21:56 UTC (rev 6170) +++ trunk/jython/src/org/python/core/PyType.java 2009-04-06 01:03:47 UTC (rev 6171) @@ -1313,7 +1313,7 @@ } @ExposedMethod(names = "__repr__", doc = BuiltinDocs.type___repr___doc) - public String type_toString() { + final String type_toString() { String kind; if (!builtin) { kind = "class"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |