<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shawshank99</author_name>
  <author_url>https://blog.hatena.ne.jp/shawshank99/</author_url>
  <blog_title>にょきにょきブログ</blog_title>
  <blog_url>https://aoking.hatenablog.jp/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>Java7 から導入された try-with-resources は Closeable, AutoCloseable を実装したクラスならスコープを抜ける時に自動的に close を呼び出してくれるというものである。例外時にも close してくれるのでリソースリークの心配が無い。さてこの try-with-resources はリソースに限らず、Closeable, AutoCloseable を実装してさえいれば良いので、ロックの獲得、解放にも使うことができる。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faoking.hatenablog.jp%2Fentry%2F2013%2F10%2F07%2F094323&quot; title=&quot;try-with-resources で lock を使う - にょきにょきブログ&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>http://ecx.images-amazon.com/images/I/51sc1ff5eML.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-10-07 09:43:23</published>
  <title>try-with-resources で lock を使う</title>
  <type>rich</type>
  <url>https://aoking.hatenablog.jp/entry/2013/10/07/094323</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
