{"id":85432,"date":"2020-04-04T18:43:55","date_gmt":"2020-04-04T10:43:55","guid":{"rendered":"http:\/\/4563.org\/?p=85432"},"modified":"2020-04-04T18:43:55","modified_gmt":"2020-04-04T10:43:55","slug":"%e7%83%ad%e5%bf%83%e7%bf%bb%e8%af%91%e4%ba%86-google-java-style-guide","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=85432","title":{"rendered":"\u70ed\u5fc3\u7ffb\u8bd1\u4e86 Google Java Style Guide"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u70ed\u5fc3\u7ffb\u8bd1\u4e86 Google Java Style Guide               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fantastM <\/span>  <span><i><\/i> 13<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u5bf9\u7740 https:\/\/google.github.io\/styleguide\/javaguide.html \u9875\u9762\u9010\u5b57\u9010\u53e5\u7ffb\u8bd1\u4e86\u8c37\u6b4c\u7684 Java \u7f16\u7a0b\u98ce\u683c\u6307\u5357\uff0c\u8bd1\u6587\u653e\u5728 GitHub \u4ed3\u5e93\u4e0a https:\/\/github.com\/fantasticmao\/google-java-style-guide-zh_cn \u3002<\/p>\n<p>\u5e73\u65f6\u5728\u5199\u4ee3\u7801\u7684\u65f6\u5019\uff0c\u81ea\u5df1\u5bf9\u7f29\u8fdb\u3001\u5bf9\u9f50\u3001\u547d\u540d\u4e4b\u7c7b\u7684\u4ee3\u7801\u89c4\u8303\u6709\u4e9b\u8f7b\u5fae\u6d01\u7656\u3002\u770b\u5b8c\u8c37\u6b4c\u7684\u8fd9\u7bc7\u98ce\u683c\u6307\u5357\uff0c\u4fbf\u51b3\u5b9a\u5c1d\u8bd5\u628a\u5b83\u7ffb\u8bd1\u6210\u4e2d\u6587\uff0c\u65b9\u4fbf\u81ea\u5df1\u67e5\u770b\u4e5f\u65b9\u4fbf\u5927\u5bb6\u9605\u8bfb\u3002\u4e0d\u8fc7\u81ea\u8eab\u80fd\u529b\u6709\u9650\uff0c\u76ee\u524d\u5bf9\u7ffb\u8bd1\u8d28\u91cf\u7684\u8981\u6c42\u4ec5\u662f\u8bed\u53e5\u901a\u987a\uff0c\u5e76\u4e14\u4e0d\u6096\u539f\u6587\u3002\u6709\u5174\u8da3\u4e00\u8d77\u7ef4\u62a4\u7684\u4f19\u4f34\u53ef\u4ee5\u63d0 Issues \u548c Pull requests \u3002      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>15<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1419706\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : noreplay <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7ed9\u70ed\u5fc3\u7684\u4e3b\u5927\u4f6c\u70b9\u8d5e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1419707\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : legiorange <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u611f\u8c22\uff01\u4e00\u76f4\u4ee5\u6765\u6ca1\u6709\u4eba\u53bb\u505a\u8fd9\u4ef6\u4e8b\u60c5\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1419708\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chanchan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u600e\u4e48\u8bb0\u5f97\u6709\u4eba\u7ffb\u8bd1\u8fc7\u4e86\u5462                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1419709\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : fantastM <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @chanchan #3 \u662f\u6709\u7684\uff0c\u4e0d\u8fc7\u8fd9\u4e2a\u6587\u6863\u5076\u5c14\u4f1a\u66f4\u65b0\u4e00\u4e0b https:\/\/github.com\/google\/styleguide\/commits\/gh-pages\/javaguide.html\uff0c\u7f51\u4e0a\u641c\u5230\u7684\u4e00\u4e9b\u8bd1\u6587\u548c\u539f\u6587\u5df2\u7ecf\u6709\u4e9b\u504f\u5dee&#8230;&#8230;\u6211\u60f3\u7740\u628a\u7ffb\u8bd1\u9879\u76ee\u653e\u5728\u5355\u72ec\u653e\u5728\u4e00\u4e2a GitHub \u4ed3\u5e93\u4e0a\uff0c\u4e5f\u662f\u4e3a\u4e86\u540e\u7eed\u65b9\u4fbf\u4e00\u76f4\u7ef4\u62a4                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1419710\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Sun \u4ee5\u524d\u7684\u89c4\u8303\u5728\u547d\u540d\u65b9\u9762\u89c4\u5b9a\u66f4\u7ec6\u4e00\u4e9b\u3002 <\/p>\n<p>Google Java Style Guide \u6700\u91cd\u8981\u662f\u63d0\u4f9b\u4e86 Eclipse \u548c IDEA \u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<p>\u4e2a\u4eba\u6211\u8fd8\u662f\u559c\u6b22 4 \u7a7a\u683c\u7f29\u8fdb\u3002<\/p>\n<p>Spring \u6709\u4e13\u95e8\u7684\u9879\u76ee\uff0c\u6765\u63d0\u4f9b\u7edf\u4e00\u7684 IDEA \u914d\u7f6e\u6765\u89c4\u8303\u6587\u4ef6\u683c\u5f0f\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1419711\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aaronysj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u70b9\u8d5e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1419712\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : luckylo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hantsy \u5927\u4f6c\uff0c\u6211\u60f3\u505a\u4e2a\u767d\u5ad6\u602a\uff0c\u8bf7\u95ee\u4e0b spring \u7684\u662f\u54ea\u4e2a\u9879\u76ee\u5440                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1419713\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : fantastM <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hantsy #5 \u6211\u5012\u662f\u77e5\u9053\u8c37\u6b4c\u8fd8\u6709\u4e2a\u7c7b\u4f3c\u4e8e Golang \u4e2d go fmt \u547d\u4ee4\u7684\u9879\u76ee https:\/\/github.com\/google\/google-java-format                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1419714\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @luckylo https:\/\/github.com\/spring-io\/spring-javaformat                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1419715\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53c2\u7167 readme, https:\/\/github.com\/spring-io\/spring-javaformat\/tree\/master\/.eclipse \u4e0b\u7684 Eclipse \u914d\u7f6e\u53ef\u4ee5\u5bfc\u5165 IDEA\uff0cEclipse \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1419716\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Spring Code Style \u53c2\u7167\u4e86 Google \u7248\u672c\u4fee\u6539\u7684\uff0chttps:\/\/github.com\/spring-projects\/spring-framework\/wiki\/Code-Style<br \/>\u5176\u4e2d\u5c31\u53bb\u6389\u4e86 2 spaces Indent \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1419717\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yjxjn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u76f4\u5728\u7528\u963f\u91cc\u5df4\u5df4\u7684 codestyle\uff0c\u8fd8\u6709\u63d2\u4ef6\uff0c\u4e5f\u633a\u597d\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1419718\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : astkaasa <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             spring \u7684\u90fd\u662f tab \u7f29\u8fdb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1419719\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : luckylo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hantsy \u611f\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1419720\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : fantastM <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hantsy #11 \u8c37\u6b4c\u7684\u98ce\u683c\u5bf9\u4ee3\u7801\u5757\u8981\u6c42\u662f\u7f29\u8fdb 2 \u4e2a\u7a7a\u683c https:\/\/google.github.io\/styleguide\/javaguide.html#s4.2-block-indentation\uff0c\u4f46\u662f\u5bf9\u8fde\u7eed\u7684\u6362\u884c\uff08\u4f8b\u5982 Stream \u7684\u94fe\u5f0f\u8c03\u7528\uff09\u8981\u6c42\u662f\u7f29\u8fdb 4 \u4e2a\u7a7a\u683c https:\/\/google.github.io\/styleguide\/javaguide.html#s4.5.2-line-wrapping-indent \u3002<\/p>\n<p>\u5176\u5b9e\u6211\u81ea\u5df1\u4e5f\u662f\u4e3b\u5f20 4 \u4e2a\u7a7a\u683c\u7684&#8230;                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u70ed\u5fc3\u7ffb\u8bd1\u4e86 Google Java&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/85432"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=85432"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/85432\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=85432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=85432"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=85432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}