{"id":348,"date":"2021-02-18T22:05:21","date_gmt":"2021-02-18T13:05:21","guid":{"rendered":"https:\/\/www.opentone.co.jp\/optonlabos\/?p=348"},"modified":"2025-05-12T10:06:25","modified_gmt":"2025-05-12T01:06:25","slug":"java%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%82%b3%e3%83%bc%e3%83%87%e3%82%a3%e3%83%b3%e3%82%b0","status":"publish","type":"post","link":"https:\/\/www.opentone.co.jp\/ot-lab\/all\/uncategorized\/java%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%82%b3%e3%83%bc%e3%83%87%e3%82%a3%e3%83%b3%e3%82%b0","title":{"rendered":"Java\u30bb\u30ad\u30e5\u30a2\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0"},"content":{"rendered":"\n<p>\u3053\u3093\u306b\u3061\u306f\u3001noda\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5148\u6708\u3001<a href=\"http:\/\/codezine.jp\/devsumi\/2012\">\u30c7\u30d6\u30b5\u30df(Developers Summit 2012)<\/a>\u306b\u53c2\u52a0\u3057\u3066\u307e\u3044\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3069\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3082\u8208\u5473\u6df1\u304f\u3001\u5927\u5909\u6709\u610f\u7fa9\u306a\u6642\u9593\u3092\u904e\u3054\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u306a\u304b\u3067\u3082\u4eca\u56de\u306f\u3001\u4e45\u4fdd\u6b63\u6a39 \u6c0f\u306eJava\/Android \u30bb\u30ad\u30e5\u30a2\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u5165\u9580\u3067\u5b66\u3093\u3060\u3053\u3068\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5185\u5bb9\u306f\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u30bf\u30a4\u30c8\u30eb\u901a\u308a\u3001Android\u3092\u958b\u767a\u3059\u308b\u4e0a\u3067\u306e\u30bb\u30ad\u30e5\u30a2\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306b\u3064\u3044\u3066\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u59cb\u3081\u306b\u4e45\u4fdd\u6c0f\u306f\u30de\u30eb\u30a6\u30a7\u30a2\u306b\u3064\u3044\u3066\u8a00\u53ca\u3057\u3001\u30e2\u30d0\u30a4\u30eb\u30de\u30eb\u30a6\u30a7\u30a2\u306e63\uff05\u304cAndroid\u72d9\u3044\u3067\u3042\u308b\u3053\u3068\u306b\u3064\u3044\u3066\u63d0\u8a00\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u3092\u53d6\u308a\u5dfb\u304f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u554f\u984c\u3092\u8a9e\u308b\u3046\u3048\u3067Android\u306f\u5207\u308a\u96e2\u305b\u306a\u3044\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3057\u3066OWASP\u306eTop10Risks(\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u7248)\u3092\u6319\u3052\u3001\u3069\u3053\u306b\u8105\u5a01\u304c\u3042\u308b\u306e\u304b\u3001\u3069\u3046\u5bfe\u5fdc\u30fb\u4fee\u6b63\u3059\u308b\u304b\u304c\u554f\u984c\u3067\u3042\u308b\u3053\u3068\u3092\u793a\u5506\u3059\u308b\u3068\u540c\u6642\u306b\u3001\u904e\u53bb\u306e\u904e\u3061\u304c\u7e70\u308a\u8fd4\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u660e\u8a00\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p><strong>\u25a0\u7e70\u308a\u8fd4\u3055\u308c\u308b\u3001\u904e\u53bb\u306e\u904e\u3061<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u6697\u53f7\u5316\u9375\u306e\u30cf\u30fc\u30c9\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0<\/li><li>\u4e71\u6570\u306e\u30a8\u30f3\u30c8\u30ed\u30d4\u30fc\u4e0d\u8db3<\/li><li>\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u306e\u5916\u90e8\u9001\u4fe1<\/li><li>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831<\/li><\/ul>\n\n\n\n<p>\u4e0a\u8a18\u306e&#8221;\u904e\u3061&#8221;\u3092\u30d7\u30ed\u30b0\u30e9\u30de\u304c\u77e5\u3089\u306a\u3044(\u77e5\u3063\u3066\u3044\u308b\u3051\u3069\u3001\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3067\u304d\u306a\u3044)\u3053\u3068\u3067\u3001\u6570\u5e74\u524d\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u8106\u5f31\u6027\u306e\u30c7\u30b8\u30e3\u30f4\u3068\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u3067\u306f\u5177\u4f53\u7684\u306b\u4f55\u3092\u77e5\u3089\u306a\u3044\u306e\u304c\u554f\u984c\u306a\u3093\u3067\u3057\u3087\u3046\u304b\u3001\u4ee5\u4e0b3\u3064\u306e\u30ab\u30c6\u30b4\u30ea\u30fc\u306b\u5206\u985e\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u8a00\u8a9e\u975e\u4f9d\u5b58\u306e\u30bb\u30ad\u30e5\u30a2\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0<\/li><li>Java\u8a00\u8a9e\u7279\u6709\u306e\u30bb\u30ad\u30e5\u30a2\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0<\/li><li>API\u3084\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u56fa\u6709\u306e\u30bb\u30ad\u30e5\u30a2\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0<\/li><\/ol>\n\n\n\n<p>3\u3064\u5168\u3066\u306b\u3064\u3044\u3066\u89e6\u308c\u308b\u3068\u30d6\u30ed\u30b0\u3067\u306f\u53ce\u307e\u308a\u304d\u3089\u306a\u3044\u306e\u3067\u3001\u4eca\u56de\u306f2\u756a\u76ee\u306eJava\u8a00\u8a9e\u7279\u6709\u306e\u30bb\u30ad\u30e5\u30a2\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306b\u3064\u3044\u3066\u304a\u8a71\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u7a81\u7136\u3067\u3059\u304c\u7686\u3055\u3093\u3001\u6b21\u306e\u30b3\u30fc\u30c9\u306e\u554f\u984c\u306b\u3064\u3044\u3066\u6307\u6458\u3067\u304d\u307e\u3059\u304b\uff1f<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"250\" height=\"100\" src=\"https:\/\/www.opentone.co.jp\/optonlabos\/wp-content\/uploads\/sites\/11\/2021\/02\/cast1.png\" alt=\"\" class=\"wp-image-349\" \/><\/figure>\n\n\n\n<p>\u30d2\u30f3\u30c8\uff1a\u30dc\u30af\u30b7\u30f3\u30b0\u3068\u30a2\u30f3\u30dc\u30af\u30b7\u30f3\u30b0\u306b\u6ce8\u610f\u3059\u308b\u3053\u3068\u306a\u3093\u3067\u3059\u304c\u2026<\/p>\n\n\n\n<p>\u7c21\u5358\u3059\u304e\u307e\u3057\u305f\u304b\uff1f<\/p>\n\n\n\n<p>\u7b54\u3048\u306fremove\u30e1\u30bd\u30c3\u30c9\u306b\u300ci &#8211; 1\u300d\u3092\u5f15\u6570\u3068\u3057\u3066\u6301\u305f\u305b\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u3063\u3066int\u578b\u306b\u306a\u3063\u3066\u307e\u3059\u3088\u306d\u3002<\/p>\n\n\n\n<p>\u3064\u307e\u308a\u3001remove\u3057\u305f\u3044\u304c\u6f14\u7b97\u306e\u7d50\u679c\u304cint\u578b\u306e\u305f\u3081remove\u3067\u304d\u3066\u304a\u308a\u307e\u305b\u3093\u3002(\u3053\u306e\u307e\u307e\u3067\u306f\u5024\u306e\u524a\u9664\u304c\u3067\u304d\u3066\u3044\u306a\u3044\uff01)<\/p>\n\n\n\n<p>\u306a\u306e\u3067short\u3067\u30ad\u30e3\u30b9\u30c8\u3057\u3066\u3042\u3052\u306a\u304f\u3066\u306f\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3093\u3045\uff5e\u30c7\u30d6\u30b5\u30df\u306e\u4f1a\u5834\u3067\u306f\u8151\u306b\u843d\u3061\u306a\u304b\u3063\u305f\u79c1\u2026\u81ea\u5b85\u306b\u5e30\u3063\u3066\u8abf\u3079\u308b\u3068Effective Java\u306b\u3061\u3083\u3093\u3068\u8f09\u3063\u3066\u3044\u308b\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304b\u3002<\/p>\n\n\n\n<p>\u8a73\u7d30\u3092\u3053\u3053\u3067\u66f8\u304f\u3068\u30bb\u30ad\u30e5\u30a2\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3082\u3068\u3044\u3001\u30dc\u30af\u30b7\u30f3\u30b0\u306e\u8a71\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u306e\u3067\u8a73\u3057\u304f\u306fEffective Java(\u7b2c2\u7248 P214- \u9805\u76ee49 \u30dc\u30af\u30b7\u30f3\u30b0\u3055\u308c\u305f\u57fa\u672c\u30c7\u30fc\u30bf\u3088\u308a\u57fa\u672c\u30c7\u30fc\u30bf\u578b\u3092\u9078\u3076)\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u305b\u3063\u304b\u304f\u306a\u306e\u3067Android\u7279\u6709\u3068\u3044\u3048\u308b\u554f\u984c\u3092\u3082\u30461\u3064\uff01<\/p>\n\n\n\n<p>\u6b21\u306e\u30b3\u30fc\u30c9\u3001\u3069\u3053\u304c\u554f\u984c\u304b\u5206\u304b\u308a\u307e\u3059\u304b\uff1f<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"450\" height=\"225\" src=\"https:\/\/www.opentone.co.jp\/optonlabos\/wp-content\/uploads\/sites\/11\/2021\/02\/cast2.png\" alt=\"\" class=\"wp-image-350\" srcset=\"https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2021\/02\/cast2.png 450w, https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2021\/02\/cast2-300x150.png 300w\" sizes=\"(max-width: 450px) 100vw, 450px\" \/><\/figure>\n\n\n\n<p>\u30d2\u30f3\u30c8\uff1a\u4e0a\u8a18\u30b3\u30fc\u30c9\u306fSD\u30ab\u30fc\u30c9\u306e\u5bb9\u91cf\u3092\u53d6\u3063\u3066\u304d\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001getAvailableBlocks()\u3068getBlockSize()\u306fint\u578b\u3092\u8fd4\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30d2\u30f3\u30c8\u3067\u307b\u307c\u5206\u304b\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304b\uff1f<\/p>\n\n\n\n<p>\u305d\u3046\u3067\u3059\u3002\u6b63\u89e3\u306fint\u306e\u6700\u5927\u5024\u3092\u8d85\u3048\u308bSD\u30ab\u30fc\u30c9(\u304a\u3088\u305d2GB)\u3092\u8aad\u307f\u8fbc\u3080\u3068\u3001\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u306e\u4fee\u6b63\u65b9\u6cd5\u3082long\u578b\u306b\u30ad\u30e3\u30b9\u30c8\u3057\u3066\u6f14\u7b97\u3055\u305b\u3066\u3042\u3052\u308c\u3070\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u5982\u4f55\u3067\u3057\u305f\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n\n\n\n<p>\u79c1\u304c\u601d\u3063\u305f\u306e\u306f\u3001\u3082\u3063\u3068Java\u3092\u7406\u89e3\u3057\u3066\u3001\u904e\u53bb\u306e\u904e\u3061\u3092\u7e70\u308a\u8fd4\u3055\u306a\u3044\u3088\u3046\u306b\u69d8\u3005\u306a\u30b3\u30fc\u30c9\u306b\u89e6\u308c\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u7279\u306b\u524d\u8ff0\u3057\u305fSD\u30ab\u30fc\u30c9\u306e\u554f\u984c\u3067\u306f\u30012GB\u4ee5\u4e0a\u306eSD\u30ab\u30fc\u30c9\u304c\u4f7f\u7528\u3055\u308c\u308b\u3053\u3068\u3092\u60f3\u5b9a\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>2GB\u4ee5\u4e0a\u306eSD\u30ab\u30fc\u30c9\u3092\u633f\u5165\u3057\u305f\u72b6\u614b\u3067\u30c6\u30b9\u30c6\u30a3\u30f3\u30b0\u3067\u3082\u3057\u306a\u3044\u3068\u3001\u767a\u898b\u306f\u96e3\u3057\u305d\u3046\u3067\u3059\u3088\u306d\u2026<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u79c1\u3068\u7686\u3055\u3093\u306f\u3053\u3053\u3067\u5b66\u3093\u3060\u306e\u3067\u540c\u3058\u904e\u3061\u3092\u7e70\u308a\u8fd4\u3059\u5fc3\u914d\u304c\u3042\u308a\u307e\u305b\u3093\uff01(\u5fd8\u308c\u306a\u3051\u308c\u3070)<\/p>\n\n\n\n<p>\u3053\u3046\u3084\u3063\u3066\u4e00\u3064\u4e00\u3064\u5b66\u3093\u3067\u30bb\u30ad\u30e5\u30a2\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u76ee\u6307\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u3067\u306f\u3067\u306f\u3002&nbsp;<\/p>\n<div class=\"opent-_2\" style=\"margin-top: 10px;margin-right: 10px;margin-bottom: 10px;margin-left: 10px;\" id=\"opent-2490373283\"><a href=\"https:\/\/www.opentone.co.jp\/backlog\/\" aria-label=\"twitter_backlogskt_new\"><img src=\"https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2023\/02\/twitter_backlogskt_new.jpg\" alt=\"\"  srcset=\"https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2023\/02\/twitter_backlogskt_new.jpg 1024w, https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2023\/02\/twitter_backlogskt_new-300x157.jpg 300w, https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2023\/02\/twitter_backlogskt_new-768x401.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" width=\"384\" height=\"200\"   \/><\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001noda\u3067\u3059\u3002 \u5148\u6708\u3001\u30c7\u30d6\u30b5\u30df(Developers Summit 2012)\u306b\u53c2\u52a0\u3057\u3066<\/p>\n","protected":false},"author":1,"featured_media":349,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[10],"class_list":["post-348","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-10",""],"acf":[],"aioseo_notices":[],"uagb_featured_image_src":{"full":["https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2021\/02\/cast1.png",250,100,false],"thumbnail":["https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2021\/02\/cast1-150x100.png",150,100,true],"medium":["https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2021\/02\/cast1.png",250,100,false],"medium_large":["https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2021\/02\/cast1.png",250,100,false],"large":["https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2021\/02\/cast1.png",250,100,false],"1536x1536":["https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2021\/02\/cast1.png",250,100,false],"2048x2048":["https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2021\/02\/cast1.png",250,100,false],"engage-mag-carousel-img":["https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2021\/02\/cast1.png",250,100,false],"engage-mag-carousel-img-landscape":["https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2021\/02\/cast1.png",250,100,false],"engage-mag-carousel-large-img":["https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2021\/02\/cast1.png",250,100,false],"engage-mag-carousel-large-img-landscape":["https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2021\/02\/cast1.png",250,100,false],"engage-mag-large-thumb":["https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2021\/02\/cast1.png",250,100,false],"engage-mag-small-thumb":["https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2021\/02\/cast1.png",250,100,false]},"uagb_author_info":{"display_name":"ah106rx4o4","author_link":"https:\/\/www.opentone.co.jp\/ot-lab\/author\/ah106rx4o4"},"uagb_comment_info":0,"uagb_excerpt":"\u3053\u3093\u306b\u3061\u306f\u3001noda\u3067\u3059\u3002 \u5148\u6708\u3001\u30c7\u30d6\u30b5\u30df(Developers Summit 2012)\u306b\u53c2\u52a0\u3057\u3066","_links":{"self":[{"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/posts\/348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/comments?post=348"}],"version-history":[{"count":1,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/posts\/348\/revisions"}],"predecessor-version":[{"id":351,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/posts\/348\/revisions\/351"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/media\/349"}],"wp:attachment":[{"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/media?parent=348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/categories?post=348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/tags?post=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}