diff options
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; |