{"id":8764,"date":"2024-05-27T14:01:01","date_gmt":"2024-05-27T06:01:01","guid":{"rendered":""},"modified":"2024-05-27T14:01:01","modified_gmt":"2024-05-27T06:01:01","slug":"pmml java_\u521d\u5b66\u8005\u600e\u6837\u770b\u61c2\u4ee3\u7801","status":"publish","type":"post","link":"https:\/\/mushiming.com\/8764.html","title":{"rendered":"pmml java_\u521d\u5b66\u8005\u600e\u6837\u770b\u61c2\u4ee3\u7801"},"content":{"rendered":"

\u672c\u6587\u7ed3\u5408\u5b9e\u4f8b\uff0c\u8bb2\u8bc9\u5982\u4f55\u5199\u51fa\u7b26\u5408PMD\u7f16\u7a0b\u89c4\u8303\u7684java\u4ee3\u7801\u3002<\/p>\n

\u9605\u8bfb\u524d\u9700\u8981\u6709\u4e00\u4e2a\u5171\u8bc6\uff1a\u4f18\u96c5\u7684\u4ee3\u7801\u4e00\u5b9a\u662f\u6700\u8ba9\u4eba\u559c\u6b22\u7684\u3002<\/span><\/p>\n

\u4e0b\u9762\u9644\u4e0a\u4ee3\u7801\u89c4\u8303\u7684pmd.xml\u6587\u4ef6\u7684\u4e0b\u8f7d\u5730\u5740\uff1ahttps:\/\/github.com\/jitongming\/pmdForDev<\/p>\n


\n

\u76ee\u5f55<\/strong><\/p>\n

\u7b2c\u4e00\u7c7b\uff1abasic<\/p>\n

\u7b2c\u4e8c\u7c7b\uff1aunnecessary<\/p>\n

\u7b2c\u4e09\u7c7b\uff1abraces<\/p>\n

\u7b2c\u56db\u7c7b\uff1acodesize<\/p>\n

\u7b2c\u4e94\u7c7b\uff1acontroversial<\/p>\n

\u7b2c\u516d\u7c7b\uff1acoupling<\/p>\n

\u7b2c\u4e03\u7c7b\uff1adesign<\/p>\n

\u7b2c\u516b\u7c7b\uff1aempty<\/p>\n

\u7b2c\u4e5d\u7c7b\uff1afinalizers<\/p>\n

\u7b2c\u5341\u7c7b\uff1aimports<\/p>\n

\u7b2c\u5341\u4e00\u7c7b\uff1aj2ee<\/p>\n

\u7b2c\u5341\u4e8c\u7c7b\uff1alogging-java<\/p>\n

\u7b2c\u5341\u4e09\u7c7b\uff1anaming<\/p>\n

\u7b2c\u5341\u56db\u7c7b\uff1aoptimizations<\/p>\n

\u7b2c\u5341\u4e94\u7c7b\uff1astrictexception<\/p>\n

\u7b2c\u5341\u516d\u7c7b\uff1astrings<\/p>\n

\u7b2c\u5341\u4e03\u7c7b\uff1aunusedcode<\/p>\n


\n

------------------------------\u6211\u662f\u53ef\u7231\u7684\u5206\u5272\u7ebf-----------------------------------<\/p>\n

\u7b2c\u4e00\u7c7b\uff1abasic<\/h2>\n

1\uff09ReturnFromFinallyBlock\u3010\u4e0d\u8981\u5728finally\u4ee3\u7801\u5757\u4e2d\u4f7f\u7528return\u3011<\/strong><\/p>\n