{"height":"190","type":"rich","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxuwei-k.hatenablog.com%2Fentry%2F2024%2F06%2F25%2F083028\" title=\"\u7279\u5b9a\u306e\u578b\u306e\u5024\u3092\u6368\u3066\u3066\u3044\u305f\u3089\u8b66\u544a\u3084\u30a8\u30e9\u30fc\u306b\u3059\u308bscalafix\u3084wartremover\u3067\u306elinter - xuwei-k&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","published":"2024-06-25 08:30:28","image_url":null,"url":"https://xuwei-k.hatenablog.com/entry/2024/06/25/083028","title":"\u7279\u5b9a\u306e\u578b\u306e\u5024\u3092\u6368\u3066\u3066\u3044\u305f\u3089\u8b66\u544a\u3084\u30a8\u30e9\u30fc\u306b\u3059\u308bscalafix\u3084wartremover\u3067\u306elinter","author_name":"xuwei","description":"Scala\u6a19\u6e96\u306b -Wvalue-discard \u306a\u3069\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u81ea\u5206\u304c\u77e5\u308b\u9650\u308a\u3001\u3053\u308c\u306f\u3059\u3054\u304f\u7d30\u304b\u304f\u5236\u5fa1\u3067\u304d\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u5168\u3066\u3092\u8b66\u544a\u3057\u307e\u3059\u3002 $ scala -Wvalue-discard Welcome to Scala 2.13.14 (OpenJDK 64-Bit Server VM, Java 11.0.23). Type in expressions for evaluation. Or try :help. scala> def f = { 2 ; \"a\" } ^ warning: a pure expression does nothing in statement posi\u2026","provider_url":"https://hatena.blog","blog_url":"https://xuwei-k.hatenablog.com/","width":"100%","blog_title":"xuwei-k's blog","categories":["wartremover","scalafix","scala"],"author_url":"https://blog.hatena.ne.jp/xuwei/"}