Apply patch #1844301 from Monty Taylor to suppress enum constructor unused warnings.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10324 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2008-03-26 21:04:59 +00:00
commit 97b910d726
2 changed files with 7 additions and 0 deletions

View file

@ -1,6 +1,10 @@
Version 1.3.35 (in progress) Version 1.3.35 (in progress)
============================ ============================
03/26/2008: wsfulton
[Java] Apply patch #1844301 from Monty Taylor to suppress enum constructor
unused warnings.
03/26/2008: wsfulton 03/26/2008: wsfulton
[Python] Apply patch #1924524 from Casey Raymondson which ensures the [Python] Apply patch #1924524 from Casey Raymondson which ensures the
"No constructor defined" message is displayed when attempting to call a "No constructor defined" message is displayed when attempting to call a

View file

@ -92,15 +92,18 @@
throw new IllegalArgumentException("No enum " + $javaclassname.class + " with value " + swigValue); throw new IllegalArgumentException("No enum " + $javaclassname.class + " with value " + swigValue);
} }
@SuppressWarnings("unused")
private $javaclassname() { private $javaclassname() {
this.swigValue = SwigNext.next++; this.swigValue = SwigNext.next++;
} }
@SuppressWarnings("unused")
private $javaclassname(int swigValue) { private $javaclassname(int swigValue) {
this.swigValue = swigValue; this.swigValue = swigValue;
SwigNext.next = swigValue+1; SwigNext.next = swigValue+1;
} }
@SuppressWarnings("unused")
private $javaclassname($javaclassname swigEnum) { private $javaclassname($javaclassname swigEnum) {
this.swigValue = swigEnum.swigValue; this.swigValue = swigEnum.swigValue;
SwigNext.next = this.swigValue+1; SwigNext.next = this.swigValue+1;