<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Naotsugu</author_name>
  <author_url>https://blog.hatena.ne.jp/Naotsugu/</author_url>
  <blog_title>A Memorandum</blog_title>
  <blog_url>https://blog1.mammb.com/</blog_url>
  <categories>
  </categories>
  <description>はじめに IDEのコードインスペクションはいつでも信用できる訳ではありません。 分かっていました。分かっていたのですが、またもや誘惑に負けてしまいましたので、自戒の意味で残しておきます。 Lambda can be replaced with method reference の例 例えば以下のように、変換過程でヌルとなる場合はデフォルト値を返すユーティリティメソッドがあります。 public static &lt;T&gt; T getOrDefault(Supplier&lt;T&gt; supplier, T defaultValue) { try { var ret = supplier.get(); ret…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog1.mammb.com%2Fentry%2F2026%2F11%2F02%2F000000&quot; title=&quot;IDE の Lambda can be replaced with method reference という誘惑に負けるな - A Memorandum&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-11-02 00:00:00</published>
  <title>IDE の Lambda can be replaced with method reference という誘惑に負けるな</title>
  <type>rich</type>
  <url>https://blog1.mammb.com/entry/2026/11/02/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
