Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
b5176b51
Commit
b5176b51
authored
Oct 17, 2017
by
Sylvain Berfini
🐮
Browse files
Removed throws Exception in java wrapper when returning an enum
parent
035ccdf0
Changes
2
Hide whitespace changes
Inline
Side-by-side
wrappers/java/java_class.mustache
View file @
b5176b51
...
...
@@ -110,7 +110,7 @@ public {{#isLinphoneFactory}}abstract class{{/isLinphoneFactory}}{{#isNotLinphon
*/
{{/
doc
}}
{{#
deprecated
}}
@Deprecated
{{/
deprecated
}}{{#
isLinphoneFactory
}}
abstract
{{/
isLinphoneFactory
}}
public
{{
return
}}
{{
name
}}
(
{{
params
}}
)
{{#
exception
}}
throws CoreException
{{/
exception
}}{{#
enumCast
}}
throws CoreException
{{/
enumCast
}}
;
{{/
deprecated
}}{{#
isLinphoneFactory
}}
abstract
{{/
isLinphoneFactory
}}
public
{{
return
}}
{{
name
}}
(
{{
params
}}
);
{{/
methods
}}
/**
...
...
@@ -132,7 +132,7 @@ public {{#isLinphoneFactory}}abstract class{{/isLinphoneFactory}}{{#isNotLinphon
{{/
lines
}}
*/
{{/
doc
}}
public
{{
return
}}
{{
name
}}
(
{{
params
}}
)
{{#
exception
}}
throws CoreException
{{/
exception
}}
{{#
enumCast
}}
throws CoreException
{{/
enumCast
}}
;
public
{{
return
}}
{{
name
}}
(
{{
params
}}
)
{{#
exception
}}
throws CoreException
{{/
exception
}}
;
{{/
staticMethods
}}
{{/
isNotLinphoneFactory
}}
...
...
@@ -181,7 +181,7 @@ class {{classImplName}} {{#isLinphoneFactory}}extends{{/isLinphoneFactory}}{{#is
{{#
methods
}}
private native
{{
return_native
}}
{{
name
}}
(
{{
native_params
}}
);
@Override
public
{{
return
}}
{{
name
}}
(
{{
params
}}
)
{{#
exception
}}
throws CoreException
{{/
exception
}}
{{#
enumCast
}}
throws CoreException
{{/
enumCast
}}
{
public
{{
return
}}
{{
name
}}
(
{{
params
}}
)
{{#
exception
}}
throws CoreException
{{/
exception
}}
{
{{#
exception
}}
int exceptionResult =
{{/
exception
}}{{
return_keyword
}}{{#
enumCast
}}{{
return
}}
.fromInt(
{{/
enumCast
}}{{#
classCast
}}
(
{{
return
}}
)
{{/
classCast
}}{{
name
}}
(nativePtr
{{
native_params_impl
}}
)
{{#
enumCast
}}
)
{{/
enumCast
}}
;
{{#
exception
}}
if (exceptionResult != 0) throw new CoreException("
{{
name
}}
returned value " + exceptionResult);
{{/
exception
}}
}
...
...
wrappers/java/migration.sh
View file @
b5176b51
...
...
@@ -8,8 +8,8 @@ eval "$SED_START 's/import org.linphone.tools/import org.linphone.core.tools/g'
eval
"
$SED_START
's/import org.linphone.core.OpenH264DownloadHelperListener/import org.linphone.core.tools.OpenH264DownloadHelperListener/g'
$SED_END
"
# Listeners
eval
"
$SED_START
's/LinphoneAccountCreator.AccountCreatorListener/AccountCreatorListener/g'
$SED_END
"
eval
"
$SED_START
's/AccountCreator.AccountCreatorListener/AccountCreatorListener/g'
$SED_END
"
eval
"
$SED_START
's/LinphoneAccountCreator.
Linphone
AccountCreatorListener/AccountCreatorListener/g'
$SED_END
"
eval
"
$SED_START
's/AccountCreator.
Linphone
AccountCreatorListener/AccountCreatorListener/g'
$SED_END
"
eval
"
$SED_START
's/LinphoneCoreListenerBase/CoreListenerStub/g'
$SED_END
"
eval
"
$SED_START
's/LinphoneCoreListener/CoreListener/g'
$SED_END
"
eval
"
$SED_START
's/LinphoneChatMessage.LinphoneChatMessageListener/ChatMessageListener/g'
$SED_END
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment