<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>taichiw</author_name>
  <author_url>https://blog.hatena.ne.jp/taichiw/</author_url>
  <blog_title>I write Engineering Topic weekly...?</blog_title>
  <blog_url>https://taichiw-e.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Collection shouldn't be updated in lambda explanation Sometimes I see these kind of code. List&lt;X&gt; list = new ArrayList&lt;&gt;(); /*AnyCollection*/.forEach() .map(t -&gt; list.add(t.getXXXX()));I think it's bad code. It's not thread safe If you use parallel stream on above code... List&lt;X&gt; list = new ArrayLis…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftaichiw-e.hatenablog.com%2Fentry%2F2019%2F02%2F15%2F172907&quot; title=&quot;You should avoid using forEach on Java as much as possible, I think - I write Engineering Topic weekly...?&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>2019-02-15 17:29:07</published>
  <title>You should avoid using forEach on Java as much as possible, I think</title>
  <type>rich</type>
  <url>https://taichiw-e.hatenablog.com/entry/2019/02/15/172907</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
