<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kmatsumiya6</author_name>
  <author_url>https://blog.hatena.ne.jp/kmatsumiya6/</author_url>
  <blog_title>MicroAd Developers Blog</blog_title>
  <blog_url>https://developers.microad.co.jp/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>マイクロアドのサーバサイドエンジニアの松宮です。本日はある日の社内日報を焼き直して、外部公開することにしました。 ・・・ ある晴れた日のこと。Specs2でテストを書いていて、下記のようなコードをコンパイルをすると警告が出ることに気が付いた。 ... val hoge = mock[Hoge] hoge.apply(any()) returns fuga ... 「よし！コンパイル！！」 「えっ」 これはその文字通り、絶対に実行されないコード(dead code)がソース中に存在する場合に教えてくれるイケてる警告文。しかし、如何せん、警告と実際のコードの関係が分からない。 そこで、気になったの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevelopers.microad.co.jp%2Fentry%2F2019%2F04%2F19%2F174500&quot; title=&quot;dead code following this construct ...という警告 - MicroAd Developers Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kmatsumiya6/20190418/20190418174106.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-04-19 17:45:00</published>
  <title>dead code following this construct ...という警告</title>
  <type>rich</type>
  <url>https://developers.microad.co.jp/entry/2019/04/19/174500</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
