From b05bfd85cbe45549708bedf5b7804d760e8bb941 Mon Sep 17 00:00:00 2001 From: Mario Uher Date: Sat, 31 Aug 2024 11:30:40 +0200 Subject: [PATCH] Fix a syntax error in example Java code --- lib/jinterface/doc/guides/jinterface_users_guide.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/jinterface/doc/guides/jinterface_users_guide.md b/lib/jinterface/doc/guides/jinterface_users_guide.md index df6531262f76..3f6af16b8da0 100644 --- a/lib/jinterface/doc/guides/jinterface_users_guide.md +++ b/lib/jinterface/doc/guides/jinterface_users_guide.md @@ -256,12 +256,12 @@ while (true) { try { o = mbox.receive(); if (o instanceof OtpErlangTuple) { - msg = (OtpErlangTuple)o; - from = (OtpErlangPid)(msg.elementAt(0)); - mbox.send(from,msg.elementAt(1)); - } - catch (Exception e) { - System.out.println("" + e); + msg = (OtpErlangTuple) o; + from = (OtpErlangPid) (msg.elementAt(0)); + mbox.send(from, msg.elementAt(1)); + } + } catch (Exception e) { + System.out.println("" + e); } } ```