Java Object return type vs. Generic Methods : <p>I saw several questions about generic return type, but none answers my question.
<br>If there is no bound for any of the arguments, such as the following method in <a href="https://github.com/jayway/JsonPath/blob/master/json-path/src/main/java/com/jayway/jsonpath/JsonPath.java">JayWay</a> :</p>

<pre><code>public static &lt;T&gt; T read(String json, String jsonPath, Filter... filters) {
    return new JsonReader().parse(json).read(jsonPath, filters);
}
</code></pre>

<p>What is the point of using this as generic ?<br>
I told the guys from my team that this method should be used as :</p>

<pre><code>JsonPath.&lt;Boolean&gt;read(currentRule, "$.logged")
</code></pre>

<p>instead of:</p>

<pre><code>(boolean) JsonPath.read(currentRule, "$.logged")
</code></pre>

<p>But I really can't tell the difference...</p>
