Skip to content

Commit

Permalink
Remove where we checked it.
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertCreativityHere committed Jan 14, 2025
1 parent 1fed429 commit e5287b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/src/slice2java/Gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ Slice::JavaVisitor::writeThrowsClause(const string& package, const ExceptionList
{
Output& out = output();

if (op && (op->hasMetadata("java:UserException") || op->hasMetadata("UserException")))
if (op && (op->hasMetadata("java:UserException")))
{
out.inc();
out << nl << "throws com.zeroc.Ice.UserException";
Expand Down Expand Up @@ -1367,7 +1367,7 @@ Slice::JavaVisitor::writeDispatch(Output& out, const InterfaceDefPtr& p)
writeHiddenDocComment(out);
out << nl << "static java.util.concurrent.CompletionStage<com.zeroc.Ice.OutgoingResponse> _iceD_" << opName
<< '(' << name << " obj, com.zeroc.Ice.IncomingRequest request)";
if (!op->throws().empty() || op->hasMetadata("java:UserException") || op->hasMetadata("UserException"))
if (!op->throws().empty() || op->hasMetadata("java:UserException"))
{
out.inc();
out << nl << "throws com.zeroc.Ice.UserException";
Expand Down Expand Up @@ -2144,7 +2144,7 @@ Slice::JavaVisitor::writeServantDocComment(
out << nl << " * @return A completion stage that the servant will complete when the invocation completes.";
}

if (p->hasMetadata("java:UserException") || p->hasMetadata("UserException"))
if (p->hasMetadata("java:UserException"))
{
out << nl << " * @throws com.zeroc.Ice.UserException";
}
Expand Down

0 comments on commit e5287b7

Please sign in to comment.