diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-05-12 13:45:22 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-05-12 13:45:22 -0230 |
commit | c1b188709a4a257182071697c685d18af0de89d0 (patch) | |
tree | 9cc2952a2e67da8eedd00a97871aed4cfbcced3a /cpp/src/slice2java/Gen.cpp | |
parent | Bug 3921 - mention build options in README.DEMOS (diff) | |
download | ice-c1b188709a4a257182071697c685d18af0de89d0.tar.bz2 ice-c1b188709a4a257182071697c685d18af0de89d0.tar.xz ice-c1b188709a4a257182071697c685d18af0de89d0.zip |
Bug 3418 - deprecate ice_hash/ice_getHash where not needed
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r-- | cpp/src/slice2java/Gen.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index 277e576c4ea..8135f0465ab 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -1547,7 +1547,10 @@ Slice::Gen::TieVisitor::visitClassDefStart(const ClassDefPtr& p) if(p->isLocal()) { - out << sp << nl << "public int" << nl << "ice_hash()"; + out << sp << nl << "/**"; + out << nl << " * @deprecated This method is deprecated, use hashCode instead."; + out << nl << " **/"; + out << nl << "public int" << nl << "ice_hash()"; out << sb; out << nl << "return hashCode();"; out << eb; |