Revision: ad1f234c2ade
Branch: default
Author: Jussi Malinen <jussi.ao.mali...@gmail.com>
Date: Mon Dec 2 12:27:32 2013 UTC
Log: Use typename instead of str() for checking class
Update issue 1583
Cleanup libdoc checks for class.
http://code.google.com/p/robotframework/source/detail?r=ad1f234c2ade
Modified:
/src/robot/libdocpkg/javabuilder.py
=======================================
--- /src/robot/libdocpkg/javabuilder.py Mon Dec 2 11:06:04 2013 UTC
+++ /src/robot/libdocpkg/javabuilder.py Mon Dec 2 12:27:32 2013 UTC
@@ -87,10 +87,10 @@
return list(reversed(result))
def _is_kwargs(self, param):
- return str(param.type()).startswith('java.util.Map')
+ return param.typeName().startswith('java.util.Map')
def _is_varargs(self, param):
- return str(param.type()).startswith('java.util.List') or
param.type().dimension() == '[]'
+ return param.typeName().startswith('java.util.List') or
param.type().dimension() == '[]'
def _initializers(self, doc):
inits = [self._keyword_doc(init) for init in doc.constructors()]
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.