{"height":"190","published":"2008-01-25 03:04:18","image_url":null,"author_name":"kaiseh","blog_title":"kaiseh\u306e\u30d6\u30ed\u30b0","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkaiseh.hatenadiary.org%2Fentry%2F20080125%2F1201284258\" title=\" \u7121\u5f15\u6570\u306e\u30e1\u30bd\u30c3\u30c9\u3068Generics\u306e\u8b0e - kaiseh\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","width":"100%","url":"https://kaiseh.hatenadiary.org/entry/20080125/1201284258","title":" \u7121\u5f15\u6570\u306e\u30e1\u30bd\u30c3\u30c9\u3068Generics\u306e\u8b0e","provider_url":"https://hatena.blog","categories":["Java"],"description":"public class Test { public static void main(String[] args) { String s; s = Test.<String>foo(); // (a) s = foo(); // (b) bar(Test.<String>foo()); // (c) bar(foo()); // (d) } static <T> T foo() { return null; } static void bar(String s) { } } (a)(b)(c)\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u901a\u308a\u3001(d)\u3060\u3051\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002 The method bar(String)\u2026","author_url":"https://blog.hatena.ne.jp/kaiseh/","version":"1.0","blog_url":"https://kaiseh.hatenadiary.org/"}