which order is better when defining the local var?
<pre class="lang-java prettyprint-override"><code>PropertyDescriptor[] propertyDescriptors = beanInfo.getPropertyDescriptors();
Map&lt;String, Object&gt; returnMap = new HashMap&lt;String, Object&gt;();
    for (int i = 0; i &lt; propertyDescriptors.length; i++) {
             ......
            returnMap.put(propertyName, result);

            }
</code></pre>

<pre class="lang-java prettyprint-override"><code>Map&lt;String, Object&gt; returnMap = new HashMap&lt;String, Object&gt;();
PropertyDescriptor[] propertyDescriptors = beanInfo.getPropertyDescriptors();
    for (int i = 0; i &lt; propertyDescriptors.length; i++) {
             ......
            returnMap.put(propertyName, result);

            }
</code></pre>

<p>which order is better when defining the local var? if define it as the first code, it will make too long distance between propertyDescriptors  defined and their use, but defined it as the second code, it will long distance between map defined or map use.</p>

<p>So which is rule to order them ?</p>
