Method parameters confusion
<p>Often time methods take more than 3 parameters which are all of the same type, eg.</p>

<pre><code>void mymethod (String param1, String param2, String param3)
</code></pre>

<p>then it's very easy for the client to mix up the parameters orders, for instance inverting param1 and param2:</p>

<pre><code>mymethod (param2, param1, param3);
</code></pre>

<p>...which can be the cause of much time spent debugging what should be a trivial matter.
Any tips on how to avoid this sort of mistake (apart from unit tests) ?</p>
