mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 22:58:13 +00:00
Fixed java's listeners' stubs that return a value
This commit is contained in:
parent
9be191f712
commit
bebcee53d6
2 changed files with 4 additions and 0 deletions
|
|
@ -310,6 +310,7 @@ class JavaTranslator(object):
|
|||
methodDict['return'] = self.translate_type(_method.returnType, isReturn=True)
|
||||
methodDict['return_native'] = self.translate_type(_method.returnType, native=True, isReturn=True)
|
||||
methodDict['return_keyword'] = '' if methodDict['return'] == 'void' else 'return '
|
||||
methodDict['hasReturn'] = not methodDict['return'] == 'void'
|
||||
|
||||
methodDict['convertInputClassArrayToLongArray'] = False
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,9 @@ public class {{classNameStub}} implements {{className}} {
|
|||
@Override
|
||||
public {{return}} {{name}}({{params}}){{#exception}} throws CoreException{{/exception}} {
|
||||
// Auto-generated method stub
|
||||
{{#hasReturn}}
|
||||
{{#classCast}}return null;{{/classCast}}
|
||||
{{/hasReturn}}
|
||||
}
|
||||
|
||||
{{/methods}}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue