Oops, undo last commit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6221 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3e5741f582
commit
2fc7f17ec7
1 changed files with 2 additions and 2 deletions
|
|
@ -3029,7 +3029,7 @@ class JAVA : public Language {
|
|||
/* Make sure that we return something in the case of a pure
|
||||
* virtual method call for syntactical reasons. */
|
||||
if (!is_void)
|
||||
Printf(w->code, "return 0;");
|
||||
Printf(w->code, "return %s;", qualified_return);
|
||||
else
|
||||
Printf(w->code, "return;\n");
|
||||
}
|
||||
|
|
@ -3307,7 +3307,7 @@ class JAVA : public Language {
|
|||
/* emit code */
|
||||
if (status == SWIG_OK && output_director) {
|
||||
if(!is_void) {
|
||||
Replaceall(w->code,"$null", "0");
|
||||
Replaceall(w->code,"$null", qualified_return);
|
||||
} else
|
||||
Replaceall(w->code,"$null","");
|
||||
Wrapper_print(w, f_directors);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue