<div dir="ltr">Thank to everyone involved for this effort!<div><br></div><div>In the first fail fast example, the presumably void return type is missing:</div><div><br></div><div><pre style="font-family:"DejaVu Sans Mono","Bitstream Vera Sans Mono","Luxi Mono","Courier New",monospace;font-size:13.3333px;padding-left:2em;margin-top:1ex;margin-bottom:1ex;color:rgb(0,0,0)"><code style="font-family:"DejaVu Sans Mono","Bitstream Vera Sans Mono","Luxi Mono","Courier New",monospace"> // This logic really belongs in the constructor
private static verifyPositive(long value) {
if (value <= 0)
throw new IllegalArgumentException("non-positive value");
}
</code></pre><br class="gmail-Apple-interchange-newline"></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qua., 19 de abr. de 2023 às 11:36, Mark Reinhold <<a href="mailto:mark.reinhold@oracle.com">mark.reinhold@oracle.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><a href="https://openjdk.org/jeps/447" rel="noreferrer" target="_blank">https://openjdk.org/jeps/447</a><br>
<br>
Summary: In constructors in the Java programming language, allow<br>
statements that do not reference the instance being created to appear<br>
before this() or super().<br>
<br>
- Mark</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Pedro Lamarão</div><div><a href="https://www.prodist.com.br" target="_blank">https://www.prodist.com.br</a></div><div>Securing Critical Systems</div><div>Tel: +55 11 4380-6585</div><div><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4wgjsxiTyEHhb40ITzhw-mChttfn1y6GautnhGEr5tVa82AzYOrJJ9lEh-34sfDfoCQkFlQ7oY"><br></div><div><div style="color:rgb(34,34,34)"><p class="MsoNormal" style="margin-bottom:12pt"><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(0,51,102)">Antes de imprimir esta mensagem e seus anexos, certifique-se que seja realmente necessário.<br></span><span lang="EN-US" style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(0,51,102)">Proteger o meio ambiente é nosso dever.<br>Before printing this e-mail or attachments, be sure it is necessary.<br>It is in our hands to protect the environment.</span></p></div></div></div></div>