diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 000000000..067d58428 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "bluelovers" + ], + "rules": {} +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..a8a4bf55c --- /dev/null +++ b/.gitignore @@ -0,0 +1,217 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env.local +.env.development.local +.env.test.local +.env.production.local + +# vercel +.vercel + +/.*/ +.idea +node_modules +~ci.list.txt +~ci.log.txt +~ci.errors.txt +*.stackdump +*.bak +*.old +package-lock.json +test/**/*.js +test/**/*.d.ts +test/*.js +test/*.d.ts +test/temp* +test/**/*.map +tests/**/*.js +tests/**/*.d.ts +tests/*.js +tests/*.d.ts +tests/temp* +tests/**/*.map +bin/*.d.ts +bin/**/*.d.ts +/packages/*/bin/*.d.ts +/packages/*/test/**/*.js +/packages/*/test/**/*.d.ts +/packages/*/test/*.js +/packages/*/test/*.d.ts +/packages/*/test/temp* +/packages/*/tests/**/*.js +/packages/*/tests/**/*.d.ts +/packages/*/tests/*.js +/packages/*/tests/*.d.ts +/packages/*/tests/temp* + +test/**/*.mjs +test/**/*.d.mts +test/*.mjs +test/*.d.mts +test/temp* +test/**/*.map +tests/**/*.mjs +tests/**/*.d.mts +tests/*.mjs +tests/*.d.mts +tests/temp* +tests/**/*.map +bin/*.d.mts +bin/**/*.d.mts +/packages/*/bin/*.d.mts +/packages/*/test/**/*.mjs +/packages/*/test/**/*.d.mts +/packages/*/test/*.mjs +/packages/*/test/*.d.mts +/packages/*/test/temp* +/packages/*/tests/**/*.mjs +/packages/*/tests/**/*.d.mts +/packages/*/tests/*.mjs +/packages/*/tests/*.d.mts +/packages/*/tests/temp* + +test/**/*.cjs +test/**/*.d.cts +test/*.cjs +test/*.d.cts +test/temp* +test/**/*.map +tests/**/*.cjs +tests/**/*.d.cts +tests/*.cjs +tests/*.d.cts +tests/temp* +tests/**/*.map +bin/*.d.cts +bin/**/*.d.cts +/packages/*/bin/*.d.cts +/packages/*/test/**/*.cjs +/packages/*/test/**/*.d.cts +/packages/*/test/*.cjs +/packages/*/test/*.d.cts +/packages/*/test/temp* +/packages/*/tests/**/*.cjs +/packages/*/tests/**/*.d.cts +/packages/*/tests/*.cjs +/packages/*/tests/*.d.cts +/packages/*/tests/temp* + +/src/**/*.d.ts +/src/**/*.js +/src/**/*.d.cts +/src/**/*.d.mts +/src/**/*.cjs +/src/**/*.mjs + +**/node_modules +*.tgz +/tsconfig.json.tpl +/.eslintrc.json.tpl +!tsconfig.json +!.eslintrc.json +yarn-error.log +*.log +.git +yarn.lock +.env.local +.env.*.local +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? +*.vue.js +*.vue.d.ts +*.vue.js.map +vue.config.d.ts +vue.config.js.map +.nyc_output +coverage +/*.tpl +!.forestry +!.vuepress +!.github +!.gitee +!.gitlab +.git + +*.tsbuildinfo +tsconfig.esm.json.tpl + +.browserslistrc +.nvmrc + +/.eslintignore +/package.d.ts +.nycrc +.mocharc.yml +#jest.config.js +node_modules/.cache +.yarn-integrity +jest.config.d.ts +jest.config.js.map +/report.*.json +*.js.map +*.cjs.map +*.mjs.map +*.ts.map +*.cts.map +*.mts.map +/now.json +.nyc_output +.coverage-cache +.reify-cache +*.spec.d.ts +*.spec.js +.nowignore +*/**/.github +!/.github +!npm-shrinkwrap.json +*.stat +.vercel +/test/*.tpl +/*.tpl +/report.json + +.opt-in +.opt-out +/gradle +.gradle +/out +/build + +/_*/ +_snowpack +web_modules +tsc-multi.json.tpl +!/original-plugin-raw/**/* +/.github/ diff --git a/.npmignore b/.npmignore new file mode 100644 index 000000000..db4e4a071 --- /dev/null +++ b/.npmignore @@ -0,0 +1,122 @@ +/.pnp +.pnp.js +.idea +~ci.list.txt +~ci.log.txt +~ci.errors.txt +*.stackdump +*.bak +*.old +*.log +tsconfig.json +package-lock.json +test +.github +.gitkeep +/.*/ +/.* +tests +/~* +__test__ +__tests__ +node_modules +/node_modules/ +**/node_modules/ +*.ts +!*.d.ts +/bin/**/*.d.ts +/bin/*.d.ts + +!*.d.mts +/bin/**/*.d.mts +/bin/*.d.mts + +!*.d.cts +/bin/**/*.d.cts +/bin/*.d.cts + +/src/**/*.d.ts +/src/**/*.js +/src/**/*.d.cts +/src/**/*.d.mts +/src/**/*.cjs +/src/**/*.mjs + +*.tgz +/tsconfig.json.tpl +yarn-error.log +.git +yarn.lock +.env.local +.env.*.local +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? +*.vue.js +*.vue.d.ts +*.vue.js.map +.nyc_output +coverage +/*.tpl +webpack.config.js +vue.config.js +/jestconfig.json +/tslint.json +.git +webpack.*.config.js +webpack.*.config.d.ts +webpack.*.config.js.map +webpack.*.config.ts +karma.conf.js +/_config.yml +intellij-style-guide.xml +jest.config.js +*.tsbuildinfo +tsconfig.*.json +tsconfig.esm.json.tpl +/package.d.ts +.mocharc.yml +jest.config.js +jest.config.* +/report.*.json +now.json +/Makefile +*.spec.d.ts +*.spec.js +*.spec.ts + +*.spec.d.cts +*.spec.cjs +*.spec.cts + +*.spec.d.mts +*.spec.mjs +*.spec.mts + +*.spec.tsx +__mocks__ +__tests__ +__snapshots__ +*.snap +npm-shrinkwrap.json +/example/ +*.stat +.vercel +tsdx.config.js +/report.json + +/_*/ +_snowpack + +/snowpack.config.js +web_modules +cz-adapter + +tsc-multi.json.tpl +tsc-multi.json diff --git a/README.md b/README.md new file mode 100644 index 000000000..5cbc4349a --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# README.md + + + +## install + +```bash +yarn add idea-l10n-zht +yarn-tool add idea-l10n-zht +yt add idea-l10n-zht +``` + diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 000000000..5e9a8eac1 --- /dev/null +++ b/jest.config.js @@ -0,0 +1,112 @@ +// @ts-check + +/** + * @param {string} name + * @returns {string} + * @private + */ +function _requireResolve(name) +{ + let result; + + try + { + const { requireResolveExtra, requireResolveCore } = require('@yarn-tool/require-resolve'); + + const paths = [ + requireResolveExtra('@bluelovers/tsdx').result, + requireResolveExtra('tsdx').result, + ].filter(Boolean); + + result = requireResolveCore(name, { + includeGlobal: true, + includeCurrentDirectory: true, + paths, + }) + } + catch (e) + { + + } + + return result || require.resolve(name) +} + +const testExt = [ + 'ts', + 'tsx', + 'mts', + 'cts', + //'js', + //'jsx', +// 'mjs', +// 'cjs', +].join('|'); + +/** + * @type { import('@jest/types').Config.InitialOptions } + */ +module.exports = { + clearMocks: true, + moduleFileExtensions: [ + 'ts', + 'tsx', + 'mts', + 'cts', + 'js', + 'jsx', + 'mjs', + 'cjs', + 'json', + 'node', + ], + testEnvironment: 'node', + //testMatch: ['**/*.test.ts', '**/*.spec.ts'], + testMatch: void 0, + testRegex: [ + `\\.(tests?|spec)\\.(${testExt})$`, + `__tests__\/\.*\\.(${testExt})$`, + ], + testPathIgnorePatterns: [ + '/node_modules/', + '/__fixtures__/', + '/fixtures/', + '/__tests__/helpers/', + '/__tests__/utils/', + '__mocks__', + ], + //testRunner: 'jest-circus/runner', + setupFilesAfterEnv: [ + //"jest-chain", + //"jest-extended/all", + //"jest-extended-extra", + //"jest-num-close-with", + /** + * https://medium.com/doctolib/how-to-run-the-same-jest-test-suite-across-several-platforms-jest-os-detection-plugin-included-f8113832482b + * https://github.com/doctolib/jest-os-detection + */ + //'jest-os-detection', + ], + transform: { + '.(ts|tsx|mts|cts)$': _requireResolve('ts-jest'), + }, + verbose: true, + /** + * if didn't set `coverageProvider` to `v8` + * with `collectCoverage` `true`, nodejs debug point maybe will fail + */ + coverageProvider: 'v8', + collectCoverage: false, + coveragePathIgnorePatterns: [ + '/node_modules/', + '/__snapshots__/', + '/__tests__/', + //'**/node_modules/', + //'**/__snapshots__/', + //'**/__tests__/', + ], + /** + * https://github.com/facebook/jest/issues/9771#issuecomment-872764344 + */ + //resolver: 'jest-node-exports-resolver', +} diff --git a/lib/cli-progress.ts b/lib/cli-progress.ts new file mode 100644 index 000000000..185995500 --- /dev/null +++ b/lib/cli-progress.ts @@ -0,0 +1,15 @@ +import { ensureDirSync } from 'fs-extra'; +import { join } from 'path'; +// @ts-ignore +import progressEstimator from 'progress-estimator'; +import { findPkgModuleCachePathCore, findPkgModulePathCore } from 'cache-path/lib/finder/findPkgModuleCachePath'; + +export function createProgressEstimator(root: string) +{ + const storagePath = join(findPkgModuleCachePathCore(root), '.progress-estimator'); + ensureDirSync(storagePath); + return progressEstimator({ + // All configuration keys are optional, but it's recommended to specify a storage location. + storagePath, + }); +} diff --git a/original-plugin-raw/zh/META-INF/MANIFEST.MF b/original-plugin-raw/zh/META-INF/MANIFEST.MF new file mode 100644 index 000000000..aa1b8491e --- /dev/null +++ b/original-plugin-raw/zh/META-INF/MANIFEST.MF @@ -0,0 +1,4 @@ +Manifest-Version: 1.0 +Ant-Version: Apache Ant 1.10.5 +Created-By: 11.0.13+7-b1751.21 (JetBrains s.r.o.) + diff --git a/original-plugin-raw/zh/META-INF/plugin.xml b/original-plugin-raw/zh/META-INF/plugin.xml new file mode 100644 index 000000000..f092ecf56 --- /dev/null +++ b/original-plugin-raw/zh/META-INF/plugin.xml @@ -0,0 +1,15 @@ + + com.intellij.zh + 213.241 + + Chinese (Simplified) Language Pack / 中文语言包 + JetBrains + Your feedback is very much appreciated. You can submit it directly from the IDE or via YouTrack either in English or Chinese.

中文语言包将为您的 IntelliJ IDEA, AppCode, CLion, DataGrip, GoLand, PyCharm, PhpStorm, RubyMine, 和WebStorm 带来完全中文化的界面。
您的反馈至关重要。您可以直接通过 IDE 或者 YouTrack 以中文或者英文的形式提交您的反馈。]]>
+ 2021 年 7 月 21 日(正式发布)
2021 年 4 月 27 日(版本更新)
2021 年 1 月 4 日(版本更新)
2020年 10月 30日(版本更新)
2020 年 6 月 10 日(安装配置及反馈提交指南)
2020 年 5 月 11 日(中文化插件发布)]]>
+ com.intellij.modules.platform + com.intellij.modules.rider + zh + + + +
\ No newline at end of file diff --git a/original-plugin-raw/zh/META-INF/pluginIcon.svg b/original-plugin-raw/zh/META-INF/pluginIcon.svg new file mode 100644 index 000000000..3a891f32e --- /dev/null +++ b/original-plugin-raw/zh/META-INF/pluginIcon.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/original-plugin-raw/zh/com/intellij/ide/fileTemplates/package.html b/original-plugin-raw/zh/com/intellij/ide/fileTemplates/package.html new file mode 100644 index 000000000..288bcfb5e --- /dev/null +++ b/original-plugin-raw/zh/com/intellij/ide/fileTemplates/package.html @@ -0,0 +1,20 @@ + + + + +提供允许插件提供附加文件模板的接口。 + diff --git a/original-plugin-raw/zh/defaultBundleActions/DefaultActionsBundle.properties b/original-plugin-raw/zh/defaultBundleActions/DefaultActionsBundle.properties new file mode 100644 index 000000000..21173213e --- /dev/null +++ b/original-plugin-raw/zh/defaultBundleActions/DefaultActionsBundle.properties @@ -0,0 +1,1123 @@ + +action.ToggleBookmark8.text=切换书签 8 +action.ToggleBookmark9.text=切换书签 9 +action.ToggleBookmark6.text=切换书签 6 +action.DropAnError.text=Drop an Error +action.DropAnError.description=Hold down SHIFT for a sequence of exceptions +action.ToggleBookmark7.text=切换书签 7 +action.ToggleBookmark4.text=切换书签 4 +action.ToggleBookmark5.text=切换书签 5 +action.ToggleBookmark2.text=切换书签 2 +action.ToggleBookmark3.text=切换书签 3 +group.KotlinInternalGroup.text=Kotlin +action.ToggleBookmark0.text=切换书签 0 +action.ToggleBookmark1.text=切换书签 1 +action.Javascript.Linters.EsLint.Fix.text=Fix ESLint Problems +action.Javascript.Linters.EsLint.Fix.description=通过调用 'eslint --fix' 修正 ESLint 问题 +action.NewDir.description=创建新目录或软件包 +action.ToggleBookmarkH.text=切换书签 H +action.ToggleBookmarkI.text=切换书签 I +action.ToggleBookmarkF.text=Toggle Bookmark F +action.ToggleBookmarkG.text=Toggle Bookmark G +action.ToggleBookmarkD.text=Toggle Bookmark D +action.ToggleBookmarkE.text=Toggle Bookmark E +action.ToggleBookmarkB.text=Toggle Bookmark B +action.ToggleBookmarkC.text=Toggle Bookmark C +action.RESTClient.ShowHistory.description=打开包含已执行 HTTP 请求的日志文件 +action.ToggleBookmarkA.text=Toggle Bookmark A +action.Vcs.RefreshFileHistory.text=刷新 +action.Vcs.RefreshFileHistory.description=刷新文件历史记录 +action.Arrangement.Custom.Token.Rule.Edit.text=配置匹配规则的别名 +action.Arrangement.Custom.Token.Rule.Edit.description=配置排列匹配规则的别名 +action.ShowEvaluationFeedbackRequestAction.text=Show Evaluation Feedback Request +action.ShowLiveRunConfigurations.text=显示正在运行的列表 +action.ShowLiveRunConfigurations.description=显示当前正在运行的运行配置列表 +action.hg4idea.add.text=添加 +action.ToggleBookmarkX.text=Toggle Bookmark X +action.ToggleBookmarkY.text=Toggle Bookmark Y +action.ToggleBookmarkV.text=Toggle Bookmark V +action.ToggleBookmarkW.text=Toggle Bookmark W +action.ToggleBookmarkT.text=Toggle Bookmark T +action.ToggleBookmarkU.text=Toggle Bookmark U +action.ToggleBookmarkR.text=Toggle Bookmark R +action.ToggleBookmarkS.text=Toggle Bookmark S +action.ToggleBookmarkP.text=Toggle Bookmark P +action.ToggleBookmarkQ.text=Toggle Bookmark Q +action.ToggleBookmarkN.text=Toggle Bookmark N +action.Github.PullRequest.Details.Reload.text=刷新拉取请求详细信息 +action.ToggleBookmarkO.text=Toggle Bookmark O +action.ToggleBookmarkL.text=Toggle Bookmark L +action.ToggleBookmarkM.text=Toggle Bookmark M +action.ToggleBookmarkJ.text=Toggle Bookmark J +action.ToggleBookmarkK.text=Toggle Bookmark K +action.org.intellij.plugins.markdown.fileActions.importFrom.googleDocs.GoogleDocsImportAction.text=从 Google 文档导入… +action.NewPrivateEnvironmentFile.text=http-client.private.env.json +action.NewPrivateEnvironmentFile.description=为 HTTP 请求创建私有 HTTP 环境文件 +action.InviteOthersToFollowAction.text=邀请他人关注 +action.ExternalSystem.ShowSettings.text=External Settings... +action.ExternalSystem.ShowSettings.description=Edit external settings for the current project +action.ToggleBookmarkZ.text=Toggle Bookmark Z +action.Javaee.KeepDeployedAfterDisconnect.text=断开连接后保留部署的工件 +group.v8.profiling.text=V8 分析 +action.NewJigsawModuleDiagram.text=Java 模块图 +action.DumpRunDebugActionStateAction.text=Dump State of Run/Debug Combobox +group.grails.goto.service.text=转到服务 +action.SettingsEntryPoint.description=有可用更新。IDE 和项目设置 +action.Vcs.GetVersion.text=获取 +action.Vcs.GetVersion.description=从仓库获取版本 +action.DropAnOutOfMemoryError.text=Drop an OutOfMemoryError +action.DropAnOutOfMemoryError.description=Hold down SHIFT for OOME in Metaspace +group.Hg.Mq.text=MQ +action.EditorSearchSession.PrevOccurrence.text=上一个匹配项 +action.EditorSearchSession.PrevOccurrence.description=导航到上一个匹配项 +action.android.testRetention.load.text=Set up Android Test Retention +action.android.testRetention.load.description=Load and set up Android Test Retention for debug +action.ExternalSystem.HideProjectRefreshAction.text=隐藏此通知 +action.RunningDevices.text=Running devices +group.GuiDesigner.MainToolbarActions.text=UI Designer Toolbar Actions +action.ActivateProfilerToolWindow.text=分析器 +action.ActivateProfilerToolWindow.description=Activate Profiler window +action.CreateCDIBeansXmlFile.text=CDI Bean 描述符(beans.xml) +action.CreateCDIBeansXmlFile.description=创建 beans.xml 配置文件 +action.HTTPClient.OpenCollection.description=打开 HTTP 请求的内置集合 +action.CombinePropertiesFilesAction.text=合并到资源包 +action.teamcity.remote.debug.executor.text=Debug Remotely on TeamCity Agent +action.teamcity.remote.debug.executor.description=Debug selected configuration remotely on TeamCity agent +action.RunDashboard.Debug.description=调试所选配置 +action.TsLintFileFixAction.text=Fix TSLint Problems +action.TsLintFileFixAction.description=修正所有 TSLint 问题 +action.ActivateProblemsViewToolWindow.text=问题 +action.ActivateProblemsViewToolWindow.description=Activate Problems window +action.ForceOthersToFollowAction.text=强制所有人关注您 +action.ActivateJavaEnterpriseToolWindow.text=Java Enterprise +action.ActivateJavaEnterpriseToolWindow.description=Activate Java Enterprise window +action.com.intellij.analysis.pwa.actions.debug.PwaShowDeclaredSymbolsAction.text=Show PWA declared symbols +action.Github.PullRequest.List.Reload.text=刷新列表 +action.RunInspection.text=Run Inspection by Name... +group.UastInternal.text=UAST +action.UpdateIdeFromSources.text=从源代码更新 IDE… +action.UpdateIdeFromSources.description=从当前打开的源代码构建 IntelliJ IDEA 的安装,并用它替换当前的安装。 +action.TerminalIncreaseFontSize.text=增大字体大小 +action.ActivateFlowToolWindow.text=Flow +action.ActivateFlowToolWindow.description=Activate Flow window +action.com.intellij.analysis.pwa.actions.debug.PwaShowUsedSymbolsAction.text=Show PWA used symbols +action.hg4idea.QDelete.text=删除 +action.hg4idea.QDelete.description=删除所选补丁 +action.ValidateJsp.text=验证 +action.ValidateJsp.description=对所选条目中的所有文件运行验证 +action.Arrangement.Alias.Rule.Remove.text=移除规则 +action.Arrangement.Alias.Rule.Remove.description=移除所选排列规则 +action.Arrangement.Rule.Remove.text=移除规则 +action.Arrangement.Rule.Remove.description=移除所选排列规则 +action.RevealIn.text=在访达中显示 +action.Console.Jpa.GenerateDDL.text=生成 DDL +action.Console.Jpa.GenerateDDL.description=生成持久性单元 DDL +action.RunConfigurationTemplatesForNewProjects.text=为新项目运行配置模板… +action.BackendBeControlsDSLShowCase.text=显示 Be Controls +group.IFTInternalActions.text=IFT Actions +action.ComputeSwaggerDiffBetweenPhysicalFiles.text=比较 OpenAPI 规范 +action.ReopenClosedTab.text=重新打开关闭的选项卡 +group.JAXB.text=JAXB +group.JAXB.description=JAXB actions +action.TeamCity.MainMenu.RemoteRunAction.text=Remote Run +action.TeamCity.MainMenu.RemoteRunAction.description=TeamCity remote run/pre-tested commit +action.ExcludeFromValidation.text=从验证中排除 +action.ExternalSystem.RefreshAllProjects.text=Reload All External Projects +action.ExternalSystem.RefreshAllProjects.description=Force reload all linked external projects +action.Run.text=运行 +action.Run.description=运行所选配置 +action.CreateIncrementalCompilationBackup.text=创建用于调试 Kotlin 增量编译的备份 +group.BuildServer.MainMenu.text=TeamCity +action.NewJavaScriptFile.text=JavaScript 文件 +action.NewJavaScriptFile.description=从指定的模板创建 JavaScript 文件 +action.Android.Designer.SwitchDesignMode.text=Switch Design Mode +action.Android.Designer.SwitchDesignMode.description=Switch the design mode cycling within Design, Blueprint, and Design + Blueprint +action.Gradle.ShowDaemons.text=显示 Gradle 守护进程 +action.ActivateFileTransferToolWindow.text=文件传输 +action.ActivateFileTransferToolWindow.description=Activate File Transfer window +action.Git.SelectInGitLog.text=在 Git 日志中显示 +action.MarkGeneratedSourceRoot.text=Generated Sources Root +action.MarkGeneratedSourceRoot.description=Mark directory as a sources root for generated files +action.ServiceView.ActivateDefaultRemoteServersServiceViewContributor.text=Clouds (Services) +action.ServiceView.ActivateDefaultRemoteServersServiceViewContributor.description=激活服务窗口 +action.Github.View.Pull.Request.text=查看拉取请求 +group.ChangesBrowser.FiltererGroup.text=筛选依据 +action.StoreDefaultLayout.text=Store Current Layout as Default +action.Git.ChangesView.AcceptYours.text=接受您的变更 +action.ShowGulpTasks.text=Show Gulp Tasks +action.ManageTargets.text=管理目标… +action.DropPluginError.text=Drop an Error in a Random Plugin +action.DropPluginError.description=Hold down SHIFT for 3rd-party plugins only +group.Maven.RefactoringGroup.text=重构 +action.LoadAllVFSContent.description=加载所有 VirtualFile 内容 +action.Android.Designer.PreviousDevice.text=Preview Previous Device +action.Android.Designer.PreviousDevice.description=Change to previous device in the device menu +action.Android.CreateSampleDataDirectory.text=示例数据目录 +action.Android.CreateSampleDataDirectory.description=创建新的示例数据目录 +group.Internal.Android.text=Android +action.CurrentLeadUnfollowAction.text=Unfollow current lead +action.TeamCity.ShowTeamCityTestStatusDetailsInvoker.text=TeamCity Test Status Details +action.TeamCity.ShowTeamCityTestStatusDetailsInvoker.description=Show status details from TeamCity for the test at the caret +action.NewForm.description=创建空 GUI 窗体 +action.TerminalSplitActionBase$Horizontal.text=向下拆分 +action.SwitchFileBasedIndexStorageAction.text=切换基于文件的索引存储 +group.SuppressFixes.text=禁止 +group.Github.Open.In.Browser.text=在 GitHub 上打开 +group.Github.Open.In.Browser.description=在浏览器中打开相应链接 +action.NewHtmlFile.text=HTML 文件 +action.NewHtmlFile.description=创建新 HTML 文件 +group.Internal.Spring.text=Spring +action.NewDialog.description=Create new class implementing javax.swing.JDialog +group.Maven.CreateRunConfiguration.text=修改运行配置… +action.Vcs.Log.GoToRef.text=转到哈希/分支/标记 +action.Vcs.Log.GoToRef.description=指定分支或标记的哈希或名称,以导航到其指向的提交 +action.TemplateProjectStructure.text=新项目的结构… +action.TemplateProjectStructure.description=配置所有新项目的默认结构 +group.Spy-js.Stack.Tree.Navigate.Previous.text=此文件中的上一个函数 +action.Uml.NodeIntentions.text=显示节点的意图 +action.ActivateEndpointsToolWindow.text=端点 +action.ActivateEndpointsToolWindow.description=Activate Endpoints window +action.ActivatenpmToolWindow.text=npm +action.ActivatenpmToolWindow.description=Activate npm window +action.Vcs.Log.OpenAnotherTab.text=Open New Vcs Log Tab +action.Vcs.Log.OpenAnotherTab.description=Open new tab with Vcs Log +group.Git.MainMenu.FileActions.text=当前文件 +action.GuiDesigner.ChooseLocale.description=Choose locale for displaying localized string properties +group.Vcs.FileHistory.PresentationSettings.text=演示设置 +group.Vcs.FileHistory.PresentationSettings.description=配置文件历史记录的演示 +action.NewClass.description=创建新 Java 类 +action.Gradle.RefreshDependencies.text=刷新 Gradle 依赖项 +action.Gradle.RefreshDependencies.description=使用 --refresh-dependencie 实参刷新 Gradle 缓存中的依赖项 +action.Adtui.ZoomOutAction.text=缩小 +action.Adtui.ZoomOutAction.description=Zoom out preview +action.Android.Designer.ToggleDeviceOrientation.text=Toggle Device Orientation +action.Android.Designer.ToggleDeviceOrientation.description=Toggle the preview orientation between portrait and landscape +action.android.deploy.RunWithoutBuild.text=Lack of Project +action.android.deploy.RunWithoutBuild.description=Disabled due to lack of project +action.QuickList.Deployment.text=部署 +action.QuickList.Deployment.description=Deployment actions +action.Git.Commit.And.Push.Executor.text=Commit and Push… +action.OpenPersistenceERDiagramAction.text=实体关系图 +group.ImportProfilerResultsFromHistory.text=打开分析器快照 +group.ImportProfilerResultsFromHistory.description=打开分析器快照 +action.Github.PullRequest.Branch.Update.text=更新本地分支… +action.Github.PullRequest.Branch.Update.description=更新拉取请求本地分支 +action.Git.Log.Branches.GroupBy.Repository.text=仓库 +action.FlowJS.Restart.All.Servers.text=重启所有 Flow 服务器 +action.FlowJS.Restart.All.Servers.description=重启所有 Flow 服务器 +action.ToggleInlayHintsGloballyAction.text=全局切换嵌入提示 +action.Android.AdbDevicePairing.text=Pair Devices Using Wi-Fi +action.Android.AdbDevicePairing.description=Open the Device Pairing dialog which allows connecting devices over Wi-Fi +action.intellij.api.watcher.find.external.usages.most.used.apis.text=Find Most Externally Used APIs... +action.intellij.api.watcher.find.external.usages.most.used.apis.description=Find most externally used APIs... +action.TC.VCS.RemoteDebugWithLocalChangesAction.text=With Sending Local Changes +action.TC.VCS.RemoteDebugWithLocalChangesAction.description=Remote debug in TeamCity with sending local changes +action.FileChooser.GotoJDK.text=显示快速列表 +group.jpa.AddJpaProviderSupport.text=添加 JPA 提供程序属性 +action.Vcs.Show.Log.text=显示 VCS 日志 +action.Vcs.Log.ShowRootsColumnAction.text=Show Root Names +group.ShowFilterPopup.text=显示筛选器弹出窗口 +action.ActivateFindToolWindow.description=Activate Find window +action.Start.Use.Vcs.text=Enable Version Control Integration… +group.UML.Group.text=图 +group.UML.Group.description=图 +action.prototext.InsertSchemaDirective.text=Insert Schema Annotation +action.prototext.InsertSchemaDirective.description=Insert a reference to this file's root protobuf message, enabling completion, validation, and other features +action.Android.UploadDatabase.text=上传 +action.Android.UploadDatabase.description=Uploads database to related device +action.CWMOpenSettingsAction.text=设置… +group.Console.TableResult.Options.text=显示选项菜单 +action.androidExcludeFromSuite.text=Exclude from suite +action.Vcs.Log.MoveDiffPreviewToRight.text=右侧 +action.Vcs.Log.MoveDiffPreviewToRight.description=在右侧找到差异预览 +action.AddGradleDslPluginAction.text=添加 Gradle 插件 +action.AddGradleDslPluginAction.description=向项目中添加所选 Gradle 插件 +action.DisableInspection.text=禁用检查 +action.Spring.Beans.Generate.Testing.Dependency.Action.text=@Autowired 依赖项… +group.NewFromTemplate.text=从模板 +group.Diagram.MergeEdgesGroup.text=合并边缘 +group.Android.CreateResourcesActionGroup.text=Android 资源文件 +action.GenerateServletAction.text=Servlet... +action.CodeWithMeBackendReportIssue.text=Collect Logs and Submit an Issue… +action.ActivateLearnToolWindow.text=学习 +action.ActivateLearnToolWindow.description=Activate Learn window +action.UsageGrouping.Scope.text=测试/生产 +action.TC.VCS.RemoteDebugWithoutLocalChangesAction.text=Without Sending Local Changes... +action.TC.VCS.RemoteDebugWithoutLocalChangesAction.description=Remote debug in TeamCity without sending local changes +action.Vcs.Log.CompactReferencesView.text=紧凑型引用视图 +action.Vcs.Log.CompactReferencesView.description=仅在表中显示提交的第一个引用 +action.Android.LinkExternalCppProject.text=Link C++ Project with Gradle +action.Android.LinkExternalCppProject.description=Link an external C/C++ project (cmake or ndk-build) with Gradle +action.chart-demo.text=CPU 和内存实时图表 +action.Debug.text=调试 +action.Debug.description=调试所选配置 +action.GetJoinLinkAction.text=启用访问并复制邀请链接… +action.ShelvedChanges.ImportPatches.text=导入补丁… +action.ShelvedChanges.ImportPatches.description=将补丁文件复制到搁置 +group.SyncSettings.text=与设置仓库同步 +group.GitHub.MainMenu.text=GitHub +action.BrowseShelf.text=浏览 Perforce 搁置… +action.Git.ChangesView.Merge.text=合并… +action.ReactFunctionToClassComponentAction.text=转换为类组件 +group.Markdown.Tools.text=Markdown 转换器 +action.ResourceExplorer.open.text=Resource Manager +action.ResourceExplorer.open.description=Open the Resource Manager +action.ComputeVFStatistics.text=计算 VF 名称统计信息 +action.sql.IntroduceAliasAction.text=表别名… +action.sql.ExtractFunctionAction.text=提取例程… +action.Vcs.Log.ShowDetailsAction.text=显示详细信息 +action.Vcs.Log.ShowDetailsAction.description=显示详细信息面板 +action.Android.CreateResourceDirectory.text=Android 资源目录 +action.Android.CreateResourceDirectory.description=Create new resource file +action.Add.Embedded.Http.Transport.text=Spring WS 嵌入式 HTTP 服务器传输 +action.Stylelint.Fix.text=Fix Stylelint Problems +action.Stylelint.Fix.description=通过调用 'stylelint --fix' 修正 Stylelint 问题 +action.Android.GenerateSignedApk.text=生成签署的 Bundle/APK… +action.IdeaNewModule.text=添加模块… +action.IdeaNewModule.description=向项目添加新模块 +action.Arrangement.Rule.Match.Condition.Move.Up.text=向上移动 +action.Arrangement.Rule.Match.Condition.Move.Up.description=向上移动所选排列规则 +action.com.intellij.httpClient.actions.microservices.HttpGenerateRequestFromEndpointsAction.text=在 HTTP 客户端中生成请求 +action.AngularJS.Show.Ui.Router.States.Diagram.Action.text=显示 AngularJS ui-router 状态图 +action.AngularJS.Show.Ui.Router.States.Diagram.Action.description=显示 AngularJS ui-router 状态图 +action.AndroidMigrateToNonTransitiveRClassesAction.text=Migrate to Non-Transitive R Classes +action.AndroidMigrateToNonTransitiveRClassesAction.description=Migrates the project to use Non-Transitive R classes +action.ConvertToMacLineSeparators.text=CR - Classic Mac OS (\r) +group.grails.goto.domain.text=转到域 +group.InternalKotlin.text=Kotlin 内部操作 +action.Vcs.Push.Simple.text=推送 +action.AddManyTestProcesses.text=添加多个测试进程 +action.ComputeDiffWithPreviousRevisionAction.text=与上一个规范修订比较 +action.angularCliGenerate.text=Angular 原理图… +action.ActivateCommitToolWindow.text=提交 +action.ActivateCommitToolWindow.description=Activate Commit window +action.Adtui.ZoomToActualAction.text=Zoom to Actual Size (100%) +action.Adtui.ZoomToActualAction.description=Zoom to actual size of preview +action.TerminalDecreaseFontSize.text=减小字体大小 +action.Arrangement.Rule.Match.Condition.Move.Down.text=向下移动 +action.Arrangement.Rule.Match.Condition.Move.Down.description=向下移动所选排列规则 +action.Android.RunAndroidSdkManager.text=SDK Manager +group.RemoteServers.AddCloudConnectionGroup.text=云连接 +action.ServiceView.ActivateSshServiceViewContributor.text=SSH Sessions (Services) +action.ServiceView.ActivateSshServiceViewContributor.description=激活服务窗口 +action.BuildServer.CoverageChooser.text=Show in Editor +group.ExternalSystem.CreateRunConfiguration.text=修改运行配置… +group.Uml.Analyze.text=分析 +action.LoadConfigurationAction.text=加载脚本配置 +action.LoadConfigurationAction.description=Gradle Kotlin DSL 脚本配置已更改。加载变更以获取代码洞察,无需导入外部 Gradle 项目。 +group.Git.Stage.Ui.Settings.text=视图选项 +action.TodoViewGroupByShowPackages.text=软件包 +group.UML.EditorGroup.text=图 +group.UML.EditorGroup.description=图 +action.Hg.Commit.And.Push.Executor.text=Commit and Push… +group.BuildServer.TestStatus.text=Test Status +action.sql.ChangeDialect.text=更改 SQL 方言 +action.NewJavaDiagram.text=Java 类图 +action.StoredExceptionsThrowToggleAction.description=将存储的 PCE 作为新运行时异常再次抛出 +action.Git.Log.Branches.GroupBy.Directory.text=按目录分组 +action.Arrangement.Alias.Rule.Match.Condition.Move.Down.text=向下移动 +action.Arrangement.Alias.Rule.Match.Condition.Move.Down.description=向下移动所选排列规则 +action.TestCompilerReferenceServiceFindUsages.text=编译器引用查找用法 +action.Console.TableResult.Copy.Csv.Settings.ForExport.text=配置 CSV 格式… +action.JavaScript.Debugger.ReloadInBrowser.text=在浏览器中重新加载 +action.JavaScript.Debugger.ReloadInBrowser.description=重新加载当前在调试的浏览器选项卡中打开的页面 +action.DropAnErrorWithAttachments.text=Drop an Error with Attachments +action.DropAnErrorWithAttachments.description=Hold down SHIFT for multiple attachments +action.SingleUserFollowAction.text=Follow single user +action.UsageGrouping.Directory.text=按目录分组 +action.Arrangement.Alias.Rule.Edit.text=编辑规则 +action.Arrangement.Alias.Rule.Edit.description=编辑所选排列规则 +action.Github.Share.text=在 GitHub 上共享项目 +action.Github.Share.description=在 GitHub 上轻松共享项目 +action.ActivateBuildToolWindow.text=构建 +action.ActivateBuildToolWindow.description=Activate Build window +action.com.jetbrains.packagesearch.intellij.plugin.actions.AddDependencyAction.text=添加软件包… +action.com.jetbrains.packagesearch.intellij.plugin.actions.AddDependencyAction.description=向当前模块添加新的依赖项 +action.Vcs.Log.EnableFilterByRegexAction.text=正则表达式 +action.Spring.Create.Context.File.description=Create new Spring configuration file +group.Console.TableResult.ColumnSortingActions.text=Sort +group.TeamCity.MainMenu.RemoteDebugMenu.text=远程调试 +group.TeamCity.MainMenu.RemoteDebugMenu.description=TeamCity remote debug +action.Android.AddCppToModule.text=Add C++ to Module +action.Android.AddCppToModule.description=Add C/C++ code built with CMake or ndk-build to this module +group.OpenInBrowserGroup.text=在浏览器中打开 +group.OpenInBrowserGroup.description=在浏览器中打开所选文件 +action.Adtui.ZoomInAction.text=放大 +action.Adtui.ZoomInAction.description=Zoom in preview +action.ShutdownCodeWithMe.text=关闭访问并断开所有连接 +action.Android.ConvertToNinePatch.text=Create 9-Patch file... +action.Vcs.CherryPick.text=优选 +action.Vcs.CherryPick.description=所选提交由不同的 VCS 跟踪 +group.Vcs.Log.PresentationSettings.text=演示设置 +group.Vcs.Log.PresentationSettings.description=配置日志的演示 +action.DataSharingOptions.text=数据共享选项… +action.DataSharingOptions.description=数据共享选项 +action.Subversion.Create.External.text=创建外部… +action.Subversion.Create.External.description=选择 URL,添加 svn:external 属性,然后可以选择签出 +action.ShowModulesAction.text=按模块对端点分组 +action.EditFlavors.text=Edit Flavors... +action.JavaScript.Debugger.ToggleExceptionBreakpoint.text=遇到异常时切换中断 +action.AddTestProcessAction.text=添加测试进程 +action.ConnectToRemoteFromHost.text=以参与者身份加入另一个 IDE… +action.AvailableDevices.text=Available devices +action.Android.GetAdbAction.text=Get ADB +group.newConfigurationRunClass.text=Run context configuration +group.Vcs.Log.Diff.Preview.Location.text=差异预览位置 +action.android.emulator.boot.options.text=Boot Options +action.android.emulator.boot.options.description=Select an Emulator boot mode +action.BuildServer.InspectionsEnabled.text=Show in Editor +action.ActivateInternalMethodTracingToolWindow.text=内部跟踪 +action.ActivateInternalMethodTracingToolWindow.description=Activate Internal Tracing window +group.BuildServer.CodeCoverage.text=代码覆盖率 +action.android.emulator.back.button.text=后退 +action.android.emulator.back.button.description=Press the Back button +action.Ant_6117483dJSON Schemas Update.text= +group.Console.Jdbc.ChooseSchema.text=设置当前架构 +group.Console.Jdbc.ChooseSchema.description=设置当前架构 +action.Git.Stage.Reset.text=取消暂存 +action.ActivateBeanValidationToolWindow.text=Bean 验证 +action.ActivateBeanValidationToolWindow.description=Activate Bean Validation window +action.intellij.api.watcher.find.external.usages.analyze.deprecated.apis.text=Analyze Deprecated API External Usages... +action.intellij.api.watcher.find.external.usages.analyze.deprecated.apis.description=Analyze deprecated API external usages... +action.CloudConfigSilentlyAction.text=静默同步插件 +action.NewFile.description=创建新文件 +action.Vcs.Log.IntelliSortChooser.text=IntelliSort +action.Vcs.Log.IntelliSortChooser.description=Turn IntelliSort On/Off +action.intellij.api.watcher.CheckChangeListAction.text=Check API Changes +action.intellij.api.watcher.CheckChangeListAction.description=Check API Changes in selected files +action.Javascript.Linters.StandardJS.Fix.text=Fix Standard code style Problems +action.Javascript.Linters.StandardJS.Fix.description=修正标准代码样式问题 +action.Arrangement.Alias.Rule.Add.text=添加规则 +action.Arrangement.Alias.Rule.Add.description=添加新的排列规则 +group.XmlBeans.text=XmlBeans +group.XmlBeans.description=XmlBeans actions +action.intellij.api.watcher.find.external.usages.from.anywhere.text=Find External Usages +action.intellij.api.watcher.find.external.usages.from.anywhere.description=Find External Usages +action.ActivateSpaceToolWindow.text=空格 +action.ActivateSpaceToolWindow.description=Activate Space window +action.NewEditorConfigFile.text=.editorconfig 文件 +action.NewEditorConfigFile.description=创建 .editorconfig 文件 +group.Console.TableResult.PasteFormat.text=粘贴格式 +action.KotlinShellExecute.text=执行 Kotlin 代码 +action.KotlinShellExecute.description=在控制台中执行 Kotlin 代码 +action.Vcs.Log.ShowOnlyAffectedChanges.text=仅显示受影响的变更 +action.Vcs.Log.ShowOnlyAffectedChanges.description=仅显示影响“路径”菜单中所选文件的变更 +group.ImportTests.text=测试历史记录 +group.ImportTests.description=打开最近的测试会话 +group.DevkitNewActions.text=Plugin DevKit +action.DumpUastLog.text=Dump UAST Tree +group.Markdown.Toolbar.Left.text=Markdown 编辑器操作 +action.Android.ShowFileResources.text=Show resources defined in file +action.RestoreDefaultLayout.text=恢复默认布局 +action.PackageFile.text=打包文件 +action.PackageFile.description=更新对应工件中的文件 +action.Console.Jpa.Close.text=关闭 +action.Console.Jpa.Close.description=关闭 JPA 控制台 +action.JS.TypeScript.Compile.text=编译 TypeScript +action.JS.TypeScript.Compile.description=编译当前项目 +action.BuildServer.TestStatusChooser.text=Show in Editor +action.NewPublicEnvironmentFile.text=http-client.env.json +action.NewPublicEnvironmentFile.description=为 HTTP 请求创建环境文件 +action.ConsoleView.ClearAll.text=全部清除 +action.ConsoleView.ClearAll.description=清除控制台的内容 +action.ExternalSystem.DetachProject.text=Unlink External Project +action.ExternalSystem.DetachProject.description=取消链接所选项目 +group.SplitChooser.Actions.text=Split with Chooser Navigation +action.Vcs.Log.Refresh.text=刷新 +action.Vcs.Log.Refresh.description=检查新提交,必要时刷新日志 +action.ConvertToUnixLineSeparators.text=LF - Unix and macOS (\n) +action.android.emulator.screenshot.text=Take Screenshot +action.android.emulator.screenshot.description=Take a screenshot +action.Vcs.Log.FocusTextFilter.text=聚焦文本筛选器 +action.Vcs.Log.FocusTextFilter.description=聚焦文本筛选器或将焦点移回提交列表 +action.OasEndpointsSidePanelSaveAction.text=导出 OpenAPI 规范的草稿 +action.android.emulator.home.button.text=主屏幕 +action.android.emulator.home.button.description=Press the Home button +action.Perforce.Force.Refresh.text=强制刷新 +action.Perforce.Force.Refresh.description=强制刷新(重新查询所有文件状态) +action.Console.Jdbc.BrowseHistory.text=浏览查询历史记录 +action.Console.Jdbc.BrowseHistory.description=浏览查询历史记录 +action.SpringBootDiagnosticsAction.text=Spring Boot Diagnostics +action.ToggleUnattendedHostMode.text=启用无人值守的主持人模式(内部) +action.RemoteServers.EditServerConfig.text=编辑配置 +action.RemoteServers.EditServerConfig.description=编辑选定远程服务器配置 +action.ActivateRunToolWindow.description=Activate Run window +action.Kotlin.NewScript.text=Kotlin 脚本 +action.Kotlin.NewScript.description=创建新的 Kotlin 脚本 +action.ShowSidePanelAction.text=显示端点侧面板 +action.com.intellij.analysis.pwa.actions.debug.PwaCheckErrorsConsistencyAction.text=Pwa check errors consistency +action.com.intellij.analysis.pwa.actions.debug.PwaCheckErrorsConsistencyAction.description=Check that all errors in error storage corresponds to the ones from files +action.Grails.UpdateSettings.text=同步 Grails 设置 +action.Grails.UpdateSettings.description=刷新 IntelliJ IDEA 项目结构,使其与 Grails 构建设置匹配 +group.WebServicesActions.text=WebService +group.WebServicesActions.description=Web Services actions +action.NewAndroidImageAsset.text=Image Asset +action.NewAndroidImageAsset.description=Open Asset Studio to create an image asset +action.Github.PullRequest.Changes.Reload.text=刷新拉取请求变更 +action.EditorSearchSession.ToggleRegex.text=正则表达式 +action.ShowWholeProjectMicroservicesDiagram.text=服务关系图 +group.Debugger.ViewAsGroup.text=查看方式 +action.RunToolbarRunConfigurationsAction.description=打开“编辑运行/调试配置”对话框 +action.Vcs.Log.GoToParent.text=转到父提交 +action.Vcs.Log.GoToParent.description=导航到提交图中的父行 +action.ViewGrailsEditorToolbarAction.text=Grails Editor Toolbar +action.ExternalSystem.RefreshProject.text=Reload External Project +action.ExternalSystem.RefreshProject.description=Force reload selected linked external project +action.Git.Stage.ToggleIgnored.text=显示忽略的文件 +action.Git.Stage.ToggleIgnored.description=显示忽略的文件 +action.Terminal.Share.text=共享 +action.GotoUrlAction.text=转到 URL 映射… +action.IdeaNewProject.text=新建项目… +action.Github.PullRequest.Timeline.Update.text=刷新时间线 +action.Github.PullRequest.Timeline.Update.description=检查新时间线事件 +action.Git.Stage.AcceptYours.text=接受您的变更 +action.Vcs.Log.GetVersion.text=获取 +action.Vcs.Log.GetVersion.description=从仓库获取版本 +action.Arrangement.Rule.Group.Condition.Move.Down.text=向下移动 +action.Arrangement.Rule.Group.Condition.Move.Down.description=向下移动所选排列规则 +action.DatabaseView.AddDataSourceHere.text=路径中的数据源 +action.DatabaseView.AddDataSourceHere.description=在当前目录中创建新数据源 +group.Console.Jdbc.ExplainGroup.text=Explain Plan +action.Git.Stage.Revert.text=回滚 +action.DumpEditorsAction.text=DumpRemoteEditors +group.EndpointsActions.OptionsMenu.text=选项 +action.EditorSearchSession.ToggleMatchCase.text=区分大小写 +action.Android.Designer.IssueNotificationAction.text=Toggle Issue Panel +action.Android.Designer.IssueNotificationAction.description=Toggle visibility of issue panel +action.intellij.api.watcher.CheckOutgoingCommitsApiChangesAction.text=Check API Changes in Outgoing Commits +action.intellij.api.watcher.CheckOutgoingCommitsApiChangesAction.description=Check API Changes in Outgoing Commits +action.Javaee.Deploy.text=全部部署 +group.Internal.SharedIndexes.text=共享索引 +group.Images.Thumbnails.FilterByTag.text=按标记筛选 +group.Images.Thumbnails.FilterByTag.description=按标记筛选图像 +action.Subversion.TogglePropertiesDiff.text=显示属性 +action.Subversion.TogglePropertiesDiff.description=显示 SVN 属性的差异 +action.sql.ExtractNamedQueryAction.text=子查询为 CTE +action.Grails.ChangeSDK.text=配置 Grails SDK +group.Vcs.Log.TextFilterSettings.text=文本筛选器设置 +group.Vcs.Log.TextFilterSettings.description=选择文本筛选器选项 +action.RemoveBom.text=移除 BOM +action.RemoveBom.description=Remove byte order mark from null +action.ToggleBookmark.text=Toggle Bookmark +action.EditBuildTypes.text=Edit Build Types... +action.RunOnMultipleDevices.text=Run on Multiple Devices +action.RemoteHostView.EditSource.text=Edit Local File +action.RemoteHostView.EditSource.description=在编辑器中打开本地文件 +action.JavaScript.Debugger.RestartFrame.text=重启框架 +action.JavaScript.Debugger.RestartFrame.description=重启当前框架 +action.ES6.Generate.Index.text=生成 index.js/index.ts +action.ES6.Generate.Index.description=生成 index.js/index.ts +action.Read.V8.Log.In.House.text=分析 V8 分析日志… +action.Read.V8.Log.In.House.description=读取 V8 分析日志文件,显示 CPU 分析结果。 +action.Ant_6117483dLexers.text=<默认目标> +action.ExternalSystem.ProjectRefreshAction.text=加载变更 +action.ExternalSystem.ProjectRefreshAction.description=Load build system changes into IntelliJ IDEA. +action.TC.VCS.RemoteRunAction.text=Remote Run in TeamCity +action.TC.VCS.RemoteRunAction.description=TeamCity remote run/pre-tested commit +action.WebServicesPlugin.CreateWebService.description=Creates JEE WebService +action.android.emulator.snapshots.text=Snapshots +action.android.emulator.snapshots.description=Create, load, rename or delete snapshots +action.SelectMultipleDevices.text=Select Multiple Devices... +action.UML.ShowChanges.text=以 UML 显示本地变更 +group.Vcs.Log.ToggleColumns.text=显示列 +group.Vcs.Log.ToggleColumns.description=选择要在表中查看的列 +action.Kotlin.NewWorksheet.text=Kotlin 工作表 +action.Kotlin.NewWorksheet.description=创建新的 Kotlin 工作表 +action.DumpVfsInfoForExcludedFiles.text=转储排除根下文件的 VFS 内容 +action.ActivateTypeScriptToolWindow.text=TypeScript +action.ActivateTypeScriptToolWindow.description=Activate TypeScript window +group.BuildServer.CodeDuplicates.text=Code Duplicates +action.InvalidateJavaCacheAction.text=Twooh: Invalidate Module Id Cache (Java) +action.Arrangement.Rule.Section.Add.text=添加部分规则 +action.Arrangement.Rule.Section.Add.description=添加新部分排列规则 +action.AddDataSourceFromServer.text=Import Data Sources From server +action.AddDataSourceFromServer.description=Import data sources from server +action.JEditorPaneDemoAction.text=HTML Rendering Playground +action.ExternalSystem.OpenTasksActivationManager.text=任务激活 +action.ExternalSystem.OpenTasksActivationManager.description=Edit external system tasks activation settings +action.ShowSettings.text=偏好设置… +action.ShowSettings.description=编辑应用程序偏好设置 +action.android.emulator.rotate.left.text=Rotate Left +action.android.emulator.rotate.left.description=Rotate counterclockwise by 90 degrees +action.Console.Jpa.Execute.text=执行查询 +action.Console.Jpa.Execute.description=在控制台中执行查询 +action.CloudConfigPluginsAction.text=选择要更新的插件… +action.Vcs.Log.ExpandAll.text=Expand Linear Branches +action.Vcs.Log.ExpandAll.description=Expand linear branches +action.RemoteServers.ConnectServer.text=连接 +action.RemoteServers.ConnectServer.description=连接到选定远程服务器 +action.Git.Stage.Merge.text=合并… +action.Vcs.Log.AlignLabels.text=将引用对齐到左侧 +action.Vcs.Log.AlignLabels.description=在提交消息左侧显示引用 +action.TypeScript.Enable.Service.text=TypeScript 语言服务 +action.KotlinCompilerReferenceIndexVerifierAction.text=显示编译器索引状态 +action.Android.TransportDemo.text=Transport Pipeline +action.NewStylesheetFile.text=样式表 +action.NewStylesheetFile.description=创建一个样式表 +group.Log.KeymapGroup.text=日志 +group.Markdown.Toolbar.Floating.text=格式化 +group.Console.TableResult.ChangePageSize.text=更改页面大小 +group.Console.TableResult.ChangePageSize.description=更改页面大小 +action.BuildServer.TestStatusShowSuccessfulToggle.text=Show Successful +group.Uml.NewGroup.text=图 +action.Vcs.Log.ResumeIndexing.text=恢复索引编制 +action.Vcs.Log.ResumeIndexing.description=索引编制已暂停,因为它花费的时间比预期长。恢复。 +action.ToggleNodeCoreCodingAssistanceAction.text=切换 Node.js 的编码辅助 +action.TerminalSplitActionBase$Vertical.text=向右拆分 +action.Android.EditFlags.text=Edit Studio Flags +group.newConfigurationRunCoverage.text=Run with Coverage context configuration +action.NewAndroidVectorAsset.text=Vector Asset +action.NewAndroidVectorAsset.description=Open Vector Asset Studio to create an image asset +action.Vcs.Log.ShowTooltip.text=显示提交工具提示 +action.Vcs.Log.ShowTooltip.description=在日志中为当前选定提交显示工具提示 +action.Github.Create.Gist.text=创建 Gist… +action.Github.Create.Gist.description=创建 GitHub gist +action.Android.Designer.ForceRefreshPreview.text=强制刷新布局 +action.Android.Designer.ForceRefreshPreview.description=Refresh preview(s) +action.android.deploy.ApplyChanges.text=Apply Changes and Restart Activity +action.android.deploy.ApplyChanges.description=Attempt to apply resource and code changes and restart activity. +action.Android.GenerateRoomMigration.text=Generate a Room migration +action.TeamCity.MainMenu.RemoteRunPushAction.text=Remote Run Outgoing Changes... +action.TeamCity.MainMenu.RemoteRunPushAction.description=Perform remote run operation in TeamCity for all outgoing changes without commit +action.ConvertToWindowsLineSeparators.text=CRLF - Windows (\r\n) +action.Vcs.Log.ShowOtherBranches.text=显示所有分支 +action.Vcs.Log.ShowOtherBranches.description=在仅显示当前分支和显示所有分支之间切换 +action.ActivateTeamCityToolWindow.text=TeamCity +action.ActivateTeamCityToolWindow.description=Activate TeamCity window +action.Terminal.NextSplitter.text=Goto Next Splitter +action.Vcs.ReformatCommitMessage.text=重新格式化提交消息 +action.DatabaseView.AddDataSourceFromPath.text=Data Source from Path +action.DatabaseView.AddDataSourceFromPath.description=Creates new data source from file +group.sql.ChangeDialect.toolbar.text=更改 SQL 方言 +action.android.emulator.rotate.right.text=Rotate Right +action.android.emulator.rotate.right.description=Rotate clockwise by 90 degrees +action.Android.AnalyzeApk.text=Analyze APK... +action.OpenCallToolwindowAction.text=打开呼叫工具窗口… +action.ContextDebug.text=Debug context configuration +action.Android.Device.Picker.Help.text=帮助 +action.ActivateEventLogToolWindow.text=事件日志 +action.ActivateEventLogToolWindow.description=Activate Event Log window +group.Android.Designer.LayoutEditorActions.text=Layout Editor +action.RoundedIconTestAction.text=Show Rounded Icon +action.Android.OpenStringResourceEditor.text=Open Translations Editor +group.Spring.Beans.Generate.Action.text=Spring Bean +group.AxisActions.text=Axis +group.AxisActions.description=Axis specific actions +action.SelectBuildVariant.text=Select Build Variant... +action.ExternalSystem.AttachProject.text=Link External Project +action.ExternalSystem.AttachProject.description=Link external project to the current IDE project +action.CreateAllServicesAndExtensions.text=Create All Services And Extensions +action.ContextRun.text=Run context configuration +action.ActivateStructureToolWindow.text=结构 +action.ActivateStructureToolWindow.description=Activate Structure window +action.Android.ShowRoomSchema.text=Show Room schema +action.CWMManageLicense.text=管理许可证 +action.android.emulator.power.button.text=Power +action.android.emulator.power.button.description=Press the Power button +action.Vcs.Log.CollapseAll.text=收起线性分支 +action.Vcs.Log.CollapseAll.description=收起线性分支 +action.Gradle.AddGradleDslDependencyAction.text=添加 Maven 工件依赖项 +action.Gradle.AddGradleDslDependencyAction.description=向项目中添加所选 Maven 工件依赖项 +action.LightEditOpenFileInProject.text=在项目中打开文件… +action.CreateJavaeeWebPageAction.text=JSP/JSPX +action.CreateJavaeeWebPageAction.description=创建新 JSP/JSPX 页面 +action.DuplicatesForm.SendToLeft.text=发送至左侧 +action.DuplicatesForm.SendToLeft.description=作为左侧差异版本显示所选条目 +action.Android.StopGradleDaemons.text=Stop Gradle Daemons and Restart +group.J2EEGenerateGroup.text=J2EE +action.ActivateTODOToolWindow.text=TODO +action.ActivateTODOToolWindow.description=Activate TODO window +action.androidAddToISuite.text=Add to Android JUnit pattern suite +action.UsageGrouping.Package.text=打包 +action.WelcomeScreen.RevealIn.text=在访达中显示 +action.ActivateProjectToolWindow.text=项目 +action.ActivateProjectToolWindow.description=Activate Project window +action.SeverityEditorDialog.text=显示严重性编辑器 +action.ReactClassToFunctionComponentAction.text=转换为函数组件 +group.android.emulator.snapshot.text=Snapshots +group.android.emulator.snapshot.description=Create or select an Emulator snapshot +action.TrainLocalModelsAction.text=为当前项目训练本地 ML 模型 +action.ShowSearchHistory.description=搜索历史记录 +group.Docker.RemoteServersViewToolbar.text=Docker +action.KotlinGenerateMavenTestCompileExecutionAction.description=kotlin-maven-execution-provider +action.Vcs.Log.ShowDiffPreview.text=显示差异预览 +action.Vcs.Log.ShowDiffPreview.description=显示差异预览面板 +group.newConfigurationDebugClass.text=Debug context configuration +group.Hg.Ignore.File.text=Add to .hgignore +group.Hg.Ignore.File.description=Add selected files to .hgignore +action.Github.PullRequest.Timeline.Show.text=查看对话 +action.Github.PullRequest.Timeline.Show.description=查看拉取请求时间线 +group.Console.TableResult.ChooseExtractor.text=选择数据提取程序 +group.Console.TableResult.ChooseExtractor.description=选择数据提取程序 +action.NewFxmlFile.text=FXML 文件 +action.NewFxmlFile.description=创建新的 FXML 文件 +group.Git.Ignore.File.text=Add to .gitignore +group.Git.Ignore.File.description=Add selected files to .gitignore +action.Github.Break.Api.Requests.text=Break GitHub API Requests +action.Android.DumpProjectData.text=Dump Project Data Nodes +action.ShowSettingsWithAddedPattern.text=Disable Hints for Method ' +action.ShowSettingsWithAddedPattern.description=打开形参名称提示设置 +action.Android Profiler.description=Profile selected configuration +action.android.emulator.volume.down.button.text=Volume Down +action.android.emulator.volume.down.button.description=Press the Volume Down button +action.Vcs.Log.MatchCaseAction.text=区分大小写 +action.Vcs.Log.PreferCommitDate.text=显示提交时间戳 +action.Vcs.Log.PreferCommitDate.description=显示提交变更的时间,而不是创建时间。 +action.EditorSearchSession.ToggleWholeWordsOnlyAction.text=单词 +action.Arrangement.Rule.Add.text=添加规则 +action.Arrangement.Rule.Add.description=添加新的排列规则 +group.GuiDesigner.NewActions.text=Swing UI 设计器 +action.DumpUastLogByElement.text=Dump UAST Tree By Each PsiElement +action.ResourceExplorer.show.text=Show In Resource Manager +action.ResourceExplorer.show.description=Display selected file in the Resource Manager +action.ActivateServicesToolWindow.text=服务 +action.ActivateServicesToolWindow.description=激活服务窗口 +group.CircletGroup.text=空格 +action.WelcomeScreen.Settings.text=偏好设置… +action.WelcomeScreen.Settings.description=编辑应用程序偏好设置 +action.OpenEventsSchemeFileAction.text=Open FUS Scheme File +action.OpenEventsSchemeFileAction.description=在 IDE 中打开事件方案文件 +action.RenderLaggingMode.text=Enable Layout Preview Lagging Mode +action.Arrangement.Rule.Edit.text=编辑规则 +action.Arrangement.Rule.Edit.description=编辑所选排列规则 +action.CreateTaglibFileAction.text=JSP 标记库描述符 +action.CreateTaglibFileAction.description=创建新 JSP 标记库描述符(.tld 文件) +group.RunClass.text=Run context configuration +group.RecentProjectListGroup.text=Open Recent +action.CopyControllerJoinLinkAction.text=复制无人值守的控制器加入链接 +action.ActivateFavoritesToolWindow.text=收藏夹 +action.ActivateFavoritesToolWindow.description=Activate Favorites window +action.TestCompilerReferenceServiceFunctionalExpressionSearch.text=编译器引用函数表达式搜索 +action.PauseOutput.text=暂停输出 +action.MarkNotificationsAsRead.text=将所有通知标记为已读 +action.MarkNotificationsAsRead.description=将所有未读通知标记为已读 +action.AnimationPanelTestAction.text=Show Animation Panel +group.Spy-js.Stack.Tree.Navigate.This.text=此函数 +action.Arrangement.Alias.Rule.Match.Condition.Move.Up.text=向上移动 +action.Arrangement.Alias.Rule.Match.Condition.Move.Up.description=向上移动所选排列规则 +action.ConvertModuleGroupsToQualifiedNames.text=将模块组转换为限定名称… +action.ConvertModuleGroupsToQualifiedNames.description=按添加到模块名称的前缀替换模块组 +action.WebServicesPlugin.CreateRestfulWebService.description=RESTful Web 服务 +action.CreateServletAction.description=创建新 Servlet +action.Vcs.Log.CompareRevisions.text=比较版本 +action.Vcs.Log.CompareRevisions.description=比较选定版本 +group.grails.goto.test.text=转到测试 +action.Android.TerminateAdbAction.text=Terminate ADB +group.PluginDeployActions.text=插件部署操作 +action.Servers.DeployWithDebug.text=调试 +action.Servers.DeployWithDebug.description=部署并调试选定项 +action.Github.Create.Pull.Request.text=创建拉取请求… +group.REST.text=RESTful Web 服务 +group.REST.description=REST 特定操作 +action.JoinCallAction.text=加入语音通话 +action.ActivateDatabaseToolWindow.text=数据库 +action.ActivateDatabaseToolWindow.description=Activate Database window +action.ActivateVersionControlToolWindow.text=Git +action.ActivateVersionControlToolWindow.description=Activate Git window +action.GenerateFilterAction.text=筛选… +action.TC.VCS.Popup.RemoteDebugWithLocalChangesAction.text=Remote Debug in TeamCity +action.TC.VCS.Popup.RemoteDebugWithLocalChangesAction.description=Remote debug in TeamCity with sending local changes +action.Github.PullRequest.Comments.Reload.text=刷新拉取请求评论 +action.android.emulator.create.snapshot.text=创建快照 +action.android.emulator.create.snapshot.description=Create a snapshot of the Emulator state +group.newConfigurationProfileRunClass.text=Profile context configuration +group.Docker.RemoteServers.ComposeUp.text=部署 +action.ActivateDatabaseChangesToolWindow.text=数据库变更 +action.ActivateDatabaseChangesToolWindow.description=Activate Database Changes window +action.TypeHierarchy.Subtypes.description=切换到子类型层次结构 +action.ByteCodeDecompiler.text=显示反编译的类 +action.Coverage.text=Run with Coverage +action.Coverage.description=运行已启用覆盖率的所选配置 +action.ActivatePullRequestsToolWindow.text=拉取请求 +action.ActivatePullRequestsToolWindow.description=Activate Pull Requests window +action.CloudConfigUpdateApi.text=同步新设置… +action.intellij.api.watcher.find.external.usages.from.editor.text=Find External Usages +action.intellij.api.watcher.find.external.usages.from.editor.description=Find Usages in external plugins +action.ActivateCDIToolWindow.text=CDI +action.ActivateCDIToolWindow.description=Activate CDI window +action.DuplicatesForm.SendToRight.text=发送至右侧 +action.DuplicatesForm.SendToRight.description=作为右侧差异版本显示所选条目 +action.BrowseWeb.text=Browse Web... +action.Android.Designer.LayoutScannerAction.text=Run accessibility scanner +action.Android.Designer.LayoutScannerAction.description=Run accessibility testing framework scanner on current layout +action.MaximizeEditorInSplit.text=Maximize Editor/Normalize Splits +action.TypeScript.Restart.Service.text=重启 TypeScript 服务 +action.Vcs.Log.ShowTagNames.text=显示标记名称 +action.Vcs.Log.ShowTagNames.description=在表中显示标记名称 +action.ImportTestsFromFile.description=从 XML 文件导入测试执行的结果 +action.Vcs.Log.MoveDiffPreviewToBottom.text=底部 +action.Vcs.Log.MoveDiffPreviewToBottom.description=在底部找到差异预览 +action.NewJavaFXApplication.text=JavaFX 应用程序 +action.NewJavaFXApplication.description=创建 JavaFX 应用程序类 +group.DatabaseView.Scripted.Extensions.text=Scripted Extensions +group.DatabaseView.Scripted.Extensions.description=显示脚本 +action.NewModulesDiagram.text=模块依赖关系图 +action.Add.Email.Transport.text=Spring WS 电子邮件传输 +action.CloudConfigSelfSettingsAction.text=选择要同步的设置… +action.ActivateSpringToolWindow.text=Spring +action.ActivateSpringToolWindow.description=Activate Spring window +group.Console.Jdbc.ChooseSession.text=附加会话 +group.Console.Jdbc.ChooseSession.description=将文件附加到会话 +group.CreateRunConfiguration.text=修改运行配置… +group.CreateRunConfiguration.description=根据当前上下文创建运行配置 +action.RemoteServers.ChooseServerDeploymentWithDebug.text=调试 +action.RemoteServers.ChooseServerDeploymentWithDebug.description=在选定远程服务器上部署和调试给定项 +action.CloudConfigDisableAction.text=禁用同步… +action.ReactivePostOpenProjectActionsAction.text=Kotlin Project Post-Open Activity +action.Android.GenerateLayoutTestSkeletonAction.text=Generate LayoutTest Skeleton +action.TypeScript.Include.Sources.text=包括 JavaScript 文件 +group.TeamCity.VCS.RemoteDebugMenu.text=远程调试 +group.TeamCity.VCS.RemoteDebugMenu.description=TeamCity remote debug +group.Console.TableResult.EditMaximized.ChangeType.text=更改类型 +group.Console.TableResult.EditMaximized.ChangeType.description=更改单元类型 +action.NewTypeScriptFile.text=TypeScript 文件 +action.NewTypeScriptFile.description=创建新的 TypeScript 文件 +action.EscUnfollowUserAction.text=Unfollow current lead +action.TodoViewGroupByFlattenPackage.text= 平展视图 +action.Vcs.OpenRepositoryVersion.text=打开仓库版本 +action.Vcs.OpenRepositoryVersion.description=在编辑器中打开文件的所选修订 +action.SoundSettingsAction.text=声音设置… +action.UsageGrouping.Module.text=模块 +action.EditLibraryAndDependencies.text=Edit Libraries and Dependencies... +action.Vcs.Log.ShowLongEdges.text=Show Long Edges +action.Vcs.Log.ShowLongEdges.description=即使提交在当前视图中不可见,也显示长分支边缘。 +action.WelcomeScreen.Configure.ProjectStructure.text=新项目的结构… +action.WelcomeScreen.Configure.ProjectStructure.description=配置所有新项目的默认结构 +action.ServiceView.ActivateDockerServiceViewContributor.text=Docker (Services) +action.ServiceView.ActivateDockerServiceViewContributor.description=激活服务窗口 +action.NewTypeScriptConfigFile.text=tsconfig.json File +action.NewTypeScriptConfigFile.description=Creates a new tsconfig.json file +action.UpdateRunningApplication.description=更新正在运行的应用程序 +action.Android.Designer.NextDevice.text=Preview Next Device +action.Android.Designer.NextDevice.description=Change to next device in the device menu +action.ChangesView.ToggleCommitUi.text=提交… +action.Android.BuildApk.text=Build APK(s) +action.android.deploy.DebugWithoutBuild.text=Lack of Project +action.android.deploy.DebugWithoutBuild.description=Disabled due to lack of project +group.CodeWithMe.text=CodeWithMe +group.Spy-js.Stack.Tree.Navigate.Next.text=此文件中的下一个函数 +action.RemoteServers.DisconnectServer.text=断开 +action.RemoteServers.DisconnectServer.description=从选定远程服务器断开 +group..text=Graphs +action.BuildServer.ProjectDuplicates.text=浏览… +action.InvalidateKotlinCacheAction.text=Twooh Invalidate Module-Id Cache (Kotlin) +action.com.intellij.analysis.pwa.actions.PwaRestartAction.text=重新开始项目范围分析 +action.hprof-viewer.text=打开 Hprof 快照 +action.Console.Jpa.Terminate.text=终止进程 +action.Console.Jpa.Terminate.description=终止 JPA 控制台进程 +action.ExternalSystem.IgnoreProject.text=Ignore External Project +action.ExternalSystem.IgnoreProject.description=Ignore selected external project +action.install-vscode-plugin.text=Install VSCode Plugin... +action.install-vscode-plugin.description=Installs plugin for VSCode +group.UML.Group.Simple.text=图 +group.UML.Group.Simple.description=图 +group.PublishGroup.text=部署 +action.FileHistory.AnnotateRevision.text=注解 +action.FileHistory.AnnotateRevision.description=注解文件 +action.Servers.Undeploy.text=取消部署 +action.Servers.Undeploy.description=取消部署选定项 +group.Vcs.Log.LayoutConfiguration.text=配置布局 +group.Vcs.Log.LayoutConfiguration.description=配置窗口布局 +action.TypeHierarchy.Supertypes.description=切换到父类型层次结构 +action.CreateResourceBundle.text=资源包 +action.com.intellij.apiwatcher.plugin.settings.CheckApiChangesOfCurrentProject.text=API Watcher: Check API Changes of Current Project +action.com.intellij.apiwatcher.plugin.settings.CheckApiChangesOfCurrentProject.description=Add current project's API under supervision of the API Watcher plugin. API Watcher will be checking commits and pushes to detect breaking API changes. +action.KotlinGenerateMavenCompileExecutionAction.description=kotlin-maven-execution-provider +group.Internal.DevKit.text=DevKit +group.Profiler.text=Run with 'Async Profiler' +group.Profiler.description=使用分析器运行所选配置 +action.NewPackageInfo.text=package-info.java +action.NewPackageInfo.description=创建新的 package-info.java +action.RemoteHostView.ToggleExclusion.text=Excluded from Download +action.RemoteHostView.ToggleExclusion.description=添加排除主机的路径,以避免向其或其子级上传任何内容或从中下载任何内容。 +action.Android.SyncProject.text=Sync Project with Gradle Files +group.Git.Log.Branches.Settings.text=分支窗格设置 +action.hg4idea.QRefresh.text=从文件重新加载 +action.hg4idea.QRefresh.description=从 mq 补丁系列文件重新加载补丁信息 +action.angularCliAdd.text=Angular 依赖项… +action.com.jetbrains.plugins.remotesdk.console.RunSshConsoleAction.text=启动 SSH 会话… +action.com.jetbrains.plugins.remotesdk.console.RunSshConsoleAction.description=启动 SSH 会话 +action.TypeChars.text=输入字符 +group.Markdown.Toolbar.Right.text=Markdown 编辑器布局操作 +action.Grails.GSP.text=GSP +action.Grails.GSP.description=创建新的 Groovy Server Page +action.Github.PullRequest.Review.Submit.text=… +action.Github.PullRequest.Review.Submit.description=提交拉取请求审查 +action.ExternalSystem.OpenConfig.text=Open External Config +action.ExternalSystem.OpenConfig.description=Opens the external project file in the editor +action.Batch.Job.Create.text=新建批处理作业文件 +action.Batch.Job.Create.description=创建批处理作业文件 +action.NewModuleInfo.text=module-info.java +action.NewModuleInfo.description=创建新的 module-info.java +action.Android.RunLayoutInspector.text=Layout Inspector +action.Android.RunLayoutInspector.description=Inspect Layout for the selected window +action.KotlinGenerateMavenPluginAction.description=kotlin-maven-plugin-provider +action.ServiceView.ActivateRunDashboardServiceViewContributor.text=Run Dashboard (Services) +action.ServiceView.ActivateRunDashboardServiceViewContributor.description=激活服务窗口 +action.HTTPClient.CopyResponseBody.text=将响应正文复制到剪贴板 +group.KotlinRefactoringTesting.text=Kotlin 重构测试 +group.Console.TableResult.ViewAs.text=查看方式 +action.TC.VCS.RemoteRunPushAction.text=Remote Run Outgoing Changes in TeamCity... +action.android.deploy.CodeSwap.text=Apply Code Changes +action.android.deploy.CodeSwap.description=Attempt to apply only code changes without restarting anything. +action.DatabaseView.AddDataSourceFromThat.text=从选区添加数据源… +action.DatabaseView.AddDataSourceFromThat.description=Creates new data source from selected file +action.UpdateIdeFromSourcesSettings.text=从源代码设置更新 IDE… +action.UpdateIdeFromSourcesSettings.description=从当前打开的源代码构建 IntelliJ IDEA 的安装,并用它替换当前的安装。 +action.$Undo.description=Undo last operation +action.Add.Jms.Transport.text=Spring WS JMS 传输 +action.sql.SelectCurrentStatement.text=选择当前语句 +group.Android.BuildApkOrBundle.text=Build Bundle(s) / APK(s) +action.EditBookmark.text=编辑书签描述… +action.EditBookmark.description=编辑此书签的说明 +action.Android.Designer.ToggleDeviceNightMode.text=Toggle Device Night Mode +action.Android.Designer.ToggleDeviceNightMode.description=Enable or disable the Night mode of preview +action.EslintImportCodeStyle.text=应用 ESLint 代码样式规则 +group.Spy-js.Stack.Tree.Navigate.text=导航到 +group.OpenInBrowserEditorContextBarGroupAction.text=在浏览器中打开 +action.Android.RunLegacyLayoutInspector.text=旧版 Layout Inspector +action.Android.RunLegacyLayoutInspector.description=Inspect Layout for the selected window +action.ConvertFormToDslAction.text=将表单转换为 UI DSL +action.android.emulator.overview.button.text=概览 +action.android.emulator.overview.button.description=Press the Overview button +action.LeaveCallAction.text=离开通话 +action.Load.V8.Heap.Snapshot.text=分析 V8 堆快照… +action.Load.V8.Heap.Snapshot.description=分析 V8 堆快照 +action.RemoteServers.ChooseServerDeployment.text=部署 +action.RemoteServers.ChooseServerDeployment.description=将给定项部署到选定远程服务器上 +action.Kotlin.NewFile.text=Kotlin 类/文件 +action.Kotlin.NewFile.description=创建新的 Kotlin 类或文件 +action.CWMHostShowPopupAction.text=Show Code With Me popup +action.DumpFormattingModel.text=转储格式化模型 +action.ServiceView.ActivateDatabaseServiceViewContributor.text=Database (Services) +action.ServiceView.ActivateDatabaseServiceViewContributor.description=激活服务窗口 +action.DatabaseView.Tools.RecompileAction.text=Recompile... +action.DatabaseView.Tools.RecompileAction.description=重新编译所选对象 +action.BuildServer.ShowProjecct.text=浏览… +action.Git.ChangesView.AcceptTheirs.text=接受他们的变更 +action.Github.PullRequest.Show.text=查看拉取请求 +action.Github.PullRequest.Show.description=查看拉取请求信息和时间线 +action.OpenEventsTestSchemeFileAction.text=Open FUS Test Scheme File +action.OpenEventsTestSchemeFileAction.description=在 IDE 中打开事件测试方案文件 +action.TodoViewGroupByShowModules.text=模块 +action.NewModuleInGroup.description=向项目添加新模块 +action.UsageGrouping.FlattenModules.text=平展模块 +action.ShowFromLibrariesAction.text=显示库中的端点 +group.BuildServer.CodeInspection.text=代码检查 +group.grails.goto.controller.text=转到控制器 +action.Vcs.Log.GoToChild.text=转到子提交 +action.Vcs.Log.GoToChild.description=导航到提交图中的子行 +action.RunDashboard.Run.description=运行所选配置 +action.NewPackageJsonFile.text=package.json 文件 +action.NewPackageJsonFile.description=创建 package.json 文件 +action.BuildServer.LoginInfo.text=Log in to TeamCity... +action.BuildServer.LoginInfo.description=Log in to TeamCity +group.Maven.GenerateGroup.text=生成 +action.EditorSearchSession.NextOccurrenceAction.text=下一个匹配项 +action.EditorSearchSession.NextOccurrenceAction.description=导航到下一个匹配项 +group.RunCoverage.text=Run with Coverage context configuration +action.Javaee.RefreshDeploymentStatus.text=刷新部署状态 +action.Perforce.SyncToRevision.text=同步到此修订 +action.Android.SwingProfiler.text=Enable Swing Profiler +action.Angular2ExtractComponentAction.text=提取组件… +action.DirDiffMenu.CompareNewFilesWithEachOtherAction.description=将左侧和右侧的所选新文件相互比较。 +action.ShowPermissionsAction.text=权限和安全性… +action.TerminalResetFontSize.text=重置字体大小 +action.UsageGrouping.FileStructure.text=文件结构 +action.CompactListItemsAction.text=紧凑端点列表条目 +action.WebServicesPlugin.CreateRestfulWebServiceClient.description=RESTful Web 服务客户端 +action.android.emulator.volume.up.button.text=Volume Up +action.android.emulator.volume.up.button.description=Press the Volume Up button +action.ShowGruntTasks.text=Show Grunt Tasks +action.RunInspectionOn.text=运行检查… +action.BuildServer.Settings.text=设置… +action.Android.ChooseProfileConfiguration.text=Profile... +action.Android.ChooseProfileConfiguration.description=Choose and profile configuration +group.TW.MoveToGroup.text=移至 +action.ReloadAllClientToolWindows.text=重新加载所有客户端工具窗口 +group.Maven.ShowSettingsGroup.text=构建工具设置 +action.CreateOpenapiSpecification.text=OpenAPI 规范 +action.CreateOpenapiSpecification.description=创建 OpenAPI/Swagger 规范文件 +action.Vcs.Log.AnnotateRevisionAction.text=注解 +action.Vcs.Log.AnnotateRevisionAction.description=注解选定修订 +action.Adtui.ZoomToFitAction.text=Zoom to Fit Screen +action.Adtui.ZoomToFitAction.description=Zoom the preview to fit the screen size +action.Arrangement.Rule.Group.Condition.Move.Up.text=向上移动 +action.Arrangement.Rule.Group.Condition.Move.Up.description=向上移动所选排列规则 +action.ShowNpmScripts.text=显示 npm 脚本 +action.CleanGradleProject.text=Clean Project +action.Circlet.TestCircletAction.text=Test Space... +action.EnablePackageJsonMismatchedDependenciesNotification.text=启用有关从 package.json 安装依赖项的通知 +action.GoToTab4.text=Select Tab #4 +action.GoToTab4.description=Activate tab #4 +action.GoToTab5.text=Select Tab #5 +action.GoToTab5.description=Activate tab #5 +action.GoToTab2.text=Select Tab #2 +action.GoToTab2.description=Activate tab #2 +action.GoToTab3.text=Select Tab #3 +action.GoToTab3.description=Activate tab #3 +action.GoToTab8.text=Select Tab #8 +action.GoToTab8.description=Activate tab #8 +action.GoToTab9.text=Select Tab #9 +action.GoToTab9.description=Activate tab #9 +action.GoToTab6.text=Select Tab #6 +action.GoToTab6.description=Activate tab #6 +action.GoToTab7.text=Select Tab #7 +action.GoToTab7.description=Activate tab #7 +action.MultiplatformCompositeAnalysisToggleAction.description=一起分析具有不同平台的模块 +group.Console.TableResult.ChangeIsolation.text=Tx 隔离 +group.Console.TableResult.ChangeIsolation.description=更改事务隔离级别 +action.Faces.CreateJsfAction.text=JSF/Facelets +action.Faces.CreateJsfAction.description=创建新的 JSF/Facelets 页面 +action.GoToTab1.text=Select Tab #1 +action.GoToTab1.description=Activate tab #1 +group.RemoteServersViewToolbar.text=远程服务器 +action.EmojiAndSymbols.text=Emoji & Symbols +action.ActivateTerminalToolWindow.text=终端 +action.ActivateTerminalToolWindow.description=Activate Terminal window +action.TypeScriptExtractTypeAlias.text=类型别名… +action.EditInspectionSettings.text=编辑设置 +action.MaximizeToolWindow.text=最大化工具窗口 +action.UnmarkGeneratedSourceRoot.text=Unmark Generated Sources Root +action.UnmarkGeneratedSourceRoot.description=Mark directory as an ordinary sources root +action.LegacyNewAndroidComponent.text=Android Component +action.LegacyNewAndroidComponent.description=Create a new Android object from the Other category +action.Adtui.ZoomResetAction.text=重置缩放 +action.Adtui.ZoomResetAction.description=Reset zoom level to default +action.ConnectToControlSocketAction.text=连接到远程控制套接字(内部) +action.ActivatePackagesToolWindow.text=软件包 +action.ActivatePackagesToolWindow.description=Activate Packages window +action.RefreshLinkedCppProjects.text=Refresh Linked C++ Projects +action.UsageGrouping.DirectoryStructure.text=目录结构 +group.KotlinCompletionBenchmarkGroup.text=基准补全 +action.Vcs.Log.OpenRepositoryVersion.text=按修订显示文件 +action.Vcs.Log.OpenRepositoryVersion.description=在编辑器中打开文件的所选修订 +group.DebugClass.text=Debug context configuration +action.RemoteServers.EditDeploymentConfig.text=编辑配置 +action.RemoteServers.EditDeploymentConfig.description=编辑选定部署运行配置 +action.Servers.Deploy.text=部署 +action.Servers.Deploy.description=部署选定项 +action.SendFeedback.description=Submit feedback to jetbrains.com +action.LibraryToSourceDependencySupportToggleAction.description=根据 Kotlin 中的项目源代码文件启用组件分析库 +action.Faces.CreateFacesConfigAction.description=JSF 配置(faces-config.xml) +action.DatabaseView.AddDataSourceFromUrl.text=Data Source from URL +action.Github.PullRequest.Branch.Create.text=签出本地分支… +action.Github.PullRequest.Branch.Create.description=签出拉取请求分支 +action.AddNewPropertyFile.text=将属性文件添加到资源包 +action.WebServicesPlugin.CreateWebServiceClient.description=Creates JEE WebService Client +action.DumpDirectoryIndex.text=转储目录信息 +action.org.editorconfig.configmanagement.generate.EditorConfigGenerateLanguagePropertiesAction.text=语言属性 +action.org.editorconfig.configmanagement.generate.EditorConfigGenerateLanguagePropertiesAction.description=添加语言属性 +action.Git.Add.text=添加 +action.TestCompilerReferenceServiceInheritance.text=编译器引用直接继承者搜索 +action.Git.OpenExcludeFile.text=打开 .git/info/exclude +action.Git.OpenExcludeFile.description=在编辑器中打开 .git/info/exclude +action.android.emulator.extended.controls.text=Extended Controls +action.android.emulator.extended.controls.description=Show extended controls +action.Git.Stage.AcceptTheirs.text=接受他们的变更 +action.Ant_6117483dBuild GroovyResetAgent.text= +group.grails.goto.view.text=转到视图 +action.Git.Stage.Add.text=阶段 +action.AddBom.text=添加 BOM +action.AddBom.description=Add byte order mark to null +group.newConfigurationteamcity.remote.debug.action.text=Debug Remotely on TeamCity Agent context configuration +group.ProfileRunClass.text=Profile context configuration +action.WD.UploadCurrentRemoteFileAction.text=上传当前远程文件 +action.WD.UploadCurrentRemoteFileAction.description=上传当前远程文件 +action.AttachProfilerToLocalProcess.text=将分析器附加到进程… +action.AttachProfilerToLocalProcess.description=使用可用分析器附加到进程 +group.teamcity.remote.debug.action.text=Debug Remotely on TeamCity Agent context configuration +action.ShowFromTestsAction.text=显示测试中的端点 +action.ActivateGradleToolWindow.text=Gradle +action.ActivateGradleToolWindow.description=Activate Gradle window +action.Maven.Uml.Exclude.text=排除 +action.LibraryProperties.text=Library Properties... +action.CopyJoinLinkAction.text=复制邀请链接… +action.CreateEditorConfigFile.text=EditorConfig 文件 +action.$Redo.description=Redo last undone operation +action.Vcs.Log.ShowChangesFromParents.text=显示对父项的变更 +action.Vcs.Log.ShowChangesFromParents.description=分别显示对每个合并提交所做的更改 +action.KeymapToCsv.text=Export Keymap to CSV... +action.Vcs.Log.ShowAllAffected.text=显示所有受影响的文件 +action.Vcs.Log.ShowAllAffected.description=显示选中修订中所做的所有变更 +action.ShowPoweredProgress.text=Show Powered Progress +action.plugin.InstallFromDiskAction.text=从磁盘安装插件… +action.UsageGrouping.UsageType.text=用法类型 +action.CodeWithMeBackendCollectZippedLogs.text=收集主机和客户端日志 +action.ShowCdiDependenciesPopup.text=显示 Bean 依赖项(CDI) +action.Ant_6117483dIntelliJ IDEA developer's update.text= +action.TeamCity.UpdatePlugin.text=Update plugin (build #92664->...) +action.RemoteHostView.EditRemoteFile.text=Edit Remote File +action.RemoteHostView.EditRemoteFile.description=在编辑器中编辑远程文件 +action.XDebugger.AttachToProcess.text=附加到进程… +action.XDebugger.AttachToProcess.description=使用可用的调试器附加到进程 +action.Uml.ShowDiff.text=以 UML 显示差异 +action.TypeHierarchy.Class.description=选择类层次结构 +action.Android.BuildBundle.text=Build Bundle(s) +action.GotoBookmarkZ.text=Go to Bookmark Z +action.GotoBookmarkY.text=Go to Bookmark Y +action.ActivateLayoutValidationToolWindow.text=Layout Validation +action.ActivateLayoutValidationToolWindow.description=Activate Layout Validation window +action.GotoBookmarkN.text=Go to Bookmark N +action.GotoBookmarkM.text=Go to Bookmark M +action.GotoBookmarkP.text=Go to Bookmark P +action.GotoBookmarkO.text=Go to Bookmark O +action.GotoBookmarkJ.text=Go to Bookmark J +action.GotoBookmarkI.text=Go to Bookmark I +action.GotoBookmarkL.text=Go to Bookmark L +action.GotoBookmarkK.text=Go to Bookmark K +action.GotoBookmarkV.text=Go to Bookmark V +action.Javaee.Undeploy.text=取消部署 +action.GotoBookmarkU.text=Go to Bookmark U +action.GotoBookmarkX.text=Go to Bookmark X +action.GotoBookmarkW.text=Go to Bookmark W +action.GotoBookmarkR.text=Go to Bookmark R +action.GotoBookmarkQ.text=Go to Bookmark Q +action.GotoBookmarkT.text=Go to Bookmark T +action.GotoBookmarkS.text=Go to Bookmark S +action.GotoBookmark9.text=转到书签 9 +action.GotoBookmarkF.text=Go to Bookmark F +action.GotoBookmarkE.text=Go to Bookmark E +action.GotoBookmarkH.text=Go to Bookmark H +action.GotoBookmarkG.text=Go to Bookmark G +action.GotoBookmarkB.text=Go to Bookmark B +action.HideCoverage.text=隐藏覆盖率 +action.HideCoverage.description=隐藏覆盖率数据 +action.ConvertSchemaAction.text=转换架构… +action.ConvertSchemaAction.description=将所选架构文档 (RNG、RNC、XSD、DTD) 转换为另一种格式 +action.GotoBookmarkA.text=Go to Bookmark A +action.GotoBookmarkD.text=Go to Bookmark D +action.GotoBookmarkC.text=Go to Bookmark C +action.Github.Sync.Fork.text=同步复刻 +action.Github.Sync.Fork.description=相对于来源变基 GitHub 复刻仓库 +action.ConfigureSpecificationSources.text=配置 OpenAPI 源代码… +action.DumpConfigurationTypes.text=转储配置 +group.CreateNewRunConfiguration.text=修改运行配置… +action.Android.DumpProject.text=Dump Project Structure +group.HTTPClientGroup.text=HTTP 客户端 +action.ReactExtractComponentAction.text=提取组件… +action.RunJsbtTask.text=运行 Gulp/Grunt/npm 任务 +action.CompareKeymaps.text=Compare Keymaps... +action.ActivateDebugToolWindow.description=Activate Debug window +action.GotoBookmark0.text=转到书签 0 +action.Terminal.PrevSplitter.text=转到上一个拆分器 +action.GotoBookmark6.text=转到书签 6 +action.GotoBookmark5.text=转到书签 5 +action.GotoBookmark8.text=转到书签 8 +action.CallLabelAction.text=调用: +action.GotoBookmark7.text=转到书签 7 +group.ImagesRootGroup.text=图像 +action.GotoBookmark2.text=转到书签 2 +action.GotoBookmark1.text=转到书签 1 +action.GotoBookmark4.text=转到书签 4 +action.GotoBookmark3.text=转到书签 3 +group.Git.MainMenu.LocalChanges.text=Uncommitted Changes +action.Console.Jpa.GenerateSql.text=生成 SQL +action.Console.Jpa.GenerateSql.description=为指定 QL 生成 SQL +action.TemplateProjectProperties.text=Preferences for New Projects... +action.TemplateProjectProperties.description=为所有新项目配置默认设置 +action.Android.ShowSatisfactionDialog.text=Show satisfaction dialog +action.Android.IdeaProjectStructure.text=IDEA Project Structure Dialog +action.LoadAllContent.description=加载所有文件内容 +action.ActivateBookmarksToolWindow.text=书签 +action.ActivateBookmarksToolWindow.description=激活书签窗口 \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/Concept.cpt.html b/original-plugin-raw/zh/fileTemplates/Concept.cpt.html new file mode 100644 index 000000000..288e8292a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/Concept.cpt.html @@ -0,0 +1,26 @@ + + + + + + + + +
这是每次创建新的 Gauge 概念文件时使用的内置模板。 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/Gherkin feature file.feature.html b/original-plugin-raw/zh/fileTemplates/Gherkin feature file.feature.html new file mode 100644 index 000000000..c451a531f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/Gherkin feature file.feature.html @@ -0,0 +1,6 @@ + + +

为 BDD 测试方案创建功能文件。 此方案基于 Gherkin 语法。

+

使用 GivenWhenThen 关键字定义步骤。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/JavaFXApplication.java.html b/original-plugin-raw/zh/fileTemplates/JavaFXApplication.java.html new file mode 100644 index 000000000..286aa4a5a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/JavaFXApplication.java.html @@ -0,0 +1,10 @@ + + + + + + +
用于创建新 JavaFX 应用程序的内置模板。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/Specification.spec.html b/original-plugin-raw/zh/fileTemplates/Specification.spec.html new file mode 100644 index 000000000..4af695552 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/Specification.spec.html @@ -0,0 +1,26 @@ + + + + + + + + +
这是每次创建新的 Gauge 规范文件时使用的内置模板。 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/C++ Implemented Function Body.cc.html b/original-plugin-raw/zh/fileTemplates/code/C++ Implemented Function Body.cc.html new file mode 100644 index 000000000..3439dd7ab --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/C++ Implemented Function Body.cc.html @@ -0,0 +1,28 @@ + + + + + + +
+ 生成(例如,使用代码 | 实现方法操作)时创建实现的函数的主体。
+ 编辑模板时,您可以使用 C++ 表达式、注释和以下预定义变量:
+
+ + + + + + + + + + + + + + +
${RETURN_TYPE} 函数的返回类型。
${DEFAULT_RETURN_VALUE} 函数的默认返回值。
C 文件标头模板(包含选项卡)的所有预定义变量(例如,${USER}${DATE})也可用。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/C++ Overridden Function Body.cc.html b/original-plugin-raw/zh/fileTemplates/code/C++ Overridden Function Body.cc.html new file mode 100644 index 000000000..2d8a0f030 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/C++ Overridden Function Body.cc.html @@ -0,0 +1,35 @@ + + + + + + +
+ 生成(例如,使用代码 | 重写方法操作)时创建被重写函数的主体。
+ 编辑模板时,您可以使用 C++ 表达式、注释和以下预定义变量:
+
+ + + + + + + + + + + + + + + + + + + +
${CALL_SUPER} 基本函数调用,对于 void 函数 — BaseClass::functionName(),带或不带形参; + 对于其他函数 - return BaseClass::functionName(),带或不带形参。 +
${RETURN_TYPE} 函数的返回类型。
${DEFAULT_RETURN_VALUE} 函数的默认返回值。
C 文件标头模板(包含选项卡)的所有预定义变量(例如,${USER}${DATE})也可用。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Catch Statement Body.java.html b/original-plugin-raw/zh/fileTemplates/code/Catch Statement Body.java.html new file mode 100644 index 000000000..e395e8c31 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Catch Statement Body.java.html @@ -0,0 +1,26 @@ + + + + + + +
在生成时填充 catch 块的主体,例如,当应用代码 | 环绕方式…函数时。
+ 此内置模板是可编辑的。 除了 Java 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${EXCEPTION} 指定为 catch 形参的 Exception 变量的名称
${EXCEPTION_TYPE} catch 形参的类型
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Catch Statement Declaration.java.html b/original-plugin-raw/zh/fileTemplates/code/Catch Statement Declaration.java.html new file mode 100644 index 000000000..2ea4f63a7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Catch Statement Declaration.java.html @@ -0,0 +1,26 @@ + + + + + + +
在生成时填充 catch 形参,例如,调用代码 | 环绕方式… 功能。
+ 此内置模板是可编辑的。 例如,您可以将生成的形参设为 final,无论捕获的异常的限定名称是什么,都会始终使用预定义的名称。
+
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${EXCEPTION} 如果限定名称以 Exception 结尾,Exception 变量的名称被指定为从捕获的异常类型 e 派生的 catch 形参。
${EXCEPTION_TYPE} catch 形参的类型。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Codeception Functional Test Method.php.html b/original-plugin-raw/zh/fileTemplates/code/Codeception Functional Test Method.php.html new file mode 100644 index 000000000..cbbec74da --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Codeception Functional Test Method.php.html @@ -0,0 +1,44 @@ + + + + + + +
+ 一个 Codeception 功能测试方法的内置模板,在例如 "新建测试" 对话框中选择了生成方法的复选框时使用。 + +
+ + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${NAME} +   + 方法名称。 +
+ ${CAPITALIZED_NAME} +   + 第一个字符大写的方法名称。 +
+ ${TESTED_NAME} +   + 被测试的类的名称。 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/Codeception Unit Test Method.php.html b/original-plugin-raw/zh/fileTemplates/code/Codeception Unit Test Method.php.html new file mode 100644 index 000000000..0b5fecb19 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Codeception Unit Test Method.php.html @@ -0,0 +1,44 @@ + + + + + + +
+ 在例如 "新建测试" 对话框中选择了生成方法的复选框时使用的Codeception 单元测试方法的内置模板。 + +
+ + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${NAME} +   + 方法名称。 +
+ ${CAPITALIZED_NAME} +   + 第一个字符大写的方法名称。 +
+ ${TESTED_NAME} +   + 被测试的类的名称。 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/Cucumber Java 8 Step Definition.java.html b/original-plugin-raw/zh/fileTemplates/code/Cucumber Java 8 Step Definition.java.html new file mode 100644 index 000000000..01d884136 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Cucumber Java 8 Step Definition.java.html @@ -0,0 +1,36 @@ + + + + + + +
+ 在 Cucumber 中为 Java 文件创建步骤定义。 +
+ + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${STEP_KEYWORD} 步骤定义的注解。 通常,关键字用于调用步骤(Given、Then、And 等)。
${STEP_REGEXP} 为接受步骤而生成的正则表达式。
${PARAMETERS} 生成的方法的形参。
${BODY} 生成的方法体。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Cucumber Java Step Definition.java.html b/original-plugin-raw/zh/fileTemplates/code/Cucumber Java Step Definition.java.html new file mode 100644 index 000000000..029aeebc0 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Cucumber Java Step Definition.java.html @@ -0,0 +1,41 @@ + + + + + + +
+ 在 Cucumber 中为 Java 文件创建步骤定义。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${STEP_KEYWORD} 步骤定义的注解。 通常,关键字用于调用步骤(Given、Then、And 等)。
${STEP_REGEXP} 为接受步骤而生成的正则表达式。
${METHOD_NAME} 生成的方法的名称。
${PARAMETERS} 生成的方法的形参。
${BODY} 生成的方法体。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Dynamic Method Body.java.html b/original-plugin-raw/zh/fileTemplates/code/Dynamic Method Body.java.html new file mode 100644 index 000000000..e58d47618 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Dynamic Method Body.java.html @@ -0,0 +1,36 @@ + + + + + + +
这是在程序每次生成 FreeMarker 动态方法时,用于填充方法体的内置模板。
+ 模板是可编辑的。 除了 Java 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${RETURN_TYPE} 创建的方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${METHOD_NAME} 创建的方法名称
${CLASS_NAME} 创建方法的类的限定名称
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Go Benchmark.go.html b/original-plugin-raw/zh/fileTemplates/code/Go Benchmark.go.html new file mode 100644 index 000000000..040df235e --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Go Benchmark.go.html @@ -0,0 +1,31 @@ + + + + + + +
Go Benchmark 是一个内置模板,可用于在测试文件中创建 Go 基准函数。 + 此模板仅适用于带有 _test 后缀的测试文件。 要使用模板,点击 代码 | 生成 并选择基准 +
+ + + + + + + + + + + + + + + + + + + +
预定义变量列表
${NAME} 基准函数名称
${PARAM_NAME} 函数形参的名称
${PARAM_TYPE} 函数形参的类型
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Go Example.go.html b/original-plugin-raw/zh/fileTemplates/code/Go Example.go.html new file mode 100644 index 000000000..d12d65c99 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Go Example.go.html @@ -0,0 +1,21 @@ + + + + + + +
Go Example 是一个内置模板,可用于在测试文件中创建 Go 示例函数。 + 此模板仅适用于带有 _test 后缀的测试文件。 要使用模板,点击 代码 | 生成 并选择示例 +
+ + + + + + + + + +
预定义变量列表
${NAME} 示例函数名称
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Go Table Benchmark.go.html b/original-plugin-raw/zh/fileTemplates/code/Go Table Benchmark.go.html new file mode 100644 index 000000000..31d4fedd2 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Go Table Benchmark.go.html @@ -0,0 +1,31 @@ + + + + + + +
Go 表基准 是一个内置模板,可用于在测试文件中创建 Go 表基准函数。 + 此模板仅适用于带有 _test 后缀的测试文件。 要使用模板,点击 代码 | 生成 并选择表基准 +
+ + + + + + + + + + + + + + + + + + + +
预定义变量列表
${NAME} 表基准函数名称
${PARAM_NAME} 函数形参的名称
${PARAM_TYPE} 函数形参的类型
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Go Table Test.go.html b/original-plugin-raw/zh/fileTemplates/code/Go Table Test.go.html new file mode 100644 index 000000000..8c3b04d0f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Go Table Test.go.html @@ -0,0 +1,31 @@ + + + + + + +
Go Table Test 是一个内置模板,可用于在测试文件中创建 Go 表测试函数。 + 此模板仅适用于带有 _test 后缀的测试文件。 要使用模板,点击 代码 | 生成 并选择表测试 +
+ + + + + + + + + + + + + + + + + + + +
预定义变量列表
${NAME} 表测试函数名称
${PARAM_NAME} 函数形参的名称
${PARAM_TYPE} 函数形参的类型
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Go Test.go.html b/original-plugin-raw/zh/fileTemplates/code/Go Test.go.html new file mode 100644 index 000000000..18f4d95ea --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Go Test.go.html @@ -0,0 +1,31 @@ + + + + + + +
Go Test 是一个内置模板,可用于在测试文件中创建 Go 测试函数。 + 此模板仅适用于带有 _test 后缀的测试文件。 要使用模板,点击 代码 | 生成 并选择测试 +
+ + + + + + + + + + + + + + + + + + + +
预定义变量列表
${NAME} 测试函数名称
${PARAM_NAME} 函数形参的名称
${PARAM_TYPE} 函数形参的类型
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Google Test Fixture SetUp Method.cc.html b/original-plugin-raw/zh/fileTemplates/code/Google Test Fixture SetUp Method.cc.html new file mode 100644 index 000000000..2041eebbb --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Google Test Fixture SetUp Method.cc.html @@ -0,0 +1,21 @@ + + + + + + +
+ 在 Google Test 固定例程中创建 SetUp 方法。 +
+ + + + + + + + + +
编辑模板时,您可以使用 C++ 表达式、注释和以下预定义变量:
${END} 将光标移到此位置。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Google Test Fixture TearDown Method.cc.html b/original-plugin-raw/zh/fileTemplates/code/Google Test Fixture TearDown Method.cc.html new file mode 100644 index 000000000..f3c6e3939 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Google Test Fixture TearDown Method.cc.html @@ -0,0 +1,21 @@ + + + + + + +
+ 在 Google Test 固定例程中创建 TearDown 方法。 +
+ + + + + + + + + +
编辑模板时,您可以使用 C++ 表达式、注释和以下预定义变量:
${END} 将光标移到此位置。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Google Test Fixture.cc.html b/original-plugin-raw/zh/fileTemplates/code/Google Test Fixture.cc.html new file mode 100644 index 000000000..c825d1777 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Google Test Fixture.cc.html @@ -0,0 +1,26 @@ + + + + + + +
+ 创建 Google Test 固定例程。 +
+ + + + + + + + + + + + + + +
编辑模板时,您可以使用 C++ 表达式、注释和以下预定义变量:
${SuiteName} 套件名称。
${END} 将光标移到此位置。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Google Test Test.cc.html b/original-plugin-raw/zh/fileTemplates/code/Google Test Test.cc.html new file mode 100644 index 000000000..aaec9e338 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Google Test Test.cc.html @@ -0,0 +1,31 @@ + + + + + + +
+ 在 Google Test 测试套件中创建测试方法。 +
+ + + + + + + + + + + + + + + + + + + +
编辑模板时,您可以使用 C++ 表达式、注释和以下预定义变量:
${SuiteName} 套件名称。
${TestName} 创建的方法的名称。
${END} 将光标移到此位置。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Groovy JUnit SetUp Method.groovy.html b/original-plugin-raw/zh/fileTemplates/code/Groovy JUnit SetUp Method.groovy.html new file mode 100644 index 000000000..822536a21 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Groovy JUnit SetUp Method.groovy.html @@ -0,0 +1,27 @@ + + + + + + +
+ 这是用于在 Groovy JUnit 测试类中创建 setUp 方法的模板。 + +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称。
${BODY} 生成的方法体。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Groovy JUnit TearDown Method.groovy.html b/original-plugin-raw/zh/fileTemplates/code/Groovy JUnit TearDown Method.groovy.html new file mode 100644 index 000000000..989d34ceb --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Groovy JUnit TearDown Method.groovy.html @@ -0,0 +1,27 @@ + + + + + + +
+ 这是用于在 Groovy JUnit 测试类中创建 tearDown 方法的模板。 + +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称。
${BODY} 生成的方法体。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Groovy JUnit Test Case.groovy.html b/original-plugin-raw/zh/fileTemplates/code/Groovy JUnit Test Case.groovy.html new file mode 100644 index 000000000..c379d6adb --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Groovy JUnit Test Case.groovy.html @@ -0,0 +1,27 @@ + + + + + + +
+ 这是用于创建 JUnit 3 测试类的模板。 + +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的类的名称。
${BODY} 生成的类主体。
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/Groovy JUnit Test Method.groovy.html b/original-plugin-raw/zh/fileTemplates/code/Groovy JUnit Test Method.groovy.html new file mode 100644 index 000000000..c36963d5b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Groovy JUnit Test Method.groovy.html @@ -0,0 +1,27 @@ + + + + + + +
+ 这是用于在 JUnit 3 测试类中创建测试方法的模板。 + +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称。
${BODY} 生成的方法体。
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/Groovy New Method Body.groovy.html b/original-plugin-raw/zh/fileTemplates/code/Groovy New Method Body.groovy.html new file mode 100644 index 000000000..40f7f8046 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Groovy New Method Body.groovy.html @@ -0,0 +1,41 @@ + + + + + + +
这是在每次由程序生成 Groovy 方法(例如,使用从用法创建方法意图操作)时用于填充方法体的内置模板。
+ 模板是可编辑的。 除了 Groovy 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${RETURN_TYPE} 创建的方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${METHOD_NAME} 创建的方法名称
${CLASS_NAME} 创建方法的类的限定名称
${SIMPLE_CLASS_NAME} 实现方法的类的非限定名称
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/I18nized Concatenation.java.html b/original-plugin-raw/zh/fileTemplates/code/I18nized Concatenation.java.html new file mode 100644 index 000000000..7fdcdd447 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/I18nized Concatenation.java.html @@ -0,0 +1,43 @@ + + + + + + +
+ 将字符串串联(如 String s = "Hello " + name;) + 替换为国际化的 Java 代码表达式(如 + String s = MessageFormat.format(​myResourceBundle.getString(​"hello.0"), name);)。
+ 此内置模板是可编辑的。 除了 Java 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${RESOURCE_BUNDLE} java.util.ResourceBundle 类型的表达式,这一类型的实例在此上下文中可用。
${PARAMETERS} 字符串串联中使用的变量,通常作为实参传递给国际化表达式。
${PROPERTY_KEY} 在相应的属性文件中定义的属性键名称。 + 通常,它是用于 ResourceBundle.getString() 方法形参的值。 +
${PROPERTY_VALUE} 在相应的属性文件中定义的属性值。 + 这就是原始的 Java 字符串字面值。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/I18nized Expression.java.html b/original-plugin-raw/zh/fileTemplates/code/I18nized Expression.java.html new file mode 100644 index 000000000..faee0f959 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/I18nized Expression.java.html @@ -0,0 +1,38 @@ + + + + + + +
+ 将字符串文字表达式(如 String s = "Hello";) + 替换为国际化的 Java 代码表达式 + (如 String s = myResourceBundle.getString("hello");)。
+ 此内置模板是可编辑的。 除了 Java 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${RESOURCE_BUNDLE} java.util.ResourceBundle 类型的表达式,这一类型的实例在此上下文中可用。
${PROPERTY_KEY} 在相应的属性文件中指定的属性键名称。 + 通常,它是用于 ResourceBundle.getString() 方法形参的值。 +
${PROPERTY_VALUE} 在相应的属性文件中定义的属性值。 + 这就是原始的 Java 字符串字面值。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/I18nized GSP Expression with injections.gsp.html b/original-plugin-raw/zh/fileTemplates/code/I18nized GSP Expression with injections.gsp.html new file mode 100644 index 000000000..24e86e8cd --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/I18nized GSP Expression with injections.gsp.html @@ -0,0 +1,57 @@ + + + + + + + +
+ 这是内置模板,用于将 GSP 中的文本, + 例如: +
+      + <html> + <body> + Hello ${'world'}! + </body> + </html> +
+ 替换为国际化 GSP 自定义标记用法, + 例如: +
+      + <html> + <body> + <g:message code="HelloKey" args="['world']"/> + </body> + </html> + 。 +

+ 模板是可编辑的。 除了 GSP 上下文中允许的表达式外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。 +

+ + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${PROPERTY_KEY} 在相应的属性文件中指定的属性键名称。 +
${PROPERTY_VALUE} 在相应的属性文件中指定的属性值。 + 这是一个原始的 GSP 文本选择值。 +
${ARGS_KEY} 实参
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/I18nized GSP Expression.gsp.html b/original-plugin-raw/zh/fileTemplates/code/I18nized GSP Expression.gsp.html new file mode 100644 index 000000000..31eb20446 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/I18nized GSP Expression.gsp.html @@ -0,0 +1,52 @@ + + + + + + + +
+ 这是内置模板,用于将 GSP 中的文本 + 例如: +
+      + <html> + <body> + Hello! + </body> + </html> +
+ 替换为国际化 GSP 自定义标记用法, + 例如: +
+      + <html> + <body> + <g:message code="HelloKey"/> + </body> + </html> + 。 +

+ 模板是可编辑的。 除了 GSP 上下文中允许的表达式外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。 +

+ + + + + + + + + + + + + + + +
预定义变量接收以下值:
${PROPERTY_KEY} 在相应的属性文件中指定的属性键名称。 +
${PROPERTY_VALUE} 在相应的属性文件中指定的属性值。 + 这是一个原始的 GSP 文本选择值。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/I18nized Groovy string with injections.gsp.html b/original-plugin-raw/zh/fileTemplates/code/I18nized Groovy string with injections.gsp.html new file mode 100644 index 000000000..24e86e8cd --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/I18nized Groovy string with injections.gsp.html @@ -0,0 +1,57 @@ + + + + + + + +
+ 这是内置模板,用于将 GSP 中的文本, + 例如: +
+      + <html> + <body> + Hello ${'world'}! + </body> + </html> +
+ 替换为国际化 GSP 自定义标记用法, + 例如: +
+      + <html> + <body> + <g:message code="HelloKey" args="['world']"/> + </body> + </html> + 。 +

+ 模板是可编辑的。 除了 GSP 上下文中允许的表达式外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。 +

+ + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${PROPERTY_KEY} 在相应的属性文件中指定的属性键名称。 +
${PROPERTY_VALUE} 在相应的属性文件中指定的属性值。 + 这是一个原始的 GSP 文本选择值。 +
${ARGS_KEY} 实参
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/I18nized Groovy string.gsp.html b/original-plugin-raw/zh/fileTemplates/code/I18nized Groovy string.gsp.html new file mode 100644 index 000000000..31eb20446 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/I18nized Groovy string.gsp.html @@ -0,0 +1,52 @@ + + + + + + + +
+ 这是内置模板,用于将 GSP 中的文本 + 例如: +
+      + <html> + <body> + Hello! + </body> + </html> +
+ 替换为国际化 GSP 自定义标记用法, + 例如: +
+      + <html> + <body> + <g:message code="HelloKey"/> + </body> + </html> + 。 +

+ 模板是可编辑的。 除了 GSP 上下文中允许的表达式外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。 +

+ + + + + + + + + + + + + + + +
预定义变量接收以下值:
${PROPERTY_KEY} 在相应的属性文件中指定的属性键名称。 +
${PROPERTY_VALUE} 在相应的属性文件中指定的属性值。 + 这是一个原始的 GSP 文本选择值。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/I18nized JSP Expression.jsp.html b/original-plugin-raw/zh/fileTemplates/code/I18nized JSP Expression.jsp.html new file mode 100644 index 000000000..53a4fc60b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/I18nized JSP Expression.jsp.html @@ -0,0 +1,42 @@ + + + + + + +
+ 替换 JSP 中的文本, + 例如: +
+   <html><body>
+     Hello!
+   </body></html>
+
+ 带有国际化的 JSP 自定义标记,例如: +
+   <html><body>
+     <bean:message key="HelloKey"/>
+   </body></html>
+
+ 此内置模板是可编辑的。 除了 JSP 上下文中允许的表达式外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${PROPERTY_KEY} 在相应的属性文件中指定的属性键名称。 +
${PROPERTY_VALUE} 在相应的属性文件中指定的属性值。 + 这是原始的 JSP 文本选择值。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Implemented Method Body.java.html b/original-plugin-raw/zh/fileTemplates/code/Implemented Method Body.java.html new file mode 100644 index 000000000..a5274c879 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Implemented Method Body.java.html @@ -0,0 +1,46 @@ + + + + + + +
+ 在生成已实现方法(例如,应用实现 abstract 类实现 abstract 方法意图操作或调用代码 | 实现方法… 功能)时填充方法体。
+ 此内置模板是可编辑的。 除了 Java 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${RETURN_TYPE} 创建方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${METHOD_NAME} 实现的方法的名称
${CLASS_NAME} 实现方法的类的限定名称
${SIMPLE_CLASS_NAME} 实现方法的类的非限定名称
文件头模板(Includes 选项卡)中的所有预定义变量也可用(例如 ${USER}${DATE} 等)。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Implemented Scala Method Body.scala.html b/original-plugin-raw/zh/fileTemplates/code/Implemented Scala Method Body.scala.html new file mode 100644 index 000000000..6447c512b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Implemented Scala Method Body.scala.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 这是每次实现 Scala 方法时 IntelliJ IDEA 使用的内置模板 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JUnit3 SetUp Method.java.html b/original-plugin-raw/zh/fileTemplates/code/JUnit3 SetUp Method.java.html new file mode 100644 index 000000000..7432c095e --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JUnit3 SetUp Method.java.html @@ -0,0 +1,27 @@ + + + + + + +
+ 在 JUnit 3 测试类中创建一个 setUp 方法。 + +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JUnit3 TearDown Method.java.html b/original-plugin-raw/zh/fileTemplates/code/JUnit3 TearDown Method.java.html new file mode 100644 index 000000000..9b8862312 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JUnit3 TearDown Method.java.html @@ -0,0 +1,27 @@ + + + + + + +
+ 在 JUnit 3 测试类中创建一个 tearDown 方法。 + +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JUnit3 Test Class.java.html b/original-plugin-raw/zh/fileTemplates/code/JUnit3 Test Class.java.html new file mode 100644 index 000000000..346fd5b86 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JUnit3 Test Class.java.html @@ -0,0 +1,31 @@ + + + + + + +
+ 创建一个 JUnit 3 测试类。 +
+ + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的类的名称
${CLASS_NAME} 被测试的类的名称
${BODY} 生成的类主体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JUnit3 Test Method.java.html b/original-plugin-raw/zh/fileTemplates/code/JUnit3 Test Method.java.html new file mode 100644 index 000000000..f418270eb --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JUnit3 Test Method.java.html @@ -0,0 +1,27 @@ + + + + + + +
+ 在 JUnit 3 测试类中创建一个测试方法。 + +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JUnit4 AfterClass Method.java.html b/original-plugin-raw/zh/fileTemplates/code/JUnit4 AfterClass Method.java.html new file mode 100644 index 000000000..1158ac2e2 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JUnit4 AfterClass Method.java.html @@ -0,0 +1,27 @@ + + + + + + + +
+ 在 JUnit 4 测试类中创建一个 afterClass 方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JUnit4 BeforeClass Method.java.html b/original-plugin-raw/zh/fileTemplates/code/JUnit4 BeforeClass Method.java.html new file mode 100644 index 000000000..e24ade9ae --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JUnit4 BeforeClass Method.java.html @@ -0,0 +1,27 @@ + + + + + + + +
+ 在 JUnit 4 测试类中创建一个 beforeClass 方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JUnit4 Parameters Method.java.html b/original-plugin-raw/zh/fileTemplates/code/JUnit4 Parameters Method.java.html new file mode 100644 index 000000000..8cbb0fabf --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JUnit4 Parameters Method.java.html @@ -0,0 +1,26 @@ + + + + + + +
+ 在 JUnit 4 形参化测试类中创建一个数据方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JUnit4 SetUp Method.java.html b/original-plugin-raw/zh/fileTemplates/code/JUnit4 SetUp Method.java.html new file mode 100644 index 000000000..0742b0f2a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JUnit4 SetUp Method.java.html @@ -0,0 +1,26 @@ + + + + + + +
+ 在 JUnit 4 测试类中创建一个 setUp 方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JUnit4 TearDown Method.java.html b/original-plugin-raw/zh/fileTemplates/code/JUnit4 TearDown Method.java.html new file mode 100644 index 000000000..7ca61b936 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JUnit4 TearDown Method.java.html @@ -0,0 +1,26 @@ + + + + + + +
+ 在 JUnit 4 测试类中创建一个 tearDown 方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JUnit4 Test Class.java.html b/original-plugin-raw/zh/fileTemplates/code/JUnit4 Test Class.java.html new file mode 100644 index 000000000..f5d08b46f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JUnit4 Test Class.java.html @@ -0,0 +1,31 @@ + + + + + + +
+ 创建一个 JUnit 4 测试类。 +
+ + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的类的名称
${CLASS_NAME} 被测试的类的名称
${BODY} 生成的类主体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JUnit4 Test Method.java.html b/original-plugin-raw/zh/fileTemplates/code/JUnit4 Test Method.java.html new file mode 100644 index 000000000..96d135615 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JUnit4 Test Method.java.html @@ -0,0 +1,26 @@ + + + + + + +
+ 在 JUnit 4 测试类中创建一个测试方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JUnit5 AfterAll Method.java.html b/original-plugin-raw/zh/fileTemplates/code/JUnit5 AfterAll Method.java.html new file mode 100644 index 000000000..a7273f9d6 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JUnit5 AfterAll Method.java.html @@ -0,0 +1,27 @@ + + + + + + + +
+ 在 JUnit 5 测试类中创建一个 afterAll 方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JUnit5 BeforeAll Method.java.html b/original-plugin-raw/zh/fileTemplates/code/JUnit5 BeforeAll Method.java.html new file mode 100644 index 000000000..6d2e3cf8a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JUnit5 BeforeAll Method.java.html @@ -0,0 +1,27 @@ + + + + + + + +
+ 在 JUnit 5 测试类中创建一个 beforeAll 方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JUnit5 SetUp Method.java.html b/original-plugin-raw/zh/fileTemplates/code/JUnit5 SetUp Method.java.html new file mode 100644 index 000000000..49de1dc8b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JUnit5 SetUp Method.java.html @@ -0,0 +1,26 @@ + + + + + + +
+ 在 JUnit 5 测试类中创建一个 setUp 方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JUnit5 TearDown Method.java.html b/original-plugin-raw/zh/fileTemplates/code/JUnit5 TearDown Method.java.html new file mode 100644 index 000000000..1b7393eaa --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JUnit5 TearDown Method.java.html @@ -0,0 +1,26 @@ + + + + + + +
+ 在 JUnit 5 测试类中创建一个 tearDown 方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JUnit5 Test Class.java.html b/original-plugin-raw/zh/fileTemplates/code/JUnit5 Test Class.java.html new file mode 100644 index 000000000..cdafc645e --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JUnit5 Test Class.java.html @@ -0,0 +1,31 @@ + + + + + + +
+ 创建一个 JUnit 5 测试类。 +
+ + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的类的名称
${CLASS_NAME} 被测试的类的名称
${BODY} 生成的类主体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JUnit5 Test Method.java.html b/original-plugin-raw/zh/fileTemplates/code/JUnit5 Test Method.java.html new file mode 100644 index 000000000..5f0e70b36 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JUnit5 Test Method.java.html @@ -0,0 +1,26 @@ + + + + + + +
+ 在 JUnit 5 测试类中创建一个测试方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JavaScript Implemented Method Body.js.html b/original-plugin-raw/zh/fileTemplates/code/JavaScript Implemented Method Body.js.html new file mode 100644 index 000000000..298a53654 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JavaScript Implemented Method Body.js.html @@ -0,0 +1,53 @@ + + + + + + +
+ + 此内置模板用于在每次生成方法(例如,通过从用法创建方法意图操作)时填充方法体。
+ 模板是可编辑的。 除了 Javascript 表达式和注释,您还可以使用预定义变量。 + 当模板被应用时,这些变量将被替换成相应的值。 +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${IS_ASSIGNMENT_TARGET} 如果创建的方法是赋值目标,则返回 'true'。
${IS_NEW_CALL} 如果创建的方法是在 ‘new’ 调用下,则返回 ‘true’。
${HAS_EXPECTED_TYPE} 如果创建的方法在应为类型的位置,则返回 'true'。
${DEFAULT_RETURN_VALUE} 创建方法的预期类型的默认值(如果没有预期类型,则为 'undefined')
${METHOD_NAME} 创建的方法名称
所有来自 文件头 模板(包含选项卡)的预定义变量也可用。 + (例如: + ${USER}、 + ${DATE} + 等。) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/JavaScript Overridden Method Body.js.html b/original-plugin-raw/zh/fileTemplates/code/JavaScript Overridden Method Body.js.html new file mode 100644 index 000000000..734fbaa7d --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/JavaScript Overridden Method Body.js.html @@ -0,0 +1,56 @@ + + + + + + +
+ + 此内置模板用于在每次生成被重写方法(例如,调用代码 | 重写方法… 功能)时填写方法体。
+ 模板是可编辑的。 除了 Javascript 表达式和注释,您还可以使用预定义变量。 + 当模板被应用时,这些变量将被替换成相应的值。 +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${CALL_SUPER} super 方法调用,对于 void 方法 - super.method_name(); 带或不带形参; + 对于其他方法 - return super.method_name(); 带或不带形参 +
${PLAIN_CALL_SUPER} super 方法调用,super.method_name(); 带或不带形参; +
${RETURN_TYPE} 创建方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${METHOD_NAME} 被重写的方法的名称
所有来自 文件头 模板(包含选项卡)的预定义变量也可用。 + (例如: + ${USER}、 + ${DATE} + 等。) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Kiwi AfterEach.m.html b/original-plugin-raw/zh/fileTemplates/code/Kiwi AfterEach.m.html new file mode 100644 index 000000000..3edf0a737 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Kiwi AfterEach.m.html @@ -0,0 +1,21 @@ + + + + + + +
+ 创建 afterEach(^{}) Kiwi 代码块。 +
+ + + + + + + + + +
预定义变量接收以下值:
${END} 将文本光标移至此位置
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Kiwi BeforeEach.m.html b/original-plugin-raw/zh/fileTemplates/code/Kiwi BeforeEach.m.html new file mode 100644 index 000000000..eb3f06291 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Kiwi BeforeEach.m.html @@ -0,0 +1,21 @@ + + + + + + +
+ 创建 beforeEach(^{}) Kiwi 代码块。 +
+ + + + + + + + + +
预定义变量接收以下值:
${END} 将文本光标移至此位置
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Kiwi Context.m.html b/original-plugin-raw/zh/fileTemplates/code/Kiwi Context.m.html new file mode 100644 index 000000000..e4b774422 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Kiwi Context.m.html @@ -0,0 +1,26 @@ + + + + + + +
+ 创建 context(^{}) Kiwi 代码块。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${context} context 块的名称
${END} 将文本光标移至此位置
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Kiwi It.m.html b/original-plugin-raw/zh/fileTemplates/code/Kiwi It.m.html new file mode 100644 index 000000000..affc78a83 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Kiwi It.m.html @@ -0,0 +1,26 @@ + + + + + + +
+ 创建 it(^{}) Kiwi 代码块。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${it} it 块的名称
${END} 将文本光标移至此位置
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Kiwi Specify.m.html b/original-plugin-raw/zh/fileTemplates/code/Kiwi Specify.m.html new file mode 100644 index 000000000..abbb0ff97 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Kiwi Specify.m.html @@ -0,0 +1,21 @@ + + + + + + +
+ 创建 specify(^{}) Kiwi 代码块。 +
+ + + + + + + + + +
预定义变量接收以下值:
${END} 将文本光标移至此位置
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Ktor Test Class.kt.html b/original-plugin-raw/zh/fileTemplates/code/Ktor Test Class.kt.html new file mode 100644 index 000000000..439e5b790 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Ktor Test Class.kt.html @@ -0,0 +1,31 @@ + + + + + + +
+ 这是用于为 Ktor 应用程序创建 JUnit 4 测试类的模板。 +
+ + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的类的名称。
${CLASS_NAME} 被测试的类的名称.
${BODY} 生成的类主体。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Ktor Test Method.kt.html b/original-plugin-raw/zh/fileTemplates/code/Ktor Test Method.kt.html new file mode 100644 index 000000000..912d6e588 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Ktor Test Method.kt.html @@ -0,0 +1,53 @@ + + + + + + +
+ 这是用于在 JUnit 4 测试类中为 Ktor 创建测试方法的模板。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${NAME} +  创建的方法的名称。
+ ${HTTP_METHOD} +  所使用的 HTTP 方法(Get、Post 等)。
+ ${ROUTE} +  相对于需要测试的当前服务的路由。 +
+ ${CONFIGURE_SERVER} +  一种路由扩展方法,用于为需要测试的服务器部件配置路由树。 +
+ ${BODY} +  生成的方法体。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/New Kotlin Function Body.kt.html b/original-plugin-raw/zh/fileTemplates/code/New Kotlin Function Body.kt.html new file mode 100644 index 000000000..b6a62fd11 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/New Kotlin Function Body.kt.html @@ -0,0 +1,35 @@ + + + + + + +
每次由程序生成时填充 Kotlin 函数体,例如,使用根据用法创建函数意图操作时。
模板是可编辑的。 除了 Kotlin 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${RETURN_TYPE} 创建的函数的返回类型
${FUNCTION_NAME} 创建的函数的名称
${CLASS_NAME} 创建函数的类的限定名称
${SIMPLE_CLASS_NAME} 实现函数的类的非限定名称
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/New Kotlin Property Initializer.kt.html b/original-plugin-raw/zh/fileTemplates/code/New Kotlin Property Initializer.kt.html new file mode 100644 index 000000000..5134ecab1 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/New Kotlin Property Initializer.kt.html @@ -0,0 +1,35 @@ + + + + + + +
每次由程序生成时,填充 Kotlin 属性的初始值设定项,例如,使用根据用法创建属性意图操作时。
模板是可编辑的。 除了 Kotlin 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${RETURN_TYPE} 创建的属性的类型
${PROPERTY_NAME} 创建的属性的名称
${CLASS_NAME} 创建属性的类的限定名称
${SIMPLE_CLASS_NAME} 创建属性的类的非限定名称
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/New Kotlin Secondary Constructor Body.kt.html b/original-plugin-raw/zh/fileTemplates/code/New Kotlin Secondary Constructor Body.kt.html new file mode 100644 index 000000000..f94553d75 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/New Kotlin Secondary Constructor Body.kt.html @@ -0,0 +1,25 @@ + + + + + + +
每次由程序生成时,填充 Kotlin 二级构造函数体,例如,使用根据用法创建二级构造函数意图操作时。
模板是可编辑的。 除了 Kotlin 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${CLASS_NAME} 创建函数的类的限定名称
${SIMPLE_CLASS_NAME} 实现函数的类的非限定名称
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/New Method Body.java.html b/original-plugin-raw/zh/fileTemplates/code/New Method Body.java.html new file mode 100644 index 000000000..1bc3c6030 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/New Method Body.java.html @@ -0,0 +1,49 @@ + + + + + + +
在生成方法(例如,应用从用法创建方法意图操作)时填充方法体。
+ 此内置模板是可编辑的。 除了 Java 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${RETURN_TYPE} 创建方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${METHOD_NAME} 创建的方法的名称
${CLASS_NAME} 创建方法的类的限定名称
${SIMPLE_CLASS_NAME} 实现方法的类的非限定名称
所有来自 文件头 模板(包含选项卡)的预定义变量也可用。 + (例如: + ${USER}、 + ${DATE} + 等。) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/OC Implemented Method Body.m.html b/original-plugin-raw/zh/fileTemplates/code/OC Implemented Method Body.m.html new file mode 100644 index 000000000..565ed15d6 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/OC Implemented Method Body.m.html @@ -0,0 +1,36 @@ + + + + + + +
+ 生成(例如,调用代码 | 实现方法操作)时创建实现方法的主体。
+ 模板是可编辑的。 除了 Objective-C 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + +
预定义变量将接收以下值:
${RETURN_TYPE} 创建的方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${CONTAINING_CLASS} 在其中实现方法的类的名称
C 文件标头模板(包含选项卡)中的所有预定义变量也可用(${USER}${DATE} 等) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/OC Overridden CopyWithZone Body 1.m.html b/original-plugin-raw/zh/fileTemplates/code/OC Overridden CopyWithZone Body 1.m.html new file mode 100644 index 000000000..c1bb4ce38 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/OC Overridden CopyWithZone Body 1.m.html @@ -0,0 +1,48 @@ + + + + + + +
+ 生成(例如,调用代码 | 生成 | -copyWithZone: 操作)时创建被重写 -copyWithZone: 方法的主体。
+ 模板是可编辑的。 除了 Objective-C 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量将接收以下值:
${CALL_SUPER} super 方法调用,对于 void 方法 — [super methodName],带或不带形参; + 对于其他方法 — return [super methodName],带或不带形参 +
${RETURN_TYPE} 创建的方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${CONTAINING_CLASS} 在其中重写方法的类的名称
${CUSTOM_CODE} 生成的方法的主体
C 文件标头模板(包含选项卡)中的所有预定义变量也可用(${USER}${DATE} 等) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/OC Overridden CopyWithZone Body 2.m.html b/original-plugin-raw/zh/fileTemplates/code/OC Overridden CopyWithZone Body 2.m.html new file mode 100644 index 000000000..7b23861b2 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/OC Overridden CopyWithZone Body 2.m.html @@ -0,0 +1,41 @@ + + + + + + +
+ 生成(例如,调用代码 | 生成 | -copyWithZone: 操作)时创建实现的 -copyWithZone: 方法的主体。
+ 模板是可编辑的。 除了 Objective-C 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量将接收以下值:
${RETURN_TYPE} 创建的方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${CONTAINING_CLASS} 在其中实现方法的类的名称
${CUSTOM_CODE} 生成的方法的主体
C 文件标头模板(包含选项卡)中的所有预定义变量也可用(${USER}${DATE} 等) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/OC Overridden CopyWithZone Body 3.m.html b/original-plugin-raw/zh/fileTemplates/code/OC Overridden CopyWithZone Body 3.m.html new file mode 100644 index 000000000..6caf86994 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/OC Overridden CopyWithZone Body 3.m.html @@ -0,0 +1,36 @@ + + + + + + +
+ 为没有实例变量的类生成(例如,调用代码 | 生成 | -copyWithZone: 操作)时创建实现的 -copyWithZone: 方法的主体。
+ 模板是可编辑的。 除了 Objective-C 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + +
预定义变量将接收以下值:
${RETURN_TYPE} 创建的方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${CONTAINING_CLASS} 在其中实现方法的类的名称
C 文件标头模板(包含选项卡)中的所有预定义变量也可用(${USER}${DATE} 等) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/OC Overridden Description Body 1.m.html b/original-plugin-raw/zh/fileTemplates/code/OC Overridden Description Body 1.m.html new file mode 100644 index 000000000..713188611 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/OC Overridden Description Body 1.m.html @@ -0,0 +1,48 @@ + + + + + + +
+ 生成(例如,调用代码 | 生成 | -description 操作)时创建被重写 -description 方法的主体。
+ 模板是可编辑的。 除了 Objective-C 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量将接收以下值:
${CALL_SUPER} super 方法调用,对于 void 方法 — [super methodName],带或不带形参; + 对于其他方法 — return [super methodName],带或不带形参 +
${RETURN_TYPE} 创建的方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${CONTAINING_CLASS} 在其中重写方法的类的名称
${CUSTOM_CODE} 生成的方法的主体
C 文件标头模板(包含选项卡)中的所有预定义变量也可用(${USER}${DATE} 等) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/OC Overridden Description Body 2.m.html b/original-plugin-raw/zh/fileTemplates/code/OC Overridden Description Body 2.m.html new file mode 100644 index 000000000..733a6653b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/OC Overridden Description Body 2.m.html @@ -0,0 +1,44 @@ + + + + + + +
+ 生成(例如,调用代码 | 生成 | -description 操作)时创建实现的 -description 方法的主体。
+ 模板是可编辑的。 除了 Objective-C 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量将接收以下值:
${RETURN_TYPE} 创建的方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${CONTAINING_CLASS} 在其中实现方法的类的名称
${CUSTOM_CODE} 生成的方法的主体
C 文件头模板(包含选项卡)中的所有预定义变量也可用 + (例如, + ${USER}、 + ${DATE} 等) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/OC Overridden Description Body 3.m.html b/original-plugin-raw/zh/fileTemplates/code/OC Overridden Description Body 3.m.html new file mode 100644 index 000000000..2c76f7997 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/OC Overridden Description Body 3.m.html @@ -0,0 +1,36 @@ + + + + + + +
+ 为没有实例变量的类生成(例如,调用代码 | 生成 | -description 操作)时创建实现的 -description 方法的主体。
+ 模板是可编辑的。 除了 Objective-C 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + +
预定义变量将接收以下值:
${RETURN_TYPE} 创建的方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${CONTAINING_CLASS} 在其中实现方法的类的名称
C 文件标头模板(包含选项卡)中的所有预定义变量也可用(${USER}${DATE} 等) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/OC Overridden InitWith Method Body.m.html b/original-plugin-raw/zh/fileTemplates/code/OC Overridden InitWith Method Body.m.html new file mode 100644 index 000000000..80f451262 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/OC Overridden InitWith Method Body.m.html @@ -0,0 +1,48 @@ + + + + + + +
+ 生成(例如,调用代码 | 重写方法代码 | 生成 | -initWith 操作)时创建被重写 -init 方法的主体。
+ 模板是可编辑的。 除了 Objective-C 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量将接收以下值:
${CALL_SUPER} super 方法调用,对于 void 方法 — [super methodName],带或不带形参; + 对于其他方法 — return [super methodName],带或不带形参 +
${RETURN_TYPE} 创建的方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${CONTAINING_CLASS} 在其中重写方法的类的名称
${CUSTOM_CODE} 生成方法的主体
C 文件标头模板(包含选项卡)中的所有预定义变量也可用(${USER}${DATE} 等) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/OC Overridden IsEqual Method Body.m.html b/original-plugin-raw/zh/fileTemplates/code/OC Overridden IsEqual Method Body.m.html new file mode 100644 index 000000000..69a44b94a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/OC Overridden IsEqual Method Body.m.html @@ -0,0 +1,48 @@ + + + + + + +
+ 生成(例如,调用代码 | 重写方法代码 | 生成 | -isEqual: 和 -hash 操作)时创建被重写 -isEqual: 方法的主体。
+ 模板是可编辑的。 除了 Objective-C 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量将接收以下值:
${CALL_SUPER} super 方法调用,对于 void 方法 — [super methodName],带或不带形参; + 对于其他方法 — return [super methodName],带或不带形参 +
${RETURN_TYPE} 创建的方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${CONTAINING_CLASS} 在其中重写方法的类的名称
${CUSTOM_CODE} type-specific isEqualToType:比较方法名称(如果已生成)
C 文件标头模板(包含选项卡)中的所有预定义变量也可用(${USER}${DATE} 等) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/OC Overridden Method Body.m.html b/original-plugin-raw/zh/fileTemplates/code/OC Overridden Method Body.m.html new file mode 100644 index 000000000..95b5b972f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/OC Overridden Method Body.m.html @@ -0,0 +1,46 @@ + + + + + + +
+ 生成(例如,调用代码 | 重写方法操作)时创建被重写方法的主体。
+ 模板是可编辑的。 除了 Objective-C 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量将接收以下值:
${CALL_SUPER} super 方法调用,对于 void 方法 — [super methodName],带或不带形参; + 对于其他方法 — return [super methodName],带或不带形参 +
${RETURN_TYPE} 创建的方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${CONTAINING_CLASS} 在其中重写方法的类的名称
C 文件头模板(包含选项卡)中的所有预定义变量也可用 + (例如, + ${USER}、 + ${DATE} 等) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/OC Property Getter Body.m.html b/original-plugin-raw/zh/fileTemplates/code/OC Property Getter Body.m.html new file mode 100644 index 000000000..d49cf1458 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/OC Property Getter Body.m.html @@ -0,0 +1,59 @@ + + + + + + +
+ 生成(例如,调用代码 | 重写方法操作)时创建属性被重写 getter 方法的主体。
+ 模板是可编辑的。 除了 Objective-C 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量将接收以下值:
${CALL_SUPER} super 方法调用,对于 void 方法 — [super methodName],带或不带形参; + 对于其他方法 — return [super methodName],带或不带形参 +
${RETURN_TYPE} 创建的方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${CONTAINING_CLASS} 在其中重写方法的类的名称
${IVAR_IS_AVAILABLE} 当属性有实例变量 时,为 "true"
${IVAR} 实例变量的名称
${SETTER_SEMANTICS} 在 ARC 模式下:已设置 copy 特性时,为 "copyArc",否则为 "assign"
+ 在非 ARC 模式下:已设置 copy 特性时,为 "copy",已设置 retain 特性时,为 "retain",否则为 "assign"
C 文件标头模板(包含选项卡)中的所有预定义变量也可用(${USER}${DATE} 等) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/OC Property Setter Body.m.html b/original-plugin-raw/zh/fileTemplates/code/OC Property Setter Body.m.html new file mode 100644 index 000000000..cb962b444 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/OC Property Setter Body.m.html @@ -0,0 +1,64 @@ + + + + + + +
+ 生成(例如,调用代码 | 重写方法操作)时创建属性被重写 setter 方法的主体。
+ 模板是可编辑的。 除了 Objective-C 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量将接收以下值:
${CALL_SUPER} super 方法调用,对于 void 方法 — [super methodName],带或不带形参; + 对于其他方法 — return [super methodName],带或不带形参 +
${RETURN_TYPE} 创建的方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${CONTAINING_CLASS} 在其中重写方法的类的名称
${IVAR_IS_AVAILABLE} 当属性有实例变量 时,为 "true"
${IVAR} 实例变量的名称
${PARAM} setter 形参的名称
${SETTER_SEMANTICS} 在 ARC 模式下:已设置 copy 特性时,为 "copyArc",否则为 "assign"
+ 在非 ARC 模式下:已设置 copy 特性时,为 "copy",已设置 retain 特性时,为 "retain",否则为 "assign"
C 文件标头模板(包含选项卡)中的所有预定义变量也可用(${USER}${DATE} 等) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/OC Shared Instance Header.h.html b/original-plugin-raw/zh/fileTemplates/code/OC Shared Instance Header.h.html new file mode 100644 index 000000000..91e3d3bbc --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/OC Shared Instance Header.h.html @@ -0,0 +1,26 @@ + + + + + + +
+ 在类标头部分生成 +sharedInstance 方法的声明,例如,调用代码 | 生成 | +sharedInstance 操作时。
+ 模板是可编辑的。 除了 Objective-C 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + +
预定义变量将接收以下值:
${$CLASS_TYPE} 在其中实现方法的类的名称
C 文件标头模板(包含选项卡)中的所有预定义变量也可用(${USER}${DATE} 等) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/OC Shared Instance Implementation.m.html b/original-plugin-raw/zh/fileTemplates/code/OC Shared Instance Implementation.m.html new file mode 100644 index 000000000..db08f6cae --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/OC Shared Instance Implementation.m.html @@ -0,0 +1,26 @@ + + + + + + +
+ 在类实现部分生成 +sharedInstance 方法,例如,调用代码 | 生成 | +sharedInstance 操作时。
+ 模板是可编辑的。 除了 Objective-C 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + +
预定义变量将接收以下值:
${$CLASS_TYPE} 在其中实现方法的类的名称
C 文件标头模板(包含选项卡)中的所有预定义变量也可用(${USER}${DATE} 等) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Overridden Method Body.java.html b/original-plugin-raw/zh/fileTemplates/code/Overridden Method Body.java.html new file mode 100644 index 000000000..fd06570a8 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Overridden Method Body.java.html @@ -0,0 +1,63 @@ + + + + + + +
+ 在每次由程序生成被重写方法(例如,调用代码 | 重写方法… 函数)时填充方法体。
+ 此内置模板是可编辑的。 除了 Java 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${CALL_SUPER} super 方法调用,对于 void 方法 - super.method_name();,带或不带形参; + 对于其他方法 - return super.method_name();,带或不带形参 +
${PLAIN_CALL_SUPER} super 方法调用,super.method_name();,带或不带形参 +
${RETURN_TYPE} 创建方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${METHOD_NAME} 被重写的方法的名称
${CLASS_NAME} 方法被重写的类的限定名称
${SIMPLE_CLASS_NAME} 实现方法的类的非限定名称
所有来自 文件头 模板(包含选项卡)的预定义变量也可用。 + (例如: + ${USER}、 + ${DATE} + 等。) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Overridden Scala Method Body.scala.html b/original-plugin-raw/zh/fileTemplates/code/Overridden Scala Method Body.scala.html new file mode 100644 index 000000000..b1b17f703 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Overridden Scala Method Body.scala.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 这是每次重写 Scala 方法时 IntelliJ IDEA 使用的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/PHP Constructor.php.html b/original-plugin-raw/zh/fileTemplates/code/PHP Constructor.php.html new file mode 100644 index 000000000..745421846 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/PHP Constructor.php.html @@ -0,0 +1,42 @@ + + + + + + +
一个 PHP 类构造函数的内置模板。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${PARAM_LIST} 逗号分隔的构造函数形参列表,对应每个选定属性。
${PARAM_DOC} 形参的 PHPDoc 注释。
+ 生成为一系列行 ‘* @param type name’。 如果没有形参,评估为空内容。
${THROWS_DOC} 异常的 PHPDoc 注释。
+ 生成为一系列行 '* @throws type‘。 如果没有抛出异常,评估为空内容。
${CLASS_NAME} 类名。
${BODY} 包含 '$this->property=$property;' 的赋值的构造函数主体。
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/PHP Fluent Setter Method.php.html b/original-plugin-raw/zh/fileTemplates/code/PHP Fluent Setter Method.php.html new file mode 100644 index 000000000..2e55f5726 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/PHP Fluent Setter Method.php.html @@ -0,0 +1,63 @@ + + + + + + +
一个 PHP setter 方法的内置模板。 例如,当调用 "添加 getter 和 setter" 快速修复时,就会用到它。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME}  + 使用骆驼拼写法样式的方法名,没有 "set" 前缀,第一个字符大写。 例如,属性名称 '_my_property' 被 + 转换为 'MyProperty'。 +
${CLASS_NAME} 包含类名称。
${SCALAR_TYPE_HINT} 如果语言级别为 PHP 7.0 或更高版本,则包含标量类型提示
${RETURN_TYPE} 指示语言水平是否为 PHP 7.0 或更高,因此可以为函数/方法指定返回类型。
${FIELD_NAME} 原始属性名称保持原样。
${PARAM_NAME} setter 形参名称。 几乎与 ${FIELD_NAME} 相同, + 但删除了第一个下划线(如果有的话)。 例如,属性名称 '_myProperty' 被 + 转换为 'myProperty'。
${TYPE_HINT} 属性类型提示,如果未指定,则为空字符串。
+ ${DS} +  美元符号,计算为普通的 “$” 字符。
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/PHP Getter Method.php.html b/original-plugin-raw/zh/fileTemplates/code/PHP Getter Method.php.html new file mode 100644 index 000000000..0a0c10429 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/PHP Getter Method.php.html @@ -0,0 +1,62 @@ + + + + + + +
一个 PHP getter 方法的内置模板。 例如,当调用 "添加 getter 和 setter" 快速修复时,就会用到它。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 预定义变量接收以下值:
${STATIC} 如果属性是静态的,则取值为 'static',否则为空字符串。
${GET_OR_IS}  + 'get/is' 前缀。 如果一个属性有一个布尔类型(类型提示),则评估为 'is',否则评估为 'get' 字符串。 +
${NAME}  + 使用骆驼拼写法样式的方法名,没有 "get" 前缀,第一个字符大写。 例如,属性名称 '_my_property' 被转换为 'MyProperty'。 +
${CLASS_NAME} 包含类名称。
${RETURN_TYPE} 如果语言级别为 PHP 7.0 或更高版本,则包含返回类型提示
${FIELD_NAME} 原始属性名称保持原样。
${TYPE_HINT} 属性类型提示,如果未指定,则为空字符串。
+ ${DS} +  美元符号,计算为普通的 “$” 字符。
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/PHP Implemented Method Body.php.html b/original-plugin-raw/zh/fileTemplates/code/PHP Implemented Method Body.php.html new file mode 100644 index 000000000..d4142c8da --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/PHP Implemented Method Body.php.html @@ -0,0 +1,27 @@ + + + + + + +
一个已实现的 PHP 方法主体的内置模板。
+
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 方法名称。
${PARAM_LIST}  + 一个逗号分隔的形参列表,类似于原始方法。 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/PHP Overridden Method Body.php.html b/original-plugin-raw/zh/fileTemplates/code/PHP Overridden Method Body.php.html new file mode 100644 index 000000000..3f0044114 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/PHP Overridden Method Body.php.html @@ -0,0 +1,36 @@ + + + + + + +
+ 一个用于覆盖的 PHP 方法主体的内置模板。 + +
+ + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 方法名称。
${PARAM_LIST}  + 一个逗号分隔的形参列表,类似于原始方法。 +
${RETURN}  + 如果原始方法有一个 return 语句,该变量就包含一个 'return' 字符串,否则包含一个空字符串。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/PHP Setter Method.php.html b/original-plugin-raw/zh/fileTemplates/code/PHP Setter Method.php.html new file mode 100644 index 000000000..0e4753bbe --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/PHP Setter Method.php.html @@ -0,0 +1,70 @@ + + + + + + +
+ 一个 PHP setter 方法的内置模板。 例如,当调用 "添加 getter 和 setter" 快速修复时,就会用到它。 + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${STATIC} 如果属性是静态的,则取值为 'static',否则为空字符串。
${NAME}  + 使用骆驼拼写法样式的方法名,没有 "set" 前缀,第一个字符大写。 例如,属性名称 '_my_property' 被 + 转换为 'MyProperty'。 +
${CLASS_NAME} 包含类名称。
${SCALAR_TYPE_HINT} 如果语言级别为 PHP 7.0 或更高版本,则包含标量类型提示
${FIELD_NAME} 原始属性名称保持原样。
${PARAM_NAME} setter 形参名称。 几乎与 ${FIELD_NAME} 相同, + 但删除了第一个下划线(如果有的话)。 例如,属性名称 '_myProperty' 被 + 转换为 'myProperty'。
${TYPE_HINT} 属性类型提示,如果未指定,则为空字符串。
${VOID_RETURN_TYPE} 指示 void 返回类型是否可用于项目中的 PHP 语言级别。
+ ${DS} +  美元符号,计算为普通的 “$” 字符。
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/PHPSpec Test Method.php.html b/original-plugin-raw/zh/fileTemplates/code/PHPSpec Test Method.php.html new file mode 100644 index 000000000..955898d64 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/PHPSpec Test Method.php.html @@ -0,0 +1,44 @@ + + + + + + +
+ 一个 PHPSpec 测试方法的内置模板,在例如 "新建测试" 对话框中选择了生成方法的复选框时使用。 + +
+ + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${NAME} +   + 方法名称。 +
+ ${CAPITALIZED_NAME} +   + 第一个字符大写的方法名称。 +
+ ${TESTED_NAME} +   + 被测试的类的名称。 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/PHPUnit SetUp Method.php.html b/original-plugin-raw/zh/fileTemplates/code/PHPUnit SetUp Method.php.html new file mode 100644 index 000000000..7f90b9e5a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/PHPUnit SetUp Method.php.html @@ -0,0 +1,12 @@ + + + + + + +
+ 一个 PHPUnit setUp 方法的内置模板。 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/PHPUnit TearDown Method.php.html b/original-plugin-raw/zh/fileTemplates/code/PHPUnit TearDown Method.php.html new file mode 100644 index 000000000..67c6c524d --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/PHPUnit TearDown Method.php.html @@ -0,0 +1,12 @@ + + + + + + +
+ 一个 PHPUnit tearDown 方法的内置模板。 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/PHPUnit Test Method.php.html b/original-plugin-raw/zh/fileTemplates/code/PHPUnit Test Method.php.html new file mode 100644 index 000000000..1996be123 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/PHPUnit Test Method.php.html @@ -0,0 +1,44 @@ + + + + + + +
+ 一个 PHPUnit 测试方法的内置模板。 例如,当在 “新建测试” 对话框中选中用于生成测试方法的复选框时,将使用它。 + +
+ + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${NAME} +   + 方法名称。 +
+ ${CAPITALIZED_NAME} +   + 第一个字符大写的方法名称。 +
+ ${TESTED_NAME} +   + 被测试的类的名称。 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/React Class Component.jsx.html b/original-plugin-raw/zh/fileTemplates/code/React Class Component.jsx.html new file mode 100644 index 000000000..8ea6cb4e7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/React Class Component.jsx.html @@ -0,0 +1,39 @@ + + + + + + +
+ + 此内置模板用于创建 React 类组件(例如,通过提取组件重构)。 您可以定制这个模板,例如,使用 Component 代替 PureComponent 或改变 prop 类型的定义。 + 您也可以使用预定义的变量。 当模板被应用时,这些变量将被替换成相应的值。 + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 组件名称
${COMPONENT_BODY} 组件主体
${PROP_TYPES} prop 类型定义(使用 prop-types 模块)
${PROP_TYPES} 当没有提供 prop 值时,React 将使用默认的 prop 值。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/React Function Component.jsx.html b/original-plugin-raw/zh/fileTemplates/code/React Function Component.jsx.html new file mode 100644 index 000000000..740fdcf96 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/React Function Component.jsx.html @@ -0,0 +1,39 @@ + + + + + + +
+ + 此内置模板用于创建 React 函数组件(例如,通过提取组件重构)。 您可以定制这个模板,例如,将组件定义为箭头函数或改变 prop 类型的定义。 + 您也可以使用预定义的变量。 当模板被应用时,这些变量将被替换成相应的值。 + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 组件名称
${HAS_PROPS} 如果组件有 props,则为 true
${COMPONENT_BODY} 组件主体
${PROP_TYPES} prop 类型定义(使用 prop-types 模块)
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/ScalaTest Class.scala.html b/original-plugin-raw/zh/fileTemplates/code/ScalaTest Class.scala.html new file mode 100644 index 000000000..f7a2e43db --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/ScalaTest Class.scala.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 这是每次创建 ScalaTest 测试类时 IntelliJ IDEA 使用的内置模板 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Specs2 Class.scala.html b/original-plugin-raw/zh/fileTemplates/code/Specs2 Class.scala.html new file mode 100644 index 000000000..fe37b3efe --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Specs2 Class.scala.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 这是每次创建 Specs2 测试类时 IntelliJ IDEA 使用的内置模板 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Spock Test Method.groovy.html b/original-plugin-raw/zh/fileTemplates/code/Spock Test Method.groovy.html new file mode 100644 index 000000000..35f3b62a3 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Spock Test Method.groovy.html @@ -0,0 +1,27 @@ + + + + + + +
+ 这是用于在 Spock 测试类中创建测试方法的模板。 + +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称。
${BODY} 生成的方法体。
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/Spock cleanup Method.groovy.html b/original-plugin-raw/zh/fileTemplates/code/Spock cleanup Method.groovy.html new file mode 100644 index 000000000..b398f4f04 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Spock cleanup Method.groovy.html @@ -0,0 +1,27 @@ + + + + + + +
+ 这是用于在 Spock 测试类中创建 cleanup() 方法的模板。 + +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称。
${BODY} 生成的方法体。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Spock_SetUp_Method.groovy.html b/original-plugin-raw/zh/fileTemplates/code/Spock_SetUp_Method.groovy.html new file mode 100644 index 000000000..609b62d55 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Spock_SetUp_Method.groovy.html @@ -0,0 +1,27 @@ + + + + + + +
+ 这是用于在 Spock 测试类中创建 setup() 方法的模板。 + +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称。
${BODY} 生成的方法体。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Swift Implemented Initializer Body.swift.html b/original-plugin-raw/zh/fileTemplates/code/Swift Implemented Initializer Body.swift.html new file mode 100644 index 000000000..80101f87d --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Swift Implemented Initializer Body.swift.html @@ -0,0 +1,26 @@ + + + + + + +
+ 在生成已实现初始值设定项(例如,使用代码 | 生成 | 实现方法操作)时填充初始值设定项的主体。
+ 模板是可编辑的。 除了 Swift 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。 +
+ + + + + + + + + + + + +
预定义变量接收以下值:
${SIGNATURE} 初始值设定项签名
Swift 文件头模板(包含选项卡)中的所有预定义变量也可用(例如 ${USER}${DATE} 等)。 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/Swift Implemented Method Body.swift.html b/original-plugin-raw/zh/fileTemplates/code/Swift Implemented Method Body.swift.html new file mode 100644 index 000000000..e9a22e494 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Swift Implemented Method Body.swift.html @@ -0,0 +1,36 @@ + + + + + + +
+ 在生成已实现方法(例如,使用代码 | 生成 | 实现方法操作)时填充方法体。
+ 模板是可编辑的。 除了 Swift 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。 +
+ + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${RETURN_TYPE} 创建的方法的返回类型
${DEFAULT_RETURN_VALUE} 返回值的建议默认值(可以为空)
${SIGNATURE} 方法签名
Swift 文件头模板(包含选项卡)中的所有预定义变量也可用(例如 ${USER}${DATE} 等)。 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/Swift Implemented Property Body.swift.html b/original-plugin-raw/zh/fileTemplates/code/Swift Implemented Property Body.swift.html new file mode 100644 index 000000000..1351156d2 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Swift Implemented Property Body.swift.html @@ -0,0 +1,56 @@ + + + + + + +
+ 在生成已实现属性(例如,使用代码 | 生成 | 实现方法操作)时填充属性的主体。
+ 模板是可编辑的。 除了 Swift 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${RETURN_TYPE} 创建的属性的类型
${DEFAULT_RETURN_VALUE} 返回值的建议默认值(可以为空)
${SIGNATURE} 属性签名
${HAS_SET} 当属性有 setter 时,为 "true"
${GETTER_EFFECTS} 属性 getter 的 getter 效果(asyncthrows
${GET_ATTRIBUTES} 属性 getter 的特性
${SET_ATTRIBUTES} 属性 setter 的特性
Swift 文件头模板(包含选项卡)中的所有预定义变量也可用(例如 ${USER}${DATE} 等)。 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/Swift Implemented Subscript Body.swift.html b/original-plugin-raw/zh/fileTemplates/code/Swift Implemented Subscript Body.swift.html new file mode 100644 index 000000000..df192fde7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Swift Implemented Subscript Body.swift.html @@ -0,0 +1,57 @@ + + + + + + +
+ 在生成已实现下标(例如,使用代码 | 生成 | 实现方法操作)时填充下标的主体。
+ 模板是可编辑的。 除了 Swift 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${RETURN_TYPE} 创建的下标的返回类型
${DEFAULT_RETURN_VALUE} 返回值的建议默认值(可以为空)
${SIGNATURE} 下标签名
${HAS_SET} 当下标有 setter 时,为 "true"
${GETTER_EFFECTS} 属性 getter 的 getter 效果(asyncthrows
${GET_ATTRIBUTES} 下标 getter 的特性
${SET_ATTRIBUTES} 下标 setter 的特性
+ Swift 文件头模板(包含选项卡)中的所有预定义变量也可用(例如 ${USER}${DATE} 等)。 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/Swift Overridden Initializer Body.swift.html b/original-plugin-raw/zh/fileTemplates/code/Swift Overridden Initializer Body.swift.html new file mode 100644 index 000000000..7b15388d4 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Swift Overridden Initializer Body.swift.html @@ -0,0 +1,32 @@ + + + + + + +
+ 在生成被重写初始值设定项(例如,使用代码 | 生成 | 重写方法操作)时填充初始值设定项的主体。
+ 模板是可编辑的。 除了 Swift 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。 +
+ + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${CALL_SUPER} super 初始值设定项调用 - 带或不带形参的 super.init() +
${SIGNATURE} 方法签名
Swift 文件头模板(包含选项卡)中的所有预定义变量也可用(例如 ${USER}${DATE} 等)。 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/Swift Overridden Method Body.swift.html b/original-plugin-raw/zh/fileTemplates/code/Swift Overridden Method Body.swift.html new file mode 100644 index 000000000..d398a102f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Swift Overridden Method Body.swift.html @@ -0,0 +1,44 @@ + + + + + + +
+ 在生成被重写方法(例如,使用代码 | 生成 | 重写方法操作)时填充方法体。
+ 模板是可编辑的。 除了 Swift 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${CALL_SUPER}  + super 方法调用,用于 Void 方法:带或不带形参的 super.methodName(); + 对于其他方法:带或不带形参的 return super.methodName() +
${RETURN_TYPE} 创建的方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${SIGNATURE} 方法签名
Swift 文件头模板(包含选项卡)中的所有预定义变量也可用(例如 ${USER}${DATE} 等)。 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/Swift Overridden Property Body.swift.html b/original-plugin-raw/zh/fileTemplates/code/Swift Overridden Property Body.swift.html new file mode 100644 index 000000000..3daf22aa2 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Swift Overridden Property Body.swift.html @@ -0,0 +1,66 @@ + + + + + + +
+ 在生成被重写属性(例如,使用代码 | 生成 | 重写方法操作)时填充属性的主体。
+ 模板是可编辑的。 除了 Swift 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${CALL_SUPER} super 属性调用:super.propertyName
${RETURN_TYPE} 创建的属性的返回类型
${DEFAULT_RETURN_VALUE} 属性默认返回的值
${SIGNATURE} 属性签名
${HAS_SET} 当属性有 setter 时,为 "true"
${HAS_SUPER_SET} 当被重写属性有 setter 时,为 "true"
${GETTER_EFFECTS} 属性 getter 的 getter 效果(asyncthrows
${GET_ATTRIBUTES} 属性 getter 的特性
${SET_ATTRIBUTES} 属性 setter 的特性
Swift 文件头模板(包含选项卡)中的所有预定义变量也可用(例如 ${USER}${DATE} 等)。 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/Swift Overridden Subscript Body.swift.html b/original-plugin-raw/zh/fileTemplates/code/Swift Overridden Subscript Body.swift.html new file mode 100644 index 000000000..352047913 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Swift Overridden Subscript Body.swift.html @@ -0,0 +1,67 @@ + + + + + + +
+ 在生成被重写下标(例如,使用代码 | 生成 | 重写方法操作)时填充下标的主体。
+ 模板是可编辑的。 除了 Swift 表达式和注释外,您还可以使用预定义变量,这些变量随后将被扩展为相应值。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${CALL_SUPER} super 下标调用 - 带形参的 return super[] +
${RETURN_TYPE} 创建的下标的返回类型
${DEFAULT_RETURN_VALUE} 下标默认返回的值
${SIGNATURE} 下标签名
${HAS_SET} 当下标有 setter 时,为 "true"
${HAS_SUPER_SET} 当被重写下标有 setter 时,为 "true"
${GETTER_EFFECTS} 属性 getter 的 getter 效果(asyncthrows
${GET_ATTRIBUTES} 下标 getter 的特性
${SET_ATTRIBUTES} 下标 setter 的特性
Swift 文件头模板(包含选项卡)中的所有预定义变量也可用(例如 ${USER}${DATE} 等)。 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/code/Switch Default Branch.java.html b/original-plugin-raw/zh/fileTemplates/code/Switch Default Branch.java.html new file mode 100644 index 000000000..be4599027 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Switch Default Branch.java.html @@ -0,0 +1,26 @@ + + + + + + +
插入 'default' 分支等快速修复操作使用的 switch 表达式或语句生成 default 分支。
+ 此内置模板是可编辑的。 例如,您可以更改抛出的异常或调用日志记录框架。
+
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${EXPRESSION} 切换选择器表达式文本
${EXPRESSION_TYPE} switch 选择器表达式的类型
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/TestNG AfterClass Method.java.html b/original-plugin-raw/zh/fileTemplates/code/TestNG AfterClass Method.java.html new file mode 100644 index 000000000..1e7d2dcd2 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/TestNG AfterClass Method.java.html @@ -0,0 +1,27 @@ + + + + + + + +
+ 在 TestNG 测试类中创建一个 afterClass 方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/TestNG BeforeClass Method.java.html b/original-plugin-raw/zh/fileTemplates/code/TestNG BeforeClass Method.java.html new file mode 100644 index 000000000..c751a30aa --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/TestNG BeforeClass Method.java.html @@ -0,0 +1,27 @@ + + + + + + + +
+ 在 TestNG 测试类中创建一个 beforeClass 方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/TestNG Parameters Method.java.html b/original-plugin-raw/zh/fileTemplates/code/TestNG Parameters Method.java.html new file mode 100644 index 000000000..61779001c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/TestNG Parameters Method.java.html @@ -0,0 +1,26 @@ + + + + + + +
+ 在 TestNG 测试类中创建一个数据方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/TestNG SetUp Method.java.html b/original-plugin-raw/zh/fileTemplates/code/TestNG SetUp Method.java.html new file mode 100644 index 000000000..b293cc55f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/TestNG SetUp Method.java.html @@ -0,0 +1,26 @@ + + + + + + +
+ 在 TestNG 测试类中创建一个 setUp 方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/TestNG TearDown Method.java.html b/original-plugin-raw/zh/fileTemplates/code/TestNG TearDown Method.java.html new file mode 100644 index 000000000..e75580d28 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/TestNG TearDown Method.java.html @@ -0,0 +1,26 @@ + + + + + + +
+ 在 TestNG 测试类中创建一个 tearDown 方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/TestNG Test Class.java.html b/original-plugin-raw/zh/fileTemplates/code/TestNG Test Class.java.html new file mode 100644 index 000000000..b292c1c7d --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/TestNG Test Class.java.html @@ -0,0 +1,31 @@ + + + + + + +
+ 创建一个 TestNG 测试类。 +
+ + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的类的名称
${CLASS_NAME} 被测试的类的名称
${BODY} 生成的类主体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/TestNG Test Method.java.html b/original-plugin-raw/zh/fileTemplates/code/TestNG Test Method.java.html new file mode 100644 index 000000000..7dbb018ca --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/TestNG Test Method.java.html @@ -0,0 +1,26 @@ + + + + + + +
+ 在 TestNG 测试类中创建一个测试方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 创建的方法的名称
${BODY} 生成的方法体
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/TypeScript Implemented Method Body.ts.html b/original-plugin-raw/zh/fileTemplates/code/TypeScript Implemented Method Body.ts.html new file mode 100644 index 000000000..4caa29642 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/TypeScript Implemented Method Body.ts.html @@ -0,0 +1,43 @@ + + + + + + +
+ + 此内置模板用于在生成方法(例如,通过从用法创建方法意图操作)时填充方法体。
+ 模板是可编辑的。 除了 TypeScript 表达式和注释,您还可以使用预定义变量。 + 当模板被应用时,这些变量将被替换成相应的值。 +
+
+ + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${RETURN_TYPE} 创建方法的返回类型
${DEFAULT_RETURN_VALUE} 方法默认返回的值
${METHOD_NAME} 创建的方法名称
所有来自 文件头 模板(包含选项卡)的预定义变量也可用。 + (例如: + ${USER}、 + ${DATE} + 等。) +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Typed React Class Component.tsx.html b/original-plugin-raw/zh/fileTemplates/code/Typed React Class Component.tsx.html new file mode 100644 index 000000000..db08ad495 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Typed React Class Component.tsx.html @@ -0,0 +1,40 @@ + + + + + + +
+ + 此内置模板用于创建 React 类组件(例如,通过提取组件重构)。 您可以定制这个模板,例如,使用 Component 代替 PureComponent 或改变 prop 类型的定义。 + 您也可以使用预定义的变量。 当模板被应用时,这些变量将被替换成相应的值。 + 这个模板在 TypeScript 和 Flow 中被使用。 + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 组件名称
${COMPONENT_BODY} 组件主体
${PROP_TYPES} props 类型定义
${PROP_TYPES} 当没有提供 prop 值时,React 将使用默认的 prop 值。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/Typed React Function Component.tsx.html b/original-plugin-raw/zh/fileTemplates/code/Typed React Function Component.tsx.html new file mode 100644 index 000000000..fd535c1ee --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/Typed React Function Component.tsx.html @@ -0,0 +1,35 @@ + + + + + + +
+ + 此内置模板用于创建 React 函数组件(例如,通过提取组件重构)。 您可以定制这个模板,例如,将组件定义为箭头函数或改变 prop 类型的定义。 您也可以使用预定义的变量。 + 当模板被应用时,这些变量将被替换成相应的值。 + 这个模板在 TypeScript 和 Flow 中被使用。 + +
+ + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${NAME} 组件名称
${COMPONENT_BODY} 组件主体
${PROP_TYPES} props 类型定义
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/XCTest SetUp Method.m.html b/original-plugin-raw/zh/fileTemplates/code/XCTest SetUp Method.m.html new file mode 100644 index 000000000..389095973 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/XCTest SetUp Method.m.html @@ -0,0 +1,21 @@ + + + + + + +
+ 在 XCTest 测试类中创建 setUp 方法。 +
+ + + + + + + + + +
预定义变量接收以下值:
${END} 将文本光标移至此位置
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/XCTest TearDown Method.m.html b/original-plugin-raw/zh/fileTemplates/code/XCTest TearDown Method.m.html new file mode 100644 index 000000000..e89ef5926 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/XCTest TearDown Method.m.html @@ -0,0 +1,21 @@ + + + + + + +
+ 在 XCTest 测试类中创建 tearDown 方法。 +
+ + + + + + + + + +
预定义变量接收以下值:
${END} 将文本光标移至此位置
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/XCTest Test Method.m.html b/original-plugin-raw/zh/fileTemplates/code/XCTest Test Method.m.html new file mode 100644 index 000000000..b3f482e33 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/XCTest Test Method.m.html @@ -0,0 +1,26 @@ + + + + + + +
+ 在 XCTest 测试类中创建 test 方法。 +
+ + + + + + + + + + + + + + +
预定义变量接收以下值:
${Name} 创建的方法的名称
${END} 将文本光标移至此位置
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/code/uTest Object.scala.html b/original-plugin-raw/zh/fileTemplates/code/uTest Object.scala.html new file mode 100644 index 000000000..b642012a1 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/code/uTest Object.scala.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 这是每次创建 uTest 测试对象时 IntelliJ IDEA 使用的内置模板 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/default.html b/original-plugin-raw/zh/fileTemplates/default.html new file mode 100644 index 000000000..23c9d74d2 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/default.html @@ -0,0 +1,162 @@ + + + + + + +
在文件模板中,您可以使用文本、代码、注释和预定义变量。 以下提供了预定义变量的列表。 当您在模板中使用这些变量时,它们稍后会在编辑器中扩展为相应的值。

+ + 您也可以指定自定义变量。 自定义变量使用以下格式:${VARIABLE_NAME},其中 VARIABLE_NAME是变量的名称(例如,${MY_CUSTOM_FUNCTION_NAME}) 。 + 在 IDE 创建包含自定义变量的新文件之前,您会看到一个对话框,您可以在其中定义模板中自定义变量的值。

+ + 通过使用 #parse 指令,可以包括 包含 选项卡中的模板。 要包含模板,请在引号中将模板的全名指定为形参(例如,#parse("File Header"))。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量列表
+ ${DATE} +  当前系统日期
+ ${DAY} +  当前月份的日期
+ ${DAY_NAME_SHORT} +  当前日期名称的前 3 个字母(例如,Mon、Tue 等)
+ ${DAY_NAME_FULL} +   当前日期的全名(Monday、Tuesday 等)
+ ${DIR_PATH} +   新文件的目录路径(相对于项目根目录)
+ ${DS} +   美元符号 ($)。 此变量用于转义美元字符,因此不会将其视为模板变量的前缀。
+ ${FILE_NAME} +   新文件名称
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${SECOND} +  当前秒
+ ${MONTH} +  当前月份
+ ${MONTH_NAME_SHORT} +  当前月份名称的前 3 个字母(Jan、Feb 等)。 +
+ ${MONTH_NAME_FULL} +  当前月份的全名(January、February 等)。 +
+ ${NAME} +   新实体的名称(文件、类型、接口等)
+ ${ORGANIZATION_NAME} +   在项目设置中指定的组织名称
+ ${PRODUCT_NAME} +   IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ ${TIME} +  当前系统时间
+ ${USER} +  当前用户的系统登录名
+ ${YEAR} +  当前年度
+ + diff --git a/original-plugin-raw/zh/fileTemplates/includes/Drupal Hook Implementation Doc Comment.php.html b/original-plugin-raw/zh/fileTemplates/includes/Drupal Hook Implementation Doc Comment.php.html new file mode 100644 index 000000000..3dbb03f32 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/includes/Drupal Hook Implementation Doc Comment.php.html @@ -0,0 +1,22 @@ + + + + + + +
一个 Drupal 挂钩实现的 PHPDoc 注释的内置模板。 它包含一个代码片段,可以在 #parse 指令的帮助下将其包含在文件模板(Templates 标签)中。
+ 模板是可编辑的。 除了静态文本、代码和注释外,您还可以使用预定义变量,这些变量将像宏一样被扩展为相应值。

+
+ + + + + + + + + +
+ 预定义变量接收以下值:
${HOOK_NAME} 挂钩名称。
+ + diff --git a/original-plugin-raw/zh/fileTemplates/includes/File Header.java.html b/original-plugin-raw/zh/fileTemplates/includes/File Header.java.html new file mode 100644 index 000000000..d20677261 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/includes/File Header.java.html @@ -0,0 +1,86 @@ + + + + + + +
包含一个代码片段,可以在 #parse 指令的帮助下将其包含在文件模板(Templates 选项卡)中。
+ 此内置模板是可编辑的。 除了静态文本、代码和注释外,您还可以使用预定义变量,这些变量随后将像宏一样被扩展为相应值。

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${PACKAGE_NAME} 在其中创建新文件的软件包名称
${USER} 当前的用户系统登录名
${DATE} 当前系统日期
${TIME} 当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母。 例如:Jan、Feb 等
${MONTH_NAME_FULL} 当前月份的全名。 例如:January、February 等
${DAY} 当前月份的日期
${DAY_NAME_SHORT} 当前日期名称的前 3 个字母。 例如:Mon、Tue 等
${DAY_NAME_FULL} 当前日期的全名。 例如:Monday、Tuesday 等
${HOUR} 当前小时
${MINUTE} 当前分钟
${PROJECT_NAME} 当前项目名称
+ + diff --git a/original-plugin-raw/zh/fileTemplates/includes/PHP Class Doc Comment.php.html b/original-plugin-raw/zh/fileTemplates/includes/PHP Class Doc Comment.php.html new file mode 100644 index 000000000..170502366 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/includes/PHP Class Doc Comment.php.html @@ -0,0 +1,106 @@ + + + + + + +
一个 PHP 类的 PHPDoc 注释的内置模板。 它包含一个代码片段,可以在 #parse 指令的帮助下将其包含在文件模板(Templates 标签)中。
+ 模板是可编辑的。 除了静态文本、代码和注释外,您还可以使用预定义变量,这些变量将像宏一样被扩展为相应值。

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 预定义变量接收以下值:
${NAME} 类名。
${NAMESPACE} 类命名空间的完全限定名称,没有前导斜杠。
+ ${DS} +  美元符号,计算为普通的 “$” 字符。
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母。 例如:Jan、Feb 等
${MONTH_NAME_FULL} 当前月份的全名。 例如:January、February 等
${DAY} 当前月份的日期
${HOUR} 当前小时
${MINUTE} 当前分钟
${SECOND} 当前秒
${PROJECT_NAME} 当前项目名称
${USER} 当前用户
+ ${CARET} +  标记添加注释后文本光标必须移动到的位置。
+ + diff --git a/original-plugin-raw/zh/fileTemplates/includes/PHP File Header.php.html b/original-plugin-raw/zh/fileTemplates/includes/PHP File Header.php.html new file mode 100644 index 000000000..44eec0585 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/includes/PHP File Header.php.html @@ -0,0 +1,99 @@ + + + + + + +
一个 PHP 文件头的内置模板。 它包含一个代码片段,可以在 #parse 指令的帮助下将其包含在文件模板(Templates 标签)中。
+ 模板是可编辑的。 除了静态文本、代码和注释外,您还可以使用预定义变量,这些变量将像宏一样被扩展为相应值。

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母。 例如:Jan、Feb 等
${MONTH_NAME_FULL} 当前月份的全名。 例如:January、February 等
${DAY} 当前月份的日期
${HOUR} 当前小时
${MINUTE} 当前分钟
${SECOND} 当前秒
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/includes/PHP Function Doc Comment.php.html b/original-plugin-raw/zh/fileTemplates/includes/PHP Function Doc Comment.php.html new file mode 100644 index 000000000..1a333eb53 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/includes/PHP Function Doc Comment.php.html @@ -0,0 +1,134 @@ + + + + + + +
一个 PHP 函数的 PHPDoc 注释的内置模板。 它包含一个代码片段,可以在 #parse 指令的帮助下将其包含在文件模板(Templates 标签)中。
+ 模板是可编辑的。 除了静态文本、代码和注释外,您还可以使用预定义变量,这些变量将像宏一样被扩展为相应值。

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 预定义变量接收以下值:
${NAME} 函数名称。
${TYPE_HINT} 函数返回值的类型提示。 如果没有推断出返回类型,则评估为 'void'。
${PARAM_DOC}  + +

形参的 PHPDoc 注释。 +

生成为一系列行 '* @param type name'。 如果没有形参,评估为空内容。 + +

${THROWS_DOC}  + +

异常的文档注释。 +

生成为一系列行 '* @throws type'。 如果没有抛出异常,评估为空内容。 + +

${STATIC} 如果函数/方法是静态的,则取值为 'static',否则为空字符串。 例如: +
+      #if (${STATIC} == "static") * @static
+      #end
+    
+ ${DS} +  美元符号,计算为普通的 “$” 字符。
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母。 例如:Jan、Feb 等
${MONTH_NAME_FULL} 当前月份的全名。 例如:January、February 等
${DAY} 当前月份的日期
${HOUR} 当前小时
${MINUTE} 当前分钟
${SECOND} 当前秒
${PROJECT_NAME} 当前项目名称
${USER} 当前用户
+ ${CARET} +  标记添加注释后文本光标必须移动到的位置。
+ + diff --git a/original-plugin-raw/zh/fileTemplates/includes/PHP Interface Doc Comment.php.html b/original-plugin-raw/zh/fileTemplates/includes/PHP Interface Doc Comment.php.html new file mode 100644 index 000000000..24c824713 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/includes/PHP Interface Doc Comment.php.html @@ -0,0 +1,106 @@ + + + + + + +
一个 PHP 接口的 PHPDoc 注释的内置模板。 它包含一个代码片段,可以在 #parse 指令的帮助下将其包含在文件模板(Templates 标签)中。
+ 模板是可编辑的。 除了静态文本、代码和注释外,您还可以使用预定义变量,这些变量将像宏一样被扩展为相应值。

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 预定义变量接收以下值:
${NAME} 接口名称。
${NAMESPACE} 接口命名空间的完全限定名称,没有前导斜杠。
+ ${DS} +  美元符号,计算为普通的 “$” 字符。
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母。 例如:Jan、Feb 等
${MONTH_NAME_FULL} 当前月份的全名。 例如:January、February 等
${DAY} 当前月份的日期
${HOUR} 当前小时
${MINUTE} 当前分钟
${SECOND} 当前秒
${PROJECT_NAME} 当前项目名称
${USER} 当前用户
+ ${CARET} +  标记添加注释后文本光标必须移动到的位置。
+ + diff --git a/original-plugin-raw/zh/fileTemplates/includes/PHP Property Doc Comment.php.html b/original-plugin-raw/zh/fileTemplates/includes/PHP Property Doc Comment.php.html new file mode 100644 index 000000000..b8473fb86 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/includes/PHP Property Doc Comment.php.html @@ -0,0 +1,117 @@ + + + + + + +
一个 PHP 类属性的 PHPDoc 注释的内置模板。 它包含一个代码片段,可以在 #parse 指令的帮助下将其包含在文件模板(Templates 标签)中。
+ 模板是可编辑的。 除了静态文本、代码和注释外,您还可以使用预定义变量,这些变量将像宏一样被扩展为相应值。

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 预定义变量接收以下值:
${NAME} 属性名称。
${CLASS_NAME} 类名。
${STATIC} 如果属性是静态的,则取值为 'static',否则为空字符串。
${NAMESPACE} 属性命名空间的完全限定名称,没有前导斜杠。
+ ${DS} +  美元符号,计算为普通的 “$” 字符。
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母。 例如:Jan、Feb 等
${MONTH_NAME_FULL} 当前月份的全名。 例如:January、February 等
${DAY} 当前月份的日期
${HOUR} 当前小时
${MINUTE} 当前分钟
${SECOND} 当前秒
${PROJECT_NAME} 当前项目名称
${USER} 当前用户
+ ${CARET} +  标记添加注释后文本光标必须移动到的位置。
+ + diff --git a/original-plugin-raw/zh/fileTemplates/includes/PHP Trait Doc Comment.php.html b/original-plugin-raw/zh/fileTemplates/includes/PHP Trait Doc Comment.php.html new file mode 100644 index 000000000..9fded4449 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/includes/PHP Trait Doc Comment.php.html @@ -0,0 +1,106 @@ + + + + + + +
一个 PHP 特征的 PHPDoc 注释的内置模板。 它包含一个代码片段,可以在 #parse 指令的帮助下将其包含在文件模板(Templates 标签)中。
+ 模板是可编辑的。 除了静态文本、代码和注释外,您还可以使用预定义变量,这些变量将像宏一样被扩展为相应值。

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 预定义变量接收以下值:
${NAME} 特征名称。
${NAMESPACE} 特征类的完全限定名称,没有前导斜杠。
+ ${DS} +  美元符号,计算为普通的 “$” 字符。
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母。 例如:Jan、Feb 等
${MONTH_NAME_FULL} 当前月份的全名。 例如:January、February 等
${DAY} 当前月份的日期
${HOUR} 当前小时
${MINUTE} 当前分钟
${SECOND} 当前秒
${PROJECT_NAME} 当前项目名称
${USER} 当前用户
+ ${CARET} +  标记添加注释后文本光标必须移动到的位置。
+ + diff --git a/original-plugin-raw/zh/fileTemplates/includes/RBS File Header.rbs.html b/original-plugin-raw/zh/fileTemplates/includes/RBS File Header.rbs.html new file mode 100644 index 000000000..545cfaf6b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/includes/RBS File Header.rbs.html @@ -0,0 +1,98 @@ + + + + + + + +
+ 在此模板中,您可以借助 #parse 指令指定要包含在文件模板(文件选项卡)中 + 的代码片段。 一个模板可以由多个文件模板共享。 除了RBS 语句、表达式和注释外,您还可以使用预定义变量,这些变量随后将像宏一样被扩展为相应值。 + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/includes/Ruby File Header.rb.html b/original-plugin-raw/zh/fileTemplates/includes/Ruby File Header.rb.html new file mode 100644 index 000000000..7aa143a94 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/includes/Ruby File Header.rb.html @@ -0,0 +1,98 @@ + + + + + + + +
+ 在此模板中,您可以借助 #parse 指令指定要包含在文件模板(文件选项卡)中 + 的代码片段。 一个模板可以由多个文件模板共享。 除了Ruby 语句、表达式和注释外,您还可以使用预定义变量,这些变量随后将像宏一样被扩展为相应值。 + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/includes/Swift File Header.swift.html b/original-plugin-raw/zh/fileTemplates/includes/Swift File Header.swift.html new file mode 100644 index 000000000..cbf2d578c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/includes/Swift File Header.swift.html @@ -0,0 +1,112 @@ + + + + + + +
包含一个代码段,可以使用 #parse 指令将其包含在文件模板(模板选项卡)中。
+ 模板是可编辑的。 除了静态文本、代码和注释外,您还可以使用预定义变量,这些变量随后将像宏一样被扩展为相应值。 +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${FILE_NAME} 当前文件的名称
${USER} 当前用户的系统登录名
${USER_NAME} 当前用户的全名
${ORGANIZATION_NAME} Xcode 项目的组织名称
${DATE} 当前系统日期
${TIME} 当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母。 例如:Jan、Feb 等
${MONTH_NAME_FULL} 当前月份的全名。 例如:January、February 等
${DAY} 当前日期
${DAY_NAME_SHORT} 当前日期名称的前 3 个字母。 例如:Mon、Tue 等
${DAY_NAME_FULL} 当天的全名。 例如:Monday、Tuesday 等
${HOUR} 当前小时
${MINUTE} 当前分钟
${PROJECT_NAME} 当前项目的名称
${COMPILER_VERSION_MAJOR} Swift 编译器的主要版本
${COMPILER_VERSION_MINOR} Swift 编译器的次要版本
${PREFER_EXPLICIT_RETURN} 首选显式返回选项(偏好设置 | 编辑器 | 代码样式 | Swift | 代码生成)的值
+ + diff --git a/original-plugin-raw/zh/fileTemplates/includes/default.html b/original-plugin-raw/zh/fileTemplates/includes/default.html new file mode 100644 index 000000000..ecc95b263 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/includes/default.html @@ -0,0 +1,87 @@ + + + + + + +
利用 #parse 指令,指定要包含到文件模板(模板选项卡)中的代码片段。
+ 一个模板可以被多个文件模板共享。

+ 除了静态文本、代码和注释外,您还可以使用预定义变量,这些变量随后将像宏一样被扩展为相应值。

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${PACKAGE_NAME} 在其中创建新文件的软件包名称
${USER} 当前用户的系统登录名
${DATE} 当前系统日期
${TIME} 当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母(Jan、Feb 等)
${MONTH_NAME_FULL} 当前月份的全名(January、February 等)。
${DAY} 当前月份的日期
${DAY_NAME_SHORT} 当前日期名称的前 3 个字母(例如,Mon、Tue 等)
${DAY_NAME_FULL} 当前日期的全名(Monday、Tuesday 等)
${HOUR} 当前小时
${MINUTE} 当前分钟
${PROJECT_NAME} 当前项目名称
+ + diff --git a/original-plugin-raw/zh/fileTemplates/internal/AWS CloudFormation Template (JSON).template.html b/original-plugin-raw/zh/fileTemplates/internal/AWS CloudFormation Template (JSON).template.html new file mode 100644 index 000000000..f3523e495 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/AWS CloudFormation Template (JSON).template.html @@ -0,0 +1,13 @@ + + + + + + +
+ + AWS CloudFormation (JSON) 空模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/AWS CloudFormation Template (YAML).yaml.html b/original-plugin-raw/zh/fileTemplates/internal/AWS CloudFormation Template (YAML).yaml.html new file mode 100644 index 000000000..e52dfcdb1 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/AWS CloudFormation Template (YAML).yaml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + AWS CloudFormation (YAML) 空模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/AnnotationType.java.html b/original-plugin-raw/zh/fileTemplates/internal/AnnotationType.java.html new file mode 100644 index 000000000..aede4b71d --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/AnnotationType.java.html @@ -0,0 +1,87 @@ + + + + + + +
适用于通过在项目工具窗口中调用新建 | Java 类 | 注解创建的新 Java 注解。

+ + 此内置模板是可编辑的。 除了 Java 表达式和注释外,您还可以使用预定义变量(如下所列),这些变量随后将像宏一样被扩展为相应值。

+ + 您也可以指定自定义变量。 自定义变量使用以下格式:${VARIABLE_NAME},其中 VARIABLE_NAME是变量的名称(例如,${MY_CUSTOM_FUNCTION_NAME}) 。 + 在 IDE 创建包含自定义变量的新文件之前,您会看到一个对话框,您可以在其中定义模板中自定义变量的值。

+ + 通过使用 #parse 指令,可以包括 包含 选项卡中的模板。 要包含模板,请在引号中将模板的全名指定为形参(例如,#parse("File Header.java"))。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${PACKAGE_NAME} 在其中创建新注解的软件包名称
${NAME} 您在创建新类对话框中指定的新注解的名称
${USER} 当前用户的系统登录名
${DATE} 当前系统日期
${TIME} 当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母(例如,Jan、Feb 等)
${MONTH_NAME_FULL} 当前月份的全名(January、February 等)。
${DAY} 当前月份的日期
${HOUR} 当前小时
${MINUTE} 当前分钟
${PROJECT_NAME} 当前项目名称
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/CMakeLists.txt.cmake.html b/original-plugin-raw/zh/fileTemplates/internal/CMakeLists.txt.cmake.html new file mode 100644 index 000000000..b9ec626ad --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/CMakeLists.txt.cmake.html @@ -0,0 +1,5 @@ + + +

创建空的 CMakeLists.txt 文件。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Class.java.html b/original-plugin-raw/zh/fileTemplates/internal/Class.java.html new file mode 100644 index 000000000..6bf8fcc02 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Class.java.html @@ -0,0 +1,87 @@ + + + + + + +
适用于通过在项目工具窗口中调用新建 | Java 类 | 类创建的新 Java 类。
+ + 此内置模板是可编辑的。 除了 Java 表达式和注释外,您还可以使用预定义变量(如下所列),这些变量随后将像宏一样被扩展为相应值。

+ + 您也可以指定自定义变量。 自定义变量使用以下格式:${VARIABLE_NAME},其中 VARIABLE_NAME是变量的名称(例如,${MY_CUSTOM_FUNCTION_NAME}) 。 + 在 IDE 创建包含自定义变量的新文件之前,您会看到一个对话框,您可以在其中定义模板中自定义变量的值。

+ + 通过使用 #parse 指令,可以包括 包含 选项卡中的模板。 要包含模板,请在引号中将模板的全名指定为形参(例如,#parse("File Header.java"))。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${PACKAGE_NAME} 在其中创建新类的软件包名称
${NAME} 您在创建新类对话框中指定的新类的名称
${USER} 当前用户的系统登录名
${DATE} 当前系统日期
${TIME} 当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母(Jan、Feb 等)
${MONTH_NAME_FULL} 当前月份的全名(January、February 等)。
${DAY} 当前月份的日期
${HOUR} 当前小时
${MINUTE} 当前分钟
${PROJECT_NAME} 当前项目名称
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Codeception Functional Test.php.html b/original-plugin-raw/zh/fileTemplates/internal/Codeception Functional Test.php.html new file mode 100644 index 000000000..9df03e5e0 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Codeception Functional Test.php.html @@ -0,0 +1,133 @@ + + + + + + + +
+ 一个 Codeception 功能测试的内置模板。 每次您创建新的 Codeception 功能测试时都会使用此模版。 从项目视图之一的弹出菜单 + 中选择 新建 | PHP 测试 ,然后选择 “Codeception 功能” 作为测试库。
+ 模板是可编辑的。 除了 PHP 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。
通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${TESTED_NAME} +  被测试的类的名称
+ ${TESTED_NAMESPACE} +  被测试的类的命名空间
+ ${NAME} +  测试类名
+ ${NAMESPACE} +  测试类命名空间
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${DS} +  美元符号,计算为普通的 “$” 字符。
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/Codeception Unit Test.php.html b/original-plugin-raw/zh/fileTemplates/internal/Codeception Unit Test.php.html new file mode 100644 index 000000000..49a76a5d8 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Codeception Unit Test.php.html @@ -0,0 +1,133 @@ + + + + + + + +
+ 一个 Codeception 单元测试的内置模板。 每次您创建新的 Codeception 单元测试时都会使用此模版。 从项目视图之一的弹出菜单 + 中选择 新建 | PHP 测试 ,然后选择 “Codeception 单元” 作为测试库。
+ 模板是可编辑的。 除了 PHP 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。
通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${TESTED_NAME} +  被测试的类的名称
+ ${TESTED_NAMESPACE} +  被测试的类的命名空间
+ ${NAME} +  测试类名
+ ${NAMESPACE} +  测试类命名空间
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${DS} +  美元符号,计算为普通的 “$” 字符。
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/ColdFusion File.cfm.html b/original-plugin-raw/zh/fileTemplates/internal/ColdFusion File.cfm.html new file mode 100644 index 000000000..5737c9e1a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/ColdFusion File.cfm.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 使用脚本创建 ColdFusion 文件。 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/internal/ColdFusion Script Component.cfc.html b/original-plugin-raw/zh/fileTemplates/internal/ColdFusion Script Component.cfc.html new file mode 100644 index 000000000..ec9e485c4 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/ColdFusion Script Component.cfc.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 通过脚本创建 ColdFusion 组件。 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/internal/ColdFusion Script Interface.cfc.html b/original-plugin-raw/zh/fileTemplates/internal/ColdFusion Script Interface.cfc.html new file mode 100644 index 000000000..d92b1b9e8 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/ColdFusion Script Interface.cfc.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 通过脚本创建 ColdFusion 接口。 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/internal/ColdFusion Tag Component.cfc.html b/original-plugin-raw/zh/fileTemplates/internal/ColdFusion Tag Component.cfc.html new file mode 100644 index 000000000..4ffbce8c7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/ColdFusion Tag Component.cfc.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 使用 cfcomponent 标记创建 ColdFusion 组件。 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/internal/ColdFusion Tag Interface.cfc.html b/original-plugin-raw/zh/fileTemplates/internal/ColdFusion Tag Interface.cfc.html new file mode 100644 index 000000000..5da53862e --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/ColdFusion Tag Interface.cfc.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 使用 cfinterface 标记创建 ColdFusion 接口。 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/internal/ERB File.erb.html b/original-plugin-raw/zh/fileTemplates/internal/ERB File.erb.html new file mode 100644 index 000000000..25d8b4fc5 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/ERB File.erb.html @@ -0,0 +1,96 @@ + + + + + + + +
+ 一个 ERB 文件的内置模板。 每次您创建新的 ERB 文件时都会使用此模版。 从项目视图之一的弹出菜单中选择 新建 | ERB 文件 。 除了 Ruby 和 HTML 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。 通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/Enum.java.html b/original-plugin-raw/zh/fileTemplates/internal/Enum.java.html new file mode 100644 index 000000000..545bc658b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Enum.java.html @@ -0,0 +1,87 @@ + + + + + + +
适用于通过在项目工具窗口中调用新建 | Java 类 | 枚举创建的新 Java 枚举。

+ + 此内置模板是可编辑的。 除了 Java 表达式和注释外,您还可以使用预定义变量(如下所列),这些变量随后将像宏一样被扩展为相应值。

+ + 您也可以指定自定义变量。 自定义变量使用以下格式:${VARIABLE_NAME},其中 VARIABLE_NAME是变量的名称(例如,${MY_CUSTOM_FUNCTION_NAME}) 。 + 在 IDE 创建包含自定义变量的新文件之前,您会看到一个对话框,您可以在其中定义模板中自定义变量的值。

+ + 通过使用 #parse 指令,可以包括 包含 选项卡中的模板。 要包含模板,请在引号中将模板的全名指定为形参(例如,#parse("File Header.java"))。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${PACKAGE_NAME} 在其中创建新枚举的软件包名称
${NAME} 您在创建新类对话框中指定的新枚举的名称
${USER} 当前用户的系统登录名
${DATE} 当前系统日期
${TIME} 当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母(Jan、Feb 等)
${MONTH_NAME_FULL} 当前月份的全名(January、February 等)。
${DAY} 当前月份的日期
${HOUR} 当前小时
${MINUTE} 当前分钟
${PROJECT_NAME} 当前项目名称
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Flask Main.py.html b/original-plugin-raw/zh/fileTemplates/internal/Flask Main.py.html new file mode 100644 index 000000000..7f2840fcd --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Flask Main.py.html @@ -0,0 +1,12 @@ + + +

创建一个 Python 脚本提供简单的 "Hello World!" Flask 应用程序和用于运行它的 '__main__' 方法。

+

有关创建 Flask 应用程序的更多信息,请参阅:

+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/FxmlFile.fxml.html b/original-plugin-raw/zh/fileTemplates/internal/FxmlFile.fxml.html new file mode 100644 index 000000000..ec66ee15c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/FxmlFile.fxml.html @@ -0,0 +1,5 @@ + + +用于创建 FXML 文件的内置模板。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Gant Script.gant.html b/original-plugin-raw/zh/fileTemplates/internal/Gant Script.gant.html new file mode 100644 index 000000000..5abddc71f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Gant Script.gant.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 用于创建 Gant 构建脚本的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Go Application.go.html b/original-plugin-raw/zh/fileTemplates/internal/Go Application.go.html new file mode 100644 index 000000000..907f4113c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Go Application.go.html @@ -0,0 +1,179 @@ + + + + + + +
Go 应用程序 是每次创建新 Go 文件时使用的内置模板。 与 Go 文件 模板相比,Go 应用程序 具有预定义的 main 函数。 要使用此模板,请转到 文件 | 新建 ,在 Go 类别中选择 Go 文件 ,然后选择 简单的应用程序

+ + 模板是可编辑的。 在模板中,可以使用下面列出的预定义变量。 这些变量稍后将 + 在编辑器中扩展为相应的值。

+ + 您也可以指定自定义变量。 自定义变量使用以下格式:${VARIABLE_NAME},其中 VARIABLE_NAME是变量的名称(例如,${MY_CUSTOM_FUNCTION_NAME}) 。 + 在 IDE 使用自定义变量创建新文件之前,您会看到一个对话框,您可以在其中定义模板中自定义变量的值。

+ + 通过使用 #parse 指令,可以包括 包含 选项中的模板。 要包含模板,请在引号中将模板的全名指定为形参(例如,#parse("File Header"))。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量列表
+ ${GO_PACKAGE_NAME_WITH_TEST_SUFFIX} +  在其中创建新测试文件的软件包名称。 该文件必须具有 _test 后缀。 该名称的格式如下:package_test
+ ${GO_PACKAGE_NAME} +  在其中创建新文件的软件包名称。
+ ${DATE} +  当前系统日期。
+ ${DAY} +  当前月份的日期。
+ ${DAY_NAME_SHORT} +  当前日期名称的前 3 个字母(例如,MonTue 等)。
+ ${DAY_NAME_FULL} +   当前日期的全名(例如,MondayTuesday 等)。
+ ${DIR_PATH} +   新文件的目录路径。 此路径相对于项目根目录的。
+ ${DS} +   美元符号 ($)。 此变量用于转义美元字符,因此不会将其视为模板变量的前缀。
+ ${FILE_NAME} +   新文件名称。
+ ${HOUR} +  当前小时。
+ ${MINUTE} +  当前分钟。
+ ${SECOND} +  当前秒。
+ ${MONTH} +  当前月份。
+ ${MONTH_NAME_SHORT} +  当前月份名称的前 3 个字母(例如,JanFeb 等)。 +
+ ${MONTH_NAME_FULL} +  当前月份的全名(例如,JanuaryFebruary 等)。 +
+ ${NAME} +   新实体的名称:文件、类型、接口等。
+ ${ORGANIZATION_NAME} +   在项目设置中指定的组织名称。
+ ${PRODUCT_NAME} +   IDE 名称。
+ ${PROJECT_NAME} +  当前项目名称。
+ ${TIME} +  当前系统时间。
+ ${USER} +  当前用户的系统登录名。
+ ${YEAR} +  当前年份。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Go File.go.html b/original-plugin-raw/zh/fileTemplates/internal/Go File.go.html new file mode 100644 index 000000000..a4f70aca4 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Go File.go.html @@ -0,0 +1,179 @@ + + + + + + +
Go 文件 是每次创建新 Go 文件时使用的内置模板。 要使用此模板,请转到 文件 | 新建 ,在 Go 类别中选择 Go 文件 ,然后选择 空文件

+ + 模板是可编辑的。 在模板中,可以使用下面列出的预定义变量。 这些变量稍后将 + 在编辑器中扩展为相应的值。

+ + 您也可以指定自定义变量。 自定义变量使用以下格式:${VARIABLE_NAME},其中 VARIABLE_NAME是变量的名称(例如,${MY_CUSTOM_FUNCTION_NAME}) 。 + 在 IDE 使用自定义变量创建新文件之前,您会看到一个对话框,您可以在其中定义模板中自定义变量的值。

+ + 通过使用 #parse 指令,可以包括 包含 选项中的模板。 要包含模板,请在引号中将模板的全名指定为形参(例如,#parse("File Header"))。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量列表
+ ${GO_PACKAGE_NAME_WITH_TEST_SUFFIX} +  在其中创建新测试文件的软件包名称。 该文件必须具有 _test 后缀。 该名称的格式如下:package_test
+ ${GO_PACKAGE_NAME} +  在其中创建新文件的软件包名称。
+ ${DATE} +  当前系统日期。
+ ${DAY} +  当前月份的日期。
+ ${DAY_NAME_SHORT} +  当前日期名称的前 3 个字母(例如,MonTue 等)。
+ ${DAY_NAME_FULL} +   当前日期的全名(例如,MondayTuesday 等)。
+ ${DIR_PATH} +   新文件的目录路径。 此路径相对于项目根目录的。
+ ${DS} +   美元符号 ($)。 此变量用于转义美元字符,因此不会将其视为模板变量的前缀。
+ ${FILE_NAME} +   新文件名称。
+ ${HOUR} +  当前小时。
+ ${MINUTE} +  当前分钟。
+ ${SECOND} +  当前秒。
+ ${MONTH} +  当前月份。
+ ${MONTH_NAME_SHORT} +  当前月份名称的前 3 个字母(例如,JanFeb 等)。 +
+ ${MONTH_NAME_FULL} +  当前月份的全名(例如,JanuaryFebruary 等)。 +
+ ${NAME} +   新实体的名称:文件、类型、接口等。
+ ${ORGANIZATION_NAME} +   在项目设置中指定的组织名称。
+ ${PRODUCT_NAME} +   IDE 名称。
+ ${PROJECT_NAME} +  当前项目名称。
+ ${TIME} +  当前系统时间。
+ ${USER} +  当前用户的系统登录名。
+ ${YEAR} +  当前年份。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Go Scratch.go.html b/original-plugin-raw/zh/fileTemplates/internal/Go Scratch.go.html new file mode 100644 index 000000000..d6fee2cbd --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Go Scratch.go.html @@ -0,0 +1,180 @@ + + + + + + +
Go 草稿 是每次创建新 Go 临时文件时使用的内置模板。 + 临时文件是功能齐全、可运行且可调试的文件,您可以使用它们来草拟您的编码想法。 要创建临时文件,请点击 文件 | 新建 | 临时文件。 在新建临时文件 对话框中,找到并选择 Go

+ + 模板是可编辑的。 在模板中,可以使用下面列出的预定义变量。 这些变量稍后将 + 在编辑器中扩展为相应的值。

+ + 您也可以指定自定义变量。 自定义变量使用以下格式:${VARIABLE_NAME},其中 VARIABLE_NAME是变量的名称(例如,${MY_CUSTOM_FUNCTION_NAME}) 。 + 在 IDE 使用自定义变量创建新文件之前,您会看到一个对话框,您可以在其中定义模板中自定义变量的值。

+ + 通过使用 #parse 指令,可以包括 包含 选项中的模板。 要包含模板,请在引号中将模板的全名指定为形参(例如,#parse("File Header"))。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量列表
+ ${GO_PACKAGE_NAME_WITH_TEST_SUFFIX} +  在其中创建新测试文件的软件包名称。 该文件必须具有 _test 后缀。 该名称的格式如下:package_test
+ ${GO_PACKAGE_NAME} +  在其中创建新文件的软件包名称。
+ ${DATE} +  当前系统日期。
+ ${DAY} +  当前月份的日期。
+ ${DAY_NAME_SHORT} +  当前日期名称的前 3 个字母(例如,MonTue 等)。
+ ${DAY_NAME_FULL} +   当前日期的全名(例如,MondayTuesday 等)。
+ ${DIR_PATH} +   新文件的目录路径。 此路径相对于项目根目录的。
+ ${DS} +   美元符号 ($)。 此变量用于转义美元字符,因此不会将其视为模板变量的前缀。
+ ${FILE_NAME} +   新文件名称。
+ ${HOUR} +  当前小时。
+ ${MINUTE} +  当前分钟。
+ ${SECOND} +  当前秒。
+ ${MONTH} +  当前月份。
+ ${MONTH_NAME_SHORT} +  当前月份名称的前 3 个字母(例如,JanFeb 等)。 +
+ ${MONTH_NAME_FULL} +  当前月份的全名(例如,JanuaryFebruary 等)。 +
+ ${NAME} +   新实体的名称:文件、类型、接口等。
+ ${ORGANIZATION_NAME} +   在项目设置中指定的组织名称。
+ ${PRODUCT_NAME} +   IDE 名称。
+ ${PROJECT_NAME} +  当前项目名称。
+ ${TIME} +  当前系统时间。
+ ${USER} +  当前用户的系统登录名。
+ ${YEAR} +  当前年份。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Groovy Annotation.groovy.html b/original-plugin-raw/zh/fileTemplates/internal/Groovy Annotation.groovy.html new file mode 100644 index 000000000..1f95df460 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Groovy Annotation.groovy.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 用于创建 Groovy 注解的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Groovy Class.groovy.html b/original-plugin-raw/zh/fileTemplates/internal/Groovy Class.groovy.html new file mode 100644 index 000000000..03d71a3db --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Groovy Class.groovy.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 用于创建 Groovy 类的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Groovy DSL Script.gdsl.html b/original-plugin-raw/zh/fileTemplates/internal/Groovy DSL Script.gdsl.html new file mode 100644 index 000000000..35659973b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Groovy DSL Script.gdsl.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 用于创建 Groovy 脚本的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Groovy Enum.groovy.html b/original-plugin-raw/zh/fileTemplates/internal/Groovy Enum.groovy.html new file mode 100644 index 000000000..1180b13b2 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Groovy Enum.groovy.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 用于创建 Groovy 枚举的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Groovy Interface.groovy.html b/original-plugin-raw/zh/fileTemplates/internal/Groovy Interface.groovy.html new file mode 100644 index 000000000..359ad603c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Groovy Interface.groovy.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 用于创建 Groovy 接口的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Groovy Script.groovy.html b/original-plugin-raw/zh/fileTemplates/internal/Groovy Script.groovy.html new file mode 100644 index 000000000..35659973b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Groovy Script.groovy.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 用于创建 Groovy 脚本的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Groovy Server Page.gsp.html b/original-plugin-raw/zh/fileTemplates/internal/Groovy Server Page.gsp.html new file mode 100644 index 000000000..ea9129aa1 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Groovy Server Page.gsp.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 这是每次创建新 Groovy Server Page 时使用的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Groovy Trait.groovy.html b/original-plugin-raw/zh/fileTemplates/internal/Groovy Trait.groovy.html new file mode 100644 index 000000000..f5889219d --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Groovy Trait.groovy.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 用于创建 Groovy 特征的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Interface.java.html b/original-plugin-raw/zh/fileTemplates/internal/Interface.java.html new file mode 100644 index 000000000..8df8224e7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Interface.java.html @@ -0,0 +1,87 @@ + + + + + + +
适用于通过在项目工具窗口中调用新建 | Java 类 | 接口创建的新 Java 接口。

+ + 此内置模板是可编辑的。 除了 Java 表达式和注释外,您还可以使用预定义变量(如下所列),这些变量随后将像宏一样被扩展为相应值。

+ + 您也可以指定自定义变量。 自定义变量使用以下格式:${VARIABLE_NAME},其中 VARIABLE_NAME是变量的名称(例如,${MY_CUSTOM_FUNCTION_NAME}) 。 + 在 IDE 创建包含自定义变量的新文件之前,您会看到一个对话框,您可以在其中定义模板中自定义变量的值。

+ + 通过使用 #parse 指令,可以包括 包含 选项卡中的模板。 要包含模板,请在引号中将模板的全名指定为形参(例如,#parse("File Header.java"))。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${PACKAGE_NAME} 在其中创建新接口的软件包名称
${NAME} 您在创建新类对话框中指定的新接口的名称
${USER} 当前的用户系统登录名
${DATE} 当前用户的系统登录名
${TIME} 当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母(Jan、Feb 等)
${MONTH_NAME_FULL} 当前月份的全名(January、February 等)。
${DAY} 当前月份的日期
${HOUR} 当前小时
${MINUTE} 当前分钟
${PROJECT_NAME} 当前项目名称
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Jade File.jade.html b/original-plugin-raw/zh/fileTemplates/internal/Jade File.jade.html new file mode 100644 index 000000000..e1ab77d05 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Jade File.jade.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 每次您创建 Jade 文件时都会使用此内置模板。 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/internal/Kotlin Class.kt.html b/original-plugin-raw/zh/fileTemplates/internal/Kotlin Class.kt.html new file mode 100644 index 000000000..da0076074 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Kotlin Class.kt.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 适用于通过在项目工具窗口中调用新建 | Kotlin 类/文件 | 类创建的新 Kotlin 类。
+
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Kotlin Data Class.kt.html b/original-plugin-raw/zh/fileTemplates/internal/Kotlin Data Class.kt.html new file mode 100644 index 000000000..cc6645144 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Kotlin Data Class.kt.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 适用于通过在项目工具窗口中调用新建 | Kotlin 类/文件 | 数据类创建的新 Kotlin 数据类。
+
+
+ + diff --git a/original-plugin-raw/zh/fileTemplates/internal/Kotlin Enum.kt.html b/original-plugin-raw/zh/fileTemplates/internal/Kotlin Enum.kt.html new file mode 100644 index 000000000..7b5c6e36f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Kotlin Enum.kt.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 适用于通过在项目工具窗口中调用新建 | Kotlin 类/文件 | 枚举类创建的新 Kotlin 枚举。
+
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Kotlin File.kt.html b/original-plugin-raw/zh/fileTemplates/internal/Kotlin File.kt.html new file mode 100644 index 000000000..54d20b485 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Kotlin File.kt.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 适用于通过在项目工具窗口中调用新建 | Kotlin 类/文件 | 文件创建的新 Kotlin 文件。
+
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Kotlin Interface.kt.html b/original-plugin-raw/zh/fileTemplates/internal/Kotlin Interface.kt.html new file mode 100644 index 000000000..3e147bd19 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Kotlin Interface.kt.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 适用于通过在项目工具窗口中调用新建 | Kotlin 类/文件 | 接口创建的新 Kotlin 接口。
+
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Kotlin Object.kt.html b/original-plugin-raw/zh/fileTemplates/internal/Kotlin Object.kt.html new file mode 100644 index 000000000..c741baaee --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Kotlin Object.kt.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 适用于通过在项目工具窗口中调用新建 | Kotlin 类/文件 | 对象创建的新 Kotlin 对象。
+
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Kotlin Script.kts.html b/original-plugin-raw/zh/fileTemplates/internal/Kotlin Script.kts.html new file mode 100644 index 000000000..76ea6c4fa --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Kotlin Script.kts.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 适用于通过在项目工具窗口中调用新建 | Kotlin 脚本创建的新 Kotlin 脚本。
+
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Kotlin Worksheet.kts.html b/original-plugin-raw/zh/fileTemplates/internal/Kotlin Worksheet.kts.html new file mode 100644 index 000000000..f9f01a112 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Kotlin Worksheet.kts.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 适用于通过在项目工具窗口中调用新建 | Kotlin 工作表创建的新 Kotlin 工作表。
+
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Liquid File.liquid.html b/original-plugin-raw/zh/fileTemplates/internal/Liquid File.liquid.html new file mode 100644 index 000000000..53ca604b1 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Liquid File.liquid.html @@ -0,0 +1,96 @@ + + + + + + + +
+ 一个 Liquid 文件的内置模板。 每次您创建新的 Liquid 文件时都会使用此模版。 从项目视图之一的弹出菜单中选择 新建 | Liquid 文件 。 除了 Liquid 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。 通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/Minitest Spec.rb.html b/original-plugin-raw/zh/fileTemplates/internal/Minitest Spec.rb.html new file mode 100644 index 000000000..0236854da --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Minitest Spec.rb.html @@ -0,0 +1,97 @@ + + + + + + + +
+ 一个 Minitest 规范测试的内置模板。 每次您创建新的测试时都会使用此模版。 从项目视图之一的弹出菜单中选择 新建 | Ruby 测试 。 当测试源根文件夹被选中时,模板可用。 除了 Ruby 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样 + 扩展为相应的值。 通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/Minitest.rb.html b/original-plugin-raw/zh/fileTemplates/internal/Minitest.rb.html new file mode 100644 index 000000000..15ffb3600 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Minitest.rb.html @@ -0,0 +1,97 @@ + + + + + + + +
+ 一个 Minitest 测试的内置模板。 每次您创建新的测试时都会使用此模版。 从项目视图之一的弹出菜单中选择 新建 | Ruby 测试 。 当测试源根文件夹被选中时,模板可用。 除了 Ruby 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样 + 扩展为相应的值。 通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/PHP Class.php.html b/original-plugin-raw/zh/fileTemplates/internal/PHP Class.php.html new file mode 100644 index 000000000..c3eafd4ae --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/PHP Class.php.html @@ -0,0 +1,104 @@ + + + + + + + +
+ 一个 PHP 类的内置模板。 每次您创建新的 PHP 类时都会使用此模版。 从项目视图之一的弹出菜单中选择 新建 | PHP 类
+ 模板是可编辑的。 除了 PHP 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。
通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ ${DS} +  美元符号,计算为普通的 “$” 字符。
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/PHP File.php.html b/original-plugin-raw/zh/fileTemplates/internal/PHP File.php.html new file mode 100644 index 000000000..2f6769601 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/PHP File.php.html @@ -0,0 +1,97 @@ + + + + + + + +
+ 一个 PHP 文件的内置模板。 每次您从某个项目视图的弹出菜单中选择 新建 | PHP 文件 创建新的 PHP 文件时,都会使用此模版。
+ 模板是可编辑的。 除了 PHP 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。
通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/PHP Interface.php.html b/original-plugin-raw/zh/fileTemplates/internal/PHP Interface.php.html new file mode 100644 index 000000000..535a3bc0e --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/PHP Interface.php.html @@ -0,0 +1,104 @@ + + + + + + + +
+ 这是一个新 PHP 接口的内置模板。 每次您从某个项目视图的弹出菜单中选择 新建 | PHP 类 创建新的 PHP 接口时,都会使用此模版。
+ 模板是可编辑的。 除了 PHP 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。
通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${DS} +  美元符号,计算为普通的 “$” 字符。
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/PHP Trait.php.html b/original-plugin-raw/zh/fileTemplates/internal/PHP Trait.php.html new file mode 100644 index 000000000..abfb47958 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/PHP Trait.php.html @@ -0,0 +1,104 @@ + + + + + + + +
+ 一个 PHP 特征的内置模板。 每次您创建新的 PHP 特征时都会使用此模版。 从项目视图之一的弹出菜单中选择 新建 | PHP 类
+ 模板是可编辑的。 除了 PHP 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。
通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${DS} +  美元符号,计算为普通的 “$” 字符。
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/PHPSpec Specification.php.html b/original-plugin-raw/zh/fileTemplates/internal/PHPSpec Specification.php.html new file mode 100644 index 000000000..792880748 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/PHPSpec Specification.php.html @@ -0,0 +1,134 @@ + + + + + + + +
+ 一个 PHPSpec 规范的内置模板。 + 每次您创建新的 PHPSpec 规范时都会使用此模版。 从项目视图之一的弹出菜单 + 中选择 新建 | PHP 测试 ,然后选择 “PHPSpec” 作为测试库。
+ 模板是可编辑的。 除了 PHP 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。
通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${TESTED_NAME} +  被测试的类的名称
+ ${TESTED_NAMESPACE} +  被测试的类的命名空间
+ ${NAME} +  测试类名
+ ${NAMESPACE} +  测试类命名空间
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${DS} +  美元符号,计算为普通的 “$” 字符。
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/PHPUnit 6 Test.php.html b/original-plugin-raw/zh/fileTemplates/internal/PHPUnit 6 Test.php.html new file mode 100644 index 000000000..b6039e88a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/PHPUnit 6 Test.php.html @@ -0,0 +1,134 @@ + + + + + + + +
+ 一个为版本 6 或更高版本的 PHPUnit 测试的内置模板。 + 每次您创建新的 PHPUnit 测试时都会使用此模版。 从项目视图之一的弹出菜单 + 中选择 新建 | PHP 测试 ,然后选择 “PHPUnit” 作为测试库。
+ 模板是可编辑的。 除了 PHP 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。
通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${TESTED_NAME} +  被测试的类的名称
+ ${TESTED_NAMESPACE} +  被测试的类的命名空间
+ ${NAME} +  测试类名
+ ${NAMESPACE} +  测试类命名空间
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${DS} +  美元符号,计算为普通的 “$” 字符。
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/PHPUnit Test.php.html b/original-plugin-raw/zh/fileTemplates/internal/PHPUnit Test.php.html new file mode 100644 index 000000000..225292e44 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/PHPUnit Test.php.html @@ -0,0 +1,134 @@ + + + + + + + +
+ 一个为版本 5 或更早的 PHPUnit 测试的内置模板。 + 每次您创建新的 PHPUnit 测试时都会使用此模版。 从项目视图之一的弹出菜单 + 中选择 新建 | PHP 测试 ,然后选择 “PHPUnit < 6” 作为测试库。
+ 模板是可编辑的。 除了 PHP 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。
通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${TESTED_NAME} +  被测试的类的名称
+ ${TESTED_NAMESPACE} +  被测试的类的命名空间
+ ${NAME} +  测试类名
+ ${NAMESPACE} +  测试类命名空间
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${DS} +  美元符号,计算为普通的 “$” 字符。
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/Package Object.scala.html b/original-plugin-raw/zh/fileTemplates/internal/Package Object.scala.html new file mode 100644 index 000000000..f03081f5a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Package Object.scala.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 这是每次创建 Scala 软件包对象时 IntelliJ IDEA 使用的内置模板 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Play 2 template.scala.html.html b/original-plugin-raw/zh/fileTemplates/internal/Play 2 template.scala.html.html new file mode 100644 index 000000000..a7a030317 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Play 2 template.scala.html.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建 Play 2 文件时 IntelliJ IDEA 使用的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Pug File.pug.html b/original-plugin-raw/zh/fileTemplates/internal/Pug File.pug.html new file mode 100644 index 000000000..c74e3251c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Pug File.pug.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 每次您创建 Pug 文件时都会使用此内置模板。 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/internal/Pyramid layout jinja2.jinja2.html b/original-plugin-raw/zh/fileTemplates/internal/Pyramid layout jinja2.jinja2.html new file mode 100644 index 000000000..56d99e60f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Pyramid layout jinja2.jinja2.html @@ -0,0 +1,6 @@ + + +

为基于 Jinja 模板的 Starter 项目创建布局并包含一个内容容器。 + 此容器由内容行和包含 Pylons 项目链接的行组成。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Pyramid layout pt.pt.html b/original-plugin-raw/zh/fileTemplates/internal/Pyramid layout pt.pt.html new file mode 100644 index 000000000..2016c9dc4 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Pyramid layout pt.pt.html @@ -0,0 +1,6 @@ + + +

为基于 Chameleon ZPT 的 Starter 项目创建布局并包含一个内容容器。 + 此内容容器由内容行和包含 Pylons 项目链接的行组成。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Pyramid mytemplate jinja2.jinja2.html b/original-plugin-raw/zh/fileTemplates/internal/Pyramid mytemplate jinja2.jinja2.html new file mode 100644 index 000000000..1d7fc15e7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Pyramid mytemplate jinja2.jinja2.html @@ -0,0 +1,5 @@ + + +

基于 Jinja 布局模板为 Pyramid Starter 项目创建模板。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Pyramid mytemplate pt.pt.html b/original-plugin-raw/zh/fileTemplates/internal/Pyramid mytemplate pt.pt.html new file mode 100644 index 000000000..157afa08a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Pyramid mytemplate pt.pt.html @@ -0,0 +1,5 @@ + + +

基于 Chameleon ZPT 布局模板为 Pyramid Starter 项目创建模板。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Python Script.py.html b/original-plugin-raw/zh/fileTemplates/internal/Python Script.py.html new file mode 100644 index 000000000..70a42c665 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Python Script.py.html @@ -0,0 +1,12 @@ + + +

创建空的 Python 文件。

+

Python 脚本的简单示例:

+def print_hi(name):
+    print(f'Hi, {name}')
+
+
+if __name__ == '__main__':
+    print_hi('Python') + + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Python Stub.pyi.html b/original-plugin-raw/zh/fileTemplates/internal/Python Stub.pyi.html new file mode 100644 index 000000000..a6e517307 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Python Stub.pyi.html @@ -0,0 +1,7 @@ + + +

创建扩展名为 .pyi 的空存根文件。 + 通过存根文件可以同时对 Python 2 和 Python 3 使用 Python 3 语法来指定类型提示。

+

有关详细信息,请参阅使用存根文件

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Python Unit Test.py.html b/original-plugin-raw/zh/fileTemplates/internal/Python Unit Test.py.html new file mode 100644 index 000000000..a2a84dd54 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Python Unit Test.py.html @@ -0,0 +1,5 @@ + + +

使用包含 assertEqual 的方法创建 unittest.TestCase 类的实例。 修改此方法以实现一些断言逻辑。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/R Script.R.html b/original-plugin-raw/zh/fileTemplates/internal/R Script.R.html new file mode 100644 index 000000000..7308f8c78 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/R Script.R.html @@ -0,0 +1,5 @@ + + +

创建一个空的 R 脚本。

+ + diff --git a/original-plugin-raw/zh/fileTemplates/internal/R Test.R.html b/original-plugin-raw/zh/fileTemplates/internal/R Test.R.html new file mode 100644 index 000000000..b75f50b06 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/R Test.R.html @@ -0,0 +1,5 @@ + + +

使用简单检查创建示例 R 测试。 将其替换为必需逻辑。

+ + diff --git a/original-plugin-raw/zh/fileTemplates/internal/RBS Class.rbs.html b/original-plugin-raw/zh/fileTemplates/internal/RBS Class.rbs.html new file mode 100644 index 000000000..17785e869 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/RBS Class.rbs.html @@ -0,0 +1,96 @@ + + + + + + + +
+ 一个 RBS 类的内置模板。 每次您创建新的 RBS 类时都会使用此模版。 从项目视图之一的弹出菜单中选择 新建 | RBS 文件/类 。 除了 RBS 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。 通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/RBS File.rbs.html b/original-plugin-raw/zh/fileTemplates/internal/RBS File.rbs.html new file mode 100644 index 000000000..fdffb02de --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/RBS File.rbs.html @@ -0,0 +1,96 @@ + + + + + + + +
+ 一个 RBS 文件的内置模板。 每次您创建新的 RBS 文件时都会使用此模版。 从项目视图之一的弹出菜单中选择 新建 | RBS 文件/类 。 除了 RBS 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。 通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/RBS Interface.rbs.html b/original-plugin-raw/zh/fileTemplates/internal/RBS Interface.rbs.html new file mode 100644 index 000000000..6cd5b7325 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/RBS Interface.rbs.html @@ -0,0 +1,96 @@ + + + + + + + +
+ 一个 RBS 接口的内置模板。 每次您创建新的 RBS 接口时都会使用此模版。 从项目视图之一的弹出菜单中选择 新建 | RBS 文件/类 。 除了 RBS 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。 通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/RBS Module.rbs.html b/original-plugin-raw/zh/fileTemplates/internal/RBS Module.rbs.html new file mode 100644 index 000000000..6ab1ce90b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/RBS Module.rbs.html @@ -0,0 +1,96 @@ + + + + + + + +
+ 一个 RBS 模块的内置模板。 每次您创建新的 RBS 模块时都会使用此模版。 从项目视图之一的弹出菜单中选择 新建 | RBS 文件/类 。 除了 RBS 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。 通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/RMarkdown.document.rmd.html b/original-plugin-raw/zh/fileTemplates/internal/RMarkdown.document.rmd.html new file mode 100644 index 000000000..9dd5716da --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/RMarkdown.document.rmd.html @@ -0,0 +1,6 @@ + + +

创建一个带有空代码块和示例代码块的 R Markdown 文件。 + 该文件还包含简单的说明,以便您可以执行代码并构建笔记本输出。

+ + diff --git a/original-plugin-raw/zh/fileTemplates/internal/RMarkdown.notebook.rmd.html b/original-plugin-raw/zh/fileTemplates/internal/RMarkdown.notebook.rmd.html new file mode 100644 index 000000000..a5839ccfd --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/RMarkdown.notebook.rmd.html @@ -0,0 +1,6 @@ + + +

创建一个带有空代码块和示例代码块的 R Markdown 笔记本。 + 该文件还包含简单的说明,以便您可以执行代码并构建笔记本输出。

+ + diff --git a/original-plugin-raw/zh/fileTemplates/internal/RMarkdown.presentation.rmd.html b/original-plugin-raw/zh/fileTemplates/internal/RMarkdown.presentation.rmd.html new file mode 100644 index 000000000..9067ce75a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/RMarkdown.presentation.rmd.html @@ -0,0 +1,5 @@ + + +

创建一个由三张幻灯片组成的 Markdown 演示文稿。

+ + diff --git a/original-plugin-raw/zh/fileTemplates/internal/RMarkdown.shiny.rmd.html b/original-plugin-raw/zh/fileTemplates/internal/RMarkdown.shiny.rmd.html new file mode 100644 index 000000000..4680c52c1 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/RMarkdown.shiny.rmd.html @@ -0,0 +1,6 @@ + + +

创建带有输入和输出面板的 Shiny 脚本。 该脚本包含服务器逻辑的占位符。

+

使用快速修复加载必需库。

+ + diff --git a/original-plugin-raw/zh/fileTemplates/internal/RSpec.rb.html b/original-plugin-raw/zh/fileTemplates/internal/RSpec.rb.html new file mode 100644 index 000000000..aaa8e9ed2 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/RSpec.rb.html @@ -0,0 +1,97 @@ + + + + + + + +
+ 一个 RSpec 测试的内置模板。 每次您创建新的测试时都会使用此模版。 从项目视图之一的弹出菜单中选择 新建 | Ruby 测试 。 当测试源根文件夹被选中时,模板可用。 除了 Ruby 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样 + 扩展为相应的值。 通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/Record.java.html b/original-plugin-raw/zh/fileTemplates/internal/Record.java.html new file mode 100644 index 000000000..ce8bac321 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Record.java.html @@ -0,0 +1,87 @@ + + + + + + +
适用于通过在项目工具窗口中调用新建 | Java 类 | 记录创建的 Java 记录。

+ + 此内置模板是可编辑的。 除了 Java 表达式和注释外,您还可以使用预定义变量(如下所列),这些变量随后将像宏一样被扩展为相应值。

+ + 您也可以指定自定义变量。 自定义变量使用以下格式:${VARIABLE_NAME},其中 VARIABLE_NAME是变量的名称(例如,${MY_CUSTOM_FUNCTION_NAME}) 。 + 在 IDE 创建包含自定义变量的新文件之前,您会看到一个对话框,您可以在其中定义模板中自定义变量的值。

+ + 通过使用 #parse 指令,可以包括 包含 选项卡中的模板。 要包含模板,请在引号中将模板的全名指定为形参(例如,#parse("File Header.java"))。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${PACKAGE_NAME} 在其中创建新纪录的软件包名称
${NAME} 您在创建新类对话框中指定的新记录的名称
${USER} 当前用户的系统登录名
${DATE} 当前系统日期
${TIME} 当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母(Jan、Feb 等)
${MONTH_NAME_FULL} 当前月份的全名(January、February 等)。
${DAY} 当前月份的日期
${HOUR} 当前小时
${MINUTE} 当前分钟
${PROJECT_NAME} 当前项目名称
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Ruby Class.rb.html b/original-plugin-raw/zh/fileTemplates/internal/Ruby Class.rb.html new file mode 100644 index 000000000..ab25e127e --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Ruby Class.rb.html @@ -0,0 +1,96 @@ + + + + + + + +
+ 一个 Ruby 类的内置模板。 每次您创建新的 Ruby 类时都会使用此模版。 从项目视图之一的弹出菜单中选择 新建 | Ruby 文件/类 。 除了 Ruby 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。 通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/Ruby File.rb.html b/original-plugin-raw/zh/fileTemplates/internal/Ruby File.rb.html new file mode 100644 index 000000000..865c393a4 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Ruby File.rb.html @@ -0,0 +1,96 @@ + + + + + + + +
+ 一个 Ruby 文件的内置模板。 每次您创建新的 Ruby 文件时都会使用此模版。 从项目视图之一的弹出菜单中选择 新建 | Ruby 文件/类 。 除了 Ruby 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。 通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/Ruby Module.rb.html b/original-plugin-raw/zh/fileTemplates/internal/Ruby Module.rb.html new file mode 100644 index 000000000..e55b8fc8a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Ruby Module.rb.html @@ -0,0 +1,96 @@ + + + + + + + +
+ 一个 Ruby 模块的内置模板。 每次您创建新的 Ruby 模块时都会使用此模版。 从项目视图之一的弹出菜单中选择 新建 | Ruby 文件/类 。 除了 Ruby 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。 通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/Scala CaseClass.scala.html b/original-plugin-raw/zh/fileTemplates/internal/Scala CaseClass.scala.html new file mode 100644 index 000000000..e31ac6a25 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Scala CaseClass.scala.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 这是每次创建 Scala case 类时 IntelliJ IDEA 使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/internal/Scala CaseObject.scala.html b/original-plugin-raw/zh/fileTemplates/internal/Scala CaseObject.scala.html new file mode 100644 index 000000000..5129aadaa --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Scala CaseObject.scala.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 这是每次创建 Scala 单例对象时 IntelliJ IDEA 使用的内置模板 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Scala Class.scala.html b/original-plugin-raw/zh/fileTemplates/internal/Scala Class.scala.html new file mode 100644 index 000000000..49e7b6679 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Scala Class.scala.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 这是每次创建 Scala 类时 IntelliJ IDEA 使用的内置模板 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Scala Object.scala.html b/original-plugin-raw/zh/fileTemplates/internal/Scala Object.scala.html new file mode 100644 index 000000000..5129aadaa --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Scala Object.scala.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 这是每次创建 Scala 单例对象时 IntelliJ IDEA 使用的内置模板 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Scala Script.scala.html b/original-plugin-raw/zh/fileTemplates/internal/Scala Script.scala.html new file mode 100644 index 000000000..25a5d83fe --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Scala Script.scala.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 这是每次创建 Scala 脚本时 IntelliJ IDEA 使用的内置模板 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Scala Trait.scala.html b/original-plugin-raw/zh/fileTemplates/internal/Scala Trait.scala.html new file mode 100644 index 000000000..99f109f6c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Scala Trait.scala.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ + 这是每次创建 Scala 特征时 IntelliJ IDEA 使用的内置模板 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Scala Worksheet.sc.html b/original-plugin-raw/zh/fileTemplates/internal/Scala Worksheet.sc.html new file mode 100644 index 000000000..42a593b6c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Scala Worksheet.sc.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建 Scala 工作表时 IntelliJ IDEA 使用的内置模板 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/Setup Script.py.html b/original-plugin-raw/zh/fileTemplates/internal/Setup Script.py.html new file mode 100644 index 000000000..7c9d20827 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/Setup Script.py.html @@ -0,0 +1,6 @@ + + +

使用以下形参创建设置脚本:nameversionpackagesurllicenseauthorauthor_emaildescription

+

有关使用设置脚本创建 Python 软件包的详细信息,请参阅 Setup.py

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/TestUnit.rb.html b/original-plugin-raw/zh/fileTemplates/internal/TestUnit.rb.html new file mode 100644 index 000000000..f942ac11e --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/TestUnit.rb.html @@ -0,0 +1,97 @@ + + + + + + + +
+ 一个 Test::Unit 测试的内置模板。 每次您创建新的测试时都会使用此模版。 从项目视图之一的弹出菜单中选择 新建 | Ruby 测试 。 当测试源根文件夹被选中时,模板可用。 除了 Ruby 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样 + 扩展为相应的值。 通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/WordPress Main Plugin File.php.html b/original-plugin-raw/zh/fileTemplates/internal/WordPress Main Plugin File.php.html new file mode 100644 index 000000000..9eed6502c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/WordPress Main Plugin File.php.html @@ -0,0 +1,111 @@ + + + + + + + +
+ 一个 WordPress 主插件文件的内置模板。 每次创建 WordPress 插件类型的新项目时都会使用它。
+ 模板是可编辑的。 除了 PHP 语句、表达式和注释外,您还可以使用下面列出的预定义变量。 每个变量都像宏一样扩展为相应的值。
通过 #parse 指令,可以通过将所需模板的全名指定为引号中的形参,从而包含 Includes 选项卡中的模板。
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
+ ${PLUGIN_NAME} +  派生自目录名称的当前插件名称
+ ${FILE_NAME} +  当前文件名称
+ ${USER} +  当前的用户系统登录名
+ ${DATE} +  当前系统日期
+ ${TIME} +  当前系统时间
+ ${YEAR} +  当前年度
+ ${MONTH} +  当前月份
+ ${DAY} +  当前月份的日期
+ ${HOUR} +  当前小时
+ ${MINUTE} +  当前分钟
+ ${PRODUCT_NAME} +  当前 IDE 名称
+ ${PROJECT_NAME} +  当前项目名称
+ ${DS} +  美元符号,计算为普通的 “$” 字符。
+ + + diff --git a/original-plugin-raw/zh/fileTemplates/internal/composer.json.json.html b/original-plugin-raw/zh/fileTemplates/internal/composer.json.json.html new file mode 100644 index 000000000..73ea41b62 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/composer.json.json.html @@ -0,0 +1,14 @@ + + + + + + + +
+ 一个 composer.json 文件的内置模板。 每次您创建新的 composer.json 文件时都会使用此模版。 从项目视图之一的弹出菜单 + 中选择 新建 | composer.json
+ 模板是可编辑的。
+
+ + diff --git a/original-plugin-raw/zh/fileTemplates/internal/module-info.java.html b/original-plugin-raw/zh/fileTemplates/internal/module-info.java.html new file mode 100644 index 000000000..72965115c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/module-info.java.html @@ -0,0 +1,82 @@ + + + + + + +
适用于通过在项目工具窗口中调用新建 | module-info.java 创建的新 module-info.java 文件。

+ + 此内置模板是可编辑的。 除了 Java 表达式和注释外,您还可以使用预定义变量(如下所列),这些变量随后将像宏一样被扩展为相应值。

+ + 您也可以指定自定义变量。 自定义变量使用以下格式:${VARIABLE_NAME},其中 VARIABLE_NAME是变量的名称(例如,${MY_CUSTOM_FUNCTION_NAME}) 。 + 在 IDE 创建包含自定义变量的新文件之前,您会看到一个对话框,您可以在其中定义模板中自定义变量的值。

+ + 通过使用 #parse 指令,可以包括 包含 选项卡中的模板。 要包含模板,请在引号中将模板的全名指定为形参(例如,#parse("File Header.java"))。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${MODULE_NAME} 在其中创建新 module-info.java 文件的模块的名称
${USER} 当前用户的系统登录名
${DATE} 当前系统日期
${TIME} 当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母(Jan、Feb 等)
${MONTH_NAME_FULL} 当前月份的全名(January、February 等)。
${DAY} 当前月份的日期
${HOUR} 当前小时
${MINUTE} 当前分钟
${PROJECT_NAME} 当前项目名称
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/package-info.java.html b/original-plugin-raw/zh/fileTemplates/internal/package-info.java.html new file mode 100644 index 000000000..d67d4d3d7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/package-info.java.html @@ -0,0 +1,82 @@ + + + + + + +
适用于通过在项目工具窗口中调用新建 | package-info.java 创建的新 package-info.java 文件。

+ + 此内置模板是可编辑的。 除了 Java 表达式和注释外,您还可以使用预定义变量(如下所列),这些变量随后将像宏一样被扩展为相应值。

+ + 您也可以指定自定义变量。 自定义变量使用以下格式:${VARIABLE_NAME},其中 VARIABLE_NAME是变量的名称(例如,${MY_CUSTOM_FUNCTION_NAME}) 。 + 在 IDE 创建包含自定义变量的新文件之前,您会看到一个对话框,您可以在其中定义模板中自定义变量的值。

+ + 通过使用 #parse 指令,可以包括 包含 选项卡中的模板。 要包含模板,请在引号中将模板的全名指定为形参(例如,#parse("File Header.java"))。 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${PACKAGE_NAME} 在其中创建新 package-info.java 文件的软件包名称
${USER} 当前用户的系统登录名
${DATE} 当前系统日期
${TIME} 当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母(Jan、Feb 等)
${MONTH_NAME_FULL} 当前月份的全名(January、February 等)。
${DAY} 当前月份的日期
${HOUR} 当前小时
${MINUTE} 当前分钟
${PROJECT_NAME} 当前项目名称
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/internal/testthat.R.html b/original-plugin-raw/zh/fileTemplates/internal/testthat.R.html new file mode 100644 index 000000000..14d0118ea --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/internal/testthat.R.html @@ -0,0 +1,5 @@ + + +

为 R 软件包创建示例测试。 将 PackageName 替换为要测试的软件包的实际名称,并添加一些必需测试逻辑。

+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/@Aspect.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/@Aspect.java.html new file mode 100644 index 000000000..ea522578a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/@Aspect.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是在每次创建基于注解的新切面时使用的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Action.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Action.java.html new file mode 100644 index 000000000..313ac9e56 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Action.java.html @@ -0,0 +1,10 @@ + + + + + + +
用于创建新的 IntelliJ 平台操作的内置模板。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Activity.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Activity.java.html new file mode 100644 index 000000000..c525a1cc8 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Activity.java.html @@ -0,0 +1,5 @@ + + +

这是用于在 Android 应用程序中创建新活动的内置文件模板。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/AndroidManifest.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/AndroidManifest.xml.html new file mode 100644 index 000000000..ad54c8dbb --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/AndroidManifest.xml.html @@ -0,0 +1,5 @@ + + +

这是用于在 Android 应用程序中创建 AndroidManifest.xml 文件的内置文件模板。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/AppEngineApplication.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/AppEngineApplication.xml.html new file mode 100644 index 000000000..b67e20dd0 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/AppEngineApplication.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于在 Google App Engine 应用程序中创建 appengine-application.xml 描述符的内置模板。 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/AppEngineJdoConfig.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/AppEngineJdoConfig.xml.html new file mode 100644 index 000000000..eb2c6d2d2 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/AppEngineJdoConfig.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于在 Google App Engine 应用程序中创建 jdoconfig.xml 描述符的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/AppEngineJpaConfig.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/AppEngineJpaConfig.xml.html new file mode 100644 index 000000000..a53ddc100 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/AppEngineJpaConfig.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于在 Google App Engine 应用程序中创建 persistence.xml 描述符的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/AppEngineWeb.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/AppEngineWeb.xml.html new file mode 100644 index 000000000..eb3fba837 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/AppEngineWeb.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于在 Google App Engine 应用程序中创建 appengine-web.xml 描述符的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Application.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Application.java.html new file mode 100644 index 000000000..59ae33002 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Application.java.html @@ -0,0 +1,5 @@ + + +

这是用于在 Android 应用程序中创建自定义 Application 类的内置文件模板。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Aspect.aj.html b/original-plugin-raw/zh/fileTemplates/j2ee/Aspect.aj.html new file mode 100644 index 000000000..828774e8a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Aspect.aj.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是您每次创建新的 AspectJ 样式(普通旧)切面时使用的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Broadcast_Receiver.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Broadcast_Receiver.java.html new file mode 100644 index 000000000..769047704 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Broadcast_Receiver.java.html @@ -0,0 +1,5 @@ + + +

这是用于在 Android 应用程序中创建新的广播接收器的内置文件模板。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/EJB Local Interface.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/EJB Local Interface.java.html new file mode 100644 index 000000000..dbbcaec00 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/EJB Local Interface.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建 EJB 本地接口类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/EJB Remote Interface.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/EJB Remote Interface.java.html new file mode 100644 index 000000000..3e794da55 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/EJB Remote Interface.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建 EJB 远程接口类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/EnterpriseBean Interceptor 3.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/EnterpriseBean Interceptor 3.java.html new file mode 100644 index 000000000..74858d3e0 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/EnterpriseBean Interceptor 3.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建 EJB3.0 EnterpriseBean 侦听器类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Entity Bean Class BMP.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Entity Bean Class BMP.java.html new file mode 100644 index 000000000..da4a859f7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Entity Bean Class BMP.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建 Bean 托管持久性实体 Bean 类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Entity Bean Class CMP 1x.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Entity Bean Class CMP 1x.java.html new file mode 100644 index 000000000..c20f0b13d --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Entity Bean Class CMP 1x.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建容器托管的持久性版本 1.x 实体 Bean 类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Entity Bean Class CMP 2x.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Entity Bean Class CMP 2x.java.html new file mode 100644 index 000000000..f6389994c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Entity Bean Class CMP 2x.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建容器托管的持久性版本 2.x 实体 Bean 类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Entity Home Interface.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Entity Home Interface.java.html new file mode 100644 index 000000000..3cfd67e5d --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Entity Home Interface.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建实体 Bean 远程主接口类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Entity Local Home Interface.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Entity Local Home Interface.java.html new file mode 100644 index 000000000..a811f3d92 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Entity Local Home Interface.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建实体 Bean 本地主接口类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Filter Annotated Class.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Filter Annotated Class.java.html new file mode 100644 index 000000000..8b4000f5a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Filter Annotated Class.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建注解的 Java EE 6 筛选器类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Filter Class.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Filter Class.java.html new file mode 100644 index 000000000..6f6a83e48 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Filter Class.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建筛选器类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Fragment.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Fragment.java.html new file mode 100644 index 000000000..1d61eab85 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Fragment.java.html @@ -0,0 +1,5 @@ + + +

这是用于在 Android 应用程序中创建新片段的内置文件模板。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GuiceNewBindingAnnotation.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/GuiceNewBindingAnnotation.java.html new file mode 100644 index 000000000..0bd6c1e6c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GuiceNewBindingAnnotation.java.html @@ -0,0 +1,83 @@ + + + + + + +
这是每次创建新的 Guice 绑定注解时使用的内置模板。
+ 使用 #parse 指令,将所需模板的全名指定为引号中的形参可以在包含选项卡中包含模板。 + 例如:
+ #parse("File Header.java") +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${PACKAGE_NAME} 在其中创建新类的软件包名称
${NAME} 创建新类对话框中指定的新类的名称
${USER} 当前的用户系统登录名
${DATE} 当前系统日期
${TIME} 当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母。 例如:Jan、Feb 等
${MONTH_NAME_FULL} 当前月份的全名。 例如:January、February 等
${DAY} 当前日期
${HOUR} 当前小时
${MINUTE} 当前分钟
${PROJECT_NAME} 当前项目的名称
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GuiceNewMethodInterceptor.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/GuiceNewMethodInterceptor.java.html new file mode 100644 index 000000000..c6753038c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GuiceNewMethodInterceptor.java.html @@ -0,0 +1,83 @@ + + + + + + +
这是每次创建新的 Guice 方法侦听器类时使用的内置模板。
+ 使用 #parse 指令,将所需模板的全名指定为引号中的形参可以在包含选项卡中包含模板。 + 例如:
+ #parse("File Header.java") +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${PACKAGE_NAME} 在其中创建新类的软件包名称
${NAME} 创建新类对话框中指定的新类的名称
${USER} 当前的用户系统登录名
${DATE} 当前系统日期
${TIME} 当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母。 例如:Jan、Feb 等
${MONTH_NAME_FULL} 当前月份的全名。 例如:January、February 等
${DAY} 当前日期
${HOUR} 当前小时
${MINUTE} 当前分钟
${PROJECT_NAME} 当前项目的名称
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GuiceNewModule.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/GuiceNewModule.java.html new file mode 100644 index 000000000..f4048ebaf --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GuiceNewModule.java.html @@ -0,0 +1,83 @@ + + + + + + +
这是每次创建新的 Guice 模块类时使用的内置模板。
+ 使用 #parse 指令,将所需模板的全名指定为引号中的形参可以在包含选项卡中包含模板。 + 例如:
+ #parse("File Header.java") +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${PACKAGE_NAME} 在其中创建新类的软件包名称
${NAME} 创建新类对话框中指定的新类的名称
${USER} 当前的用户系统登录名
${DATE} 当前系统日期
${TIME} 当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母。 例如:Jan、Feb 等
${MONTH_NAME_FULL} 当前月份的全名。 例如:January、February 等
${DAY} 当前日期
${HOUR} 当前小时
${MINUTE} 当前分钟
${PROJECT_NAME} 当前项目的名称
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GuiceNewScopeAnnotation.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/GuiceNewScopeAnnotation.java.html new file mode 100644 index 000000000..29eabe906 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GuiceNewScopeAnnotation.java.html @@ -0,0 +1,83 @@ + + + + + + +
这是每次创建新的 Guice 范围注解时使用的内置模板。
+ 使用 #parse 指令,将所需模板的全名指定为引号中的形参可以在包含选项卡中包含模板。 + 例如:
+ #parse("File Header.java") +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
预定义变量接收以下值:
${PACKAGE_NAME} 在其中创建新类的软件包名称
${NAME} 创建新类对话框中指定的新类的名称
${USER} 当前的用户系统登录名
${DATE} 当前系统日期
${TIME} 当前系统时间
${YEAR} 当前年度
${MONTH} 当前月份
${MONTH_NAME_SHORT} 当前月份名称的前 3 个字母。 例如:Jan、Feb 等
${MONTH_NAME_FULL} 当前月份的全名。 例如:January、February 等
${DAY} 当前日期
${HOUR} 当前小时
${MINUTE} 当前分钟
${PROJECT_NAME} 当前项目的名称
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppCss.css.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppCss.css.html new file mode 100644 index 000000000..50da6ea48 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppCss.css.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于创建 Google Web Toolkit 模块的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppHtml.html.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppHtml.html.html new file mode 100644 index 000000000..c2260d657 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppHtml.html.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于在 1.3 或更早版本的 GWT 应用程序中创建 Google Web Toolkit 模块的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppHtml_1_4.html.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppHtml_1_4.html.html new file mode 100644 index 000000000..76b4a1bb9 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppHtml_1_4.html.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于在 1.4 或 1.5 版本的 GWT 应用程序中创建 Google Web Toolkit 模块的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppHtml_1_6.html.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppHtml_1_6.html.html new file mode 100644 index 000000000..98340c8d0 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppHtml_1_6.html.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于在 1.6 或更高版本的 GWT 应用程序中创建 Google Web Toolkit 模块的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppService.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppService.java.html new file mode 100644 index 000000000..fa1c5c3ec --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppService.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于在 GWT 1.4 应用程序中创建 Google Web Toolkit 服务的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppServiceAsync.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppServiceAsync.java.html new file mode 100644 index 000000000..186a64231 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppServiceAsync.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于创建 Google Web Toolkit 服务的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppServiceImpl.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppServiceImpl.java.html new file mode 100644 index 000000000..186a64231 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppServiceImpl.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于创建 Google Web Toolkit 服务的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppService_1_0.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppService_1_0.java.html new file mode 100644 index 000000000..58e903966 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppService_1_0.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于在 GWT 1.0 应用程序中创建 Google Web Toolkit 服务的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppService_1_5.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppService_1_5.java.html new file mode 100644 index 000000000..fa7a0c8bd --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtAppService_1_5.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于在 1.5 或更高版本的 GWT 应用程序中创建 Google Web Toolkit 服务的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtApp_1_4.gwt.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtApp_1_4.gwt.xml.html new file mode 100644 index 000000000..f4f0a63e5 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtApp_1_4.gwt.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于在 GWT 1.4 应用程序中创建 Google Web Toolkit 模块的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtApp_1_5.gwt.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtApp_1_5.gwt.xml.html new file mode 100644 index 000000000..227cc8257 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtApp_1_5.gwt.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于在 GWT 1.5 应用程序中创建 Google Web Toolkit 模块的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtApp_1_6.gwt.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtApp_1_6.gwt.xml.html new file mode 100644 index 000000000..98340c8d0 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtApp_1_6.gwt.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于在 1.6 或更高版本的 GWT 应用程序中创建 Google Web Toolkit 模块的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtEntryPoint.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtEntryPoint.java.html new file mode 100644 index 000000000..c1161e13b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtEntryPoint.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于创建 Google Web Toolkit 入口点的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtEvent.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtEvent.java.html new file mode 100644 index 000000000..893d22384 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtEvent.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于创建 GWT 事件类的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtEventHandler.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtEventHandler.java.html new file mode 100644 index 000000000..20e81ff85 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtEventHandler.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于创建 GWT 事件处理程序类的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtLayout.ui.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtLayout.ui.xml.html new file mode 100644 index 000000000..2e017fe86 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtLayout.ui.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于在 GWT 应用程序中创建 ui.xml 文件的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtSerialClass.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtSerialClass.java.html new file mode 100644 index 000000000..329d70dd9 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtSerialClass.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于创建 Google Web Toolkit 可序列化类的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtTestCase.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtTestCase.java.html new file mode 100644 index 000000000..6825286d7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtTestCase.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于创建 GWT 测试用例的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtUiBinder.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtUiBinder.java.html new file mode 100644 index 000000000..20f3048d3 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtUiBinder.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 一个内置模板,用于在 GWT 应用程序中为 ui.xml 文件创建带有 UiBinder 实现的 Java 类。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtUiRenderer.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtUiRenderer.java.html new file mode 100644 index 000000000..6d782d08d --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtUiRenderer.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 一个内置模板,用于在 GWT 应用程序中为 ui.xml 文件创建带有 UiRenderer 实现的 Java 类。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtUiRendererContent.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtUiRendererContent.java.html new file mode 100644 index 000000000..2b171cfd5 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtUiRendererContent.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于将内容添加到 GWT 应用程序中的生成 UiRenderer 实体的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/GwtUiRendererLayout.ui.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/GwtUiRendererLayout.ui.xml.html new file mode 100644 index 000000000..3375e6a27 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/GwtUiRendererLayout.ui.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 用于在 GWT 应用程序中为 UiRenderer 实现创建 ui.xml 文件的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/InspectionDescription.html.html b/original-plugin-raw/zh/fileTemplates/j2ee/InspectionDescription.html.html new file mode 100644 index 000000000..3f8a153fc --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/InspectionDescription.html.html @@ -0,0 +1,10 @@ + + + + + + +
用于为代码检查创建新描述的内置模板。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/JAX-RS Client.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/JAX-RS Client.java.html new file mode 100644 index 000000000..017f3b590 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/JAX-RS Client.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建 Web 服务时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/JAX-RS Resource.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/JAX-RS Resource.java.html new file mode 100644 index 000000000..67dae935a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/JAX-RS Resource.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建 RESTful Web 服务时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Jpa JoinColumn Annotation.kt.html b/original-plugin-raw/zh/fileTemplates/j2ee/Jpa JoinColumn Annotation.kt.html new file mode 100644 index 000000000..96c6e851a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Jpa JoinColumn Annotation.kt.html @@ -0,0 +1,11 @@ + + + + + + +
+ 适用于代码生成脚本的 Jpa @JoinColumn 模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Jsp File.jsp.html b/original-plugin-raw/zh/fileTemplates/j2ee/Jsp File.jsp.html new file mode 100644 index 000000000..0143edd6a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Jsp File.jsp.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建 jsp 页面时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Jspx File.jspx.html b/original-plugin-raw/zh/fileTemplates/j2ee/Jspx File.jspx.html new file mode 100644 index 000000000..42b055bee --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Jspx File.jspx.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建 jspx 页面时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin Entity.kt.html b/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin Entity.kt.html new file mode 100644 index 000000000..35c4406c3 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin Entity.kt.html @@ -0,0 +1,11 @@ + + + + + + +
+ 适用于代码生成脚本并带有复杂主键的 Kotlin 实体类模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin Equals Method.kt.html b/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin Equals Method.kt.html new file mode 100644 index 000000000..51c78aa8b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin Equals Method.kt.html @@ -0,0 +1,11 @@ + + + + + + +
+ 适用于代码生成脚本的 Kotlin equals() 方法模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin HashCode Method.kt.html b/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin HashCode Method.kt.html new file mode 100644 index 000000000..614f73518 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin HashCode Method.kt.html @@ -0,0 +1,17 @@ + + + + + + + + + +
+ 适用于代码生成脚本的 Kotlin hashCode() 方法模板 +
+ + 重要提示:如果在初始化属性之前将延迟加载的实体放入集合,然后更新该实体,则会生成不同的 hashCode() 值,并且更新之后的对象不再等效于更新之前的对象,因此,建议在实体类中使用常量 hashCode() 结果。 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin Property.kt.html b/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin Property.kt.html new file mode 100644 index 000000000..df2bbf240 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin Property.kt.html @@ -0,0 +1,11 @@ + + + + + + +
+ 适用于代码生成脚本的 Kotlin 类属性模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin Relation Dependent Property.kt.html b/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin Relation Dependent Property.kt.html new file mode 100644 index 000000000..69292286a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin Relation Dependent Property.kt.html @@ -0,0 +1,11 @@ + + + + + + +
+ 适用于代码生成脚本的 Kotlin 类 mappedBy 属性模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin Relation Owner Property.kt.html b/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin Relation Owner Property.kt.html new file mode 100644 index 000000000..954dac993 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin Relation Owner Property.kt.html @@ -0,0 +1,11 @@ + + + + + + +
+ 适用于代码生成脚本的 Kotlin 类联接列属性模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin ToString Method.kt.html b/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin ToString Method.kt.html new file mode 100644 index 000000000..6c7053ace --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Kotlin ToString Method.kt.html @@ -0,0 +1,11 @@ + + + + + + +
+ 适用于代码生成脚本的 Kotlin toString() 方法模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Listener Annotated Class.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Listener Annotated Class.java.html new file mode 100644 index 000000000..256d0d4b9 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Listener Annotated Class.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建注解的 Java EE 6 侦听器类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Listener Class.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Listener Class.java.html new file mode 100644 index 000000000..87fdd4efb --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Listener Class.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建侦听器类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Maven Profiles.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/Maven Profiles.xml.html new file mode 100644 index 000000000..746fe7c0e --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Maven Profiles.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 Maven profiles.xml 文件时使用的内置模板 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Maven Project.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/Maven Project.xml.html new file mode 100644 index 000000000..029482075 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Maven Project.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 Maven 项目时使用的内置模板。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Maven Settings.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/Maven Settings.xml.html new file mode 100644 index 000000000..b6b453ad0 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Maven Settings.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 Maven settings.xml 文件时使用的内置模板 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Message Driven Bean Class 3.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Message Driven Bean Class 3.java.html new file mode 100644 index 000000000..0de26e2e5 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Message Driven Bean Class 3.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建 EJB3.0 消息驱动型 Bean 类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Message Driven Bean Class.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Message Driven Bean Class.java.html new file mode 100644 index 000000000..683f2ec01 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Message Driven Bean Class.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建消息驱动型 Bean 类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/MessageBundle.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/MessageBundle.java.html new file mode 100644 index 000000000..2fa5a67c6 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/MessageBundle.java.html @@ -0,0 +1,10 @@ + + + + + + +
用于在基于 IntelliJ 的 IDE 源中创建新的 Message Bundle 类的内置模板。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Persistent Embeddable Class 3.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Persistent Embeddable Class 3.java.html new file mode 100644 index 000000000..711c5cb15 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Persistent Embeddable Class 3.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建 EJB 3.0 Embeddable 类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Persistent Entity Class 3.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Persistent Entity Class 3.java.html new file mode 100644 index 000000000..607e0d974 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Persistent Entity Class 3.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建 EJB 3.0 实体类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Remote_Interface.aidl.html b/original-plugin-raw/zh/fileTemplates/j2ee/Remote_Interface.aidl.html new file mode 100644 index 000000000..668fbf6a8 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Remote_Interface.aidl.html @@ -0,0 +1,5 @@ + + +

这是用于在 Android 应用程序中创建新的 AIDL 文件的内置文件模板。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Service.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Service.java.html new file mode 100644 index 000000000..939825515 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Service.java.html @@ -0,0 +1,5 @@ + + +

这是用于在 Android 应用程序中创建新服务的内置文件模板。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Servlet Annotated Class.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Servlet Annotated Class.java.html new file mode 100644 index 000000000..c27afb107 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Servlet Annotated Class.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建注解的 Java EE 6 Servlet 类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Servlet Class.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Servlet Class.java.html new file mode 100644 index 000000000..6efe4b5c3 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Servlet Class.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建 Servlet 类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Session Bean Class Singleton.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Session Bean Class Singleton.java.html new file mode 100644 index 000000000..73099ce99 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Session Bean Class Singleton.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建 EJB3.1 单例会话 Bean 类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Session Bean Class Stateful 3.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Session Bean Class Stateful 3.java.html new file mode 100644 index 000000000..ee673b802 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Session Bean Class Stateful 3.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建 EJB3.0 有状态会话 Bean 类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Session Bean Class Stateful.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Session Bean Class Stateful.java.html new file mode 100644 index 000000000..2cf1ae592 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Session Bean Class Stateful.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建有状态会话 Bean 类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Session Bean Class Stateless 3.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Session Bean Class Stateless 3.java.html new file mode 100644 index 000000000..5faa77799 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Session Bean Class Stateless 3.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建 EJB3.0 无状态会话 Bean 类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Session Bean Class Stateless.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Session Bean Class Stateless.java.html new file mode 100644 index 000000000..5abf13319 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Session Bean Class Stateless.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建无状态会话 Bean 类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Session Home Interface.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Session Home Interface.java.html new file mode 100644 index 000000000..80a8e8cfa --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Session Home Interface.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建会话 Bean 远程主接口类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Session Local Home Interface.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Session Local Home Interface.java.html new file mode 100644 index 000000000..6adbd9fef --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Session Local Home Interface.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建会话 Bean 本地主接口类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Session Service Endpoint Interface.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Session Service Endpoint Interface.java.html new file mode 100644 index 000000000..6f5bb3c12 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Session Service Endpoint Interface.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建无状态会话 Bean 服务端点接口类时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Tag Library Descriptor.tld.html b/original-plugin-raw/zh/fileTemplates/j2ee/Tag Library Descriptor.tld.html new file mode 100644 index 000000000..635cc1370 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Tag Library Descriptor.tld.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是用于生成 JSP 标记库描述符的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Component Class.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Component Class.java.html new file mode 100644 index 000000000..75b22fbf3 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Component Class.java.html @@ -0,0 +1,12 @@ + + + + + + +
+ 创建新的 Tapestry 组件类。 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Component Template.html.html b/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Component Template.html.html new file mode 100644 index 000000000..c4e01d2df --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Component Template.html.html @@ -0,0 +1,12 @@ + + + + + + +
+ 创建新的 Tapestry 组件模板。 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Mixin Class.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Mixin Class.java.html new file mode 100644 index 000000000..66ea9eb0c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Mixin Class.java.html @@ -0,0 +1,12 @@ + + + + + + +
+ 创建新的 Tapestry mixin 类。 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Page Class.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Page Class.java.html new file mode 100644 index 000000000..c76e98e84 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Page Class.java.html @@ -0,0 +1,12 @@ + + + + + + +
+ 创建新的 Tapestry 页面类。 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Page Template.html.html b/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Page Template.html.html new file mode 100644 index 000000000..8f47bd284 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Page Template.html.html @@ -0,0 +1,12 @@ + + + + + + +
+ 创建新的 Tapestry 页面模板。 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Project Pom.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Project Pom.xml.html new file mode 100644 index 000000000..eaaed3710 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Tapestry Project Pom.xml.html @@ -0,0 +1,12 @@ + + + + + + +
+ 为您的 Tapestry 模块创建启动 POM。 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ThemeEditorColorScheme.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ThemeEditorColorScheme.xml.html new file mode 100644 index 000000000..6201cb643 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ThemeEditorColorScheme.xml.html @@ -0,0 +1,9 @@ + + + + + + +
自定义 UI 主题中使用的编辑器配色方案的内置模板。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ThemeJson.json.html b/original-plugin-raw/zh/fileTemplates/j2ee/ThemeJson.json.html new file mode 100644 index 000000000..bb968aa95 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ThemeJson.json.html @@ -0,0 +1,9 @@ + + + + + + +
用于创建新的自定义 UI 主题的内置模板。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin6Application.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin6Application.java.html new file mode 100644 index 000000000..47128cf82 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin6Application.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是用于创建 Vaadin 6 应用程序的内置模板 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin6ClientWidget.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin6ClientWidget.java.html new file mode 100644 index 000000000..0e40c0a34 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin6ClientWidget.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是用于为 Vaadin 微件创建客户端类的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin6Widget.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin6Widget.java.html new file mode 100644 index 000000000..ea5945ab9 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin6Widget.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是用于为 Vaadin 6 微件创建服务器端类的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin6WidgetSet.gwt.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin6WidgetSet.gwt.xml.html new file mode 100644 index 000000000..83633560e --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin6WidgetSet.gwt.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是用于为 Vaadin 6 微件集创建 GWT 模块描述符的内置模板 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7ClientWidget.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7ClientWidget.java.html new file mode 100644 index 000000000..0e40c0a34 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7ClientWidget.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是用于为 Vaadin 微件创建客户端类的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7UI.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7UI.java.html new file mode 100644 index 000000000..62d1f3fa9 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7UI.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是用于创建 Vaadin 7 应用程序的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7Widget.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7Widget.java.html new file mode 100644 index 000000000..b6b086936 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7Widget.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是用于为 Vaadin 7 微件创建服务器端类的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7WidgetClientRpc.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7WidgetClientRpc.java.html new file mode 100644 index 000000000..a376d3dc5 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7WidgetClientRpc.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是用于为 Vaadin 微件创建客户端 RPC 类的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7WidgetConnector.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7WidgetConnector.java.html new file mode 100644 index 000000000..e2f2061be --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7WidgetConnector.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是用于为 Vaadin 微件创建连接器的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7WidgetServerRpc.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7WidgetServerRpc.java.html new file mode 100644 index 000000000..2aaa55e68 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7WidgetServerRpc.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是用于为 Vaadin 微件创建服务器端 RPC 类的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7WidgetSet.gwt.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7WidgetSet.gwt.xml.html new file mode 100644 index 000000000..9bdfb2f06 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7WidgetSet.gwt.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是用于为 Vaadin 7 微件集创建 GWT 模块描述符的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7WidgetState.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7WidgetState.java.html new file mode 100644 index 000000000..f7dd13e5a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/Vaadin7WidgetState.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是用于为 Vaadin 微件创建状态类的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/VaadinCustomComponent.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/VaadinCustomComponent.java.html new file mode 100644 index 000000000..84107f2ac --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/VaadinCustomComponent.java.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是用于创建 Vaadin 自定义组件的内置模板 + +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/application.1_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/application.1_2.xml.html new file mode 100644 index 000000000..21469c76c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/application.1_2.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 application.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/application.1_3.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/application.1_3.xml.html new file mode 100644 index 000000000..21469c76c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/application.1_3.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 application.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/application.1_4.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/application.1_4.xml.html new file mode 100644 index 000000000..21469c76c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/application.1_4.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 application.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/application.5.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/application.5.xml.html new file mode 100644 index 000000000..21469c76c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/application.5.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 application.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/application.6.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/application.6.xml.html new file mode 100644 index 000000000..21469c76c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/application.6.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 application.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/application.7.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/application.7.xml.html new file mode 100644 index 000000000..21469c76c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/application.7.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 application.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/application.8.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/application.8.xml.html new file mode 100644 index 000000000..21469c76c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/application.8.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 application.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/application.9.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/application.9.xml.html new file mode 100644 index 000000000..934afd591 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/application.9.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 application.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/batch.2_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/batch.2_0.xml.html new file mode 100644 index 000000000..b57b7a080 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/batch.2_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建 batch.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/batch.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/batch.xml.html new file mode 100644 index 000000000..fbb9f00e1 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/batch.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建 batch.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/c.executable.CMakeLists.txt.html b/original-plugin-raw/zh/fileTemplates/j2ee/c.executable.CMakeLists.txt.html new file mode 100644 index 000000000..8aaa5ea52 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/c.executable.CMakeLists.txt.html @@ -0,0 +1,10 @@ + + + +

为新的 C Executable 项目填充自动生成的 CMakeLists.txt 文件

+
+

此处列出了所有可用变量和命令

+
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/c.library.CMakeLists.txt.html b/original-plugin-raw/zh/fileTemplates/j2ee/c.library.CMakeLists.txt.html new file mode 100644 index 000000000..8ea193cef --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/c.library.CMakeLists.txt.html @@ -0,0 +1,10 @@ + + + +

为新的 C Library 项目填充自动生成的 CMakeLists.txt 文件

+
+

此处列出了所有可用变量和命令

+
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/cdi.beans_1_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/cdi.beans_1_0.xml.html new file mode 100644 index 000000000..4b82a67ec --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/cdi.beans_1_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建 beans.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/cdi.beans_1_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/cdi.beans_1_1.xml.html new file mode 100644 index 000000000..4b82a67ec --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/cdi.beans_1_1.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建 beans.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/cdi.beans_2_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/cdi.beans_2_0.xml.html new file mode 100644 index 000000000..4b82a67ec --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/cdi.beans_2_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建 beans.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/cdi.beans_3_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/cdi.beans_3_0.xml.html new file mode 100644 index 000000000..237378f58 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/cdi.beans_3_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建 beans.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/components.1_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/components.1_2.xml.html new file mode 100644 index 000000000..25c8304db --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/components.1_2.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是用于创建 Seam components.xml 文件的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/components.2_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/components.2_0.xml.html new file mode 100644 index 000000000..25c8304db --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/components.2_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是用于创建 Seam components.xml 文件的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/composite_component.xhtml.html b/original-plugin-raw/zh/fileTemplates/j2ee/composite_component.xhtml.html new file mode 100644 index 000000000..5a1c1b013 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/composite_component.xhtml.html @@ -0,0 +1,10 @@ + + + + + + +
这是用于创建 JSF 复合组件文件的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/context_5_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/context_5_0.xml.html new file mode 100644 index 000000000..5c4d5a796 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/context_5_0.xml.html @@ -0,0 +1,11 @@ + + + + + + +
这是每次创建新的 Tomcat 5.x 特定部署描述符 (context.xml) 时使用的内置模板。 + 此描述符代表在 Tomcat 服务器中运行的 Web 应用程序,并将此类形参定义为应用程序的上下文根 (docbase) 和上下文路径 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/converter_template.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/converter_template.java.html new file mode 100644 index 000000000..ef8ee4427 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/converter_template.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次从持久性单元生成 Java Server Faces 时用于创建 JSF 转换器类的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/cpp.executable.CMakeLists.txt.html b/original-plugin-raw/zh/fileTemplates/j2ee/cpp.executable.CMakeLists.txt.html new file mode 100644 index 000000000..72ea0f2b5 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/cpp.executable.CMakeLists.txt.html @@ -0,0 +1,10 @@ + + + +

为新的 C++ Executable 项目填充自动生成的 CMakeLists.txt 文件

+
+

此处列出了所有可用变量和命令

+
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/cpp.library.CMakeLists.txt.html b/original-plugin-raw/zh/fileTemplates/j2ee/cpp.library.CMakeLists.txt.html new file mode 100644 index 000000000..5c585ecbb --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/cpp.library.CMakeLists.txt.html @@ -0,0 +1,10 @@ + + + +

为新的 C++ Library 项目填充自动生成的 CMakeLists.txt 文件

+
+

此处列出了所有可用变量和命令

+
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/cuda.executable.CMakeLists.txt.html b/original-plugin-raw/zh/fileTemplates/j2ee/cuda.executable.CMakeLists.txt.html new file mode 100644 index 000000000..4a98958b3 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/cuda.executable.CMakeLists.txt.html @@ -0,0 +1,10 @@ + + + +

为新的 CUDA Executable 项目填充自动生成的 CMakeLists.txt 文件

+
+

此处列出了所有可用变量和命令

+
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/cuda.library.CMakeLists.txt.html b/original-plugin-raw/zh/fileTemplates/j2ee/cuda.library.CMakeLists.txt.html new file mode 100644 index 000000000..4b56a24ae --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/cuda.library.CMakeLists.txt.html @@ -0,0 +1,10 @@ + + + +

为新的 CUDA Library 项目填充自动生成的 CMakeLists.txt 文件

+
+

此处列出了所有可用变量和命令

+
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/cxf.webservice.interface.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/cxf.webservice.interface.java.html new file mode 100644 index 000000000..bf728a608 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/cxf.webservice.interface.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建 CXF Web 服务接口时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/cxf.webservice.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/cxf.webservice.java.html new file mode 100644 index 000000000..2cc60cb0c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/cxf.webservice.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建 CXF Web 服务时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/default.webservice.client.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/default.webservice.client.java.html new file mode 100644 index 000000000..017f3b590 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/default.webservice.client.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建 Web 服务时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/drools.rule.drl.html b/original-plugin-raw/zh/fileTemplates/j2ee/drools.rule.drl.html new file mode 100644 index 000000000..0896d6342 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/drools.rule.drl.html @@ -0,0 +1,10 @@ + + + + + + +
这是用于创建 Drools 规则文件的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.1_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.1_1.xml.html new file mode 100644 index 000000000..7c579c995 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.1_1.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新版本 1.x ejb-jar.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.2_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.2_0.xml.html new file mode 100644 index 000000000..bd8651b58 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.2_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新版本 2.0 ejb-jar.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.2_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.2_1.xml.html new file mode 100644 index 000000000..55fc0481a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.2_1.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新版本 2.1 ejb-jar.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.3_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.3_0.xml.html new file mode 100644 index 000000000..d6f2d21d9 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.3_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新版本 3.0 ejb-jar.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.3_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.3_1.xml.html new file mode 100644 index 000000000..b5d216de7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.3_1.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新版本 3.1 ejb-jar.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.3_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.3_2.xml.html new file mode 100644 index 000000000..96955f5ae --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.3_2.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新版本 3.2 ejb-jar.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.4_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.4_0.xml.html new file mode 100644 index 000000000..c68ecde56 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ejb-jar.4_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新版本 4.0 ejb-jar.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/facelets.xhtml.html b/original-plugin-raw/zh/fileTemplates/j2ee/facelets.xhtml.html new file mode 100644 index 000000000..8d204c36b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/facelets.xhtml.html @@ -0,0 +1,10 @@ + + + + + + +
这是用于创建 Facelets 页面的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.1_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.1_0.xml.html new file mode 100644 index 000000000..31f6d81c3 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.1_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次添加 Java Server Faces 支持时用于创建 JSF 配置文件的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.1_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.1_1.xml.html new file mode 100644 index 000000000..31f6d81c3 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.1_1.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次添加 Java Server Faces 支持时用于创建 JSF 配置文件的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.1_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.1_2.xml.html new file mode 100644 index 000000000..31f6d81c3 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.1_2.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次添加 Java Server Faces 支持时用于创建 JSF 配置文件的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.2_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.2_0.xml.html new file mode 100644 index 000000000..31f6d81c3 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.2_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次添加 Java Server Faces 支持时用于创建 JSF 配置文件的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.2_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.2_2.xml.html new file mode 100644 index 000000000..39cab2a9a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.2_2.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次添加 Java Server Faces 支持时用于创建 JSF 2.2 配置文件的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.2_3.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.2_3.xml.html new file mode 100644 index 000000000..d20d70e85 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.2_3.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次添加 Java Server Faces 支持时用于创建 JSF 2.3 配置文件的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.3_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.3_0.xml.html new file mode 100644 index 000000000..fd63c1b5b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/faces-config.3_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次添加 Java Server Faces 支持时用于创建 JSF 3.0 配置文件的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/faces.jsp.html b/original-plugin-raw/zh/fileTemplates/j2ee/faces.jsp.html new file mode 100644 index 000000000..e7a9fa6ce --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/faces.jsp.html @@ -0,0 +1,10 @@ + + + + + + +
这是用于创建 JSF 页面的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/generate_create.jsp.html b/original-plugin-raw/zh/fileTemplates/j2ee/generate_create.jsp.html new file mode 100644 index 000000000..f08dc1e08 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/generate_create.jsp.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次从持久性单元生成 Java Server Faces 时用于创建 JSF 创建页面的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/generate_create2.jsp.html b/original-plugin-raw/zh/fileTemplates/j2ee/generate_create2.jsp.html new file mode 100644 index 000000000..f08dc1e08 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/generate_create2.jsp.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次从持久性单元生成 Java Server Faces 时用于创建 JSF 创建页面的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/generate_edit.jsp.html b/original-plugin-raw/zh/fileTemplates/j2ee/generate_edit.jsp.html new file mode 100644 index 000000000..7b2904264 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/generate_edit.jsp.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次从持久性单元生成 Java Server Faces 时用于创建 JSF 编辑页面的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/generate_edit_inplace.jsp.html b/original-plugin-raw/zh/fileTemplates/j2ee/generate_edit_inplace.jsp.html new file mode 100644 index 000000000..7b2904264 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/generate_edit_inplace.jsp.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次从持久性单元生成 Java Server Faces 时用于创建 JSF 编辑页面的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/generate_list.jsp.html b/original-plugin-raw/zh/fileTemplates/j2ee/generate_list.jsp.html new file mode 100644 index 000000000..e1b8bdf2a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/generate_list.jsp.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次从持久性单元生成 Java Server Faces 时用于创建 JSF 列表页面的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/generate_table.jsp.html b/original-plugin-raw/zh/fileTemplates/j2ee/generate_table.jsp.html new file mode 100644 index 000000000..3293b5343 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/generate_table.jsp.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次从持久性单元生成 Java Server Faces 时用于创建 JSF 表格页面的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/generate_view.jsp.html b/original-plugin-raw/zh/fileTemplates/j2ee/generate_view.jsp.html new file mode 100644 index 000000000..77e07dd54 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/generate_view.jsp.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次从持久性单元生成 Java Server Faces 时用于创建 JSF 视图页面的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/generate_view_M_N.jsp.html b/original-plugin-raw/zh/fileTemplates/j2ee/generate_view_M_N.jsp.html new file mode 100644 index 000000000..77e07dd54 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/generate_view_M_N.jsp.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次从持久性单元生成 Java Server Faces 时用于创建 JSF 视图页面的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/glassfish-application_6_0-1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/glassfish-application_6_0-1.xml.html new file mode 100644 index 000000000..577cc0bb7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/glassfish-application_6_0-1.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 glassfish-application.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/glassfish-ejb-jar_3_1-1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/glassfish-ejb-jar_3_1-1.xml.html new file mode 100644 index 000000000..cd77e6a9f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/glassfish-ejb-jar_3_1-1.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 glassfish-ejb-jar.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/glassfish-web_3_0-1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/glassfish-web_3_0-1.xml.html new file mode 100644 index 000000000..7e2ad0a25 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/glassfish-web_3_0-1.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 glassfish-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/gradleBasedPlugin.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/gradleBasedPlugin.xml.html new file mode 100644 index 000000000..57fd68f6c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/gradleBasedPlugin.xml.html @@ -0,0 +1,10 @@ + + + + + + +
用于为 IntelliJ 平台插件创建新的 Gradle 模块的内置模板。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-configuration-3.0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-configuration-3.0.xml.html new file mode 100644 index 000000000..6ac537513 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-configuration-3.0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 Hibernate 3.X XML 配置时使用的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-configuration-4.0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-configuration-4.0.xml.html new file mode 100644 index 000000000..67ac9fd24 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-configuration-4.0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 Hibernate 4.X XML 配置时使用的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-configuration-5.0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-configuration-5.0.xml.html new file mode 100644 index 000000000..c1d513633 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-configuration-5.0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 Hibernate 5.0 XML 配置时使用的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-configuration-5.2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-configuration-5.2.xml.html new file mode 100644 index 000000000..c47ae67dd --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-configuration-5.2.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 Hibernate 5.2 XML 配置时使用的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-main-3.0.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-main-3.0.java.html new file mode 100644 index 000000000..a93338205 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-main-3.0.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 Hibernate 3.X Java 主类时使用的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-main-4.0.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-main-4.0.java.html new file mode 100644 index 000000000..9c70ff4b1 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-main-4.0.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 Hibernate 4.X Java 主类时使用的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-main-5.0.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-main-5.0.java.html new file mode 100644 index 000000000..0bb00aa4a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-main-5.0.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 Hibernate 5.0 Java 主类时使用的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-main-5.2.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-main-5.2.java.html new file mode 100644 index 000000000..c2895c691 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-main-5.2.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 Hibernate 5.2 Java 主类时使用的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-mapping-3.0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-mapping-3.0.xml.html new file mode 100644 index 000000000..8a8b3d787 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-mapping-3.0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 Hibernate 3.X XML 映射时使用的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-mapping-4.0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-mapping-4.0.xml.html new file mode 100644 index 000000000..846a44470 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-mapping-4.0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 Hibernate 4.X XML 映射时使用的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-mapping-5.0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-mapping-5.0.xml.html new file mode 100644 index 000000000..946c462a9 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/hibernate-mapping-5.0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 Hibernate 5.X XML 映射时使用的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-bnd_1_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-bnd_1_0.xml.html new file mode 100644 index 000000000..cd4afe20a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-bnd_1_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-application-bnd.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-bnd_1_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-bnd_1_1.xml.html new file mode 100644 index 000000000..cd4afe20a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-bnd_1_1.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-application-bnd.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-bnd_1_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-bnd_1_2.xml.html new file mode 100644 index 000000000..1906fd8ae --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-bnd_1_2.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-application-bnd.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-ext-pme_1_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-ext-pme_1_0.xml.html new file mode 100644 index 000000000..eb67c476a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-ext-pme_1_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-application-ext-pme.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-ext_1_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-ext_1_0.xml.html new file mode 100644 index 000000000..fc55638d8 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-ext_1_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-application-ext.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-ext_1_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-ext_1_1.xml.html new file mode 100644 index 000000000..725ea6072 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-application-ext_1_1.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-application-ext.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-bnd_1_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-bnd_1_0.xml.html new file mode 100644 index 000000000..2e0b85a14 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-bnd_1_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-ejb-jar-bnd.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-bnd_1_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-bnd_1_1.xml.html new file mode 100644 index 000000000..2e0b85a14 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-bnd_1_1.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-ejb-jar-bnd.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-bnd_1_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-bnd_1_2.xml.html new file mode 100644 index 000000000..c3dc0a57d --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-bnd_1_2.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-ejb-jar-bnd.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-ext-pme_1_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-ext-pme_1_0.xml.html new file mode 100644 index 000000000..40559b74c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-ext-pme_1_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-ejb-jar-ext-pme.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-ext_1_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-ext_1_0.xml.html new file mode 100644 index 000000000..bbb8bb53f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-ext_1_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-ejb-jar-ext.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-ext_1_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-ext_1_1.xml.html new file mode 100644 index 000000000..bbb8bb53f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-ejb-jar-ext_1_1.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-ejb-jar-ext.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-bnd_1_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-bnd_1_0.xml.html new file mode 100644 index 000000000..c6c25628f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-bnd_1_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-web-bnd.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-bnd_1_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-bnd_1_1.xml.html new file mode 100644 index 000000000..c6c25628f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-bnd_1_1.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-web-bnd.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-bnd_1_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-bnd_1_2.xml.html new file mode 100644 index 000000000..c0745d5a8 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-bnd_1_2.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-web-bnd.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-ext-pme_1_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-ext-pme_1_0.xml.html new file mode 100644 index 000000000..7fbfbbefe --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-ext-pme_1_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-web-ext-pme.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-ext_1_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-ext_1_0.xml.html new file mode 100644 index 000000000..3b1719f11 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-ext_1_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-web-ext.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-ext_1_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-ext_1_1.xml.html new file mode 100644 index 000000000..3b1719f11 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/ibm-web-ext_1_1.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 ibm-web-ext.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/index_page_template.jsp.html b/original-plugin-raw/zh/fileTemplates/j2ee/index_page_template.jsp.html new file mode 100644 index 000000000..5b56686b3 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/index_page_template.jsp.html @@ -0,0 +1,11 @@ + + + + + + +
+ 这是每次从持久性单元生成 Java Server Faces 时用于创建 JSF 索引页面的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/j2ee1_4.webservice.interface.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/j2ee1_4.webservice.interface.java.html new file mode 100644 index 000000000..c2498138e --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/j2ee1_4.webservice.interface.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建 Java 2 EE 1.4 Web 服务时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/j2ee1_4.webservice.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/j2ee1_4.webservice.java.html new file mode 100644 index 000000000..1cb2cccb7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/j2ee1_4.webservice.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建 Java 2 EE 1.4 Web 服务时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jaxws.webservice.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/jaxws.webservice.java.html new file mode 100644 index 000000000..a8062a577 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jaxws.webservice.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建 JaxWS Web 服务时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-app_3_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-app_3_2.xml.html new file mode 100644 index 000000000..bc153d37a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-app_3_2.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 jboss-app.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-app_4_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-app_4_0.xml.html new file mode 100644 index 000000000..bc153d37a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-app_4_0.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 jboss-app.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-app_4_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-app_4_2.xml.html new file mode 100644 index 000000000..bc153d37a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-app_4_2.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 jboss-app.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-app_5_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-app_5_0.xml.html new file mode 100644 index 000000000..65f654c1e --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-app_5_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jboss-app.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-app_7_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-app_7_0.xml.html new file mode 100644 index 000000000..65f654c1e --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-app_7_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jboss-app.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-deployment-structure_1_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-deployment-structure_1_0.xml.html new file mode 100644 index 000000000..5342511be --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-deployment-structure_1_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jboss-deployment-structure.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-deployment-structure_1_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-deployment-structure_1_1.xml.html new file mode 100644 index 000000000..5342511be --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-deployment-structure_1_1.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jboss-deployment-structure.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-deployment-structure_1_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-deployment-structure_1_2.xml.html new file mode 100644 index 000000000..5342511be --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-deployment-structure_1_2.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jboss-deployment-structure.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-deployment-structure_1_3.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-deployment-structure_1_3.xml.html new file mode 100644 index 000000000..3adf89591 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-deployment-structure_1_3.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jboss-deployment-structure.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_10_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_10_0.xml.html new file mode 100644 index 000000000..00fdb6852 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_10_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jboss-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_3_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_3_2.xml.html new file mode 100644 index 000000000..a33a9faae --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_3_2.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 jboss-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_4_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_4_0.xml.html new file mode 100644 index 000000000..a33a9faae --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_4_0.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 jboss-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_4_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_4_2.xml.html new file mode 100644 index 000000000..a33a9faae --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_4_2.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 jboss-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_5_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_5_0.xml.html new file mode 100644 index 000000000..00fdb6852 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_5_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jboss-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_5_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_5_1.xml.html new file mode 100644 index 000000000..00fdb6852 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_5_1.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jboss-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_6_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_6_0.xml.html new file mode 100644 index 000000000..00fdb6852 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_6_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jboss-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_7_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_7_0.xml.html new file mode 100644 index 000000000..00fdb6852 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_7_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jboss-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_7_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_7_1.xml.html new file mode 100644 index 000000000..00fdb6852 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_7_1.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jboss-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_7_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_7_2.xml.html new file mode 100644 index 000000000..00fdb6852 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_7_2.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jboss-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_8_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_8_0.xml.html new file mode 100644 index 000000000..00fdb6852 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss-web_8_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jboss-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss_3_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss_3_2.xml.html new file mode 100644 index 000000000..50f45b21b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss_3_2.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 jboss.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss_4_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss_4_0.xml.html new file mode 100644 index 000000000..50f45b21b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss_4_0.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 jboss.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss_4_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss_4_2.xml.html new file mode 100644 index 000000000..50f45b21b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss_4_2.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 jboss.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss_5_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss_5_0.xml.html new file mode 100644 index 000000000..cad4561a9 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss_5_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jboss.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jboss_6_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jboss_6_0.xml.html new file mode 100644 index 000000000..cad4561a9 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jboss_6_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jboss.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jbosscmp-jdbc_3_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jbosscmp-jdbc_3_2.xml.html new file mode 100644 index 000000000..b5452645d --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jbosscmp-jdbc_3_2.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 jbosscmp-jdbc.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jbosscmp-jdbc_4_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jbosscmp-jdbc_4_0.xml.html new file mode 100644 index 000000000..b5452645d --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jbosscmp-jdbc_4_0.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 jbosscmp-jdbc.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jbosscmp-jdbc_4_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jbosscmp-jdbc_4_2.xml.html new file mode 100644 index 000000000..b5452645d --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jbosscmp-jdbc_4_2.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 jbosscmp-jdbc.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jetty-web_6_x.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jetty-web_6_x.xml.html new file mode 100644 index 000000000..93f75391a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jetty-web_6_x.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jetty-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jetty-web_7_x.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jetty-web_7_x.xml.html new file mode 100644 index 000000000..93f75391a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jetty-web_7_x.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jetty-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jetty-web_9_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jetty-web_9_0.xml.html new file mode 100644 index 000000000..93f75391a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jetty-web_9_0.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jetty-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jetty-web_9_3.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jetty-web_9_3.xml.html new file mode 100644 index 000000000..93f75391a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jetty-web_9_3.xml.html @@ -0,0 +1,13 @@ + + + + + + +
+ + 这是每次创建新的 jetty-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/job.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/job.xml.html new file mode 100644 index 000000000..497177081 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/job.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建简单的作业 xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/jsf.xhtml.html b/original-plugin-raw/zh/fileTemplates/j2ee/jsf.xhtml.html new file mode 100644 index 000000000..acbec8098 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/jsf.xhtml.html @@ -0,0 +1,10 @@ + + + + + + +
这是用于创建 JSF 2.2 页面的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/layoutResourceFile.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/layoutResourceFile.xml.html new file mode 100644 index 000000000..8a5a9806f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/layoutResourceFile.xml.html @@ -0,0 +1,5 @@ + + +

这是用于在 Android 应用程序中创建布局 XML 文件的内置文件模板。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/layoutResourceFile_vertical.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/layoutResourceFile_vertical.xml.html new file mode 100644 index 000000000..6314ff830 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/layoutResourceFile_vertical.xml.html @@ -0,0 +1,5 @@ + + +

这是用于在 Android 应用程序中创建垂直布局 XML 文件的内置文件模板。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/managed_bean_template1.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/managed_bean_template1.java.html new file mode 100644 index 000000000..05d87c3e3 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/managed_bean_template1.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次从持久性单元生成 Java Server Faces 时用于创建 JSF 托管 Bean 类的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/module-context.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/module-context.xml.html new file mode 100644 index 000000000..99ca7fd82 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/module-context.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是用于创建 Spring Bean 配置文件的内置模板。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/navigationResourceFile.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/navigationResourceFile.xml.html new file mode 100644 index 000000000..52e166854 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/navigationResourceFile.xml.html @@ -0,0 +1,20 @@ + + + +

这是用于在 Android 应用程序中创建导航 XML 文件的内置文件模板。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/orm_1_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/orm_1_0.xml.html new file mode 100644 index 000000000..c2af31285 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/orm_1_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 orm.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/orm_2_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/orm_2_0.xml.html new file mode 100644 index 000000000..a3a06a979 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/orm_2_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 JPA 2.0 orm.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/orm_2_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/orm_2_1.xml.html new file mode 100644 index 000000000..4f3b01561 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/orm_2_1.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 JPA 2.1 orm.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/orm_2_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/orm_2_2.xml.html new file mode 100644 index 000000000..50026e35d --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/orm_2_2.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 JPA 2.2 orm.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/orm_3_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/orm_3_0.xml.html new file mode 100644 index 000000000..6f78aa9e9 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/orm_3_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 JPA 3.0 orm.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/osgi-context.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/osgi-context.xml.html new file mode 100644 index 000000000..a6834de36 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/osgi-context.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是用于创建 Spring Dynamic Modules 配置上下文文件的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/pageflow.2_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/pageflow.2_0.xml.html new file mode 100644 index 000000000..37030c8c8 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/pageflow.2_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是用于创建 Seam Pageflow 文件的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/pages.2_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/pages.2_0.xml.html new file mode 100644 index 000000000..69c07f21f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/pages.2_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是用于创建 Seam pages.xml 文件的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/persistence.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/persistence.xml.html new file mode 100644 index 000000000..65cfa6d86 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/persistence.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 persistence.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/persistence_2_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/persistence_2_0.xml.html new file mode 100644 index 000000000..de365f355 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/persistence_2_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 JPA 2.0 persistence.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/persistence_2_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/persistence_2_1.xml.html new file mode 100644 index 000000000..89db45a3b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/persistence_2_1.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 JPA 2.1 persistence.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/persistence_2_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/persistence_2_2.xml.html new file mode 100644 index 000000000..ce883e8b9 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/persistence_2_2.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 JPA 2.2 persistence.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/persistence_3_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/persistence_3_0.xml.html new file mode 100644 index 000000000..2c40c3b58 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/persistence_3_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 JPA 3.0 persistence.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/plugin.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/plugin.xml.html new file mode 100644 index 000000000..c609f5db8 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/plugin.xml.html @@ -0,0 +1,10 @@ + + + + + + +
用于创建新的基于 Plugin DevKitIntelliJ 平台插件模块的内置模板。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/pojo.webservice.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/pojo.webservice.java.html new file mode 100644 index 000000000..c2d4e7148 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/pojo.webservice.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建 pojo 样式 Web 服务时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/process.4.4.jpdl.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/process.4.4.jpdl.xml.html new file mode 100644 index 000000000..bfeb90409 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/process.4.4.jpdl.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是用于创建 jPDL 4.4 进程文件的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/qt.CMakeLists.txt.html b/original-plugin-raw/zh/fileTemplates/j2ee/qt.CMakeLists.txt.html new file mode 100644 index 000000000..21bb01d01 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/qt.CMakeLists.txt.html @@ -0,0 +1,10 @@ + + + +

为新的 Qt 项目填充自动生成的 CMakeLists.txt 文件

+
+

此处列出了所有可用变量和命令

+
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/resourceFile.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/resourceFile.xml.html new file mode 100644 index 000000000..c2c153a73 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/resourceFile.xml.html @@ -0,0 +1,5 @@ + + +

这是用于在 Android 应用程序中创建布局 XML 资源文件的内置文件模板。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/rest.cxf.webservice.interface.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/rest.cxf.webservice.interface.java.html new file mode 100644 index 000000000..bdf1f3089 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/rest.cxf.webservice.interface.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建 CXF RESTful Web 服务时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/rest.cxf.webservice.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/rest.cxf.webservice.java.html new file mode 100644 index 000000000..bdf1f3089 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/rest.cxf.webservice.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建 CXF RESTful Web 服务时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/spring-beans.1_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/spring-beans.1_0.xml.html new file mode 100644 index 000000000..8d497c26c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/spring-beans.1_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是用于创建 Spring Bean 配置文件的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/spring-beans.2_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/spring-beans.2_0.xml.html new file mode 100644 index 000000000..b9b4636e7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/spring-beans.2_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是用于创建 Spring Bean 配置文件的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/spring-beans.schema.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/spring-beans.schema.xml.html new file mode 100644 index 000000000..8d497c26c --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/spring-beans.schema.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是用于创建 Spring Bean 配置文件的内置模板 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/struts.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/struts.xml.html new file mode 100644 index 000000000..dea1d6830 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/struts.xml.html @@ -0,0 +1,7 @@ + + + +这是每次为 Struts 2.0.x 创建新的 struts.xml 时使用的内置模板 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/struts_2_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/struts_2_1.xml.html new file mode 100644 index 000000000..4a6885af0 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/struts_2_1.xml.html @@ -0,0 +1,7 @@ + + + +这是每次为 Struts 2.1.x 创建新的 struts.xml 时使用的内置模板 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/struts_2_1_7.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/struts_2_1_7.xml.html new file mode 100644 index 000000000..1ffa91c8e --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/struts_2_1_7.xml.html @@ -0,0 +1,7 @@ + + + +这是每次为 Struts 2.1.7 创建新的 struts.xml 时使用的内置模板 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/struts_2_3.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/struts_2_3.xml.html new file mode 100644 index 000000000..50bd70458 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/struts_2_3.xml.html @@ -0,0 +1,7 @@ + + + +这是每次为 Struts 2.3.x 创建新的 struts.xml 时使用的内置模板 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/struts_2_5.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/struts_2_5.xml.html new file mode 100644 index 000000000..c7f9bda3f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/struts_2_5.xml.html @@ -0,0 +1,7 @@ + + + +这是每次为 Struts 2.5.x 创建新的 struts.xml 时使用的内置模板 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-application_1_3-0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-application_1_3-0.xml.html new file mode 100644 index 000000000..fc443f83b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-application_1_3-0.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-application.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-application_1_4-0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-application_1_4-0.xml.html new file mode 100644 index 000000000..fc443f83b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-application_1_4-0.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-application.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-application_5_0-0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-application_5_0-0.xml.html new file mode 100644 index 000000000..fc443f83b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-application_5_0-0.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-application.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-application_6_0-0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-application_6_0-0.xml.html new file mode 100644 index 000000000..fc443f83b --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-application_6_0-0.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-application.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-cmp-mapping_1_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-cmp-mapping_1_0.xml.html new file mode 100644 index 000000000..84fef0fb2 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-cmp-mapping_1_0.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-cmp-mapping.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-cmp-mapping_1_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-cmp-mapping_1_1.xml.html new file mode 100644 index 000000000..84fef0fb2 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-cmp-mapping_1_1.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-cmp-mapping.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-cmp-mapping_1_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-cmp-mapping_1_2.xml.html new file mode 100644 index 000000000..84fef0fb2 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-cmp-mapping_1_2.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-cmp-mapping.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_2_0-0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_2_0-0.xml.html new file mode 100644 index 000000000..a907859ce --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_2_0-0.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-ejb-jar.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_2_0-1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_2_0-1.xml.html new file mode 100644 index 000000000..a907859ce --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_2_0-1.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-ejb-jar.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_2_1-0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_2_1-0.xml.html new file mode 100644 index 000000000..a907859ce --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_2_1-0.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-ejb-jar.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_2_1-1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_2_1-1.xml.html new file mode 100644 index 000000000..a907859ce --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_2_1-1.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-ejb-jar.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_3_0-0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_3_0-0.xml.html new file mode 100644 index 000000000..a907859ce --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_3_0-0.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-ejb-jar.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_3_1-0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_3_1-0.xml.html new file mode 100644 index 000000000..a907859ce --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-ejb-jar_3_1-0.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-ejb-jar.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_2_3-0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_2_3-0.xml.html new file mode 100644 index 000000000..e57b7d6f7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_2_3-0.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_2_3-1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_2_3-1.xml.html new file mode 100644 index 000000000..e57b7d6f7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_2_3-1.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_2_4-0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_2_4-0.xml.html new file mode 100644 index 000000000..e57b7d6f7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_2_4-0.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_2_4-1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_2_4-1.xml.html new file mode 100644 index 000000000..e57b7d6f7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_2_4-1.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_2_5-0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_2_5-0.xml.html new file mode 100644 index 000000000..e57b7d6f7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_2_5-0.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_3_0-0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_3_0-0.xml.html new file mode 100644 index 000000000..e57b7d6f7 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/sun-web_3_0-0.xml.html @@ -0,0 +1,14 @@ + + + + + + + +
+ + 这是每次创建新的 sun-web.xml 时使用的内置模板 + +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/user_defined_create.jsp.html b/original-plugin-raw/zh/fileTemplates/j2ee/user_defined_create.jsp.html new file mode 100644 index 000000000..f08dc1e08 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/user_defined_create.jsp.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次从持久性单元生成 Java Server Faces 时用于创建 JSF 创建页面的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/user_defined_edit.jsp.html b/original-plugin-raw/zh/fileTemplates/j2ee/user_defined_edit.jsp.html new file mode 100644 index 000000000..7b2904264 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/user_defined_edit.jsp.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次从持久性单元生成 Java Server Faces 时用于创建 JSF 编辑页面的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/user_defined_list.jsp.html b/original-plugin-raw/zh/fileTemplates/j2ee/user_defined_list.jsp.html new file mode 100644 index 000000000..e1b8bdf2a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/user_defined_list.jsp.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次从持久性单元生成 Java Server Faces 时用于创建 JSF 列表页面的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/user_defined_managed_bean.java.html b/original-plugin-raw/zh/fileTemplates/j2ee/user_defined_managed_bean.java.html new file mode 100644 index 000000000..05d87c3e3 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/user_defined_managed_bean.java.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次从持久性单元生成 Java Server Faces 时用于创建 JSF 托管 Bean 类的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/user_defined_view.jsp.html b/original-plugin-raw/zh/fileTemplates/j2ee/user_defined_view.jsp.html new file mode 100644 index 000000000..77e07dd54 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/user_defined_view.jsp.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次从持久性单元生成 Java Server Faces 时用于创建 JSF 视图页面的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/validator.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/validator.xml.html new file mode 100644 index 000000000..b6f091f86 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/validator.xml.html @@ -0,0 +1,7 @@ + + + +这是每次创建新的 validation.xml 时使用的内置模板 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/valueResourceFile.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/valueResourceFile.xml.html new file mode 100644 index 000000000..9248d58e0 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/valueResourceFile.xml.html @@ -0,0 +1,5 @@ + + +

这是用于在 "value" 文件夹中创建空 XML 资源文件的内置文件模板

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/web.2_2.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/web.2_2.xml.html new file mode 100644 index 000000000..04ca7f636 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/web.2_2.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次为 Servlet 2.2 规范创建新的 web.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/web.2_3.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/web.2_3.xml.html new file mode 100644 index 000000000..eb436c62f --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/web.2_3.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次为 Servlet 2.3 规范创建新的 web.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/web.2_4.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/web.2_4.xml.html new file mode 100644 index 000000000..985724cfb --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/web.2_4.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次为 Servlet 2.4 规范创建新的 web.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/web.2_5.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/web.2_5.xml.html new file mode 100644 index 000000000..d5c13eda8 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/web.2_5.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次为 Servlet 2.5 规范创建新的 web.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/web.3_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/web.3_0.xml.html new file mode 100644 index 000000000..e48e49a26 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/web.3_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次为 Servlet 3.0 规范创建新的 web.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/web.3_1.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/web.3_1.xml.html new file mode 100644 index 000000000..f36c1d8f8 --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/web.3_1.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次为 Servlet 3.1 规范创建新的 web.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/web.4_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/web.4_0.xml.html new file mode 100644 index 000000000..a2aad8e8a --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/web.4_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次为 Servlet 4.0 规范创建新的 web.xml 时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/fileTemplates/j2ee/web.5_0.xml.html b/original-plugin-raw/zh/fileTemplates/j2ee/web.5_0.xml.html new file mode 100644 index 000000000..cb49adb6d --- /dev/null +++ b/original-plugin-raw/zh/fileTemplates/j2ee/web.5_0.xml.html @@ -0,0 +1,10 @@ + + + + + + +
这是每次创建新的 web.xml 5.0 规范时使用的内置模板 +
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ARCIssues.html b/original-plugin-raw/zh/inspectionDescriptions/ARCIssues.html new file mode 100644 index 000000000..38f436c1a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ARCIssues.html @@ -0,0 +1,5 @@ + + +报告在 ARC 模式下无效的代码。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AbsoluteAlignmentInUserInterface.html b/original-plugin-raw/zh/inspectionDescriptions/AbsoluteAlignmentInUserInterface.html new file mode 100644 index 000000000..7b1a37d2d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AbsoluteAlignmentInUserInterface.html @@ -0,0 +1,18 @@ + + +报告 AWT 和 Swing 中的绝对对齐常量的用法。 国际化应用程序使用相对对齐,因为它遵循区域设置组件的方向设置。 +

示例:

+

+  JPanel panel = new JPanel(new BorderLayout(2, 2));
+  JLabel label = new JLabel("Hello World");
+  panel.add(label, BorderLayout.NORTH);
+
+

在应用快速修复后:

+

+  JPanel panel = new JPanel(new BorderLayout(2, 2));
+  JLabel label = new JLabel("Hello World");
+  panel.add(label, BorderLayout.PAGE_START);
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AbsoluteImport.html b/original-plugin-raw/zh/inspectionDescriptions/AbsoluteImport.html new file mode 100644 index 000000000..7803dc0da --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AbsoluteImport.html @@ -0,0 +1,21 @@ + + +报告可以与基础软件包(设置 | 语言和框架 | Scala | 基础软件包)相关的完全限定导入。 +

仅当在设置 | 编辑器 | 代码样式 | Scala | 导入中启用对基础软件包例外选项时才适用。

+

示例:

+

+  package org.example.application
+  package ui
+
+  import org.example.application.model.Data
+
+

在应用快速修复后:

+

+  package org.example.application
+  package ui
+
+  import model.Data
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AbstractBeanReferencesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/AbstractBeanReferencesInspection.html new file mode 100644 index 000000000..907ae1ecb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AbstractBeanReferencesInspection.html @@ -0,0 +1,20 @@ + + +

报告引用的抽象 Bean。

+ +

抽象 Bean 只能用作模板 Bean 定义,即子定义的父项。 + 尝试通过作为另一个 Bean 的 ref 属性进行引用,或者通过使用父 Bean ID 调用 getBean() 来单独使用此类抽象父 Bean,将导致错误。

+ +

示例:

+ +

+  <bean abstract="true" id="parentBeanWithoutClass"/>
+  <bean class="com.my.company.FooBean" id="childBean" parent="parentBeanWithoutClass">
+  <!--  properties -->
+  </bean>
+
+ +

在此示例中,父 Bean 不能自己实例化,因为它不完整并且被显式声明为抽象。

+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/AbstractClassExtendsConcreteClass.html b/original-plugin-raw/zh/inspectionDescriptions/AbstractClassExtendsConcreteClass.html new file mode 100644 index 000000000..04d5524b2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AbstractClassExtendsConcreteClass.html @@ -0,0 +1,6 @@ + + +报告扩展具体类的 abstract 类。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AbstractClassNeverImplemented.html b/original-plugin-raw/zh/inspectionDescriptions/AbstractClassNeverImplemented.html new file mode 100644 index 000000000..aac618758 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AbstractClassNeverImplemented.html @@ -0,0 +1,7 @@ + + +报告没有任何具体子类的 abstract 类。 + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AbstractClassWithOnlyOneDirectInheritor.html b/original-plugin-raw/zh/inspectionDescriptions/AbstractClassWithOnlyOneDirectInheritor.html new file mode 100644 index 000000000..a9de01a71 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AbstractClassWithOnlyOneDirectInheritor.html @@ -0,0 +1,16 @@ + + +报告仅具有一个直接继承者的 abstract 类。 虽然这种类可能会在内存受限或带宽受限的环境中提供令人钦佩的设计清晰度,但它们不必要地增加了应用程序的总占用空间。 请考虑将抽象类与其继承者合并。 +

+ 此检查适用于 Java ME 和其他资源高度受限的环境。 + 不加考虑地应用此检查的结果可能会对代码清晰度和设计产生负面影响。 +

+

示例:

+

+  abstract class Base {} // 将被报告
+
+  class Inheritor extends Base {}
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AbstractClassWithoutAbstractMethods.html b/original-plugin-raw/zh/inspectionDescriptions/AbstractClassWithoutAbstractMethods.html new file mode 100644 index 000000000..f08343c1a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AbstractClassWithoutAbstractMethods.html @@ -0,0 +1,7 @@ + + +报告没有任何 abstract 方法的 abstract 类。 + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AbstractMethodCallInConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/AbstractMethodCallInConstructor.html new file mode 100644 index 000000000..680dd2e52 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AbstractMethodCallInConstructor.html @@ -0,0 +1,34 @@ + + +报告在对象构造期间对当前类的 abstract 方法的调用。 +

如果方法位于以下位置,则会在对象构造期间调用: +

    +
  • 构造函数
  • +
  • 非 static 实例初始值设定项
  • +
  • 非 static 字段初始值设定项
  • +
  • clone() 方法
  • +
  • readObject() 方法
  • +
  • readObjectNoData() 方法
  • +
+

此类调用可能会导致难以捉摸的错误,因为对象初始化可能发生在方法调用之前。

+

示例:

+

+  abstract class Parent {
+    abstract void abstractMethod();
+  }
+
+  class Child extends Parent {
+    Child() {
+      abstractMethod();
+    }
+  }
+
+ +

此检查与以下检查共享功能:

+
    +
  • 在对象构造期间调用的可重写方法
  • +
  • 在对象构造期间调用的重写的方法
  • +
+

一次只能启用一个检查,以防止警告重复。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AbstractMethodOverridesAbstractMethod.html b/original-plugin-raw/zh/inspectionDescriptions/AbstractMethodOverridesAbstractMethod.html new file mode 100644 index 000000000..131eba063 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AbstractMethodOverridesAbstractMethod.html @@ -0,0 +1,18 @@ + + +报告重写 abstract 方法的 abstract 方法。 +

此类方法毫无意义,因为任何具体的子类都必须实现抽象方法。

+

+ 此检查不会报告返回类型、异常声明、注解或修饰符与被重写方法不同的方法。 +

+ +

+ 配置检查: +

+
    +
  • + 使用忽略 Javadoc 与其 super 方法不同的方法选项,以忽略 Javadoc 注释与其 super 方法不同的任何抽象方法。 +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AbstractMethodOverridesConcreteMethod.html b/original-plugin-raw/zh/inspectionDescriptions/AbstractMethodOverridesConcreteMethod.html new file mode 100644 index 000000000..49fef9193 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AbstractMethodOverridesConcreteMethod.html @@ -0,0 +1,8 @@ + + +报告重写具体 super 方法的 abstract 方法。 +

此检查不会报告从 java.lang.Object 重写的方法。

+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AbstractMethodWithMissingImplementations.html b/original-plugin-raw/zh/inspectionDescriptions/AbstractMethodWithMissingImplementations.html new file mode 100644 index 000000000..8eb894ec3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AbstractMethodWithMissingImplementations.html @@ -0,0 +1,10 @@ + + +报告每个具体子类中没有实现的 abstract 方法。 +

+ 这会导致子类发生编译时错误;该检查会报告 abstract 方法点处的问题,从而可以更快地检测出问题。 +

+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AbstractValueInTrait.html b/original-plugin-raw/zh/inspectionDescriptions/AbstractValueInTrait.html new file mode 100644 index 000000000..0e8bc332a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AbstractValueInTrait.html @@ -0,0 +1,11 @@ + +

报告在初始化期间可能导致错误的特征中的抽象值和变量。

+

示例:

+

+  trait Sample {
+    val method: Method
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AccessStaticViaInstance.html b/original-plugin-raw/zh/inspectionDescriptions/AccessStaticViaInstance.html new file mode 100644 index 000000000..8fff24574 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AccessStaticViaInstance.html @@ -0,0 +1,18 @@ + + +报告通过类实例而非类本身对 static 方法和字段的引用。 +

虽然 Java 语言规范允许使用实例变量引用 static 成员,但代码阅读者可能会误认为该方法依赖于实例,从而使代码令人困惑。

+

该快速修复会将实例变量替换为类名。

+

示例:

+

+  String s1 = s.valueOf(0);
+
+

在应用快速修复后:

+

+  String s = String.valueOf(0);
+
+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AccessToNonThreadSafeStaticFieldFromInstance.html b/original-plugin-raw/zh/inspectionDescriptions/AccessToNonThreadSafeStaticFieldFromInstance.html new file mode 100644 index 000000000..c2f2d0229 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AccessToNonThreadSafeStaticFieldFromInstance.html @@ -0,0 +1,24 @@ + + +报告对非线程安全类型的 static 字段的访问。 +

+ 从实例方法或非同步块访问 static 字段时,多个线程都可以访问该字段。 + 这可能导致未指明的副作用,例如异常和不正确的结果。 +

+

示例:

+

+  class Sample {
+    private static final SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
+    String method() {
+      return df.format("");
+    }
+  }
+
+ +

+ 您可以指定哪些类型应被视为非线程安全。 + 仅报告具有这些确切类型或使用这些确切类型进行初始化的字段,因为可能存在这些类型的线程安全子类。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AccessToStaticFieldLockedOnInstance.html b/original-plugin-raw/zh/inspectionDescriptions/AccessToStaticFieldLockedOnInstance.html new file mode 100644 index 000000000..30d92a7bf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AccessToStaticFieldLockedOnInstance.html @@ -0,0 +1,25 @@ + + +报告对在 thisthis 的实例字段上锁定的非常量 static 字段的访问。 +

+ 在实例数据上锁定 static 字段并不能防止其他实例修改该字段,因此可能会导致意外的竞争条件。 +

+

示例:

+

+  static String test;
+  public void foo() {
+      synchronized (this) {
+          System.out.println(test); // 警告
+      }
+  }
+
+

+ 通过快速修复可以忽略特定类型的 static 字段。 + 可以在检查选项中管理被忽略的类型。 +

+ +

+ 使用检查选项可以指定应忽略哪些用于 static 字段的类。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AccessorLikeMethodIsEmptyParen.html b/original-plugin-raw/zh/inspectionDescriptions/AccessorLikeMethodIsEmptyParen.html new file mode 100644 index 000000000..817f258aa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AccessorLikeMethodIsEmptyParen.html @@ -0,0 +1,23 @@ + + +

报告具有类似访问器名称且形参子句为空的方法。

+

符合访问器 JavaBean 命名协定的方法预计不会有副作用。 + 这些方法的推荐惯例是在没有形参时使用无形参方法。

+

该惯例促进了统一访问原则,即客户端代码不应受到将特性实现为字段或方法的决定的影响。

+

该快速修复会移除空形参子句。

+

示例:

+

+  trait Test {
+    def hasProperty(): Boolean
+  }
+
+

在应用快速修复后:

+

+  trait Test {
+    def hasProperty: Boolean
+  }
+
+ +

此检查将不报告重写其他成员的方法。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AccessorLikeMethodIsUnit.html b/original-plugin-raw/zh/inspectionDescriptions/AccessorLikeMethodIsUnit.html new file mode 100644 index 000000000..db0898829 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AccessorLikeMethodIsUnit.html @@ -0,0 +1,15 @@ + + +

报告具有类似访问器名称且结果类型为 Unit 的方法。

+

符合访问器 JavaBean 命名协定的方法预计不会有副作用。 然而,结果类型为 Unit 的方法仅针对它们的副作用而执行。

+

这表明该方法应该导致非 Unit 类型或重命名以更好地反映副作用。

+

示例:

+

+  trait Test {
+    def getTarget(): Unit
+  }
+
+ +

此检查将不报告重写其他成员的方法。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AccessorsWereOverridden.html b/original-plugin-raw/zh/inspectionDescriptions/AccessorsWereOverridden.html new file mode 100644 index 000000000..0519b5800 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AccessorsWereOverridden.html @@ -0,0 +1,5 @@ + + + 如果具有 @synthesize 语句的属性的所有访问器(对于 readonly 属性,为 getter,其他情况下则为 getter 和 setter)均已显式定义,则报告这些属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ActionCableChannelNotFound.html b/original-plugin-raw/zh/inspectionDescriptions/ActionCableChannelNotFound.html new file mode 100644 index 000000000..4d153b14f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ActionCableChannelNotFound.html @@ -0,0 +1,5 @@ + + +报告未定义的 Action Cable 通道的用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ActorMutableStateInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ActorMutableStateInspection.html new file mode 100644 index 000000000..d3effb619 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ActorMutableStateInspection.html @@ -0,0 +1,28 @@ + + +

报告 actor 具有可变状态的情况。

+

示例:

+

+  import akka.actor._
+
+  class ActorImpl(private var counter: Int = 0) extends AbstractActor {
+    override def receive = {
+      case _ => counter += 1
+    }
+  }    
+
+

在应用快速修复后:

+

+  import akka.actor._
+  
+  class ActorImpl(private val counter: Int = 0) extends AbstractActor {
+    override def receive = onMessage(counter)
+  
+    private def onMessage(counter: Int): Receive = {
+      case _ => context.become(onMessage(counter + 1))
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AddOperatorModifier.html b/original-plugin-raw/zh/inspectionDescriptions/AddOperatorModifier.html new file mode 100644 index 000000000..feaaf694f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AddOperatorModifier.html @@ -0,0 +1,29 @@ + + +报告与其中一个运算符惯例匹配但缺少 operator 关键字的函数。 +

通过添加 operator 修饰符,您可以允许函数使用者编写惯用的 Kotlin 代码。

+

示例:

+

+  class Complex(val real: Double, val imaginary: Double) {
+      fun plus(other: Complex) =
+          Complex(real + other.real, imaginary + other.imaginary)
+  }
+
+  fun usage(a: Complex, b: Complex) {
+      a.plus(b)
+  }
+
+

该快速修复会添加 operator 修饰符关键字:

+

+  class Complex(val real: Double, val imaginary: Double) {
+      operator fun plus(other: Complex) =
+          Complex(real + other.real, imaginary + other.imaginary)
+  }
+
+  fun usage(a: Complex, b: Complex) {
+      a + b
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AddVarianceModifier.html b/original-plugin-raw/zh/inspectionDescriptions/AddVarianceModifier.html new file mode 100644 index 000000000..9dc327101 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AddVarianceModifier.html @@ -0,0 +1,31 @@ + + +报告可以具有 inout 差异的类型形参。 +

使用 inout 差异可以在 Kotlin 中提供更精确的类型推断以及更清晰的代码语义。

+

示例:

+

+  class Box<T>(val obj: T)
+
+  fun consumeString(box: Box<String>) {}
+  fun consumeCharSequence(box: Box<CharSequence>) {}
+
+  fun usage(box: Box<String>) {
+      consumeString(box)
+      consumeCharSequence(box) // 编译时错误
+  }
+
+

该快速修复会添加匹配的差异修饰符:

+

+  class Box<out T>(val obj: T)
+
+  fun consumeString(box: Box<String>) {}
+  fun consumeCharSequence(box: Box<CharSequence>) {}
+
+  fun usage(box: Box<String>) ++{
+      consumeString(box)
+      consumeCharSequence(box) // 可以
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/AlphaUnsortedPropertiesFile.html b/original-plugin-raw/zh/inspectionDescriptions/AlphaUnsortedPropertiesFile.html new file mode 100644 index 000000000..9e3e60052 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AlphaUnsortedPropertiesFile.html @@ -0,0 +1,5 @@ + + +报告未按字母顺序排序的资源包或 .properties 文件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AmbiguousFieldAccess.html b/original-plugin-raw/zh/inspectionDescriptions/AmbiguousFieldAccess.html new file mode 100644 index 000000000..83b78b543 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AmbiguousFieldAccess.html @@ -0,0 +1,40 @@ + + +如果在类周围的代码中存在同名的局部变量、形参或字段,则报告从匿名类、内部类或局部类对超类字段的访问。 +在这种情况下,看似访问了来自周围代码的元素,而实际上访问的是来自超类的字段。 +

+ 为阐明代码的意图,建议对字段访问添加显式 super 限定符。 +

+

示例:

+

+    class First {
+      protected String ambiguous;
+    }
+    class Second {
+      void foo(String ambiguous) {
+        new First() {
+          {
+            System.out.println(ambiguous); // 访问的是字段,而不是形参
+          }
+        };
+      }
+    }
+
+

在应用快速修复后:

+

+    class First {
+      protected String ambiguous;
+    }
+    class Second {
+      void foo(String ambiguous) {
+        new First() {
+          {
+            System.out.println(super.ambiguous);
+          }
+        };
+      }
+    }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AmbiguousMethodCall.html b/original-plugin-raw/zh/inspectionDescriptions/AmbiguousMethodCall.html new file mode 100644 index 000000000..36b4b57b8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AmbiguousMethodCall.html @@ -0,0 +1,42 @@ + + +如果在类周围的代码中存在具有相同签名的方法,则报告从匿名类、内部类或局部类对超类方法的调用。 +在这种情况下,看似调用了来自周围代码的方法,而实际上调用的是来自超类的方法。 +

+ 为了阐明代码的意图,建议对方法调用添加显式的 super 限定符。 +

+

示例:

+

+  class Parent {
+    void ambiguous(){}
+  }
+
+  class Example {
+    void ambiguous(){}
+
+    class Inner extends Parent {
+      void example(){
+        ambiguous(); //警告
+      }
+    }
+  }
+  
+

在应用快速修复后:

+

+  class Parent {
+    void ambiguous(){}
+  }
+
+  class Example {
+    void ambiguous(){}
+
+    class Inner extends Parent {
+      void example(){
+        super.ambiguous();
+      }
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AmmoniteUnresolvedLibrary.html b/original-plugin-raw/zh/inspectionDescriptions/AmmoniteUnresolvedLibrary.html new file mode 100644 index 000000000..ff0dd7af5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AmmoniteUnresolvedLibrary.html @@ -0,0 +1,6 @@ + + +

报告并帮助修正 Ammonite 脚本中未解析的 import。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AndroidDomInspection.html b/original-plugin-raw/zh/inspectionDescriptions/AndroidDomInspection.html new file mode 100644 index 000000000..57ad5ac1d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AndroidDomInspection.html @@ -0,0 +1,3 @@ + + 验证 Android XML 文件内部的资源引用。 + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AndroidElementNotAllowed.html b/original-plugin-raw/zh/inspectionDescriptions/AndroidElementNotAllowed.html new file mode 100644 index 000000000..e8ab9aee5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AndroidElementNotAllowed.html @@ -0,0 +1,5 @@ + + +此检查会高亮显示 Android 资源文件和 AndroidManifest.xml 中不允许使用的 XML 标记 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AndroidMissingOnClickHandler.html b/original-plugin-raw/zh/inspectionDescriptions/AndroidMissingOnClickHandler.html new file mode 100644 index 000000000..cdf3c25da --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AndroidMissingOnClickHandler.html @@ -0,0 +1,6 @@ + + +检查在 onClick XML 特性中指定的方法是否已在相关活动中声明 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AndroidNonConstantResIdsInSwitch.html b/original-plugin-raw/zh/inspectionDescriptions/AndroidNonConstantResIdsInSwitch.html new file mode 100644 index 000000000..a07e53438 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AndroidNonConstantResIdsInSwitch.html @@ -0,0 +1,4 @@ + +验证在 Android 库模块的 switch 语句中使用资源 ID 的情况。
。 +从 SDK Tools r14 开始,库项目中的资源 ID 为非 final,这意味着库代码不能将这些 ID 视为常量。 + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AndroidRoomQuestionMarkBindParameter.html b/original-plugin-raw/zh/inspectionDescriptions/AndroidRoomQuestionMarkBindParameter.html new file mode 100644 index 000000000..4cb8e241a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AndroidRoomQuestionMarkBindParameter.html @@ -0,0 +1,5 @@ + + +报告使用未命名的查询形参(如 WHERE id = ?)的 Room SQL 查询。 Room 查询分析器不支持此做法,它需要已命名的查询形参(如 WHERE id = :id),这些形参对应于使用 @Query 注解的方法的实参。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/AndroidUnknownAttribute.html b/original-plugin-raw/zh/inspectionDescriptions/AndroidUnknownAttribute.html new file mode 100644 index 000000000..298ee85f2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AndroidUnknownAttribute.html @@ -0,0 +1,5 @@ + + +此检查会高亮显示 Android 资源文件和 AndroidManifest.xml 中的未知 XML 特性 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AndroidUnresolvableTag.html b/original-plugin-raw/zh/inspectionDescriptions/AndroidUnresolvableTag.html new file mode 100644 index 000000000..2f942afbd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AndroidUnresolvableTag.html @@ -0,0 +1,20 @@ + + + +此检查会高亮显示 Android 资源文件中无法解析的 XML 标记引用 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AndroidUnresolvedRoomSqlReference.html b/original-plugin-raw/zh/inspectionDescriptions/AndroidUnresolvedRoomSqlReference.html new file mode 100644 index 000000000..3c5f83eb6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AndroidUnresolvedRoomSqlReference.html @@ -0,0 +1,5 @@ + + +检查 Room SQL 查询中是否有未解析的引用。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularAmbiguousComponentTag.html b/original-plugin-raw/zh/inspectionDescriptions/AngularAmbiguousComponentTag.html new file mode 100644 index 000000000..541e9d34d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularAmbiguousComponentTag.html @@ -0,0 +1,6 @@ + + +报告与嵌入的模板元素 <ng-template> 匹配的一个组件 +或与其他任何元素匹配的多个组件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularCliAddDependency.html b/original-plugin-raw/zh/inspectionDescriptions/AngularCliAddDependency.html new file mode 100644 index 000000000..d38cacc5f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularCliAddDependency.html @@ -0,0 +1,6 @@ + + +建议使用 ng add 命令安装依赖项。 +

ng add 将使用软件包管理器进行下载,并调用原理图,该原理图可以通过配置更改、添加附加依赖项(例如 polyfills)或基架软件包特定的初始化代码来更新项目。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularInaccessibleComponentMemberInAotMode.html b/original-plugin-raw/zh/inspectionDescriptions/AngularInaccessibleComponentMemberInAotMode.html new file mode 100644 index 000000000..7c72e63b4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularInaccessibleComponentMemberInAotMode.html @@ -0,0 +1,5 @@ + + +报告从组件模板访问组件的 private 或 protected 成员的情况。 此类用法会导致 AOT 编译失败。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularIncorrectTemplateDefinition.html b/original-plugin-raw/zh/inspectionDescriptions/AngularIncorrectTemplateDefinition.html new file mode 100644 index 000000000..1060d7967 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularIncorrectTemplateDefinition.html @@ -0,0 +1,5 @@ + + +报告没有关联模板或同时使用 templatetemplateUrl 属性的组件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularInsecureBindingToEvent.html b/original-plugin-raw/zh/inspectionDescriptions/AngularInsecureBindingToEvent.html new file mode 100644 index 000000000..c50b0bced --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularInsecureBindingToEvent.html @@ -0,0 +1,7 @@ + + +报告与事件属性或特性的绑定, +例如 [onclick][attr.onclick] 而不是 +(click)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidAnimationTriggerAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidAnimationTriggerAssignment.html new file mode 100644 index 000000000..9fcd492c0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidAnimationTriggerAssignment.html @@ -0,0 +1,6 @@ + + +报告动画触发器的无效赋值。 要将动画附加到元素,请使用 +[@triggerName]="expression" 或不含 @triggerName 值的特性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidEntryComponent.html b/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidEntryComponent.html new file mode 100644 index 000000000..dc9100f83 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidEntryComponent.html @@ -0,0 +1,5 @@ + + +报告在模块的 bootstrapentryComponents 属性中指定的无效 Angular 组件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidI18nAttribute.html b/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidI18nAttribute.html new file mode 100644 index 000000000..fd59b353e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidI18nAttribute.html @@ -0,0 +1,5 @@ + + +报告 i18n-* 特性的问题。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidImportedOrDeclaredSymbol.html b/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidImportedOrDeclaredSymbol.html new file mode 100644 index 000000000..ecef3e380 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidImportedOrDeclaredSymbol.html @@ -0,0 +1,5 @@ + + +报告由不是模块、组件、指令或管道或不能在属性上下文中使用的 Angular 模块所声明、导入或导出的任何符号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidSelector.html b/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidSelector.html new file mode 100644 index 000000000..c15edb15b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidSelector.html @@ -0,0 +1,5 @@ + + +报告组件或指令的无效 selector 属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidTemplateReferenceVariable.html b/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidTemplateReferenceVariable.html new file mode 100644 index 000000000..835aa09e7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularInvalidTemplateReferenceVariable.html @@ -0,0 +1,5 @@ + + +报告在使用 exportAs 时未赋给一条指令或赋给多条指令的模板引用变量。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularMissingEventHandler.html b/original-plugin-raw/zh/inspectionDescriptions/AngularMissingEventHandler.html new file mode 100644 index 000000000..017bbd301 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularMissingEventHandler.html @@ -0,0 +1,5 @@ + + +报告事件绑定缺少的事件处理程序语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularMissingOrInvalidDeclarationInModule.html b/original-plugin-raw/zh/inspectionDescriptions/AngularMissingOrInvalidDeclarationInModule.html new file mode 100644 index 000000000..85d64ea6a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularMissingOrInvalidDeclarationInModule.html @@ -0,0 +1,5 @@ + + +报告未在任何模块中声明或在多个模块中声明的 Angular 组件、指令或管道。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularMultipleStructuralDirectives.html b/original-plugin-raw/zh/inspectionDescriptions/AngularMultipleStructuralDirectives.html new file mode 100644 index 000000000..e996fe67b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularMultipleStructuralDirectives.html @@ -0,0 +1,5 @@ + + +报告一个元素中的多条结构型指令(*ngIf*ngFor 等)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularNonEmptyNgContent.html b/original-plugin-raw/zh/inspectionDescriptions/AngularNonEmptyNgContent.html new file mode 100644 index 000000000..f5bc02686 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularNonEmptyNgContent.html @@ -0,0 +1,5 @@ + + +报告用于内容投影的 <ng-content> 标记内出现的文本或标记。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularRecursiveModuleImportExport.html b/original-plugin-raw/zh/inspectionDescriptions/AngularRecursiveModuleImportExport.html new file mode 100644 index 000000000..50ce6862d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularRecursiveModuleImportExport.html @@ -0,0 +1,5 @@ + + +报告 Angular 模块之间的循环依赖关系。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularUndefinedBinding.html b/original-plugin-raw/zh/inspectionDescriptions/AngularUndefinedBinding.html new file mode 100644 index 000000000..f91c6557c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularUndefinedBinding.html @@ -0,0 +1,5 @@ + + +报告元素中未定义的属性、事件或结构型指令绑定。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularUndefinedModuleExport.html b/original-plugin-raw/zh/inspectionDescriptions/AngularUndefinedModuleExport.html new file mode 100644 index 000000000..62994a631 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularUndefinedModuleExport.html @@ -0,0 +1,5 @@ + + +报告从 Angular 模块导出的未声明或未导入的组件、指令或管道。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AngularUndefinedTag.html b/original-plugin-raw/zh/inspectionDescriptions/AngularUndefinedTag.html new file mode 100644 index 000000000..ae2114ba5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AngularUndefinedTag.html @@ -0,0 +1,5 @@ + + +报告由超出当前范围的组件或指令定义的标记。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Annotation.html b/original-plugin-raw/zh/inspectionDescriptions/Annotation.html new file mode 100644 index 000000000..af37ae9c1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Annotation.html @@ -0,0 +1,9 @@ + + +报告注解。 +Java 1.4 和更早版本的 JVM 不支持注解。 + +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AnnotationClass.html b/original-plugin-raw/zh/inspectionDescriptions/AnnotationClass.html new file mode 100644 index 000000000..4bdfd94a4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AnnotationClass.html @@ -0,0 +1,9 @@ + + +报告注解接口。 +Java 1.4 和更早版本的 JVM 不支持此类接口。 + +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Annotator.html b/original-plugin-raw/zh/inspectionDescriptions/Annotator.html new file mode 100644 index 000000000..443b1c0cf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Annotator.html @@ -0,0 +1,5 @@ + + +报告语言注解器在批处理代码检查运行结果中发现的问题。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AnnotatorBasedError.html b/original-plugin-raw/zh/inspectionDescriptions/AnnotatorBasedError.html new file mode 100644 index 000000000..407e26a15 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AnnotatorBasedError.html @@ -0,0 +1,6 @@ + + +

报告所有存在错误的文件

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Anonymous2MethodRef.html b/original-plugin-raw/zh/inspectionDescriptions/Anonymous2MethodRef.html new file mode 100644 index 000000000..fd79cd84e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Anonymous2MethodRef.html @@ -0,0 +1,22 @@ + + +报告可以替换为方法引用的匿名类。 +

+ 请注意,如果将匿名类转换为未绑定的方法引用,则 Java 运行时可以在后续调用期间重用相同的方法引用对象。 另一方面,使用匿名类时,每次都会创建单独的对象。 因此,在极少数情况下,应用该快速修复可能会导致语义发生变化,例如,当匿名类实例用作 HashMap 键时。 +

+

示例:

+

+    Runnable r = new Runnable() {
+      @Override
+      public void run() {
+        System.out.println();
+      }
+    };
+
+

该快速修复会将此代码更改为压缩形式:Runnable r = System.out::println;

+ +

使用在接口未使用 @FunctionalInterface 注解时报告选项可为未使用 @FunctionalInterface 注解的接口启用此检查。

+ +

仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AnonymousClassComplexity.html b/original-plugin-raw/zh/inspectionDescriptions/AnonymousClassComplexity.html new file mode 100644 index 000000000..c09711760 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AnonymousClassComplexity.html @@ -0,0 +1,9 @@ + + +报告总复杂度超过指定最大值的匿名内部类。 +

类的总复杂度是该类声明的所有方法和初始值设定项的循环复杂度的总和。 继承的方法和初始值设定项不计入总复杂度。

+

匿名类应该具有非常低的复杂度,否则它们会难以理解并且应提升为命名的内部类。

+ +

使用循环复杂度限制字段可指定类允许的最大复杂度。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AnonymousClassMethodCount.html b/original-plugin-raw/zh/inspectionDescriptions/AnonymousClassMethodCount.html new file mode 100644 index 000000000..45adf0bf1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AnonymousClassMethodCount.html @@ -0,0 +1,8 @@ + + +报告方法数超过指定最大值的匿名内部类。 +

具有大量方法的匿名类可能难以理解,应该提升为命名内部类。

+ +

使用方法计数限制字段可指定匿名内部类中允许的最大方法数。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AnonymousClassVariableHidesContainingMethodVariable.html b/original-plugin-raw/zh/inspectionDescriptions/AnonymousClassVariableHidesContainingMethodVariable.html new file mode 100644 index 000000000..965a42b98 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AnonymousClassVariableHidesContainingMethodVariable.html @@ -0,0 +1,23 @@ + + +报告匿名类中名称与包含方法或 lambda 表达式的局部变量或形参相同的字段。 +

+ 由于进行此类命名,在包含方法中有意使用同名变量或形参的情况下,您可能会误用匿名类字段。 +

+

建议通过快速修复重命名该字段。

+

示例:

+

+  class Test {
+    public Test(String value) {
+      Object foo = new Object() {
+        private String value = "TEST";
+        public void foo() {
+          System.out.println(value); //访问的是字段,而不是形参
+        }
+      };
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AnonymousFunctionJS.html b/original-plugin-raw/zh/inspectionDescriptions/AnonymousFunctionJS.html new file mode 100644 index 000000000..76c1f082e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AnonymousFunctionJS.html @@ -0,0 +1,7 @@ + + +报告匿名函数。 函数表达式的显式名称可能有助于调试。 +如果 ECMAScript 6 标准中指定了 name 属性,则忽略没有名称的函数表达式。 +例如,不会报告 var bar = function() {};。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AnonymousHasLambdaAlternative.html b/original-plugin-raw/zh/inspectionDescriptions/AnonymousHasLambdaAlternative.html new file mode 100644 index 000000000..a3456e508 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AnonymousHasLambdaAlternative.html @@ -0,0 +1,26 @@ + + +报告可以转换为构造函数或带有 lambda 表达式实参的工厂方法调用的匿名类。 +

本次检查报告以下类别: +

    +
  • 扩展 ThreadLocal 的匿名类,其具有 initialValue() 方法(可以替换为 ThreadLocal.withInitial
  • +
  • 扩展 Thread 的匿名类,其具有 run() 方法(可以替换为 new Thread(Runnable)
  • +
+

示例:

+

+  new Thread() {
+    @Override
+    public void run() {
+      System.out.println("Hello from thread!");
+    }
+  }.start();
+
+

在应用快速修复后:

+

+  new Thread(() -> {
+    System.out.println("Hello from thread!");
+  }).start();
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AnonymousInnerClass.html b/original-plugin-raw/zh/inspectionDescriptions/AnonymousInnerClass.html new file mode 100644 index 000000000..e07f1e039 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AnonymousInnerClass.html @@ -0,0 +1,8 @@ + + +报告匿名内部类。 +

在某些情况下,将匿名内部类替换为内部类可以提高代码的可读性和可维护性。 + 另外,有些代码标准不建议使用匿名内部类。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AnonymousInnerClassMayBeStatic.html b/original-plugin-raw/zh/inspectionDescriptions/AnonymousInnerClassMayBeStatic.html new file mode 100644 index 000000000..1c48bd5ec --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AnonymousInnerClassMayBeStatic.html @@ -0,0 +1,34 @@ + + +报告可以安全地替换为 static 内部类的匿名类。 +如果某个匿名类没有从周围方法显式引用其封闭实例或局部类,则它可能是 static 内部类。 +

+static 内部类不保留对其封闭实例的隐式引用。 +这可以防止常见的内存泄漏,并减少每个类实例使用的内存。 +

+

该快速修复会将匿名类提取到命名的 static 内部类中。

+

示例:

+

+  void sample(){
+    Thread thread = new Thread(new Runnable() {
+      @Override
+      public void run() {
+      }
+    });
+  }
+
+

在应用快速修复后:

+

+  void sample() {
+    Thread thread = new Thread(new Task());
+  }
+
+  private static class Task implements Runnable {
+    @Override
+    public void run() {
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AntDuplicateTargetsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/AntDuplicateTargetsInspection.html new file mode 100644 index 000000000..e593e9713 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AntDuplicateTargetsInspection.html @@ -0,0 +1,11 @@ + + + + + + +
+ 报告当前构建文件中的重复 targets。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AntMissingPropertiesFileInspection.html b/original-plugin-raw/zh/inspectionDescriptions/AntMissingPropertiesFileInspection.html new file mode 100644 index 000000000..caca80679 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AntMissingPropertiesFileInspection.html @@ -0,0 +1,11 @@ + + + + + + +
+ 报告缺失的 .properties 文件。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AntResolveInspection.html b/original-plugin-raw/zh/inspectionDescriptions/AntResolveInspection.html new file mode 100644 index 000000000..42e3ae369 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AntResolveInspection.html @@ -0,0 +1,11 @@ + + + + + + +
+ 报告无法解析的属性和自定义类型定义上的未解析引用。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ApiStatus.html b/original-plugin-raw/zh/inspectionDescriptions/ApiStatus.html new file mode 100644 index 000000000..1628790f5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ApiStatus.html @@ -0,0 +1,6 @@ + + +报告 internal/scheduledForRemoval/experimental 符号用法。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AppEngineForbiddenCode.html b/original-plugin-raw/zh/inspectionDescriptions/AppEngineForbiddenCode.html new file mode 100644 index 000000000..0eb65f847 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AppEngineForbiddenCode.html @@ -0,0 +1,7 @@ + + +报告在 Google App Engine 应用程序中被禁止的代码。 +

不允许 Google App Engine Java 应用程序使用某些 API(例如 Thread 的类构造函数)并声明本机方法。 + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/AppEngineThreadsafeCGIHandlerInspection.html b/original-plugin-raw/zh/inspectionDescriptions/AppEngineThreadsafeCGIHandlerInspection.html new file mode 100644 index 000000000..0069daa9d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AppEngineThreadsafeCGIHandlerInspection.html @@ -0,0 +1,5 @@ + + +

报告未通过 CGI 处理程序启用 threadsafe 的情况。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/AppEngineThreadsafeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/AppEngineThreadsafeInspection.html new file mode 100644 index 000000000..54774dfd8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AppEngineThreadsafeInspection.html @@ -0,0 +1,5 @@ + + +报告 threadsafe 不存在或未设置为 yesno 的情况。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ApparentResultTypeRefinement.html b/original-plugin-raw/zh/inspectionDescriptions/ApparentResultTypeRefinement.html new file mode 100644 index 000000000..10fa0446e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ApparentResultTypeRefinement.html @@ -0,0 +1,16 @@ + + +

报告结果类型和函数体之间缺少 =

+

当用作函数的结果类型时,不能细化类型。 + 但是,当结果类型和函数体之间缺少 = 时,它可能看起来很精致。

+

示例:

+

+  def test(): T {}
+
+

在应用快速修复后

+

+  def test(): T = {}
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AppliedTypeLambdaCanBeSimplified.html b/original-plugin-raw/zh/inspectionDescriptions/AppliedTypeLambdaCanBeSimplified.html new file mode 100644 index 000000000..62dd06022 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AppliedTypeLambdaCanBeSimplified.html @@ -0,0 +1,13 @@ + +

报告可以简化的类型。

+

示例:

+

+  def test: ({type l[a] = Either[String, a]})#l[Int] = ???
+
+

在应用快速修复后:

+

+  def test: Either[String, Int] = ???
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AppropriateActorConstructorNotFound.html b/original-plugin-raw/zh/inspectionDescriptions/AppropriateActorConstructorNotFound.html new file mode 100644 index 000000000..c6b5a5e94 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AppropriateActorConstructorNotFound.html @@ -0,0 +1,12 @@ + + +

报告缺少合适的 actor 构造函数的情况。

+

示例:

+

+  import akka.actor._
+  
+  Props(classOf[ActorImpl])
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ApproximateMatchIncorrectResolve.html b/original-plugin-raw/zh/inspectionDescriptions/ApproximateMatchIncorrectResolve.html new file mode 100644 index 000000000..51a82447f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ApproximateMatchIncorrectResolve.html @@ -0,0 +1,7 @@ + + +检测大致正确的解析(大致正确解析表示 RM 解析和运行时解析 80% 匹配)。 +本检查仅用于测试。 并且需要包含有关正确解析信息的特殊文件。 +对于该检查,此文件必须位于此处:/tmp/ApproximateMatchIncorrectResolve.txt + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArgNamesErrorsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ArgNamesErrorsInspection.html new file mode 100644 index 000000000..c22baef58 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArgNamesErrorsInspection.html @@ -0,0 +1,5 @@ + + +如果 @AspectJ argNames 特性值与实际方法形参名称不一致,则报告。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArgNamesWarningsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ArgNamesWarningsInspection.html new file mode 100644 index 000000000..107fe404a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArgNamesWarningsInspection.html @@ -0,0 +1,6 @@ + + +如果未在 @AspectJ 注解中定义 argNames 特性,则报告。 +

建议在 @AspectJ 注解中定义 argNames 特性,因为方法形参名称在运行时可能不可用。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArgumentSelectionDefects.html b/original-plugin-raw/zh/inspectionDescriptions/ArgumentSelectionDefects.html new file mode 100644 index 000000000..1a4c00cea --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArgumentSelectionDefects.html @@ -0,0 +1,22 @@ + + +报告实参标识符名称和形参名称之间的不匹配。 +这可以帮助检测编程错误,例如,当您意外切换同一类型的实参时。 +原始研究论文可在此处找到。 +

示例:

+

+  const User* get_User(int64_t company_id, int64_t user_id) {
+    return new User{company_id, user_id, "foo"};
+  }
+
+  void call_User(int64_t company_id, int64_t user_id) {
+    const User* user = get_User(user_id, company_id); // 此处有潜在问题
+    //...
+  }
+
+ +

使用下面的复选框可以检查名称少于三个符号的实参。

+

了解更多。

+

2018.2 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AroundAdviceStyleInspection.html b/original-plugin-raw/zh/inspectionDescriptions/AroundAdviceStyleInspection.html new file mode 100644 index 000000000..f653664d2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AroundAdviceStyleInspection.html @@ -0,0 +1,14 @@ + + +

在使用 @Around 建议时,请记住两点: +

    +
  • 需要调用 org.aspectj.lang.ProceedingJoinPoint#proceed,否则调用将无法到达目标。
  • +
  • 需要返回该调用的结果值(类型化 java.lang.Object),否则返回值永远不会到达原始调用方。
  • +
+

不过,以下两种状况几乎始终表明存在编码错误:

+

    +
  • @Around 方法的签名未使用 ProceedingJoinPoint 作为第一个实参:在这种情况下,调用无法到达目标。
  • +
  • @Around 方法的签名未使用 Object 作为返回类型:在这种情况下,目标方法的返回值总是丢失。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArquillianClassEnabled.html b/original-plugin-raw/zh/inspectionDescriptions/ArquillianClassEnabled.html new file mode 100644 index 000000000..5cdf96a90 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArquillianClassEnabled.html @@ -0,0 +1,10 @@ + + +

报告未准备好使用 Arquillian 进行测试的测试类。

+

+ 根据 Arquillian 文档,测试类应被注解为 @RunWith(Arquillian.class)(对于 Arquillian 的 JUnit 版本)或从 org.jboss.arquillian.testng.Arquillian 类继承(对于 Arquillian 的 TestNG 版本)。 +

+ +

该快速修复要么声明测试类 abstract,要么使其符合要求。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArquillianDeploymentAbsent.html b/original-plugin-raw/zh/inspectionDescriptions/ArquillianDeploymentAbsent.html new file mode 100644 index 000000000..07e4fbb29 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArquillianDeploymentAbsent.html @@ -0,0 +1,38 @@ + + +

报告没有部署的 Arquillian 测试用例类。

+

+ 根据 Arquillian 文档,Arquillian 测试类应该使用具有特定签名的 public static 方法定义部署归档,并使用 @Deployment 注解。 +

+

该快速修复会根据用户可编辑的 Arquillian 部署方法代码模板添加所需方法。

+ +

示例:

+

+  // 此测试用例无法被 Arquillian 启动
+  @RunWith(Arquillian.class)
+  public class SomeTest {
+    @Test
+    public void testSomething() {
+      Assert.fail("To be implemented");
+    }
+  }
+
+

在应用快速修复后:

+

+  @RunWith(Arquillian.class)
+  public class SomeTest {
+    // 通过快速修复添加
+    @Deployment
+    public static JavaArchive ${DEPLOYMENT_NAME}() {
+      return ShrinkWrap.create(JavaArchive.class)
+                       .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
+    }
+
+    @Test
+    public void testSomething() {
+      Assert.fail("To be implemented");
+    }
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArquillianDeploymentReturnType.html b/original-plugin-raw/zh/inspectionDescriptions/ArquillianDeploymentReturnType.html new file mode 100644 index 000000000..a46b10ca1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArquillianDeploymentReturnType.html @@ -0,0 +1,42 @@ + + +

报告使用 @Deployment 注解的方法的不正确返回类型。

+

+ 根据 Arquillian 文档,使用 @Deployment 注解的方法必须具有从 ShrinkWrap Archive 继承的返回类型。 +

+ +

示例:

+

+  // 此测试用例无法被 Arquillian 启动
+  @RunWith(Arquillian.class)
+  public class SomeTest {
+    @Deployment
+    public static ZipFile createDeployment() {
+      throw new UnsupportedOperationException("Implement me");
+    }
+
+    @Test
+    public void testSomething() {
+      Assert.fail("To be implemented");
+    }
+  }
+
+

在应用快速修复后:

+

+  import org.jboss.shrinkwrap.api.Archive;
+
+  @RunWith(Arquillian.class)
+  public class SomeTest {
+    @Deployment
+    public static Archive createDeployment() {
+      throw new UnsupportedOperationException("Implement me");
+    }
+
+    @Test
+    public void testSomething() {
+      Assert.fail("To be implemented");
+    }
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArquillianDeploymentSignature.html b/original-plugin-raw/zh/inspectionDescriptions/ArquillianDeploymentSignature.html new file mode 100644 index 000000000..bb59b3fe6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArquillianDeploymentSignature.html @@ -0,0 +1,40 @@ + + +

报告使用 @Deployment 注解的方法的不正确签名。

+

+ 根据 Arquillian 文档,Arquillian 测试类应该使用具有特定签名的 public static 方法定义部署归档,并使用 @Deployment 注解。 +

+ +

示例:

+

+  //此测试用例无法被 Arquillian 启动,Deployment 方法不为 static
+  @RunWith(Arquillian.class)
+  public class SomeTest {
+    @Deployment
+    public JavaArchive createDeployment() {
+      throw new UnsupportedOperationException("Implement me");
+    }
+
+    @Test
+    public void testSomething() {
+      Assert.fail("To be implemented");
+    }
+  }
+
+

在应用快速修复后:

+

+  @RunWith(Arquillian.class)
+  public class SomeTest {
+    @Deployment
+    public static JavaArchive createDeployment() {
+      throw new UnsupportedOperationException("Implement me");
+    }
+
+    @Test
+    public void testSomething() {
+      Assert.fail("To be implemented");
+    }
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArquillianTooManyDeployment.html b/original-plugin-raw/zh/inspectionDescriptions/ArquillianTooManyDeployment.html new file mode 100644 index 000000000..02a5b2dd9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArquillianTooManyDeployment.html @@ -0,0 +1,8 @@ + + +

报告定义多个部署的 Arquillian 测试用例类。

+

+ 根据 Arquillian 文档,Arquillian 测试类应使用具有特定签名的 public static 方法定义部署归档,并使用 @Deployment 注解。 每个测试用例应该有一个部署,计算测试用例超类中定义的方法。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArrayCanBeReplacedWithEnumValues.html b/original-plugin-raw/zh/inspectionDescriptions/ArrayCanBeReplacedWithEnumValues.html new file mode 100644 index 000000000..59a03bdfd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArrayCanBeReplacedWithEnumValues.html @@ -0,0 +1,19 @@ + + +报告可以替换为 EnumType.values() 调用的枚举常量数组。 +

通常,在更新这样一个枚举时,您必须同时更新数组。 但是,如果您改用 EnumType.values(),则无需修改。

+

示例:

+

+  enum States {
+     NOT_RUN, IN_PROGRESS, FINISHED;
+  }
+  
+  handleStates(new States[] {NOT_RUN, IN_PROGRESS, FINISHED});
+
+

在应用快速修复后:

+

+  handleStates(States.values());
+
+

2019.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArrayCreationWithoutNewKeyword.html b/original-plugin-raw/zh/inspectionDescriptions/ArrayCreationWithoutNewKeyword.html new file mode 100644 index 000000000..607d38274 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArrayCreationWithoutNewKeyword.html @@ -0,0 +1,13 @@ + + +报告没有 new 数组表达式的数组初始化器并建议添加它们。 +

示例:

+

+  int[] a = {42}
+
+

在应用快速修复后:

+

+  int[] a = new int[]{42}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArrayEquality.html b/original-plugin-raw/zh/inspectionDescriptions/ArrayEquality.html new file mode 100644 index 000000000..e9dca6f65 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArrayEquality.html @@ -0,0 +1,22 @@ + + +报告用于测试数组相等性的运算符 ==!=。 +在大多数情况下,如果原本就要测试数组内容的相等性,可以通过 java.util.Arrays.equals() 方法来完成。 +

+ 建议通过快速修复将 == 替换为 java.util.Arrays.equals()。 +

+

示例:

+

+  void foo(Object[] x, Object[] y) {
+    boolean comparison = x == y;
+  }
+
+

在应用快速修复后:

+

+  void foo(Object[] x, Object[] y) {
+    boolean comparison = Arrays.equals(x, y);
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArrayEquals.html b/original-plugin-raw/zh/inspectionDescriptions/ArrayEquals.html new file mode 100644 index 000000000..34612ee69 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArrayEquals.html @@ -0,0 +1,20 @@ + + +报告可以比较两个数组的 equals() 调用。 +

对数组调用 equals() 可以比较同一性,相当于使用 ==。 + 使用 Arrays.equals() 比较两个数组的内容,或使用 Arrays.deepEquals() 比较多维数组的内容。

+

示例:

+

+  void sample(int[] first, int[] second){
+    if (first.equals(second)) return;
+  }
+
+

在应用快速修复后:

+

+  void sample(int[] first, int[] second){
+    if (Arrays.equals(first, second)) return;
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArrayHashCode.html b/original-plugin-raw/zh/inspectionDescriptions/ArrayHashCode.html new file mode 100644 index 000000000..8bd454762 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArrayHashCode.html @@ -0,0 +1,13 @@ + + +报告数组的不正确哈希代码计算。 +

为正确计算数组的哈希代码,请执行以下操作:

+
    +
  • 为线性数组使用 Arrays.hashcode()
  • +
  • 为多维数组使用 Arrays.deepHashcode()
  • +
+当输入值序列包含数组时,例如 Objects.hash(string, Arrays.hashcode(array)),这些方法还应与 Objects.hash() 一起使用: + +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArrayInDataClass.html b/original-plugin-raw/zh/inspectionDescriptions/ArrayInDataClass.html new file mode 100644 index 000000000..f859b133c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArrayInDataClass.html @@ -0,0 +1,33 @@ + + +报告 data 类中类型为 Array 但没有被重写的 equals()hashCode() 的属性。 +

+ 数组形参通过引用相等进行了比较,这可能是一种意外行为。 + 在此类情况下,强烈建议重写 equals()hashCode()。 +

+

示例:

+

+  data class Text(val lines: Array<String>)
+
+

该快速修复会生成缺失的 equals()hashCode() 实现:

+

+  data class Text(val lines: Array<String>) {
+      override fun equals(other: Any?): Boolean {
+          if (this === other) return true
+          if (javaClass != other?.javaClass) return false
+
+          other as Text
+
+          if (!lines.contentEquals(other.lines)) return false
+
+          return true
+      }
+
+      override fun hashCode(): Int {
+          return lines.contentHashCode()
+      }
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArrayIssues.html b/original-plugin-raw/zh/inspectionDescriptions/ArrayIssues.html new file mode 100644 index 000000000..7a88f63c8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArrayIssues.html @@ -0,0 +1,5 @@ + + +报告不正确的数组用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArrayLengthInLoopCondition.html b/original-plugin-raw/zh/inspectionDescriptions/ArrayLengthInLoopCondition.html new file mode 100644 index 000000000..3d9852f6b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArrayLengthInLoopCondition.html @@ -0,0 +1,16 @@ + + +报告对循环语句条件部分中数组的 .length 属性的访问。 在资源高度受限的环境中,此类调用可能会对性能产生不利影响。 +

+ 此检查适用于 Java ME 和其他资源高度受限的环境。 + 不加考虑地应用此检查的结果可能会对代码清晰度和设计产生负面影响。 +

+

示例:

+

+  void foo(Object[] x) {
+    for (int i = 0; i < x.length; i++) { /**/ }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArrayObjectsEquals.html b/original-plugin-raw/zh/inspectionDescriptions/ArrayObjectsEquals.html new file mode 100644 index 000000000..7229066f4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArrayObjectsEquals.html @@ -0,0 +1,13 @@ + + +报告似乎使用不当方法来确定数组相等性或计算其哈希代码的表达式。 +

报告的方法调用如下:

+
    +
  • 针对任何数组,报告 Object.equals()
  • +
  • 针对多维数组,报告 Arrays.equals()
  • +
  • 针对多维数组,报告 Arrays.hashCode()
  • +
+ +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ArraysAsListWithZeroOrOneArgument.html b/original-plugin-raw/zh/inspectionDescriptions/ArraysAsListWithZeroOrOneArgument.html new file mode 100644 index 000000000..1936197ff --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ArraysAsListWithZeroOrOneArgument.html @@ -0,0 +1,22 @@ + + +报告对最多包含一个实参的 Arrays.asList() 的调用。 +

+ 在 JDK 9 及更高版本中,此类调用可以替换为 Collections.singletonList()Collections.emptyList()List.of(),从而节省内存。

+

特别是,无实参的 Collections.emptyList()List.of() 总是返回共享实例,而无实参的 Arrays.asList() 每次调用时都会创建一个新对象。

+

注意:Collections.singletonList()List.of() 返回的列表不可变,而列表返回的 Arrays.asList() 允许调用 set() 方法。 +这在极少数情况下可能会破坏代码。

+

示例:

+

+  List<String> empty = Arrays.asList();
+  List<String> one = Arrays.asList("one");
+
+

在应用快速修复后:

+

+  List<String> empty = Collections.emptyList();
+  List<String> one = Collections.singletonList("one");
+
+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssertBetweenInconvertibleTypes.html b/original-plugin-raw/zh/inspectionDescriptions/AssertBetweenInconvertibleTypes.html new file mode 100644 index 000000000..c0eba4485 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssertBetweenInconvertibleTypes.html @@ -0,0 +1,15 @@ + + +报告“预期”实参和“实际”实参的类型不兼容时对断言方法的调用。 +

此类调用通常表明测试中存在错误。 + 该检查会检查相关的 JUnit、TestNG 和 AssertJ 方法。

+

示例:

+

+  assertEquals("1", 1);
+  assertNotSame(new int[0], 0);
+
+  // 弱警告,可能只测试 equals() 约定
+  assertThat(foo).as("user type").isNotEqualTo(bar);
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssertEqualsCalledOnArray.html b/original-plugin-raw/zh/inspectionDescriptions/AssertEqualsCalledOnArray.html new file mode 100644 index 000000000..2dc821cf7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssertEqualsCalledOnArray.html @@ -0,0 +1,27 @@ + + +报告带有数组类型实参的 JUnit assertEquals() 调用。 +此类方法会比较数组的标识,而不是数组的内容。 +应使用 assertArrayEquals() 方法检查数组内容。 +

示例:

+

+  @Test
+  public void testSort() {
+    int[] actual = {248, 496, 0, 56};
+    Arrays.sort(actual);
+    Assert.assertEquals(new int[] {0, 56, 248, 496}, actual);
+  }
+
+

在应用快速修复后:

+

+  @Test
+  public void testSort() {
+    int[] actual = {248, 496, 0, 56};
+    Arrays.sort(actual);
+    Assert.assertArrayEquals(new int[] {0, 56, 248, 496}, actual);
+  }
+
+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssertEqualsMayBeAssertSame.html b/original-plugin-raw/zh/inspectionDescriptions/AssertEqualsMayBeAssertSame.html new file mode 100644 index 000000000..46decb32f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssertEqualsMayBeAssertSame.html @@ -0,0 +1,24 @@ + + +报告可以替换为等效 assertSame() 调用的 JUnit assertEquals() 调用。 +当实参是不重写 Object.equals() 方法并显式比较对象标识的 final 类的实例时,可能发生这种情况。 +

建议将 assertEquals() 替换为 assertSame()

+

示例:

+

+  @Test
+  public void testObjectType() {
+    Object o = getObject();
+    Assert.assertEquals(String.class, o.getClass());
+  }
+
+

在应用快速修复后:

+

+  @Test
+  public void testSort() {
+    Object o = getObject();
+    Assert.assertSame(String.class, o.getClass());
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssertMessageNotString.html b/original-plugin-raw/zh/inspectionDescriptions/AssertMessageNotString.html new file mode 100644 index 000000000..4f0a26857 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssertMessageNotString.html @@ -0,0 +1,16 @@ + + +报告非 java.lang.String 类型的 assert 消息。 +

使用字符串可以提供更多信息,有助于诊断失败或断言原因。

+

示例:

+

+  void foo(List<Integer> myList) {
+    assert myList.isEmpty() : false;
+  }
+
+ +

+使用仅当 assert 消息为 'boolean' 或 'java.lang.Boolean' 时发出警告选项可以仅在 assert 消息类型为 booleanjava.lang.Boolean 时发出警告。 +boolean 详细消息不太可能提供有关断言失败的其他信息,可能是由于错误输入 : 而不是 & 所致。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssertStatement.html b/original-plugin-raw/zh/inspectionDescriptions/AssertStatement.html new file mode 100644 index 000000000..5488f43af --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssertStatement.html @@ -0,0 +1,9 @@ + + +报告 assert 语句。 默认情况下,在生产环境中执行期间禁用 assert 语句。 可以考虑改用记录器或异常。 +

Java 1.3 和更早版本的 JVM 不支持 assert 语句。

+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssertWithSideEffects.html b/original-plugin-raw/zh/inspectionDescriptions/AssertWithSideEffects.html new file mode 100644 index 000000000..7c9a24a77 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssertWithSideEffects.html @@ -0,0 +1,11 @@ + + +报告导致副作用的 assert 语句。 +

+ 由于断言可能关闭,无法保证这些副作用,这可能导致难以捉摸的错误。 此检查检测到的不受欢迎的常见副作用是变量和字段修改。 涉及到方法调用时,将对它们进行一级深入分析。

+

示例:

+

+  assert i++ < 10;
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssertWithoutMessage.html b/original-plugin-raw/zh/inspectionDescriptions/AssertWithoutMessage.html new file mode 100644 index 000000000..89b3f5984 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssertWithoutMessage.html @@ -0,0 +1,17 @@ + + +报告对没有错误消息字符串实参的 assertXXX()fail() 的调用。 +有关断言失败的错误消息可能有助于澄清测试用例的意图。 +

示例:

+

+  assertTrue(checkValid());
+
+

在应用快速修复后:

+
assertTrue(checkValid(), "|");
+

+ 消息实参根据所使用的断言框架添加到现有实参前面或后面。 +

+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssertionCanBeIf.html b/original-plugin-raw/zh/inspectionDescriptions/AssertionCanBeIf.html new file mode 100644 index 000000000..b5a4fb44a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssertionCanBeIf.html @@ -0,0 +1,15 @@ + + +报告 assert 语句并建议将它们替换为抛出 java.lang.AssertionErrorif 语句。 +

示例:

+

+  assert param != null;
+
+

在应用快速修复后:

+

+  if (param == null) throw new AssertionError();
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssignmentOrReturnOfFieldWithMutableType.html b/original-plugin-raw/zh/inspectionDescriptions/AssignmentOrReturnOfFieldWithMutableType.html new file mode 100644 index 000000000..6b2d9c4b0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssignmentOrReturnOfFieldWithMutableType.html @@ -0,0 +1,42 @@ + + +报告从方法形参到数组或可变类型(如 CollectionDateMapCalendar 等)的返回或赋值 +

由于这种类型是可变的,此结构可能会导致来自所属类之外的对象状态发生意外修改。 尽管出于性能原因,此结构可能很有用,但它本质上很容易出现错误。

+

报告了以下可变类型:

+
    +
  • java.util.Date
  • +
  • java.util.Calendar
  • +
  • java.util.Collection
  • +
  • java.util.Map
  • +
  • com.google.common.collect.Multimap
  • +
  • com.google.common.collect.Table
  • +
+

该快速修复会添加对字段的 .clone() 方法的调用。

+

示例:

+

+  class Log {
+    String[] messages;
+    ...
+
+    String[] getMessages() {
+      return messages; // 警告:返回 String[] 字段 'messages'
+    }
+  }
+
+

在应用快速修复后:

+

+  class Log {
+    String[] messages;
+    ...
+
+    String[] getMessages() {
+      return messages.clone();
+    }
+  }
+
+ +

使用忽略 private 方法中的赋值和返回值选项可忽略 private方法中的赋值和返回值。 + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssignmentResultUsedJS.html b/original-plugin-raw/zh/inspectionDescriptions/AssignmentResultUsedJS.html new file mode 100644 index 000000000..22149f303 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssignmentResultUsedJS.html @@ -0,0 +1,8 @@ + + +报告赋值结果在包含其的表达式中使用的赋值表达式。 此类赋值通常表明有编码错误,例如,应是 = 而不是 ==。 +此外,它们可能会由于运算顺序而导致混淆, +因为赋值的求值可能会以意想不到的方式影响外部表达式。 +

将忽略圆括号中的表达式。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssignmentToCatchBlockParameter.html b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToCatchBlockParameter.html new file mode 100644 index 000000000..4cfcad5c0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToCatchBlockParameter.html @@ -0,0 +1,37 @@ + + +报告对 catch 块形参的赋值。 +

更改 catch 块形参很容易令人困惑,不建议使用。

+

该快速修复会添加新变量的声明。

+

示例:

+

+  void processFile(String fileName) throws Exception {
+    try {
+      doProcessFile(fileName);
+    } catch(Exception ex) {
+      if (ex instanceof UncheckedIOException) {
+        // Warning: catch block parameter reassigned
+        ex = ((UncheckedIOException) ex).getCause();
+      }
+      throw ex;
+    }
+  }
+
+

在应用快速修复后:

+

+  void processFile(String fileName) throws Exception {
+    try {
+      doProcessFile(fileName);
+    } catch(Exception ex) {
+      Exception unwrapped = ex;
+      if (unwrapped instanceof UncheckedIOException) {
+        unwrapped = ((UncheckedIOException)
+          unwrapped).getCause();
+      }
+      throw unwrapped;
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssignmentToForLoopParameter.html b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToForLoopParameter.html new file mode 100644 index 000000000..9fc7e6e11 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToForLoopParameter.html @@ -0,0 +1,38 @@ + + +报告对循环体内 for 循环形参的赋值或修改。 +

虽然偶尔是有意为之,但此结构可能令人困惑,通常是由拼写错误或使用错误变量引起。

+

该快速修复会添加新变量的声明。

+

示例:

+

+  for (String s : list) {
+    // 警告:s 在循环内被更改
+    s = s.trim();
+    System.out.println("String: " + s);
+  }
+
+

在应用快速修复后:

+

+  for (String s : list) {
+    String trimmed = s.trim();
+    System.out.println("String: " + trimmed);
+  }
+
+

不报告没有 update 语句的基本 for 循环中的赋值。 + 在此类情况下,赋值很可能是预期的,不能轻易移动到 for 循环的更新部分。

+

示例:

+

+  for (int i = 0; i < list.size(); ) {
+    if (element.equals(list.get(i))) {
+      list.remove(i);
+    } else {
+      // 因为没有 update 语句
+      // 所以不报告 for 循环形参的修改
+      i++;
+    }
+  }
+
+ +

使用检查增强型 'for' 循环形参选项可指定是否还应报告增强的 for 循环形参的修改。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssignmentToForLoopParameterJS.html b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToForLoopParameterJS.html new file mode 100644 index 000000000..bd872af2a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToForLoopParameterJS.html @@ -0,0 +1,6 @@ + + +报告对声明为 for 循环形参的变量的赋值。 +虽然偶尔是有意为之,但此结构可能格外令人困惑,并且通常是由错误所致。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssignmentToFunctionParameterJS.html b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToFunctionParameterJS.html new file mode 100644 index 000000000..ba0733ea0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToFunctionParameterJS.html @@ -0,0 +1,6 @@ + + +报告对函数形参的赋值,包括递增和递减运算。 +虽然偶尔是有意为之,但此结构可能格外令人困惑,并且通常是由错误所致。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssignmentToLambdaParameter.html b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToLambdaParameter.html new file mode 100644 index 000000000..dfb3886a8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToLambdaParameter.html @@ -0,0 +1,23 @@ + + +报告对 lambda 形参的赋值或修改。 +虽然偶尔是有意为之,但此结构可能令人困惑,通常是由拼写错误或使用错误变量所致。 +

该快速修复会添加新变量的声明。

+

示例:

+

+  list.forEach(s -> {
+    s = s.trim();
+    System.out.println("String: " + s);
+  });
+
+

在应用快速修复后:

+

+  list.forEach(s -> {
+    String trimmed = s.trim();
+    System.out.println("String: " + trimmed);
+  });
+
+ +

使用如果赋值是原始形参的转换,则忽略选项可以忽略根据先前值修改形参值的赋值。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssignmentToMethodParameter.html b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToMethodParameter.html new file mode 100644 index 000000000..de87544be --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToMethodParameter.html @@ -0,0 +1,25 @@ + + +报告对方法形参的赋值或修改。 +

虽然有时是有意为之,但此结构可能令人困惑,因此在一些 Java 项目中被禁止使用。

+

该快速修复会添加新变量的声明。

+

示例:

+

+  void printTrimmed(String s) {
+    s = s.trim();
+    System.out.println(s);
+  }
+
+

在应用快速修复后:

+

+  void printTrimmed(String s) {
+    String trimmed = s.trim();
+    System.out.println(trimmed);
+  }
+
+ +

+ 使用如果赋值是原始形参的转换,则忽略选项可忽略根据先前值修改形参值的赋值。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssignmentToNull.html b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToNull.html new file mode 100644 index 000000000..86fdf8128 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToNull.html @@ -0,0 +1,25 @@ + + +报告在声明外被赋值给 null 的变量。 +

Java 中 null 的主要用途是表示未初始化的引用变量。 在极少数情况下,将变量显式赋值给 null 有助于垃圾回收。 但是,使用 null 来表示缺失、未指定、无效值或找不到的元素被认为是一种不好的做法,可能会使您的代码更容易出现 NullPointerExceptions。 + 请改为考虑定义具有预期语义的 sentinel 对象或使用像 Optional 这样的库类型来表示没有值。

+

示例:

+

+  Integer convert(String s) {
+    Integer value;
+    try {
+      value = Integer.parseInt(s);
+    } catch (NumberFormatException e) {
+      // 警告:null 用于表示“无效值”
+      value = null;
+    }
+    return value;
+  }
+
+ +

+使用忽略对字段的赋值选项可忽略对字段的赋值。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssignmentToStaticFieldFromInstanceMethod.html b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToStaticFieldFromInstanceMethod.html new file mode 100644 index 000000000..242ff6c69 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToStaticFieldFromInstanceMethod.html @@ -0,0 +1,19 @@ + + +报告对实例方法中 static 字段的赋值或修改。 +

虽然合法,但此类赋值很难安全完成,并且通常是无意中将字段标记为 static 的结果。

+

示例:

+

+  class Counter {
+    private static int count = 0;
+
+    void increment() {
+      // 警告:从实例方法
+      // 更新 static 字段
+      count++;
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssignmentToSuperclassField.html b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToSuperclassField.html new file mode 100644 index 000000000..3f4a93746 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssignmentToSuperclassField.html @@ -0,0 +1,34 @@ + + +报告对超类中从子类构造函数中声明的字段的赋值或修改。 +

最好在其自己的构造函数中初始化超类的字段,并在子类中委托给该构造函数。 如果它在构造后没有改变,这还将允许声明一个字段 final

+

示例:

+

+  class Super {
+    int x;
+  }
+  class Sub extends Super {
+    Sub(int _x) {
+      // Warning: x is declared in a superclass
+      x = _x;
+    }
+  }
+
+

要避免此问题,请声明超类构造函数:

+

+  class Super {
+    final int x;
+
+    Super(int _x) {
+      x = _x;
+    }
+  }
+  class Sub extends Super {
+    Sub(int _x) {
+      super(_x);
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssignmentUsedAsCondition.html b/original-plugin-raw/zh/inspectionDescriptions/AssignmentUsedAsCondition.html new file mode 100644 index 000000000..2741e3fc6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssignmentUsedAsCondition.html @@ -0,0 +1,27 @@ + + +报告用作 ifwhilefor 或 +do 语句或条件表达式的赋值。 +

虽然有时是有意为之,但这种用法令人困惑,并且可能表明存在拼写错误(例如,应使用 = 而不是 ==)。

+

该快速修复会将 = 替换为 ==

+

示例:

+

+  void update(String str, boolean empty) {
+    // 警告:'empty' 被重新赋值,
+    // 不与 str.isEmpty() 进行比较
+    if (empty = str.isEmpty()) {
+      ...
+    }
+  }
+
+

在应用快速修复后:

+

+  void update(String str, boolean empty) {
+    if (empty == str.isEmpty()) {
+      ...
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AssociatedTypeMismatch.html b/original-plugin-raw/zh/inspectionDescriptions/AssociatedTypeMismatch.html new file mode 100644 index 000000000..e3d090697 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AssociatedTypeMismatch.html @@ -0,0 +1,6 @@ + + + 报告在其接口和实现中具有不同返回类型或形参类型的方法。 + 它还会报告采用/返回的类型与对应属性类型不同的 setter 和 getter。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AsyncMethodInspection.html b/original-plugin-raw/zh/inspectionDescriptions/AsyncMethodInspection.html new file mode 100644 index 000000000..0bf55653f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AsyncMethodInspection.html @@ -0,0 +1,10 @@ + + +

报告 @Async 方法的不正确返回类型。

+ +

对于目标方法签名,允许任何形参类型。 + 但是,返回类型应该是 voidFuture。 + 还可以返回更具体的 ListenableFutureCompletableFuture 类型,它们允许与异步任务进行更丰富的交互,并允许与进一步处理步骤立即组合。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AtomicFieldUpdaterIssues.html b/original-plugin-raw/zh/inspectionDescriptions/AtomicFieldUpdaterIssues.html new file mode 100644 index 000000000..0ad67b452 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AtomicFieldUpdaterIssues.html @@ -0,0 +1,24 @@ + + +报告 AtomicLongFieldUpdaterAtomicIntegerFieldUpdaterAtomicReferenceFieldUpdater 字段(java.util.concurrent.atomic 软件包)的问题。 +

报告的问题与原子字段更新程序可能发生的运行时问题相同:找不到指定字段、指定字段不可访问、指定字段类型错误等。

+

示例:

+
    +
  • 
    +  class A {
    +    private static volatile int value = 0;
    +    private static final AtomicIntegerFieldUpdater updater =
    +    AtomicIntegerFieldUpdater.newUpdater((A.class), "value"); // 警告:字段 'value' 具有 'static' 修饰符
    +  }
    +  
  • +
  • 
    +  class B {
    +    private static final AtomicIntegerFieldUpdater updater =
    +      AtomicIntegerFieldUpdater.newUpdater(B.class, "value"); // 警告:在类 'B' 中找不到名为 'Value' 的字段
    +  }
    +  
  • +
+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AtomicFieldUpdaterNotStaticFinal.html b/original-plugin-raw/zh/inspectionDescriptions/AtomicFieldUpdaterNotStaticFinal.html new file mode 100644 index 000000000..40dad34b8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AtomicFieldUpdaterNotStaticFinal.html @@ -0,0 +1,30 @@ + + +报告以下类型的字段: +

    +
  • java.util.concurrent.atomic.AtomicLongFieldUpdater
  • +
  • java.util.concurrent.atomic.AtomicIntegerFieldUpdater
  • +
  • java.util.concurrent.atomic.AtomicReferenceFieldUpdater
  • +
+其类型为 static final。 +因为在一个类的所有实例中,只需要一个原子字段更新程序来更新 volatile 字段,所以它几乎总是 static。 + +

使更新程序为 final,JVM 就能优化访问以提高性能。

+ +

示例:

+

+  class Main {
+    private volatile int id;
+    private AtomicIntegerFieldUpdater<Main> idFieldUpdater = AtomicIntegerFieldUpdater.newUpdater(Main.class, "id");
+  }
+
+

在应用快速修复后:

+

+  class Main {
+    private volatile int id;
+    private static final AtomicIntegerFieldUpdater<Main> idFieldUpdater = AtomicIntegerFieldUpdater.newUpdater(Main.class, "id");
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AutoBoxing.html b/original-plugin-raw/zh/inspectionDescriptions/AutoBoxing.html new file mode 100644 index 000000000..38b1a8b29 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AutoBoxing.html @@ -0,0 +1,12 @@ + + +报告受自动装箱转换(将基元值自动包装为对象)影响的表达式。 +尽量不使用对象,而是使用基元。 它可能会显著影响性能。 +

示例:

+
Integer x = 42;
+

该快速修复会将转换设为显式:

+
Integer x = Integer.valueOf(42);
+ +

Java 1.4 和更早版本的 JVM 不支持自动装箱转换。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AutoCloseableResource.html b/original-plugin-raw/zh/inspectionDescriptions/AutoCloseableResource.html new file mode 100644 index 000000000..88c8b9e13 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AutoCloseableResource.html @@ -0,0 +1,47 @@ + + +报告未在 try-with-resources 语句中使用的 AutoCloseable 实例,也称 自动资源管理。 +

+ 这意味着还报告在 try-with-resources 可用前使用的“在 try 前面/中打开资源,在 finally 中关闭资源”的样式。 + 在 Java 7 及更高版本中开发时,此检查意在取代所有已打开但未安全关闭的检查。 +

+

示例:

+

+  private static void foo() throws IOException {
+    InputStream profile = Thread.currentThread().getContextClassLoader().getResourceAsStream("/someFile");
+    System.out.println(profile.read());
+  }
+
+ +

+ 使用以下选项配置检查: +

+
    +
  • + 列出不需关闭并且此检查应当忽略的 AutoCloseable 的子类。 +
    + 注意:即便列出将忽略 java.util.stream.Stream,该检查仍将报告从 java.nio.file.Files 方法 lines()walk()list() 以及 find() 返回的流。 + 这些流包含需要关闭的关联 I/O 资源。 +
  • +
  • + 列出在调用时应被忽略的返回 AutoCloseable 的方法。 +
  • +
  • + 如果为方法调用的结果时是否忽略 AutoCloseable。 + 启用此选项时,工厂方法的结果也将被忽略。 +
  • +
  • + 当 AutoCloseable 实例作为方法调用实参传递时,该检查是否应报告。 + 如果启用此选项,该检查将假定所调用方法中的资源已关闭。 + 不会忽略名称中含有 'close' 的 finally 块和 AutoCloseable 实参中的方法调用。 +
  • +
  • + 是否忽略对资源类构造函数的方法引用。 +
  • +
  • + 是否忽略返回资源且名称以 'get' 开头的方法。 + 这可能会减少误报,因为大多数 getter 不转移资源的所有权,并且其调用点不负责关闭资源。 +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AutoTupling.html b/original-plugin-raw/zh/inspectionDescriptions/AutoTupling.html new file mode 100644 index 000000000..805a389ad --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AutoTupling.html @@ -0,0 +1,17 @@ + + +

报告可以转换为元组的逗号分隔实参。

+

如果没有合适的多实参方法但有一个合适的单实参方法,Scala 编译器会尝试将逗号分隔的实参转换为元组。 这种转换可能会破坏类型安全并导致意外结果。

+

示例:

+

+  def foo(a: Any) = {}
+  foo(1, 2)
+
+

在应用快速修复后:

+

+  def foo(a: Any) = {}
+  foo((1, 2))
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AutoUnboxing.html b/original-plugin-raw/zh/inspectionDescriptions/AutoUnboxing.html new file mode 100644 index 000000000..e5cd20ed5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AutoUnboxing.html @@ -0,0 +1,13 @@ + + +报告受拆箱转换(自动将对象解开为基元值)影响的表达式。 +尽量不使用对象,而是使用基元。 它可能会显著影响性能。 +

示例:

+
int x = new Integer(42);
+

该快速修复会将转换设为显式:

+
int x = new Integer(42).intValue();
+ +

Java 1.4 和更早版本的 JVM 不支持自动装箱转换。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AwaitNotInLoop.html b/original-plugin-raw/zh/inspectionDescriptions/AwaitNotInLoop.html new file mode 100644 index 000000000..f9db4fcf4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AwaitNotInLoop.html @@ -0,0 +1,25 @@ + + +报告没有在循环中调用的 java.util.concurrent.locks.Condition.await()。 +

+ await() 和相关方法通常用于挂起线程,直到某个条件变为 true 为止。 + 线程可能出于不同原因而被唤醒,因此应在 await() 调用返回后检查条件。 + 使用循环很容易做到这一点。 +

+

示例:

+

+  void acquire(Condition released) throws InterruptedException {
+    released.await();
+  }
+
+

优良的代码应类似于:

+

+  void acquire(Condition released) throws InterruptedException {
+    while (acquired) {
+      released.await();
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/AwaitWithoutCorrespondingSignal.html b/original-plugin-raw/zh/inspectionDescriptions/AwaitWithoutCorrespondingSignal.html new file mode 100644 index 000000000..9be9fa72f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/AwaitWithoutCorrespondingSignal.html @@ -0,0 +1,29 @@ + + +报告对无法为之找到相应 Condition.signal()Condition.signalAll() 调用的 Condition.await() 的调用。 +

+ 在没有相应 Condition.signal() 的线程中调用 Condition.await() 可能导致该线程被禁用,直到它被中断或发生“可疑唤醒”为止。 +

+

此检查仅报告以当前类的目标字段为目标的调用。

+

示例:

+

+  class Queue {
+    private final Condition isEmpty = ...;
+
+    void add(Object elem) {
+      // ...
+      // isEmpty.signal();
+      // ...
+    }
+
+    void remove(Object elem) throws InterruptedException {
+      // ...
+      isEmpty.await(); // 'await()' 不包含相应的 'signal()'/'signalAll()' 调用
+      // ...
+    }
+  }
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BadExceptionCaught.html b/original-plugin-raw/zh/inspectionDescriptions/BadExceptionCaught.html new file mode 100644 index 000000000..92a7b6dad --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BadExceptionCaught.html @@ -0,0 +1,16 @@ + + +报告捕获不适当异常的 catch 子句。 +

一些异常(例如 java.lang.NullPointerExceptionjava.lang.IllegalMonitorStateException)表示编程错误,因此几乎肯定不会在生产代码中被捕获。 +

示例:

+

+  try {
+    return component.getMousePosition(true) != null;
+  } catch (NullPointerException e) { // warning: Prohibited exception 'NullPointerException' caught
+    return false;
+  }
+
+ +

使用被禁止的异常列表可指定应报告哪些异常。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BadExceptionDeclared.html b/original-plugin-raw/zh/inspectionDescriptions/BadExceptionDeclared.html new file mode 100644 index 000000000..9cf19c599 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BadExceptionDeclared.html @@ -0,0 +1,16 @@ + + +报告在其 throws 子句中声明不适当异常的方法。 +例如,异常可能因为过于通用而不适当,例如 java.lang.Exceptionjava.lang.Throwable。 +

示例:

+

+  void describeModule(String module) throws Exception {} // 警告:声明了禁止的异常 'Exception'
+
+ +

配置检查:

+
    +
  • 使用被禁止的异常列表可指定应报告哪些异常。
  • +
  • 使用忽略在重写库方法的方法上声明的异常选项可忽略在重写库方法的方法上声明的异常。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BadExceptionThrown.html b/original-plugin-raw/zh/inspectionDescriptions/BadExceptionThrown.html new file mode 100644 index 000000000..e097350ae --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BadExceptionThrown.html @@ -0,0 +1,16 @@ + + +报告引发不适当异常的 throw 语句。 +例如,异常可能因为过于通用而不适当,例如 java.lang.Exceptionjava.io.IOException。 +

示例:

+

+  void setup(Mode mode) {
+      if (mode == null)
+          throw new RuntimeException("Problem during setup"); // 警告:抛出了禁止的异常 'RuntimeException'
+      ...
+  }
+
+ +

使用被禁止的异常列表可指定应报告哪些异常。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BadExpressionStatementJS.html b/original-plugin-raw/zh/inspectionDescriptions/BadExpressionStatementJS.html new file mode 100644 index 000000000..090500c88 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BadExpressionStatementJS.html @@ -0,0 +1,6 @@ + + +报告既非赋值也非调用的表达式语句。 +此类语句通常表明有错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BadOddness.html b/original-plugin-raw/zh/inspectionDescriptions/BadOddness.html new file mode 100644 index 000000000..703ee30b0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BadOddness.html @@ -0,0 +1,9 @@ + + +报告以下形式的奇偶校验:x % 2 == 1。 +当与负奇数一起使用时,此类检查将会失败。 +请考虑改用 x % 2 != 0(x & 1) == 1。 + +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BatchJobDomInspection.html b/original-plugin-raw/zh/inspectionDescriptions/BatchJobDomInspection.html new file mode 100644 index 000000000..50d1e2425 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BatchJobDomInspection.html @@ -0,0 +1,5 @@ + + +

报告通用批处理作业文件解析错误。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/BatchXmlDomInspection.html b/original-plugin-raw/zh/inspectionDescriptions/BatchXmlDomInspection.html new file mode 100644 index 000000000..e3e7cc73b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BatchXmlDomInspection.html @@ -0,0 +1,5 @@ + + +

报告一般 batch.xml 配置解析错误。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/BeforeClassOrAfterClassIsPublicStaticVoidNoArg.html b/original-plugin-raw/zh/inspectionDescriptions/BeforeClassOrAfterClassIsPublicStaticVoidNoArg.html new file mode 100644 index 000000000..860915483 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BeforeClassOrAfterClassIsPublicStaticVoidNoArg.html @@ -0,0 +1,23 @@ + + +报告未被声明为 publicstatic、不返回 void 或接受实参的 JUnit 4.0 @BeforeClass@AfterClass 方法。 +此类方法很容易无意间创建,但是 JUnit 测试运行程序不会执行这些方法。 +

示例:

+

+  public class MainTest {
+    @BeforeClass
+    String beforeClass(int i) {
+    }
+  }
+
+

应用快速修复后,该方法变为:

+

+  class MainTest {
+    @BeforeClass
+    public static void beforeClass() {
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BeforeOrAfterIsPublicVoidNoArg.html b/original-plugin-raw/zh/inspectionDescriptions/BeforeOrAfterIsPublicVoidNoArg.html new file mode 100644 index 000000000..1436a543d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BeforeOrAfterIsPublicVoidNoArg.html @@ -0,0 +1,14 @@ + + +报告未被声明为 public、不返回 void 或接受实参的 JUnit 4 @Before@After 方法。 此类方法很容易无意间创建,但是 JUnit 测试运行程序不会执行这些方法。 +

该检查会为方法签名提供修正。

+

示例:

+

+  @Before private int foo(int arg) { ... }
+
+

在应用快速修复后:

+

+  @Before public void foo() { ... }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BigDecimalEquals.html b/original-plugin-raw/zh/inspectionDescriptions/BigDecimalEquals.html new file mode 100644 index 000000000..8e8c6f86c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BigDecimalEquals.html @@ -0,0 +1,11 @@ + + +报告 .equals() 被调用以比较两个 java.math.BigDecimal 数字的情况。 +

这通常会是错误,因为两个 java.math.BigDecimal 数字只有在值和比例上都相等时才相等。

+

示例:

+
if (new BigDecimal("2.0").equals(new BigDecimal("2.00"))) {}
+

在应用快速修复后:

+
if (new BigDecimal("2.0").compareTo(new BigDecimal("2.00")) == 0) {}
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BigDecimalLegacyMethod.html b/original-plugin-raw/zh/inspectionDescriptions/BigDecimalLegacyMethod.html new file mode 100644 index 000000000..198cdb28c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BigDecimalLegacyMethod.html @@ -0,0 +1,12 @@ + + +报告对使用整数常量指定舍入模式的 BigDecimal.divide()BigDecimal.setScale() 的调用。 +自 JDK 1.5 起,可以考虑使用接受 RoundingMode enum 形参的方法。 +

示例:

+
new BigDecimal("42").setScale(2, BigDecimal.ROUND_FLOOR);
+

在应用快速修复后:

+
new BigDecimal("42").setScale(2, RoundingMode.FLOOR);
+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BigDecimalMethodWithoutRoundingCalled.html b/original-plugin-raw/zh/inspectionDescriptions/BigDecimalMethodWithoutRoundingCalled.html new file mode 100644 index 000000000..2709fba91 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BigDecimalMethodWithoutRoundingCalled.html @@ -0,0 +1,12 @@ + + +报告对没有舍入模式实参的 divide()setScale() 的调用。 +

在结果中不能表示精确值时(例如由于具有非终止十进制扩展),此类调用可能导致 ArithmeticException

+

指定舍入模式可防止 ArithmeticException

+

示例:

+

+  BigDecimal.valueOf(1).divide(BigDecimal.valueOf(3));
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BindingAnnotationWithoutInject.html b/original-plugin-raw/zh/inspectionDescriptions/BindingAnnotationWithoutInject.html new file mode 100644 index 000000000..83178467a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BindingAnnotationWithoutInject.html @@ -0,0 +1,8 @@ + + +

+ 报告没有匹配的 @Inject 注解的字段和形参上的绑定注解。 + Guice 会忽略此类注解。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BintrayPublishingPlugin.html b/original-plugin-raw/zh/inspectionDescriptions/BintrayPublishingPlugin.html new file mode 100644 index 000000000..f3bed9820 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BintrayPublishingPlugin.html @@ -0,0 +1,8 @@ + + +

检测 Gradle 插件 com.jfrog.bintray 的用法。 + 该插件用于将构建结果发布到 Bintray。 + 发布到 Bintray 服务已禁用。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BladeClosingSection.html b/original-plugin-raw/zh/inspectionDescriptions/BladeClosingSection.html new file mode 100644 index 000000000..10906464b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BladeClosingSection.html @@ -0,0 +1,5 @@ + + + 报告没有通过 @show@stop@overwrite 指令结束的 @section 指令。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BladeControlDirectives.html b/original-plugin-raw/zh/inspectionDescriptions/BladeControlDirectives.html new file mode 100644 index 000000000..457c32c7e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BladeControlDirectives.html @@ -0,0 +1,8 @@ + + + 报告未通过相应 @end... 指令结束的 Blade 控制指令。 +

+ 有关详细信息,请参阅 Blade 指令 (laravel.com) 。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/BlockMarkerComments.html b/original-plugin-raw/zh/inspectionDescriptions/BlockMarkerComments.html new file mode 100644 index 000000000..1e7c5b324 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BlockMarkerComments.html @@ -0,0 +1,19 @@ + + +报告用作代码块标记的注释。 +该快速修复会移除此类注释。 +

示例:

+

+  while (i < 10) {
+    i++;
+  } // end while
+
+

在应用快速修复后:

+

+  while (i < 10) {
+    i++;
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/BlockStatementJS.html b/original-plugin-raw/zh/inspectionDescriptions/BlockStatementJS.html new file mode 100644 index 000000000..375d590af --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BlockStatementJS.html @@ -0,0 +1,7 @@ + + +报告不用作 ifforwhiledo 、 +withtry 语句体,也不用作函数声明体的块语句。 从 ECMAScript 6 开始,JavaScript 块为 letconst 变量引入了新的范围, +但独立的块语句在与 var 变量一起使用时仍然会引起混淆,并导致难以捉摸的错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BlockingMethodInNonBlockingContext.html b/original-plugin-raw/zh/inspectionDescriptions/BlockingMethodInNonBlockingContext.html new file mode 100644 index 000000000..365cc4ba6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BlockingMethodInNonBlockingContext.html @@ -0,0 +1,36 @@ + + +报告不应阻塞线程的代码段中的线程阻塞方法调用。 + +

示例(项目 Reactor):

+

+Flux.just("1").flatMap(f -> {
+    Flux<String> just = loadUsersFromDatabase();
+    just.toIterable(); // 错误:在非阻塞范围内调用阻塞运算符
+    return just;
+  }
+);
+
+ +

考虑使用适当的计划程序(例如 Schedulers.boundedElastic())运行阻塞代码,或者尝试寻找替代的非阻塞 API。

+ +
+ +

示例(Kotlin 协同程序):

+

+suspend fun exampleFun() {
+    Thread.sleep(100); // 错误:在挂起函数中调用阻塞方法
+}
+
+ +

考虑使用特殊调度程序(例如 Dispatchers.IO)运行阻塞代码,或尝试寻找替代的非阻塞 API。

+ + +

配置检查:

+
    +
  • 阻塞注解列表中,指定标记线程阻塞方法的注解。
  • +
  • 无阻塞注解列表中,指定标记非阻塞方法的注解。
  • +
+

指定的注解可用作外部注解

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BooleanConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/BooleanConstructor.html new file mode 100644 index 000000000..f9f19d15d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BooleanConstructor.html @@ -0,0 +1,18 @@ + + +报告 Boolean 对象的创建情况。 +

+ 基本不必要创建新的 Boolean 对象,如果经常这样做,可能会导致性能问题。 此外,Boolean 构造函数自 Java 9 起已弃用,在未来的 Java 版本中可能会被移除或变得无法访问。

+

示例:

+

+  Boolean b1 = new Boolean(true);
+  Boolean b2 = new Boolean(str);
+
+

在应用快速修复后:

+

+  Boolean b1 = Boolean.TRUE;
+  Boolean b2 = Boolean.valueOf(str);
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BooleanExpressionMayBeConditional.html b/original-plugin-raw/zh/inspectionDescriptions/BooleanExpressionMayBeConditional.html new file mode 100644 index 000000000..c319d9f69 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BooleanExpressionMayBeConditional.html @@ -0,0 +1,16 @@ + + +报告任何能够以比使用条件表达式更紧凑、更清晰的方式来表述的 boolean 表达式。 +

使用该快速修复可以将 boolean 表达式替换为条件表达式。

+

示例:

+

+  a && b || !a && c;
+
+

在应用快速修复后:

+

+  a ? b : c;
+
+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BooleanLiteralArgument.html b/original-plugin-raw/zh/inspectionDescriptions/BooleanLiteralArgument.html new file mode 100644 index 000000000..238acc60a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BooleanLiteralArgument.html @@ -0,0 +1,26 @@ + + +报告类型为 Boolean 但未指定显式形参名称的调用实参。 +

+ 按顺序传递多个布尔文字时,很容易忘记形参顺序,这可能会导致错误。 + 显式形参名称让阅读和理解代码变得更容易。 +

+

示例:

+

+  fun check(checkName: Boolean, checkAddress: Boolean, checkPhone: Boolean) {}
+
+  fun usage() {
+      check(true, false, true) //这是什么意思?
+  }
+
+

该快速修复会添加缺少的形参名称:

+

+  fun check(checkName: Boolean, checkAddress: Boolean, checkPhone: Boolean) {}
+
+  fun usage() {
+      check(checkName = true, checkAddress = false, checkPhone = true)
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/BooleanMethodIsAlwaysInverted.html b/original-plugin-raw/zh/inspectionDescriptions/BooleanMethodIsAlwaysInverted.html new file mode 100644 index 000000000..145928100 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BooleanMethodIsAlwaysInverted.html @@ -0,0 +1,38 @@ + + +报告一个返回类型为 boolean 的方法,该方法仅在否定上下文中使用。 +

您可以使用快速修复来重命名方法和反转方法。 + 由于性能原因,某些方法可能不会在编辑器中高亮显示。

+

示例:

+

+  class C {
+    boolean alwaysTrue() {
+      return true;
+    }
+
+    void f() {
+      if (!alwaysTrue()) {
+        return;
+      }
+    }
+    boolean member = !alwaysTrue();
+  }
+
+

在应用快速修复后:

+

+  class C {
+    boolean alwaysFalse() {
+      return false;
+    }
+
+    void f() {
+      if (alwaysFalse()) {
+        return;
+      }
+    }
+    boolean member = alwaysFalse();
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/BooleanMethodNameMustStartWithQuestion.html b/original-plugin-raw/zh/inspectionDescriptions/BooleanMethodNameMustStartWithQuestion.html new file mode 100644 index 000000000..68f712d6e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BooleanMethodNameMustStartWithQuestion.html @@ -0,0 +1,19 @@ + + +报告名称不以疑问词开头的布尔方法。 +

此检查将忽略重写库方法的布尔方法。

+

示例:

+
boolean empty(List<String> list) {
+  return list.isEmpty();
+}
+

只能在编辑器中使用重命名此类方法的快速修复。

+ +

配置检查:

+
    +
  • 使用布尔方法名称前缀列表可指定布尔方法名称开头可以接受的疑问词。
  • +
  • 使用忽略具有 'java.lang.Boolean' 返回类型的方法选项,可忽略返回类型为 java.lang.Boolean 的方法。
  • +
  • 使用忽略 @&interface 中的布尔方法选项,可忽略注解返回类型 (@interface) 的布尔方法。
  • +
  • 使用忽略重写/实现 super 方法的方法选项,可忽略具有 super 方法的方法。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BooleanParameter.html b/original-plugin-raw/zh/inspectionDescriptions/BooleanParameter.html new file mode 100644 index 000000000..5be566072 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BooleanParameter.html @@ -0,0 +1,25 @@ + + +报告接受 boolean 形参的 public 方法。 +

如果某个 public 方法(API 的一部分)不是 setter,则向该方法添加 boolean 形参几乎始终是一种不好的做法。 +使用此类方法读取代码时,如果不查看源代码或文档,会很难理解 boolean 的含义。

+

此问题也被称为布尔陷阱。 + boolean 形参通常可以替换为 enum

+

示例:

+

+  // 警告:在查看对此方法的
+  // 调用时,很难理解
+  // 布尔形参的含义
+  public boolean setPermission(File f,
+                               int access,
+                               boolean enable,
+                               boolean ownerOnly) {
+    // ...
+  }
+
+ +

+使用仅报告具有多个布尔形参的方法选项可以仅在一个方法包含多个布尔形参时发出警告。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BooleanVariableAlwaysNegated.html b/original-plugin-raw/zh/inspectionDescriptions/BooleanVariableAlwaysNegated.html new file mode 100644 index 000000000..514eb57f7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BooleanVariableAlwaysNegated.html @@ -0,0 +1,14 @@ + + +报告使用其值时总是否定的布尔变量或字段。 + +

示例:

+

+      void m() {
+        boolean b = true; //始终反转布尔变量 'b'
+        System.out.println(!b);
+      }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BoundFieldAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/BoundFieldAssignment.html new file mode 100644 index 000000000..0a2c78621 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BoundFieldAssignment.html @@ -0,0 +1,6 @@ + + +报告绑定到 UI Designer 窗体中的组件的字段赋值。 +

此类赋值将导致 UI Designer 为此类字段生成的组件设置代码被忽略。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/BoundedWildcard.html b/original-plugin-raw/zh/inspectionDescriptions/BoundedWildcard.html new file mode 100644 index 000000000..4fc9ed40d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BoundedWildcard.html @@ -0,0 +1,63 @@ + + +报告可以使用有界通配符的通用方法形参。 +

示例:

+

+  void process(Consumer<Number> consumer);
+
+

应替换为:

+

+  void process(Consumer<? super Number> consumer);
+
+

+ 此方法签名更灵活,因为它接受更多类型:不仅是 Consumer<Number>,还有 Consumer<Object>。 +

+

同样,在协变位置输入形参:

+

+  T produce(Producer<T> p);
+
+

应替换为:

+

+  T produce(Producer<? extends T> p);
+
+ +

+ 引用 Effective Java 第三版中的 Joshua Bloch: +

+
+

第 31 项:使用有界通配符增加 API 灵活性

+ 在 API 中使用通配符类型虽然麻烦,但会使 API 更加灵活。 + 如果您编写的库将被广泛使用,则应强制正确使用通配符类型。 + 记住基本规则:生产者-extends, 使用者-super (PECS)。 + 还要记住,所有 Comparable 和 Comparator 都是消费者。 +
+ +

+ 使用检查选项可以切换以下各项的报告: +

+
    +
  • +

    + 不变类。 一个不变类的示例是 java.util.List<T>,因为它既接受值(通过 List.add(T) 方法)又生成值(通过 T List.get() 方法)。 +

    +

    + 另一方面,contravariant 类只接收值,例如,只有方法 accept(T)java.util.function.Consumer<T>。 类似地,covariant 类只产生值,例如,只有方法 T get()java.util.function.Supplier<T>。 +

    +

    + 人们经常在协变/逆变类中使用有界通配符,但避免在不变类中使用通配符,例如 void process(List<? extends T> l)。 + 禁用此选项可以忽略这种不变类并保留它们的严格类型,例如 void process(List<T> l)。 +

    +
  • +
  • +

    + 可视为不属于公共 API 一部分的 private 方法 +

    +
  • +
  • +

    + 实例方法 +

    +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BoxingBoxedValue.html b/original-plugin-raw/zh/inspectionDescriptions/BoxingBoxedValue.html new file mode 100644 index 000000000..982f954fa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BoxingBoxedValue.html @@ -0,0 +1,20 @@ + + +报告已装箱值的装箱。 +

+ 这是冗余的操作,因为任何装箱的值都会先自动拆箱,然后再次对该值装箱。 如果在内部循环中进行,此类代码可能会导致性能问题。 +

+ +

示例:

+

+  Integer value = 1;
+  method(Integer.valueOf(value));
+
+

在应用快速修复后:

+

+  Integer value = 1;
+  method(value);
+
+

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BpmnConfigDomInspection.html b/original-plugin-raw/zh/inspectionDescriptions/BpmnConfigDomInspection.html new file mode 100644 index 000000000..3471b00a3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BpmnConfigDomInspection.html @@ -0,0 +1,16 @@ + + +

报告不正确的 BPMN 2.0 XML 文件:

+ +
    +
  • 对不可实例化类的引用
  • +
  • 对不扩展所需类的类的引用
  • +
  • 对范围不适当的类的引用
  • +
  • 空标记和特性值
  • +
  • 与所需模式不匹配的标记和特性值(例如,Java 标识符)
  • +
  • 不包含必需子标记或特性的标记
  • +
  • 定义具有重复名称的对象的标记
  • +
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BreakStatement.html b/original-plugin-raw/zh/inspectionDescriptions/BreakStatement.html new file mode 100644 index 000000000..aa7882d4a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BreakStatement.html @@ -0,0 +1,18 @@ + + +报告在 switch 语句分支结尾以外的位置使用的 break 语句。 +

break 语句导致重构复杂化,可能令人困惑。

+

示例:

+

+void foo(List<String> strs) {
+  for (String str : strs) {
+    if (str.contains("stop")) break;
+    handleStr(str);
+  }
+}
+
+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BreakStatementJS.html b/original-plugin-raw/zh/inspectionDescriptions/BreakStatementJS.html new file mode 100644 index 000000000..2143a5041 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BreakStatementJS.html @@ -0,0 +1,5 @@ + + +报告 break 语句。 忽略结束 case 块的 break 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BreakStatementWithLabel.html b/original-plugin-raw/zh/inspectionDescriptions/BreakStatementWithLabel.html new file mode 100644 index 000000000..fa7db34ce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BreakStatementWithLabel.html @@ -0,0 +1,21 @@ + + +报告包含标签的 break 语句。 +

break 标签语句导致重构复杂化,可能令人困惑。

+

示例:

+

+  void handle(List<String> strs) {
+    outer:
+    for (String s: strs) {
+      for (char ch : s.toCharArray()) {
+        if ('s' == ch) break outer;
+        handleChar(ch);
+      }
+    }
+  }
+
+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BreakStatementWithLabelJS.html b/original-plugin-raw/zh/inspectionDescriptions/BreakStatementWithLabelJS.html new file mode 100644 index 000000000..2ab31f7f4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BreakStatementWithLabelJS.html @@ -0,0 +1,5 @@ + + +报告 break 标签语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BridgeCastIssues.html b/original-plugin-raw/zh/inspectionDescriptions/BridgeCastIssues.html new file mode 100644 index 000000000..59c369d6e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BridgeCastIssues.html @@ -0,0 +1,5 @@ + + +报告桥式转换的不正确用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BusyWait.html b/original-plugin-raw/zh/inspectionDescriptions/BusyWait.html new file mode 100644 index 000000000..e804654b0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BusyWait.html @@ -0,0 +1,20 @@ + + +报告在循环内发生的对 java.lang.Thread.sleep() 的调用。 +

此类调用表示“忙等待”。 忙等待通常效率低下,并且可能导致意外死锁,因为忙等待线程不会释放锁定的资源。

+

示例:

+

+  class X {
+     volatile int x;
+     public void waitX() throws Exception {
+      while (x > 0) {
+        Thread.sleep(10);// 警告:在循环中调用 'Thread.sleep()',可能处于忙等待
+      }
+    }
+  }
+
+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BvConfigDomInspection.html b/original-plugin-raw/zh/inspectionDescriptions/BvConfigDomInspection.html new file mode 100644 index 000000000..019276ef1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BvConfigDomInspection.html @@ -0,0 +1,25 @@ + + +

报告 Bean 验证 <validation-config> 文件中的不正确元素:

+ +
    +
  • 对不可实例化类的引用
  • +
  • 对不扩展所需类的类的引用
  • +
  • 对范围不适当的类的引用
  • +
  • 空标记和特性值
  • +
  • 与所需模式不匹配的标记和特性值(例如,Java 标识符)
  • +
  • 不包含必需子标记或特性的标记
  • +
  • 定义具有重复名称的对象的标记
  • +
+ +

示例:

+

+<validation-config>
+  <default-provider>foo.UnknownProvider</default-provider>  <!-- 无法解析 'UnknownProvider' 类或软件包 -->
+  <message-interpolator>my.Interpolator</message-interpolator>
+  <constraint-mapping>META-INF/ConstraintMappings.xml</constraint-mapping>
+  <constraint-mapping>META-INF/unknown.xml</constraint-mapping>
+</validation-config>
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/BvConstraintMappingsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/BvConstraintMappingsInspection.html new file mode 100644 index 000000000..2800669df --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/BvConstraintMappingsInspection.html @@ -0,0 +1,37 @@ + + +

报告 Bean 验证 <constraint-mappings> 文件中的不正确元素:

+ +
    +
  • 对不可实例化类的引用
  • +
  • 对不扩展所需类的类的引用
  • +
  • 对范围不适当的类的引用
  • +
  • 空标记和特性值
  • +
  • 与所需模式不匹配的标记和特性值(例如,Java 标识符)
  • +
  • 不包含必需子标记或特性的标记
  • +
  • 定义具有重复名称的对象的标记
  • +
+ +

示例:

+

+<constraint-mappings version="1.1">
+    <bean class="my.UserClass" ignore-annotations="false">
+        <field name="name">
+            <constraint annotation="java.lang.String"/>  <!--'java.lang.String' 不是 Java 注解 -->
+        </field>
+
+        <field name="name">
+            <constraint annotation="javax.validation.constraints.Size">
+                <element name="min">non-number</element>    <!--应该为 '-2,147,483,648' 到 '2,147,483,647' 之间的数字 -->
+            </constraint>
+        </field>
+
+        <getter name="zzz"> 无法解析 'zzz' 符号
+            <valid/>
+        </getter>
+
+    </bean>
+</constraint-mappings>
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CStyleArrayDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/CStyleArrayDeclaration.html new file mode 100644 index 000000000..c16d60391 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CStyleArrayDeclaration.html @@ -0,0 +1,22 @@ + + +报告以 C 风格语法编写的数组声明,其中数组指示符中括号放置在变量名称之后或方法形参列表之后。 +

示例:

+

+  public String process(String value[])[] {
+    return value;
+  }
+
+

大多数代码风格更喜欢 Java 风格的数组声明,其中数组指示符中括号附加到类型名称,例如:

+

+  public String[] process(String[] value) {
+    return value;
+  }
+
+ +

配置检查:

+

+使用 忽略变量中的C样式声明 选项仅报告方法返回类型的 C 样式数组声明。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CachedNumberConstructorCall.html b/original-plugin-raw/zh/inspectionDescriptions/CachedNumberConstructorCall.html new file mode 100644 index 000000000..a0394252c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CachedNumberConstructorCall.html @@ -0,0 +1,23 @@ + + +报告具有基元 longintegershortbyte 实参的新 LongIntegerShortByte 对象的实例化。 +

建议使用 Java 5 中引入的 static 方法 valueOf() 默认情况下,此方法缓存值介于 -128 到 127(包含)之间的对象。 +

示例:

+

+  Integer i = new Integer(1);
+  Long l = new Long(1L);
+
+

应用快速修复后,代码变为:

+

+  Integer i = Integer.valueOf(1);
+  Long l = Long.valueOf(1L);
+
+ +

仅当项目或模块的语言级别为 5 或更高级别时,此检查才会报告。

+

+ 使用忽略具有字符串实参的新数字表达式选项可以忽略对包含 String 实参的数字构造函数的调用。

+

+ 使用仅在构造函数为 @Deprecated 时报告选项,仅报告对弃用的构造函数的调用。 + LongIntegerShortByte 构造函数自 JDK 9 起已被弃用。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CallDealloc.html b/original-plugin-raw/zh/inspectionDescriptions/CallDealloc.html new file mode 100644 index 000000000..de0a0cbd6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CallDealloc.html @@ -0,0 +1,8 @@ + + + 报告直接发送的 dealloc 消息。 此类消息绝不应直接发送。 + 相反,对象的 dealloc 方法应通过 release + NSObject 协议方法间接调用(如果 release 消息导致接收器的保留计数变为 0)。 + 有关使用这些方法的更多详细信息,请参阅内存管理编程指南。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CallToNativeMethodWhileLocked.html b/original-plugin-raw/zh/inspectionDescriptions/CallToNativeMethodWhileLocked.html new file mode 100644 index 000000000..896f5bf2e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CallToNativeMethodWhileLocked.html @@ -0,0 +1,19 @@ + + +报告 synchronized 块或方法中的调用 native 方法。 +

+ 如果可能,最好将对 native 方法的调用排除在同步上下文之外,因为此类调用会导致开销巨大的上下文切换,并且可能导致性能问题。 +

+

示例:

+

+  native void nativeMethod();
+
+  void example(){
+    synchronized (lock){
+      nativeMethod();//警告
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CallToSimpleGetterInClass.html b/original-plugin-raw/zh/inspectionDescriptions/CallToSimpleGetterInClass.html new file mode 100644 index 000000000..1ab6e83aa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CallToSimpleGetterInClass.html @@ -0,0 +1,46 @@ + + +报告从属性的类内部对简单属性 getter 的调用。 +

+ 简单的属性 getter 会被定义为只返回字段的值,而不进行其他计算。 可以使用该快速修复安全地内联此类简单的 getter 调用。 + 为了保持代码清晰,某些编码标准还建议不使用简单的 getter。 +

+

示例:

+

+  public class Salient {
+    private String name;
+
+    public String getName() {
+      return name;
+    }
+
+    @Override
+    public String toString() {
+      return getName();
+    }
+  }
+
+

在应用快速修复后:

+

+  public class Salient {
+    private String name;
+
+    public String getName() {
+      return name;
+    }
+
+    @Override
+    public String toString() {
+      return name;
+    }
+  }
+
+ +

使用以下选项配置检查:

+
    +
  • 是否仅报告 this 上的 getter 调用,而不报告作为形参传入的相同类型的对象。
  • +
  • 是否忽略非 private getter。
  • +
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CallToSimpleSetterInClass.html b/original-plugin-raw/zh/inspectionDescriptions/CallToSimpleSetterInClass.html new file mode 100644 index 000000000..5ce01e6ab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CallToSimpleSetterInClass.html @@ -0,0 +1,39 @@ + + +报告从属性的类内部对简单属性 setter 的调用。 +

+ 简单的属性 setter 被定义为只将其形参的值分配给一个字段,而不进行其他计算。 可以安全地内联此类简单的 setter 调用。 + 为了保持代码清晰,某些编码标准还建议不使用简单的 setter。 +

+

示例:

+

+  class Foo {
+  private int index;
+    public Foo(int idx) {
+       setIndex(idx);
+    }
+    public void setIndex(int idx) {
+       index = idx;
+    }
+  }
+
+

在应用快速修复后:

+

+  class Foo {
+    private int index;
+    public Foo(int idx) {
+      index = idx;
+    }
+    public void setIndex(int idx) {
+      index = idx;
+    }
+  }
+
+ +

使用以下选项配置检查:

+
    +
  • 是否仅报告 this 上的 setter 调用,而不报告作为形参传入的相同类型的对象。
  • +
  • 是否忽略非 private setter。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CallToStringConcatCanBeReplacedByOperator.html b/original-plugin-raw/zh/inspectionDescriptions/CallToStringConcatCanBeReplacedByOperator.html new file mode 100644 index 000000000..8790026a3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CallToStringConcatCanBeReplacedByOperator.html @@ -0,0 +1,20 @@ + + +报告对 java.lang.String.concat() 的调用。 +

+ 如果在带有常量实参的常量上调用该方法,可以将此类调用替换为 + 运算符,以提高清晰度和性能。

+

示例:

+

+  String foo(String name) {
+    return name.concat("foo");
+  }
+
+

在应用快速修复后:

+

+  String foo(String name) {
+    return name + "foo";
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CallToSuspiciousStringMethod.html b/original-plugin-raw/zh/inspectionDescriptions/CallToSuspiciousStringMethod.html new file mode 100644 index 000000000..d4b848a98 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CallToSuspiciousStringMethod.html @@ -0,0 +1,19 @@ + + +报告对以下各项的调用: +
    +
  • equals()
  • +
  • equalsIgnoreCase()
  • +
  • compareTo()
  • +
  • compareToIgnoreCase()
  • +
  • trim()
  • +
+

+ (发生在 String 对象上)。 + 对国际化字符的比较可能应改为使用 java.text.Collator。 + String.trim() 只会移除 0x00 和 0x20 之间的控制字符。 + Java 11 中引入的 String.strip() 方法对 Unicode 的感知更好,可以作为替代。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CallerJS.html b/original-plugin-raw/zh/inspectionDescriptions/CallerJS.html new file mode 100644 index 000000000..36eea1935 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CallerJS.html @@ -0,0 +1,6 @@ + + +报告 JavaScript 函数中 caller 属性的用法。 +使用此属性访问调用方法的堆栈帧可能格外令人困惑,并导致难以捉摸的错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CallingSubscribeInNonBlockingScope.html b/original-plugin-raw/zh/inspectionDescriptions/CallingSubscribeInNonBlockingScope.html new file mode 100644 index 000000000..d040d9fab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CallingSubscribeInNonBlockingScope.html @@ -0,0 +1,15 @@ + + +

报告 "reactive" 方法中的 subscribe() 调用。

+

返回 Publisher 类型(包括 FluxMono)的方法不应直接调用 subscribe() 方法,因为它可能破坏反应式调用链。

+

不要使用 subscribe(),而是考虑使用组合运算符,例如 flatMap()zip()then() > 等。

+

示例:

+

+  Flux<String> stringFlux(){
+    Flux<String> flux = Flux.just("abc");
+    flux.subscribe(); // <- 在非阻塞上下文中阻塞 'subscribe' 调用
+    return flux;
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CanBeFinal.html b/original-plugin-raw/zh/inspectionDescriptions/CanBeFinal.html new file mode 100644 index 000000000..547b719ea --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CanBeFinal.html @@ -0,0 +1,8 @@ + + +报告在指定检查范围内发现的所有字段、方法或类,这些字段、方法或类可能在其声明中添加了 final 修饰符。 +

final 类不能被扩展,final 方法不能被重写,final 字段不能被重新分配。

+ +

使用报告类报告方法选项可定义要报告的声明。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CanBeParameter.html b/original-plugin-raw/zh/inspectionDescriptions/CanBeParameter.html new file mode 100644 index 000000000..ebad97b37 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CanBeParameter.html @@ -0,0 +1,27 @@ + + +报告 valvar 可被移除的主构造函数形参。 +

+ 在构造函数中声明的类属性会增加内存消耗。 + 如果形参值仅在构造函数中使用,则可以省略它们。 +

+

请注意,引用的对象可能是之前被垃圾回收。

+

示例:

+

+  class Task(val name: String) {
+      init {
+          print("Task created: $name")
+      }
+  }
+
+

该快速修复会移除额外的 valvar 关键字:

+

+  class Task(name: String) {
+      init {
+          print("Task created: $name")
+      }
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CanBePrimaryConstructorProperty.html b/original-plugin-raw/zh/inspectionDescriptions/CanBePrimaryConstructorProperty.html new file mode 100644 index 000000000..ec11b0962 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CanBePrimaryConstructorProperty.html @@ -0,0 +1,18 @@ + + +报告显式分配给主构造函数形参的属性。 +

可以直接在主构造函数中声明属性,从而减少代码量并提高代码可读性。

+

示例:

+

+  class User(name: String) {
+      val name = name
+  }
+
+

快速修复会将形参和属性声明联接到主构造函数形参中:

+

+  class User(val name: String) {
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CanBeStatic.html b/original-plugin-raw/zh/inspectionDescriptions/CanBeStatic.html new file mode 100644 index 000000000..789729cbc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CanBeStatic.html @@ -0,0 +1,5 @@ + + +报告在指定检查范围内发现的所有字段、方法或类,这些字段、方法或类可能在其声明中添加了 static 修饰符。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CanBeVal.html b/original-plugin-raw/zh/inspectionDescriptions/CanBeVal.html new file mode 100644 index 000000000..3dc8bdf08 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CanBeVal.html @@ -0,0 +1,23 @@ + + +报告使用 var 关键字声明但从未被修改的局部变量。 +

Kotlin 鼓励使用 val 关键字声明几乎不可变的变量,以确保它们的值永远不会改变。

+

示例:

+

+  fun example() {
+      var primeNumbers = listOf(1, 2, 3, 5, 7, 11, 13)
+      var fibonacciNumbers = listOf(1, 1, 2, 3, 5, 8, 13)
+      print("Same numbers: " + primeNumbers.intersect(fibonacciNumbers))
+  }
+
+

快速修复会将 var 关键字替换为 val

+

+  fun example() {
+      val primeNumbers = listOf(1, 2, 3, 5, 7, 11, 13)
+      val fibonacciNumbers = listOf(1, 1, 2, 3, 5, 8, 13)
+      print("Same numbers: " + primeNumbers.intersect(fibonacciNumbers))
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CanSealedSubClassBeObject.html b/original-plugin-raw/zh/inspectionDescriptions/CanSealedSubClassBeObject.html new file mode 100644 index 000000000..997ecbe95 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CanSealedSubClassBeObject.html @@ -0,0 +1,21 @@ + + +报告没有状态和被重写的 equals() 方法的 sealed 类的直接继承者。 +

强烈建议重写 equals() 以提供比较稳定性,或将 class 转换为 object 以达到相同的效果。

+

示例:

+

+  sealed class Receiver {
+      class Everyone : Receiver()
+      class User(val id: Int) : Receiver()
+  }
+
+

快速修复会将 class 转换为 object

+

+  sealed class Receiver {
+      object Everyone : Receiver()
+      class User(val id: Int) : Receiver()
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CannotResolve.html b/original-plugin-raw/zh/inspectionDescriptions/CannotResolve.html new file mode 100644 index 000000000..9e914d549 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CannotResolve.html @@ -0,0 +1,5 @@ + + +报告代码中的未解析符号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CapturingCleaner.html b/original-plugin-raw/zh/inspectionDescriptions/CapturingCleaner.html new file mode 100644 index 000000000..9bd7f4372 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CapturingCleaner.html @@ -0,0 +1,24 @@ + + +报告当 Runnable 传递给 Cleaner.register() 捕获引用时会导致内存泄漏的情况。 +

此问题的可能来源:

+
    +
  • 使用非 static 方法、字段或 this 本身的 lambda
  • +
  • 非 static 内部类(匿名与否)始终捕获此引用
  • +
  • 实例方法引用
  • +
  • 从非 static 内部类访问外部类非 static 成员
  • +
+ +

将报告的代码示例:

+

+  int fileDescriptor;
+  Cleaner.Cleanable cleanable = Cleaner.create().register(this, () -> {
+    System.out.println("adsad");
+    //this 通过 fileDescriptor 捕获
+    fileDescriptor = 0;
+  });
+
+

仅当项目或模块的语言级别为 9 或更高时,此检查才会报告。

+

2018.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CascadeIf.html b/original-plugin-raw/zh/inspectionDescriptions/CascadeIf.html new file mode 100644 index 000000000..d118f9e0f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CascadeIf.html @@ -0,0 +1,40 @@ + + +报告有三个以上分支并且可以替换为 when 表达式的 if 语句。 +

示例:

+

+  fun checkIdentifier(id: String) {
+      fun Char.isIdentifierStart() = this in 'A'..'z'
+      fun Char.isIdentifierPart() = isIdentifierStart() || this in '0'..'9'
+
+      if (id.isEmpty()) {
+          print("Identifier is empty")
+      } else if (!id.first().isIdentifierStart()) {
+          print("Identifier should start with a letter")
+      } else if (!id.subSequence(1, id.length).all(Char::isIdentifierPart)) {
+          print("Identifier should contain only letters and numbers")
+      }
+  }
+
+

快速修复会将 if 表达式转换为 when

+

+  fun checkIdentifier(id: String) {
+      fun Char.isIdentifierStart() = this in 'A'..'z'
+      fun Char.isIdentifierPart() = isIdentifierStart() || this in '0'..'9'
+
+      when {
+          id.isEmpty() -> {
+              print("Identifier is empty")
+          }
+          !id.first().isIdentifierStart() -> {
+              print("Identifier should start with a letter")
+          }
+          !id.subSequence(1, id.length).all(Char::isIdentifierPart) -> {
+              print("Identifier should contain only letters and numbers")
+          }
+      }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CaseClassParam.html b/original-plugin-raw/zh/inspectionDescriptions/CaseClassParam.html new file mode 100644 index 000000000..623a1db51 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CaseClassParam.html @@ -0,0 +1,13 @@ + +

报告 case class 形参上的冗余 val 修饰符。

+

示例:

+

+  case class W (val x: Int)
+
+

在应用快速修复后:

+

+  case class W (x: Int)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CastCanBeRemovedNarrowingVariableType.html b/original-plugin-raw/zh/inspectionDescriptions/CastCanBeRemovedNarrowingVariableType.html new file mode 100644 index 000000000..ff0fc8b6a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CastCanBeRemovedNarrowingVariableType.html @@ -0,0 +1,19 @@ + + +如果将变量类型范围缩小到转换类型,则报告可以移除的类型转换。 +

示例:

+

+  Object x = "  string  ";
+  System.out.println(((String)x).trim());
+
+

+在这里,将 x 的类型更改为 String 使转换变得冗余。 建议的快速修复会更新变量类型并移除该变量上的所有冗余转换: +

+

+  String x = "  string  ";
+  System.out.println(x.trim());
+
+ +

2018.2 最新变化

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CastConflictsWithInstanceof.html b/original-plugin-raw/zh/inspectionDescriptions/CastConflictsWithInstanceof.html new file mode 100644 index 000000000..760371959 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CastConflictsWithInstanceof.html @@ -0,0 +1,26 @@ + + +报告前面包含用于检查不同类型的 instanceof 的类型转换表达式。 +

+ 尽管这可能是有意为之,但此类结构很可能是错误,在运行时将导致 java.lang.ClassCastException。 +

+

示例:

+

+  class Main {
+    int whenCharSequenceCastToNumber(Object o){
+      if (o instanceof CharSequence) {
+        return ((Number) o).intValue();
+      }
+      return 0;
+    }
+
+    int earlyReturnWhenNotCharSequence(Object o){
+      if (!(o instanceof CharSequence)) return 0;
+      return ((Number)o).intValue();
+    }
+  }
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CastThatLosesPrecision.html b/original-plugin-raw/zh/inspectionDescriptions/CastThatLosesPrecision.html new file mode 100644 index 000000000..c9e7481a0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CastThatLosesPrecision.html @@ -0,0 +1,16 @@ + + +报告可能导致精度损失的基元数值类型之间的转换运算。 +

此类转换不一定是问题,但如果意外造成精度损失,则可能会导致难以跟踪错误。

+

示例:

+

+  int a = 420;
+  byte b = (byte) a;
+
+ +

使用忽略从 int 到 char 的转换选项可以忽略从 intchar 的转换。 + 在实现 I/O 操作时经常使用这种类型的转换,因为 java.io.Reader 类的 read() 方法会返回一个 int

+

使用忽略从 int 128-255 到字节的转换选项可以忽略从 intbyte 的常量值 (128-255) 的转换。 + 此类值将溢出到仍能容纳在一个字节内的负数。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CastToIncompatibleInterface.html b/original-plugin-raw/zh/inspectionDescriptions/CastToIncompatibleInterface.html new file mode 100644 index 000000000..cefbe4969 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CastToIncompatibleInterface.html @@ -0,0 +1,22 @@ + + +报告其中的转换类型为接口,且转换表达式的类的类型既不实现转换接口,也不包含任何实现该转换接口的可见子类的类型转换表达式。 +

+ 尽管这可能是有意为之,但此类结构很可能是错误,在运行时将导致 java.lang.ClassCastException。 +

+

示例:

+

+  interface A {}
+  interface Z {}
+  static class C {}
+
+  void x(C c) {
+    if (c instanceof Z) {
+      A a = ((A)c); // 转换为不兼容的接口 'A'
+    }
+  }
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CatchMayIgnoreException.html b/original-plugin-raw/zh/inspectionDescriptions/CatchMayIgnoreException.html new file mode 100644 index 000000000..d23f0f485 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CatchMayIgnoreException.html @@ -0,0 +1,50 @@ + + +报告空的或可能忽略异常的 catch 块。 +

虽然偶尔是有意为之,但空的 catch 块可能导致调试复杂化。 +此外,忽略 catch 形参可能是错误的。 + 最后,静态代码分析器会报告是否检测到 catch 块可能无提示地忽略重要的 VM 异常,如 NullPointerException。 忽略此类异常(不记录或重新抛出)可能会隐藏错误。

+ +

+ 该检查不会报告任何命名为 ignoreignoredcatch 形参。 + 相反,它将对真正在使用的命名为 ignoreignoredcatch 形参发出警告。 + 此外,该检查不会报告命名为 expectedok 的测试源中的 catch 形参。 +

+

+ 您可以使用快速修复将异常名称更改为 ignored。 + 对于空的 catch 块,建议使用其他快速修复来生成 catch 主体。 + 您可以在设置 | 编辑器 | 文件和代码模板中的“代码”选项卡上修改 "Catch Statement Body" 模板。 +

+

示例:

+

+  try {
+    throwingMethod();
+  } catch (IOException ex) {
+
+  }
+
+

在应用快速修复后:

+

+  try {
+    System.out.println(System.in.read());
+  } catch (IOException ignored) {
+
+  }
+
+ +

配置检查:

+
    +
  • + 使用当 'catch' 块包含注释时不发出警告选项可以忽略包含注释的 catch 块。 +
  • +
  • + 使用当 'catch' 块不为空时不发出警告选项可以忽略其中包含语句或注释但又不使用变量本身的 catch 块。 +
  • +
  • + 使用当名称为 'ignore(d)' 的异常实际上未被忽略时不发出警告选项可以忽略使用中名称为 ignored 的变量。 +
  • +
+ +

2018.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CaughtExceptionImmediatelyRethrown.html b/original-plugin-raw/zh/inspectionDescriptions/CaughtExceptionImmediatelyRethrown.html new file mode 100644 index 000000000..6dd47f0df --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CaughtExceptionImmediatelyRethrown.html @@ -0,0 +1,16 @@ + + +报告不对其执行任何操作,而是立即重新抛出所捕获的异常的 catch 块。 +此类 catch 块非必要,并且没有处理错误。 + +

示例:

+

+        try {
+            new FileInputStream("");
+        } catch (FileNotFoundException e) {
+            throw e;
+        }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CdiAlternativeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CdiAlternativeInspection.html new file mode 100644 index 000000000..044c37ace --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CdiAlternativeInspection.html @@ -0,0 +1,8 @@ + + +

+ 报告被否决的 @Alternative Bean。 + 当一个 Bean 使用 @Vetoed 注解或在被否决的软件包中声明时,会被视为否决。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CdiDecoratorInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CdiDecoratorInspection.html new file mode 100644 index 000000000..eaa584503 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CdiDecoratorInspection.html @@ -0,0 +1,10 @@ + + +

报告不正确的 @Decorator Bean 定义。

+ +
    +
  • 不能为 final。
  • +
  • 必须恰好有一个使用 @Delegate 注解的代理特性(字段或形参)。
  • +
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CdiDisposerMethodInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CdiDisposerMethodInspection.html new file mode 100644 index 000000000..ae94b9fce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CdiDisposerMethodInspection.html @@ -0,0 +1,10 @@ + + +

报告不正确的 disposer 方法。

+ +
    +
  • 不能为 abstract。
  • +
  • 必须只有一个使用 @Disposes 注解的已处置形参。
  • +
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CdiDomBeans.html b/original-plugin-raw/zh/inspectionDescriptions/CdiDomBeans.html new file mode 100644 index 000000000..a7b59e484 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CdiDomBeans.html @@ -0,0 +1,5 @@ + + +

报告 beans.xml 配置文件中不正确的 Bean 定义。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CdiInjectInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CdiInjectInspection.html new file mode 100644 index 000000000..cf266f7bc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CdiInjectInspection.html @@ -0,0 +1,17 @@ + + +

报告不正确的注入点:使用 @Inject 注解并违反 CDI 规范的字段、方法和形参。

+ +

字段要求:

+
    +
  • 不能为 static 或 final
  • +
  • 不能使用 @Produces 注解
  • +
+ +

对包含注入的方法的要求:

+
    +
  • 不能为 static 或 abstract
  • +
  • 不能具有使用 @Disposes@Observes 注解的形参
  • +
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CdiInjectionPointsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CdiInjectionPointsInspection.html new file mode 100644 index 000000000..b963f588e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CdiInjectionPointsInspection.html @@ -0,0 +1,21 @@ + + +

报告具有不明确依赖项的 Bean 类中的注入点。

+ +

示例:

+

+  interface Engine {}
+
+  @Singleton
+  class GasEngine implements Engine {}
+
+  @Singleton
+  class ElectricEngine implements Engine {}
+
+  @Singleton
+  class Car {
+    @Inject Engine engine; // 依赖项不明确:有多个 Bean 匹配注入点
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CdiInterceptorInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CdiInterceptorInspection.html new file mode 100644 index 000000000..583ad6c8d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CdiInterceptorInspection.html @@ -0,0 +1,5 @@ + + +

报告没有绑定类型的 @Interceptor 类。 侦听器必须指定至少一个侦听器绑定。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CdiManagedBeanInconsistencyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CdiManagedBeanInconsistencyInspection.html new file mode 100644 index 000000000..857a442b8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CdiManagedBeanInconsistencyInspection.html @@ -0,0 +1,22 @@ + + +

报告不正确的 Bean 定义规则。

+

顶级 Java 类可以为简单的 Bean,如果:

+
    +
  • 它不是形参化类型。
  • +
  • 它不是一个非 static 内部类。
  • +
  • 它是一个具体类,或者使用 @Decorator 进行注解。
  • +
  • 拥有适当的构造函数:该类具有没有形参的构造函数,或声明使用 @Initializer 注解的构造函数。 +
  • +
  • 它不实现以下任何接口: + javax.servlet.Servlet、 + javax.servlet.Filter、 + javax.servlet.ServletContextListener、 + javax.servlet.http.HttpSessionListener、 + javax.servlet.ServletRequestListener、 + javax.ejb.EnterpriseBean。 +
  • +
  • 它不扩展 javax.faces.component.UIComponent
  • +
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CdiNormalScopeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CdiNormalScopeInspection.html new file mode 100644 index 000000000..59be3f1a1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CdiNormalScopeInspection.html @@ -0,0 +1,14 @@ + + +

报告具有不在默认 @Dependent 范围内的 public 实例字段的托管 Bean。 + 根据 CDI 规范,上下文范围(@RequestScoped@ApplicationScoped@SessionScopedConversationScoped)不允许用于具有 public 实例字段的托管 Bean。 +

+

示例:

+

+  @ApplicationScoped // 警告:具有非默认范围的 Bean 不得具有 public 字段
+  class Car {
+    public String engine;
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CdiObservesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CdiObservesInspection.html new file mode 100644 index 000000000..f45dbf7df --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CdiObservesInspection.html @@ -0,0 +1,11 @@ + + +

报告不正确的观察者方法定义。

+ +
    +
  • 只得包含一个 @Observes 形参
  • +
  • 不能具有使用 @Disposes 注解的形参
  • +
  • 不能使用 @Inject@Produces 注解
  • +
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CdiScopeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CdiScopeInspection.html new file mode 100644 index 000000000..9cd619cde --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CdiScopeInspection.html @@ -0,0 +1,9 @@ + + +

报告不正确的 Bean 范围:

+
    +
  • 单例 Bean 必须是 @ApplicationScoped@Dependent
  • +
  • 会话无状态 Bean 必须是 @Dependent
  • +
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CdiSpecializesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CdiSpecializesInspection.html new file mode 100644 index 000000000..56e5ea77e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CdiSpecializesInspection.html @@ -0,0 +1,13 @@ + + +

报告 @Specializes 注解的不正确用法。

+ +
    +
  • 专用化 Bean 必须扩展另一个 Bean
  • +
  • 专用化方法必须重写其直接超类的 @Produces 方法
  • +
  • @Named 注解不能用于专用化类和专用类
  • +
  • 两个或多个类不能专用化同一个超类
  • +
  • 专用化方法不能为 static
  • +
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CdiStereotypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CdiStereotypeInspection.html new file mode 100644 index 000000000..3fc19294b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CdiStereotypeInspection.html @@ -0,0 +1,9 @@ + + +

报告不正确的 @Stereotype 注解类:

+
    +
  • 不允许对构造型使用非空 @Named 注解
  • +
  • 不允许对构造型使用限定符注解
  • +
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CdiStereotypeRestrictionsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CdiStereotypeRestrictionsInspection.html new file mode 100644 index 000000000..77f227e59 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CdiStereotypeRestrictionsInspection.html @@ -0,0 +1,5 @@ + + +

报告在不同范围内具有多个构造型的类,或者未指定范围的类

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CdiTypedAnnotationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CdiTypedAnnotationInspection.html new file mode 100644 index 000000000..c9ac50628 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CdiTypedAnnotationInspection.html @@ -0,0 +1,9 @@ + + +

报告违反以下规则的 @Typed 注解用法:

+
    +
  • 只有生产者方法可以具有 @Typed 注解
  • +
  • Bean 类型必须对应 @Typed 注解中提到的类型
  • +
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CdiUnknownProducersForDisposerMethodInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CdiUnknownProducersForDisposerMethodInspection.html new file mode 100644 index 000000000..30dae777a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CdiUnknownProducersForDisposerMethodInspection.html @@ -0,0 +1,6 @@ + + +

报告没有相应生产者方法的 disposer 方法。

+

每个 disposer 方法必须恰好有一个与相应生产者方法或生产者字段返回类型相同类型的已处置形参。 在为生产者方法或生产者字段搜索 disposer 方法时,容器会考虑已处置形参的类型和限定符。 如果已处理的形参解析为同一 Bean 类声明的生产者方法或生产者字段,则容器在销毁该生产者方法或生产者字段返回的任何实例时必须调用此方法。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CdiUnproxyableBeanTypesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CdiUnproxyableBeanTypesInspection.html new file mode 100644 index 000000000..15ad5659e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CdiUnproxyableBeanTypesInspection.html @@ -0,0 +1,13 @@ + + +

报告无法代理的 Bean 类型的不正确用法。

+

容器不能代理某些合法的 Bean 类型:没有不带形参的非 private 构造函数的类、声明为 final 的类或具有 final 方法、基元类型和数组类型的类。

+ +

此检查会报告此类 Bean 类型的以下违规行为:

+
    +
  • 声明钝化范围的托管 Bean 必须为 java.io.Serializable
  • +
  • 不可序列化类型的 Bean 不能注入钝化范围的 Bean
  • +
  • 容器必须能够代理注入的正常范围 Bean
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CfmlFileReference.html b/original-plugin-raw/zh/inspectionDescriptions/CfmlFileReference.html new file mode 100644 index 000000000..aa7b4216f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CfmlFileReference.html @@ -0,0 +1,5 @@ + + +

报告未解析的路径引用。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CfmlReferenceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CfmlReferenceInspection.html new file mode 100644 index 000000000..d836d9ffb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CfmlReferenceInspection.html @@ -0,0 +1,5 @@ + + +

报告未解析的函数引用。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ChainedEquality.html b/original-plugin-raw/zh/inspectionDescriptions/ChainedEquality.html new file mode 100644 index 000000000..304ef564a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ChainedEquality.html @@ -0,0 +1,19 @@ + + +报告链式相等比较。 +

此类比较可能令人困惑:a == b == c 表示 (a == b) == c,但可能 a == b && a == c 是有意为之。

+

示例:

+

+  boolean chainedEquality(boolean a, boolean b, boolean c) {
+    return a == b == c;
+  }
+
+

您可以使用圆括号使比较不那么令人困惑:

+

+  boolean chainedEquality(boolean a, boolean b, boolean c) {
+    return (a == b) == c;
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ChainedEqualityJS.html b/original-plugin-raw/zh/inspectionDescriptions/ChainedEqualityJS.html new file mode 100644 index 000000000..45b317449 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ChainedEqualityJS.html @@ -0,0 +1,5 @@ + + +报告链式相等比较(即 a==b==c)。 此类比较令人困惑。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ChainedFunctionCallJS.html b/original-plugin-raw/zh/inspectionDescriptions/ChainedFunctionCallJS.html new file mode 100644 index 000000000..31c4024fa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ChainedFunctionCallJS.html @@ -0,0 +1,5 @@ + + +报告目标为另一个函数调用的函数调用,例如 foo().bar() + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ChainedMethodCall.html b/original-plugin-raw/zh/inspectionDescriptions/ChainedMethodCall.html new file mode 100644 index 000000000..ad49b0640 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ChainedMethodCall.html @@ -0,0 +1,38 @@ + + +报告目标是另一个方法调用的方法调用。 +该快速修复会建议引入局部变量。 +

示例:

+

+  class X {
+    int foo(File f) {
+      return f.getName().length();
+    }
+  }
+
+

在应用快速修复后:

+

+  class X {
+    int foo(File f) {
+      final String name = f.getName();
+      return name.length();
+    }
+  }
+
+ +

使用检查选项来切换以下各项的警告:

+
    +
  • +

    + 字段初始值设定项中的链式方法调用,例如 private final int i = new Random().nextInt(); +

    +
  • +
  • +

    + 在相同的类型上运算的链式方法调用,例如,new StringBuilder().append("x: ").append(new X()).append("y: ").append(new Y()).toString();。 +

    +
  • +
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ChainedPackage.html b/original-plugin-raw/zh/inspectionDescriptions/ChainedPackage.html new file mode 100644 index 000000000..020ee63e5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ChainedPackage.html @@ -0,0 +1,16 @@ + + +

报告应该在基础软件包中链接的软件包语句。

+

仅当在设置 | 语言和框架 | Scala | 基础软件包中定义基础软件包时才适用。

+

示例:

+

+  package org.example.application.NAME
+
+

在应用快速修复后:

+

+  package org.example.application
+  package NAME
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ChangeToMethod.html b/original-plugin-raw/zh/inspectionDescriptions/ChangeToMethod.html new file mode 100644 index 000000000..7edaae206 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ChangeToMethod.html @@ -0,0 +1,13 @@ + + +报告可替换为方法调用的运算符调用。 +

示例:

+

+  a + b
+
+

在应用快速修复后:

+

+  a.plus(b)
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ChangeToOperator.html b/original-plugin-raw/zh/inspectionDescriptions/ChangeToOperator.html new file mode 100644 index 000000000..9d5dfb009 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ChangeToOperator.html @@ -0,0 +1,13 @@ + + +报告可以替换为运算符调用的方法调用。 +

示例:

+

+  a.plus(b)
+
+

在应用快速修复后:

+

+  a + b
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ChannelResource.html b/original-plugin-raw/zh/inspectionDescriptions/ChannelResource.html new file mode 100644 index 000000000..4361c553a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ChannelResource.html @@ -0,0 +1,27 @@ + + +报告未安全关闭的 Channel 资源,包括任何通过在文件或套接字资源上调用 getChannel() 而创建的实例。 +

+ 默认情况下,该检查假定资源可以由名称中带有 'close' 或 'cleanup' 的任何方法关闭。 +

+

示例:

+

+  void send(Socket socket) throws IOException {
+    SocketChannel channel = socket.getChannel(); //警告
+    channel.write(ByteBuffer.wrap("message".getBytes()));
+  }
+
+ +

+ 使用以下选项配置检查: +

+
    +
  • + 是否允许在 try 块内打开 Channel 资源。 这种样式不太合意,因为它比在 try 块前面打开 Channel 更复杂。 +
  • +
  • + 资源能否通过任何将资源作为实参传递的方法调用来关闭。 +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CharUsedInArithmeticContext.html b/original-plugin-raw/zh/inspectionDescriptions/CharUsedInArithmeticContext.html new file mode 100644 index 000000000..810112ec1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CharUsedInArithmeticContext.html @@ -0,0 +1,15 @@ + + +报告用于加法或减法表达式的 char 类型的表达式。 +

此类代码不一定是问题,但可能会导致错误(例如,如果需要字符串)。

+

示例int a = 'a' + 42;

+

应用该快速修复后:int a = (int) 'a' + 42;

+

对于 String 上下文: +

int i1 = 1;
+int i2 = 2;
+System.out.println(i2 + '-' + i1 + " = " + (i2 - i1));
+

在应用快速修复后:

+System.out.println(i2 + "-" + i1 + " = " + (i2 - i1)); + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CharacterComparison.html b/original-plugin-raw/zh/inspectionDescriptions/CharacterComparison.html new file mode 100644 index 000000000..b6c90a031 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CharacterComparison.html @@ -0,0 +1,6 @@ + + +报告 char 值的顺序比较。 在国际化环境中,此类比较很少是正确的。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CharsetObjectCanBeUsed.html b/original-plugin-raw/zh/inspectionDescriptions/CharsetObjectCanBeUsed.html new file mode 100644 index 000000000..0387ff9b6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CharsetObjectCanBeUsed.html @@ -0,0 +1,21 @@ + + +报告可以用预定义的 StandardCharsets.UTF_8 代码替换其中常量字符集 String 文字(例如,"UTF-8")的方法和构造函数。 +

修复后可以加快代码的速度,因为字符集查找变得不必要。 + 此外,您可能也不需要捕捉 UnsupportedEncodingException。 在这种情况下,catch 块将被自动删除。

+

示例:

+

+  try {
+    byte[] bytes = "str".getBytes("UTF-8");
+  } catch (UnsupportedEncodingException e) {
+  }
+
+

在应用快速修复后:

+

+  byte[] bytes = "str".getBytes(StandardCharsets.UTF_8);
+
+ +

该检查在 Java 7 及更高版本中可用。

+

2018.2 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CheckDtdRefs.html b/original-plugin-raw/zh/inspectionDescriptions/CheckDtdRefs.html new file mode 100644 index 000000000..6160b95c1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CheckDtdRefs.html @@ -0,0 +1,6 @@ + + +报告特定于 DTD 的引用(例如,对 XML 实体或 DTD 元素声明的引用)中的不一致。 +适用于 DTD 和 XML 文件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CheckEmptyScriptTag.html b/original-plugin-raw/zh/inspectionDescriptions/CheckEmptyScriptTag.html new file mode 100644 index 000000000..19210e342 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CheckEmptyScriptTag.html @@ -0,0 +1,5 @@ + + +报告在某些浏览器中无法正常使用的空标记(如 script)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CheckForOutOfMemoryOnLargeArrayAllocation.html b/original-plugin-raw/zh/inspectionDescriptions/CheckForOutOfMemoryOnLargeArrayAllocation.html new file mode 100644 index 000000000..75b44bdce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CheckForOutOfMemoryOnLargeArrayAllocation.html @@ -0,0 +1,13 @@ + + +报告不检查 java.lang.OutOfMemoryError 的大型数组分配。 在内存受限的环境中,可能应该检查大数据对象的分配是否存在内存耗尽的情况。 +

+ 此检查适用于 Java ME 和其他资源高度受限的环境。 + 不加考虑地应用此检查的结果可能会对代码清晰度和设计产生负面影响。 +

+ +

+ 使用该选项可以指定在未检查的数组分配中允许的最大元素数。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CheckImageSize.html b/original-plugin-raw/zh/inspectionDescriptions/CheckImageSize.html new file mode 100644 index 000000000..7e6df135b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CheckImageSize.html @@ -0,0 +1,5 @@ + + +报告与所引用图像的实际宽度和高度不同的 img 标记的 widthheight 特性值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CheckJsfComponentUnderViewTag.html b/original-plugin-raw/zh/inspectionDescriptions/CheckJsfComponentUnderViewTag.html new file mode 100644 index 000000000..212d6004d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CheckJsfComponentUnderViewTag.html @@ -0,0 +1,6 @@ + + +报告位于 viewsubview 标记之外的 JSF component 标记。 +检查适用于 JSP 或 JSPX 文件类型。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CheckNodeTest.html b/original-plugin-raw/zh/inspectionDescriptions/CheckNodeTest.html new file mode 100644 index 000000000..907f590d8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CheckNodeTest.html @@ -0,0 +1,18 @@ + + +报告在 XPath 表达式中使用但在关联的 XML 文件中缺少并且也没有在引用的架构中定义的元素或特性的名称。 +此类名称通常是拼写错误所致,否则可能只会在运行时被发现。 + +

示例:

+

+  <xsl:template match="h:txtarea" />
+
+ +

+ 如果 h 被绑定到 XHTML 命名空间,检查会将 match 表达式的这一部分报告为未知元素名称,因为该元素的正确名称是 "textarea"。 +

+ + +

由 XPathView + XSLT-Support 提供技术支持

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CheckTagEmptyBody.html b/original-plugin-raw/zh/inspectionDescriptions/CheckTagEmptyBody.html new file mode 100644 index 000000000..e09c4fb55 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CheckTagEmptyBody.html @@ -0,0 +1,5 @@ + + +报告内容为空的元素。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CheckValidXmlInScriptTagBody.html b/original-plugin-raw/zh/inspectionDescriptions/CheckValidXmlInScriptTagBody.html new file mode 100644 index 000000000..41c020766 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CheckValidXmlInScriptTagBody.html @@ -0,0 +1,5 @@ + + +报告 script 标记的无效 XML 内容。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CheckXmlFileWithXercesValidator.html b/original-plugin-raw/zh/inspectionDescriptions/CheckXmlFileWithXercesValidator.html new file mode 100644 index 000000000..a34049051 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CheckXmlFileWithXercesValidator.html @@ -0,0 +1,5 @@ + + +报告 Xerces 验证程序检测到的 XML 文件和指定 DTD 或架构的差异。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CheckedExceptionClass.html b/original-plugin-raw/zh/inspectionDescriptions/CheckedExceptionClass.html new file mode 100644 index 000000000..8f93badf5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CheckedExceptionClass.html @@ -0,0 +1,11 @@ + + +报告已检查的异常类(即,非 java.lang.RuntimeException 子类的 java.lang.Exception 的子类)。 +

某些编码标准禁止已检查的用户定义的异常类。

+

示例:

+

+  class IllegalMoveException extends Exception {}
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClangTidy.html b/original-plugin-raw/zh/inspectionDescriptions/ClangTidy.html new file mode 100644 index 000000000..850a32c21 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClangTidy.html @@ -0,0 +1,8 @@ + + +报告与 C++ 核心准则、现代化、可读性和性能相关的各种问题。
+此处介绍了 CLion 的默认配置。
+有关更多信息,请访问 Clang-Tidy 官方页面。 +

使用下面的复选框可以让此检查忽略 IDE 设置并使用 .clang-tidy 文件中指定的检查列表(如果有)。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClangdErrorsAndWarnings.html b/original-plugin-raw/zh/inspectionDescriptions/ClangdErrorsAndWarnings.html new file mode 100644 index 000000000..e097f2cab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClangdErrorsAndWarnings.html @@ -0,0 +1,5 @@ + + +报告来自 clangd 的 C/C++ 错误和警告。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClashingGetters.html b/original-plugin-raw/zh/inspectionDescriptions/ClashingGetters.html new file mode 100644 index 000000000..5e2e83dab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClashingGetters.html @@ -0,0 +1,16 @@ + + +报告可通过同一属性名称访问的布尔方法。 +

访问此类属性可能产生意外的结果。

+

示例:

+

+  class X {
+      boolean isFoo() { true }
+      boolean getFoo() { false }
+  }
+
+  // 将调用 getFoo()
+  new X().foo
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClashingTraitMethods.html b/original-plugin-raw/zh/inspectionDescriptions/ClashingTraitMethods.html new file mode 100644 index 000000000..123a5dc83 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClashingTraitMethods.html @@ -0,0 +1,31 @@ + + +报告实现两个或多个特征(包含具有相同签名的方法)的类。 +

调用此类方法可能产生意外的结果。

+

该快速修复会添加显式重写方法。

+

示例:

+

+  trait T1 {
+      def foo() {}
+  }
+
+  trait T2 {
+      def foo() {}
+  }
+
+  class X implements T1, T2 {}
+
+  // 将调用 T2.foo()
+  new X().foo()
+
+

在应用快速修复后:

+

+  class X implements T1, T2 {
+      @Override
+      Object foo() {
+          return T2.super.foo()
+      }
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassCanBeRecord.html b/original-plugin-raw/zh/inspectionDescriptions/ClassCanBeRecord.html new file mode 100644 index 000000000..a7cc9368d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassCanBeRecord.html @@ -0,0 +1,44 @@ + + +建议用记录替换类。 +

当您需要专注于建模不可变数据而不是可扩展行为时,检查会很有用。 + 数据驱动方法的自动实现,例如 equals 和访问器,有助于消除样板。

+

+ 请注意,不是每个类都可以成为记录。 以下是一些限制: +

+
    +
  • 类不能包含继承者,并且必须是一个顶级类。
  • +
  • 类中的所有非 static 字段必须为 final。
  • +
  • 不允许类包含实例初始值设定项、泛型构造函数或原生方法。
  • +
+

要获取完整的限制列表,请参阅 Oracle 文档

+ +

示例:

+

+  class Point {
+    private final double x;
+    private final double y;
+
+    Point(double x, double y) {
+      this.x = x;
+      this.y = y;
+    }
+
+    double getX() {
+      return x;
+    }
+
+    double getY() {
+      return y;
+    }
+  }
+
+

此记录将转换为:

+

+  record Point(int x, int y) {
+  }
+
+

仅当项目或模块的语言级别为 15(预览)或更高时,此检查才会报告。

+

2020.3 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassComplexity.html b/original-plugin-raw/zh/inspectionDescriptions/ClassComplexity.html new file mode 100644 index 000000000..8bf0566e3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassComplexity.html @@ -0,0 +1,9 @@ + + +报告总复杂度超过指定最大值的类。 +

类的总复杂度是该类声明的所有方法和初始值设定项的循环复杂度的总和。 继承的方法和初始值设定项不计入总复杂度。

+

过高的复杂度表明该类应该被重构为几个更小的类。

+ +

使用下面的循环复杂度限制字段可指定类允许的最大复杂度。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassCoupling.html b/original-plugin-raw/zh/inspectionDescriptions/ClassCoupling.html new file mode 100644 index 000000000..aa2eeb064 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassCoupling.html @@ -0,0 +1,13 @@ + + +报告引用过多其他类的类。 +

耦合度过高的类可能非常脆弱,应该被拆分为较小的类。

+ +

配置检查:

+
    +
  • 使用类耦合限制字段可指定类允许的最大耦合度。
  • +
  • 使用包括与 Java 系统类的耦合选项可指定是否应计算对系统类(java.javax. 软件包中的那些类)的引用。
  • +
  • 使用包括与库类的耦合选项可指定是否应该计算对任何库类的引用。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassEscapesItsScope.html b/original-plugin-raw/zh/inspectionDescriptions/ClassEscapesItsScope.html new file mode 100644 index 000000000..480b1e202 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassEscapesItsScope.html @@ -0,0 +1,21 @@ + + +当签名中类的可见性不如成员本身的可见性时,报告类在字段或方法签名中的用法。 +虽然是合法的 Java,但此类成员在可见性范围之外是无用的。 +

示例:

+
    +
  • 返回 private 内部 classpublic 方法。
  • +
  • 类型为 package-local classprotected 字段。
  • +
+

+在 Java 9 中,模块可能会通过将其软件包排除在导出之外来隐藏某些类。 +因此,如果导出的 API 的签名包含非导出类,此类 API 在模块之外就是无用的。 + +

配置检查:

+
    +
  • 使用模块的 API 公开未导出的类(Java 9+) 选项可以报告公开未导出类的模块 API。
    请注意,项目或模块的语言级别为 9 或更高时,该选项才有效。
  • +
  • 使用公共 API 公开不可访问的类选项可以报告公开不可访问类的公共 API。
  • +
  • 使用 Package-local API 公开 private 类选项可以以报告公开 private 类的 package-local API。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassGetClass.html b/original-plugin-raw/zh/inspectionDescriptions/ClassGetClass.html new file mode 100644 index 000000000..822d64d28 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassGetClass.html @@ -0,0 +1,22 @@ + + +报告在 java.lang.Class 实例上调用的 getClass() 方法。 +

这通常是一个错误,因为结果总是等同于 Class.class。 +如果是错误,那么最好移除 getClass() 调用并直接使用限定符。 + 如果行为是故意的,最好显式编写 Class.class 以避免混淆。

+

示例:

+

+  void test(Class<?> clazz) {
+    String name = clazz.getClass().getName();
+  }
+
+

在应用可能的快速修复之一后:

+

+  void test(Class<?> clazz) {
+    String name = clazz.getName();
+  }
+
+ +

2018.2 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassHasNoToStringMethod.html b/original-plugin-raw/zh/inspectionDescriptions/ClassHasNoToStringMethod.html new file mode 100644 index 000000000..6e7d828d0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassHasNoToStringMethod.html @@ -0,0 +1,5 @@ + + +报告没有 toString() 方法的类。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassInDefaultPackage.html b/original-plugin-raw/zh/inspectionDescriptions/ClassInDefaultPackage.html new file mode 100644 index 000000000..bf8dcbac4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassInDefaultPackage.html @@ -0,0 +1,7 @@ + + +报告位于默认软件包中的类。 +

OSGi 并不能很好地处理这些类,因此强烈建议您在使用 OSGi 时将类放入一个软件包中。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassIndependentOfModule.html b/original-plugin-raw/zh/inspectionDescriptions/ClassIndependentOfModule.html new file mode 100644 index 000000000..c8afde8f0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassIndependentOfModule.html @@ -0,0 +1,12 @@ + + +报告符合以下情况的类: +
    +
  • 不依赖于其模块中的任何其他类
  • +
  • 不是其模块中任何其他类的依赖项
  • +
+

这种类表示临时或不连贯的模块化策略,并且通常可以有利地移动。

+ +

仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassInheritanceDepth.html b/original-plugin-raw/zh/inspectionDescriptions/ClassInheritanceDepth.html new file mode 100644 index 000000000..da062745d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassInheritanceDepth.html @@ -0,0 +1,9 @@ + + +报告继承层次结构过深的类。 +

继承太深的类可能令人困惑,并表明有必要重构。

+

库中的所有超类都被视为单个超类,库被认为不可修改。

+ +

使用继承深度限制字段可指定类的最大继承深度。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassInitializer.html b/original-plugin-raw/zh/inspectionDescriptions/ClassInitializer.html new file mode 100644 index 000000000..265eb8dc3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassInitializer.html @@ -0,0 +1,13 @@ + + +报告类中的非 static 初始值设定项。 +

某些编码标准禁止实例初始值设定项,建议使用构造函数或字段初始值设定项进行初始化。 + 此外,删除 static 关键字可能会导致意外创建非 static 初始值设定项,造成模糊不清的错误。 +

+

此检查不报告匿名类中的实例初始值设定项。 + +

+ 使用仅在类具有一个或多个构造函数时警告选项,可忽略没有任何构造函数的类中的实例初始值设定项。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassInitializerMayBeStatic.html b/original-plugin-raw/zh/inspectionDescriptions/ClassInitializerMayBeStatic.html new file mode 100644 index 000000000..e39d9bd34 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassInitializerMayBeStatic.html @@ -0,0 +1,28 @@ + + +报告可以使之为 static 的实例初始值设定项。 +

+ 如果实例初始值设定项不引用其类的任何非 static 成员,则可以为 static。 + static 初始值设定项在类解析后执行,而实例初始值设定项对此类的每个实例化执行。

+

示例:

+

+  class A {
+     public static String CONSTANT;
+     {
+        CONSTANT = "Hello";
+     }
+  }
+
+

在应用快速修复后:

+

+  class A {
+     public static String CONSTANT;
+     static {
+        CONSTANT = "Hello"; // 现在每个类仅实例化一次
+     }
+  }
+
+ + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassLoaderInstantiation.html b/original-plugin-raw/zh/inspectionDescriptions/ClassLoaderInstantiation.html new file mode 100644 index 000000000..bc43d5069 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassLoaderInstantiation.html @@ -0,0 +1,16 @@ + + +报告 java.lang.ClassLoader 类的实例化。 +

虽然通常是良性的,但在任何安全审核中都应该仔细检查 ClassLoader 的任何实例化。

+

示例:

+
    Class<?> loadExtraClass(String name) throws Exception {
+      try(URLClassLoader loader =
+          new URLClassLoader(new URL[]{new URL("extraClasses/")})) {
+        return loader.loadClass(name);
+      }
+    }
+  
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassMayBeInterface.html b/original-plugin-raw/zh/inspectionDescriptions/ClassMayBeInterface.html new file mode 100644 index 000000000..9ac12b651 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassMayBeInterface.html @@ -0,0 +1,44 @@ + + +报告可以转换为接口的 abstract 类。 +

最好使用接口而不是类,因为 Java 不支持多类继承,而一个类可以实现多个接口。

+

如果一个类没有超类(Object 以外)、只有 public static final 字段、public abstract 方法和 public 内部类,则可以将其转换为接口。 + + +

示例:

+

+abstract class Example {
+    public static final int MY_CONST = 42;
+    public abstract void foo();
+}
+
+class Inheritor extends Example {
+    @Override
+    public void foo() {
+        System.out.println(MY_CONST);
+    }
+}
+
+ +

在应用快速修复后:

+ +

+interface Example {
+    int MY_CONST = 42;
+    void foo();
+}
+
+class Inheritor implements Example {
+    @Override
+    public void foo() {
+        System.out.println(MY_CONST);
+    }
+}
+
+

配置检查:

+

+ 使用 Java 8 时报告包含非 abstract 方法的类 选项可用于仅报告其 static 和非 abstract 方法可以转换为 default 方法的类(仅适用于语言级别为 8 或更高时)。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassName.html b/original-plugin-raw/zh/inspectionDescriptions/ClassName.html new file mode 100644 index 000000000..70e5cba9c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassName.html @@ -0,0 +1,19 @@ + + +报告不遵循推荐命名惯例的类名。 +

+ 一致的命名会让阅读和理解代码变得更容易。 + 根据 Kotlin 官方样式指南,类名应以大写字母开头并使用驼峰拼写法。 +

+

可以通过更改“模式”正则表达式来引入其他命名规则。

+

示例:

+

+  class user(val name: String)
+
+

该快速修复会根据 Kotlin 命名惯例重命名类:

+

+  class User(val name: String)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassNameDiffersFromFileName.html b/original-plugin-raw/zh/inspectionDescriptions/ClassNameDiffersFromFileName.html new file mode 100644 index 000000000..44f7bbc46 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassNameDiffersFromFileName.html @@ -0,0 +1,7 @@ + + +报告所属的文件名与其不匹配的顶层类名。 +

虽然 Java 规范允许以这种方式命名非 public 类,但名称不匹配的文件可能令人困惑,并降低各种软件工具的实用性。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassNamePrefixedWithPackageName.html b/original-plugin-raw/zh/inspectionDescriptions/ClassNamePrefixedWithPackageName.html new file mode 100644 index 000000000..87a9d5889 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassNamePrefixedWithPackageName.html @@ -0,0 +1,15 @@ + + +报告名称前缀为其软件包名称并忽略大写差异的类。 +

虽然偶尔使用此类名称是合理的,但通常是由于欠佳的命名方案而使用,可能冗余并且令人生厌。

+

示例: +


+  package byteCode;
+  class ByteCodeAnalyzer {}
+
+

只能在编辑器中采用快速修复来重命名这种类。

+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassNameSameAsAncestorName.html b/original-plugin-raw/zh/inspectionDescriptions/ClassNameSameAsAncestorName.html new file mode 100644 index 000000000..38d52b0e6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassNameSameAsAncestorName.html @@ -0,0 +1,14 @@ + + +报告与其某个超类的名称相同,而其完全限定名称仍然不同的类。 +这种类名可能令人困惑。 +

示例:

+

+  package util;
+  abstract class Iterable<T> implements java.lang.Iterable<T> {}
+
+

只能在编辑器中采用快速修复来重命名这种类。

+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassNestingDepth.html b/original-plugin-raw/zh/inspectionDescriptions/ClassNestingDepth.html new file mode 100644 index 000000000..7b08b687b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassNestingDepth.html @@ -0,0 +1,8 @@ + + +报告嵌套内部类的数量超过指定最大值的类。 +

将内部类嵌套在其他内部类中令人困惑,并表明可能有必要重构。

+ +

使用嵌套限制字段可指定类允许的最大嵌套深度。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassNewInstance.html b/original-plugin-raw/zh/inspectionDescriptions/ClassNewInstance.html new file mode 100644 index 000000000..d9205cb42 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassNewInstance.html @@ -0,0 +1,21 @@ + + +报告对 java.lang.Class.newInstance() 的调用。 +

+ 此方法会传播由无实参构造函数抛出的异常,包括已检查的异常。 使用此方法可以有效地绕过本由编译器执行的编译时异常检查。 +

+

+ 建议通过快速修复将该调用替换为对 java.lang.reflect.Constructor.newInstance() 方法的调用,这种方式将构造函数抛出的任何异常包装在(已检查的)java.lang.reflect.InvocationTargetException 中,从而可以避免这个问题。 +

+

示例:

+

+  clazz.newInstance()
+
+

在应用快速修复后:

+

+  clazz.getConstructor().newInstance();
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassOnlyUsedInOneModule.html b/original-plugin-raw/zh/inspectionDescriptions/ClassOnlyUsedInOneModule.html new file mode 100644 index 000000000..8ce254869 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassOnlyUsedInOneModule.html @@ -0,0 +1,13 @@ + + +报告符合以下情况的类: +
    +
  • 不依赖于其模块中的任何其他类
  • +
  • 依赖于来自不同模块的类
  • +
  • 仅是来自该其他模块的类的依赖项
  • +
+

这种类可以移动到它们所依赖的模块中。

+ +

仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassOnlyUsedInOnePackage.html b/original-plugin-raw/zh/inspectionDescriptions/ClassOnlyUsedInOnePackage.html new file mode 100644 index 000000000..0a8ddeab9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassOnlyUsedInOnePackage.html @@ -0,0 +1,8 @@ + + +报告如下类:不依赖于其软件包中的任何其他类,而是依赖于其他软件包中的类,并且本身仅是此其他软件包中类的依赖项。 +请考虑将这种类移到它们所依赖的软件包中。 + +

仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassReferencesSubclass.html b/original-plugin-raw/zh/inspectionDescriptions/ClassReferencesSubclass.html new file mode 100644 index 000000000..4a6b03fbc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassReferencesSubclass.html @@ -0,0 +1,19 @@ + + +报告包含对其中一个子类进行了引用的类。 +此类引用可能令人困惑,并违反面向对象设计的多条规则。 +

示例:

+

+  class Entity {
+    // 警告:该类引用了其子类
+    void compare(SimpleEntity entity) {
+      ...
+    }
+  }
+  class SimpleEntity extends Entity {
+    ...
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassUnconnectedToPackage.html b/original-plugin-raw/zh/inspectionDescriptions/ClassUnconnectedToPackage.html new file mode 100644 index 000000000..ae8dc10b0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassUnconnectedToPackage.html @@ -0,0 +1,8 @@ + + +报告如下类:不依赖于其软件包中的任何其他类,也不是其软件包中任何其他类的依赖项。 +这种类表明临时或不连贯的打包策略,并且通常可以有利地移动。 + +

仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassWithMultipleLoggers.html b/original-plugin-raw/zh/inspectionDescriptions/ClassWithMultipleLoggers.html new file mode 100644 index 000000000..879e4c396 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassWithMultipleLoggers.html @@ -0,0 +1,20 @@ + + +报告声明了多个记录器的类。 +为应用程序提供统一的日志记录实现的一大重要步骤,是确保每个类都有一个专用的记录器。 +

示例:

+

+  public class Critical {
+    protected static final Logger LOG = Logger.getLogger(Critical.class);
+
+    protected static final Logger myLogger = Logger.getLogger(getClass());
+  }
+
+ +

+使用下表可指定 Logger 类名。 +此检查将报告声明多个字段具有所指定类的类型之一的类。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassWithOnlyPrivateConstructors.html b/original-plugin-raw/zh/inspectionDescriptions/ClassWithOnlyPrivateConstructors.html new file mode 100644 index 000000000..ee47be10d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassWithOnlyPrivateConstructors.html @@ -0,0 +1,7 @@ + + +报告仅包含 private 构造函数的类。 +

只有 private 构造函数的类不能在文件外扩展,应声明为 final

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassWithTooManyDependencies.html b/original-plugin-raw/zh/inspectionDescriptions/ClassWithTooManyDependencies.html new file mode 100644 index 000000000..fcae24901 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassWithTooManyDependencies.html @@ -0,0 +1,10 @@ + + +报告直接依赖于项目中过多其他类的类。 +

对这种类的任何依赖项的修改都可能需要更改该类,从而使其容易出现不稳定。

+

仅报告顶级类。

+ +

使用最大依赖项数字段可指定类允许的最大依赖项数。

+

仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassWithTooManyDependents.html b/original-plugin-raw/zh/inspectionDescriptions/ClassWithTooManyDependents.html new file mode 100644 index 000000000..406c031e6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassWithTooManyDependents.html @@ -0,0 +1,10 @@ + + +报告被过多其他类直接依赖的类。 +

对这种类的任何修改都可能需要更改许多其他类,这可能开销巨大。

+

仅报告顶级类。

+ +

使用下面的字段可指定类的最大允许依赖项数。

+

仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassWithTooManyTransitiveDependencies.html b/original-plugin-raw/zh/inspectionDescriptions/ClassWithTooManyTransitiveDependencies.html new file mode 100644 index 000000000..f12ac6a27 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassWithTooManyTransitiveDependencies.html @@ -0,0 +1,10 @@ + + +报告直接或间接依赖于过多其他类的类。 +

对这种类的任何依赖项的修改都可能需要更改该类,从而使其容易出现不稳定。

+

仅报告顶级类。

+ +

使用最大传递依赖项数字段可指定类允许的最大直接或间接依赖项数。

+

仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassWithTooManyTransitiveDependents.html b/original-plugin-raw/zh/inspectionDescriptions/ClassWithTooManyTransitiveDependents.html new file mode 100644 index 000000000..bd4a4d745 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassWithTooManyTransitiveDependents.html @@ -0,0 +1,11 @@ + + +报告被过多其他类直接或间接依赖的类。 +

对这种类的任何修改都可能需要更改许多其他类,这可能开销巨大。

+

仅报告顶级类。

+ +

使用最大传递依赖项数字段可指定类允许的最大直接或间接依赖项数。

+

仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassWithoutConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/ClassWithoutConstructor.html new file mode 100644 index 000000000..c0c5bbd4e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassWithoutConstructor.html @@ -0,0 +1,9 @@ + + +报告没有构造函数的类。 +

某些编码标准禁止这种类。

+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassWithoutLogger.html b/original-plugin-raw/zh/inspectionDescriptions/ClassWithoutLogger.html new file mode 100644 index 000000000..329c304be --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassWithoutLogger.html @@ -0,0 +1,21 @@ + + +报告没有声明记录器的类。 +

确保每个类都有一个专用的记录器是为应用程序提供统一的日志记录实现的重要步骤。 此检查不报告接口、枚举、注解、内部类和 abstract 类。

+

示例:

+

+  public class NoLoggerDeclared {
+
+    int calculateNthDigitOfPi(int n) {
+      // todo
+      return 1;
+    }
+  }
+
+ +

+ 使用 Options 部分中的表可以指定记录器类名。 +此检查将报告未声明具有指定类之一类型的字段的类。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ClassWithoutNoArgConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/ClassWithoutNoArgConstructor.html new file mode 100644 index 000000000..92cce4d07 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ClassWithoutNoArgConstructor.html @@ -0,0 +1,12 @@ + + +报告没有无实参构造函数的类。 +

此类构造函数在某些上下文中是必要的。 举个例子,如果需要使用反射来创建类。

+ +

+ 使用下面的复选框可忽略没有显式构造函数的类。 + 编译器为这种类提供了默认的无实参构造函数。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Clazy.html b/original-plugin-raw/zh/inspectionDescriptions/Clazy.html new file mode 100644 index 000000000..bfa9a0921 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Clazy.html @@ -0,0 +1,6 @@ + + +报告 Qt 相关的编译器警告,从不需要的内存分配到滥用的 API。 +

2021.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CloneCallsConstructors.html b/original-plugin-raw/zh/inspectionDescriptions/CloneCallsConstructors.html new file mode 100644 index 000000000..fc2f84b85 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CloneCallsConstructors.html @@ -0,0 +1,8 @@ + + +报告对 clone() 方法中的对象构造函数的调用。 +

与其直接创建这些对象来支持后续的子类,不如调用 clone() 来实例化 clone() 方法中的对象。 +此检查不会报告被声明为 finalclone() 方法或者final 类上的 clone() 方法。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CloneDeclaresCloneNotSupported.html b/original-plugin-raw/zh/inspectionDescriptions/CloneDeclaresCloneNotSupported.html new file mode 100644 index 000000000..5da4dfb21 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CloneDeclaresCloneNotSupported.html @@ -0,0 +1,24 @@ + + +报告不声明 throws CloneNotSupportedExceptionclone() 方法。 +

如果没有声明 throws CloneNotSupportedException,该方法的子类将不能以标准方式禁止克隆。 此检查不会报告声明为 finalclone() 方法和 final 类内的 clone() 方法。

+ +

配置检查:

+

使用仅对 'protected' 克隆方法发出警告选项可以指示此检查仅对 protected clone() 方法发出警告。 +Effective Java 一书(第二版和第三版)建议在 public 方法上省略 CloneNotSupportedException 声明,因为不抛出已检查的异常的方法更容易使用。 +

示例:

+

+  public class Example implements Cloneable {
+    // 方法未声明 ’throws CloneNotSupportedException‘
+    protected Object clone() {
+        try {
+            return super.clone();
+        } catch (CloneNotSupportedException e) {
+            return null;
+        }
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CloneInNonCloneableClass.html b/original-plugin-raw/zh/inspectionDescriptions/CloneInNonCloneableClass.html new file mode 100644 index 000000000..e45622ee0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CloneInNonCloneableClass.html @@ -0,0 +1,11 @@ + + +报告重写 clone() 方法但不实现 Cloneable 接口的类。 +这通常表示编程错误。 + +

+ 使用仅对 'public' 克隆方法发出警告选项可以忽略不是 public 的方法。

+

对于设计为继承的类,您可以选择不实现 Cloneable 接口,而是重写 clone() 并将其声明为 protected,并决定是否在子类中实现 Cloneable 接口。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CloneReturnsClassType.html b/original-plugin-raw/zh/inspectionDescriptions/CloneReturnsClassType.html new file mode 100644 index 000000000..d713ac1ee --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CloneReturnsClassType.html @@ -0,0 +1,32 @@ + + +报告返回类型与其所在的类不同的 clone() 方法。 +

clone() 方法的返回类型通常为 java.lang.Object,这导致其难以被客户端使用。 +Effective Java(第二版和第三版)建议将 clone() 方法的返回类型设为与其返回对象的类的类型相同。

+

示例:

+

+  class Foo implements Cloneable {
+    public Object clone() {
+      try {
+        return super.clone();
+      } catch (CloneNotSupportedException e) {
+        throw new AssertionError();
+      }
+    }
+  }
+
+

在应用快速修复后:

+

+  class Foo implements Cloneable {
+    public Foo clone() {
+      try {
+        return (Foo)super.clone();
+      } catch (CloneNotSupportedException e) {
+        throw new AssertionError();
+      }
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CloneableClassInSecureContext.html b/original-plugin-raw/zh/inspectionDescriptions/CloneableClassInSecureContext.html new file mode 100644 index 000000000..5b8afbb5b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CloneableClassInSecureContext.html @@ -0,0 +1,23 @@ + + +报告可能被克隆的类。 +

+ 如果一个类支持 Cloneable 接口,并且它的 clone() 方法没有定义为立即抛出错误,则该类可以被克隆。 在用于安全使用的代码中,可克隆类可能是危险的。 +

+

示例:

+class SecureBean implements Cloneable {} +

在应用快速修复后:

class SecureBean {} +

+当类扩展现有的可克隆类或实现可克隆接口时,应用该快速修复后,代码可能如下所示: +

class SecureBean extends ParentBean {
+    @Override
+    protected SecureBean clone() throws CloneNotSupportedException {
+        throw new CloneNotSupportedException();
+    }
+}
+
+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CloneableImplementsClone.html b/original-plugin-raw/zh/inspectionDescriptions/CloneableImplementsClone.html new file mode 100644 index 000000000..8c5b74a6f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CloneableImplementsClone.html @@ -0,0 +1,38 @@ + + +报告实现 Cloneable 接口但不重写 clone() 方法的类。 +

这种类使用 clone() 的默认实现,它不是 public,而是 protected,并且不复制该类的可变状态。

+

可以通过快速修复生成基本的 clone() 方法,它可以作为 Cloneable 类所期望的正常运行的 clone() 方法的基础。

+

示例:

+

+  public class Data implements Cloneable {
+    private String[] names;
+  }
+
+

在应用快速修复后:

+

+  public class Data implements Cloneable {
+    private String[] names;
+
+    @Override
+    public Data clone() {
+      try {
+        Data clone = (Data) super.clone();
+        // TODO:在此处复制可变状态,因此克隆无法更改原始克隆的内部项 
+         return clone;
+      } catch (CloneNotSupportedException e) {
+        throw new AssertionError();
+      }
+    }
+  }
+
+ + +

使用忽略由于继承而可克隆的类选项可以忽略因继承自 Cloneable 类而 Cloneable 的类。

+

使用忽略需要 Cloneable 才能调用超类的 clone() 方法的情况选项可以忽略因从超类调用 clone() 方法而需要实现 Cloneable 的类。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CodeBlock2Expr.html b/original-plugin-raw/zh/inspectionDescriptions/CodeBlock2Expr.html new file mode 100644 index 000000000..5f150a2f5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CodeBlock2Expr.html @@ -0,0 +1,15 @@ + + +当可以使用表达式样式的主体时,报告包含代码块主体的 lambda 表达式。 +转换的结果更短更清晰。 +

示例:

+

+  Comparable<String> c = o -> {return 0;};
+
+

在应用快速修复后:

+

+  Comparable<String> c = o -> 0;
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptFunctionSignatures.html b/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptFunctionSignatures.html new file mode 100644 index 000000000..74c71ffa0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptFunctionSignatures.html @@ -0,0 +1,6 @@ + + +检查 CoffeeScript 调用表达式中与所引用函数的签名不匹配的实参,包括实参的类型、数目和顺序。 +也报告在形参和返回类型方面与被重载函数不匹配的重载函数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptInfiniteLoop.html b/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptInfiniteLoop.html new file mode 100644 index 000000000..96e9b9344 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptInfiniteLoop.html @@ -0,0 +1,6 @@ + + +报告只能通过抛出异常来退出的 for 、 +whiledo 语句。 虽然此类语句可能是正确的,但它们通常表明有编码错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptLiteralNotFunction.html b/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptLiteralNotFunction.html new file mode 100644 index 000000000..d8b5a7d7e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptLiteralNotFunction.html @@ -0,0 +1,5 @@ + + +报告作为函数调用的对象文字表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptModulesDependencies.html b/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptModulesDependencies.html new file mode 100644 index 000000000..84caa3ead --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptModulesDependencies.html @@ -0,0 +1,6 @@ + + +报告未通过 import 语句引用的模块。 +

建议插入 import 语句。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptSillyAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptSillyAssignment.html new file mode 100644 index 000000000..25a799dc2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptSillyAssignment.html @@ -0,0 +1,5 @@ + + +报告 CoffeeScript 内容中任何 x = x 形式的赋值。 此类赋值通常表明有编码错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptSwitchStatementWithNoDefaultBranch.html b/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptSwitchStatementWithNoDefaultBranch.html new file mode 100644 index 000000000..417ad1503 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptSwitchStatementWithNoDefaultBranch.html @@ -0,0 +1,6 @@ + + +报告 CoffeeScript 内容中没有 default 分支的 switch 语句。 如果意外情况被无提示地忽略, +此类语句会导致难以跟踪错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptUnusedLocalSymbols.html b/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptUnusedLocalSymbols.html new file mode 100644 index 000000000..f27703d70 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CoffeeScriptUnusedLocalSymbols.html @@ -0,0 +1,5 @@ + + +报告本地可以访问的并且未使用的形参、局部变量、函数、类或 private 成员声明。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CollectHeadOption.html b/original-plugin-raw/zh/inspectionDescriptions/CollectHeadOption.html new file mode 100644 index 000000000..0d1133b48 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CollectHeadOption.html @@ -0,0 +1,16 @@ + + +

报告 collection.collect(f).headOption 并建议在可能的情况下将其替换为 collection.collectFirst(f)

+

示例:

+

+  val x: Set[Int]
+  x.collect(f).headOption
+
+

在应用快速修复后:

+

+  val x: Set[Int]
+  x.collectFirst(f)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CollectionAddAllCanBeReplacedWithConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/CollectionAddAllCanBeReplacedWithConstructor.html new file mode 100644 index 000000000..83e380c09 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CollectionAddAllCanBeReplacedWithConstructor.html @@ -0,0 +1,16 @@ + + +在使用无参构造函数实例化集合后,立即报告 Collection.addAll()Map.putAll() 调用。 +

此类结构可以替换为对形参化构造函数的单次调用,从而简化代码。 此外,对于某些集合,替换可能会更高效。

+

示例:

+
  Set<String> set = new HashSet<>();
+  set.addAll(Arrays.asList("alpha", "beta", "gamma"));
+
+

可以替换为:

+
  Set<String> set = new HashSet<>(Arrays.asList("alpha", "beta", "gamma"));
+
+ +

+默认情况下支持标准的 JDK 集合类。 此外,还可以在检查选项中指定其他类。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CollectionAddedToSelf.html b/original-plugin-raw/zh/inspectionDescriptions/CollectionAddedToSelf.html new file mode 100644 index 000000000..b4479ff09 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CollectionAddedToSelf.html @@ -0,0 +1,15 @@ + + +报告对 java.util.Collection +或 java.util.Map 的方法调用的实参是集合或映射本身的情况。 +由于复制粘贴,原始类型的代码中可能会出现此类情况。 + +

示例:

+

+  ArrayList list = new ArrayList<>();
+  list.add(list); // 此处为警告
+  return list.hashCode(); // 抛出 StackOverflowError
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CollectionContainsUrl.html b/original-plugin-raw/zh/inspectionDescriptions/CollectionContainsUrl.html new file mode 100644 index 000000000..9b72d6db8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CollectionContainsUrl.html @@ -0,0 +1,16 @@ + + +报告包含 java.net.URL 对象的 java.util.Setjava.util.Map 的实例化。 +

+ 由于对 URLequals()hashCode() 方法的调用,将 URL 对象添加到此类集合可能会导致性能问题。 +

+

+ URLequals()hashCode() 方法使用 DNS 查找,这取决于网络的可用性,且 DNS 服务器的速度可能会导致显著延迟。 +

+

示例:

+

+  Set<URL> set = new HashSet<URL>();
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CollectionsFieldAccessReplaceableByMethodCall.html b/original-plugin-raw/zh/inspectionDescriptions/CollectionsFieldAccessReplaceableByMethodCall.html new file mode 100644 index 000000000..985304278 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CollectionsFieldAccessReplaceableByMethodCall.html @@ -0,0 +1,15 @@ + + +报告 java.util.Collections 字段的用法:EMPTY_LISTEMPTY_MAP +或 EMPTY_SET。 这些字段用法可以替换为以下方法调用:emptyList()emptyMap()emptySet()。 +此类方法调用会防止编译器发出未检查的警告,因为可以推断出类型形参。 +

示例:

+
List<Integer> emptyList = Collections.EMPTY_LIST;
+

在应用快速修复后:

+
List<Integer> emptyList = Collections.emptyList();
+ +

该检查仅在项目或模块的语言级别为 5 或更高时有效。

+

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CollectionsMustHaveInitialCapacity.html b/original-plugin-raw/zh/inspectionDescriptions/CollectionsMustHaveInitialCapacity.html new file mode 100644 index 000000000..51ed17f62 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CollectionsMustHaveInitialCapacity.html @@ -0,0 +1,19 @@ + + +报告在不指定初始容量的情况下实例化新 Collection 对象的尝试。 +

+ 如果未指定初始容量,则使用默认容量,这很少是最佳选择。 如果在超出初始容量时需要重新分配空间和复制内存,则未能为集合指定初始容量可能会导致性能问题。 + 此检查会检查在检查的设置中列出的类的分配。 +

+

示例:

+

+  new HashMap<String, String>();
+
+ +

使用以下选项配置检查:

+
    +
  • 列出应检查的集合类。
  • +
  • 是否忽略字段初始值设定项。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CommaExpressionJS.html b/original-plugin-raw/zh/inspectionDescriptions/CommaExpressionJS.html new file mode 100644 index 000000000..e1e376d9c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CommaExpressionJS.html @@ -0,0 +1,7 @@ + + +报告逗号表达式。 此类表达式通常表明代码过于巧妙,并且可能导致难以捉摸的错误。 +初始值设定项中的逗号表达式或 for 循环的 update 部分中的逗号表达式 +被忽略。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CommandLineInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CommandLineInspection.html new file mode 100644 index 000000000..2703c8ace --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CommandLineInspection.html @@ -0,0 +1,7 @@ + + +

报告您在控制台中键入的命令实参顺序不正确的问题。 此检查还会验证选项名称和实参是否正确。

+

如果您将使用命令行界面(例如 Django 中的 manage.py),请不要禁用此检查。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CommentedOutCode.html b/original-plugin-raw/zh/inspectionDescriptions/CommentedOutCode.html new file mode 100644 index 000000000..f40369385 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CommentedOutCode.html @@ -0,0 +1,9 @@ + + +报告包含 Java 代码的注释。 +

通常,被注释掉的代码很快就会过时并且会引起误解。 +由于大多数项目使用某种版本控制系统,因此最好完全删除注释掉的代码并改用 VCS 历史记录。

+ +

2020.3 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComparableImplementedButEqualsNotOverridden.html b/original-plugin-raw/zh/inspectionDescriptions/ComparableImplementedButEqualsNotOverridden.html new file mode 100644 index 000000000..3c33185aa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComparableImplementedButEqualsNotOverridden.html @@ -0,0 +1,38 @@ + + +报告实现 java.lang.Comparable 但不重写 equals() 的类。 +

+ 如果未重写 equals()equals() 实现与 compareTo() 实现将不一致。 如果将这种类的对象添加到 java.util.SortedSet 等集合,该集合将违反根据 equals() 定义的 java.util.Set 的约定。 +

+

示例:

+

+  class Length implements Comparable<Length> {
+    private int cm = 0;
+
+    @Override
+    public int compareTo(@NotNull Length o) {
+      if (cm == o.cm) return 0;
+      return cm < o.cm ? -1 : 1;
+    }
+  }
+
+

在应用快速修复后:

+

+  class Length implements Comparable<Length> {
+    private int cm = 0;
+
+    @Override
+    public int compareTo(@NotNull Length o) {
+      if (cm == o.cm) return 0;
+      return cm < o.cm ? -1 : 1;
+    }
+
+    @Override
+    public boolean equals(Object o) {
+      return o instanceof Length && compareTo((Length) o) == 0;
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComparatorCombinators.html b/original-plugin-raw/zh/inspectionDescriptions/ComparatorCombinators.html new file mode 100644 index 000000000..a72caa8cc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComparatorCombinators.html @@ -0,0 +1,26 @@ + + +报告定义为可以使用 Comparator.comparing() 调用表示的 lambda 表达式的 Comparator 实例。 +还会报告可以替换为 Comparator.thenComparing() 表达式的链式比较。 +

示例:

+

+  myList.sort((person1, person2) -> person1.getName().compareTo(person2.getName()));
+
+  myList2.sort((person1, person2) -> {
+      int res = person1.first().compareTo(person2.first());
+      if(res == 0) res = person1.second().compareTo(person2.second());
+      if(res == 0) res = person1.third() - person2.third();
+      return res;
+  });
+
+

在应用快速修复后:

+

+  myList.sort(Comparator.comparing(Person::getName));
+
+  myList2.sort(Comparator.comparing(Person::first)
+                         .thenComparing(Person::second)
+                         .thenComparingInt(Person::third));
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComparatorMethodParameterNotUsed.html b/original-plugin-raw/zh/inspectionDescriptions/ComparatorMethodParameterNotUsed.html new file mode 100644 index 000000000..bb13ae6e8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComparatorMethodParameterNotUsed.html @@ -0,0 +1,21 @@ + + +报告 Comparator.compare() 实现中的问题。 +

报告的情况如下:

+
    +
  • + 未使用形参。 很可能这是拼写错误,另一个形参与本身相比较,或者未正确实现方法。 +
  • +
  • + 比较器显然没有为相同的元素返回 0。 此类比较器违反了约定,当遇到相同的元素时,会产生不可预测的结果。 特别是,某些数据可能会出现异常而导致排序失败。
  • +
+

示例:

+

+  Comparator<String> lambda =
+    (a, b) -> a.length() > b.length()
+              ? 0
+              : Math.random() > 0.5 ? -1 : 1;
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComparatorNotSerializable.html b/original-plugin-raw/zh/inspectionDescriptions/ComparatorNotSerializable.html new file mode 100644 index 000000000..09fa07f27 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComparatorNotSerializable.html @@ -0,0 +1,31 @@ + + +报告实现 java.lang.Comparator 但不实现 java.io.Serializable 的类。 +

+ 如果使用不可序列化的比较器来构建 java.util.TreeMapjava.util.TreeSet 之类的有序集合,那么该集合也将不可序列化。 这可能会导致意外且难以诊断的错误。 +

+

+ java.lang.Comparator 的子类通常无状态,因此只需将它们标记为可序列化,即可轻松避免此类问题。 +

+

示例:

+

+  class Foo implements Comparator { // 警告
+      @Override
+      public int compare(Object o1, Object o2) {
+          /* ... */
+      }
+  }
+
+

在应用快速修复后:

+

+  class Foo implements Comparator, Serializable { // 此处无警告
+      @Override
+      public int compare(Object o1, Object o2) {
+          /* ... */
+      }
+  }
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComparatorResultComparison.html b/original-plugin-raw/zh/inspectionDescriptions/ComparatorResultComparison.html new file mode 100644 index 000000000..22f1c7066 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComparatorResultComparison.html @@ -0,0 +1,25 @@ + + +报告 Comparator.compare()Comparable.compareTo() 调用结果与非零常量的比较。 +根据约定,这些方法可以返回任何整数(不只是 -1、0 或 1),因此与特定数字比较是一种不好的做法。 某些广泛使用的比较方法(例如 String.compareTo())实际上返回 [-1..1] 范围之外的值,此类比较可能会导致不正确的程序行为。 +

示例:

+

+  void validate(String s1, String s2) {
+    // 与 1 比较不正确
+    if (s1.compareTo(s2) == 1) {
+      throw new IllegalArgumentException("Incorrect order");
+    }
+  }
+
+

在应用快速修复后:

+

+  void validate(String s1, String s2) {
+    if (s1.compareTo(s2) > 0) {
+      throw new IllegalArgumentException("Incorrect order");
+    }
+  }
+
+ +

2017.2 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CompareToUsesNonFinalVariable.html b/original-plugin-raw/zh/inspectionDescriptions/CompareToUsesNonFinalVariable.html new file mode 100644 index 000000000..6ad18bcb5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CompareToUsesNonFinalVariable.html @@ -0,0 +1,39 @@ + + +报告对 compareTo() 实现中的非 final 字段的访问。 +

+ 此类访问可能导致 compareTo() 在对象生命周期的不同时刻返回不同的结果,进而可能在使用 java.util.TreeSet 等标准集合类时导致问题。 +

+

+ 只有在对该字段不具备写入访问权限时,才可以通过快速修复将该字段设为 final,否则不建议进行修正。 +

+

示例:

+

+  class Foo implements Comparable<Foo>{
+    private int index;
+    Foo(int idx) {
+      index = idx;
+    }
+    @Override
+    public int compareTo(Foo foo) {
+     return Integer.compare(this.index, foo.index);
+    }
+  }
+
+

在应用快速修复后:

+

+  class Foo implements Comparable<Foo>{
+    private final int index;
+    Foo(int idx) {
+      index = idx;
+    }
+    @Override
+    public int compareTo(Foo foo) {
+      return Integer.compare(this.index, foo.index);
+    }
+  }
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComparingDiffCollectionKinds.html b/original-plugin-raw/zh/inspectionDescriptions/ComparingDiffCollectionKinds.html new file mode 100644 index 000000000..01eb9d730 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComparingDiffCollectionKinds.html @@ -0,0 +1,17 @@ + + +

报告比较不同类别的 Scala 集合的情况。

+

不同类别(Set、Seq、Map 或 Iterator)的 Scala 集合不能相等,也不应与数组进行比较。 此检查建议将其中一个集合转换为同一类别。

+

示例:

+

+  seq == iterator
+  seq != array
+
+

在应用快速修复后:

+

+  seq.toIterator == iterator or seq == iterator.toSeq
+  seq != array.toSeq
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComparingLength.html b/original-plugin-raw/zh/inspectionDescriptions/ComparingLength.html new file mode 100644 index 000000000..4d595ac0a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComparingLength.html @@ -0,0 +1,32 @@ + + +

报告比较 .length.size,并建议将其替换为 .sizeIs

+

示例:

+

+  var seq: Seq[Int]
+  seq.length == n
+  seq.length != n
+  seq.length < n
+  seq.length > n
+
+  seq.size == n
+  seq.size != n
+  seq.size < n
+  seq.size > n
+
+

在应用快速修复后:

+

+  var seq: Seq[Int]
+  seq.sizeIs == n
+  seq.sizeIs != n
+  seq.sizeIs < n
+  seq.sizeIs > n
+
+  seq.sizeIs == n
+  seq.sizeIs != n
+  seq.sizeIs < n
+  seq.sizeIs > n
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComparingUnrelatedTypes.html b/original-plugin-raw/zh/inspectionDescriptions/ComparingUnrelatedTypes.html new file mode 100644 index 000000000..14c31d85e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComparingUnrelatedTypes.html @@ -0,0 +1,11 @@ + + +

报告表达式的比较 (== and !=),两者的类型不能相同。

+ +

示例:

+

+  1 == "test"
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComparisonOfShortAndChar.html b/original-plugin-raw/zh/inspectionDescriptions/ComparisonOfShortAndChar.html new file mode 100644 index 000000000..0adcbf723 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComparisonOfShortAndChar.html @@ -0,0 +1,11 @@ + + +报告 shortchar 值之间的相等比较。 +

此类比较可能会导致难以捉摸的错误,因为虽然两个值都是 2 字节长,short 值有符号,而 char 值无符号。

+

示例:

+

+if (Character.MAX_VALUE == shortValue()) {} // 永远不能为 true
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComparisonToNaN.html b/original-plugin-raw/zh/inspectionDescriptions/ComparisonToNaN.html new file mode 100644 index 000000000..400a98214 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComparisonToNaN.html @@ -0,0 +1,16 @@ + + +报告任何与 Double.NaNFloat.NaN 的比较。 +此类比较毫无意义,因为 NaN 不等于任何内容,包括不等于自身。 +改用 Double.isNaN()Float.isNaN() 方法。 +

示例:

+

+  if (x == Double.NaN) {...}
+
+

在应用快速修复后:

+

+  if (Double.isNaN(x)) {...}
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComplexRedundantLet.html b/original-plugin-raw/zh/inspectionDescriptions/ComplexRedundantLet.html new file mode 100644 index 000000000..f980d14ef --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComplexRedundantLet.html @@ -0,0 +1,27 @@ + + +报告基于实参的冗余 let 调用。 +

当 lambda 形参仅用作调用表达式中的限定符时,let 冗余。

+

如果需要为限定表达式命名,请声明一个局部变量。

+

示例:

+

+  fun splitNumbers() {
+      "1,2,3".let { it.split(',') }
+  }
+
+

该快速修复会移除额外的 let() 调用:

+

+  fun example() {
+      "1,2,3".split(',')
+  }
+
+

或者:

+

+  fun splitNumbers() {
+      val numbers = "1,2,3"
+      numbers.split(',')
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComponentNotRegistered.html b/original-plugin-raw/zh/inspectionDescriptions/ComponentNotRegistered.html new file mode 100644 index 000000000..0b2f68059 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComponentNotRegistered.html @@ -0,0 +1,18 @@ + + +报告未在 plugin.xml 描述符中注册的插件组件和操作。 +

+ 这在使用“创建类”意图时可简化新组件的开发,并且可以帮助跟踪潜在的过时组件。 +

+

+ 提供的用于注册组件的快速修复将在 plugin.xml 描述符中添加必要的注册。 +

+ +

配置检查:

+
    +
  • 使用检查操作选项可以关闭操作的检查,因为它们可能是有意创建的,并且可能是动态注册的。 +
  • +
  • 使用忽略非 public 类选项可以忽略 abstract 和非 public 类。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComponentRegistrationProblems.html b/original-plugin-raw/zh/inspectionDescriptions/ComponentRegistrationProblems.html new file mode 100644 index 000000000..98e3a89bd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComponentRegistrationProblems.html @@ -0,0 +1,25 @@ + + +报告代码和 plugin.xml 描述符中未正确注册的插件组件(组件和操作)。 +

+ 报告的问题如下: +

+
    +
  • 未解析的组件/操作实现类 (plugin.xml)
  • +
  • 未解析的组件接口类 (plugin.xml)
  • +
  • 无法将组件实现类分配给其接口类 (plugin.xml)
  • +
  • 组件注册不正确,例如,将 ProjectComponent 注册为应用程序组件,或者类完全没有实现任何组件接口(plugin.xml 和 Java 代码) +
  • +
  • 类修饰符不正确:操作类必须为 public,并且必须有 public 无实参构造函数。 此外,操作和组件实现类不得为 abstract(plugin.xml 和 Java 代码) +
  • +
  • 接口类重复:只能将类用作接口类一次 (plugin.xml)
  • +
+ +

配置检查:

+
    +
  • 使用检查插件描述符(plugin.xml) 选项可以禁用 plugin.xml 描述符中的检查。
  • +
  • 使用检查 Java 操作选项可以禁用操作代码中的检查。
  • +
  • 使用检查 Java 代码选项可以禁用代码中的所有检查。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComposeMissingKeys.html b/original-plugin-raw/zh/inspectionDescriptions/ComposeMissingKeys.html new file mode 100644 index 000000000..7ebcd55c5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComposeMissingKeys.html @@ -0,0 +1,5 @@ + + +报告 Docker Compose 文件中缺少必需键。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComposeUnknownKeys.html b/original-plugin-raw/zh/inspectionDescriptions/ComposeUnknownKeys.html new file mode 100644 index 000000000..d1ca4b830 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComposeUnknownKeys.html @@ -0,0 +1,5 @@ + + +报告 Docker Compose 文件中无法识别的键。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComposeUnknownValues.html b/original-plugin-raw/zh/inspectionDescriptions/ComposeUnknownValues.html new file mode 100644 index 000000000..c1826e810 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComposeUnknownValues.html @@ -0,0 +1,5 @@ + + +报告 Docker Compose 文件中无法识别的值。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComposeUnquotedPorts.html b/original-plugin-raw/zh/inspectionDescriptions/ComposeUnquotedPorts.html new file mode 100644 index 000000000..3b209dad8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComposeUnquotedPorts.html @@ -0,0 +1,25 @@ + + +

报告 Docker Compose 文件中未加引号的端口映射。

+

+ 根据 Compose 文件规范HOST:CONTAINER 格式的映射端口在使用小于 60 的容器端口时可能会导致错误的结果,因为 YAML 会将格式为 xx:yy 的数字解析为六十进制值。 + 因此,我们建议始终将端口映射明确指定为字符串。 +

+

示例:

+

+  ports:
+    - 3000
+    - 3000-3005
+    - 22:22
+    - 8080:8080
+
+

在应用快速修复后:

+

+  ports:
+    - "3000"
+    - "3000-3005"
+    - "22:22"
+    - "8080:8080"
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ComposerJsonFileReferencesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ComposerJsonFileReferencesInspection.html new file mode 100644 index 000000000..b534583cd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ComposerJsonFileReferencesInspection.html @@ -0,0 +1,5 @@ + + +报告 composer.json 中未解析的文件引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CompoundInitializers.html b/original-plugin-raw/zh/inspectionDescriptions/CompoundInitializers.html new file mode 100644 index 000000000..2f438c1a1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CompoundInitializers.html @@ -0,0 +1,5 @@ + + +在此处写下您的描述 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConditionCoveredByFurtherCondition.html b/original-plugin-raw/zh/inspectionDescriptions/ConditionCoveredByFurtherCondition.html new file mode 100644 index 000000000..e5fde48ad --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConditionCoveredByFurtherCondition.html @@ -0,0 +1,9 @@ + + +报告由于后续条件完全覆盖而变得冗余的条件。 +

例如,在 value != -1 && value > 0 条件下,第一部分是冗余的:如果它为 false,那么第二部分也为 false。 +或者在像 obj != null && obj instanceof String 这样的条件下,null 检查是冗余的,因为 instanceof 运算符意味着非 null。

+ +

2018.3 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConditionSignal.html b/original-plugin-raw/zh/inspectionDescriptions/ConditionSignal.html new file mode 100644 index 000000000..fea58b12e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConditionSignal.html @@ -0,0 +1,6 @@ + + +报告对 java.util.concurrent.locks.Condition.signal() 的调用。 虽然偶尔有用,但在几乎所有情况下,signalAll() 都是更好、更安全的选择。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConditionalBreakInInfiniteLoop.html b/original-plugin-raw/zh/inspectionDescriptions/ConditionalBreakInInfiniteLoop.html new file mode 100644 index 000000000..6fa153f6a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConditionalBreakInInfiniteLoop.html @@ -0,0 +1,19 @@ + + +报告在循环开始或结束处的条件中断,并建议使用循环条件来缩短代码。 +

示例:

+

+  while (true) {
+    if (i  == 23) break;
+    i++;
+  }
+
+

在应用快速修复后:

+

+  while (i != 23) {
+    i++;
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConditionalCanBeOptional.html b/original-plugin-raw/zh/inspectionDescriptions/ConditionalCanBeOptional.html new file mode 100644 index 000000000..ce36eb0aa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConditionalCanBeOptional.html @@ -0,0 +1,17 @@ + + +报告 null 检查条件并建议用 Optional 链替换它们。 +

示例:

+

+  return str == null ? "" : str.trim();
+
+

应用快速修复后:

+
return Optional.ofNullable(str).map(String::trim).orElse("");
+
+

虽然替换并不总是更短,但它可能有助于进一步重构(例如,将方法返回值更改为 Optional)。

+

请注意,当条件的非 null 分支返回 null 值时,相应的映射步骤将产生一个空的 Optional,可能会改变语义。 如果不能静态证明保留语义,则快速修复操作名称将包含 “(可能更改语义)” 通知,并关闭检查高亮显示。

+ +

仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。

+

2018.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConditionalCanBePushedInsideExpression.html b/original-plugin-raw/zh/inspectionDescriptions/ConditionalCanBePushedInsideExpression.html new file mode 100644 index 000000000..2052e8746 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConditionalCanBePushedInsideExpression.html @@ -0,0 +1,19 @@ + + +报告满足以下条件表达式:带有 thenelse 分支,且足够相似,以便表达式可以移入内部。 此操作会缩短代码。 +

示例:

+

+  double g(int a, int b) {
+    return a == b ? Math.cos(0) : Math.cos(1);
+  }
+
+

在应用快速修复后:

+

+  double g(int a, int b) {
+    return Math.cos(a == b ? 0 : 1);
+  }
+
+ +

2017.2 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConditionalExpression.html b/original-plugin-raw/zh/inspectionDescriptions/ConditionalExpression.html new file mode 100644 index 000000000..14058297e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConditionalExpression.html @@ -0,0 +1,29 @@ + + +报告三元条件运算符的用法并建议将它们转换为 if/else 语句。 +

一些代码标准禁止使用条件运算符。

+

示例:

+

+  Object result = (condition) ? foo() : bar();
+
+

在应用快速修复后:

+

+  Object result;
+  if (condition) {
+    comp = foo();
+  }
+  else {
+    comp = bar();
+  }
+
+ +

配置检查:

+

使用 对简单赋值和返回值忽略 选项忽略简单的赋值和返回并允许以下结构:

+

+  String s = (foo == null) ? "" : foo.toString();
+
+

+ 在不可能用 if 语句自动替换的上下文中(例如,当条件表达式用作 super() 构造函数调用),使用 忽略无法使用 if 语句的位置 选项来忽略条件表达式。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConditionalExpressionJS.html b/original-plugin-raw/zh/inspectionDescriptions/ConditionalExpressionJS.html new file mode 100644 index 000000000..2b073449f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConditionalExpressionJS.html @@ -0,0 +1,6 @@ + + +报告三元条件表达式。 有些编码标准禁止此类表达式, +而是支持显式的 if 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConditionalExpressionWithIdenticalBranches.html b/original-plugin-raw/zh/inspectionDescriptions/ConditionalExpressionWithIdenticalBranches.html new file mode 100644 index 000000000..407f5fe78 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConditionalExpressionWithIdenticalBranches.html @@ -0,0 +1,17 @@ + + +报告包含相同 thenelse 分支的条件表达式。 +

此类表达式几乎肯定表明有错误。 该检查提供了一种折叠条件表达式的修正。

+

示例:

+

+  int y = x == 10 ? 4 : 4;
+
+

在应用快速修复后:

+

+  int y = 4;
+
+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConditionalExpressionWithIdenticalBranchesJS.html b/original-plugin-raw/zh/inspectionDescriptions/ConditionalExpressionWithIdenticalBranchesJS.html new file mode 100644 index 000000000..bb24b790d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConditionalExpressionWithIdenticalBranchesJS.html @@ -0,0 +1,5 @@ + + +报告具有相同的 thenelse 分支的三元条件表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConfigurationProperties.html b/original-plugin-raw/zh/inspectionDescriptions/ConfigurationProperties.html new file mode 100644 index 000000000..8f566cc8f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConfigurationProperties.html @@ -0,0 +1,18 @@ + + +

报告 @ConfigurationProperties 注解中定义的无效前缀:

+
    +
  • 缺少前缀
  • +
  • 空前缀
  • +
  • 重复前缀
  • +
  • 短横线隔开式命名以外的表示法中的前缀
  • +
+

+ 检查在使用 @ConfigurationProperties 注解且未通过 @EnableConfigurationProperties 注册、标记为 Spring 组件或通过 @ConfigurationPropertiesScan 扫描的类中触发。

+ +

+ 当项目或模块的 Spring Boot 版本设置为 2.2.0 或更高版本时,此检查仅在使用 @ConfigurationProperties 注解且未通过 @ConfigurationPropertiesScan 扫描的类中触发。 +

+

2018.3 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConflictingAnnotations.html b/original-plugin-raw/zh/inspectionDescriptions/ConflictingAnnotations.html new file mode 100644 index 000000000..fa57eaa8a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConflictingAnnotations.html @@ -0,0 +1,8 @@ + + +

+ 报告冲突的 Guice 注解。 + 例如,同时使用 @ImplementedBy@ProvidedBy,或者 @Singleton@SessionScoped。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConflictingExtensionProperty.html b/original-plugin-raw/zh/inspectionDescriptions/ConflictingExtensionProperty.html new file mode 100644 index 000000000..3e21c18c5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConflictingExtensionProperty.html @@ -0,0 +1,19 @@ + + +报告与那些从 Java getset 方法自动生成的合成属性相冲突的扩展属性。 +

应移除或重命名此类属性,以避免将来在编译器中进行更改时破坏代码。

+

该快速修复会删除扩展属性。

+

示例:

+

+  val File.name: String
+      get() = getName()
+
+

该快速修复会添加 @Deprecated 注解:

+

+  @Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("name"), level = DeprecationLevel.HIDDEN)
+  val File.name: String
+      get() = getName()
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConfusingElse.html b/original-plugin-raw/zh/inspectionDescriptions/ConfusingElse.html new file mode 100644 index 000000000..91d7f773f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConfusingElse.html @@ -0,0 +1,26 @@ + + +在 ifelse 语句和语句链中报告冗余的 else 关键字。 +

+如果 else 关键字因为之前分支中的代码以 returnthrowbreakcontinue 语句结尾而无法到达,则它是冗余的。 在这种情况下,来自 else 分支的语句可以放在 if 语句之后,并且 else 关键字可以删除。 +

+

示例:

+

+  if (name == null) {
+      throw new IllegalArgumentException();
+  } else {
+      System.out.println(name);
+  }
+
+

在应用快速修复后:

+

+  if (name == null) {
+      throw new IllegalArgumentException();
+  }
+  System.out.println(name);
+
+ +

禁用 当 'if' 语句之后没有其他语句时报告 选项以忽略 ifelse 语句是代码块中最后一条语句的情况。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConfusingFloatingPointLiteral.html b/original-plugin-raw/zh/inspectionDescriptions/ConfusingFloatingPointLiteral.html new file mode 100644 index 000000000..9f43095a7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConfusingFloatingPointLiteral.html @@ -0,0 +1,14 @@ + + +报告任何没有小数点的浮点数、小数点前的数字或小数点后的数字。 +

此类文字可能令人困惑,并且违反多种编码标准。

+

示例:

+
double d = .03;
+

在应用快速修复后:

+
double d = 0.03;
+ +

+使用忽略科学记数法中的浮点文字选项可以忽略科学记数法中的浮点数。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConfusingFloatingPointLiteralJS.html b/original-plugin-raw/zh/inspectionDescriptions/ConfusingFloatingPointLiteralJS.html new file mode 100644 index 000000000..1cb5c8806 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConfusingFloatingPointLiteralJS.html @@ -0,0 +1,7 @@ + + + +报告任何没有小数点的浮点数或小数点前的任何数字 +或小数点后的任何数字。 此类文字可能令人困惑,并且违反多种编码标准。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConfusingMainMethod.html b/original-plugin-raw/zh/inspectionDescriptions/ConfusingMainMethod.html new file mode 100644 index 000000000..907b1fdcf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConfusingMainMethod.html @@ -0,0 +1,16 @@ + + +报告命名为 "main" 但没有 public static void main(String[]) 签名的方法。 +

此类方法可能令人困惑,因为命名为 "main" 的方法应为应用程序入口点。

+

示例:

+

+  class Main {
+    void main(String[] args) {} //此处有警告,因为没有 "public static" 修饰符
+  }
+
+

只能在编辑器中使用重命名此类方法的快速修复。

+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConfusingOctalEscape.html b/original-plugin-raw/zh/inspectionDescriptions/ConfusingOctalEscape.html new file mode 100644 index 000000000..fd16af672 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConfusingOctalEscape.html @@ -0,0 +1,11 @@ + + +报告包含紧跟数字的八进制转义序列的字符串文字。 +

此类字符串可能令人困惑,并且通常是转义码创建错误的结果。

+

示例:

+

+  System.out.println("\1234"); // 紧跟数字的八进制转义序列 '\123'
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConfusingPlusesOrMinusesJS.html b/original-plugin-raw/zh/inspectionDescriptions/ConfusingPlusesOrMinusesJS.html new file mode 100644 index 000000000..d16d29716 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConfusingPlusesOrMinusesJS.html @@ -0,0 +1,5 @@ + + +报告 JavaScript 代码中 +- 字符的可疑组合 (例如 a+++b) 。 此类序列令人困惑,并且它们的语义可能会因为空格的变化而变化。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConnectionResource.html b/original-plugin-raw/zh/inspectionDescriptions/ConnectionResource.html new file mode 100644 index 000000000..fd47c1dba --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConnectionResource.html @@ -0,0 +1,12 @@ + + +报告未在 try 块前打开并在相应的 finally 块中关闭的 Java ME javax.microedition.io.Connection 资源。 如果在资源关闭之前抛出异常,此类资源可能会被无意泄漏。 +

示例:

+

+  void example() throws IOException {
+    Connection c = Connector.open("foo");
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstExpressionRequired.html b/original-plugin-raw/zh/inspectionDescriptions/ConstExpressionRequired.html new file mode 100644 index 000000000..5c7a11bce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstExpressionRequired.html @@ -0,0 +1,5 @@ + + +报告需要是常量但不是的表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstPropertyName.html b/original-plugin-raw/zh/inspectionDescriptions/ConstPropertyName.html new file mode 100644 index 000000000..f9a283b02 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstPropertyName.html @@ -0,0 +1,18 @@ + + +报告不遵循推荐命名惯例的 const 属性名称。 +

+ 一致的命名会让阅读和理解代码变得更容易。 + 根据 Kotlin 官方样式指南const 属性应使用大写下划线分隔的名称。 +

+

示例:

+

+  const val Planck: Double = 6.62607015E-34
+
+

该快速修复会重命名属性:

+

+  const val PLANCK: Double = 6.62607015E-34
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstantAssertArgument.html b/original-plugin-raw/zh/inspectionDescriptions/ConstantAssertArgument.html new file mode 100644 index 000000000..7b8bd7cb2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstantAssertArgument.html @@ -0,0 +1,14 @@ + + +报告 assertTrue()assertFalse()assertNull()assertNotNull() 调用中的常量实参。 +

+ 对这些包含常量实参的方法的调用要么总是成功,要么总是失败。 + 此类语句很容易在重构后遗留下来,并且可能并非有意为之。 +

+

示例:

+

+  assertNotNull("foo");
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstantAssertCondition.html b/original-plugin-raw/zh/inspectionDescriptions/ConstantAssertCondition.html new file mode 100644 index 000000000..dd82e37bc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstantAssertCondition.html @@ -0,0 +1,13 @@ + + +报告为常量的 assert 语句条件。 具有常量条件的 assert 语句要么总是失败,要么总是成功。 +此类语句可能在重构后遗留下来,并且可能不是有意的。 +

示例:

+

+    void foo() {
+        assert true;
+    }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstantConditionIf.html b/original-plugin-raw/zh/inspectionDescriptions/ConstantConditionIf.html new file mode 100644 index 000000000..807ef464a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstantConditionIf.html @@ -0,0 +1,21 @@ + + +报告具有 truefalse 常量文字条件且可以简化的 if 表达式。 +

虽然偶尔是有意为之,但此结构令人困惑,并且通常是由拼写错误或之前的重构所致。

+

示例:

+

+  fun example() {
+      if (true) {
+          throw IllegalStateException("Unexpected state")
+      }
+  }
+
+

该快速修复会移除 if 条件:

+

+  fun example() {
+      throw IllegalStateException("Unexpected state")
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstantConditionalExpression.html b/original-plugin-raw/zh/inspectionDescriptions/ConstantConditionalExpression.html new file mode 100644 index 000000000..9843e626a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstantConditionalExpression.html @@ -0,0 +1,15 @@ + + +报告条件为 truefalse 常量的条件表达式。 +这些表达式有时是自动重构的结果,并且可以被简化。 +

示例:

+

+  return true ? "Yes" : "No";
+
+

在应用快速修复后:

+

+  return "Yes";
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstantConditionalExpressionJS.html b/original-plugin-raw/zh/inspectionDescriptions/ConstantConditionalExpressionJS.html new file mode 100644 index 000000000..dd48f0886 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstantConditionalExpressionJS.html @@ -0,0 +1,6 @@ + + +报告格式为 true? 的条件表达式 result1: result2false? result1: result2。 +建议简化该表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstantConditions.html b/original-plugin-raw/zh/inspectionDescriptions/ConstantConditions.html new file mode 100644 index 000000000..576c8a07f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstantConditions.html @@ -0,0 +1,36 @@ + + +报告始终产生相同结果、可能抛出异常或违反可 null 性约定的代码结构。 +

示例:

+
if (array.length < index) {
+  System.out.println(array[index]);
+} // 数组索引始终超出界限
+
+if (str == null) System.out.println("str is null");
+System.out.println(str.trim());
+// 最后一个语句可能会抛出 NPE
+
+@NotNull
+Integer square(@Nullable Integer input) {
+    // 违反方法约定
+    return input == null ? null : input * input;
+}
+

+ 检查行为可能由许多注解控制,例如可 null 性注解、@Contract 注解、@Range 注解等。 +

+ +

配置检查:

+
    +
  • 使用对可 null 值的方法/字段/形参建议使用 @Nullable 注解选项可以在以下情况下发出警告:null 值作为实参传递给具有非注解形参的方法时,存储到非注解字段时,或从非注解方法返回时。 在这种情况下,该检查将建议传播 @Nullable 注解。 您还可以使用配置注解按钮配置可 null 性注解。
  • +
  • 使用将未注解的成员和形参视为 @Nullable 选项可假设非注解成员可以为 null,因此不得在非 null 上下文中使用。
  • +
  • 使用报告使用 null 文字实参用法的非 null 必需形参>选项可以报告不能为 null(例如在方法体中立即取消引用),但存在传递 null 文字的调用点的方法形参。
  • +
  • 使用报告始终返回非 null 值的可 null 方法选项,可报告注解为 @Nullable 但始终返回非 null 值的方法。 在这种情况下,建议您将注解更改为 @NotNull
  • +
  • 使用不报告条件静态证明始终为 true 的断言选项可避免报告静态证明始终为 true 的断言。 这还包括 if (alwaysFalseCondition) throw new IllegalArgumentException(); 等条件。
  • +
  • 使用忽略 assert 语句选项可控制检查如何处理 assert 语句。 默认情况下,该选项被禁用,这意味着断言视为被执行(-ea 模式)。 如果启用该选项,断言将被完全忽略(-da 模式)。
  • +
  • 使用读取保证为常量的值时发出警告选项可在读取包含某些常量值(如truefalsenull)的变量时添加警告。
  • +
  • 使用报告仅在某些代码路径上发生的问题选项可控制是否报告仅在某些代码路径上发生的问题。 如果禁用此选项,则不会报告 exception is possible 等警告。 该检查只会报告类似 exception will definitely occur 的警告。 这种模式可以大大减少误报的数量,特别是如果代码没有一致地使用可 null 性和约定注解进行注解。 这就是为什么它对于查找传统代码库中最重要的问题很有用。 +
  • +
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstantConditionsOC.html b/original-plugin-raw/zh/inspectionDescriptions/ConstantConditionsOC.html new file mode 100644 index 000000000..f59cd41b0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstantConditionsOC.html @@ -0,0 +1,16 @@ + + +报告始终为 truefalse 的条件以及值被静态证明为常量的表达式。 +

示例:

+

+  void process(State current) {
+    current = State::Started;
+
+    if (current == State::Stopped) {
+        //代码
+    }
+    //代码
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstantDeclaredInAbstractClass.html b/original-plugin-raw/zh/inspectionDescriptions/ConstantDeclaredInAbstractClass.html new file mode 100644 index 000000000..30be8e4ec --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstantDeclaredInAbstractClass.html @@ -0,0 +1,7 @@ + + +报告在 abstract 类中声明的常量(public static final 字段)。 +

有些编码标准要求在接口中声明常量。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstantDeclaredInInterface.html b/original-plugin-raw/zh/inspectionDescriptions/ConstantDeclaredInInterface.html new file mode 100644 index 000000000..c2a195887 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstantDeclaredInInterface.html @@ -0,0 +1,7 @@ + + +报告在接口中声明的常量(public static final 字段)。 +

有些编码标准要求在 abstract 类中声明常量。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstantExpression.html b/original-plugin-raw/zh/inspectionDescriptions/ConstantExpression.html new file mode 100644 index 000000000..3efe747ff --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstantExpression.html @@ -0,0 +1,8 @@ + + +报告编译时常量表达式并建议用它们的实际值替换它们。 例如,系统会提示您将 “2 + 2” 替换为 “4”。 + + +

2018.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstantFunctionResult.html b/original-plugin-raw/zh/inspectionDescriptions/ConstantFunctionResult.html new file mode 100644 index 000000000..54851cde0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstantFunctionResult.html @@ -0,0 +1,7 @@ + + +报告返回值始终为同一常量的函数。 + +

2021.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstantMathCall.html b/original-plugin-raw/zh/inspectionDescriptions/ConstantMathCall.html new file mode 100644 index 000000000..9edd85979 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstantMathCall.html @@ -0,0 +1,10 @@ + + +报告对可以被确定为简单的编译时常量的 java.lang.Mathjava.lang.StrictMath 方法的调用。 +

示例:

+
double v = Math.sin(0.0);
+

在应用快速修复后:

+
double v = 0.0;
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstantOnLHSOfComparisonJS.html b/original-plugin-raw/zh/inspectionDescriptions/ConstantOnLHSOfComparisonJS.html new file mode 100644 index 000000000..39c9d906b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstantOnLHSOfComparisonJS.html @@ -0,0 +1,7 @@ + + + +报告左侧有常量的比较运算。 根据 +编码惯例,常量应当位于比较的右侧。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstantOnRHSOfComparisonJS.html b/original-plugin-raw/zh/inspectionDescriptions/ConstantOnRHSOfComparisonJS.html new file mode 100644 index 000000000..01ffc5122 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstantOnRHSOfComparisonJS.html @@ -0,0 +1,7 @@ + + + +报告右侧有常量的比较运算。 根据 +编码惯例,常量应当只位于比较的左侧。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstantOnWrongSideOfComparison.html b/original-plugin-raw/zh/inspectionDescriptions/ConstantOnWrongSideOfComparison.html new file mode 100644 index 000000000..3a71b6edb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstantOnWrongSideOfComparison.html @@ -0,0 +1,23 @@ + + +报告常量值在错误一侧的比较运算。 +

某些编码惯例会指定常量应该位于比较的特定一侧,要么左侧,要么右侧。

+

示例:

+

+  boolean compare(int x) {
+    return 1 > x; // 位于比较左侧的常量 '1'
+  }
+
+

在应用快速修复后:

+

+  boolean compare(int x) {
+    return x < 1;
+  }
+
+ +

+ 使用检查设置可以选择比较中的常量一侧,并选择 null 文字位于错误一侧时是否发出警告。 +

+

2019.2 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstantParameter.html b/original-plugin-raw/zh/inspectionDescriptions/ConstantParameter.html new file mode 100644 index 000000000..d1d9426c5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstantParameter.html @@ -0,0 +1,7 @@ + + +报告始终具有相同值的函数形参。 + +

2021.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstantValueVariableUse.html b/original-plugin-raw/zh/inspectionDescriptions/ConstantValueVariableUse.html new file mode 100644 index 000000000..fe057e5c6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstantValueVariableUse.html @@ -0,0 +1,27 @@ + + +报告已知为常量的变量的所有用法。 +

如果(读取)使用的变量被 ifwhilefor 语句包围,且存在该变量与常量相比较的 == 条件时,就会发生这种情况。 + 在这种情况下,使用的已知为常量的变量可以替换为实际常量。

+

示例:

+

+    private static void foo(double number) {
+        if (number == 1.0) {
+            f(number);
+        }
+    }
+    private static void f(double number) {}
+
+

在应用快速修复后:

+

+    private static void foo(double number) {
+        if (number == 1.0) {
+            f(1.0);
+        }
+    }
+    private static void f(double number) {}
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstructionIsNotAllowed.html b/original-plugin-raw/zh/inspectionDescriptions/ConstructionIsNotAllowed.html new file mode 100644 index 000000000..d80f028cd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstructionIsNotAllowed.html @@ -0,0 +1,5 @@ + + +报告非法构造。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConstructorCount.html b/original-plugin-raw/zh/inspectionDescriptions/ConstructorCount.html new file mode 100644 index 000000000..12ce2acb9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConstructorCount.html @@ -0,0 +1,12 @@ + + +报告构造函数数量超过指定最大值的类。 +

具有太多构造函数的类容易出现初始化错误,通常建议将这种类建模为多个子类。

+ +

配置检查:

+
    +
  • 使用构造函数计数限制字段可指定类中允许的构造函数的最大数量。
  • +
  • 使用忽略弃用的构造函数选项可避免将已弃用的构造函数添加到总计数中。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ContextComponentScanInconsistencyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ContextComponentScanInconsistencyInspection.html new file mode 100644 index 000000000..fa8a16455 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ContextComponentScanInconsistencyInspection.html @@ -0,0 +1,18 @@ + + +

报告 XML 应用程序上下文 <component-scan> 中不一致的 <filter> 定义。

+ +

示例:

+ +

+  public class NonAnnotationTypeClass {}
+  <beans>
+    <ctx:component-scan base-package="com.my.company">
+      <ctx:exclude-filter expression="com.my.company.anno.NonAnnotationTypeClass" type="annotation"/>
+    </ctx:component-scan>
+  </beans>
+
+ +

在此示例中,NonAnnotationTypeClass 应为注解类型。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ContextJavaBeanUnresolvedMethodsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ContextJavaBeanUnresolvedMethodsInspection.html new file mode 100644 index 000000000..517cb50e7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ContextJavaBeanUnresolvedMethodsInspection.html @@ -0,0 +1,19 @@ + + +

报告 @Bean 注解的 initMethoddestroyMethod 形参上的未解析方法引用。

+ +

示例:

+如果 MyBean 类不包含 'public void 'doInit'(){...}' 方法,将在 'doInit' 表达式上报告 "无法解析方法" +

+  public class MyBean {...}
+
+  @Component
+  public class MyComponent {
+     @Bean(initMethod="doInit" )
+     public MyBean myBean() {...}
+  }
+
+ +

在此示例中,如果 MyBean 不定义 doInit() 方法,该检查将报告未解析的方法引用。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ContinueOrBreakFromFinallyBlock.html b/original-plugin-raw/zh/inspectionDescriptions/ContinueOrBreakFromFinallyBlock.html new file mode 100644 index 000000000..bda2524fb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ContinueOrBreakFromFinallyBlock.html @@ -0,0 +1,17 @@ + + +报告 finally 块中的 breakcontinue 语句。 +

虽然偶尔是有意为之,但此类语句非常令人困惑,可能会掩盖抛出的异常,并导致调试复杂化。

+

示例:

+

+    while (true) {
+        try {
+          throwingMethod();
+        } finally {
+            continue;
+        }
+    }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ContinueOrBreakFromFinallyBlockJS.html b/original-plugin-raw/zh/inspectionDescriptions/ContinueOrBreakFromFinallyBlockJS.html new file mode 100644 index 000000000..1145b48d5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ContinueOrBreakFromFinallyBlockJS.html @@ -0,0 +1,5 @@ + + +报告 finally 块中的 breakcontinue 语句。 此类语句非常令人困惑,可能隐藏异常,并导致调试复杂化。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ContinueStatement.html b/original-plugin-raw/zh/inspectionDescriptions/ContinueStatement.html new file mode 100644 index 000000000..e3a8f1a9a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ContinueStatement.html @@ -0,0 +1,15 @@ + + +报告 continue 语句。 +

continue 语句导致重构复杂化,可能令人困惑。

+

示例:

+

+  void foo(List<String> strs) {
+    for (String str : strs) {
+      if (str.contains("skip")) continue;
+      handleStr(str);
+    }
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ContinueStatementJS.html b/original-plugin-raw/zh/inspectionDescriptions/ContinueStatementJS.html new file mode 100644 index 000000000..95e374456 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ContinueStatementJS.html @@ -0,0 +1,5 @@ + + +报告 continue 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ContinueStatementWithLabel.html b/original-plugin-raw/zh/inspectionDescriptions/ContinueStatementWithLabel.html new file mode 100644 index 000000000..18f08cc54 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ContinueStatementWithLabel.html @@ -0,0 +1,18 @@ + + +报告包含标签的 continue 语句。 +

continue 标签语句导致重构复杂化,可能令人困惑。

+

示例:

+

+  void handle(List<String> strs) {
+    outer:
+    for (String s: strs) {
+      for (char ch : s.toCharArray()) {
+        if ('s' == ch) continue outer;
+        handleChar(ch);
+      }
+    }
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ContinueStatementWithLabelJS.html b/original-plugin-raw/zh/inspectionDescriptions/ContinueStatementWithLabelJS.html new file mode 100644 index 000000000..3bfc2e817 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ContinueStatementWithLabelJS.html @@ -0,0 +1,5 @@ + + +添加 continue 标签语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Contract.html b/original-plugin-raw/zh/inspectionDescriptions/Contract.html new file mode 100644 index 000000000..11babd2a3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Contract.html @@ -0,0 +1,18 @@ + + +报告方法 @Contract 注解中的问题。 可以报告的问题类型有: +
    +
  • 约定语法错误
  • +
  • 不符合方法签名的约定(错误的形参计数)
  • +
  • 与约定不一致的方法实现(例如,即使约定声明 false,也返回 true
  • +
+

示例:

+

+  // 方法没有形参,参约定预期 1
+  @Contract("_ -> fail")
+  void x() {
+    throw new AssertionError();
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ControlFlowStatementWithoutBraces.html b/original-plugin-raw/zh/inspectionDescriptions/ControlFlowStatementWithoutBraces.html new file mode 100644 index 000000000..dbcaa2bc0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ControlFlowStatementWithoutBraces.html @@ -0,0 +1,16 @@ + + +报告任何不带大括号的 ifwhilefor 语句。 +

大括号使代码更易于阅读并有助于防止错误。

+

示例:

+

+  if (x > 0) System.out.println("x is positive");
+
+

快速修复用大括号包装语句体:

+

+  if (x > 0) {
+    System.out.println("x is positive");
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ControlFlowWithEmptyBody.html b/original-plugin-raw/zh/inspectionDescriptions/ControlFlowWithEmptyBody.html new file mode 100644 index 000000000..22edd186c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ControlFlowWithEmptyBody.html @@ -0,0 +1,12 @@ + + +报告语句体为空的 ifwhiledofor 语句。 +

虽然偶尔是有意为之,但此结构令人困惑,并且通常是由拼写错误所致。

+

该快速修复会移除语句。

+

示例:

+

+  if (a > b) {}
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Convert2Diamond.html b/original-plugin-raw/zh/inspectionDescriptions/Convert2Diamond.html new file mode 100644 index 000000000..a9f15037f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Convert2Diamond.html @@ -0,0 +1,14 @@ + + +报告所有 new 表达式,其类型实参可以替换为 Diamond 类型 <>。 +

示例:

+

+  List<String> list = new ArrayList<String>(); // 报告数组列表类型实参
+
+

在应用快速修复后:

+

+  List<String> list = new ArrayList<>();
+
+

仅当项目或模块的语言级别为 7 或更高时,此检查才会报告。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/Convert2Lambda.html b/original-plugin-raw/zh/inspectionDescriptions/Convert2Lambda.html new file mode 100644 index 000000000..1329008ee --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Convert2Lambda.html @@ -0,0 +1,28 @@ + + +报告可以替换为 lambda 表达式的匿名类。 +

示例:

+

+  new Thread(new Runnable() {
+    @Override
+    public void run() {
+      // 运行线程
+    }
+  });
+
+

在应用快速修复后:

+

+  new Thread(() -> {
+    // 运行线程
+  });
+
+

+请注意,如果将匿名类转换为无状态 lambda,则 Java 运行时可以在后续调用期间重用相同的 lambda 对象。 另一方面,当使用匿名类时,每次都会创建单独的对象。 因此,在极少数情况下,应用该快速修复可能会导致语义发生变化,例如,当匿名类实例用作 HashMap 键时。 +

+

Java 1.7 和更早版本的 JVM 不支持 lambda 语法。

+ +

+使用在接口未使用 @FunctionalInterface 注解时报告选项可忽略匿名类实现没有 @FunctionalInterface 注解的接口的情况。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/Convert2MethodRef.html b/original-plugin-raw/zh/inspectionDescriptions/Convert2MethodRef.html new file mode 100644 index 000000000..06ecb61cc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Convert2MethodRef.html @@ -0,0 +1,19 @@ + + +报告可以替换为方法引用的 lambda。 方法引用比 lambda 更容易理解和阅读,尽管它们通常取决于您的喜好。 +

示例:

+

+  Runnable r = () -> System.out.println();
+
+

在应用快速修复后:

+

+  Runnable r = System.out::println;
+
+ +

+ 即使 lambda 不调用任何方法,该检查也可能会建议方法引用,例如将 obj -> obj != null 替换为 Objects::nonNull。 + 使用设置 | 编辑器 | 代码样式 | Java | 代码生成设置来配置特殊方法引用。 +

+

仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/Convert2streamapi.html b/original-plugin-raw/zh/inspectionDescriptions/Convert2streamapi.html new file mode 100644 index 000000000..b6de95e12 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Convert2streamapi.html @@ -0,0 +1,26 @@ + + +报告使用 lambda 表达式替换为流 API 调用的循环。 +

此类替换将命令式样式更改为功能式样式,代码也变得更加紧凑。

+

示例:

+

+  boolean check(List<String> data) {
+    for (String e : data) {
+      String trimmed = e.trim();
+      if (!trimmed.startsWith("xyz")) {
+        return false;
+      }
+    }
+    return true;
+  }
+
+

在应用快速修复后:

+

+  boolean check(List<String> data) {
+    return data.stream().map(String::trim).allMatch(trimmed -> trimmed.startsWith("xyz"));
+  }
+
+ +

仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConvertArgumentToSet.html b/original-plugin-raw/zh/inspectionDescriptions/ConvertArgumentToSet.html new file mode 100644 index 000000000..f1ebb483b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConvertArgumentToSet.html @@ -0,0 +1,28 @@ + + +检测可以通过将实参转换为 Set 而加快速度的函数调用。 + +

+ 当实参为集合时,'minus' 或 'intersect' 等运算更高效。 + 将 Iterable<T>Array<T> 显式转换为 Set<T> 通常可以提高代码效率。 +

+ +

+ 该快速修复会向函数调用添加显式转换。 +

+ +

示例:

+

+  fun <T> f(a: Iterable<T>, b: Iterable<T>): Int =
+      a.intersect(b).size
+
+ +

在应用快速修复后:

+

+  fun <T> f(a: Iterable<T>, b: Iterable<T>): Int =
+      a.intersect(b.toSet()).size
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConvertCallChainIntoSequence.html b/original-plugin-raw/zh/inspectionDescriptions/ConvertCallChainIntoSequence.html new file mode 100644 index 000000000..38f2fe879 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConvertCallChainIntoSequence.html @@ -0,0 +1,33 @@ + + +报告应转换为 SequenceCollection 上的调用链。 +

每个 Collection 转换函数(例如 map()filter())都会在后台创建一个新的 + Collection(通常是 ListSet)。 + 多次后续调用以及 Collection 中存在大量条目的情况下,内存流量可能会很大。 + 这种情况下,最好使用 Sequence。 +

+

示例:

+

+  class Entity(val key: String, val value: String)
+
+  fun getValues(lines: List<String>) = lines
+      .filter { it.isNotEmpty() }
+      .map { it.split(',', limit = 2) }
+      .filter { it.size == 2 }
+      .map { Entity(it[0], it[1]) }
+
+

快速修复可将调用链包装到 asSequence()toList() 中:

+

+  class Entity(val key: String, val value: String)
+
+  fun getValues(lines: List<String>) = lines
+      .asSequence()
+      .filter { it.isNotEmpty() }
+      .map { it.split(',', limit = 2) }
+      .filter { it.size == 2 }
+      .map { Entity(it[0], it[1]) }
+      .toList()
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConvertExpressionToSAM.html b/original-plugin-raw/zh/inspectionDescriptions/ConvertExpressionToSAM.html new file mode 100644 index 000000000..b36cc06aa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConvertExpressionToSAM.html @@ -0,0 +1,16 @@ + + +

报告可以转换为 SAM(单一抽象方法)的表达式。

+

示例:

+

+  new Thread(new Runnable {
+      override def run() = println()
+  })
+
+

在应用快速修复后:

+

+  new Thread(() => println())
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConvertJavadoc.html b/original-plugin-raw/zh/inspectionDescriptions/ConvertJavadoc.html new file mode 100644 index 000000000..85ed9bfa6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConvertJavadoc.html @@ -0,0 +1,17 @@ + +使用 Javadoc 注解断言您的 TestNG 测试并将它们转换为 JDK 注解。 +

示例:

+

+  /**
+    * @testng.before-test
+  */
+  public void sample() {}
+
+

在应用快速修复后:

+

+  @BeforeTest
+  public void sample() {}
+
+ +

+ \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConvertLambdaToReference.html b/original-plugin-raw/zh/inspectionDescriptions/ConvertLambdaToReference.html new file mode 100644 index 000000000..da3ba7999 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConvertLambdaToReference.html @@ -0,0 +1,25 @@ + + +报告可以替换为函数引用的函数文字表达式。 +

将 lambda 替换为函数引用通常会使代码看起来更简洁易懂。

+

示例:

+

+  fun Int.isEven() = this % 2 == 0
+
+  fun example() {
+      val numbers = listOf(1, 2, 4, 7, 9, 10)
+      val evenNumbers = numbers.filter { it.isEven() }
+  }
+
+

在应用快速修复后:

+

+  fun Int.isEven() = this % 2 == 0
+
+  fun example() {
+      val numbers = listOf(1, 2, 4, 7, 9, 10)
+      val evenNumbers = numbers.filter(Int::isEven)
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConvertNaNEquality.html b/original-plugin-raw/zh/inspectionDescriptions/ConvertNaNEquality.html new file mode 100644 index 000000000..3b0ca98aa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConvertNaNEquality.html @@ -0,0 +1,23 @@ + + +报告使用 Float.NaNDouble.NaN 的相等检查(应替换为 isNaN() 检查)。 +

+ 根据 IEEE 754,对照 NaN 进行的相等检查始终返回 false,即便对 NaN == NaN 也如此。 + 因此,这种检查很可能是错误的。 +

+

快速修复可将比较替换为使用不同比较技术的 isNaN() 检查,并能够正确处理 NaN 值。

+

示例:

+

+  fun check(value: Double): Boolean {
+      return Double.NaN == value
+  }
+
+

应用修正后:

+

+  fun check(value: Double): Boolean {
+      return value.isNaN()
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConvertNullInitializerToUnderscore.html b/original-plugin-raw/zh/inspectionDescriptions/ConvertNullInitializerToUnderscore.html new file mode 100644 index 000000000..897e05f68 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConvertNullInitializerToUnderscore.html @@ -0,0 +1,39 @@ + + +

报告使用 null 显式初始化的变量定义。

+

var v: T = null 共有三种不同类型:

+
    +
  1. v 是一个 可选
    + → 使用 Option[T] 类型,这是习惯用法并且类型安全
  2. +
  3. v 是一个 未初始化的值(必须分配一个值)
    + → 使用清晰、简洁且与平台无关的 _ (Scala 2) 或 scala.compiletime.uninitialized (Scala 3) + 作为初始化器
  4. +
  5. 这是一种性能优化(您实际上使用的是 null 值)
    + → 明确禁止对不安全代码的检查
  6. +
+

将提供两个快速修复:

+
    +
  • 使用 _ 初始值设定项会将 null 替换为 _
  • +
  • 使用 Option 类型会将变量的类型替换为 Option 并使用 None 初始化
  • +
+

示例:

+

+  class Test {
+    var optional: String = null
+    var uninit: String = null
+
+    uninit = "initialized later"
+  }
+
+

在应用快速修复后:

+

+  class Test {
+    var optional: Option[String] = None
+    var uninit: String = _
+
+    uninit = "initialized later"
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConvertOldAnnotations.html b/original-plugin-raw/zh/inspectionDescriptions/ConvertOldAnnotations.html new file mode 100644 index 000000000..1b514fce3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConvertOldAnnotations.html @@ -0,0 +1,24 @@ + + +报告 TestNG org.testng.annotations.Configuration 注解。 +

最好使用现代 @BeforeXXX/@AfterXXX 注解来配置测试套件。

+

示例:

+

+  public class Test {
+    @Configuration(beforeSuite = true, afterTest = true)
+    public void afterBefore(){
+    }
+  }
+
+

在应用快速修复后:

+

+  public class Test {
+    @AfterTest()
+    @BeforeSuite()
+    public void afterBefore(){
+    }
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConvertOneChainedExprToSafeNavigation.html b/original-plugin-raw/zh/inspectionDescriptions/ConvertOneChainedExprToSafeNavigation.html new file mode 100644 index 000000000..46ef233b5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConvertOneChainedExprToSafeNavigation.html @@ -0,0 +1,20 @@ + + +报告可以使用安全导航运算符 (&.) 简化的链式调用。 一组链式调用是 +用于检查每个调用组件中的 nil 的常见模式。 +

示例:

+
+# 不良做法
+if user && user.profile && user.profile.thumbnails
+end
+
+ +可以使用快速修复来通过 &. 简化表达式。 应用快速修复后,结果如下所示: + +
+# 优良做法
+if user&.profile&.thumbnails
+end
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConvertPairConstructorToToFunction.html b/original-plugin-raw/zh/inspectionDescriptions/ConvertPairConstructorToToFunction.html new file mode 100644 index 000000000..f606f70bf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConvertPairConstructorToToFunction.html @@ -0,0 +1,26 @@ + + +报告可替换为 to() 中缀函数调用的 Pair 构造函数调用。 +

+ 显式构造函数调用可能会增添冗余,尤其是在多次使用时。 + 将构造函数调用替换为 to() 会使读取和维护代码变得更容易。 +

+

示例:

+

+  val countries = mapOf(
+      Pair("France", "Paris"),
+      Pair("Spain", "Madrid"),
+      Pair("Germany", "Berlin")
+  )
+
+

在应用快速修复后:

+

+  val countries = mapOf(
+      "France" to "Paris",
+      "Spain" to "Madrid",
+      "Germany" to "Berlin"
+  )
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConvertReferenceToLambda.html b/original-plugin-raw/zh/inspectionDescriptions/ConvertReferenceToLambda.html new file mode 100644 index 000000000..02a8d0866 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConvertReferenceToLambda.html @@ -0,0 +1,28 @@ + + +报告可以替换为函数文字 (lambda) 的函数引用表达式。 +

+ 有时,传递 lambda 会更直接,并且与代码的其余部分更一致。 + 此外,如果需要将简单的调用替换为更复杂的调用,该修正可能很方便。 +

+

示例:

+

+  fun Int.isEven() = this % 2 == 0
+
+  fun example() {
+      val numbers = listOf(1, 2, 4, 7, 9, 10)
+      val evenNumbers = numbers.filter(Int::isEven)
+  }
+
+

在应用快速修复后:

+

+  fun Int.isEven() = this % 2 == 0
+
+  fun example() {
+      val numbers = listOf(1, 2, 4, 7, 9, 10)
+      val evenNumbers = numbers.filter { it.isEven() }
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConvertSecondaryConstructorToPrimary.html b/original-plugin-raw/zh/inspectionDescriptions/ConvertSecondaryConstructorToPrimary.html new file mode 100644 index 000000000..0ae893c0c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConvertSecondaryConstructorToPrimary.html @@ -0,0 +1,21 @@ + + +报告可以替换为更简洁的主构造函数的辅助构造函数。 +

示例:

+

+  class User {
+      val name: String
+
+      constructor(name: String) {
+          this.name = name
+      }
+  }
+
+

该快速修复会自动转换代码:

+

+  class User(val name: String) {
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConvertToBasicLatin.html b/original-plugin-raw/zh/inspectionDescriptions/ConvertToBasicLatin.html new file mode 100644 index 000000000..0134d9067 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConvertToBasicLatin.html @@ -0,0 +1,18 @@ + + +报告文字中的非基本拉丁字符,并建议将它们替换为 unicode 实体。 +

示例:

+

+  // © 2021
+  char c = '©';
+  String s = "Áî";
+
+
+

在应用快速修复后:

+

+  // &copy; 2021
+  char c = '\u00a9';
+  String s = "\u00c1\u00ee";
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConvertToStringTemplate.html b/original-plugin-raw/zh/inspectionDescriptions/ConvertToStringTemplate.html new file mode 100644 index 000000000..f3d1c78b1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConvertToStringTemplate.html @@ -0,0 +1,25 @@ + + +报告可以转换为字符串模板的字符串串联。 +

建议使用字符串模板,因为这样会使代码更容易读取。

+

示例:

+

+  fun example() {
+      val capitals = mapOf("France" to "Paris", "Spain" to "Madrid")
+      for ((country, capital) in capitals) {
+          print(capital + " is a capital of " + country)
+      }
+  }
+
+

在应用快速修复后:

+

+  fun example() {
+      val capitals = mapOf("France" to "Paris", "Spain" to "Madrid")
+      for ((country, capital) in capitals) {
+          print("$capital is a capital of $country")
+      }
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConvertTryFinallyToUseCall.html b/original-plugin-raw/zh/inspectionDescriptions/ConvertTryFinallyToUseCall.html new file mode 100644 index 000000000..19aa0509f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConvertTryFinallyToUseCall.html @@ -0,0 +1,26 @@ + + +报告 finally 中带有 resource.close() 并可转换为 resource.use() 调用的 try-finally 块。 +

use() 更容易读取,且不易出错,因为无需显式 close() 调用。

+

示例:

+

+  fun example() {
+      val reader = File("file.txt").bufferedReader()
+      try {
+          reader.lineSequence().forEach(::print)
+      } finally {
+          reader.close()
+      }
+  }
+
+

在应用快速修复后:

+

+  fun example() {
+      File("file.txt").bufferedReader().use { reader ->
+          reader.lineSequence().forEach(::print)
+      }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConvertTwoComparisonsToRangeCheck.html b/original-plugin-raw/zh/inspectionDescriptions/ConvertTwoComparisonsToRangeCheck.html new file mode 100644 index 000000000..fd147e069 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConvertTwoComparisonsToRangeCheck.html @@ -0,0 +1,19 @@ + + +报告可转换为范围检查的两个连续比较。 +

通过移除测试主体重复,针对范围进行检查使代码更简单。

+

示例:

+

+  fun checkMonth(month: Int): Boolean {
+      return month >= 1 && month <= 12
+  }
+
+

快速修复可将基于比较的检查替换为针对范围的检查:

+

+  fun checkMonth(month: Int): Boolean {
+      return month in 1..12
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ConvertibleToMethodValue.html b/original-plugin-raw/zh/inspectionDescriptions/ConvertibleToMethodValue.html new file mode 100644 index 000000000..a1045f20d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ConvertibleToMethodValue.html @@ -0,0 +1,18 @@ + + +

报告可以 eta 扩展的匿名函数,也报告可以从 eta 扩展中移除的占位符。

+

示例:

+

+  def f(x: Any, y: Int): Unit = ()
+  val x = f(_, _)
+  val y: (Int, Int) => Unit = f _
+
+

在应用快速修复后:

+

+  def f(x: Any, y: Int): Unit = ()
+  val x = f _
+  val y: (Int, Int) => Unit = f
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CookbookSourceRoot.html b/original-plugin-raw/zh/inspectionDescriptions/CookbookSourceRoot.html new file mode 100644 index 000000000..84b94610b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CookbookSourceRoot.html @@ -0,0 +1,5 @@ + + +报告发现的 Chef cookbooks,并建议将其添加到 Cookbook 根目录。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CopyConstructorMissesField.html b/original-plugin-raw/zh/inspectionDescriptions/CopyConstructorMissesField.html new file mode 100644 index 000000000..a8c1eb135 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CopyConstructorMissesField.html @@ -0,0 +1,27 @@ + + +报告不复制该类所有字段的复制构造函数。 +

+ 带有初始值设定项的 final 字段和 transient 字段被视为不必复制。 +

+

示例:

+

+  class Point {
+
+    private int x;
+    private int y;
+
+    Point(int x, int y) {
+      this.x = x;
+      this.y = y;
+    }
+
+    Point(Point other) {
+      // 字段 x 和 y 未初始化
+    }
+  }
+
+ +

2018.1 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CopyWithoutNamedArguments.html b/original-plugin-raw/zh/inspectionDescriptions/CopyWithoutNamedArguments.html new file mode 100644 index 000000000..3c8cad6f9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CopyWithoutNamedArguments.html @@ -0,0 +1,26 @@ + + +报告对没有命名实参的数据类的 copy() 方法的调用。 +

+ 由于 copy() 函数的所有实参都是可选的,因此可能很难理解修改了哪些属性。 + 显式提供形参名称使得代码容易理解,且无需导航到 data class 声明。 +

+

示例:

+

+  data class User(val name: String, val age: Int)
+
+  fun copyUser(user: User): User {
+      return user.copy("John")
+  }
+
+

快速修复程序会为所有的 copy() 实参提供形参名称:

+

+  data class User(val name: String, val age: Int)
+
+  fun copyUser(user: User): User {
+      return user.copy(name = "John")
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CorrespondsUnsorted.html b/original-plugin-raw/zh/inspectionDescriptions/CorrespondsUnsorted.html new file mode 100644 index 000000000..0c5b6606c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CorrespondsUnsorted.html @@ -0,0 +1,19 @@ + + +

报告 sameElementscorresponds 与未排序集合的用法。

+ +

方法 sameElementscorresponds 使用给定集合的迭代器根据元素在集合中的位置顺序来比较元素。 + 因此,如果元素的顺序没有明确定义,结果是不可预测的,就像无序 Set 或 Map 的情况一样。

+

要解决此问题,请考虑使用 ==subsetOf,或按某种顺序排序元素。

+ +

示例:

+

+  Set(3,2,1) sameElements Set(1, 2, 3) // 为 false
+
+  // 但
+
+  Set(1, 2, 3, 4, 5) sameElements Set(5, 4, 3, 2, 1) // 为 true
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CovariantEquals.html b/original-plugin-raw/zh/inspectionDescriptions/CovariantEquals.html new file mode 100644 index 000000000..1bf890f23 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CovariantEquals.html @@ -0,0 +1,27 @@ + + +如果包含类没有将 java.lang.Object 作为其实参类型的其他 equals() 重载,则报告采用 java.lang.Object 以外的实参类型的 equals() 方法。 +

+ equals() 的协变版本不会重写 Object.equals(Object) 方法。 它可能会在运行时导致意外行为。 例如,如果该类用于构造一个标准集合类,该集合类预期会重写 Object.equals(Object) 方法。 +

+

示例:

+

+  class Foo {
+      public boolean equals(Foo foo) {  // 警告
+          return false;
+      }
+  }
+  class Bar {
+      public boolean equals(Bar bar) {  // 此处无警告
+          return false;
+      }
+      @Override
+      public boolean equals(Object obj) {
+          return false;
+      }
+  }
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CriteriaApiResolveInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CriteriaApiResolveInspection.html new file mode 100644 index 000000000..800903d4f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CriteriaApiResolveInspection.html @@ -0,0 +1,5 @@ + + +

报告 Hibernate Criteria API 用法中无法识别的属性

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssBrowserCompatibilityForProperties.html b/original-plugin-raw/zh/inspectionDescriptions/CssBrowserCompatibilityForProperties.html new file mode 100644 index 000000000..e7f67d360 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssBrowserCompatibilityForProperties.html @@ -0,0 +1,6 @@ + + +报告不受指定浏览器支持的 CSS 属性。 +基于 MDN 兼容性数据。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssConvertColorToHexInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CssConvertColorToHexInspection.html new file mode 100644 index 000000000..f399b111b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssConvertColorToHexInspection.html @@ -0,0 +1,11 @@ + + +报告 rgb()hsl() 或其他颜色函数。 +

建议用等效的十六进制表示法代替颜色函数。

+

示例:

+
rgb(12, 15, 255)
+

在应用快速修复后:

+
#0c0fff.
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssConvertColorToRgbInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CssConvertColorToRgbInspection.html new file mode 100644 index 000000000..6c8fd052e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssConvertColorToRgbInspection.html @@ -0,0 +1,11 @@ + + +报告 hsl()hwb() 颜色函数或十六进制的颜色表示法。 +

建议将此类颜色值替换为等效的 rgb()rgba() 颜色函数。

+

示例:

+
#0c0fff
+

在应用快速修复后:

+
rgb(12, 15, 255).
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssInvalidAtRule.html b/original-plugin-raw/zh/inspectionDescriptions/CssInvalidAtRule.html new file mode 100644 index 000000000..44ab12462 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssInvalidAtRule.html @@ -0,0 +1,5 @@ + + +报告未知的 CSS @ 规则。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssInvalidCharsetRule.html b/original-plugin-raw/zh/inspectionDescriptions/CssInvalidCharsetRule.html new file mode 100644 index 000000000..5e9786575 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssInvalidCharsetRule.html @@ -0,0 +1,5 @@ + + +报告位置错误的 @charset @ 规则或不正确的字符集值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssInvalidFunction.html b/original-plugin-raw/zh/inspectionDescriptions/CssInvalidFunction.html new file mode 100644 index 000000000..67b5ba4cf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssInvalidFunction.html @@ -0,0 +1,5 @@ + + +报告未知的 CSS 函数或不正确的函数形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssInvalidHtmlTagReference.html b/original-plugin-raw/zh/inspectionDescriptions/CssInvalidHtmlTagReference.html new file mode 100644 index 000000000..1dfb99089 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssInvalidHtmlTagReference.html @@ -0,0 +1,5 @@ + + +报告与未知 HTML 元素匹配的 CSS 类型选择器。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssInvalidImport.html b/original-plugin-raw/zh/inspectionDescriptions/CssInvalidImport.html new file mode 100644 index 000000000..aaf00a62d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssInvalidImport.html @@ -0,0 +1,10 @@ + + +报告位置错误的 @import 语句。 +

+ 根据规范, +@import 规则必须优先于其它所有类型的规则,但 @charset 规则除外。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssInvalidMediaFeature.html b/original-plugin-raw/zh/inspectionDescriptions/CssInvalidMediaFeature.html new file mode 100644 index 000000000..350756bf2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssInvalidMediaFeature.html @@ -0,0 +1,5 @@ + + +报告未知 CSS 媒体功能或不正确的媒体特征值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssInvalidPropertyValue.html b/original-plugin-raw/zh/inspectionDescriptions/CssInvalidPropertyValue.html new file mode 100644 index 000000000..34baed629 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssInvalidPropertyValue.html @@ -0,0 +1,5 @@ + + +报告不正确的 CSS 属性值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssInvalidPseudoSelector.html b/original-plugin-raw/zh/inspectionDescriptions/CssInvalidPseudoSelector.html new file mode 100644 index 000000000..41a24cccf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssInvalidPseudoSelector.html @@ -0,0 +1,6 @@ + + +报告不正确的 CSS pseudo-class +pseudo-element。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssMissingComma.html b/original-plugin-raw/zh/inspectionDescriptions/CssMissingComma.html new file mode 100644 index 000000000..41265b0ca --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssMissingComma.html @@ -0,0 +1,13 @@ + + +报告多行选择器。 很有可能这表明实际上要使用多个单行选择器,但有一行或几行的末尾缺少逗号。 +

示例:

+

+input /* comma has probably been forgotten */
+.button {
+  margin: 1px;
+}
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssMissingSemicolon.html b/original-plugin-raw/zh/inspectionDescriptions/CssMissingSemicolon.html new file mode 100644 index 000000000..c283fb567 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssMissingSemicolon.html @@ -0,0 +1,5 @@ + + +报告声明末尾处缺少的分号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssNegativeValue.html b/original-plugin-raw/zh/inspectionDescriptions/CssNegativeValue.html new file mode 100644 index 000000000..61cec3b7c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssNegativeValue.html @@ -0,0 +1,5 @@ + + +报告应不小于零的 CSS 负值属性(例如对象的宽度或高度)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssNoGenericFontName.html b/original-plugin-raw/zh/inspectionDescriptions/CssNoGenericFontName.html new file mode 100644 index 000000000..8e565218e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssNoGenericFontName.html @@ -0,0 +1,9 @@ + + +验证 font-family 属性是否包含通用的字体系列名称作为回退备选项。 +

+ 通用字体系列名称有: serifsans-serifcursivefantasymonospace。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssNonIntegerLengthInPixels.html b/original-plugin-raw/zh/inspectionDescriptions/CssNonIntegerLengthInPixels.html new file mode 100644 index 000000000..8f6e2ee09 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssNonIntegerLengthInPixels.html @@ -0,0 +1,8 @@ + + +报告以像素为单位的非整数长度。 +

示例:

+
 width: 3.14px
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssOverwrittenProperties.html b/original-plugin-raw/zh/inspectionDescriptions/CssOverwrittenProperties.html new file mode 100644 index 000000000..595a79ec7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssOverwrittenProperties.html @@ -0,0 +1,14 @@ + + +报告规则集中重复的 CSS 属性。 遵循速记属性。 +

示例:

+

+.foo {
+  margin-bottom: 1px;
+  margin-bottom: 1px; /* duplicates margin-bottom */
+  margin: 0; /* overrides margin-bottom */
+}
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssRedundantUnit.html b/original-plugin-raw/zh/inspectionDescriptions/CssRedundantUnit.html new file mode 100644 index 000000000..19a365c7a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssRedundantUnit.html @@ -0,0 +1,8 @@ + + +在规范不要求提供单位的情况下,报告值为零的度量单位。 +

示例:

+
width: 0px
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssReplaceWithShorthandSafely.html b/original-plugin-raw/zh/inspectionDescriptions/CssReplaceWithShorthandSafely.html new file mode 100644 index 000000000..c29846e9d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssReplaceWithShorthandSafely.html @@ -0,0 +1,15 @@ + + +报告一组普通属性。 建议将整组 CSS 常规属性替换为等效的速记形式。 +

+ 例如,这 4 个属性: padding-toppadding-rightpadding-bottompadding-left +可以替换为单个 padding 属性。 +

+

+ 注意,如果这组普通写法的属性不完整 (例如,规则集中只有3个 padding-xxx 属性),则不会显示此检查, +因为切换到简写形式可能会改变结果。 + 对于这种情况,可以考虑执行“可将属性替换为适当的简写形式”检查。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssReplaceWithShorthandUnsafely.html b/original-plugin-raw/zh/inspectionDescriptions/CssReplaceWithShorthandUnsafely.html new file mode 100644 index 000000000..d49783159 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssReplaceWithShorthandUnsafely.html @@ -0,0 +1,15 @@ + + +报告一组 CSS 常规属性,并建议将不完整的一组 CSS 常规属性替换为速记形式,但在本例中,速记形式并非 100% 等效。 +

+ 例如,这两个属性: outline-coloroutline-style,可以替换为单独一个 outline 属性。 + 此类替换不是 100% 等效,因为速记形式会将所有忽略的子值重置为其初始状态。 + 在本例中,切换到 outling 简写形式意味着 outling-width 也将设置为其初始值,即 medium。 +

+ +

+ 此检查不会处理整组普通写法的属性(在完全可以切换到简写形式时)。 + 对于此类情况,请参阅“属性可以安全替换为速记形式”检查。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssShorthandPropertyUsage.html b/original-plugin-raw/zh/inspectionDescriptions/CssShorthandPropertyUsage.html new file mode 100644 index 000000000..cb1d0bcb5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssShorthandPropertyUsage.html @@ -0,0 +1,10 @@ + + +

报告 Selenium API 中的 CSS 速记属性(例如,borderfontpadding 等)。 + Selenium WebDriver 不支持 CSS 速记属性。

+

示例:

+

+  webElement.getCssValue("font"); // 错误:Selenium WebDriver 不支持 CSS 速记属性
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssUnknownProperty.html b/original-plugin-raw/zh/inspectionDescriptions/CssUnknownProperty.html new file mode 100644 index 000000000..ba13b972d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssUnknownProperty.html @@ -0,0 +1,7 @@ + + +报告未知的 CSS 属性或在错误的上下文中使用的属性。 + +

将未知属性添加到“自定义 CSS 属性”列表以跳过验证。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssUnknownTarget.html b/original-plugin-raw/zh/inspectionDescriptions/CssUnknownTarget.html new file mode 100644 index 000000000..b823682e4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssUnknownTarget.html @@ -0,0 +1,5 @@ + + +报告未解析的文件引用,例如 @import 语句中的不正确路径。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssUnresolvedClassInComposesRule.html b/original-plugin-raw/zh/inspectionDescriptions/CssUnresolvedClassInComposesRule.html new file mode 100644 index 000000000..85991cf86 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssUnresolvedClassInComposesRule.html @@ -0,0 +1,14 @@ + + +报告 'composes' 规则中无法解析为任何有效目标的 CSS 类引用。 +

示例:

+

+  .className {/* ... */}
+
+  .otherClassName {
+    composes: className;
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssUnresolvedCustomProperty.html b/original-plugin-raw/zh/inspectionDescriptions/CssUnresolvedCustomProperty.html new file mode 100644 index 000000000..52f79eb63 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssUnresolvedCustomProperty.html @@ -0,0 +1,5 @@ + + +报告对 var() 函数参数中的自定义属性的未解析引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CssUnusedSymbol.html b/original-plugin-raw/zh/inspectionDescriptions/CssUnusedSymbol.html new file mode 100644 index 000000000..41663b10f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CssUnusedSymbol.html @@ -0,0 +1,10 @@ + + +报告出现在选择器中但未在 HTML 中使用的 CSS 类或元素 ID。 +

+ 请注意,只有通过代码 | 检查代码代码 | 分析代码 | 按名称运行检查运行时,才能获得完整的检查结果。 + 由于性能原因,不实时检查样式表文件。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CucumberDuplicatedStep.html b/original-plugin-raw/zh/inspectionDescriptions/CucumberDuplicatedStep.html new file mode 100644 index 000000000..416b73524 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CucumberDuplicatedStep.html @@ -0,0 +1,5 @@ + + +报告重复的 Cucumber 步骤定义。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CucumberExamplesColon.html b/original-plugin-raw/zh/inspectionDescriptions/CucumberExamplesColon.html new file mode 100644 index 000000000..3b575816b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CucumberExamplesColon.html @@ -0,0 +1,5 @@ + + +如果 Examples 关键字后没有 ':',则报告 Cucumber .feature 文件中的 Examples 部分。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CucumberJavaStepDefClassInDefaultPackage.html b/original-plugin-raw/zh/inspectionDescriptions/CucumberJavaStepDefClassInDefaultPackage.html new file mode 100644 index 000000000..6282b18a5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CucumberJavaStepDefClassInDefaultPackage.html @@ -0,0 +1,5 @@ + + +报告位于默认软件包中的步骤定义类。 Cucumber-JVM 仅在命名软件包中使用步骤定义类。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CucumberJavaStepDefClassIsPublic.html b/original-plugin-raw/zh/inspectionDescriptions/CucumberJavaStepDefClassIsPublic.html new file mode 100644 index 000000000..bd9f31420 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CucumberJavaStepDefClassIsPublic.html @@ -0,0 +1,5 @@ + + +报告非 public 步骤定义类。 Cucumber-JVM 仅使用来自 public 类的步骤定义。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CucumberMissedExamples.html b/original-plugin-raw/zh/inspectionDescriptions/CucumberMissedExamples.html new file mode 100644 index 000000000..28b3d1c23 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CucumberMissedExamples.html @@ -0,0 +1,6 @@ + + + 报告没有 Examples 部分的 Cucumber .feature 文件中的 Scenario Outline。 +

使用快速修复可以自动创建带有预填充表格标题的 Examples 部分。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CucumberStepDefinitionParameter.html b/original-plugin-raw/zh/inspectionDescriptions/CucumberStepDefinitionParameter.html new file mode 100644 index 000000000..506994b99 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CucumberStepDefinitionParameter.html @@ -0,0 +1,5 @@ + + +报告步骤名称参数的数量与 Ruby 块的参数数量不一致的步骤定义。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/CucumberTableInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CucumberTableInspection.html new file mode 100644 index 000000000..64fed2893 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CucumberTableInspection.html @@ -0,0 +1,5 @@ + + +报告 Cucumber .feature 文件中 Examples 部分中的表格,其中包含未使用或缺失的列。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CucumberUndefinedStep.html b/original-plugin-raw/zh/inspectionDescriptions/CucumberUndefinedStep.html new file mode 100644 index 000000000..df03667b0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CucumberUndefinedStep.html @@ -0,0 +1,6 @@ + + +报告没有匹配步骤定义的 Cucumber(或其他一些 Gherkin).feature 文件中的步骤。 +

使用快速修复可以自动创建新的步骤定义。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CustomClassloader.html b/original-plugin-raw/zh/inspectionDescriptions/CustomClassloader.html new file mode 100644 index 000000000..7a4774e5d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CustomClassloader.html @@ -0,0 +1,10 @@ + + +报告 java.lang.ClassLoader 的用户定义子类。 +

+ 虽然不一定代表安全漏洞,但应彻底检查这种类是否存在可能的安全问题。 +

+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CustomSecurityManager.html b/original-plugin-raw/zh/inspectionDescriptions/CustomSecurityManager.html new file mode 100644 index 000000000..1a51c7f43 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CustomSecurityManager.html @@ -0,0 +1,15 @@ + + +报告 java.lang.SecurityManager 的用户定义子类。 +

+ 虽然不一定代表安全漏洞,但应彻底和专业地检查这种类是否存在可能的安全问题。 +

+

示例:

+

+  class CustomSecurityManager extends SecurityManager {
+  }
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CyclicClassDependency.html b/original-plugin-raw/zh/inspectionDescriptions/CyclicClassDependency.html new file mode 100644 index 000000000..36327573c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CyclicClassDependency.html @@ -0,0 +1,8 @@ + + +报告相互依赖或循环依赖于其他类的类。 +

此类循环依赖项会使代码变得脆弱且难以维护。

+ +

仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CyclicPackageDependency.html b/original-plugin-raw/zh/inspectionDescriptions/CyclicPackageDependency.html new file mode 100644 index 000000000..328d6223a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CyclicPackageDependency.html @@ -0,0 +1,8 @@ + + +报告相互依赖或循环依赖于其他软件包的软件包。 +

此类循环依赖项会使代码变得脆弱且难以维护。

+ +

仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CyclomaticComplexity.html b/original-plugin-raw/zh/inspectionDescriptions/CyclomaticComplexity.html new file mode 100644 index 000000000..af0d9f0c1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CyclomaticComplexity.html @@ -0,0 +1,17 @@ + + +报告分支点过多的方法。 +

分支点是以下选项之一:

+
    +
  • 循环语句
  • +
  • if 语句
  • +
  • 三元表达式
  • +
  • catch 部分
  • +
  • 包含一个或多个 &&|| 运算符的表达式
  • +
  • 具有非默认分支的 switch
  • +
+

循环复杂度过高的方法可能令人困惑且难以测试。

+ +

使用方法复杂度限制字段可指定一个方法允许的最大循环复杂度。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CyclomaticComplexityJS.html b/original-plugin-raw/zh/inspectionDescriptions/CyclomaticComplexityJS.html new file mode 100644 index 000000000..542a0a245 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CyclomaticComplexityJS.html @@ -0,0 +1,9 @@ + + +报告函数中分支点太多的函数(循环复杂度太高)。 此类函数可能令人困惑,也难以测试。 + +

+ 使用下面提供的字段可指定函数的最大可接受循环复杂度。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/CythonUsageBeforeDeclarationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/CythonUsageBeforeDeclarationInspection.html new file mode 100644 index 000000000..fa8662611 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/CythonUsageBeforeDeclarationInspection.html @@ -0,0 +1,13 @@ + + +

报告在声明之前引用的 Cython 变量。

+

示例:

+
+cdef int c_x
+
+print(c_x, c_y)  # 变量 'c_y' 在其声明前使用
+
+cdef int c_y = 0
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DangerousCatchAll.html b/original-plugin-raw/zh/inspectionDescriptions/DangerousCatchAll.html new file mode 100644 index 000000000..5a57a5c50 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DangerousCatchAll.html @@ -0,0 +1,19 @@ + + +

报告 catch 块中匹配所有类型的模式。

+ +

示例:

+

+  try f() catch {
+    case e => ???
+  }
+
+

在应用快速修复后:

+

+  try f() catch {
+    case e: Throwable => ???
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DanglingJavadoc.html b/original-plugin-raw/zh/inspectionDescriptions/DanglingJavadoc.html new file mode 100644 index 000000000..55096a7d6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DanglingJavadoc.html @@ -0,0 +1,33 @@ + + +报告不属于任何类、方法或字段的 Javadoc 注释。 +Javadoc 工具会忽略悬空的 Javadoc 注释,并且不会将它们包含在其生成的 HTML 文档中。 +

示例:

+

+  class A {
+    /**
+     * Dangling comment
+     */
+    /**
+     * Method javadoc
+     */
+     public void m(){}
+  }
+
+

可以通过快速修复完全删除此类注释或将它们转换为块注释。 在应用快速修复后:

+

+  class A {
+    /*
+      Dangling comment
+    */
+    /**
+     * Method javadoc
+     */
+    public void m(){}
+  }
+
+ +

使用忽略 JavaDoc 格式的文件头注释选项可以忽略 Java 文件开头的注释。 +这些通常是版权消息。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DanglingPointer.html b/original-plugin-raw/zh/inspectionDescriptions/DanglingPointer.html new file mode 100644 index 000000000..563058260 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DanglingPointer.html @@ -0,0 +1,15 @@ + + +报告指向已被 delete 运算符或 free(void* ptr) 函数删除的内存的指针的用法。 +

示例:

+

+  void process() {
+    for(node *pt = head; pt != nullptr; pt = pt->next) {
+        delete pt;
+    }
+  }
+
+ +

2020.2 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DartOutdatedDependencies.html b/original-plugin-raw/zh/inspectionDescriptions/DartOutdatedDependencies.html new file mode 100644 index 000000000..f028eba7f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DartOutdatedDependencies.html @@ -0,0 +1,5 @@ + + +报告编辑 pubspec.yaml 文件后,未通过 pub get下载或未通过 pub upgrade 更新的软件包。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DartPathPackageReference.html b/original-plugin-raw/zh/inspectionDescriptions/DartPathPackageReference.html new file mode 100644 index 000000000..d8ca9e7fa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DartPathPackageReference.html @@ -0,0 +1,8 @@ + + +检查在 pubspec.yaml 中配置为路径软件包的依赖项的路径引用。 +路径必须有效,并且目标文件夹必须包含 pubspec.yaml 文件。 +
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DataClassPrivateConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/DataClassPrivateConstructor.html new file mode 100644 index 000000000..2c18e07f6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DataClassPrivateConstructor.html @@ -0,0 +1,18 @@ + + +报告数据类中的 private 主构造函数。 +

+ data 类拥有 copy() 工厂方法,可以像构造函数一样使用。 + 为了提供足够的安全性,构造函数不应被标记为 private。 +

+

示例:

+

+  data class User private constructor(val name: String)
+
+

快速修复可将构造函数可见性修饰符更改为 public

+

+  data class User(val name: String)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DataProviderReturnType.html b/original-plugin-raw/zh/inspectionDescriptions/DataProviderReturnType.html new file mode 100644 index 000000000..ba49f0f3f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DataProviderReturnType.html @@ -0,0 +1,20 @@ + + +报告不返回 Object[][]Iterator<Object> 的用 @DataProvider 注解标记的方法。 +如果返回另一种类型,TestNG 将引发异常。 +

示例:

+

+public class TestNgTest {
+  @DataProvider(name = "Languages")
+  List<String> getData() {
+    return List.of("Java", "Kotlin");
+  }
+
+  @Test(dataProvider = "Languages")
+  public void testData(String language) {
+    System.out.println(language);
+  }
+}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DateToString.html b/original-plugin-raw/zh/inspectionDescriptions/DateToString.html new file mode 100644 index 000000000..e498e3b70 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DateToString.html @@ -0,0 +1,6 @@ + + +报告 java.util.Date 对象上的 toString() 调用。 在国际化环境中,此类调用通常是不正确的。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DebuggerStatementJS.html b/original-plugin-raw/zh/inspectionDescriptions/DebuggerStatementJS.html new file mode 100644 index 000000000..9699875c4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DebuggerStatementJS.html @@ -0,0 +1,5 @@ + + +报告用于与 Javascript 调试器交互的 debugger 语句。 此类语句不应出现在生产代码中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DeclareCollectionAsInterface.html b/original-plugin-raw/zh/inspectionDescriptions/DeclareCollectionAsInterface.html new file mode 100644 index 000000000..a39e840ab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DeclareCollectionAsInterface.html @@ -0,0 +1,22 @@ + + +报告使用集合类作为类型而不是使用相应接口进行的 Collection 变量的声明。 如果削弱变量类型会导致编译错误,则不发出警告。 +

示例:

+

+  // 警告:使用了具体集合类 ArrayList。
+  int getTotalLength(ArrayList<String> list) {
+    return list.stream().mapToInt(String::length).sum();
+  }
+
+  // 无警告,因为 trimToSize() 方法
+  // 在 List 接口中不可用
+  void addData(ArrayList<String> data) {
+    data.add("Hello");
+    data.add("World");
+    data.trimToSize();
+  }
+
+建议通过快速修复使用相应集合接口(例如 CollectionSetList)。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DeclareParentsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DeclareParentsInspection.html new file mode 100644 index 000000000..b97fe7e50 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DeclareParentsInspection.html @@ -0,0 +1,5 @@ + + +报告 @AspectJ 引入不一致:检查 defaultImpl 是否必需,如果是,它是否实现给定接口。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DefaultAnnotationParam.html b/original-plugin-raw/zh/inspectionDescriptions/DefaultAnnotationParam.html new file mode 100644 index 000000000..36a73322d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DefaultAnnotationParam.html @@ -0,0 +1,20 @@ + + +报告被赋值给其 default 值的注解形参。 +

示例:

+

+  @interface Test {
+      Class<?> expected() default Throwable.class;
+  }
+
+  @Test(expected = Throwable.class)
+  void testSmth() {}
+
+

在应用快速修复后:

+

+  @Test()
+  void testSmth() {}
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DefaultFileTemplate.html b/original-plugin-raw/zh/inspectionDescriptions/DefaultFileTemplate.html new file mode 100644 index 000000000..e0580d307 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DefaultFileTemplate.html @@ -0,0 +1,5 @@ + + +报告文件头默认文件模板的用法并建议更改它。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DefaultNotLastCaseInSwitch.html b/original-plugin-raw/zh/inspectionDescriptions/DefaultNotLastCaseInSwitch.html new file mode 100644 index 000000000..9f9c3dde5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DefaultNotLastCaseInSwitch.html @@ -0,0 +1,31 @@ + + +报告其中的 default case 位于另一个 case 前面的 switch 语句或表达式。 +

此结构造成不必要的困惑。 +可以通过快速修复将 default case 移到最后位置。 + 只有给定分支的结尾有 break/yield 时,才能进行修正。

+

示例:

+

+  switch (n) {
+      default:
+          System.out.println();
+          break;
+      case 1:
+          break;
+  }
+
+

在应用快速修复后:

+

+  switch (n) {
+    case 1:
+        break;
+    default:
+        System.out.println();
+        break;
+  }
+
+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DefaultNotLastCaseInSwitchJS.html b/original-plugin-raw/zh/inspectionDescriptions/DefaultNotLastCaseInSwitchJS.html new file mode 100644 index 000000000..8fa3986b3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DefaultNotLastCaseInSwitchJS.html @@ -0,0 +1,6 @@ + + +报告其中的 default case 位于另一个 case 之前, +而不是作为最后一个 case,因而可能造成混淆的 switch 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DeferredIsResult.html b/original-plugin-raw/zh/inspectionDescriptions/DeferredIsResult.html new file mode 100644 index 000000000..ca0b5dba3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DeferredIsResult.html @@ -0,0 +1,28 @@ + + +报告具有 kotlinx.coroutines.Deferred 返回类型的函数。 +

+ 使用 Deferred 作为返回类型的函数其名称应带有 Async 后缀。 + 否则,建议将函数标记为 suspend 并在其中解包 Deferred。 +

+

示例:

+

+  fun calcEverything(): Deferred<Int> {
+      return CompletableDeferred(42)
+  }
+
+

应用添加 Async 后缀的快速修复之后:

+

+  fun calcEverythingAsync(): Deferred<Int> {
+      return CompletableDeferred(42)
+  }
+
+

应用将函数转换为 suspend 的快速修复之后:

+

+  suspend fun calcEverything(): Int {
+      return CompletableDeferred(42).await()
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DeferredResultUnused.html b/original-plugin-raw/zh/inspectionDescriptions/DeferredResultUnused.html new file mode 100644 index 000000000..44e4c99c1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DeferredResultUnused.html @@ -0,0 +1,23 @@ + + +如果未使用返回值,则报告具有 Deferred 结果类型的函数调用。 +

如果未使用 Deferred 返回值,则调用站点不会等待补全此函数。

+

示例:

+

+  fun calcEverythingAsync() = CompletableDeferred(42)
+
+  fun usage() {
+      calcEverythingAsync()
+  }
+
+

该快速修复会提供具有 Deferred 初始值设定项的变量:

+

+  fun calcEverythingAsync() = CompletableDeferred(42)
+
+  fun usage() {
+      val answer = calcEverythingAsync()
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DelegatesTo.html b/original-plugin-raw/zh/inspectionDescriptions/DelegatesTo.html new file mode 100644 index 000000000..59ec40b60 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DelegatesTo.html @@ -0,0 +1,13 @@ + + +报告未使用的 @DelegatesTo.Target 注解和未解析的 @DelegatedTo.target 注解特性值。 +

示例:

+

+  // 未使用的目标 't1' 和未解析的目标 't2'
+  def m(
+      @DelegatesTo.Target('t1') target,
+      @DelegatesTo(target = 't2') Closure c
+  ) {}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/DelegationToVarProperty.html b/original-plugin-raw/zh/inspectionDescriptions/DelegationToVarProperty.html new file mode 100644 index 000000000..38ef2a426 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DelegationToVarProperty.html @@ -0,0 +1,21 @@ + + +报告至 var 属性的接口委托 +

仅使用属性的初始值进行委托,任何后续的赋值都不会影响它。

+

示例:

+

+  class Example(var text: CharSequence): CharSequence by text
+
+

快速修复可将属性替换为不可变的属性:

+

+  class Example(val text: CharSequence): CharSequence by text
+
+

如果您出于某种原因依赖可变性,则可使用另一种方法:

+

+  class Example(text: CharSequence): CharSequence by text {
+      var text = text
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/Dependency.html b/original-plugin-raw/zh/inspectionDescriptions/Dependency.html new file mode 100644 index 000000000..5fd11376d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Dependency.html @@ -0,0 +1,7 @@ + + +根据指定依赖关系规则报告范围之间的非法依赖关系。 依赖关系规则可用于禁止从一个范围到另一个范围的用法。 + +

使用下面的配置依赖关系规则按钮可以自定义验证规则。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/DeprecatedApi.html b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedApi.html new file mode 100644 index 000000000..85ae4b94e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedApi.html @@ -0,0 +1,5 @@ + + +报告指定检查范围内已弃用的代码用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DeprecatedCallableAddReplaceWith.html b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedCallableAddReplaceWith.html new file mode 100644 index 000000000..d8cebf954 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedCallableAddReplaceWith.html @@ -0,0 +1,24 @@ + + +报告在其 kotlin.deprecated 注解中没有 kotlin.ReplaceWith 实参的已弃用函数和属性,IDE 会建议根据它们的主体进行添加。 +

+ Kotlin 提供 ReplaceWith 实参来自动替换已弃用的声明。 + 建议使用实参来修正代码中的弃用问题。 +

+

示例:

+

+  @Deprecated("Use refined() instead.")
+  fun deprecated() = refined()
+
+  fun refined() = 42
+
+

该快速修复会添加 ReplaceWith() 实参:

+

+  @Deprecated("Use refined() instead.", ReplaceWith("refined()"))
+  fun deprecated() = refined()
+
+  fun refined() = 42
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/DeprecatedClassUsageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedClassUsageInspection.html new file mode 100644 index 000000000..5933c1bc8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedClassUsageInspection.html @@ -0,0 +1,5 @@ + + +报告 XML 文件中已弃用的类和方法的用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DeprecatedGradleDependency.html b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedGradleDependency.html new file mode 100644 index 000000000..de55a2cda --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedGradleDependency.html @@ -0,0 +1,18 @@ + + +报告 Gradle 构建脚本中已弃用的依赖项。 +

示例:

+

+  dependencies {
+      compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.0"
+  }
+
+

在应用快速修复后:

+

+  dependencies {
+      compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.0"
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DeprecatedIsStillUsed.html b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedIsStillUsed.html new file mode 100644 index 000000000..0e76337d2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedIsStillUsed.html @@ -0,0 +1,19 @@ + + +报告代码中使用的已弃用的类、方法和字段。 +

示例:

+ +

+  class MyCode {
+  @Deprecated
+  void oldMethod() {}// 警告:"弃用的成员仍在使用"
+
+  void newMethod() {
+    oldMethod(); // 被遗忘的用法
+  }
+  }
+
+

已弃用的元素中的用法将被忽略。

+

注意:由于性能原因,仅当非 private 成员的名称很少出现在项目中时,才会对其进行检查。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DeprecatedKindProjectorSyntax.html b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedKindProjectorSyntax.html new file mode 100644 index 000000000..165a5d44d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedKindProjectorSyntax.html @@ -0,0 +1,17 @@ + + +报告 kind-projector 语法中 ? 标识符的用法。 +

? 标识符将用于 Scala 3 中类型中的通配符实参(请参阅类型中的通配符实参)。 + 它在 kind-projector 类型 lambda 中的用法已被弃用,并将被 * 取代。

+

示例:

+

+  List[?]
+
+

在应用快速修复后:

+

+  List[*]
+
+ +

此检查在 Kind Projector 插件启用时运行。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DeprecatedLombok.html b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedLombok.html new file mode 100644 index 000000000..4758c67d2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedLombok.html @@ -0,0 +1,5 @@ + + +报告已弃用的 Lombok 注解并建议快速修复以将它们替换为提升到主软件包的注解。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/DeprecatedMavenDependency.html b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedMavenDependency.html new file mode 100644 index 000000000..1d8a719ed --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedMavenDependency.html @@ -0,0 +1,25 @@ + + +报告已弃用的 Maven 依赖项。 +

示例:

+

+  <dependencies>
+    <dependency>
+        <groupId>org.jetbrains.kotlin</groupId>
+        <artifactId>kotlin-stdlib-jre7</artifactId>
+        <version>${kotlin.version}</version>
+    </dependency>
+  </dependencies>
+
+

该快速修复会将已弃用的依赖项更改为维护的依赖项:

+

+   <dependencies>
+    <dependency>
+        <groupId>org.jetbrains.kotlin</groupId>
+        <artifactId>kotlin-stdlib-jdk7</artifactId>
+        <version>${kotlin.version}</version>
+    </dependency>
+  </dependencies>
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DeprecatedPackageObject.html b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedPackageObject.html new file mode 100644 index 000000000..eda5ef78a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedPackageObject.html @@ -0,0 +1,9 @@ + + +

报告软件包对象的用法。

+

软件包对象在 Scala 3 中已弃用,将被逐步淘汰。 考虑改用顶级定义或正则对象。 +

+

请参阅 Dotty 中的软件包对象

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DeprecatedViewBound.html b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedViewBound.html new file mode 100644 index 000000000..870c1775d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DeprecatedViewBound.html @@ -0,0 +1,15 @@ + + +

报告视图边界的用法并建议将其替换为隐式形参。

+

视图边界已被弃用:SI-7629

+

示例:

+

+  class Sample[A <% Int]
+
+

在应用快速修复后:

+

+  class Sample[A]()
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Deprecation.html b/original-plugin-raw/zh/inspectionDescriptions/Deprecation.html new file mode 100644 index 000000000..2b8ed6c87 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Deprecation.html @@ -0,0 +1,24 @@ + + +报告已弃用的 API(类、字段和方法)的用法,例如:new Thread().stop();。 +

默认情况下,如果不可能或很难避免,则检查不会发出警告。 比如下面的代码就不会被报告:

+

+  abstract class A { //库代码
+     @Deprecated
+     abstract void m();
+  }
+  class B extends A { //项目代码
+     @Override
+     void m() {
+        //doSmth;
+     }
+  }
+
+ +

配置检查:

+

+ 您可以使用检查选项在弃用的成员、覆盖弃用的 abstract 方法、非 static 导入语句、弃用的类的方法或相同的顶级类中禁用此检查。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DerivedFunctionsReturnTypeMismatch.html b/original-plugin-raw/zh/inspectionDescriptions/DerivedFunctionsReturnTypeMismatch.html new file mode 100644 index 000000000..4291b7272 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DerivedFunctionsReturnTypeMismatch.html @@ -0,0 +1,5 @@ + + +报告与基本函数的类型相比具有不同(非协变)返回类型的重写虚拟函数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DesignForExtension.html b/original-plugin-raw/zh/inspectionDescriptions/DesignForExtension.html new file mode 100644 index 000000000..991ca3110 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DesignForExtension.html @@ -0,0 +1,21 @@ + + +报告非 staticprivatefinalabstract,且其语句体不为空的方法。 +

+ 使用避免此类方法的样式进行编码可以保护类的约定不会被它们的子类破坏。 这种样式的好处是子类不会因为忘记调用 super 方法而破坏超类的状态。 代价是子类的灵活性受到限制,特别是它们不能阻止超类中代码的执行。 使用该快速修复可以添加缺失的修饰符。

+

示例:

+

+  class Foo {
+    public boolean equals(Object o) { return true; }
+  }
+
+

在应用快速修复后:

+

+  class Foo {
+    public final boolean equals(Object o) { return true; }
+  }
+
+此检查适用于将在安全环境中使用的代码,可能不适合限制较少的环境。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Destructure.html b/original-plugin-raw/zh/inspectionDescriptions/Destructure.html new file mode 100644 index 000000000..6c3a1e5cc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Destructure.html @@ -0,0 +1,27 @@ + + +报告可以析构的声明。 +

示例:

+

+  data class My(val first: String, val second: Int, val third: Boolean)
+
+  fun foo(list: List<My>) {
+      list.forEach { my ->
+          println(my.second)
+          println(my.third)
+      }
+  }
+
+

该快速修复会析构声明并引入具有来自相应类的名称的新变量:

+

+  data class My(val first: String, val second: Int, val third: Boolean)
+
+  fun foo(list: List<My>) {
+      list.forEach { (_, second, third) ->
+          println(second)
+          println(third)
+      }
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/DestructuringWrongName.html b/original-plugin-raw/zh/inspectionDescriptions/DestructuringWrongName.html new file mode 100644 index 000000000..17b4b1653 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DestructuringWrongName.html @@ -0,0 +1,21 @@ + + +报告与析构数据类的不同属性名称匹配的析构声明条目。 +

示例:

+

+  data class Foo(val a: String, val b: Int, val c: String)
+
+  fun bar(f: Foo) {
+      val (a, c) = f
+  }
+
+

该快速修复会更改变量的名称以匹配相应类字段的名称:

+

+  data class Foo(val a: String, val b: Int, val c: String)
+
+  fun bar(f: Foo) {
+      val (a, b) = f
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/DevKitPropertiesQuotesValidation.html b/original-plugin-raw/zh/inspectionDescriptions/DevKitPropertiesQuotesValidation.html new file mode 100644 index 000000000..dbbddc060 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DevKitPropertiesQuotesValidation.html @@ -0,0 +1,19 @@ + + +报告属性值中形参两旁错误的引号数量。 +

+ 如果属性值中存在形参,则必须将该值作为模式传递给 java.text.MessageFormat。 + 也就是说为转义使用单引号。 因此,要让引号可见,必须使用重复的引号: +

    +
  • '{0}'{0}
  • +
  • ''{0}'''$value$'
  • +
+

+ 使用 choice 格式时,会将嵌套格式评估为格式本身,因此必须添加第二个双引号。 + 传递 1 时: +

    +
  • {0, choice, 0#no|#1''{0}'' file}{0} files
  • +
  • {0, choice, 0#no|#1''''{0}'''' file}'$number_of_files$' files
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DfaConstantConditions.html b/original-plugin-raw/zh/inspectionDescriptions/DfaConstantConditions.html new file mode 100644 index 000000000..7aae6844d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DfaConstantConditions.html @@ -0,0 +1,10 @@ + + +

报告包含具有以下特点的值的表达式,根据数据流分析,该值始终为常量,但可能不应如此。

+

示例:

+

+  if (2 < 3) // 条件始终为 true
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/DialogTitleCapitalization.html b/original-plugin-raw/zh/inspectionDescriptions/DialogTitleCapitalization.html new file mode 100644 index 000000000..e9cfa7b8f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DialogTitleCapitalization.html @@ -0,0 +1,12 @@ + +报告方法形参中的字符串和使用 @Nls 注解的返回值,并将形参大写以符合大多数平台 UI 指南中的大写规则。 +

示例:

+

+  void setTitle(@NlsContexts.DialogTitle String title) {}
+  setTitle("This is sentence capitalization but should be title"); 
+
+

在应用快速修复后:

+

+  setTitle("This Is Sentence Capitalization but Should Be Title"); 
+
+ \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DiamondCanBeReplacedWithExplicitTypeArguments.html b/original-plugin-raw/zh/inspectionDescriptions/DiamondCanBeReplacedWithExplicitTypeArguments.html new file mode 100644 index 000000000..b69fa2ff9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DiamondCanBeReplacedWithExplicitTypeArguments.html @@ -0,0 +1,12 @@ + + +报告泛型类的实例化,其中使用 <> 符号(菱形)代替类型形参。 + +

快速修复会将 <>(菱形)替换为显式类型形参。 + 此操作可用于使代码与 Java 6 兼容。

+

示例:

+
List <String> list = new ArrayList<>()
+

在应用快速修复后:

+
List <String> list = new ArrayList<String>()
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DifferentKotlinGradleVersion.html b/original-plugin-raw/zh/inspectionDescriptions/DifferentKotlinGradleVersion.html new file mode 100644 index 000000000..b777d2b76 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DifferentKotlinGradleVersion.html @@ -0,0 +1,13 @@ + + +报告使用了不同的 IDE 和 Gradle 插件版本。 +

这可能会导致 IDE 和 Gradle 构建在错误报告或代码行为方面的不一致。

+

示例:

+

+  dependencies {
+    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:0.0.1"
+  }
+
+

要修正此问题,请更改 kotlin gradle 插件版本以匹配捆绑到 IDE 插件中的 kotlin 版本。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DifferentKotlinMavenVersion.html b/original-plugin-raw/zh/inspectionDescriptions/DifferentKotlinMavenVersion.html new file mode 100644 index 000000000..8afe48e8f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DifferentKotlinMavenVersion.html @@ -0,0 +1,6 @@ + + +报告 Kotlin 编译器中不同于 IDE 插件中所用版本的 Maven 插件版本。 +

这种不一致可能导致 IDE 和编译器出现不同的错误报告行为。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DifferentMavenStdlibVersion.html b/original-plugin-raw/zh/inspectionDescriptions/DifferentMavenStdlibVersion.html new file mode 100644 index 000000000..f6f1a3857 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DifferentMavenStdlibVersion.html @@ -0,0 +1,6 @@ + + +报告不同的 Kotlin stdlib 和编译器版本。 +

使用不同版本的 Kotlin 编译器和标准库会导致不可预测的运行时问题,应避免此情况。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DifferentStdlibGradleVersion.html b/original-plugin-raw/zh/inspectionDescriptions/DifferentStdlibGradleVersion.html new file mode 100644 index 000000000..968d337ef --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DifferentStdlibGradleVersion.html @@ -0,0 +1,12 @@ + + +报告不同的 Kotlin stdlib 和编译器版本。 +

示例:

+

+  dependencies {
+    classpath "org.jetbrains.kotlin:kotlin-stdlib:0.0.1"
+  }
+
+

要修正此问题,请更改 kotlin stdlib 版本以匹配 kotlin 编译器版本。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DirectUseOfResultType.html b/original-plugin-raw/zh/inspectionDescriptions/DirectUseOfResultType.html new file mode 100644 index 000000000..df36182df --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DirectUseOfResultType.html @@ -0,0 +1,13 @@ + + +报告使用 Result 作为返回类型的函数。 +

+Result 不应用作返回类型。 +抛出异常、使用可 null 类型或使用特定于域的结果类可指示失败。 +

+

示例:

+

+  fun foo() = Result.success(true)
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DisjointPackage.html b/original-plugin-raw/zh/inspectionDescriptions/DisjointPackage.html new file mode 100644 index 000000000..48b44769e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DisjointPackage.html @@ -0,0 +1,8 @@ + + +报告类可以分成相互独立的子集的软件包。 +

此类非连续软件包表示临时打包或缺乏概念上的连通性。

+ +

仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DivideByZero.html b/original-plugin-raw/zh/inspectionDescriptions/DivideByZero.html new file mode 100644 index 000000000..b11b5e43e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DivideByZero.html @@ -0,0 +1,9 @@ + + +报告除以 0 或对 0 取余。 +对于双精度或浮点数,此类表达式将产生 Infinity-InfinityNaN 结果;对于整数,则抛出 ArithmeticException。 +

当表达式的结果为 NaN 时,该修正会建议将除法表达式替换为 NaN 常量。 + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DivideByZeroJS.html b/original-plugin-raw/zh/inspectionDescriptions/DivideByZeroJS.html new file mode 100644 index 000000000..d25a7c72b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DivideByZeroJS.html @@ -0,0 +1,5 @@ + + +报告除以 0 或对 0 取余。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DjangoBrokenLineCommentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DjangoBrokenLineCommentInspection.html new file mode 100644 index 000000000..74b177c07 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DjangoBrokenLineCommentInspection.html @@ -0,0 +1,10 @@ + + +

报告 Django 模板中有 #} 行注释结束标记但没有匹配的行注释开始标记的情况。

+

示例:

+
+注释 #}
+
+

IDE 高亮显示 #},因为它需要相应的 {# 令牌。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DjangoCloseTagInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DjangoCloseTagInspection.html new file mode 100644 index 000000000..1e5f89a62 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DjangoCloseTagInspection.html @@ -0,0 +1,10 @@ + + +

报告 Django 模板中的左标记与右标记未正确匹配的情况。

+

示例:

+
+{% if error_message %}<p><strong>{{ error_message }}</p>{% endif %}
+
+

IDE 报告 strong 标记未关闭的错误。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/DjangoIncompatibleInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DjangoIncompatibleInspection.html new file mode 100644 index 000000000..5e3ea1061 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DjangoIncompatibleInspection.html @@ -0,0 +1,11 @@ + + +

报告当前 Django 版本中不可用的功能。

+

示例:

+
+{% if my_var is True %}
+{% endif %}
+
+

从 1.10 版起开始提供。 在早期版本中发现时,IDE 会显示警告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DjangoOrmInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DjangoOrmInspection.html new file mode 100644 index 000000000..d9f78fd31 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DjangoOrmInspection.html @@ -0,0 +1,14 @@ + + +

报告由于某些 ORM 原因而可能没有调用的几种方法。

+

示例:

+
+class Choice:
+    question = ForeignKey(Question, null=False)
+
+
+choice_set = Question.objects.get(id=1).choice_set.remove()
+
+

如果外键有 null=False,则无法调用 remove 函数。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DjangoRelationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DjangoRelationInspection.html new file mode 100644 index 000000000..4f71809fa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DjangoRelationInspection.html @@ -0,0 +1,10 @@ + + +

报告 Django 模板中的比较运算符前后缺少的空格。

+

示例:

+
+{% if my_var==1 %}
+{% endif %}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DjangoStartLineCommentWithoutEndingInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DjangoStartLineCommentWithoutEndingInspection.html new file mode 100644 index 000000000..d55548566 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DjangoStartLineCommentWithoutEndingInspection.html @@ -0,0 +1,5 @@ + + +报告 Django 使用 {# 开始行注释但没有用 #} 结束。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedFilterInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedFilterInspection.html new file mode 100644 index 000000000..4c2a27f23 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedFilterInspection.html @@ -0,0 +1,9 @@ + + +

报告 Django 模板中未解析的筛选器。

+

示例:

+
+  {{ my_value|cool_filter:"arg" }}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedLoadInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedLoadInspection.html new file mode 100644 index 000000000..cf7c4e945 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedLoadInspection.html @@ -0,0 +1,9 @@ + + +

报告 Django load 标记中未解析的引用。

+

示例:

+
+  {% load something_nonexistent %}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedStaticReferenceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedStaticReferenceInspection.html new file mode 100644 index 000000000..0949c7299 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedStaticReferenceInspection.html @@ -0,0 +1,12 @@ + + +

报告对静态资源的未解析引用。

+

示例:

+
+{% load staticfiles %}
+<link rel="stylesheet" type="text/css" href="{% static 'polls/style.css' %}" />
+
+

在本例中,如果 static/poll 目录中没有 style.css 文件, +则高亮显示此文件。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedTagInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedTagInspection.html new file mode 100644 index 000000000..d23f94ad7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedTagInspection.html @@ -0,0 +1,14 @@ + + +

+ 报告 Django 模板中未解析的标记。 +

+

示例:

+
+<h1>{{ question.question_text }}</h1>
+<start>
+
+

IDE 高亮显示 <start>。 您可以移除此标记,也可以应用快速修复 +将 <start> 添加到自定义 HTML 标记。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedTemplateReferenceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedTemplateReferenceInspection.html new file mode 100644 index 000000000..090c656b0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedTemplateReferenceInspection.html @@ -0,0 +1,12 @@ + + +

报告 extends> 和 include> Django 标记字符串文字中 +未解析的文件引用。

+

示例:

+
+{% extends "../DjangoApp/templatetags/base.html"%}
+
+

本例中高亮显示 base.html 标记, +因为它在指定的位置不存在。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedUrlInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedUrlInspection.html new file mode 100644 index 000000000..e8be2aec2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DjangoUnresolvedUrlInspection.html @@ -0,0 +1,10 @@ + + +

报告 url 标记中缺少的 url。

+

示例:

+
+{% url 'url_name' %}
+
+

如果 urls 文件中未定义 url_name,IDE 将显示警告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DjangoUrlArgumentsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DjangoUrlArgumentsInspection.html new file mode 100644 index 000000000..d481ff06c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DjangoUrlArgumentsInspection.html @@ -0,0 +1,14 @@ + + +

如果 url() 函数的 URL 路径中包含形参,则报告模板文件中缺少的形参。

+

示例:

+

url.py 文件中

+
+url(r'^(?P<question_id>[0-9]+)/', views.detail, name='detail')
+
+

在模板文件中

+
+{% url 'polls:detail' %}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DockerFileAddOrCopySemantic.html b/original-plugin-raw/zh/inspectionDescriptions/DockerFileAddOrCopySemantic.html new file mode 100644 index 000000000..6a2c265a5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DockerFileAddOrCopySemantic.html @@ -0,0 +1,23 @@ + + +

报告 ADDCOPY 命令中无效的目标目录。

+

+ 根据 Dockerfile 规范,如果指定了多个源,则目标必须是目录,并且必须以斜杠 '/' 结尾。 + 否则,Docker 构建会失败。 +

+ +

示例:

+

+  # 下面的所有命令都将失败
+  ADD textA.txt textB.txt relativeDir
+  ADD ["binaryA.jar", "binary2.jar", "destination"]
+  COPY text3.txt text4.txt /absolute/path
+
+

在应用快速修复后:

+

+  ADD textA.txt textB.txt relativeDir/
+  ADD ["binaryA.jar", "binary2.jar", "destination/"]
+  COPY text3.txt text4.txt /absolute/path/
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DockerFileArgumentCount.html b/original-plugin-raw/zh/inspectionDescriptions/DockerFileArgumentCount.html new file mode 100644 index 000000000..d0fd4b56d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DockerFileArgumentCount.html @@ -0,0 +1,8 @@ + + +

报告 Dockerfile 命令的无效实参数量。

+

+ 到达带有无效实参数量的指令后,Docker 构建将失败。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DockerFileAssignments.html b/original-plugin-raw/zh/inspectionDescriptions/DockerFileAssignments.html new file mode 100644 index 000000000..e86f473cf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DockerFileAssignments.html @@ -0,0 +1,29 @@ + + +

报告 ARGENVLABEL 命令中键值对的不正确间距。

+

+ 尽管 Dockerfile 规范中没有明确指定,但不允许使用键值对的某些间距组合。 + 到达问题指令后,Docker 构建将失败。 +

+ +

示例:

+
    +
  • ARG 命令不允许在 '=' 周围有任何空格
  • +
  • ENVLABEL 在 '=' 后不允许有空格
  • +
+

+  # 下面的所有命令都将失败
+  ARG answer = 42
+  ARG version= "1.0.0"
+  LABEL "maintained.by"= someone@gmail.com
+  ENV JAVA_HOME= "/docker-java-home"
+
+

在应用快速修复后:

+

+  ARG answer=2
+  ARG version="1.0.0"
+  LABEL "maintained.by"=someone@gmail.com
+  ENV JAVA_HOME="/docker-java-home"
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DockerFileRunCommandMissingContinuation.html b/original-plugin-raw/zh/inspectionDescriptions/DockerFileRunCommandMissingContinuation.html new file mode 100644 index 000000000..40abb99f0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DockerFileRunCommandMissingContinuation.html @@ -0,0 +1,21 @@ + + +

报告 RUN 命令中的缺失继续符。

+

+ 在 shell 形式的 RUN 命令中,应使用 '\'(反斜杠)将单条 RUN 指令延续到下一行。 + 否则,Docker 构建会失败。 +

+ +

示例:

+

+  # the command below will fail
+  RUN /bin/bash -c 'source $HOME/.bashrc;
+      echo $HOME'
+
+

在应用快速修复后:

+

+  RUN /bin/bash -c 'source $HOME/.bashrc; \
+      echo $HOME'
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DocumentWriteJS.html b/original-plugin-raw/zh/inspectionDescriptions/DocumentWriteJS.html new file mode 100644 index 000000000..5a3740239 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DocumentWriteJS.html @@ -0,0 +1,9 @@ + + +报告对 document.write()document.writeln() 的方法调用。 +在采用显式 DOM 调用(例如 getElementByID() +和 createElement())时, +此类调用的大多数用法执行效果更好。 此外,write()writeln() 调用不适用于 XML +DOM,包括用于 XHTML 的 DOM(如果以 XML 格式查看)。 这会导致难以指出错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DollarSignInName.html b/original-plugin-raw/zh/inspectionDescriptions/DollarSignInName.html new file mode 100644 index 000000000..fbe228e03 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DollarSignInName.html @@ -0,0 +1,11 @@ + + +报告名称中带有美元符号 ($) 的变量、方法和类。 虽然此类名称是合法的 Java,但强烈建议不要在生成的 Java 代码之外使用它们。 +

示例:

+

+  class SalaryIn${}
+
+

仅在编辑器中建议重命名快速修复。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DomModelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DomModelInspection.html new file mode 100644 index 000000000..b72b537af --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DomModelInspection.html @@ -0,0 +1,5 @@ + + +报告各种 Java EE 系统常见的基本模型错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DoubleBraceInitialization.html b/original-plugin-raw/zh/inspectionDescriptions/DoubleBraceInitialization.html new file mode 100644 index 000000000..d5aaafb33 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DoubleBraceInitialization.html @@ -0,0 +1,24 @@ + + +报告双大括号初始化。 +

双大括号初始化在非 static 上下文中使用时可能会导致内存泄漏,因为它创建了一个将引用周围对象的匿名类。

+

与常规初始化相比,双大括号初始化的性能更差,因为它需要加载一个额外的类。

+

如果 equals() 方法不接受子类作为形参,还可能导致 equals() 比较失败。

+

此外,在 Java 9 以前的版本中,双大括号初始化不能与 Diamond 运算符结合使用,因为它与匿名类不兼容。 +

+

示例:

+

+  List<Integer> list = new ArrayList<>() {{
+    add(1);
+    add(2);
+  }};
+
+

在应用快速修复后:

+

+  List<Integer> list = new ArrayList<>();
+  list.add(1);
+  list.add(2);
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DoubleCheckedLocking.html b/original-plugin-raw/zh/inspectionDescriptions/DoubleCheckedLocking.html new file mode 100644 index 000000000..47e56d07b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DoubleCheckedLocking.html @@ -0,0 +1,29 @@ + + +报告双重检查锁定。 +

+ 双重检查锁定尝试以线程安全的方式按需初始化字段,同时避免同步的开销。 + 遗憾的是,在未被声明为 volatile 的字段上使用时,它不具备线程安全。 + 在使用 Java 1.4 或更早的版本时,双重检查锁定即便对 volatile 字段也不起作用。 + 阅读上面的链接文章,了解对该问题的详细说明。 +

+

+ 不正确的双重检查锁定示例: +

+

+  class Foo {
+    private Helper helper = null;
+    public Helper getHelper() {
+      if (helper == null)
+        synchronized(this) {
+          if (helper == null) helper = new Helper();
+        }
+        return helper;
+      }
+    }
+    // 其他函数和成员…
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DoubleLiteralMayBeFloatLiteral.html b/original-plugin-raw/zh/inspectionDescriptions/DoubleLiteralMayBeFloatLiteral.html new file mode 100644 index 000000000..76658d2df --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DoubleLiteralMayBeFloatLiteral.html @@ -0,0 +1,11 @@ + + +报告被立即转换为 floatdouble 文字表达式。 +

此类文字表达式可以替换为等效的 float 文字。

+

示例:

+
float f = (float)1.1;
+

在应用快速修复后:

+
float f = 1.1f;
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/DoubleNegation.html b/original-plugin-raw/zh/inspectionDescriptions/DoubleNegation.html new file mode 100644 index 000000000..9e9786f1e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DoubleNegation.html @@ -0,0 +1,24 @@ + + +报告可以简化的双重否定。 +

示例:

+

+  if (!!functionCall()) {}
+
+

在应用快速修复后:

+

+  if (functionCall()) {}
+
+

示例:

+

+  if (!(a != b)) {}
+
+

在应用快速修复后:

+

+  if (a == b) {}
+
+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DoubleNegationScala.html b/original-plugin-raw/zh/inspectionDescriptions/DoubleNegationScala.html new file mode 100644 index 000000000..cb0960789 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DoubleNegationScala.html @@ -0,0 +1,15 @@ + + +

报告在布尔表达式中的双重求反。

+ +

示例:

+

+  !(!b)
+
+

在应用快速修复后:

+

+  b
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DriverManagerGetConnection.html b/original-plugin-raw/zh/inspectionDescriptions/DriverManagerGetConnection.html new file mode 100644 index 000000000..717ec6eb3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DriverManagerGetConnection.html @@ -0,0 +1,12 @@ + + +报告任何使用 java.sql.DriverManager 获取 JDBC 连接的情况。 +

+ java.sql.DriverManager 已被 javax.sql.Datasource 取代,后者允许连接池和其他优化。 +

+

示例:

+
  Connection conn = DriverManager.getConnection(url, username, password);
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DropTakeToSlice.html b/original-plugin-raw/zh/inspectionDescriptions/DropTakeToSlice.html new file mode 100644 index 000000000..b90d36b40 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DropTakeToSlice.html @@ -0,0 +1,19 @@ + + +

报告 droptake 的组合并将其替换为 slice。 +

+

示例:

+

+  var x: Seq[Int]
+  x.drop(n).take(m)
+  x.take(m).drop(n)
+
+

在应用快速修复后:

+

+  var x: Seq[Int]
+  x.slice(n, n + m)
+  x.slice(n, m)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DuplicateAttribute.html b/original-plugin-raw/zh/inspectionDescriptions/DuplicateAttribute.html new file mode 100644 index 000000000..bf3f9d1a4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DuplicateAttribute.html @@ -0,0 +1,5 @@ + + +报告属性的重复特性。 尽管编译器会忽略它们,但这可能表明存在问题。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DuplicateBranchesInSwitch.html b/original-plugin-raw/zh/inspectionDescriptions/DuplicateBranchesInSwitch.html new file mode 100644 index 000000000..7eb59a928 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DuplicateBranchesInSwitch.html @@ -0,0 +1,31 @@ + + +报告在不同分支中包含相同代码的 switch 语句或表达式,并建议合并重复的分支。 +

示例:

+

+  switch (n) {
+    case 1:
+      System.out.println(n);
+      break;
+    case 2:
+      System.out.println(n);
+      break;
+    default:
+      System.out.println("default");
+  }
+
+

可以替换为:

+

+  switch (n) {
+    case 1:
+    case 2:
+      System.out.println(n);
+      break;
+    default:
+      System.out.println("default");
+  }
+
+ +

2019.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DuplicateCondition.html b/original-plugin-raw/zh/inspectionDescriptions/DuplicateCondition.html new file mode 100644 index 000000000..21d3630b1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DuplicateCondition.html @@ -0,0 +1,23 @@ + + +报告 && 和 || 表达式以及 if 语句的分支中的重复条件。 +这些重复的条件表达式有时是故意使用的,但通常因疏忽大意所致。 +

示例:

+

+  boolean result = digit1 != digit2 || digit1 != digit2;
+
+ +

+ 要忽略可能产生副作用的条件,请使用忽略有副作用的条件 选项。 +禁用此选项可能会导致误报,例如,当同一方法在后续调用中返回不同的值时。 +

+

示例:

+

+  if (iterator.next() != null || iterator.next() != null)
+    System.out.println("Got it");
+  }
+
+

由于 iterator.next() 可能存在副作用(在示例中),只有在禁用 忽略有副作用的条件 选项时才会触发警告。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DuplicateConditionJS.html b/original-plugin-raw/zh/inspectionDescriptions/DuplicateConditionJS.html new file mode 100644 index 000000000..8a99e8575 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DuplicateConditionJS.html @@ -0,0 +1,14 @@ + + +报告 if 语句的不同分支中的重复条件。 重复条件通常因程序员疏忽大意所致。 +

示例:

+

+  if (a) {
+    ...
+  } else if (a) {
+    ...
+  }
+
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DuplicateDeclarations.html b/original-plugin-raw/zh/inspectionDescriptions/DuplicateDeclarations.html new file mode 100644 index 000000000..bf00638f0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DuplicateDeclarations.html @@ -0,0 +1,5 @@ + + +报告符号的重定义。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DuplicateExpressions.html b/original-plugin-raw/zh/inspectionDescriptions/DuplicateExpressions.html new file mode 100644 index 000000000..8fcb72a91 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DuplicateExpressions.html @@ -0,0 +1,18 @@ + + +如果表达式的结果可以重用,则报告同一表达式在方法(或构造函数,或类初始值设定项)中的多次等效匹配项。 +

+ 如果表达式没有副作用并且其结果始终相同(就 Object.equals() 而言),则会报告该表达式。 + 此类表达式的示例是 a + bMath.max(a, b)a.equals(b) s.substring(a,b)。 为确保结果始终相同,已验证表达式中使用的变量在表达式匹配项之间不会更改其值。

+

+ 此类表达式可能包含不可变的类(如 StringBigDecimal 等)和实用程序类(如 ObjectsMathrandom() 除外)的方法。 + Object.equals() Object.hashCode() Object.toString() 、 + Comparable.compareTo()Comparator.compare() 等常用方法也可以使用,因为没有任何可见的副作用。 +

+ +

+ 使用表达式复杂性阈值选项可指定最小表达复杂性阈值。 指定更大的数字将移除关于短表达式的报告。 +

+

2018.3 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DuplicateKeyInSection.html b/original-plugin-raw/zh/inspectionDescriptions/DuplicateKeyInSection.html new file mode 100644 index 000000000..1ff3561e9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DuplicateKeyInSection.html @@ -0,0 +1,5 @@ + + +报告 ini 文件部分中的重复属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DuplicateMnemonic.html b/original-plugin-raw/zh/inspectionDescriptions/DuplicateMnemonic.html new file mode 100644 index 000000000..4ac131475 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DuplicateMnemonic.html @@ -0,0 +1,6 @@ + + +报告具有重复助记符的组件。 +

该快速修复会为每个组件分配独一无二的助记符。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/DuplicatePropertyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DuplicatePropertyInspection.html new file mode 100644 index 000000000..566c57d9e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DuplicatePropertyInspection.html @@ -0,0 +1,13 @@ + + +报告具有不同值的重复属性键、重复键或重复属性值。 + +

示例:

+

+property1=value;
+property2=value;
+
+

选项 列表允许选择检查应搜索重复项的区域。

+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/DuplicateSectionInFile.html b/original-plugin-raw/zh/inspectionDescriptions/DuplicateSectionInFile.html new file mode 100644 index 000000000..7ad0dc110 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DuplicateSectionInFile.html @@ -0,0 +1,5 @@ + + +报告 ini 文件中的重复部分。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DuplicateStringLiteralInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DuplicateStringLiteralInspection.html new file mode 100644 index 000000000..f160dc437 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DuplicateStringLiteralInspection.html @@ -0,0 +1,16 @@ + + +报告在整个项目中不会更改的所有重复字符串文字。 +

示例:

+

+  class C1 { String CONST1 = "duplicate string"; }
+  class C2 { String CONST2 = "duplicate string"; }
+
+ +

配置检查:

+
    +
  • 使用最小字符串长度字段设置检测重复项所需的最小字符串长度。
  • +
  • 使用忽略@PropertyKey 表达式选项可忽略作为实参传递给使用 org.jetbrains.annotations.PropertyKey 注解的方法的字符串。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DuplicateSwitchCase.html b/original-plugin-raw/zh/inspectionDescriptions/DuplicateSwitchCase.html new file mode 100644 index 000000000..0916060fb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DuplicateSwitchCase.html @@ -0,0 +1,5 @@ + + +报告 switch 语句中重复的 case 表达式和重叠的 case 范围。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DuplicateThrows.html b/original-plugin-raw/zh/inspectionDescriptions/DuplicateThrows.html new file mode 100644 index 000000000..0ec732270 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DuplicateThrows.html @@ -0,0 +1,17 @@ + + +报告方法 throws 列表中的重复异常。 +

示例:

+

+  void f() throws Exception, Exception {}
+
+

在应用快速修复后:

+

+  void f() throws Exception {}
+
+ +

+ 使用忽略子类化其他异常的异常选项可以忽略子类化其他异常的异常。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/DuplicatedBeanNamesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DuplicatedBeanNamesInspection.html new file mode 100644 index 000000000..1c372b722 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DuplicatedBeanNamesInspection.html @@ -0,0 +1,16 @@ + + +

报告在应用程序上下文中定义的重复 Bean 名称。

+ +

示例:

+

+  <beans profile="PROD">
+    <bean class="..." id="duplicatedName"/>  // 错误
+    <bean class="..." name="foo_name, duplicatedName"/> // 'duplicatedName' 错误
+    <bean class="..." id="toBeAliased"/>
+
+    <alias alias="duplicatedName" name="toBeAliased"/> // 'duplicatedName' 错误
+  </beans>
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/DuplicatedBlockNamesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/DuplicatedBlockNamesInspection.html new file mode 100644 index 000000000..a1607f7fd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DuplicatedBlockNamesInspection.html @@ -0,0 +1,30 @@ + + +

报告 Django 模板中重复的块名。

+

示例:

+
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <link rel="stylesheet" href="style.css">
+    <title>{% block title %}My amazing site{% endblock %}</title>
+</head>
+
+<body>
+    <div id="sidebar">
+        {% block title %}
+        <ul>
+            <li><a href="/">主页</a></li>
+            <li><a href="/blog/">博客</a></li>
+        </ul>
+        {% endblock %}
+    </div>
+
+    <div id="content">
+        {% block content %}{% endblock %}
+    </div>
+</body>
+</html>
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DuplicatedDataProviderNames.html b/original-plugin-raw/zh/inspectionDescriptions/DuplicatedDataProviderNames.html new file mode 100644 index 000000000..62b61d856 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DuplicatedDataProviderNames.html @@ -0,0 +1,30 @@ + + +如果发生 org.testng.TestNGException,则报告具有相同名称的 TestNG 数据提供者。 +

示例:

+

+  public class DuplicatedDataProviders {
+    @DataProvider
+    public Object[][] intTestData() { // 重复项 1
+      return new Integer[][]{
+        new Integer[]{1, 1},
+      };
+    }
+
+    @DataProvider(name = "intTestData")
+    public Object[][] someTestData() { // 重复项 2
+      return new Integer[][]{
+        new Integer[]{1, 1},
+      };
+    }
+
+    @Test(dataProvider = "intTestData")
+    public void testIsOK(Integer key, Integer value) {
+      assertEquals(key, value);
+    }
+  }
+
+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DynamicPropertyKey.html b/original-plugin-raw/zh/inspectionDescriptions/DynamicPropertyKey.html new file mode 100644 index 000000000..656f97cb0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DynamicPropertyKey.html @@ -0,0 +1,23 @@ + + +

报告用作捆绑属性键的非字符串文字。

+

这很难维护。 建议直接传递已经解析的自然语言字符串。

+

示例:

+

+  val key =
+    if (???) "property.key.1"
+    else "property.key.2"
+
+  Bundle.message(key)
+
+

改用:

+

+  val string =
+    if (???) Bundle.message("property.key.1")
+    else Bundle.message("property.key.2")
+
+  string
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DynamicRegexReplaceableByCompiledPattern.html b/original-plugin-raw/zh/inspectionDescriptions/DynamicRegexReplaceableByCompiledPattern.html new file mode 100644 index 000000000..ec38a540b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DynamicRegexReplaceableByCompiledPattern.html @@ -0,0 +1,18 @@ + + +报告使用常量实参对 java.lang.String 的正则表达式方法(例如 matches()replace())的调用。 +

+ 此类调用可以有利地替换为 private static final Pattern 字段,从而不必在每次使用正则表达式时都对其进行编译。 +

+

示例:

+

+  text.replace("abc", replacement);
+
+

在应用快速修复后:

+

+  private static final Pattern ABC = Pattern.compile("abc", Pattern.LITERAL);
+  ABC.matcher(text).replaceAll(Matcher.quoteReplacement(replacement));
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/DynamicallyGeneratedCodeJS.html b/original-plugin-raw/zh/inspectionDescriptions/DynamicallyGeneratedCodeJS.html new file mode 100644 index 000000000..3e371f92d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/DynamicallyGeneratedCodeJS.html @@ -0,0 +1,8 @@ + + +报告 eval()setTimeout()setInterval() 函数的调用或 Function 对象的分配。 这些函数用于执行通常动态生成的 +任意 JavaScript 文本字符串。 这可能非常令人困惑,并且可能存在安全风险。 +

+忽略静态地向这些方法提供回调函数而不生成代码的情况。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ELDeferredExpressionsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ELDeferredExpressionsInspection.html new file mode 100644 index 000000000..ab7f41b70 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ELDeferredExpressionsInspection.html @@ -0,0 +1,13 @@ + + +报告需要延迟表达式的动态表达式或需要动态表达式的延迟表达式。 + +

示例:


+

+<jsp:useBean id="exampleBean" scope="request" type="java.util.Date"/>
+
+<h:outputText id="${exampleBean.day}" value="#{exampleBean.day}" /> // OK
+<h:outputText id="#{exampleBean.day}" value="${exampleBean.day}" /> // 错误:`id` 特性需要动态表达式,`value` - 延迟 
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ELMethodSignatureInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ELMethodSignatureInspection.html new file mode 100644 index 000000000..5f45373fe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ELMethodSignatureInspection.html @@ -0,0 +1,22 @@ + + +报告 EL 中与 TLD 文件中的 method-signature 约束不匹配的方法调用。 + +

示例 Java 类:


+

+public class ExampleAction {
+  public void goodAction() { ... }
+  public void badAction(String str) { ... }
+}
+
+ +

示例 JSP 文件:


+

+<jsp:useBean id="example" scope="request" type="org.example.ExampleAction"/>
+<f:view>
+  <h:commandButton action="#{example.goodAction}"/> // 优良:方法接受零实参并返回 `void`
+  <h:commandButton action="#{example.badAction}"/> // 错误:方法 `void badAction(String)` 返回 `java.lang.String` 类型而不是 `void`
+</f:view>
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ELSpecValidationInJSP.html b/original-plugin-raw/zh/inspectionDescriptions/ELSpecValidationInJSP.html new file mode 100644 index 000000000..6ba9f2e6a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ELSpecValidationInJSP.html @@ -0,0 +1,15 @@ + + +报告非标准 EL 扩展可能导致的问题:特性之外的 JSF EL 表达式、非标准 EL 表达式等。 + +

示例:


+

+<f:view>
+  <h:form>
+    <f:loadBundle var="example"/>
+    <h:commandButton action="${example.size()}"/> // 警告:方法调用是非标准扩展
+  </h:form>
+</f:view>
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ELValidationInJSP.html b/original-plugin-raw/zh/inspectionDescriptions/ELValidationInJSP.html new file mode 100644 index 000000000..c07a8ab4c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ELValidationInJSP.html @@ -0,0 +1,14 @@ + + +报告可能的 EL 问题,例如未解析的引用和无效的 EL 位置。 + +

示例:


+考虑在当前命名空间中定义 `exampleFun(String)` 函数。 +

+<jsp:root xmlns:example="urn:jsptld:exampleNamespace.tld">
+  ${ example:exampleFun("1") + example:unknownFun("2") } // 错误:无法解析函数 'unknownFun'
+  ${ example:exampleFun("1", "2") } // 错误:正式形参和实际形参的数量不同
+</jsp:root>
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ELValidationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ELValidationInspection.html new file mode 100644 index 000000000..9bbc29418 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ELValidationInspection.html @@ -0,0 +1,5 @@ + + +报告可能的 EL 问题,例如未解析的引用和无效的 EL 位置。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6BindWithArrowFunction.html b/original-plugin-raw/zh/inspectionDescriptions/ES6BindWithArrowFunction.html new file mode 100644 index 000000000..218f46253 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6BindWithArrowFunction.html @@ -0,0 +1,7 @@ + + +报告 bind 与箭头函数一起使用的情况。
+由于箭头函数使用词法 this,所以 bind 调用对它们无效。
+有关详细信息,请参阅此处。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6CheckImport.html b/original-plugin-raw/zh/inspectionDescriptions/ES6CheckImport.html new file mode 100644 index 000000000..d995c341b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6CheckImport.html @@ -0,0 +1,6 @@ + + +报告 import 声明中未解析的名称或绑定。 +

将忽略 TypeScript 代码。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6ClassMemberInitializationOrder.html b/original-plugin-raw/zh/inspectionDescriptions/ES6ClassMemberInitializationOrder.html new file mode 100644 index 000000000..10f585464 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6ClassMemberInitializationOrder.html @@ -0,0 +1,7 @@ + + +报告引用另一个未提升的类成员,而被引用的这个类成员可能尚未初始化的类成员初始值设定项。 +

+由于针对字段进行类成员初始化,所以一个字段不能引用后面声明的另一个字段。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertIndexedForToForOf.html b/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertIndexedForToForOf.html new file mode 100644 index 000000000..9ca1b5be8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertIndexedForToForOf.html @@ -0,0 +1,6 @@ + + +报告对数组使用的 for 索引循环。 建议将其替换为 for..of 循环。 +
for..of 循环 (在 ECMAScript 6 中引入) 对 iterable 对象进行迭代。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertLetToConst.html b/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertLetToConst.html new file mode 100644 index 000000000..5478d1543 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertLetToConst.html @@ -0,0 +1,5 @@ + + +报告可以设为 constlet 声明。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertModuleExportToExport.html b/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertModuleExportToExport.html new file mode 100644 index 000000000..2a3f9d11c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertModuleExportToExport.html @@ -0,0 +1,7 @@ + + +报告 module.export 语句。 建议将其替换为 exportexport default 语句。 +

+请注意,用于将 module.export 转换为 export 的快速修复不适用于函数或语句内部的 module.export,因为 export 语句只能位于模块顶层。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertRequireIntoImport.html b/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertRequireIntoImport.html new file mode 100644 index 000000000..36059c1ca --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertRequireIntoImport.html @@ -0,0 +1,15 @@ + + +报告 require() 语句。 建议使用 import 语句将其转换为 require() 调用。 +

+启用“使用‘全部修复’操作转换内部范围中的 require()”, +在使用“全部修复”操作时转换嵌套函数和语句内部的所有 require() 调用。 +

+请注意,将内部范围中的 require() 语句转换为 import 语句 +可能会导致代码语义更改。 +Import 语句是 static 模块依赖项,它们获得了提升, +这表明它们被移至当前模块的顶部。 require() 调用动态加载模块。 +它们可以有条件地执行,其范围由使用它们的表达式来定义。 +
清除“使用‘全部修复’操作转换内部范围中的 require()”复选框,以防止在使用“全部修复”操作时对这些复杂情况进行任何更改。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertToForOf.html b/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertToForOf.html new file mode 100644 index 000000000..9d0a9c0fa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertToForOf.html @@ -0,0 +1,7 @@ + + +报告对数组的 for..in 循环的用法。 建议将其替换为 for..of 循环。 +
for..of 循环 (在 ECMAScript 6 中引入) 对 iterable 对象进行迭代。 +对于数组,此结构比 for..in 更可取,因为它只处理数组值,不处理数组对象的属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertVarToLetConst.html b/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertVarToLetConst.html new file mode 100644 index 000000000..9803e53e2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6ConvertVarToLetConst.html @@ -0,0 +1,10 @@ + + +报告使用 var 而不是 letconst 的声明。
+letconst 的作用范围都为块,行为更为严格。 +

+建议将所有 var 声明替换为 letconst 声明,具体取决于特定值的语义。 +为避免引用错误,可将声明移至函数顶部,或放在变量的第一个用法前。 +
选择'通过‘全部修复’操作保守地转换变量'选项,以防止使用“全部修复”操作时在这些复杂情况下出现任何更改。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6DestructuringVariablesMerge.html b/original-plugin-raw/zh/inspectionDescriptions/ES6DestructuringVariablesMerge.html new file mode 100644 index 000000000..14f2a5c64 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6DestructuringVariablesMerge.html @@ -0,0 +1,5 @@ + + +报告多个包含相同键的解构属性。 建议合并这些属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6MissingAwait.html b/original-plugin-raw/zh/inspectionDescriptions/ES6MissingAwait.html new file mode 100644 index 000000000..321a63715 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6MissingAwait.html @@ -0,0 +1,26 @@ + + +报告 async 函数中没有预期的 await 前缀的 async 函数调用。 +此类调用返回 Promise,并且控制流会立即继续。 +

示例:

+

+async function bar() { /* ... */ }
+async function foo() {
+    bar(); // 不良
+}
+
+

+应用快速修复后,将添加 await 前缀:

+

+async function bar() { /* ... */ }
+async function foo() {
+    await bar(); // 优良
+}
+
+
+在选中“报告 return 语句中的 promise”复选框的情况下,还建议在 return 语句中添加 await
+虽然一般不必这样做,但它有两大好处。
  • +使用 try-catch 环绕代码时,您不会忘记去添加 await
  • +
  • 显式的 await 有助于 V8 运行时提供异步堆栈跟踪
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6PossiblyAsyncFunction.html b/original-plugin-raw/zh/inspectionDescriptions/ES6PossiblyAsyncFunction.html new file mode 100644 index 000000000..053bd4a52 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6PossiblyAsyncFunction.html @@ -0,0 +1,8 @@ + + +报告可能想要异步但其实缺少 async 修饰符的函数中的 await 用法。 + +虽然 await 可以用作标识符,但很可能是打算将其用作运算符, +因此应将包含的函数设为 async 。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6PreferShortImport.html b/original-plugin-raw/zh/inspectionDescriptions/ES6PreferShortImport.html new file mode 100644 index 000000000..fc523305f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6PreferShortImport.html @@ -0,0 +1,5 @@ + + +报告可缩短其 from 部分的 ES6 import。 建议导入父目录。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6RedundantAwait.html b/original-plugin-raw/zh/inspectionDescriptions/ES6RedundantAwait.html new file mode 100644 index 000000000..51a20ac4b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6RedundantAwait.html @@ -0,0 +1,18 @@ + + +报告对 await 的冗余用法(如 await await),或等待非 promise 结果的情况。 + +

+ 当选择了 'Report for promises' 选项时,建议在适用的情况下移除 promise 前的 await(在 return 语句中和使用 Promise.resolve/reject 时)。 +

+

在此类上下文中移除 await 会导致两个问题。

+
    +
  • + 用 try-catch 环绕代码并且忘记添加 await 会改变代码语义,而您可能没有注意到这一点。 +
  • +
  • + 采用显式的 await 可能会阻止 V8 运行时提供异步堆栈跟踪。 +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6RedundantNestingInTemplateLiteral.html b/original-plugin-raw/zh/inspectionDescriptions/ES6RedundantNestingInTemplateLiteral.html new file mode 100644 index 000000000..8846b5256 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6RedundantNestingInTemplateLiteral.html @@ -0,0 +1,11 @@ + + +报告字符串或模板文字的嵌套实例。 建议将嵌套的实例内联到包含其的模板字符串中。 + + +

示例:

+`Hello, ${`Brave ${"New"}`} ${"World"}!` +

应用快速修复后,代码如下所示:

+`Hello, Brave New World!` + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6ShorthandObjectProperty.html b/original-plugin-raw/zh/inspectionDescriptions/ES6ShorthandObjectProperty.html new file mode 100644 index 000000000..81f3d9e74 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6ShorthandObjectProperty.html @@ -0,0 +1,18 @@ + + +报告可以转换为 ES6 速记样式的对象属性,并提供快速修复来执行此操作。 + +

+ + var obj = {foo:foo} + +

+

应用快速修复后,代码如下所示:

+

+ + var obj = {foo} + +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6TopLevelAwaitExpression.html b/original-plugin-raw/zh/inspectionDescriptions/ES6TopLevelAwaitExpression.html new file mode 100644 index 000000000..acced754d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6TopLevelAwaitExpression.html @@ -0,0 +1,7 @@ + + +报告顶层 await 表达式的用法。 + +虽然有人在提出新的 'top-level async' 建议,但不允许在 async 函数之外使用 await。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ES6UnusedImports.html b/original-plugin-raw/zh/inspectionDescriptions/ES6UnusedImports.html new file mode 100644 index 000000000..6f30b5ca1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ES6UnusedImports.html @@ -0,0 +1,7 @@ + + +报告冗余的 import 语句。 +如果源文件中没有使用导入的符号,通常就会出现这种情况。 +为避免副作用,可以考虑使用 bare import import 'packageName' 来代替常规 import。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigCharClassLetterRedundancy.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigCharClassLetterRedundancy.html new file mode 100644 index 000000000..08c4f414b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigCharClassLetterRedundancy.html @@ -0,0 +1,6 @@ + + + +报告 EditorConfig 部分中在字符类中包含重复字符的通配符模式,例如 [aa]。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigCharClassRedundancy.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigCharClassRedundancy.html new file mode 100644 index 000000000..85ca4c85c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigCharClassRedundancy.html @@ -0,0 +1,7 @@ + + + +报告由单个字符组成的字符类。 +这种类可以简化为一个字符,例如 [a]a。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigDeprecatedDescriptor.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigDeprecatedDescriptor.html new file mode 100644 index 000000000..40cacc125 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigDeprecatedDescriptor.html @@ -0,0 +1,6 @@ + + + +报告不再支持的 EditorConfig 属性。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigEmptyHeader.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigEmptyHeader.html new file mode 100644 index 000000000..3cae1a9e1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigEmptyHeader.html @@ -0,0 +1,6 @@ + + + +报告带有空标题的部分。 部分标题必须包含格式类似于 gitignore 支持的格式的文件路径 glob。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigEmptySection.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigEmptySection.html new file mode 100644 index 000000000..812d5d703 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigEmptySection.html @@ -0,0 +1,6 @@ + + + +报告不包含任何 EditorConfig 属性的部分。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigHeaderUniqueness.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigHeaderUniqueness.html new file mode 100644 index 000000000..736437ec9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigHeaderUniqueness.html @@ -0,0 +1,6 @@ + + + +报告定义与其他部分相同的文件模式的部分。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigKeyCorrectness.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigKeyCorrectness.html new file mode 100644 index 000000000..d9cb5df51 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigKeyCorrectness.html @@ -0,0 +1,6 @@ + + + +报告 IDE 不支持的属性。 注意:一些 “ij” 域属性可能需要特定的语言插件。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigListAcceptability.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigListAcceptability.html new file mode 100644 index 000000000..0e6308f54 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigListAcceptability.html @@ -0,0 +1,6 @@ + + + +报告在不支持列表的属性中使用的值列表。 在这种情况下,只能指定一个值。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigMissingRequiredDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigMissingRequiredDeclaration.html new file mode 100644 index 000000000..d1dc5418b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigMissingRequiredDeclaration.html @@ -0,0 +1,6 @@ + + + +报告缺少所需声明的属性。 有关更多信息,请参阅文档。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigNoMatchingFiles.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigNoMatchingFiles.html new file mode 100644 index 000000000..6f2211b82 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigNoMatchingFiles.html @@ -0,0 +1,6 @@ + + + +报告通配符模式与 .editorconfig 文件所在目录下的任何文件都不匹配的部分。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigNumerousWildcards.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigNumerousWildcards.html new file mode 100644 index 000000000..d1d3e83d3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigNumerousWildcards.html @@ -0,0 +1,6 @@ + + + +报告包含过多通配符的部分。 使用大量通配符可能会导致性能问题。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigOptionRedundancy.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigOptionRedundancy.html new file mode 100644 index 000000000..e37e33046 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigOptionRedundancy.html @@ -0,0 +1,15 @@ + + + +报告另一个适用的部分已经包含相同的属性和值的冗余的属性。 +

+示例: +


+[*]
+indent_size=4
+[*.java]
+indent_size=4
+
+都适用于 *.java 文件并定义相同的 indent_size 值。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigPairAcceptability.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigPairAcceptability.html new file mode 100644 index 000000000..072697143 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigPairAcceptability.html @@ -0,0 +1,6 @@ + + + +报告当前上下文中不允许的键值对。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigPartialOverride.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigPartialOverride.html new file mode 100644 index 000000000..b52cace77 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigPartialOverride.html @@ -0,0 +1,6 @@ + + + +报告当前部分中指定的文件子集与其他部分中的其他子集重叠。 例如:[{foo,bar}][{foo,bas}] 都包含 “foo”。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigPatternEnumerationRedundancy.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigPatternEnumerationRedundancy.html new file mode 100644 index 000000000..32bbd7dad --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigPatternEnumerationRedundancy.html @@ -0,0 +1,7 @@ + + + +报告空 {} 或仅包含一种模式的模式列表,例如 {foo}。 +只有在有两个或多个模式时才需要大括号,例如 {foo,bar}。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigPatternRedundancy.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigPatternRedundancy.html new file mode 100644 index 000000000..87128a140 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigPatternRedundancy.html @@ -0,0 +1,8 @@ + + + +报告已经有另一个模式定义了具有相同或更广泛文件范围的冗余的文件模式。 +例如,在 [{*.java,*}] 中,第一个 *.java 模式定义了比 * 更窄的范围。 +这使得第一个模式变得多余并且可以被移除。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigReferenceCorrectness.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigReferenceCorrectness.html new file mode 100644 index 000000000..1c142a42a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigReferenceCorrectness.html @@ -0,0 +1,6 @@ + + + +报告未知或类型错误的标识符。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigRootDeclarationCorrectness.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigRootDeclarationCorrectness.html new file mode 100644 index 000000000..cdc7f68ce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigRootDeclarationCorrectness.html @@ -0,0 +1,6 @@ + + + +报告非预期的顶层声明。 EditorConfig 文件中不允许使用除 “root=true” 之外的顶级声明。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigRootDeclarationUniqueness.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigRootDeclarationUniqueness.html new file mode 100644 index 000000000..3049a692f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigRootDeclarationUniqueness.html @@ -0,0 +1,7 @@ + + + +报告多个顶层声明。 EditorConfig 文件中只能有一个可选的 “root=true” 顶级声明。 +不允许使用多个顶级声明。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigShadowedOption.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigShadowedOption.html new file mode 100644 index 000000000..2d90b3d6b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigShadowedOption.html @@ -0,0 +1,15 @@ + + + +报告已在其他部分中定义的属性。 +

示例: +


+[*.java]
+indent_size=4
+[{*.java,*.js}]
+indent_size=2
+
+第二部分也包括所有 *.java 文件,但它也重新定义了 indent_size。 +因此,值 "2" 将用于匹配 *.java 的文件。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigShadowingOption.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigShadowingOption.html new file mode 100644 index 000000000..fe47daf30 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigShadowingOption.html @@ -0,0 +1,15 @@ + + + +报告覆盖文件中先前定义的相同属性的属性。 +

示例: +


+[*.java]
+indent_size=4
+[{*.java,*.js}]
+indent_size=2
+
+第二部分同样包含 [*.java] 文件,但还将 indent_size 设置为值 2。 +因此第一个声明 indent_size=4 将被忽略。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigSpaceInHeader.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigSpaceInHeader.html new file mode 100644 index 000000000..62f48580d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigSpaceInHeader.html @@ -0,0 +1,7 @@ + + + +报告影响模式匹配的通配符模式中的空格字符。 +如果这些字符不是故意的,则应将其删除。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigUnexpectedComma.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigUnexpectedComma.html new file mode 100644 index 000000000..9ea9c0678 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigUnexpectedComma.html @@ -0,0 +1,6 @@ + + + +报告不能在当前上下文中使用的逗号。 逗号只能用作分隔符来分隔列表中的值。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigUnusedDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigUnusedDeclaration.html new file mode 100644 index 000000000..b93402269 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigUnusedDeclaration.html @@ -0,0 +1,6 @@ + + + +报告未使用的声明。 可以删除此类声明。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigValueCorrectness.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigValueCorrectness.html new file mode 100644 index 000000000..065714ff8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigValueCorrectness.html @@ -0,0 +1,6 @@ + + + +报告不符合值限制的属性值。 例如,某些属性可能只能为 “true” 或 “false”、其他属性仅包含整数等。 如果一个值的变体集合有限,请使用代码完成来查看所有变体。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigValueUniqueness.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigValueUniqueness.html new file mode 100644 index 000000000..dac43fc1a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigValueUniqueness.html @@ -0,0 +1,6 @@ + + + +报告值列表中的重复项。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EditorConfigWildcardRedundancy.html b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigWildcardRedundancy.html new file mode 100644 index 000000000..3e75f45df --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EditorConfigWildcardRedundancy.html @@ -0,0 +1,9 @@ + + + +报告在同一部分中使用 “**” 通配符时变得冗余的通配符。 +

+“**” 通配符定义了比其他通配符更广泛的文件集。 +因此,同一部分中使用的任何其他通配符都是无效的,可以删除。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjbClassBasicInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EjbClassBasicInspection.html new file mode 100644 index 000000000..e58550f87 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjbClassBasicInspection.html @@ -0,0 +1,20 @@ + + +报告以下 EJB 规范违规: +

    +
  • 类未实现预期接口(EJBLocalObject、EJBObject 等)
  • +
  • 类未定义 public 无实参构造函数
  • +
  • 使用类而不是接口或者使用接口而不是类
  • +
  • EJB 方法为 static
  • +
  • 无状态会话 Bean 类定义了多个 `ejbCreate` 方法
  • +
  • 会话 Bean 类的方法返回类型不正确
  • +
  • EJB 定义了 `finalize` 方法
  • +
+

示例:

+

+public class SessionEJB implements java.io.Serializable { // 错误:类应该扩展 `SessionBean`
+  private SessionEJB() {} // 错误:类应该定义 public 无实参构造函数
+}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjbClassWarningsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EjbClassWarningsInspection.html new file mode 100644 index 000000000..c0e4ceb47 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjbClassWarningsInspection.html @@ -0,0 +1,18 @@ + + +报告以下 EJB 规范违规: +
    +
  • 类实现了不被允许的接口
  • +
  • 类包含 static 非 final 字段
  • +
+ +

示例:

+

+public class SessionEJB {
+  public SessionEJB() {}
+
+  static Object data; // 错误:不允许可变 static 字段
+}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjbDomInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EjbDomInspection.html new file mode 100644 index 000000000..c29e56079 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjbDomInspection.html @@ -0,0 +1,14 @@ + + +报告用于将 EJB 部署到 Java EE 服务器的 ejb-jar.xml 和其他 XML 描述符中可能出现的以下问题: +
    +
  • 对不可实例化类的引用 +
  • 对不扩展所需类的类的引用 +
  • 对范围不适当的类的引用 +
  • 空标记和特性值 +
  • 与所需模式不匹配的标记和特性值(例如 Java 标识符) +
  • 不包含必需的子标记或特性的标记 +
  • 定义具有重复名称的对象的标记 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjbEntityClassInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EjbEntityClassInspection.html new file mode 100644 index 000000000..664e4ae85 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjbEntityClassInspection.html @@ -0,0 +1,20 @@ + + +检测以下错误级别的 EJB 规范违规: +
    +
  • Finder 和 Selector 方法未正确定义
  • +
  • CMP 和 CMR 字段访问器未正确定义
  • +
+ + +

示例:

+

+public class SessionEJB implements javax.ejb.SessionBean {
+  // 错误:方法 'ejbCreateXXX' 应该为 public
+  protected void ejbCreateExample() { ... }
+
+  // 错误:方法 'ejbCreateAnotherExample' 应该返回 'void'
+  public int ejbCreateAnotherExample() { ... }
+}
+
+ diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjbEntityHomeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EjbEntityHomeInspection.html new file mode 100644 index 000000000..da369002e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjbEntityHomeInspection.html @@ -0,0 +1,18 @@ + + +报告以下实体 EJB 相关条目的不正确定义: +
    +
  • 类未实现预期接口(EJBLocalObject、EJBObject 等)
  • +
  • EJB 类修饰符不正确
  • +
  • 类未定义 public 无实参构造函数
  • +
  • 使用类而不是接口或者使用接口而不是类
  • +
+ +

示例:

+

+public final class SessionEJB implements javax.ejb.SessionBean {
+  private SessionEJB() {} // 错误:类应该定义 public 无实参构造函数
+}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjbEntityInterfaceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EjbEntityInterfaceInspection.html new file mode 100644 index 000000000..3ee913450 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjbEntityInterfaceInspection.html @@ -0,0 +1,11 @@ + + +报告以下 EJB 规范违规: +
    +
  • 类未实现预期接口(EJBLocalObject、EJBObject 等)
  • +
  • EJB 类修饰符不正确
  • +
  • 类未定义 public 无实参构造函数
  • +
  • 使用类而不是接口或者使用接口而不是类
  • +
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjbEnvironmentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EjbEnvironmentInspection.html new file mode 100644 index 000000000..bae875651 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjbEnvironmentInspection.html @@ -0,0 +1,26 @@ + + +报告以下 EJB 规范违规: +
    +
  • 注入的属性类型无效
  • +
  • EJB 引用与 `ejb-jar.xml` 不一致
  • +
+ +

示例:

+

+@LocalBean
+@Stateless
+public class ExampleBean {
+
+  private AnotherBean anotherBean;
+
+  @Inject
+  public void getAnotherBean() { // 错误:应在字段或 setter 方法中执行注入
+    return anotherBean;
+  }
+
+  ...
+}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjbInterceptorInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EjbInterceptorInspection.html new file mode 100644 index 000000000..3a3cb23fe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjbInterceptorInspection.html @@ -0,0 +1,17 @@ + + +报告同时定义为 EJB 和侦听器类的类。 + +

示例:

+

+@Stateless
+public class ExampleBean {
+
+  @Interceptors(ExampleBean.class) // 错误:类同时定义为 EJB 和侦听器
+  public void getAnotherBean() {
+    ...
+  }
+}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjbInterceptorWarningsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EjbInterceptorWarningsInspection.html new file mode 100644 index 000000000..d6f42eb83 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjbInterceptorWarningsInspection.html @@ -0,0 +1,33 @@ + + +

报告以下 EJB 规范违规:

+
    +
  • 实现某些 EJB 相关接口的类的名称以 'ejb' 开头。
  • +
  • 侦听器类未定义任何侦听器方法
  • +
+ +

示例:

+

+@Stateless
+public class ExampleBean {
+
+  @Interceptors(GoodInterceptor.class)
+  public void getSomeData() { ... }
+
+  @Interceptors(EmptyInterceptor.class)
+  public void getSomeData() { ... }
+}
+
+class GoodInterceptor {
+
+  @AroundInvoke
+  public Object logAll(InvocationContext context) throws Exception { ... }
+
+  @PostConstruct
+  public Object logCreate(InvocationContext context) throws Exception { ... }
+}
+
+class EmptyInterceptor {} // 错误:没有特定方法的侦听器类
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjbInterfaceMethodInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EjbInterfaceMethodInspection.html new file mode 100644 index 000000000..cca4b8f72 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjbInterfaceMethodInspection.html @@ -0,0 +1,16 @@ + + +报告以下 EJB 规范违规: +
    +
  • EJB 类通过接口公开
  • +
  • 方法名称与保留的规范名称冲突
  • +
+ +

示例:

+

+public interface EntityHome extends javax.ejb.EJBHome {
+  void ejbExampleMethod() // 错误:名称冲突
+}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjbInterfaceSignatureInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EjbInterfaceSignatureInspection.html new file mode 100644 index 000000000..f60348ef9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjbInterfaceSignatureInspection.html @@ -0,0 +1,14 @@ + + +报告以下 EJB 规范违规: +
    +
  • EJB 接口未扩展正确的 EJB 接口
  • +
  • EJB 接口不是 public 或者不是 final
  • +
+ +

示例:

+

+public interface EntityRemote extends Runnable {} // 错误:类应该扩展 `javax.ejb.EJBObject`
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjbProhibitedPackageUsageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EjbProhibitedPackageUsageInspection.html new file mode 100644 index 000000000..6c323b676 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjbProhibitedPackageUsageInspection.html @@ -0,0 +1,17 @@ + + +报告 EJB 中禁止的软件包和类。 + +

示例:

+

+@Stateless
+public class ExampleBean {
+
+  public void getAnotherBean() {
+    ...
+    java.lang.Thread.sleep(100); // 错误:Bean 类中使用了非法软件包
+  }
+}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjbQlInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EjbQlInspection.html new file mode 100644 index 000000000..eeff8d2c7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjbQlInspection.html @@ -0,0 +1,18 @@ + + +报告 EJB QL 查询的中以下错误: +
    +
  • 不匹配的表达式类型
  • +
  • 形参不正确
  • +
  • 空或常量条件
  • +
  • 未解析的符号
  • +
+ +

示例查询:

+

+SELECT OBJECT(e) FROM Employee e WHERE SQRT(ABS(e.firstName - ?1)) > 50000; // 错误:类型不匹配,需要数字类型
+
+SELECT e.firstName FROM Employee e WHERE SUBSTRING(e.firstName, ?1, ?2) = ?4; // 错误:只有 3 个实际查询形参
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjbRemoteRequirementsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EjbRemoteRequirementsInspection.html new file mode 100644 index 000000000..dbb67b53c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjbRemoteRequirementsInspection.html @@ -0,0 +1,17 @@ + + +报告以下 EJB 规范违规: +
    +
  • 方法未声明它抛出 java.rmi.RemoteException
  • +
  • 方法返回类型或实参与 RMI/IIOP 不兼容
  • +
  • EJB 服务端点接口具有常量声明
  • +
+ +

示例:

+

+public interface EntityRemote extends javax.ejb.EJBObject{
+  public int businessExample(String value) throws java.lang.RuntimeException; // 错误:应改为声明 'RemoteException'
+}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjbSessionHomeInterfaceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EjbSessionHomeInterfaceInspection.html new file mode 100644 index 000000000..19eb3d3f8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjbSessionHomeInterfaceInspection.html @@ -0,0 +1,16 @@ + + +报告以下 EJB 规范违规: +
    +
  • create() 未正确定义
  • +
  • 不允许 finder()
  • +
+ +

示例:

+

+public interface SessionHome extends javax.ejb.EJBHome {
+  Session create() throws java.rmi.RemoteException; // 错误:也应该抛出 `javax.ejb.CreateException`
+}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjbStaticAccessInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EjbStaticAccessInspection.html new file mode 100644 index 000000000..b8dbf8df8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjbStaticAccessInspection.html @@ -0,0 +1,19 @@ + + +报告写入 static 字段的 EJB 类。 + +

示例:

+

+@Stateless
+public class ExampleBean {
+  private static int counter = 0;
+  private AnotherBean anotherBean;
+
+  public void setAnotherBean(AnotherBean anotherBean) {
+    this.anotherBean = anotherBean;
+    counter++; // 错误:不应在此处写入任何 static 字段
+  }
+}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjbThisExpressionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EjbThisExpressionInspection.html new file mode 100644 index 000000000..ae960c768 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjbThisExpressionInspection.html @@ -0,0 +1,18 @@ + + +报告带有返回 this 或将其作为形参的方法的 EJB 类。 + +

示例:

+

+@Stateless
+public class ExampleBean {
+  private AnotherBean anotherBean;
+
+  public ExampleBean setAnotherBean(AnotherBean anotherBean) {
+    this.anotherBean = anotherBean;
+    return this; // 错误:不应在此处返回 `this`
+  }
+}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EjsUnresolvedInclude.html b/original-plugin-raw/zh/inspectionDescriptions/EjsUnresolvedInclude.html new file mode 100644 index 000000000..ae2912f14 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EjsUnresolvedInclude.html @@ -0,0 +1,5 @@ + + +报告 EJS include 中未解析的文件引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptyCatchBlockJS.html b/original-plugin-raw/zh/inspectionDescriptions/EmptyCatchBlockJS.html new file mode 100644 index 000000000..5f5b7759f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptyCatchBlockJS.html @@ -0,0 +1,7 @@ + + +报告空的 catch 块。 这表明错误未加处理就被直接忽略。 +

+catch 块中的任何注释都会禁止该检查。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptyCheck.html b/original-plugin-raw/zh/inspectionDescriptions/EmptyCheck.html new file mode 100644 index 000000000..a72eaa4b1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptyCheck.html @@ -0,0 +1,32 @@ + + +

报告检查集合和 Options 是否为空的不同方法,并建议将它们替换为 .isEmpty.nonEmpty.isDefined

+

示例:

+

+  !Seq(1).isEmpty
+  Seq(1).size == 0
+  Seq(1).size != 0
+  !(Seq(1).length > 0)
+  Seq(1).exists(_ => true)
+  import scala.Function.const
+  Seq(1).exists(const(true))
+  !Option(0).isEmpty
+  Option(0) == None
+  Option(0) != None
+
+

在应用快速修复后:

+

+  Seq(1).nonEmpty
+  Seq(1).isEmpty
+  Seq(1).nonEmpty
+  Seq(1).isEmpty
+  Seq(1).nonEmpty
+  import scala.Function.const
+  Seq(1).nonEmpty
+  Option(0).isDefined
+  Option(0).isEmpty
+  Option(0).isDefined
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptyClass.html b/original-plugin-raw/zh/inspectionDescriptions/EmptyClass.html new file mode 100644 index 000000000..d8cf025f0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptyClass.html @@ -0,0 +1,24 @@ + + +报告空类和没有任何定义类的 Java 文件。 +

如果一个类不包含任何字段、方法、构造函数或初始值设定项,则为空类。 在进行重大变更或重构后,空类通常会保留下来。

+ +

配置检查:

+
    +
  • + 使用有注解时忽略选项可以指定特殊注解。 该检查将忽略用这些注解标记的类。 +
  • +
  • + 使用如果类是父类型的形参化,则将其忽略选项,可以忽略形参化超类的类。 示例: +

    +
    class MyList extends ArrayList<String> {}
    +
  • +
  • + 使用忽略 java.lang.Throwable 的子类,可以忽略扩展 java.lang.Throwable 的类。 +
  • +
  • + 使用注释计为内容选项可忽略包含注释的类。 +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptyDeclOrStmt.html b/original-plugin-raw/zh/inspectionDescriptions/EmptyDeclOrStmt.html new file mode 100644 index 000000000..8af873cbf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptyDeclOrStmt.html @@ -0,0 +1,13 @@ + + +报告可以安全移除的空声明和语句。 +

示例:

+

+  void foo() {
+    //code
+  }; // 冗余的空声明
+
+ +

2019.1 最新变化

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptyDirectory.html b/original-plugin-raw/zh/inspectionDescriptions/EmptyDirectory.html new file mode 100644 index 000000000..57046d70b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptyDirectory.html @@ -0,0 +1,8 @@ + + +报告空目录。 + +

仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

+

使用仅报告位于源文件夹下的空目录选项可以仅报告源根下的目录。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptyFinallyBlock.html b/original-plugin-raw/zh/inspectionDescriptions/EmptyFinallyBlock.html new file mode 100644 index 000000000..1a65b6d56 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptyFinallyBlock.html @@ -0,0 +1,26 @@ + + +报告空的 finally 块。 +

空的 finally 块通常表明存在编码错误。 在代码重构后它们可能保留下来,可以安全移除。

+

此检查不报告在 JSP 文件中发现的空 finally 块。

+

示例:

+

+  try {
+    Files.readString(Paths.get("in.txt"));
+  } catch (IOException e) {
+    throw new RuntimeException(e);
+  } finally {
+
+  }
+
+

在应用快速修复后: +


+  try {
+    Files.readString(Paths.get("in.txt"));
+  } catch (IOException e) {
+    throw new RuntimeException(e);
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptyFinallyBlockJS.html b/original-plugin-raw/zh/inspectionDescriptions/EmptyFinallyBlockJS.html new file mode 100644 index 000000000..1045c0147 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptyFinallyBlockJS.html @@ -0,0 +1,5 @@ + + +报告空的 finally 块,此类块通常表明有错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptyInitializer.html b/original-plugin-raw/zh/inspectionDescriptions/EmptyInitializer.html new file mode 100644 index 000000000..7b2354c0b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptyInitializer.html @@ -0,0 +1,8 @@ + + +报告空类初始值设定项块。 + +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptyMethod.html b/original-plugin-raw/zh/inspectionDescriptions/EmptyMethod.html new file mode 100644 index 000000000..80b8e4284 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptyMethod.html @@ -0,0 +1,14 @@ + + +报告可以移除的空方法。 +

如果方法本身是空的并且仅被空方法重写或实现,则方法被视为空。 请注意,仅包含注释的方法和带有自己形参的 super() 调用也被视为空。

+

该检查会忽略带有特殊注解的方法,例如 javax.ejb.Initjavax.ejb.Remove EJB 注释。

+

该快速修复会安全地移除不必要的方法。

+ +

配置检查:

+
    +
  • 使用注释和 javadoc 计为内容选项可选择是否应将带有注释的方法视为非空方法。
  • +
  • 使用额外的特别注解选项可配置此检查应忽略的其他注解。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptyParenMethodAccessedAsParameterless.html b/original-plugin-raw/zh/inspectionDescriptions/EmptyParenMethodAccessedAsParameterless.html new file mode 100644 index 000000000..1f4e36303 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptyParenMethodAccessedAsParameterless.html @@ -0,0 +1,24 @@ + + +

报告没有实参子句且引用带有空形参子句的方法的方法。

+ +

如果一个方法有副作用,则在方法中使用圆括号是一个常见的惯例。 + 虽然可以在方法调用中省略实参子句(以适应 Java 的统一访问原则),但建议用户在调用的方法表示多个属性时添加一个空实参子句。

+ +

该快速修复会添加一个空实参子句。

+ +

示例:

+

+  def test(): Int = ???
+
+  test
+
+

在应用快速修复后:

+

+  def test(): Int = ???
+
+  test()
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptyParenMethodOverriddenAsParameterless.html b/original-plugin-raw/zh/inspectionDescriptions/EmptyParenMethodOverriddenAsParameterless.html new file mode 100644 index 000000000..1a8009459 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptyParenMethodOverriddenAsParameterless.html @@ -0,0 +1,30 @@ + + +

报告没有形参子句且重写带有空形参子句的方法的方法。

+ +

如果一个方法有副作用,则在方法中使用圆括号是一个常见的惯例。 + 根据里氏替换原则,当被重写的方法有形参子句时,表明有副作用,重写方法也必须被声明为有副作用的方法。

+ +

该快速修复会添加一个空形参子句。

+ +

示例:

+

+  class Base {
+    def x() = 1
+  }
+  class Impl extends Base {
+    override def x = 2
+  }
+
+

在应用快速修复后:

+

+  class Base {
+    def x() = 1
+  }
+  class Impl extends Base {
+    override def x() = 2
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptyRange.html b/original-plugin-raw/zh/inspectionDescriptions/EmptyRange.html new file mode 100644 index 000000000..bc2c01906 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptyRange.html @@ -0,0 +1,13 @@ + + +报告由于 start 值大于 endInclusive 值而为空的范围。 +

示例:

+

+  val range = 2..1
+
+

该快速修复会将 .. 运算符更改为 downTo

+

+  val range = 2 downTo 1
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptyStatementBody.html b/original-plugin-raw/zh/inspectionDescriptions/EmptyStatementBody.html new file mode 100644 index 000000000..6154cf2db --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptyStatementBody.html @@ -0,0 +1,8 @@ + + +报告语句体为空的 ifwhiledoforswitch 语句。 +

虽然偶尔是有意为之,但此类代码令人困惑,并且通常是由拼写错误所致。

+ +

JSP 文件中禁用了此检查。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptyStatementBodyJS.html b/original-plugin-raw/zh/inspectionDescriptions/EmptyStatementBodyJS.html new file mode 100644 index 000000000..7f3f8256e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptyStatementBodyJS.html @@ -0,0 +1,9 @@ + + +报告语句体为空的 ifwhileforwith 语句。 此类语句通常是由拼写错误所致,可能会引起混淆。 + +

+ 使用下面的复选框指定是否应报告以空块语句为主体的语句。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptySynchronizedStatement.html b/original-plugin-raw/zh/inspectionDescriptions/EmptySynchronizedStatement.html new file mode 100644 index 000000000..00c797ef6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptySynchronizedStatement.html @@ -0,0 +1,24 @@ + + +报告语句体为空的 synchronized 语句。 +

+ 空的 synchronized 语句有时用于等待其他线程释放特定资源。 但是,不能保证空的 synchronized 语句完成后不会再次获取同一资源。 + 为了正确同步,应当在 synchronized 块中使用此资源。 +

+

+ 此外,在移除冗余代码后,重构后可能会出现空的 synchronized 块。 在本例中,synchronized 块本身是冗余的,也应移除。 +

+

示例:

+

+  synchronized(lock) {}
+
+

+ 建议通过快速修复移除空的 synchronized 语句。 +

+ +

+ JSP 文件中禁用了此检查。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptyTryBlock.html b/original-plugin-raw/zh/inspectionDescriptions/EmptyTryBlock.html new file mode 100644 index 000000000..7da3b9c57 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptyTryBlock.html @@ -0,0 +1,9 @@ + + +报告空的 try 块,包括 try-with-resources 语句。 +

包含注释的 try 块视为空块。

+ +

+此检查不报告在 JSP 文件中发现的空 try 块。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptyTryBlockJS.html b/original-plugin-raw/zh/inspectionDescriptions/EmptyTryBlockJS.html new file mode 100644 index 000000000..9b39aa7cd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptyTryBlockJS.html @@ -0,0 +1,5 @@ + + +报告空的 try 块,此类块通常表示有错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EmptyWebServiceClass.html b/original-plugin-raw/zh/inspectionDescriptions/EmptyWebServiceClass.html new file mode 100644 index 000000000..fd7fcb9d7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EmptyWebServiceClass.html @@ -0,0 +1,5 @@ + + +

报告使用 @WebService 注解并且没有任何方法的 Java Web 服务类。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EndBlockNamesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/EndBlockNamesInspection.html new file mode 100644 index 000000000..328247c84 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EndBlockNamesInspection.html @@ -0,0 +1,10 @@ + + +

报告不正确的结束块名称。

+

示例:

+
+  {% block my_block %}
+  {% endblock not_correct %}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EndlessLoop.html b/original-plugin-raw/zh/inspectionDescriptions/EndlessLoop.html new file mode 100644 index 000000000..e667a4c02 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EndlessLoop.html @@ -0,0 +1,6 @@ + + +报告仅通过抛出异常退出的 forwhiledo whilegoto 语句。 +尽管此类语句可能是正确的,但它们通常表明有编码错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EndlessStream.html b/original-plugin-raw/zh/inspectionDescriptions/EndlessStream.html new file mode 100644 index 000000000..0f0f4c11c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EndlessStream.html @@ -0,0 +1,9 @@ + + +报告消耗无限流的非短路运算。 此类运算只能通过抛出异常来完成。 +

示例:

+

+  Stream.iterate(0, i -> i + 1).collect(Collectors.toList())
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EnhancedSwitchBackwardMigration.html b/original-plugin-raw/zh/inspectionDescriptions/EnhancedSwitchBackwardMigration.html new file mode 100644 index 000000000..31ab640bf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EnhancedSwitchBackwardMigration.html @@ -0,0 +1,30 @@ + + +报告增强型 switch 语句和表达式。 建议将它们替换为常规的 switch 语句。 +

示例:

+

+  boolean even = switch (condition) {
+    case 1, 3, 5, 7, 9 -> false;
+    default -> true;
+  };
+
+

在应用快速修复后:

+

+  boolean even;
+  switch (condition) {
+    case 1:
+    case 3:
+    case 5:
+    case 7:
+    case 9:
+      even = false;
+      break;
+    default:
+      even = true;
+      break;
+}
+
+ +

2019.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EnhancedSwitchMigration.html b/original-plugin-raw/zh/inspectionDescriptions/EnhancedSwitchMigration.html new file mode 100644 index 000000000..100748394 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EnhancedSwitchMigration.html @@ -0,0 +1,35 @@ + + +报告可以自动替换为增强型 switch 语句或表达式的 switch 语句。 +

示例:

+

+  double getPrice(String fruit) {
+    // Switch 语句可以替换为增强型 'switch'
+    switch (fruit) {
+      case "Apple":
+        return 1.0;
+      case "Orange":
+        return 1.5;
+      case "Mango":
+        return 2.0;
+      default:
+        throw new IllegalArgumentException();
+    }
+  }
+
+

在应用快速修复后:

+

+  double getPrice(String fruit) {
+    return switch (fruit) {
+      case "Apple" -> 1.0;
+      case "Orange" -> 1.5;
+      case "Mango" -> 2.0;
+      default -> throw new IllegalArgumentException();
+    };
+  }
+  
+ +

此检查仅适用于 14 级或更高的语言级别

+

2019.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EntityToSharedReference.html b/original-plugin-raw/zh/inspectionDescriptions/EntityToSharedReference.html new file mode 100644 index 000000000..0f8918dfd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EntityToSharedReference.html @@ -0,0 +1,26 @@ + + +报告从 EntitySharedEntity 的无效引用。 +

+ 不能从 SharedEntity 引用 Entity。 + 仅当属性为可 null 或具有 @CascadeDeleteBy 注解时,才能从 Entity 引用 SharedEntity。 + 否则,可能会导致运行时异常。 +

+

示例:

+

+  interface A: Entity {
+    var x: SharedEntity
+    var y: SharedEntity
+  }
+
+

快速修复会生成注解或使类型为可 null

+

+  interface A: Entity {
+    var x: SharedEntity?
+    @CascadeDeleteBy
+    var y: SharedEntity
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EnumClass.html b/original-plugin-raw/zh/inspectionDescriptions/EnumClass.html new file mode 100644 index 000000000..27697ae6a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EnumClass.html @@ -0,0 +1,9 @@ + + +报告 enum 类。 +Java 1.4 和更早版本的 JVM 不支持此类语句。 + +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EnumEntryName.html b/original-plugin-raw/zh/inspectionDescriptions/EnumEntryName.html new file mode 100644 index 000000000..101db3957 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EnumEntryName.html @@ -0,0 +1,13 @@ + + +报告不遵循推荐的命名惯例的枚举条目名称。 +

示例:

+

+  enum class Foo {
+    _Foo,
+    foo
+  }
+
+

要修正此问题,请重命名枚举条目以匹配推荐的命名惯例。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EnumSwitchStatementWhichMissesCases.html b/original-plugin-raw/zh/inspectionDescriptions/EnumSwitchStatementWhichMissesCases.html new file mode 100644 index 000000000..2088fa60c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EnumSwitchStatementWhichMissesCases.html @@ -0,0 +1,36 @@ + + +报告为不详尽的枚举类型执行的 switch 语句。 +

示例:

+

+  enum AlphaBetaGamma {
+    A, B, C;
+
+    void x(AlphaBetaGamma e) {
+      switch (e) {
+
+      }
+    }
+  }
+
+

在应用快速修复后:

+

+  enum AlphaBetaGamma {
+    A, B, C;
+
+    void x(AlphaBetaGamma e) {
+      switch (e) {
+        case A -> {}
+        case B -> {}
+        case C -> {}
+      }
+    }
+  }
+
+ +

+使用 忽略具有默认分支的 switch 语句 选项忽略具有 default 分支的 switch 语句。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EnumerationCanBeIteration.html b/original-plugin-raw/zh/inspectionDescriptions/EnumerationCanBeIteration.html new file mode 100644 index 000000000..e05ae63ec --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EnumerationCanBeIteration.html @@ -0,0 +1,18 @@ + + +报告对集合使用的可以替换为等效 Iterator 结构的 Enumeration 方法的调用。 +

示例:

+
Enumeration<String> keys = map.keys();
+  while (keys.hasMoreElements()) {
+    String name = keys.nextElement();
+  }
+
+

在应用快速修复后:

+
Iterator<String> iterator = map.keySet().iterator();
+  while (iterator.hasNext()) {
+    String name = iterator.next();
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EqualityInConditionalOperator.html b/original-plugin-raw/zh/inspectionDescriptions/EqualityInConditionalOperator.html new file mode 100644 index 000000000..db5a5a4e7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EqualityInConditionalOperator.html @@ -0,0 +1,5 @@ + + +检测在顶层使用 = 运算符的条件表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EqualityInConditionalOperatorWithSelf.html b/original-plugin-raw/zh/inspectionDescriptions/EqualityInConditionalOperatorWithSelf.html new file mode 100644 index 000000000..6bdac6878 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EqualityInConditionalOperatorWithSelf.html @@ -0,0 +1,6 @@ + + +使用顶层的 = 运算符和左侧的 self 检测条件表达式。 +可以关闭对 if(self = [super init]) 等常见模式的检查,从而高亮显示条件运算符中的其他 = 用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EqualityToSameElements.html b/original-plugin-raw/zh/inspectionDescriptions/EqualityToSameElements.html new file mode 100644 index 000000000..79436e09b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EqualityToSameElements.html @@ -0,0 +1,17 @@ + + +

报告数组和迭代器上 "equals" 的用法。

+

数组和迭代器上的相等会检查引用相等性(很少有用)。 + 此检查建议通过 sameElements 比较内容。

+

+  Array(1) == Array(1) //false
+  Iterator(1) == Iterator(1) //false
+
+

在应用快速修复后:

+

+  Array(1) sameElements Array(1) //true
+  Iterator(1) sameElements Iterator(1) //true
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EqualsAndHashcode.html b/original-plugin-raw/zh/inspectionDescriptions/EqualsAndHashcode.html new file mode 100644 index 000000000..e6254c0c4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EqualsAndHashcode.html @@ -0,0 +1,38 @@ + + +报告重写 equals() 方法但不重写 hashCode() 方法的类,反之亦然。将类添加到 CollectionHashMap 时,可能会导致问题。 +

该快速修复会为不存在的方法生成默认实现。

+

示例:

+

+class StringHolder {
+  String s;
+
+  @Override public int hashCode() {
+    return s != null ? s.hashCode() : 0;
+  }
+}
+
+

在应用快速修复后:

+

+class StringHolder {
+  String s;
+
+  @Override public int hashCode() {
+    return s != null ? s.hashCode() : 0;
+  }
+
+  @Override
+  public boolean equals(Object o) {
+    if (this == o) return true;
+    if (!(o instanceof StringHolder)) return false;
+
+    StringHolder holder = (StringHolder)o;
+
+    if (s != null ? !s.equals(holder.s) : holder.s != null) return false;
+
+    return true;
+  }
+}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EqualsBetweenInconvertibleTypes.html b/original-plugin-raw/zh/inspectionDescriptions/EqualsBetweenInconvertibleTypes.html new file mode 100644 index 000000000..d432618e4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EqualsBetweenInconvertibleTypes.html @@ -0,0 +1,11 @@ + + +报告对目标和实参的类型不兼容的 equals() 的调用。 +

虽然此类调用理论上可能有用,但很可能是错误。

+

示例:

+

+  new HashSet<String>().equals(new TreeSet<Integer>());
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EqualsCalledOnEnumConstant.html b/original-plugin-raw/zh/inspectionDescriptions/EqualsCalledOnEnumConstant.html new file mode 100644 index 000000000..d82270f65 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EqualsCalledOnEnumConstant.html @@ -0,0 +1,20 @@ + + +报告枚举常量上的 equals() 调用。 +

此类调用可以替换为同一性比较 (==),因为只有两个枚举常量具备相同的同一性时,它们才相等。

+

可以通过快速修复将该调用更改为比较。

+

示例:

+

+  boolean foo(MyEnum value) {
+    return value.equals(MyEnum.FOO);
+  }
+
+

在应用快速修复后:

+

+  boolean foo(MyEnum value) {
+    return value == MyEnum.FOO;
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EqualsHashCodeCalledOnUrl.html b/original-plugin-raw/zh/inspectionDescriptions/EqualsHashCodeCalledOnUrl.html new file mode 100644 index 000000000..60b5377b6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EqualsHashCodeCalledOnUrl.html @@ -0,0 +1,19 @@ + + +报告在 java.net.URL 对象上调用的 hashCode()equals()。 +

+ java.net.URL 类会在内部使用 java.net.URLStreamHandler 的实例来执行 hashCode()equals() 。 + 这会导致性能问题,因为 java.net.URLStreamHandler 会执行 DNS 查找。 + 根据网络的可用性和 DNS 服务器的速度,这可能会导致显著延迟。 +

+

该问题很可能可以通过改为使用 java.net.URI 加以解决。

+

示例:

+

+  int f(URL url1, URL url2) {
+    if (url1.equals(url2)) return url1.hashCode();
+    else return url2.hashCode();
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EqualsOnSuspiciousObject.html b/original-plugin-raw/zh/inspectionDescriptions/EqualsOnSuspiciousObject.html new file mode 100644 index 000000000..c8ba59ef5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EqualsOnSuspiciousObject.html @@ -0,0 +1,15 @@ + + +报告 StringBuilderStringBuffer 实例上的 equals() 调用。 +

equals() 方法在这些类中没有被重写,因此即使两个对象的内容相同,它也可能返回 false。 +如果您打算使用引用相等,我们建议您使用 == 以避免混淆。

+

示例:

+

+  public void test(StringBuilder sb1, StringBuilder sb2) {
+    boolean result = sb1.equals(sb2); // 可疑
+  }
+
+ +

2017.2 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EqualsOrHashCode.html b/original-plugin-raw/zh/inspectionDescriptions/EqualsOrHashCode.html new file mode 100644 index 000000000..30b6ed728 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EqualsOrHashCode.html @@ -0,0 +1,49 @@ + + +报告重写 equals() 但不重写 hashCode()(或者相反操作)的类。 +同时还报告重写 equals()hashCode() 的对象声明。 +

这可能会导致在将类添加到 Collection 时产生不良行为

+

示例:

+

+  class C1 {
+      override fun equals(other: Any?) = true
+  }
+
+  class C2 {
+      override fun hashCode() = 0
+  }
+
+  object O1 {
+      override fun equals(other: Any?) = true
+  }
+
+  object O2 {
+      override fun hashCode() = 0
+  }
+
+

该快速修复会为类重写 equals()hashCode() 方法并为对象删除这些方法:

+

+   class C1 {
+       override fun equals(other: Any?) = true
+       override fun hashCode(): Int {
+           return javaClass.hashCode()
+       }
+   }
+
+   class C2 {
+       override fun hashCode() = 0
+       override fun equals(other: Any?): Boolean {
+           if (this === other) return true
+           if (javaClass != other?.javaClass) return false
+           return true
+       }
+   }
+
+   object O1 {
+   }
+
+   object O2 {
+   }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/EqualsReplaceableByObjectsCall.html b/original-plugin-raw/zh/inspectionDescriptions/EqualsReplaceableByObjectsCall.html new file mode 100644 index 000000000..d8af10474 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EqualsReplaceableByObjectsCall.html @@ -0,0 +1,22 @@ + + +报告可以替换为对 java.util.Objects#equals 的调用的表达式。 +

示例:

+

+  void f(Object a, Object b) {
+    boolean result = a != null && a.equals(b);
+  }
+
+

在应用快速修复后:

+

+  void f(Object a, Object b) {
+    boolean result = Objects.equals(a, b);
+  }
+
+ +

+ 将 a != null && a.equals(b) 之类的表达式替换为 Objects.equals(a, b) 会略微改变语义。 使用高亮显示与 'a != null && a.equals(b)' 类似的表达式选项,可启用或禁用此行为。 +

+

仅当项目或模块的语言级别为 7 或更高时,此检查才会报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EqualsUsesNonFinalVariable.html b/original-plugin-raw/zh/inspectionDescriptions/EqualsUsesNonFinalVariable.html new file mode 100644 index 000000000..9148b80d6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EqualsUsesNonFinalVariable.html @@ -0,0 +1,25 @@ + + +报告访问非 final 变量的 equals() 的实现。 此类访问可能导致 equals() 在该对象生命周期的不同时刻返回不同的结果,进而可能在使用标准集合类时导致问题。 +

示例:

+

+  public class Person {
+    private String lastName;
+
+    @Override
+    public boolean equals(Object obj) {
+      ...
+      Person other = (Person) obj;
+      if (lastName == null) {
+        if (!lastName.equals(other.lastName)) {
+        return false;
+      ...
+      }
+    }
+  }
+  
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EqualsWhichDoesntCheckParameterClass.html b/original-plugin-raw/zh/inspectionDescriptions/EqualsWhichDoesntCheckParameterClass.html new file mode 100644 index 000000000..2a7936fab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EqualsWhichDoesntCheckParameterClass.html @@ -0,0 +1,19 @@ + + +报告不检查其形参类型的 equals() 方法。 +

无法检查 equals() 方法中形参的类型时,如果在无类型集合中使用该对象,可能会导致潜在错误。

+

示例:

+

+  class MyClass {
+    int x;
+
+    @Override
+    public boolean equals(Object obj) {
+      // 如果 obj 不为 MyClass,equals 方法应返回 false
+      return ((MyClass)obj).x == x;
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/EqualsWithItself.html b/original-plugin-raw/zh/inspectionDescriptions/EqualsWithItself.html new file mode 100644 index 000000000..de84f6b3a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/EqualsWithItself.html @@ -0,0 +1,20 @@ + + +报告对象与自身进行相等比较的 equals()compareto() 调用。 +

根据方法约定,对于 equals(),这些运算始终返回 true;对于 compareTo(),始终返回 0。 该检查还可以检查对 Objects.equals()Objects.deepEquals()Arrays.equals()Comparator.compare 等的调用。

+

示例:

+

+  class Foo {
+    boolean foo(Object o) {
+        return o.equals(o); // 警告
+    }
+
+    boolean bar(String[] ss) {
+        return Arrays.equals(ss, ss); // 警告
+    }
+}
+
+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ErrorRethrown.html b/original-plugin-raw/zh/inspectionDescriptions/ErrorRethrown.html new file mode 100644 index 000000000..14a5223f9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ErrorRethrown.html @@ -0,0 +1,16 @@ + + +报告捕获 java.lang.Error 或其任何子类并且不重新抛出错误的 try 语句。 +

不会报告捕获 java.lang.ThreadDeath 的语句。

+

示例:

+

+  try {
+    executeTests(request);
+  }
+  catch (OutOfMemoryError ex) { // 警告:错误 'ex' 未重新抛出
+    return false;
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Eslint.html b/original-plugin-raw/zh/inspectionDescriptions/Eslint.html new file mode 100644 index 000000000..5fc9df185 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Eslint.html @@ -0,0 +1,10 @@ + + +报告 ESLint linter 检测到的差异。 + +

+高亮显示基于 ESLint 配置文件中为每条规则指定的规则严重性。 +

+清除“使用配置文件中的规则严重性”复选框,对所有 ESLint 规则使用该项检查中配置的严重性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExactMatchIncorrectResolve.html b/original-plugin-raw/zh/inspectionDescriptions/ExactMatchIncorrectResolve.html new file mode 100644 index 000000000..075e06558 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExactMatchIncorrectResolve.html @@ -0,0 +1,7 @@ + + +检测完全正确解析(完全正确解析表示 RM 解析和运行时解析 100% 匹配)。 +本检查仅用于测试。 并且需要包含有关正确解析信息的特殊文件。 +对于该检查,此文件必须位于此处:/tmp/ExactMatchIncorrectResolve.txt + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExceptionCaughtLocallyJS.html b/original-plugin-raw/zh/inspectionDescriptions/ExceptionCaughtLocallyJS.html new file mode 100644 index 000000000..5c8d53883 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExceptionCaughtLocallyJS.html @@ -0,0 +1,5 @@ + + +报告异常始终可以通过包含 try 语句捕获的 throw 语句。 使用 throw 语句作为 goto 来更改局部控制流令人困惑。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExceptionFromCatchWhichDoesntWrap.html b/original-plugin-raw/zh/inspectionDescriptions/ExceptionFromCatchWhichDoesntWrap.html new file mode 100644 index 000000000..d85449a7a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExceptionFromCatchWhichDoesntWrap.html @@ -0,0 +1,20 @@ + + +报告从 catch 块内部抛出但不“包装”所捕获异常的异常。 +

当异常被抛出以响应异常时,包装初始异常可防止丢失有价值的上下文信息,如堆栈帧和行号。

+

示例:

+

+  ...
+  catch (IOException e) {
+    closeAllConnections();
+    throw new ConnectException("Connection problem."); // 警告:'catch' 块内的 'throw' 忽略捕获的异常 'e'
+  }
+
+ +

配置检查:

+
    +
  • 使用如果使用异常方法调用的结果,则忽略选项可指示检查是否应忽略实参为原始异常方法调用结果的异常,例如 getMessage()
  • +
  • 使用如果抛出的异常无法包装异常,则忽略选项可忽略在没有接受 Throwable 子句的构造函数的情况下抛出异常的 throw 语句。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExceptionNameDoesntEndWithException.html b/original-plugin-raw/zh/inspectionDescriptions/ExceptionNameDoesntEndWithException.html new file mode 100644 index 000000000..fb5c5396e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExceptionNameDoesntEndWithException.html @@ -0,0 +1,10 @@ + + +报告名称不以 Exception 结束的异常类。 +

示例class NotStartedEx extends Exception {} +

只能在编辑器中采用快速修复来重命名这种类。

+ +

+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExceptionPackage.html b/original-plugin-raw/zh/inspectionDescriptions/ExceptionPackage.html new file mode 100644 index 000000000..96e926b4e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExceptionPackage.html @@ -0,0 +1,9 @@ + + +报告仅包含直接或间接扩展 java.lang.Throwable 的类的软件包。 +

尽管异常的实现通常不依赖于其他类,但它们通常不会单独使用。 + 更好的设计通常会将异常与使用它们的类放在同一个软件包中。

+ +

仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExcessiveLambdaUsage.html b/original-plugin-raw/zh/inspectionDescriptions/ExcessiveLambdaUsage.html new file mode 100644 index 000000000..b9e9c43fa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExcessiveLambdaUsage.html @@ -0,0 +1,16 @@ + + +报告一个普通的 lambda 表达式被用在另一种方法中的情况,这种方法以相同方式运行,但只接受一个具体的值而不是 lambda。 +

此检查有助于简化代码。

+

示例:

+

+  Optional.orElseGet(() -> null)
+
+

在应用快速修复后:

+

+  Optional.orElse(null)
+
+ +

2017.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExcessiveRangeCheck.html b/original-plugin-raw/zh/inspectionDescriptions/ExcessiveRangeCheck.html new file mode 100644 index 000000000..a9d967f75 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExcessiveRangeCheck.html @@ -0,0 +1,24 @@ + + +报告检查值范围的条件链,这些条件链可以简化为单个检查。 +

该快速修复会将条件链替换为简化的表达式:

+

示例:

+

+  x > 2 && x < 4
+
+

在应用快速修复后:

+

+  x == 3
+
+

示例:

+

+  arr.length == 0 || arr.length > 1
+
+

在应用快速修复后:

+

+  arr.length != 1
+
+ +

2019.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExistsEquals.html b/original-plugin-raw/zh/inspectionDescriptions/ExistsEquals.html new file mode 100644 index 000000000..0166d68f8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExistsEquals.html @@ -0,0 +1,20 @@ + + +

报告搜索特定元素的 existsforall 的用法。

+ + +

该快速修复改用 contains

+ +

示例:

+

+  set.exists(x => x == "a")
+  set.forall(x => x != "a")
+
+

在应用快速修复后:

+

+  set.contains("a")
+  !set.contains("a")
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExistsForallReplace.html b/original-plugin-raw/zh/inspectionDescriptions/ExistsForallReplace.html new file mode 100644 index 000000000..7ac699b71 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExistsForallReplace.html @@ -0,0 +1,20 @@ + + +

报告 existsforall 调用中的双重否定。

+ +

该快速修复会移除双重否定。

+

示例:

+

+  def condition(x: Int): Boolean = ???
+  !Seq(1, 2).exists(x => !condition(x))
+  !Seq(1, 2).forall(x => !condition(x))
+
+

在应用快速修复后:

+

+  def condition(x: Int): Boolean = ???
+  Seq(1, 2).forall(x => condition(x))
+  Seq(1, 2).exists(x => condition(x))
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExpectedExceptionNeverThrown.html b/original-plugin-raw/zh/inspectionDescriptions/ExpectedExceptionNeverThrown.html new file mode 100644 index 000000000..fdb40ae83 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExpectedExceptionNeverThrown.html @@ -0,0 +1,13 @@ + + +报告 JUnit 4 测试方法预期但从未在方法体内抛出的已检查的异常。 +此类测试方法永远不会成功。 +

示例:

+

+  @Test(expected = CloneNotSupportedException.class)
+  public void testIt() {
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExpectedExceptionNeverThrownTestNG.html b/original-plugin-raw/zh/inspectionDescriptions/ExpectedExceptionNeverThrownTestNG.html new file mode 100644 index 000000000..176cebaab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExpectedExceptionNeverThrownTestNG.html @@ -0,0 +1,14 @@ + + +报告 TestNG 测试方法预期但从未在方法主体内抛出的已检查的异常。 +

示例:

+

+  @Test(expectedExceptions = Exception.class) // 警告:从未抛出预期的 ‘Exception'
+  public void testEngineIsRunning() {
+    assertTrue(engine.isRunning());
+  }
+  
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExplicitArgumentCanBeLambda.html b/original-plugin-raw/zh/inspectionDescriptions/ExplicitArgumentCanBeLambda.html new file mode 100644 index 000000000..588ccb456 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExplicitArgumentCanBeLambda.html @@ -0,0 +1,9 @@ + + +报告接受非普通表达式的方法调用,这些方法调用可以替换为接受 lambda 的等效方法调用。 +

+将表达式转换为 lambda 可确保不会评估方法中未使用的表达式。 例如,optional.orElse(createDefaultValue()) 可以转换为 optional.orElseGet(this::createDefaultValue)。 + +

2018.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExplicitArrayFilling.html b/original-plugin-raw/zh/inspectionDescriptions/ExplicitArrayFilling.html new file mode 100644 index 000000000..75a806d3d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExplicitArrayFilling.html @@ -0,0 +1,19 @@ + + +报告可以替换为 Arrays.setAll()Arrays.fill() 调用的循环。 +

如果项目或模块的语言级别为 8 或更高,则此检查建议将循环替换为 Arrays.setAll()。 + 您可以在任何语言级别将循环替换为 Arrays.fill()

+

示例:

+

+  for (int i=0; i<array.length; i++) {
+     array[i] = calc(i);
+  }
+
+

在应用快速修复后:

+

+  Arrays.setAll(array, this::calc);
+
+ +

2017.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExplicitThis.html b/original-plugin-raw/zh/inspectionDescriptions/ExplicitThis.html new file mode 100644 index 000000000..9e249c3f0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExplicitThis.html @@ -0,0 +1,19 @@ + + +报告可以省略的显式 this。 +

示例:

+

+  class C {
+      private val i = 1
+      fun f() = this.i
+  }
+
+

该快速修复会移除冗余的 this

+

+  class C {
+      private val i = 1
+      fun f() = i
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExpressionMayBeFactorized.html b/original-plugin-raw/zh/inspectionDescriptions/ExpressionMayBeFactorized.html new file mode 100644 index 000000000..55c93f646 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExpressionMayBeFactorized.html @@ -0,0 +1,17 @@ + + + +报告可以分解的表达式,即重组以提取公因子。 +这减少了冗余,可以提高代码的可读性。 +

示例:

+

+  a && b || a && c
+
+

在应用快速修复后:

+

+  a && (b || c)
+
+ +

2021.3 最新变化

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExtendsAnnotation.html b/original-plugin-raw/zh/inspectionDescriptions/ExtendsAnnotation.html new file mode 100644 index 000000000..b48c09e07 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExtendsAnnotation.html @@ -0,0 +1,7 @@ + + +报告声明为注解接口的实现或扩展的类。 +

尽管扩展注解接口是合法之举,但通常是偶然为之,并且结果不能作为注解使用。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExtendsConcreteCollection.html b/original-plugin-raw/zh/inspectionDescriptions/ExtendsConcreteCollection.html new file mode 100644 index 000000000..a773d4702 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExtendsConcreteCollection.html @@ -0,0 +1,9 @@ + + +报告扩展 java.util.Collectionjava.util.Map 类的具体子类的类。 +

+ 一种常见但欠佳的做法是对具体集合类型进行子类化。 它比委托集合调用要脆弱得多。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExtendsObject.html b/original-plugin-raw/zh/inspectionDescriptions/ExtendsObject.html new file mode 100644 index 000000000..639cc1136 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExtendsObject.html @@ -0,0 +1,17 @@ + + +报告一个明确声明要扩展 java.lang.Object 的类。 +

这种声明是冗余的,可以安全地删除。

+

示例:

+

+  class MyClass extends Object {
+  }
+
+

快速修复删除了冗余的 extends Object 子句:

+

+  class MyClass {
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExtendsTagPositionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ExtendsTagPositionInspection.html new file mode 100644 index 000000000..01bc3182f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExtendsTagPositionInspection.html @@ -0,0 +1,13 @@ + + +

报告不是 Django 模板中第一个标记的 +{% extends %} 标记。

+

示例:

+
+{% load my_custom_tags %}
+{% extends "../DjangoApp/templatetags/my_custom_tags.py"%}
+
+

在本例中,{% extends %} 标记高亮显示,因为它应该放在 +{% load %} 标记前面。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExtendsThread.html b/original-plugin-raw/zh/inspectionDescriptions/ExtendsThread.html new file mode 100644 index 000000000..507abd584 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExtendsThread.html @@ -0,0 +1,12 @@ + + +报告直接扩展 java.lang.Thread 的类。 +通常建议使用组合而不是继承来创建更便于日后修改的可重用代码。 +

示例:

+

+  class MainThread extends Thread {
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExtendsThrowable.html b/original-plugin-raw/zh/inspectionDescriptions/ExtendsThrowable.html new file mode 100644 index 000000000..aa290856e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExtendsThrowable.html @@ -0,0 +1,12 @@ + + +报告直接扩展 java.lang.Throwable 的类。 +

直接扩展 java.lang.Throwable 通常被认为是一种不好的做法。 + 通常扩展 java.lang.RuntimeExceptionjava.lang.Exception 或在特殊情况下扩展 java.lang.Error 就足够了。

+

示例:

+

+  class EnigmaThrowable extends Throwable {} // 警告:'EnigmaThrowable' 类会直接扩展 'java.lang.Throwable'
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExtendsUtilityClass.html b/original-plugin-raw/zh/inspectionDescriptions/ExtendsUtilityClass.html new file mode 100644 index 000000000..02af64532 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExtendsUtilityClass.html @@ -0,0 +1,19 @@ + + +报告扩展实用类的类。 +

+实用类是非空类,其中所有字段和方法都为 static。 + 扩展实用类还允许无意中对实用类进行对象实例化,因为不能为了允许扩展而将构造函数设置为 private。 +

+ +

+ 配置检查: +

+
    +
  • + 使用如果重写类为实用程序类,则忽略选项可以忽略任何重写实用程序类但本身也是实用程序类的类。 +
  • +
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExternalizableWithSerializationMethods.html b/original-plugin-raw/zh/inspectionDescriptions/ExternalizableWithSerializationMethods.html new file mode 100644 index 000000000..c0075a70e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExternalizableWithSerializationMethods.html @@ -0,0 +1,15 @@ + + +报告定义 readObject()writeObject() 方法的 Externalizable 类。 这些方法并非为了序列化 Externalizable 对象而调用。 +

示例:

+

+  abstract class Crucial implements Externalizable {
+    int value;
+    private void readObject(ObjectInputStream in) {
+      value = in.readInt();
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ExternalizableWithoutPublicNoArgConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/ExternalizableWithoutPublicNoArgConstructor.html new file mode 100644 index 000000000..f6b89ae29 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ExternalizableWithoutPublicNoArgConstructor.html @@ -0,0 +1,7 @@ + + +报告没有 public 无实参构造函数的 Externalizable 类。 +

在重新构造 Externalizable 对象时,将在调用 readExternal 方法前使用 public 无实参构造函数创建一个实例。 如果 public 无实参构造函数不可用,在运行时会抛出 java.io.InvalidClassException。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FacesModelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FacesModelInspection.html new file mode 100644 index 000000000..4de8a3892 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FacesModelInspection.html @@ -0,0 +1,30 @@ + + +

报告 Java Server Faces faces-config.xml 文件中不正确的元素:

+ +
    +
  • 对不可实例化类的引用
  • +
  • 对不扩展所需类的类的引用
  • +
  • 对范围不适当的类的引用
  • +
  • 空标记和特性值
  • +
  • 与所需模式不匹配的标记和特性值(例如,Java 标识符)
  • +
  • 不包含必需子标记或特性的标记
  • +
  • 定义具有重复名称的对象的标记
  • +
+ +

示例:

+

+  <faces-config >
+     <application>
+        <action-listener>java.lang.String</action-listener>  <!-- 'java.lang.String' 不可分配给 'javax.faces.event.ActionListener'  -->
+    </application>
+    <navigation-rule>
+        <from-view-id>myView.xhtml</from-view-id>
+        <navigation-case>
+            <to-view-id>unknown.xhtml</to-view-id>  <!-- 无法解析 'unknown.xhtml'  -->
+        </navigation-case>
+    </navigation-rule>
+  </faces-config>
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FakeJvmFieldConstant.html b/original-plugin-raw/zh/inspectionDescriptions/FakeJvmFieldConstant.html new file mode 100644 index 000000000..f36767fe3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FakeJvmFieldConstant.html @@ -0,0 +1,30 @@ + + +报告不是 const 并用作 Java 注解实参的 Kotlin 属性。 +

+例如,具有 @JvmField 注解的属性有一个可以在编译时评估的初始值设定项,它有一个基元类型或 String 类型。 +

+ +

+此类属性在 Kotlin 1.1-1.2 中的字节码中具有 ConstantValue 特性。 +此特性允许 javac 折叠相应字段的用法并在注解中使用该字段。 +在混合 Java/Kotlin 代码中单独或增量编译的情况下,这可能导致错误行为。 +此行为在 Kotlin 1.3 中可能发生变化(不再有 ConstantValue 特性)。 +

+

示例:

+

foo.kt 文件中的 Kotlin 代码:

+

+  annotation class Ann(val s: String)
+  @JvmField val importantString = "important"
+
+

Java 代码:

+

+  public class JavaUser {
+      // 这很危险
+      @Ann(s = FooKt.importantString)
+      public void foo() {}
+  }
+
+

要修正此问题,请将 @JvmField 注解替换为相关 Kotlin 属性上的 const 修饰符或将其内联。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/FallThroughInSwitchStatementJS.html b/original-plugin-raw/zh/inspectionDescriptions/FallThroughInSwitchStatementJS.html new file mode 100644 index 000000000..c92373064 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FallThroughInSwitchStatementJS.html @@ -0,0 +1,6 @@ + + +报告可以将控制从一个分支转到下一个分支的 switch 语句。 这种“贯穿”通常表示有错误, +例如,缺少 breakreturn。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FallthruInSwitchStatement.html b/original-plugin-raw/zh/inspectionDescriptions/FallthruInSwitchStatement.html new file mode 100644 index 000000000..076b7b87a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FallthruInSwitchStatement.html @@ -0,0 +1,42 @@ + + +报告 switch 语句中的直落。 +

case 标签后面的一系列可执行语句不能保证在下一个 case 标签前转移控制权时,就会发生直落。 例如,如果分支缺少 break 语句,就可能发生这种情况。 +在这种情况下,即便 switch 表达式不等于被直落标签的值,控制权也会直落到 switch 标签后面的语句。 虽然偶尔是有意为之,但此结构令人困惑,并且通常是由拼写错误所致。

+

+此检查将忽略任何使用与正则表达式模式 (?i)falls?\s*thro?u 相匹配的文本注释的直落。 +

+

可以通过修正向可能直落到下一个分支的分支添加 break

+

示例:

+

+    switch(x) {
+      case (4):
+          if (condition) {
+              System.out.println("3");
+              // 此处无 break
+          } else {
+              break;
+          }
+      case (6):
+          System.out.println("4");
+    }
+
+

在应用快速修复后:

+

+    switch(x) {
+        case (4):
+            if (condition) {
+                System.out.println("3");
+            } else {
+                break;
+            }
+            break;
+        case (6):
+            System.out.println("4");
+    }
+
+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FeatureEnvy.html b/original-plugin-raw/zh/inspectionDescriptions/FeatureEnvy.html new file mode 100644 index 000000000..425f4e79f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FeatureEnvy.html @@ -0,0 +1,20 @@ + + +报告特性依恋代码异味。 当方法调用另一个类的方法三次或更多次时,将抛出警告。 对库类、父类、包含类的调用不计入此检查。 特性依恋通常表明该功能位于错误的类中。 +

示例:

+

+  class JobManager {
+    // 警告:此方法调用 Job 类的
+    // 三个方法
+    // 最好将此调用链
+    // 移至 Job 类本身。
+    void performJob(Job job) {
+      job.beforeStart();
+      job.process();
+      job.afterProcessing();
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FieldAccessNotGuarded.html b/original-plugin-raw/zh/inspectionDescriptions/FieldAccessNotGuarded.html new file mode 100644 index 000000000..a14b9a900 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FieldAccessNotGuarded.html @@ -0,0 +1,25 @@ + + +报告对声明为 @GuardedBy 且不受适当同步结构保护的字段的访问。 +

示例:

+

+    @GuardedBy("this")
+    void x() {
+        notify();
+    }
+    void y() {
+        x(); // 不受保护的方法调用
+    }
+
+ +

支持的 @GuardedBy 注解是:

+
    +
  • net.jcip.annotations.GuardedBy
  • +
  • javax.annotation.concurrent.GuardedBy
  • +
  • org.apache.http.annotation.GuardedBy
  • +
  • com.android.annotations.concurrency.GuardedBy
  • +
  • androidx.annotation.GuardedBy
  • +
  • com.google.errorprone.annotations.concurrent.GuardedBy
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FieldAccessedSynchronizedAndUnsynchronized.html b/original-plugin-raw/zh/inspectionDescriptions/FieldAccessedSynchronizedAndUnsynchronized.html new file mode 100644 index 000000000..d92c63778 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FieldAccessedSynchronizedAndUnsynchronized.html @@ -0,0 +1,29 @@ + + +报告在 synchronized 和非 synchronized 上下文中访问的非 final 字段。 +volatile 字段以及构造函数和初始值设定项中的访问将被此检查忽略。 +

+ 此类“部分同步的”访问通常是编码疏忽所致,可能导致意外的不一致数据结构。 +

+

示例:

+

+  public class Program {
+    Console console; // 警告:在同步和非同步上下文中都访问字段 'console'
+
+    public synchronized void execute() {
+      console.print("running");
+    }
+
+    public void check() {
+      console.check();
+    }
+  }
+
+
+ +

+ 使用该选项可以指定简单的 getter 和 setter 是否也算作访问。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FieldCanBeLocal.html b/original-plugin-raw/zh/inspectionDescriptions/FieldCanBeLocal.html new file mode 100644 index 000000000..28838a5e8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FieldCanBeLocal.html @@ -0,0 +1,6 @@ + + +报告可以用局部变量替换的冗余类字段。 +

如果一个字段的所有局部用法都紧跟对该字段的赋值,则可以删除该字段,并且可以将其用法替换为局部变量。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/FieldCanBeMovedToSubclass.html b/original-plugin-raw/zh/inspectionDescriptions/FieldCanBeMovedToSubclass.html new file mode 100644 index 000000000..89fcb86b5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FieldCanBeMovedToSubclass.html @@ -0,0 +1,9 @@ + + +报告可以移动到子类的任何实例字段。 +

仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FieldCount.html b/original-plugin-raw/zh/inspectionDescriptions/FieldCount.html new file mode 100644 index 000000000..761e3d8c0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FieldCount.html @@ -0,0 +1,14 @@ + + +报告字段数超过指定最大值的类。 +

具有大量字段的类通常会试图进行过多处理。 请考虑将这种类拆分为多个较小的类。

+ +

配置检查:

+
    +
  • 使用字段计数限制字段可指定类中允许的最大字段数。
  • +
  • 使用在计数中包含常量字段选项可指示是否应计算常量字段。
  • +
  • 默认情况下,只有不可变的 static final 对象会被计为常量。 使用将 'static final' 字段计为常量选项可将任何 static final 字段计为常量。
  • +
  • 使用在计数中包含枚举常量选项可指定是否应计算 enum 类中的 enum 常量。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FieldFromDelayedInit.html b/original-plugin-raw/zh/inspectionDescriptions/FieldFromDelayedInit.html new file mode 100644 index 000000000..aad97e986 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FieldFromDelayedInit.html @@ -0,0 +1,20 @@ + + +

报告在 DelayedInit 的子类中定义并且仅在执行方法 main 时初始化的字段。 +

+

示例:

+

+  class Test {
+    println(MyApp.initializedLater) // 打印 0
+  }
+  object MyApp extends DelayedInit {
+    val initializedLater = 3
+    override def delayedInit(body: => Unit): Unit = {
+      new Test
+      body
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FieldHasSetterButNoGetter.html b/original-plugin-raw/zh/inspectionDescriptions/FieldHasSetterButNoGetter.html new file mode 100644 index 000000000..23801764e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FieldHasSetterButNoGetter.html @@ -0,0 +1,9 @@ + + +报告含有 setter 方法但没有 getter 方法的字段。 +

+ 在某些 bean 容器中,当在 Java bean 规范中使用时,这些字段可能难以使用。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FieldHidesSuperclassField.html b/original-plugin-raw/zh/inspectionDescriptions/FieldHidesSuperclassField.html new file mode 100644 index 000000000..504d6dbd3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FieldHidesSuperclassField.html @@ -0,0 +1,31 @@ + + +报告派生类中与超类的字段同名的字段。 +Java 字段无法在派生类中重写,因此派生类中的字段将对超类隐藏该字段。 +

+ 由于进行此类命名,在基类有意使用同名字段的情况下,您可能会误用派生类的字段。 +

+

建议通过快速修复重命名派生类中的字段。

+

示例:

+
class Parent {
+  Parent parent;
+}
+class Child extends Parent {
+  Child parent;
+}
+
+ +

+ 您可以为此检查配置以下选项: +

+
    +
  1. + 忽略不可访问字段 - 指示此检查应报告所有名称冲突,还是只报告与子类可见的字段的冲突。 +
  2. +
  3. + 忽略隐藏 static 字段的 static 字段 - 忽略隐藏基类中的 static 字段的 static 字段。 +
  4. +
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FieldMayBeFinal.html b/original-plugin-raw/zh/inspectionDescriptions/FieldMayBeFinal.html new file mode 100644 index 000000000..1095823f7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FieldMayBeFinal.html @@ -0,0 +1,14 @@ + + +报告可以安全地设为 final 的任何字段。 +

使用 final 变量会使代码更不容易出错。 它还可以通过优化编译器来帮助加速您的程序。

+

只有当一个字段具有 private 访问修饰符才可以安全地设为 final (或者它在本地/匿名类中定义),并且:

+

    +
  • 它是 static,并在其声明或 static 的类初始化程序之一中进行初始化。
  • +
  • 它是非 static 的,并在其声明、非 static 的类初始化程序或所有构造函数中初始化。
  • +
+ + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FieldMayBeStatic.html b/original-plugin-raw/zh/inspectionDescriptions/FieldMayBeStatic.html new file mode 100644 index 000000000..8cae04652 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FieldMayBeStatic.html @@ -0,0 +1,10 @@ + + +报告可以安全地设为 static 的实例变量。 如果字段被声明为 final 并用常量初始化,则该字段可以为 static 字段。 +

示例:

+

+  public final String str = "sample";
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FieldMustBeInitialized.html b/original-plugin-raw/zh/inspectionDescriptions/FieldMustBeInitialized.html new file mode 100644 index 000000000..06835ff0c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FieldMustBeInitialized.html @@ -0,0 +1,5 @@ + + +报告常量、具有引用类型或没有默认构造函数且未在构造函数中初始化的类字段。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FieldNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/FieldNamingConvention.html new file mode 100644 index 000000000..3196505f4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FieldNamingConvention.html @@ -0,0 +1,14 @@ + + +报告名称太短、太长或不遵循指定正则表达式模式的字段。 +

示例:如果对常量启用了检查,并且字段名称的最小指定长度为 5(默认值),由于以下常量的名称长度为 3,即小于 5,因此将生成警告:public static final int MAX = 42;

+

只能在编辑器中使用重命名此类字段的快速修复。

+ +

配置检查:

+

使用选项部分中的列表来指定应检查哪些字段。 取消选中要为之跳过检查的字段对应的复选框。

+

对于每种字段类型,请使用所提供的输入字段指定字段名称的最小长度、最大长度和正则表达式。 + 在长度字段中指定 0 可跳过相应检查。

+

正则表达式应以标准 java.util.regex 格式指定。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FieldNotUsedInToString.html b/original-plugin-raw/zh/inspectionDescriptions/FieldNotUsedInToString.html new file mode 100644 index 000000000..0f683f8e7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FieldNotUsedInToString.html @@ -0,0 +1,37 @@ + + +报告在类的 toString() 方法中未使用的任何字段。 +

此检查对于查找在 toString() 方法创建后添加且 toString() 方法未更新的字段很有用。 该快速修复会重新生成 toString() 方法。

+

+在 生成 | toString() 对话框中,可以从此检查中排除字段。 +如果在代码生成中启用 getter 选项,则此检查还将检查 getter 方法是否存在问题。 +

示例:

+

+  public class Relevant {
+    private String name; // 未在 toString() 中使用
+    private int index;
+    private int length;
+
+    @Override
+    public String toString() {
+        return "Relevant{" + "index=" + index +
+          ", length=" + length + '}';
+    }
+  }
+
+

在应用快速修复后:

+

+  public class Relevant {
+    private String name;
+    private int index;
+    private int length;
+
+    @Override
+    public String toString() {
+        return "Relevant{" + "name='" + name + '\'' +
+          ", index=" + index + ", length=" + length + '}';
+    }
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FileEqualsUsage.html b/original-plugin-raw/zh/inspectionDescriptions/FileEqualsUsage.html new file mode 100644 index 000000000..37c0625fb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FileEqualsUsage.html @@ -0,0 +1,11 @@ + + +报告 java.io.File.equals()/hashCode()/compareTo() 方法的用法。 +

+ 它们在 macOS 上不支持不区分大小写。 +

+

+ 请改用 com.intellij.openapi.util.io.FileUtil.filesEquals()/fileHashCode()/compareFiles() 方法。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/FileHeaderInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FileHeaderInspection.html new file mode 100644 index 000000000..c1e125925 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FileHeaderInspection.html @@ -0,0 +1,8 @@ + + +报告不包含 Joomla 所需的 @copyright@license 标记的文件头 DocBlock! DocBlock 标准。 +

+ 参阅 Joomla! 编码标准 (developer.joomla.org) 了解详细信息。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FillPermitsList.html b/original-plugin-raw/zh/inspectionDescriptions/FillPermitsList.html new file mode 100644 index 000000000..55824ecfe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FillPermitsList.html @@ -0,0 +1,17 @@ + + +报告其 permits 子句不包含来自同一文件的某些子类的密封类。 +

示例:

+

+  sealed class A {}
+  final class B extends A {}
+
+

在应用快速修复后:

+

+  sealed class A permits B {}
+  final class B extends A {}
+
+ +

2020.3 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FilterEmptyCheck.html b/original-plugin-raw/zh/inspectionDescriptions/FilterEmptyCheck.html new file mode 100644 index 000000000..1a005dfc2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FilterEmptyCheck.html @@ -0,0 +1,24 @@ + + +

报告已筛选集合上的空性检查。

+ +

该快速修复使用 existsforall 检查是否为空。

+

示例:

+

+  var x: Seq[Int]
+  x.filter(p).size == 0
+  x.filter(p).length > 0
+  x.filterNot(p).isEmpty
+  x.filterNot(p).nonEmpty
+
+

在应用快速修复后:

+

+  var x: Seq[Int]
+  !x.exists(p)
+  x.exists(p)
+  x.forall(p)
+  !x.forall(p)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FilterHeadOption.html b/original-plugin-raw/zh/inspectionDescriptions/FilterHeadOption.html new file mode 100644 index 000000000..8e018b1bb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FilterHeadOption.html @@ -0,0 +1,16 @@ + + +

报告 filterheadOption 的用法,并将其替换为 find

+

示例:

+

+  var x: Seq[Int]
+  x.filter(p).headOption
+
+

在应用快速修复后:

+

+  var x: Seq[Int]
+  x.find(p)
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/FilterOtherContains.html b/original-plugin-raw/zh/inspectionDescriptions/FilterOtherContains.html new file mode 100644 index 000000000..af36c2a83 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FilterOtherContains.html @@ -0,0 +1,24 @@ + + +

报告 Set 上的 filterfilterNot 并建议改用 intersectdiff

+

示例:

+

+  val set = Set(1, 2)
+  val others = Set(2, 3)
+  set.filter(others.contains(_))
+  set.filterNot(others.contains)
+  set.filter(x => !others.contains(x))
+  set.filterNot(x => !others.contains(x))
+
+

在应用快速修复后:

+

+  val set = Set(1, 2)
+  val others = Set(2, 3)
+  set.intersect(others)
+  set.diff(others)
+  set.diff(others)
+  set.intersect(others)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FilterSetContains.html b/original-plugin-raw/zh/inspectionDescriptions/FilterSetContains.html new file mode 100644 index 000000000..bd1d1c73c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FilterSetContains.html @@ -0,0 +1,14 @@ + + +

报告 filter 中的冗余 contains

+

示例:

+

+  Seq(1, 2, 3).filter(Set(1, 3).contains)
+
+

在应用快速修复后:

+

+  Seq(1, 2, 3).filter(Set(1, 3))
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FilterSize.html b/original-plugin-raw/zh/inspectionDescriptions/FilterSize.html new file mode 100644 index 000000000..bf7e00218 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FilterSize.html @@ -0,0 +1,16 @@ + + +

报告 filtersize(或 length)的用法,并建议将其替换为 count

+

示例:

+

+  var x: Seq[Int]
+  x.filter(p).size
+
+

在应用快速修复后:

+

+  var x: Seq[Int]
+  x.count(p)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FinalClass.html b/original-plugin-raw/zh/inspectionDescriptions/FinalClass.html new file mode 100644 index 000000000..7d7ee4ffd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FinalClass.html @@ -0,0 +1,8 @@ + + +报告被声明为 final 的类。 +这种类不能被继承,并且可能表明缺乏面向对象的设计。 + 某些编码标准不鼓励 final 类。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FinalMethod.html b/original-plugin-raw/zh/inspectionDescriptions/FinalMethod.html new file mode 100644 index 000000000..0f985c90a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FinalMethod.html @@ -0,0 +1,8 @@ + + +报告被声明为 final 的方法。 +此类方法不能被重写,并且可能表明缺乏面向对象的设计。 + 某些编码标准不鼓励 final 方法。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FinalMethodInFinalClass.html b/original-plugin-raw/zh/inspectionDescriptions/FinalMethodInFinalClass.html new file mode 100644 index 000000000..595d3af08 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FinalMethodInFinalClass.html @@ -0,0 +1,25 @@ + + +报告 final 类中的 final 方法。 +

由于不能继承 final 类,将方法标记为 final 可能是多余之举,而且令人困惑。

+

示例:

+
record Bar(int a, int b) {
+  public final int sum() { 
+     return a + b;
+  }
+}
+
+
+

在应用快速修复后:

+
record Bar(int a, int b) {
+  public int sum() { 
+     return a + b;
+  }
+}
+
+ +

如本例所示,可以显式或隐式地将类标记为 final

+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FinalPrivateMethod.html b/original-plugin-raw/zh/inspectionDescriptions/FinalPrivateMethod.html new file mode 100644 index 000000000..b62e6a657 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FinalPrivateMethod.html @@ -0,0 +1,7 @@ + + +报告同时标有 finalprivate 关键字的方法。 +

由于 private 方法因其可见性而无法被有意义地重写,因此将它们声明为 final 是冗余的。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FinalStaticMethod.html b/original-plugin-raw/zh/inspectionDescriptions/FinalStaticMethod.html new file mode 100644 index 000000000..b155baeab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FinalStaticMethod.html @@ -0,0 +1,10 @@ + + +报告标记为 final 的 static 方法。 +

此类代码可能表示错误或关于 final 关键字效果的不正确的假设。 +由于 static 方法不受运行时多态性影响,因此与 static 方法一起使用的 final 关键字的唯一目的是确保该方法不会在子类中被隐藏。

+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Finalize.html b/original-plugin-raw/zh/inspectionDescriptions/Finalize.html new file mode 100644 index 000000000..b15644f8c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Finalize.html @@ -0,0 +1,18 @@ + + +报告重写 Object.finalize() 方法。 +

根据 Object.finalize() 文档:

+
+

+ 终结机制本身就有问题。 终结可能导致性能问题、死锁和挂起。 终结器中的错误可能导致资源泄漏;如果不再需要,那么无从取消终结;并且对不同对象的 finalize 方法的调用之间没有指定顺序。 此外,关于终结时机也没有任何保证。 finalize 方法只能在不确定的延迟之后才对可终结的对象调用(如果有)。 +

+
+ +

配置检查:

+
    +
  • + 使用对普通 'finalize()' 实现忽略选项可以忽略具有空方法体或仅包含具有计算结果为 false 的条件并且是编译时常量的 if 语句的方法体的 finalize() 实现。 出于性能原因,在子类中使用空实现重写非普通 finalize() 可能会有好处。 空的 final finalize() 实现也可以用来防止子类被重写。 +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FinalizeNotProtected.html b/original-plugin-raw/zh/inspectionDescriptions/FinalizeNotProtected.html new file mode 100644 index 000000000..7dac445e2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FinalizeNotProtected.html @@ -0,0 +1,28 @@ + + +报告被声明为 publicObject.finalize() 方法的任何实现。 +

+ 根据 Object.finalize() 的约定,只有垃圾回收器调用此方法。 将此方法设为 public 可能令人困惑,因为这意味着该方法可供用户使用。 +

+

+ 该快速修复会将方法设为 protected,防止它被其他类显式调用。 +

+ +

示例:

+

+  class X {
+    public void finalize() {
+      /* ... */
+    }
+  }
+
+

在应用快速修复后:

+

+  class X {
+    protected void finalize() {
+      /* ... */
+    }
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FinallyBlockCannotCompleteNormally.html b/original-plugin-raw/zh/inspectionDescriptions/FinallyBlockCannotCompleteNormally.html new file mode 100644 index 000000000..657931ed3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FinallyBlockCannotCompleteNormally.html @@ -0,0 +1,20 @@ + + +报告在 finally 块内使用的 returnthrowbreakcontinueyield 语句。 +这些会导致 finally 块无法正常完成,而是突然完成。 +从同一 try-catch 语句的 trycatch 块抛出的任何异常将被禁止。 +

示例:

+

+  void x() {
+    try {
+      throw new RuntimeException();
+    } finally {
+      // 如果 bar() 返回 true,则 RuntimeException 将被禁止
+      if (bar()) return;
+    }
+  }
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FindAndMapToGet.html b/original-plugin-raw/zh/inspectionDescriptions/FindAndMapToGet.html new file mode 100644 index 000000000..b6f58d0cb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FindAndMapToGet.html @@ -0,0 +1,15 @@ + + +

报告对 Map 上的 findmap 的调用,并建议将其替换为 get

+

+  val map = Map(1 -> 42)
+  map.find(_._1 == k).map(_._2)
+
+

在应用快速修复后:

+

+  val map = Map(1 -> 42)
+  map.get(k)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FindEmptyCheck.html b/original-plugin-raw/zh/inspectionDescriptions/FindEmptyCheck.html new file mode 100644 index 000000000..a9eb0d00e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FindEmptyCheck.html @@ -0,0 +1,20 @@ + + +

报告 find 和空性检查,并建议改用 exists

+

示例:

+

+  var x: Seq[Int]
+  x.find(p).isDefined
+  x.find(p) != None
+  x.find(p).isEmpty
+
+

在应用快速修复后:

+

+  var x: Seq[Int]
+  x.exists(p)
+  x.exists(p)
+  !x.exists(p)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlexCssStrayBraceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FlexCssStrayBraceInspection.html new file mode 100644 index 000000000..ed25630c9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlexCssStrayBraceInspection.html @@ -0,0 +1,5 @@ + + +此检查会检测 Flex CSS 上下文中的杂散大括号。 它们会导致编译错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlexUnitClassInProductSourceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitClassInProductSourceInspection.html new file mode 100644 index 000000000..b67085a9e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitClassInProductSourceInspection.html @@ -0,0 +1,6 @@ + + + +报告产品源树中的 FlexUnit 测试用例的所有实例。 这很可能表明程序员出错,并且可能导致测试代码投入生产。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlexUnitClassVisibilityInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitClassVisibilityInspection.html new file mode 100644 index 000000000..f2ea34e0e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitClassVisibilityInspection.html @@ -0,0 +1,6 @@ + + + +此检查会验证 FlexUnit 测试类是否具有 public 可见性。 非 public 类无法由 FlexUnit 运行程序运行。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlexUnitClassWithNoTestsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitClassWithNoTestsInspection.html new file mode 100644 index 000000000..f55c7df13 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitClassWithNoTestsInspection.html @@ -0,0 +1,6 @@ + + + +报告不包含任何测试方法的 FlexUnit 测试用例的所有实例。 此类测试用例通常表明开发者错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlexUnitEmptySuiteInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitEmptySuiteInspection.html new file mode 100644 index 000000000..0df416cc3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitEmptySuiteInspection.html @@ -0,0 +1,6 @@ + + + +此检查会验证 FlexUnit 测试套件是否引用了一个或多个测试类。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodHasParametersInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodHasParametersInspection.html new file mode 100644 index 000000000..48dd3581c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodHasParametersInspection.html @@ -0,0 +1,6 @@ + + + +此检查会验证 FlexUnit 测试方法是否没有必需的形参。 带形参的方法不能由 FlexUnit 运行程序运行。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodInSuiteInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodInSuiteInspection.html new file mode 100644 index 000000000..4e077ea2f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodInSuiteInspection.html @@ -0,0 +1,6 @@ + + + +此检查会验证 FlexUnit 测试方法是否不是测试套件类的一部分。 套件类不应包含测试,它应在构造函数 (FlexUnit1) 中追加测试类,或将测试类声明为 public 字段 (FlexUnit4)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodIsPropertyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodIsPropertyInspection.html new file mode 100644 index 000000000..28332a50e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodIsPropertyInspection.html @@ -0,0 +1,6 @@ + + + +此检查会验证 FlexUnit 测试方法是否非属性 getter 或 setter。 此类方法无法由 FlexUnit 运行程序运行。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodIsStaticInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodIsStaticInspection.html new file mode 100644 index 000000000..6dbadf94a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodIsStaticInspection.html @@ -0,0 +1,6 @@ + + + +此检查会验证 FlexUnit 测试方法是否为非 static。 static 方法无法由 FlexUnit 运行程序运行。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodReturnTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodReturnTypeInspection.html new file mode 100644 index 000000000..6f2ccc2c4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodReturnTypeInspection.html @@ -0,0 +1,6 @@ + + + +此检查会验证 FlexUnit4 测试方法是否返回 void。 非 void 方法无法由 FlexUnit 4 运行程序运行。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodVisibilityInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodVisibilityInspection.html new file mode 100644 index 000000000..eb1170eb4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMethodVisibilityInspection.html @@ -0,0 +1,6 @@ + + + +此检查会验证 FlexUnit 测试方法是否具有 public 可见性。 非 public 方法无法由 FlexUnit 运行程序运行。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMixedAPIInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMixedAPIInspection.html new file mode 100644 index 000000000..314f33415 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitMixedAPIInspection.html @@ -0,0 +1,6 @@ + + + +报告 FlexUnit 4 [Test] 注解方法,这些方法位于扩展抽象 FlexUnit 1 或 Flunit 类 TestCase 的类中。 像这样混合 FlexUnit API 会引起混淆,并可能导致运行测试出现问题。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlexUnitSuiteWithNoRunnerInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitSuiteWithNoRunnerInspection.html new file mode 100644 index 000000000..ffdbe18c9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlexUnitSuiteWithNoRunnerInspection.html @@ -0,0 +1,6 @@ + + + +报告 FlexUnit 4 测试套件缺少 [RunWith] 元数据或为空的情况。 此类套件无法由 FlexUnit 运行。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FloatLiteralEndingWithDecimalPoint.html b/original-plugin-raw/zh/inspectionDescriptions/FloatLiteralEndingWithDecimalPoint.html new file mode 100644 index 000000000..ccb891cca --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FloatLiteralEndingWithDecimalPoint.html @@ -0,0 +1,15 @@ + + +

报告以小数点 ('.') 结尾的浮点文字。

+

建议用户避免使用它们,以免将其误认为是方法调用语法。

+

示例:

+

+  var x = 1.
+
+

在应用快速修复后:

+

+  var x = 1.0
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FloatingPointEquality.html b/original-plugin-raw/zh/inspectionDescriptions/FloatingPointEquality.html new file mode 100644 index 000000000..d167e1bba --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FloatingPointEquality.html @@ -0,0 +1,14 @@ + + +报告使用 ==!= 运算符进行比较的浮点值。 +

浮点值本质上是不准确的,比较它们是否完全相等很少是所需的语义。

+

此检查会忽略与零和无穷大文字的比较。

+

示例: +


+  void m(double d1, double d2) {
+    if (d1 == d2) {}
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FloatingPointLiteralPrecision.html b/original-plugin-raw/zh/inspectionDescriptions/FloatingPointLiteralPrecision.html new file mode 100644 index 000000000..2a8b22800 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FloatingPointLiteralPrecision.html @@ -0,0 +1,24 @@ + + +报告无法使用 IEEE 754 以所需精度表示的浮点文字 FloatDouble 类型。 + +

+ 例如,1.9999999999999999999 的有效数字太多,因此其作为 Double 的表示将舍入为 2.0。 + 指定多余的数字可能具有误导性,因为它掩盖了改用舍入值进行计算的事实。 +

+ +

+ 该快速修复会将文字替换为与常量的实际表示相匹配的舍入值。 +

+ +

示例:

+

+  val x: Float = 3.14159265359f
+
+ +

在应用快速修复后:

+

+  val x: Float = 3.1415927f
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlowJSConfig.html b/original-plugin-raw/zh/inspectionDescriptions/FlowJSConfig.html new file mode 100644 index 000000000..14b1b9536 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlowJSConfig.html @@ -0,0 +1,5 @@ + + +报告在项目中没有关联的 .flowconfig 文件且带有 @flow 标志的 JavaScript 文件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlowJSCoverage.html b/original-plugin-raw/zh/inspectionDescriptions/FlowJSCoverage.html new file mode 100644 index 000000000..1c71b2f5a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlowJSCoverage.html @@ -0,0 +1,6 @@ + + +报告 Flow 类型检查器未覆盖的 JavaScript 代码段。 +要使用此检查,请在设置 | 语言和框架 | JavaScript 中配置 Flow 可执行文件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlowJSError.html b/original-plugin-raw/zh/inspectionDescriptions/FlowJSError.html new file mode 100644 index 000000000..7be76fc7e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlowJSError.html @@ -0,0 +1,5 @@ + + +报告 Flow 中的错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlowJSFlagCommentPlacement.html b/original-plugin-raw/zh/inspectionDescriptions/FlowJSFlagCommentPlacement.html new file mode 100644 index 000000000..3f23a89fa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlowJSFlagCommentPlacement.html @@ -0,0 +1,5 @@ + + +报告不位于文件顶部的 @flow 标志注释。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FlowRequiredBeanTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FlowRequiredBeanTypeInspection.html new file mode 100644 index 000000000..4c893f28e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FlowRequiredBeanTypeInspection.html @@ -0,0 +1,15 @@ + + +

报告 <flow> 配置中定义的引用上的不正确 Bean 类型。

+ +

示例:

+

+  <flow>
+    ...
+    <exception-handler bean="dummyBean"/> <!--Bean 必须为 'org.springframework.webflow.engine.FlowExecutionExceptionHandler' 类型 -->
+    <bean id="dummyBean" class="java.lang.String"/>
+    ...
+  </flow>
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FoldExpressionIntoStream.html b/original-plugin-raw/zh/inspectionDescriptions/FoldExpressionIntoStream.html new file mode 100644 index 000000000..aac3291c4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FoldExpressionIntoStream.html @@ -0,0 +1,32 @@ + + +报告所具有的重复模式可以替换为 Stream APIString.join() 的表达式。 +

示例:

+

+  boolean allStartWith(String a, String b, String c, String d, String prefix) {
+    return a.startsWith(prefix) && b.startsWith(prefix) && c.startsWith(prefix) && d.startsWith(prefix);
+  }
+
+

在应用快速修复后:

+

+  boolean foo(String a, String b, String c, String d, String prefix) {
+    return Stream.of(a, b, c, d).allMatch(s -> s.startsWith(prefix));
+  }
+
+

示例:

+

+  String joinAll(String a, String b, String c, String d) {
+    return a + "," + b + "," + c + "," + d;
+  }
+
+

在应用快速修复后:

+

+  String joinAll(String a, String b, String c, String d) {
+    return String.join(",", a, b, c, d);
+  }
+
+ +

仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。

+

2018.2 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FoldInitializerAndIfToElvis.html b/original-plugin-raw/zh/inspectionDescriptions/FoldInitializerAndIfToElvis.html new file mode 100644 index 000000000..896de5138 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FoldInitializerAndIfToElvis.html @@ -0,0 +1,22 @@ + + +报告在初始化后立即检查变量是否为 null 的 if 表达式,该表达式可以在初始值设定项中转换为 elvis 运算符。 +

示例:

+

+  fun test(foo: Int?, bar: Int): Int {
+      var i = foo
+      if (i == null) {
+          return bar
+      }
+      return i
+  }
+
+

该快速修复会将带有初始值设定项的 if 表达式转换为 elvis 表达式:

+

+  fun test(foo: Int?, bar: Int): Int {
+      var i = foo ?: return bar
+      return i
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/FoldTrueAnd.html b/original-plugin-raw/zh/inspectionDescriptions/FoldTrueAnd.html new file mode 100644 index 000000000..8657384b2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FoldTrueAnd.html @@ -0,0 +1,19 @@ + + +

报告检查所有元素的条件的 fold 的用法。

+ +

该快速修复会将 fold 替换为等效的 forall

+ +

示例:

+

+  var x: Seq[Int]
+  x.foldLeft(true)((x,y) => x && p(y))
+
+

在应用快速修复后:

+

+  var x: Seq[Int]
+  x.forall(y => p(y))
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/FoodcriticInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FoodcriticInspection.html new file mode 100644 index 000000000..d2d07d8bc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FoodcriticInspection.html @@ -0,0 +1,6 @@ + + +根据 Foodcritic 报告包含问题的 Chef cookbooks。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ForCanBeForeach.html b/original-plugin-raw/zh/inspectionDescriptions/ForCanBeForeach.html new file mode 100644 index 000000000..eef171b36 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ForCanBeForeach.html @@ -0,0 +1,29 @@ + + +报告迭代集合或数组并且可以自动替换为增强型 for 循环(foreach 迭代语法)的 for 循环。 + +

示例:

+

+  for (Iterator<String> iterator = list.iterator(); iterator.hasNext(); ) {
+    String item = iterator.next();
+    System.out.println(item);
+  }
+
+

在应用快速修复后:

+

+  for (String item : list) {
+    System.out.println(item);
+  }
+
+ +

+ 使用报告索引的 'java.util.List' 循环选项可查找涉及 list.get(index) 调用的循环。 + 这些循环通常可以替换为增强型 for 循环,除非它们修改了进程中的基础列表,例如通过调用 list.remove(index) 进行修改。 + 如果是后面这种情况,增强型 for 循环可能抛出 ConcurrentModificationException。 + 在某些情况下,list.get(index) 循环的操作速度也可能更快一些。

+

+ 使用不报告无类型集合上的迭代选项可忽略没有类型形参的集合。 + 这将防止创建 java.lang.Object 类型的增强型 for 循环变量以及在使用循环变量的位置插入转换。

+

仅当项目或模块的语言级别为 5 或更高时,此检查才会报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ForEachParameterNotUsed.html b/original-plugin-raw/zh/inspectionDescriptions/ForEachParameterNotUsed.html new file mode 100644 index 000000000..ebaad424e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ForEachParameterNotUsed.html @@ -0,0 +1,13 @@ + + +报告不使用可迭代值的 forEach 循环。 +

示例:

+

+  listOf(1, 2, 3).forEach { }
+
+

该快速修复会在 forEach 部分引入匿名形参:

+

+  listOf(1, 2, 3).forEach { _ -> }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ForLoopReplaceableByWhile.html b/original-plugin-raw/zh/inspectionDescriptions/ForLoopReplaceableByWhile.html new file mode 100644 index 000000000..0797890a0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ForLoopReplaceableByWhile.html @@ -0,0 +1,21 @@ + + +报告不包含初始化和更新组件的 for 循环,并建议将它们转换为 while 循环。 这使代码更易于阅读。 +

示例:

+

+  for(; exitCondition(); ) {
+    process();
+  }
+
+

在应用快速修复后:

+

+  while(exitCondition()) {
+    process();
+  }
+
+

快速修复也可用于其他 for 循环,因此您可以用 while 循环替换任何 for 循环。

+ +

如果您想忽略具有不重要或不存在条件的 for 循环,使用 忽略无条件的 'infinite' for 循环 选项。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ForLoopReplaceableByWhileJS.html b/original-plugin-raw/zh/inspectionDescriptions/ForLoopReplaceableByWhileJS.html new file mode 100644 index 000000000..53ef8ddcb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ForLoopReplaceableByWhileJS.html @@ -0,0 +1,20 @@ + + +报告既不包含初始化也不包含更新组件的 +for 循环。 建议将该循环替换为更简单的 while 语句。 +

示例:

+

+  for(; exitCondition(); ) {
+    process();
+  }
+
+

应用快速修复后,结果如下所示:

+

+  while(exitCondition()) {
+    process();
+  }
+
+ +

如果希望此检查忽略包含普通条件或不存在条件的 for 循环,请使用下面的复选框。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ForLoopThatDoesntUseLoopVariableJS.html b/original-plugin-raw/zh/inspectionDescriptions/ForLoopThatDoesntUseLoopVariableJS.html new file mode 100644 index 000000000..037fdbfac --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ForLoopThatDoesntUseLoopVariableJS.html @@ -0,0 +1,5 @@ + + +报告其中的条件或更新不使用 for 循环变量的 for 循环。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ForLoopWithMissingComponent.html b/original-plugin-raw/zh/inspectionDescriptions/ForLoopWithMissingComponent.html new file mode 100644 index 000000000..41c7aaafe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ForLoopWithMissingComponent.html @@ -0,0 +1,17 @@ + + +报告缺少初始化、条件或 update 子句的 for 循环。 某些编码样式禁止此类循环。 +

示例:

+

+  for (int i = 0;;i++) {
+    //主体
+  }
+
+ +

+使用忽略集合迭代选项可以忽略使用迭代器的循环。 +这是在 for 循环没有 update 子句的集合中迭代的标准方式。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ForeachStatement.html b/original-plugin-raw/zh/inspectionDescriptions/ForeachStatement.html new file mode 100644 index 000000000..a1b6440a3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ForeachStatement.html @@ -0,0 +1,22 @@ + + +报告增强型 for 语句。 +1.4 及更早版本的 Java 不支持此类 for 语句。 +

示例:

+

+  for (int x: Arrays.asList(1, 2, 3)) {
+    System.out.println(x);
+  }
+
+

在应用快速修复后:

+

+  for (Iterator<Integer> iterator = Arrays.asList(1, 2, 3).iterator(); iterator.hasNext(); ) {
+    final int x = iterator.next();
+    System.out.println(x);
+  }
+
+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FormSpellChecking.html b/original-plugin-raw/zh/inspectionDescriptions/FormSpellChecking.html new file mode 100644 index 000000000..93c607e9c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FormSpellChecking.html @@ -0,0 +1,6 @@ + + +

报告 UI 表单中的拼写错误(例如,JLabel 文本或 JPanel 标题)并一键修正。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FormatSpecifiers.html b/original-plugin-raw/zh/inspectionDescriptions/FormatSpecifiers.html new file mode 100644 index 000000000..7d7a6231c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FormatSpecifiers.html @@ -0,0 +1,5 @@ + + +报告对格式说明符或实参类型/计数不一致的字符串格式函数(例如,NSLogprintf 等)的调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ForwardCompatibility.html b/original-plugin-raw/zh/inspectionDescriptions/ForwardCompatibility.html new file mode 100644 index 000000000..4cbd86260 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ForwardCompatibility.html @@ -0,0 +1,19 @@ + + +报告未来 Java 版本中可能无法编译的 Java 代码结构。 +

报告的问题如下:

+
    +
  • 使用 assert>、enum_ 作为标识符
  • +
  • 使用 varyieldrecord 受限标识符作为类型名称
  • +
  • yield 方法的非限定调用
  • +
  • module-info.java 内部的 requires java.base 语句的修饰符
  • +
+

示例:

+

+  // 从 Java 14 起,由于 'yield' 成为受限标识符,此类将停止编译。
+  public class yield {} 
+
+

及时解决这些问题,可以简化向未来 Java 版本的迁移。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ForwardReference.html b/original-plugin-raw/zh/inspectionDescriptions/ForwardReference.html new file mode 100644 index 000000000..b52952ad7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ForwardReference.html @@ -0,0 +1,14 @@ + + +

报告类级别上前向引用的用法,这可能会导致类初始化期间出现意外行为。

+

示例:

+

+  class Test {
+    val first: Int  = second + 5 // 此处 second 为  0
+    val second: Int = 5
+    // first 是 5 而不是 10
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FrequentlyUsedInheritorInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FrequentlyUsedInheritorInspection.html new file mode 100644 index 000000000..febe06edf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FrequentlyUsedInheritorInspection.html @@ -0,0 +1,23 @@ + + +报告可以替换为更具体的常用类或接口的实现或扩展的类或接口。 +

为进行此检查,超类需位于项目源文件中,并且项目需要使用 IntelliJ IDEA 构建系统。

+

示例:

+

+  class MyInheritor implements A {} // B 针对 A 引用提供建议
+
+  interface A {}
+
+  abstract class B implements A {}
+
+  abstract class C1 extends B {}
+  abstract class C2 extends B {}
+  abstract class C3 extends B {}
+  abstract class C4 extends B {}
+  abstract class C5 extends B {}
+
+ +

默认情况下,此检查不会在编辑器中高亮显示问题,而是只提供快速修复。

+

2017.2 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FromClosedRangeMigration.html b/original-plugin-raw/zh/inspectionDescriptions/FromClosedRangeMigration.html new file mode 100644 index 000000000..c604f6f37 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FromClosedRangeMigration.html @@ -0,0 +1,13 @@ + + +报告带 MIN_VALUE 步骤的 IntProgression.fromClosedRange()LongProgression.fromClosedRange()。 +

+禁止调用带有 MIN_VALUE 步骤的 IntProgression.fromClosedRange()LongProgression.fromClosedRange()。 在迁移到 Kotlin 1.3+ 期间,应检查所有此类调用。 +

+

示例:

+

+  IntProgression.fromClosedRange(12, 143, Int.MIN_VALUE)
+
+

要修正此问题,请更改进程的步骤。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/FtlCallsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FtlCallsInspection.html new file mode 100644 index 000000000..966baa904 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FtlCallsInspection.html @@ -0,0 +1,5 @@ + + +

报告与宏声明不匹配的 FreeMarker 调用(例如,缺少形参、错误类型等)。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FtlDeprecatedBuiltInsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FtlDeprecatedBuiltInsInspection.html new file mode 100644 index 000000000..45b864380 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FtlDeprecatedBuiltInsInspection.html @@ -0,0 +1,5 @@ + + +

报告已弃用的内置对象(例如,defaultexistsif_existsweb_safe)。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FtlFileReferencesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FtlFileReferencesInspection.html new file mode 100644 index 000000000..8957921ea --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FtlFileReferencesInspection.html @@ -0,0 +1,5 @@ + + +

报告 #include#import 指令中的未解析 FreeMarker 文件引用。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FtlImportCallInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FtlImportCallInspection.html new file mode 100644 index 000000000..bff50a7e8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FtlImportCallInspection.html @@ -0,0 +1,6 @@ + + +

报告位于其他文件中的未解析 #macro#function 指令。

+

该快速修复会建议对所需文件使用 #import#include

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FtlReferencesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FtlReferencesInspection.html new file mode 100644 index 000000000..b2117a649 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FtlReferencesInspection.html @@ -0,0 +1,5 @@ + + +

报告未解析的 FreeMarker 引用。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FtlTypesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FtlTypesInspection.html new file mode 100644 index 000000000..ae6824f68 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FtlTypesInspection.html @@ -0,0 +1,5 @@ + + +

报告不正确的 FreeMarker 表达式类型。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FtlWellformednessInspection.html b/original-plugin-raw/zh/inspectionDescriptions/FtlWellformednessInspection.html new file mode 100644 index 000000000..dfb98fe8b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FtlWellformednessInspection.html @@ -0,0 +1,5 @@ + + +

报告格式错误的 FreeMarker 指令(例如,错误的嵌套、缺少结束标记等)。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FunctionImplicitDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/FunctionImplicitDeclaration.html new file mode 100644 index 000000000..99cbf597c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FunctionImplicitDeclaration.html @@ -0,0 +1,5 @@ + + +报告在声明之前使用的函数。 目的是确保与要求函数先声明再使用的编译器兼容。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FunctionName.html b/original-plugin-raw/zh/inspectionDescriptions/FunctionName.html new file mode 100644 index 000000000..d52ef77a0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FunctionName.html @@ -0,0 +1,10 @@ + + +报告不遵循推荐命名惯例的函数名称。 +

示例:

+

+  fun Foo() {}
+
+

要修正此问题,请更改函数名称以匹配推荐的命名惯例。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FunctionNamingConventionJS.html b/original-plugin-raw/zh/inspectionDescriptions/FunctionNamingConventionJS.html new file mode 100644 index 000000000..f1a0e1c9a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FunctionNamingConventionJS.html @@ -0,0 +1,10 @@ + + +报告名称太短、太长或不符合 +指定正则表达式模式的函数。 + +

+ 使用下面提供的字段来指定函数名称的最小长度、 +最大长度以及正则表达式。 对正则表达式使用标准的 java.util.regex 格式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FunctionParameterCountMismatch.html b/original-plugin-raw/zh/inspectionDescriptions/FunctionParameterCountMismatch.html new file mode 100644 index 000000000..4e811a927 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FunctionParameterCountMismatch.html @@ -0,0 +1,5 @@ + + +报告对实参数量错误的函数和宏的调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FunctionTupleSyntacticSugar.html b/original-plugin-raw/zh/inspectionDescriptions/FunctionTupleSyntacticSugar.html new file mode 100644 index 000000000..f236f0842 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FunctionTupleSyntacticSugar.html @@ -0,0 +1,15 @@ + +

报告对可以替换为语法糖的 FunctionN 和 TupleN 的显式引用。

+

示例:

+

+  val func: Function1[Int, Int] =
+    a => a + 4
+
+

在应用快速修复后:

+

+  val func: (Int) => Int =
+    a => a + 4
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FunctionWithInconsistentReturnsJS.html b/original-plugin-raw/zh/inspectionDescriptions/FunctionWithInconsistentReturnsJS.html new file mode 100644 index 000000000..a6dbec223 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FunctionWithInconsistentReturnsJS.html @@ -0,0 +1,14 @@ + + +报告在某些情况下返回值但在其他情况下不返回值的函数。 这通常表明有错误。 +

示例:

+

+function foo() {
+  if (true)
+    return 3;
+  return;
+}
+
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FunctionWithLambdaExpressionBody.html b/original-plugin-raw/zh/inspectionDescriptions/FunctionWithLambdaExpressionBody.html new file mode 100644 index 000000000..0e588fd4a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FunctionWithLambdaExpressionBody.html @@ -0,0 +1,13 @@ + + +报告具有 = { ... } 和推断返回类型的函数。 +

示例:

+

+  fun sum(a: Int, b: Int) = { a + b } // 此函数的返回类型为 '() -> Int'。
+
+

该快速修复会移除大括号:

+

+  fun sum(a: Int, b: Int) = a + b
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FunctionWithMultipleLoopsJS.html b/original-plugin-raw/zh/inspectionDescriptions/FunctionWithMultipleLoopsJS.html new file mode 100644 index 000000000..803d3819f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FunctionWithMultipleLoopsJS.html @@ -0,0 +1,5 @@ + + +报告具有多个循环语句的函数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FunctionWithMultipleReturnPointsJS.html b/original-plugin-raw/zh/inspectionDescriptions/FunctionWithMultipleReturnPointsJS.html new file mode 100644 index 000000000..cce3677df --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FunctionWithMultipleReturnPointsJS.html @@ -0,0 +1,6 @@ + + +报告具有多个返回点的函数。 +此类函数难以理解和维护。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FunctionalExpressionCanBeFolded.html b/original-plugin-raw/zh/inspectionDescriptions/FunctionalExpressionCanBeFolded.html new file mode 100644 index 000000000..1a15a9a28 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FunctionalExpressionCanBeFolded.html @@ -0,0 +1,18 @@ + + +报告指向具有自己的函数接口类型的方法的方法引用或 lambda 表达式,因此您可以通过替换为它们的限定符来移除不必要的对象分配。 + +

示例:

+

+  SwingUtilities.invokeLater(r::run);
+  SwingUtilities.invokeAndWait(() -> r.run());
+
+

在应用快速修复后:

+

+  SwingUtilities.invokeLater(r);
+  SwingUtilities.invokeAndWait(r);
+
+ +

仅当项目或模块的语言级别为 8 或更高时才报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/FuseStreamOperations.html b/original-plugin-raw/zh/inspectionDescriptions/FuseStreamOperations.html new file mode 100644 index 000000000..4381c3387 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/FuseStreamOperations.html @@ -0,0 +1,22 @@ + + +检测 Stream API 链之外的可以合并到其中的转换。 +

示例:

+

+  List<String> list = stream.collect(Collectors.toList());
+  list.sort(null);
+  return list.toArray(new String[list.size()]);
+
+

转换后:

+

+  return stream.sorted().toArray(String[]::new);
+
+

+ 请注意,有时转换后的 Stream 链可能会将显式 ArrayList 替换为 Collectors.toList() 或将显式 HashSet 替换为 Collectors.toSet()。 当前库实现会在内部使用这些集合。 但是,这种方法不是很可靠,将来可能会更改代码的语义。

+ + +

如果您对此感到担心,请使用不建议使用 'toList()' 或 'toSet()' 收集器选项来建议使用 Collectors.toCollection() 而不是 toListtoSet 收集器。 +

仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GWTRemoteServiceAsyncCheck.html b/original-plugin-raw/zh/inspectionDescriptions/GWTRemoteServiceAsyncCheck.html new file mode 100644 index 000000000..3d87027fa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GWTRemoteServiceAsyncCheck.html @@ -0,0 +1,8 @@ + + +报告远程服务的同步和异步接口方法之间的不一致。 +

远程服务的同步接口中的所有方法都必须在相应的异步接口中具有对应项,并且它们的签名必须匹配。

+

快速修复在异步接口中为同步接口中存在的方法创建缺失的对应项,反之亦然,并修复了它们签名中的不一致。

+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GWTStyleCheck.html b/original-plugin-raw/zh/inspectionDescriptions/GWTStyleCheck.html new file mode 100644 index 000000000..34bd51cde --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GWTStyleCheck.html @@ -0,0 +1,7 @@ + + +报告不引用 CSS 类的 UIObject.setStyleName() 的方法的实参和 ui.xml 文件中类似 styleName 的特性。 +

快速修复为此类引用创建了一个缺失的 CSS 类。

+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GemInspection.html b/original-plugin-raw/zh/inspectionDescriptions/GemInspection.html new file mode 100644 index 000000000..3e3743267 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GemInspection.html @@ -0,0 +1,7 @@ + + +报告当前 SDK 中缺少的 gem。 可以通过快速修复来安装缺失的 gem。 +

缺失的 gem 可能导致应用程序无法正确运行,以及 IDE 无法执行准确的代码补全、 +导航和分析。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GetGetOrElse.html b/original-plugin-raw/zh/inspectionDescriptions/GetGetOrElse.html new file mode 100644 index 000000000..4fa2c230a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GetGetOrElse.html @@ -0,0 +1,19 @@ + + +

报告 map 上的 get(key).getOrElse(value)

+ +

该快速修复改用 getOrElse(key, value)

+ +

示例:

+

+  val map = Map(1 -> 42)
+  map.get(key).getOrElse(defValue)
+
+

在应用快速修复后: +


+  al map = Map(1 -> 42)
+  ap.getOrElse(key, defValue)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GetOrElseNull.html b/original-plugin-raw/zh/inspectionDescriptions/GetOrElseNull.html new file mode 100644 index 000000000..3ab6e5bc6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GetOrElseNull.html @@ -0,0 +1,14 @@ + + +

报告 getOrElse(null) 并建议将其替换为 orNull

+

示例:

+

+  option getOrElse null
+
+

在应用快速修复后:

+

+  option.orNull
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GherkinBrokenTableInspection.html b/original-plugin-raw/zh/inspectionDescriptions/GherkinBrokenTableInspection.html new file mode 100644 index 000000000..69555ae4f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GherkinBrokenTableInspection.html @@ -0,0 +1,5 @@ + + +如果至少有一行的单元格数与表格标题中的单元格数不同,则报告表格。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GherkinMisplacedBackground.html b/original-plugin-raw/zh/inspectionDescriptions/GherkinMisplacedBackground.html new file mode 100644 index 000000000..45594a25c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GherkinMisplacedBackground.html @@ -0,0 +1,5 @@ + + +报告位置不正确的 Background 部分。 Background 部分必须位于 Scenario 部分之前。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GherkinScenarioToScenarioOutline.html b/original-plugin-raw/zh/inspectionDescriptions/GherkinScenarioToScenarioOutline.html new file mode 100644 index 000000000..27a7d068d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GherkinScenarioToScenarioOutline.html @@ -0,0 +1,6 @@ + + +报告包含 Examples 部分的 Gherkin 方案。 +

使用快速修复可以将 Scenario 转换为 Scenario Outline

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Glassfish.html b/original-plugin-raw/zh/inspectionDescriptions/Glassfish.html new file mode 100644 index 000000000..c576d1edf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Glassfish.html @@ -0,0 +1,22 @@ + + + +

报告不正确的 GlassFish 特定的 XML 部署描述符。

+ + + +

一些报告的问题:

+ +
    +
  • 对不可实例化类的引用
  • +
  • 对不扩展所需类的类的引用
  • +
  • 空标记和特性值
  • +
  • 不包含必需子标记或特性的标记
  • +
  • 定义具有重复名称的对象的标记
  • +
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoAssignmentToReceiver.html b/original-plugin-raw/zh/inspectionDescriptions/GoAssignmentToReceiver.html new file mode 100644 index 000000000..ec07fc1f7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoAssignmentToReceiver.html @@ -0,0 +1,62 @@ + + + + +报告给方法接收器的赋值。 +

当您将值赋给方法接收器时,该值将不会反映在方法本身之外。 + 值将反映在来自同一方法的后续调用中。

+

示例:

+
package main
+
+import "fmt"
+
+type demo struct {
+ Val int
+}
+
+func (d *demo) change() {
+ d = nil // 对方法接收器的分配仅传播给被调用者,而不传播给调用者
+ d.myVal()
+}
+
+func (d *demo) myVal() {
+ fmt.Printf("my val: %#v\n", d)
+}
+
+func (d demo) change2() {
+ d = demo{} // 对方法接收器的分配不会传播到其他调用
+ d.myVal()
+}
+
+func (d *demo) change3() {
+ d.Val = 3
+ d.myVal()
+}
+
+func main() {
+ d := &demo{}
+ d.myVal()
+ d.change()
+ d.myVal()
+ d.Val = 2
+ d.change2()
+ d.myVal()
+ d.change3()
+ d.myVal()
+}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoBoolExpressions.html b/original-plugin-raw/zh/inspectionDescriptions/GoBoolExpressions.html new file mode 100644 index 000000000..8cfb329a6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoBoolExpressions.html @@ -0,0 +1,30 @@ + + + + +报告布尔表达式中始终为 true、始终为 false 或冗余的部分。 + 此类布尔表达式可以被简化,从而使您的代码更易于阅读。 在某些情况下,这还表明存在其他问题。 + +

示例:

+
func isNonZero(x, y int) bool {
+  // 第二个比较要么始终为 true,
+  // 要么根本不执行
+  return x > 0 && x > 0
+}
+

您可以对 x > 0 && x > 0 部分应用 简化表达式 快速修复。 应用快速修复后,表达式如下所示:x > 0

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoBuildTag.html b/original-plugin-raw/zh/inspectionDescriptions/GoBuildTag.html new file mode 100644 index 000000000..8a4b8c8d1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoBuildTag.html @@ -0,0 +1,18 @@ + + +报告构建标记的格式错误和放置在错误位置的构建标记。 go 工具要求将构建标记放置在特定位置并以特殊语法编写。 如果不满足这些要求,则可能会忽略构建标记或可能会意外地从构建中删除文件。 +

请参阅 golang.org 上的 Build Constraints 页面。

+

示例:

+
package main
+
+// +build ignore
+
+func main() {}
+

// +build ignore 部分应该在软件包声明之前。 要解决此问题,您可以应用在软件包前面放置构建标签快速修复。 在应用快速修复后:

+
// +build ignore
+
+package main
+
+import "fmt"
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoCommentLeadingSpace.html b/original-plugin-raw/zh/inspectionDescriptions/GoCommentLeadingSpace.html new file mode 100644 index 000000000..d7f766ef5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoCommentLeadingSpace.html @@ -0,0 +1,12 @@ + + +报告不带前导空格的注释。 +

请注意,只有当您在 编辑器 | 代码样式 | Go其他选项卡上选择 向注释添加前导空格 时,检查才有效。

+

带有前导空格的注释更易于阅读,因为第一个单词与注释之间用空格隔开。

+

示例:

+
//打印从 createJSON 函数接收的 JSON
+func printJSON(output []byte) {
+	fmt.Println(string(output))
+}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoCommentStart.html b/original-plugin-raw/zh/inspectionDescriptions/GoCommentStart.html new file mode 100644 index 000000000..558b2e4f1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoCommentStart.html @@ -0,0 +1,31 @@ + + + + +报告不以导出元素名称开头的注释。 +

根据 golang.org 上的 Comment Sentences 页面,将导出元素的名称放在评论的开头是一个惯例。

+

示例:

+
// 表示运行命令的请求。
+type Request struct {}
+ +

注释以结构描述开头,而不是结构名称。 为了遵守惯例规则,您可以应用 向注释中添加前缀 快速修复。 应用快速修复后,注释如下所示:

+
+// Request 表示运行命令的请求。
+type Request struct {} // 更好
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoContextTodo.html b/original-plugin-raw/zh/inspectionDescriptions/GoContextTodo.html new file mode 100644 index 000000000..a0fe32126 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoContextTodo.html @@ -0,0 +1,10 @@ + + +报告 context.TODO() 的用法。 +

根据 pkg.go.dev 上的文档, +当不清楚使用什么 Context 时,或者 Context 尚不可用时, +需要使用 context.TODO。 +Context 可能会因为周围函数尚未扩展为接受 Context 参数而不可用。

+

请注意,它是一个临时占位符,您将来必须将其更改为更有意义的上下文(例如,context.Background())。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoDeferGo.html b/original-plugin-raw/zh/inspectionDescriptions/GoDeferGo.html new file mode 100644 index 000000000..0b5d65960 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoDeferGo.html @@ -0,0 +1,38 @@ + + + + +报告直接调用 panic()recover()defergo 语句。 +

此类语句很少有用,可能意味着误用了 panic()recover() 机制。 + 应特别注意以下事项:

+
    +
  • go panic():一个新启动的 goroutine 会立即 panic。
  • +
  • defer panic():带有这个语句的函数在退出时总是会 panic。
  • +
  • go recovery():没有效果,因为新启动的 goroutine 不能 panic。
  • +
  • defer recovery():带有这个语句的函数将默默地停止 panic。 这种用法可能有效,但一种惯用的方法是检查 recover() 返回的值: +
    defer func() {
    +  if r := recover(); r != nil {
    +    fmt.Println("Recovered from: ", r)
    +  }
    +}()
    +
  • +
+

有关 go 语句和 panic 处理的更多信息,请参阅 Go 语言规范中的 Handling + panics 和 + Go statements 页面。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoDeferInLoop.html b/original-plugin-raw/zh/inspectionDescriptions/GoDeferInLoop.html new file mode 100644 index 000000000..ed33b16f0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoDeferInLoop.html @@ -0,0 +1,35 @@ + + + + +报告循环内的 defer 语句。 +

在循环中使用 defer 会导致资源泄漏或语句的执行顺序不可预测。

+

示例:

+
func main() {
+ for {
+  field, err := db.Query("SELECT 1")
+  if err != nil {
+   // ...
+  }
+  defer field.Close()
+  // ...
+ }
+}
+

defer row.Close() 在循环内的调用在函数完成执行之前不会执行。 + 而不是在 for 循环的每一步结束时。 这种实现可能会导致函数堆栈溢出和其他问题。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoDeprecation.html b/original-plugin-raw/zh/inspectionDescriptions/GoDeprecation.html new file mode 100644 index 000000000..a26e20371 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoDeprecation.html @@ -0,0 +1,29 @@ + + + + +报告已弃用的元素的用法。 +

示例:

+
// 已弃用:使用 io.SeekStart、io.SeekCurrent 和 io.SeekEnd。
+const (
+ SEEK_SET int = 0 // 相对于文件的原点寻找
+ SEEK_CUR int = 1 // 相对于当前的偏移量寻找
+ SEEK_END int = 2 // 相对于终点寻找
+)
+

根据 golang.org 上的 Constants 页面,SEEK_SETSEEK_CURSEEK_END 已被弃用。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoDisabledGopathIndexing.html b/original-plugin-raw/zh/inspectionDescriptions/GoDisabledGopathIndexing.html new file mode 100644 index 000000000..4617e1343 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoDisabledGopathIndexing.html @@ -0,0 +1,6 @@ + + +报告禁用的 GOPATH 索引,可能会阻止参考正确解决代码引用。 +

GOPATH 存储了您的代码库和所有开发所需的文件。 此外,它还包括您下载和安装的软件包。 如果禁用 GOPATH 索引,将仅对项目和 vendor 软件包编制索引。 这样可以提升整体性能,但无法使用 GOPATH 中的软件包。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoDivisionByZero.html b/original-plugin-raw/zh/inspectionDescriptions/GoDivisionByZero.html new file mode 100644 index 000000000..ec03b5e56 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoDivisionByZero.html @@ -0,0 +1,8 @@ + + +报告除以 0。 +

除以零将导致运行时出现 panic。

+

示例:

+
s := 3 / 0
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoEmptyDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/GoEmptyDeclaration.html new file mode 100644 index 000000000..d90227c44 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoEmptyDeclaration.html @@ -0,0 +1,27 @@ + + + + +报告空声明。 +

空声明无效。 移除它们可能会提高代码的可读性。

+

示例:

+
func main() {
+ const () // 空声明
+}
+

您可以应用 删除空声明 快速修复来删除此声明。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoErrorStringFormat.html b/original-plugin-raw/zh/inspectionDescriptions/GoErrorStringFormat.html new file mode 100644 index 000000000..79c18134e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoErrorStringFormat.html @@ -0,0 +1,13 @@ + + +报告错误字符串的格式问题。 +

示例:

+
err := fmt.Errorf("Cannot read the file!")
+log.Printf("Reading %s: %v", file, err)
+

根据 golang.org 上的 Error Strings 页面,错误字符串不应大写或以标点符号结尾,因为它们可能会出现在其他上下文中。 +

+

要修复格式,可以应用修复错误字符串格式快速修复。 应用快速修复后,错误字符串将如下所示:

+
err := fmt.Errorf("cannot read the file")
+log.Printf("Reading %s: %v", file, err)
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoErrorsAs.html b/original-plugin-raw/zh/inspectionDescriptions/GoErrorsAs.html new file mode 100644 index 000000000..02dc4f06c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoErrorsAs.html @@ -0,0 +1,19 @@ + + +当第二个实参不是一个指向接口或实现错误的类型的指针时,报告对 errors.As 函数的调用。 +

此类调用在运行时会出现 panic。

+

有关 As 函数的更多信息,请参见 golang.org 上的 func As 页面。

+

示例:

+
_, err := os.Open("non-existing")
+var pathError *fs.PathError
+if errors.As(err, pathError) { // 需要一个指向 *fs.PathError 的指针
+}
+

在应用在前面追加 '&'快速修复后:

+
_, err := os.Open("non-existing")
+var pathError *fs.PathError
+if errors.As(err, &pathError) {
+}
+ +

仅当语言版本为 1.13 或更高时,此检查才会报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoExportedElementShouldHaveComment.html b/original-plugin-raw/zh/inspectionDescriptions/GoExportedElementShouldHaveComment.html new file mode 100644 index 000000000..d668d1798 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoExportedElementShouldHaveComment.html @@ -0,0 +1,8 @@ + + +报告没有文档注释的导出声明。 根据 golang.org 上的 Doc Comments 页面,所有顶级导出名称都应具有文档注释。 +

另外,有关注释句子的更多信息,请参见 golang.org 上的 Comment + Sentences 页面。 +

要添加注释,可以应用添加注释快速修复。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoExportedFuncWithUnexportedType.html b/original-plugin-raw/zh/inspectionDescriptions/GoExportedFuncWithUnexportedType.html new file mode 100644 index 000000000..16f1d30f2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoExportedFuncWithUnexportedType.html @@ -0,0 +1,18 @@ + + +报告具有未导出的返回类型的导出函数。 +

go doc 下查看文档时,未导出的类型可能难以使用。

+

示例:

+
type hidden struct{}
+
+func Exported() hidden { // 具有 `hidden` 未导出返回类型的导出函数
+ return hidden{}
+}
+

您可以应用导出快速修复来导出类型。 应用快速修复后,类型名称将会大写:

+
type Hidden struct{}
+
+func Exported() Hidden { // 已修正
+ return Hidden{}
+}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoExportedOwnDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/GoExportedOwnDeclaration.html new file mode 100644 index 000000000..ad332cf0e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoExportedOwnDeclaration.html @@ -0,0 +1,33 @@ + + + + +报告在声明的逗号分隔列表中导出的变量或常量。 +

示例:

+
const C1, C3, C2, C44, C9, C11, C6 = 1, 2, 3, 1, 3, 2, 1
+

以这种方式声明使得很难知道每个常量的值。 为了使此声明更易于阅读,您可以应用 提取到自己的声明 快速修复。 当快速修复应用于每个常量时,声明如下所示:

+
const (
+ C3  = 2
+ C2  = 3
+ C44 = 1
+ C9  = 3
+ C11 = 2
+ C6  = 1
+ C1  = 1
+)
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoImportUsedAsName.html b/original-plugin-raw/zh/inspectionDescriptions/GoImportUsedAsName.html new file mode 100644 index 000000000..7757eccbc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoImportUsedAsName.html @@ -0,0 +1,46 @@ + + + + +报告与使用的导入重叠的变量、实参或函数的声明。 +

此类声明虽然本身合法,但可能会使软件包的导出标识符不可用或在读取代码时造成混乱。

+

示例:

+
import "fmt"
+import _ "fmt"
+import iio "io"
+
+func _() {
+ fmt.Println("demo")
+ demo := true
+ _, _ = iio.EOF, demo
+}
+
+func demo() (int, int) {
+ return 1, 2
+}
+
+func _() {
+ _, _ = iio.EOF, demo
+ fmt := "demo"
+ iio := 1
+ _, _ = iio, fmt
+ a, _ := demo()
+ _ = a
+}
+

变量名 fmtiio 与导入软件包的名称冲突。 为了之后不在代码中混淆他们,最好重命名这些变量。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoInfiniteFor.html b/original-plugin-raw/zh/inspectionDescriptions/GoInfiniteFor.html new file mode 100644 index 000000000..d9de3ff47 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoInfiniteFor.html @@ -0,0 +1,27 @@ + + + + +报告空的 for 循环。 +

运行此代码会使 CPU 保持最大运行状态,从而会使计算机几乎无法使用。

+

示例:

+
func main() {
+ for {
+ }
+}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoLoopClosure.html b/original-plugin-raw/zh/inspectionDescriptions/GoLoopClosure.html new file mode 100644 index 000000000..c4579c0be --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoLoopClosure.html @@ -0,0 +1,25 @@ + + +报告在 defergo 语句中的 func 文字内对循环变量的引用。 + 此类变量可能具有意外值,因为它们没有被复制到 func 文字中,并且 defergo 中的 func 文字不会立即执行。 + +

有关闭包和 goroutine 的更多信息,请参见 golang.org 上的 What happens + with closures running as goroutines? 页面。

+

示例:

+
for _, v := range []string{"a", "b", "c"} {
+  go func() {
+    fmt.Println(v) // 输出可能会是 `c c c`,而不是 `a b c`。
+  }()
+}
+

在应用快速修复后:

+
for _, v := range []string{"a", "b", "c"} {
+  v := v // `v` 现已被复制
+  go func() {
+    fmt.Println(v)
+  }()
+}
+ +

请注意,仅当 defergo 语句是循环主体中的最后一个语句时,分析器才会检查它们。 + 否则,分析可能会产生错误的检测结果。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoMissingTrailingComma.html b/original-plugin-raw/zh/inspectionDescriptions/GoMissingTrailingComma.html new file mode 100644 index 000000000..790be367b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoMissingTrailingComma.html @@ -0,0 +1,29 @@ + + + + +报告在复合文字、函数调用实参和函数形参列表中缺少换行前的尾随逗号。 +

示例:

+
func f(f int) (
+ int,
+ bool   // 缺少尾随逗号
+){
+ println(1, 2  // 缺少尾随逗号
+ )
+}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoNameStartsWithPackageName.html b/original-plugin-raw/zh/inspectionDescriptions/GoNameStartsWithPackageName.html new file mode 100644 index 000000000..7298624f9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoNameStartsWithPackageName.html @@ -0,0 +1,30 @@ + + + + +报告以软件包名称开头的导出名称。 此检查不会在 main 软件包中报告此类名称。 +

示例:

+
package myPackage
+
+func MyPackageGetIP() {
+
+}
+

MyPackageGetIP 名称将高亮显示,因为它以软件包名称开头。

+

根据 golang.org 上的 Package Names 页面,对软件包中名称的所有引用都将使用软件包名称完成,因此可以从标识符中省略该名称。 + 例如,如果您在软件包 foo 中,则不需要类型 FooFile,客户端将其写为 foo.FooFile。 相反,我们将类型命名为 File,客户端将其写为 foo.File

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoNilness.html b/original-plugin-raw/zh/inspectionDescriptions/GoNilness.html new file mode 100644 index 000000000..92887eed2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoNilness.html @@ -0,0 +1,17 @@ + + +报告由错误使用 nil 值引起的问题。 + +

IDE 分析数据流,以确定变量是否可以有 nil 或非 nil 值。 + IDE 使用这个结果来报告您的代码中的潜在问题。 请考虑以下可能导致意外后果的情况:

+ +
    +
  • 带有 nil 接收器的方法调用可能会导致 ‘nil 指针取消引用’。
  • +
  • nil 切片索引可能会导致 panic。
  • +
  • 如果已知 v 始终为 nil或非 nil,那么像 v == nil 这种比较可能毫无意义。 +
  • +
  • 有对应错误的变量不会被检查不是 nil。 当变量和错误在类似 v, err := foo() 语句中一起定义或赋值时,错误对应于一个变量。 +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoPreferNilSlice.html b/original-plugin-raw/zh/inspectionDescriptions/GoPreferNilSlice.html new file mode 100644 index 000000000..d72ee15b4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoPreferNilSlice.html @@ -0,0 +1,11 @@ + + +报告使用空文字初始值设定项而不是 nil 的切片声明。 +

空切片可以用 nil 或空切片文字表示。 最好使用第一种方法,因为它不会导致内存分配。 有关空切片的更多信息,请参阅 golang.org 上的 Declaring Empty Slices 页面。

+

示例:

+
s := []string{}
+

要更改声明,请使用 替换为 nil 切片声明 (更改语义) 快速修复。 + 在应用快速修复后:

+
var s []string
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoPrintFunctions.html b/original-plugin-raw/zh/inspectionDescriptions/GoPrintFunctions.html new file mode 100644 index 000000000..d36cef3ae --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoPrintFunctions.html @@ -0,0 +1,31 @@ + + + + +报告对 fmt.Printffmt.Println 以及类似的格式化和打印功能的不正确使用情况。 +

在格式化字符串中,格式化函数使用格式化动词,如 %s%d%v 等。 + 如果格式化动词使用不正确,格式化函数的结果将包含错误。 + 有关格式动词的更多信息,请参见 golang.org 上的 Package fmt 页面。 +

+

示例:

+
fmt.Printf("id: %s", 42)
+

这个函数的输出是 id: %!s(int=42)。 这可能不是您所期望的。 + 以下函数使用 %d 格式化动词。 + 带有 %d 格式化动词的输出将是 id: 42

+
fmt.Printf("id: %d", 42)
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoReceiverNames.html b/original-plugin-raw/zh/inspectionDescriptions/GoReceiverNames.html new file mode 100644 index 000000000..269bf5b8d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoReceiverNames.html @@ -0,0 +1,24 @@ + + + + +报告类似于 methisself 或与此类型的其他接收器名称不同的接收器名称。 +

示例:

+
func (self *MeterSnapshot) Rate5() float64 { return math.Float64frombits(self.rate5) }
+

根据 golang.org 上的 Receiver Names页面,您不应使用通用名称,例如 "me"、"this" 或 "self"。 这些标识符在面向对象的语言中很典型,并且可能会赋予方法特殊的含义。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoRedundantBlankArgInRange.html b/original-plugin-raw/zh/inspectionDescriptions/GoRedundantBlankArgInRange.html new file mode 100644 index 000000000..113a1f6e4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoRedundantBlankArgInRange.html @@ -0,0 +1,26 @@ + + + + +报告 range 循环中的可选空白变量。 +

当您使用 range 循环迭代切片时,每个迭代返回两个值。 第一个值是索引号,第二个值是该索引处元素的副本。 如果不需要第二个值,则可以跳过此元素而不使用空标识符。

+

示例:

+
for a, _ = range v {} // `for a, _ =` 与 `for a =` 相同
+

要移除空标识符,您可以使用删除空白实参快速修复。 应用快速修复后,代码如下所示:

+
for a = range v {}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoRedundantComma.html b/original-plugin-raw/zh/inspectionDescriptions/GoRedundantComma.html new file mode 100644 index 000000000..a05ff8006 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoRedundantComma.html @@ -0,0 +1,8 @@ + + +报告在实参列表和复合文字的末尾可以省略的逗号。 +

IDE 建议删除被认为是可选的逗号。 移除这些逗号可能会提高代码的可读性。

+

示例:

+
s := []int{1, 2,} // 最后一个逗号可以省略
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoRedundantConversion.html b/original-plugin-raw/zh/inspectionDescriptions/GoRedundantConversion.html new file mode 100644 index 000000000..12feaf8d4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoRedundantConversion.html @@ -0,0 +1,31 @@ + + + + +报告可以省略的类型转换。 +

示例:

+
var s = string("hello")
+

“hello”值已经是 string 类型,进一步转换为 string 是冗余的。 + 要删除转换,请考虑使用删除转换 快速修复。

+

在应用快速修复后:

+
var s = "hello"
+ +

浮点表达式可能会故意转换为浮点类型 + (以这个问题为例)。 在这种情况下,IDE 会警告您存在 潜在的 冗余类型转换。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoRedundantImportAlias.html b/original-plugin-raw/zh/inspectionDescriptions/GoRedundantImportAlias.html new file mode 100644 index 000000000..4e89f47e5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoRedundantImportAlias.html @@ -0,0 +1,27 @@ + + + + +报告可以省略的导入软件包的别名。 +

通常,此类别名等于导入软件包的名称,因此别名没有任何作用,可以直接使用软件包名称。

+

示例:

+
import fmt "fmt"
+

fmt 别名与同样名为 "fmt" 的软件包名称重复。 要删除别名,请使用 删除导入别名 快速修复。

+

在应用快速修复后:

+
import "fmt"
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoRedundantParens.html b/original-plugin-raw/zh/inspectionDescriptions/GoRedundantParens.html new file mode 100644 index 000000000..897e8169b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoRedundantParens.html @@ -0,0 +1,37 @@ + + + + +报告表达式和类型中冗余的圆括号。 +

示例:

+
func _(x (int), y ((string))) {
+}
+func _() {
+ _ = (1 + 1)
+ _ = (((1 + 1)))
+ _ = (((1 + 1))) + (((2 + 2)))
+}
+

在应用去除圆括号快速修复后:

+
func _(x int, y string) {
+}
+func _() {
+ _ = 1 + 1
+ _ = 1 + 1
+ _ = (1 + 1) + (2 + 2)
+}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoRedundantSecondIndexInSlices.html b/original-plugin-raw/zh/inspectionDescriptions/GoRedundantSecondIndexInSlices.html new file mode 100644 index 000000000..5610fa8af --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoRedundantSecondIndexInSlices.html @@ -0,0 +1,30 @@ + + + + +报告切片表达式中的冗余第二个索引(上限)。 +

通常,第二个索引是可选的。 移除它可能会提高代码的可读性。

+

示例:

+
var a []int
+a = a[0:len(a)] // `a[0:len(a)]` 与 `a[0:]` 相同
+
+

您可以对这种情况应用 删除冗余索引 快速修复。 应用快速修复后,代码如下所示:

+
var a []int
+a = a[0:]
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoRedundantSemicolon.html b/original-plugin-raw/zh/inspectionDescriptions/GoRedundantSemicolon.html new file mode 100644 index 000000000..7eedf57fd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoRedundantSemicolon.html @@ -0,0 +1,25 @@ + + + + +报告冗余分号。 惯用的 Go 程序仅在诸如 for 循环子句之类的地方使用分号,以分隔初始值设定项,条件和延续元素。 它们对于分隔一行中的多个语句也是必要的。 在其他情况下,您可以省略它们。 +

有关 Go 中分号的更多信息,请参阅 golang.org 上的 Semicolons 页面。 +

+

示例:

+
i := 1;
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoRedundantTypeDeclInCompositeLit.html b/original-plugin-raw/zh/inspectionDescriptions/GoRedundantTypeDeclInCompositeLit.html new file mode 100644 index 000000000..c6ec899cb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoRedundantTypeDeclInCompositeLit.html @@ -0,0 +1,27 @@ + + + + +报告复合文字中的冗余类型声明。 +

示例:

+
nums := [][]int{[]int{1}, []int{2}}
+

这是一个 int 类型的切片的切片。 在这种情况下,可以使用较短的定义。 您可以手动修复此代码,也可以使用删除冗余类型快速修复。 应用快速修复后,代码如下所示:

+
nums := [][]int{{1},{2}}
+

有关复合文字的更多信息,请参见 golang.org 上的 Go Language Specification: + Composite Literals 页面。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoReservedWordUsedAsName.html b/original-plugin-raw/zh/inspectionDescriptions/GoReservedWordUsedAsName.html new file mode 100644 index 000000000..1b9681af3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoReservedWordUsedAsName.html @@ -0,0 +1,27 @@ + + + + +报告与内置或保留关键字重叠的变量、实参或函数的声明。 +

当您看到这个错误时,这是因为代码没有尽可能的明确,这可能会使其他用户感到困惑。

+

示例:

+
type byte struct{}
+type string interface{}
+

bytestring 类型与内置类型别名冲突。 因此,这些将高亮显示。 + 考虑重命名此类声明。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoSelfAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/GoSelfAssignment.html new file mode 100644 index 000000000..664890cb7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoSelfAssignment.html @@ -0,0 +1,10 @@ + + +报告分配给自身的表达式。 +

这种赋值没有任何作用,移除它们可能会提高代码的可读性。

+

示例:

+
func importedVarSelfAssignment() {
+ http.ErrNotSupported = http.ErrNotSupported
+}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoShadowedVar.html b/original-plugin-raw/zh/inspectionDescriptions/GoShadowedVar.html new file mode 100644 index 000000000..45f3e9b8a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoShadowedVar.html @@ -0,0 +1,16 @@ + + +报告与外部范围中的声明重叠的变量声明。 +

由于这种情况下变量的含义取决于作用范围,因此可能会造成混乱并导致意外后果。

+

示例:

+
for i := 0; i < len(nums); i++ {
+    for i := 0; i < len(nums); i++ {
+    }
+  }
+

嵌入循环中的 i 变量被隐藏。 要去除隐藏,请考虑重命名嵌入循环中的变量。

+
for i := 0; i < len(nums); i++ {
+    for j := 0; j < len(nums); j++ {
+    }
+  }
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoShift.html b/original-plugin-raw/zh/inspectionDescriptions/GoShift.html new file mode 100644 index 000000000..1784c502f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoShift.html @@ -0,0 +1,12 @@ + + +报告等于或超过整数宽度的移位表达式。 +

在此类表达式中,左操作数的所有位都被移位,得到一个常数值。 常量值意味着移位偏移不正确或移位表达式是冗余的。

+

示例:

+

+  func shift(i int8) {
+    fmt.Println(i << 8) // 始终打印 0
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoSnakeCaseUsage.html b/original-plugin-raw/zh/inspectionDescriptions/GoSnakeCaseUsage.html new file mode 100644 index 000000000..ed79b9497 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoSnakeCaseUsage.html @@ -0,0 +1,9 @@ + + +在命名变量、常量和函数时报告使用蛇形拼写法而不是骆驼拼写法的情况。 + 根据 golang.org 上的 MixedCaps 页面,骆驼拼写法是 Go 中的惯例。 +

示例:

+
func get_external_IP() (string, error) {}
+

get_external_IP 使用蛇形拼写法,但应该使用骆驼拼写法。 您可以应用快速修复将函数名称转换为 getExternalIp

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoStandardMethods.html b/original-plugin-raw/zh/inspectionDescriptions/GoStandardMethods.html new file mode 100644 index 000000000..452385e05 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoStandardMethods.html @@ -0,0 +1,21 @@ + + +在以下情况下报告具有特定名称的方法: +
    +
  • 方法的名称与标准库中几个众所周知的接口方法的名称相匹配
  • +
  • 签名与对应接口方法的签名不匹配
  • +
+

此类方法可能表明接收器类型旨在满足标准库中的接口,但由于方法签名中的错误而无法满足。

+

示例:

+
type MyReader []byte
+
+func (r MyReader) ReadByte(data []byte) (byte, error) {
+}
+

这种用法很可疑,因为它看起来像是试图实现 io.ByteReader,但签名不正确。 + 下面这样写比较合适:

+
type MyReader []byte
+
+func (r MyReader) ReadByte() (byte, error) {
+}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoStringsReplaceCount.html b/original-plugin-raw/zh/inspectionDescriptions/GoStringsReplaceCount.html new file mode 100644 index 000000000..9a75193a8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoStringsReplaceCount.html @@ -0,0 +1,9 @@ + + +报告替换次数为 0 而不是 -1 strings.Replace 的调用。 +

指示替换字符串次数的计数实参不能为 0,因为它不会进行任何替换从而使函数调用是冗余的。 请改用 -1

+

示例:

+
a := strings.Replace("SSS", "S", "H", 0) // 没有替换任何东西
+b := strings.Replace("SSS", "S", "H", -1) // 用 “H” 替换所有出现的 “S”
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoStructInitializationWithoutFieldNames.html b/original-plugin-raw/zh/inspectionDescriptions/GoStructInitializationWithoutFieldNames.html new file mode 100644 index 000000000..13b8b70cf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoStructInitializationWithoutFieldNames.html @@ -0,0 +1,48 @@ + + + + +报告未指定字段名称而初始化的结构。 默认情况下,仅当您使用在不同软件包中定义的类型时,检查才可用。 +

初始化结构时,建议明确指出字段名称,以确保在这些字段的顺序或字段名称发生更改的情况下,它们还可以正确地继续寻址。

+

示例:

+
_ = io.LimitedReader{nil, 10}
+

LimitedReader 初始化将突出显示,因为缺少结构字段的显式名称。 + 您可以对初始化结构应用添加键并删除零值快速修复。 应用快速修复后,代码如下所示:

+
_ = io.LimitedReader{N: 10}
+

检查有以下选项:

+
    +
  • 报告当前软件包中定义的类型:报告在同一个软件包中声明和初始化结构体的情况。 + 请参考下面的示例。

    +
    d := struct {
    +  c string
    + }{ "dsd "}
    +
  • +
  • 报告无类型的结构文字:当类型(结构或接口)被省略时报告没有名称的字段。 + 以下示例显示了省略类型的情况。

    +
    _ = []io.LimitedReader{
    + {nil, 10},
    + {nil, 20},
    + }
    +

    在下面的示例中,该类型存在,但是冗余的。

    +
    _ = []io.LimitedReader{
    + io.LimitedReader{nil, 10},
    + io.LimitedReader{nil, 20},
    +}
    +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoTemplateDuplicateVariable.html b/original-plugin-raw/zh/inspectionDescriptions/GoTemplateDuplicateVariable.html new file mode 100644 index 000000000..bf56b9e76 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoTemplateDuplicateVariable.html @@ -0,0 +1,9 @@ + + +

报告在同一范围内声明的重复 Go 模板变量。

+

复制变量会重新赋值具有相同名称的现有变量。 此操作可能会导致不同的不可预测的问题。

+

示例:

+
{{$v := 0}}{{$v := 1}}{{$v}} 为 0。 {{/* 评估为 '1 为 0' */}}
+{{$v := 0}}{{$w := 1}}{{$v}} 为 0。 {{/* 按预期工作 */}}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoTemplateUnknownVariable.html b/original-plugin-raw/zh/inspectionDescriptions/GoTemplateUnknownVariable.html new file mode 100644 index 000000000..aa3d9d35f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoTemplateUnknownVariable.html @@ -0,0 +1,9 @@ + + +

报告 Go 模板中未知变量的用法。

+

解析此类模板将导致 panic,因为必须在使用前声明变量。

+

示例:

+
{{$v}} 为零。 {{/* 不良,$v 未知 */}}
+{{$v := 0}}{{$v}} 为零。 {{/* 优良 */}}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoTestName.html b/original-plugin-raw/zh/inspectionDescriptions/GoTestName.html new file mode 100644 index 000000000..7e1249b39 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoTestName.html @@ -0,0 +1,10 @@ + + +报告测试,基准和示例名称的格式错误。 +

根据 golang.org 上的软件包测试,名称必须按照特殊规则编写,以便 go 工具可以正确处理此名称。

+

示例:

+
func Testfoo(*testing.T) {} // 'go' 工具不会运行这个测试
+

在应用重命名为快速修复后:

+
func TestFoo(*testing.T) {}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoUnhandledErrorResult.html b/original-plugin-raw/zh/inspectionDescriptions/GoUnhandledErrorResult.html new file mode 100644 index 000000000..141f6a46d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoUnhandledErrorResult.html @@ -0,0 +1,15 @@ + + +报告对不处理 error 类型调用结果的函数和方法的调用。 +

此类函数的 API 意味着执行可能会失败并返回错误。 + 不处理错误结果的调用可能意味着 API 被滥用。

+

示例:

+

+os.Remove("non-existing") // 错误被忽略
+

在应用处理错误快速修复后:

+
err := os.Remove("non-existing") // 错误被处理
+if err != nil {
+  return err
+}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoUnitSpecificDurationSuffix.html b/original-plugin-raw/zh/inspectionDescriptions/GoUnitSpecificDurationSuffix.html new file mode 100644 index 000000000..8ead79ab3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoUnitSpecificDurationSuffix.html @@ -0,0 +1,9 @@ + + +报告 time.Duration 类型的常量和变量名称中的特定于单位的后缀。 +

检查来自 go lint。 可以在 github.com 上的 golang 存储库中找到表示时间单位的后缀列表。

+

time.Duration 表示一个以纳秒为单位的值,因此添加时间单位后缀可能会使变量的含义变得混乱,甚至指示对 time.Duration API 的滥用。

+

示例:

+
var timeoutSeconds = 5 * time.Second
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoUnnecessarilyExportedIdentifiers.html b/original-plugin-raw/zh/inspectionDescriptions/GoUnnecessarilyExportedIdentifiers.html new file mode 100644 index 000000000..d2b2021c0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoUnnecessarilyExportedIdentifiers.html @@ -0,0 +1,6 @@ + + +报告仅在定义它的软件包中使用,而在其他软件包中不使用的导出标识符。 +

使它们导出是冗余的,并且可能使软件包的 API 混乱。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoUnreachableCode.html b/original-plugin-raw/zh/inspectionDescriptions/GoUnreachableCode.html new file mode 100644 index 000000000..42624dcdf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoUnreachableCode.html @@ -0,0 +1,12 @@ + + +报告永远不会执行的代码,因为没有来自程序其他地方的控制流路径。 +

示例:

+
func _() int {
+ print(1)
+ return 2
+ println() // 此代码无法到达
+ return 0
+}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoUnsortedImport.html b/original-plugin-raw/zh/inspectionDescriptions/GoUnsortedImport.html new file mode 100644 index 000000000..bf33a96e8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoUnsortedImport.html @@ -0,0 +1,34 @@ + + + + +报告未排序的导入。 +

所有的 Go 程序都需要以同样的方式进行格式化,格式化规则由 gofmt 工具固定。 这些规则要求对导入进行分类。

+

错误排序的实例:

+
import (
+ "net"
+ "errors"
+ "fmt"
+)
+

您可以应用 import 排序快速修复来解决排序问题。 应用快速修复后,排序如下所示:

+
import (
+ "errors"
+ "fmt"
+ "net"
+)
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoUnusedCallResult.html b/original-plugin-raw/zh/inspectionDescriptions/GoUnusedCallResult.html new file mode 100644 index 000000000..1bbd789c4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoUnusedCallResult.html @@ -0,0 +1,10 @@ + + +报告对不处理调用结果的特定函数和方法的调用。 +

此类函数的 API 意味着用户调用函数的主要目的应该是获取返回值并处理它,而不是因为副作用。 不处理调用结果的调用可能意味着 API 被滥用。

+

示例:

+
fmt.Errorf("error: %s", reason) // 构造的错误将被忽略
+

在应用引入局部变量快速修复后:

+
err := fmt.Errorf("error: %s", reason)
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoUnusedConst.html b/original-plugin-raw/zh/inspectionDescriptions/GoUnusedConst.html new file mode 100644 index 000000000..7bfc0a831 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoUnusedConst.html @@ -0,0 +1,25 @@ + + + + +报告已定义但从未在代码中使用的常量。 +
func main() {
+ const i = 100
+}
+

与未使用的变量和导入不同,此代码进行编译。 未使用的常量可能会增加代码库并减慢程序编译速度。 要删除未使用的常量,请考虑使用删除常量快速修复。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoUnusedExportedFunction.html b/original-plugin-raw/zh/inspectionDescriptions/GoUnusedExportedFunction.html new file mode 100644 index 000000000..cf40fd5d9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoUnusedExportedFunction.html @@ -0,0 +1,30 @@ + + + + +报告未使用的导出函数。 +

在 Go 中,如果函数以大写字母开头,则会导出该函数。 已定义但从未使用过的导出函数的名称显示为灰色。

+
// 未使用的导出函数
+func ExportedUnusedFunc()  {
+
+}
+
+func main() {
+ fmt.Println("Hello")
+}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoUnusedExportedType.html b/original-plugin-raw/zh/inspectionDescriptions/GoUnusedExportedType.html new file mode 100644 index 000000000..773d2414f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoUnusedExportedType.html @@ -0,0 +1,9 @@ + + +报告在 main 软件包和测试中未使用的导出类型。 有关已导出的标识符的更多信息,请参见 golang.org 上的 Exported identifiers 页面。 +
type User struct {}
+
+func main() {}
+

User 结构类型已声明但从未在代码中使用。 此类型将显示为灰色。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoUnusedFunction.html b/original-plugin-raw/zh/inspectionDescriptions/GoUnusedFunction.html new file mode 100644 index 000000000..268ada31c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoUnusedFunction.html @@ -0,0 +1,30 @@ + + + + +报告未使用的未导出函数。 +

在 Go 中,如果函数以小写字母开头,则不会导出该函数。 已定义但从未使用过的未导出函数的名称显示为灰色。

+
// 未使用的未导出函数
+func unExportedUnusedFunc()  {
+
+}
+
+func main() {
+ fmt.Println("Hello")
+}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoUnusedGlobalVariable.html b/original-plugin-raw/zh/inspectionDescriptions/GoUnusedGlobalVariable.html new file mode 100644 index 000000000..30604b11c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoUnusedGlobalVariable.html @@ -0,0 +1,34 @@ + + + + +报告已定义但从未在代码中使用的全局变量。 +

如果您有未使用的变量,代码将无法编译。 + 有关未使用的变量和导入的更多信息,请参阅 golang.org 上的 Unused imports and + variables 页面。 +

+
func main() {
+ a := 422
+}
+

示例中的代码将无法编译。 因此,将其高亮显示为错误。 对于此类情况,您可以应用两个快速修复:删除变量重命名 _。 第一个快速修复删除变量,第二个将变量转换为空白 + 标识符。

+

在应用重命名 _快速修复后:

+
func main() {
+ _ := 422
+}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoUnusedParameter.html b/original-plugin-raw/zh/inspectionDescriptions/GoUnusedParameter.html new file mode 100644 index 000000000..207a13420 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoUnusedParameter.html @@ -0,0 +1,36 @@ + + + + +报告未使用的函数形参。 +
func main() {
+ printAll(
+  42,
+  "bird",
+ )
+}
+
+func printAll(
+ i int,
+ s string,
+) {
+ fmt.Println(i)
+}
+

我们调用 printAll 函数,将 42bird 作为实参传递。 printAll 函数接受两个形参 intstring,但是仅使用第一个形参。 因此,s string 将显示为灰色。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoUnusedType.html b/original-plugin-raw/zh/inspectionDescriptions/GoUnusedType.html new file mode 100644 index 000000000..cec6fb076 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoUnusedType.html @@ -0,0 +1,15 @@ + + +报告未使用的类型。 + +
type user struct {
+ FirstName string    `json:"firstname"`
+ LastName  string    `json:"lastname"`
+}
+
+func main() {
+ 
+}
+

user 类型将显示为灰色,因为它没有在代码中的任何地方使用。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoVarAndConstTypeMayBeOmitted.html b/original-plugin-raw/zh/inspectionDescriptions/GoVarAndConstTypeMayBeOmitted.html new file mode 100644 index 000000000..c7d5668b9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoVarAndConstTypeMayBeOmitted.html @@ -0,0 +1,11 @@ + + +报告变量和常量声明中的类型,这些类型可以省略,因为它们可以由编译器推断。 + 此类类型是冗余的,如果删除它们,可以使您的代码更易于阅读。 +

示例:

+
var s string = fmt.Sprintln("hi")
+

变量声明中的 string 类型可以省略。 要删除类型,请使用 删除类型 快速修复。 + 在应用快速修复后:

+
var s = fmt.Sprintln("hi")
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoVetAtomic.html b/original-plugin-raw/zh/inspectionDescriptions/GoVetAtomic.html new file mode 100644 index 000000000..47b314c53 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoVetAtomic.html @@ -0,0 +1,19 @@ + + +报告 x = atomic.AddUint64(&x, 1) 形式的赋值语句。 +

此类操作为非原子操作,这是 sync/atomic API 中的常见误用。 要使其原子化,请删除赋值并直接调用它,如 atomic.AddUint64(& x, 1) 。 在这种情况下,x 的值由地址以原子方式更新。

+

示例:

+
import (
+ "sync/atomic"
+)
+
+type Counter uint64
+
+func AtomicTests() {
+ x := uint64(1)
+ x = atomic.AddUint64(&x, 1)         // 错误 “直接赋值给原子值”
+ _, x = 10, atomic.AddUint64(&x, 1)  // 错误 “直接赋值给原子值”
+ x, _ = atomic.AddUint64(&x, 1), 10  // 错误 “直接赋值给原子值”
+}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoVetCopyLock.html b/original-plugin-raw/zh/inspectionDescriptions/GoVetCopyLock.html new file mode 100644 index 000000000..96e1a1bae --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoVetCopyLock.html @@ -0,0 +1,28 @@ + + +报告锁错误地通过值传递。 +

不小心复制包含锁的值可能会导致两个副本均无法正常工作。 通常,此类值应通过指针引用。 这里的锁表示实现 sync.Locker 的类型,例如 sync.Mutexsync.WaitGroup

+

示例:

+
type SafeInt struct {
+  m sync.Mutex
+  i int
+}
+
+func (s SafeInt) Inc() { // 互斥被复制
+  s.m.Lock()
+  s.i++
+  s.m.Unlock()
+}
+

在应用添加指针快速修复后:

+
type SafeInt struct {
+  m sync.Mutex
+  i int
+}
+
+func (s *SafeInt) Inc() {
+  s.m.Lock()
+  s.i++
+  s.m.Unlock()
+}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoVetFailNowInNotTestGoroutine.html b/original-plugin-raw/zh/inspectionDescriptions/GoVetFailNowInNotTestGoroutine.html new file mode 100644 index 000000000..3f260ae90 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoVetFailNowInNotTestGoroutine.html @@ -0,0 +1,22 @@ + + +报告对 testing.T.FailNow 和位于测试文件 goroutine 中的类似方法的调用。 +

FailNow 这种方法会调用 runtime.Goexit,并停止调用 goroutine,而不是测试。 + 因此,必须仅从运行测试或基准的 goroutine 中调用。

+

有关 FailNow 的更多信息,请参见 golang.org 的 func (*T) FailNow

+

示例:

+
func TestFoo(t *testing.T) {
+  go func() {
+    t.Fatal("oops") // 退出 goroutine,而不是 TestFoo
+  }()
+}
+

在应用替换为 'Error' 和 'return' 快速修复后:

+
func TestFoo(t *testing.T) {
+  go func() {
+    t.Error("oops")
+    return
+  }()
+}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoVetImpossibleInterfaceToInterfaceAssertion.html b/original-plugin-raw/zh/inspectionDescriptions/GoVetImpossibleInterfaceToInterfaceAssertion.html new file mode 100644 index 000000000..cd8820c3a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoVetImpossibleInterfaceToInterfaceAssertion.html @@ -0,0 +1,16 @@ + + +报告不可能的接口到接口类型断言。 +

检查类型断言 v.(T) 和相应的类型切换 case,其中 v 的静态类型 V 是不可能实现目标接口的接口 T。 当 VT 包含名称相同但签名不同的方法时,会发生这种情况。

+ +

示例:

+
var v interface {
+  Read()
+}
+_ = v.(io.Reader)
+ +

v 中的 Read 方法与 io.Reader 中的 Read 方法具有不同的签名,因此该断言将失败。

+ +

仅当语言版本为 1.15 或更高时,此检查才会报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoVetIntToStringConversion.html b/original-plugin-raw/zh/inspectionDescriptions/GoVetIntToStringConversion.html new file mode 100644 index 000000000..69720bc85 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoVetIntToStringConversion.html @@ -0,0 +1,19 @@ + + +报告类似于 string(x) 表达式的转换,其中 x 是整数,但不是字节或 rune。 + +

不建议这种转换,因为它们返回 Unicode 代码点 x 的 UTF-8 表示,而不是人们可能预期的返回 x 的十进制字符串表示。 此外,如果 x 表示无效的代码点,转换不能被静态拒绝。

+ +

对于打算使用代码点的转换,请考虑使用 string(rune(x)) 替换它们。 否则, strconv.Itoa 或其等效函数可以返回基于所需基数值的字符串表示。

+

示例:

+
func main() {
+ a := 1
+ _ = string(a)
+}
+

在应用将整数转换为 rune快速修复后:

+
func main() {
+ a := 1
+ _ = string(rune(a))
+}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoVetLostCancel.html b/original-plugin-raw/zh/inspectionDescriptions/GoVetLostCancel.html new file mode 100644 index 000000000..9c8a6a192 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoVetLostCancel.html @@ -0,0 +1,17 @@ + + +报告未调用由 context.WithCancel 和类似的函数返回 cancel 函数的执行路径。 +

WithCancelWithDeadlineWithTimeout 函数接收一个 Context(父项)并返回一个派生的 Context(子项)和一个 CancelFunc。 + 调用 CancelFunc 可以取消子项及其子项,删除父项对该子项的引用,并停止任何 + 相关的定时器。 + 如果不调用 CancelFunc,就会泄漏子项和其子项,直到父项被取消或定时器启动。

+

有关 context 软件包的更多信息,请参见 golang.org 上的 Package context 页面。

+

示例:

+
func _(ctx context.Context, cancel func()) {
+ var ctx2 context.Context
+ ctx2, cancel = context.WithCancel(ctx)
+ _ = ctx2
+}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoVetStructTag.html b/original-plugin-raw/zh/inspectionDescriptions/GoVetStructTag.html new file mode 100644 index 000000000..90a84f28d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoVetStructTag.html @@ -0,0 +1,31 @@ + + + + +报告不符合 Go 结构标签惯例 的结构标签。 + +

根据这些惯例,标记字符串是可选的空格分隔的键:"值" 对的串联。 每个键为空格 (U+0020 ' ')引号 (U+0022 '"')冒号 (U+003A ':') 以外的非控制字符组成的非空字符串。 每个值都使用 U+0022 '"' 字符和 Go 字符串文字语法引用。

+ +

此外,检查还会检查带有标签的字段是否已导出。

+ +

有效标签示例:

+
type Example struct {
+  Field int `json:"field" xml:"demo"`
+}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoVetUnmarshal.html b/original-plugin-raw/zh/inspectionDescriptions/GoVetUnmarshal.html new file mode 100644 index 000000000..ae190729a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoVetUnmarshal.html @@ -0,0 +1,14 @@ + + +如果传递以存储结果的实参不是指针或接口,则报告对 json.Unmarshal 和类似函数的调用。 +

这些调用将失败并返回错误。

+

有关 Unmarshal 的更多信息,请参见 golang.org 的 func Unmarshal 页面。

+

示例:

+
var animals []Animal
+err := json.Unmarshal(jsonData, animals) // 总是返回错误
+

在应用在前面追加 '&'快速修复后:

+
var animals []Animal
+err := json.Unmarshal(jsonData, &animals)
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GoVetUnsafePointer.html b/original-plugin-raw/zh/inspectionDescriptions/GoVetUnsafePointer.html new file mode 100644 index 000000000..27ccf24c4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GoVetUnsafePointer.html @@ -0,0 +1,16 @@ + + +报告从 uintptrunsafe.Pointer 的潜在错误转换。 +

如果内存中有存放指针值的 uintptr 类型字词,则从 uintptrunsafe.Pointer 的转换无效,因为该字词对于堆栈复制和垃圾收集器不可见。 +

+

用法无效的示例:

+
nums := []int8{42, 24}
+ptr := unsafe.Pointer(&nums[0])
+addr := uintptr(ptr) // 地址存储到本地变量
+ptr = unsafe.Pointer(addr + uintptr(1))
+

用法有效的示例:

+
nums := []int8{42, 24}
+ptr := unsafe.Pointer(&nums[0])
+ptr = unsafe.Pointer(uintptr(ptr) + uintptr(1))
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrAnnotationReferencingUnknownIdentifiers.html b/original-plugin-raw/zh/inspectionDescriptions/GrAnnotationReferencingUnknownIdentifiers.html new file mode 100644 index 000000000..b2ab9dbf7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrAnnotationReferencingUnknownIdentifiers.html @@ -0,0 +1,15 @@ + + +报告 @TupleConstructor@MapConstructor +includesexcludes 注解特性值中的未解析标识符。 +

示例:

+

+  // 未解析的 'c'
+  @TupleConstructor(includes = ['a', 'b', 'c'])
+  class X {
+      def a
+      def b
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrDeprecatedAPIUsage.html b/original-plugin-raw/zh/inspectionDescriptions/GrDeprecatedAPIUsage.html new file mode 100644 index 000000000..52e74cfd2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrDeprecatedAPIUsage.html @@ -0,0 +1,5 @@ + + +报告对已弃用类、字段和方法的引用。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrEqualsBetweenInconvertibleTypes.html b/original-plugin-raw/zh/inspectionDescriptions/GrEqualsBetweenInconvertibleTypes.html new file mode 100644 index 000000000..61ff62c3c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrEqualsBetweenInconvertibleTypes.html @@ -0,0 +1,10 @@ + + +报告对目标和实参的类型不兼容的 equals() 的调用。 +

虽然此类调用理论上可能有用,但很可能是错误。

+

示例:

+

+    new HashSet<String>() == new TreeSet<Integer>())
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrFinalVariableAccess.html b/original-plugin-raw/zh/inspectionDescriptions/GrFinalVariableAccess.html new file mode 100644 index 000000000..15abf8c05 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrFinalVariableAccess.html @@ -0,0 +1,5 @@ + + +报告未初始化的 final 字段,以及 final 变量、形参和字段的无效赋值。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrMethodMayBeStatic.html b/original-plugin-raw/zh/inspectionDescriptions/GrMethodMayBeStatic.html new file mode 100644 index 000000000..4044c5e4e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrMethodMayBeStatic.html @@ -0,0 +1,8 @@ + + +报告可以安全设置为 static 的方法。 +

+ 如果方法未 synchronized,未引用它的类的任何实例方法和实例字段,并且未在子类中被重写,则可能是 static 方法。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrNamedVariantLabels.html b/original-plugin-raw/zh/inspectionDescriptions/GrNamedVariantLabels.html new file mode 100644 index 000000000..bef6cba3b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrNamedVariantLabels.html @@ -0,0 +1,13 @@ + + +报告通过 @NamedVariant/@NamedParam/@NamedDelegate 注解的方法调用中未解析的实参标签。 +

示例:

+

+  @groovy.transform.NamedVariant
+  def foo(a, b) {}
+
+  // 未解析的标签 'c'
+  foo(a: 1, b: 2, c: 3)
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrPOJO.html b/original-plugin-raw/zh/inspectionDescriptions/GrPOJO.html new file mode 100644 index 000000000..b5ca1429d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrPOJO.html @@ -0,0 +1,11 @@ + + +

报表注解 @groovy.transform.stc.POJO 在没有@groovy.transform.CompileStatic 的情况下的应用。

+

注解 @POJO 将 Groovy 类的编译过程更改为字节码。 如果没有显式启用的静态编译(通过 @CompileStatic 注解完成),它就不起作用。 +

示例:

+

+  @POJO // 报告 @POJO
+  class A {}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrPackage.html b/original-plugin-raw/zh/inspectionDescriptions/GrPackage.html new file mode 100644 index 000000000..76df30584 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrPackage.html @@ -0,0 +1,5 @@ + + +报告包含与预期软件包不相符的声明软件包的文件。 此外,如果类不是直接位于源根目录中,则报告不包含 package 语句的文件。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrPermitsClause.html b/original-plugin-raw/zh/inspectionDescriptions/GrPermitsClause.html new file mode 100644 index 000000000..e57ef75b7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrPermitsClause.html @@ -0,0 +1,11 @@ + + +

报告不扩展密封基类的允许类。

+

Groovy 不要求所有的允许类都应在编译时可用并与基类一起编译。 编译器不会在处理非扩展允许子类时警告用户,但这与密封类的性质相矛盾。 +

示例:

+

+  class A permits B {} // 报告 B
+  class B {}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrReassignedInClosureLocalVar.html b/original-plugin-raw/zh/inspectionDescriptions/GrReassignedInClosureLocalVar.html new file mode 100644 index 000000000..d95f1b80a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrReassignedInClosureLocalVar.html @@ -0,0 +1,12 @@ + + +报告在闭包或匿名类中分配给不同类型的表达式的局部变量。 +

示例:

+

+  int sum = 0
+  [1, 2, 3].each { sum += 'as' }
+  println(sum)
+
+

因此,integer 变量 sum 会被重新赋值给 String 表达式。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrStringStyleViolation.html b/original-plugin-raw/zh/inspectionDescriptions/GrStringStyleViolation.html new file mode 100644 index 000000000..f70bbe6eb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrStringStyleViolation.html @@ -0,0 +1,15 @@ + + +

报告具有不符合代码样式的引号的字符串。

+

示例:

+

+  def hw = "Hello, world!"
+
+

在应用快速修复后:

+

+  def hw = 'Hello, world!'
+
+ +

使用下面提供的字段可为不同种类的字符串指定代码样式。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrSwitchExhaustivenessCheck.html b/original-plugin-raw/zh/inspectionDescriptions/GrSwitchExhaustivenessCheck.html new file mode 100644 index 000000000..af3a7f704 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrSwitchExhaustivenessCheck.html @@ -0,0 +1,17 @@ + + +

报告未覆盖匹配表达式的所有可能结果的 switch 表达式。

+

Groovy 不要求 switch 表达式必须详尽。 它的作用就像插入了隐式 default -> null 分支。 + 如果开发者忘记插入必要的 case 分支,可能会导致意外的 null。 +

示例:

+

+  enum A { X, Y }
+
+  def foo(A a) {
+    def x = switch (a) { // reports switch
+      case A.X -> ...
+    }
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessaryAlias.html b/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessaryAlias.html new file mode 100644 index 000000000..54ca97498 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessaryAlias.html @@ -0,0 +1,13 @@ + + +

报告不必要的导入别名。

+

示例:

+

+  import com.foo.Bar as Bar
+
+

在应用快速修复后:

+

+  import com.foo.Bar
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessaryDefModifier.html b/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessaryDefModifier.html new file mode 100644 index 000000000..0b08a4120 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessaryDefModifier.html @@ -0,0 +1,13 @@ + + +

报告与显式类型声明一起使用时不必要的 def 修饰符。

+

示例:

+

+  def boolean foo() {} // 修饰符不必要
+  def Object bar // 修饰符不必要
+
+  // 修饰符是必要的,因此未高亮显示
+  def (int a, String b) = []
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessaryFinalModifier.html b/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessaryFinalModifier.html new file mode 100644 index 000000000..fbc6b49dc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessaryFinalModifier.html @@ -0,0 +1,9 @@ + + +

报告与记录定义一起使用时不必要的 final 修饰符。

+

示例:

+

+  final record R(int a) {} // 不需要修饰符
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessaryNonSealedModifier.html b/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessaryNonSealedModifier.html new file mode 100644 index 000000000..3fcb4a2f1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessaryNonSealedModifier.html @@ -0,0 +1,14 @@ + + +

报告在方法、字段或变量上使用的不必要的 non-sealed 修饰符。

+

此修饰符仅对类、接口和特征有效。

+

示例:

+

+  non-sealed boolean foo() {} // 修饰符不必要
+  non-sealed Object bar // 修饰符不必要
+
+  // 修饰符为必选项,因此未高亮显示
+  non-sealed class A {}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessaryPublicModifier.html b/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessaryPublicModifier.html new file mode 100644 index 000000000..c5b838240 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessaryPublicModifier.html @@ -0,0 +1,19 @@ + + +

报告不必要的 public 修饰符,因为 Groovy 类和方法默认为 public

+

示例:

+

+  public class Foo{
+      public void bar(){
+      }
+  }
+
+

在应用快速修复后:

+

+  class Foo{
+      void bar(){
+      }
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessarySealedModifier.html b/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessarySealedModifier.html new file mode 100644 index 000000000..5e58b6514 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessarySealedModifier.html @@ -0,0 +1,14 @@ + + +

报告在方法、字段或变量上使用的不必要的 sealed 修饰符。

+

此修饰符仅对类、接口和特征有效。

+

示例:

+

+  sealed boolean foo() {} // 修饰符不必要
+  sealed Object bar // 修饰符不必要
+
+  // 修饰符为必选项,因此未高亮显示
+  sealed class A {}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessarySemicolon.html b/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessarySemicolon.html new file mode 100644 index 000000000..17d3efdb7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrUnnecessarySemicolon.html @@ -0,0 +1,10 @@ + + +

报告不必要的分号。

+

示例:

+

+  print 2; print 3 // 分号是必要的
+  print 2; // 分号不必要
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrUnresolvedAccess.html b/original-plugin-raw/zh/inspectionDescriptions/GrUnresolvedAccess.html new file mode 100644 index 000000000..31f9e490a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrUnresolvedAccess.html @@ -0,0 +1,5 @@ + + +

报告无法解析的引用表达式。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrUnusedDefaultParameter.html b/original-plugin-raw/zh/inspectionDescriptions/GrUnusedDefaultParameter.html new file mode 100644 index 000000000..314c8f542 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrUnusedDefaultParameter.html @@ -0,0 +1,9 @@ + + +

报告未使用的默认形参。

+

+  def foo(a, b = 2) {}
+
+

如果所有 foo 调用将显式包含 b 的实参,则 b 的初始值设定项将高亮显示为“未使用”,并且具有将其移除的选项。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GradleKotlinxCoroutinesDeprecation.html b/original-plugin-raw/zh/inspectionDescriptions/GradleKotlinxCoroutinesDeprecation.html new file mode 100644 index 000000000..c5ca3fa03 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GradleKotlinxCoroutinesDeprecation.html @@ -0,0 +1,17 @@ + + +报告为了与 Kotlin 1.3+ 兼容而应更新的 Gradle 中的 kotlinx.coroutines 库依赖项。 +

示例:

+

+  dependencies {
+      implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.0.1'
+  }
+
+

该快速修复会将 kotlinx.coroutines 库版本更改为与 Kotlin 1.3 兼容的版本:

+

+  dependencies {
+      implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.27.0-eap13'
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GrazieInspection.html b/original-plugin-raw/zh/inspectionDescriptions/GrazieInspection.html new file mode 100644 index 000000000..c8229024b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GrazieInspection.html @@ -0,0 +1 @@ +报告文本中的语法错误。 您可以在偏好设置中配置检查。 diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyAccessToStaticFieldLockedOnInstance.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyAccessToStaticFieldLockedOnInstance.html new file mode 100644 index 000000000..6fd2d6640 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyAccessToStaticFieldLockedOnInstance.html @@ -0,0 +1,17 @@ + + +报告对在 thisthis 的实例字段上锁定的非常量 static 字段的访问。 +

+ 在实例数据上锁定 static 字段并不能防止其他实例修改该字段,因此可能会导致意外的竞争条件。 +

+

示例:

+

+  static String s;
+  def foo() {
+      synchronized (this) {
+          System.out.println(s); // 警告
+      }
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyAccessibility.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyAccessibility.html new file mode 100644 index 000000000..a233095cf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyAccessibility.html @@ -0,0 +1,6 @@ + + +报告超出访问权限的引用。 +

对 private 成员的访问会破坏封装。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyAssignabilityCheck.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyAssignabilityCheck.html new file mode 100644 index 000000000..f7287cac5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyAssignabilityCheck.html @@ -0,0 +1,14 @@ + + +报告具有不兼容类型的赋值。 +

此类赋值可能导致各种运行时异常。

+

示例:

+

+  class A {}
+  class B {}
+
+  // 不兼容的赋值
+  A a = new B()
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyAssignmentCanBeOperatorAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyAssignmentCanBeOperatorAssignment.html new file mode 100644 index 000000000..7a6433e89 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyAssignmentCanBeOperatorAssignment.html @@ -0,0 +1,19 @@ + + +报告可替换为运算符赋值的赋值。 +

示例:

+

+  a = a + b
+
+

在应用快速修复后:

+

+  a += b
+
+ +

配置检查:

+
    +
  • 使用忽略条件运算符选项可忽略 &&|| 运算符。
  • +
  • 使用忽略模糊运算符选项可忽略 ^% 运算符。
  • +
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyAssignmentToForLoopParameter.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyAssignmentToForLoopParameter.html new file mode 100644 index 000000000..bd913689f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyAssignmentToForLoopParameter.html @@ -0,0 +1,12 @@ + + +报告对 for 循环体中的 for 循环形参的赋值。 +

虽然偶尔是有意为之,但此结构可能格外令人困惑,并且通常是由拼写错误所致。

+

示例:

+

+  for (value in [1, 2, 3]) {
+      value = 4 // 警告
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyAssignmentToMethodParameter.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyAssignmentToMethodParameter.html new file mode 100644 index 000000000..40a14ee02 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyAssignmentToMethodParameter.html @@ -0,0 +1,12 @@ + + +报告方法形参的赋值。 +

虽然偶尔是有意为之,但此结构可能格外令人困惑,并且通常是由拼写错误所致。

+

示例:

+

+  def m(a, b, c) {
+      a = [] // 警告
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyBreak.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyBreak.html new file mode 100644 index 000000000..0410ec70e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyBreak.html @@ -0,0 +1,5 @@ + + +报告 switch 语句外的 break 语句。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyBusyWait.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyBusyWait.html new file mode 100644 index 000000000..cdaab28e1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyBusyWait.html @@ -0,0 +1,8 @@ + + +报告在循环内发生的对 java.lang.Thread.sleep() 的调用。 +

+ 此类调用表示“繁忙-等待”。 忙等待通常效率低下,并且可能导致意外死锁,因为忙等待线程不会释放锁定的资源。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyConditional.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyConditional.html new file mode 100644 index 000000000..928efc0ca --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyConditional.html @@ -0,0 +1,6 @@ + + +报告三元表达式。 +

某些编码标准禁止使用条件运算符,而是支持 if 语句。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyConditionalCanBeConditionalCall.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyConditionalCanBeConditionalCall.html new file mode 100644 index 000000000..9579e8bfe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyConditionalCanBeConditionalCall.html @@ -0,0 +1,17 @@ + + +报告可以使用安全调用替换的三元表达式。 +

示例:

+

+  def charArray(String s) {
+      s == null ? null : s.toCharArray()
+  }
+
+

在应用快速修复后:

+

+  def charArray(String s) {
+      s?.toCharArray()
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyConditionalCanBeElvis.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyConditionalCanBeElvis.html new file mode 100644 index 000000000..973230fb0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyConditionalCanBeElvis.html @@ -0,0 +1,17 @@ + + +报告可以使用 elvis 表达式替换的三元表达式。 +

示例:

+

+  def notNull(o, defaultValue) {
+      o != null ? o : defaultValue
+  }
+
+

在应用快速修复后:

+

+  def notNull(o, defaultValue) {
+      o ?: defaultValue
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyConditionalWithIdenticalBranches.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyConditionalWithIdenticalBranches.html new file mode 100644 index 000000000..357c175bc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyConditionalWithIdenticalBranches.html @@ -0,0 +1,14 @@ + + +报告包含相同 "then" 和 "else" 分支的三元表达式。 此类表达式几乎肯定表明程序员出现错误。 +

该快速修复会将替换表达式替换为其 "then" 分支。

+

示例:

+

+  condition ? a.foo() : a.foo()
+
+

在应用快速修复后:

+

+  a.foo()
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyConstantConditional.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyConstantConditional.html new file mode 100644 index 000000000..f4820d040 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyConstantConditional.html @@ -0,0 +1,10 @@ + + +报告将布尔常量作为条件的条件表达式。 +

示例:

+

+  true ? result1 : result2
+  false ? result1 : result2
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyConstantIfStatement.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyConstantIfStatement.html new file mode 100644 index 000000000..3c0f37625 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyConstantIfStatement.html @@ -0,0 +1,14 @@ + + +报告将布尔常量作为条件的 if 语句。 +

示例:

+

+  if (true) {
+      // ...
+  }
+  if (false) {
+      // ...
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyConstantNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyConstantNamingConvention.html new file mode 100644 index 000000000..eb255bd22 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyConstantNamingConvention.html @@ -0,0 +1,14 @@ + + +报告名称与指定惯例不相符的常量。 +

常量是使用 staticfinal 修饰符声明的不可变类型的字段。

+报告名称太短、太长或不遵循指定正则表达式模式的常量。 + +

配置检查:

+
    +
  • 使用模式字段可指定常量名称预期与其相符的 java.util.regex.Pattern
  • +
  • 使用最小长度字段可指定常量名称的最小长度。
  • +
  • 使用最大长度字段可指定常量名称的最大长度。
  • +
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyConstructorNamedArguments.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyConstructorNamedArguments.html new file mode 100644 index 000000000..9df468448 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyConstructorNamedArguments.html @@ -0,0 +1,15 @@ + + +报告与此类的属性不对应的默认类构造函数调用的命名实参。 +

示例:

+

+  class Person {
+      def name
+      def age
+  }
+
+  // 'firstName' 属性不存在
+  new Person(firstName: "John")
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyContinue.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyContinue.html new file mode 100644 index 000000000..299702c89 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyContinue.html @@ -0,0 +1,5 @@ + + +报告 continue 语句。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyContinueOrBreakFromFinallyBlock.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyContinueOrBreakFromFinallyBlock.html new file mode 100644 index 000000000..1cb1d9c1f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyContinueOrBreakFromFinallyBlock.html @@ -0,0 +1,6 @@ + + +报告 finally 块中的 breakcontinue 语句。 +

虽然偶尔是有意为之,但此类语句非常令人困惑,可能会掩盖抛出的异常,并导致调试变得极其复杂。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyDivideByZero.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyDivideByZero.html new file mode 100644 index 000000000..8af1ecc56 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyDivideByZero.html @@ -0,0 +1,11 @@ + + +报告除以 0 或对 0 取余。 +

示例:

+

+  def a = 42
+  a / 0 // 警告
+  a % 0.0 // 警告
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyDocCheck.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyDocCheck.html new file mode 100644 index 000000000..1b76c5eaa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyDocCheck.html @@ -0,0 +1,5 @@ + + +报告 GroovyDoc 注释的中未解析引用。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyDoubleCheckedLocking.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyDoubleCheckedLocking.html new file mode 100644 index 000000000..16de06c9d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyDoubleCheckedLocking.html @@ -0,0 +1,28 @@ + + +报告双重检查锁定。 +

+ 双重检查锁定会尝试以线程安全的方式按需初始化字段,同时避免同步的开销。 + 遗憾的是,在未被声明为 volatile 的字段上使用时,它不具备线程安全性。 + 在使用 Java 1.4 或更低版本时,即便是 volatile 字段,双重检查锁定也不起作用。 + 有关此问题的说明,请参阅本文。 +

+

示例:

+

+  class Foo {
+      private Helper helper = null
+
+      Helper getHelper() {
+          if (helper == null)
+              synchronized(this) {
+                  if (helper == null) {
+                      helper = new Helper()
+                  }
+              }
+          }
+          return helper;
+      }
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyDoubleNegation.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyDoubleNegation.html new file mode 100644 index 000000000..512023c9b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyDoubleNegation.html @@ -0,0 +1,19 @@ + + +报告可以简化的双重否定。 +

示例:

+
+
+if (!!functionCall()) {} // 双重否定
+if (!(a != b)) {} // 双重否定
+
+
+

在应用快速修复后:

+
+
+if (functionCall()) {}
+if (a == b) {}
+
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyDuplicateSwitchBranch.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyDuplicateSwitchBranch.html new file mode 100644 index 000000000..9ce274c81 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyDuplicateSwitchBranch.html @@ -0,0 +1,19 @@ + + +报告 switch 语句的 case 标签中的重复表达式。 +

示例:

+
+
+switch (n) {
+  case 1: //重复
+    break
+  case 1: //重复
+    System.out.println("2")
+    break
+  default:
+    System.out.println("default");
+}
+
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyEmptyCatchBlock.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyEmptyCatchBlock.html new file mode 100644 index 000000000..8fd4f9308 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyEmptyCatchBlock.html @@ -0,0 +1,25 @@ + + +报告空的 catch 块。 虽然偶尔是有意为之,但空的 catch 块可能导致调试变得极其困难。 +

示例:

+
+
+try {
+  throw new Exception()
+}
+catch (Exception e) {
+}
+
+
+

在应用快速修复后:

+
+
+try {
+  throw new Exception()
+}
+catch (Exception ignored) {
+}
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyEmptyFinallyBlock.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyEmptyFinallyBlock.html new file mode 100644 index 000000000..b16c2e99c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyEmptyFinallyBlock.html @@ -0,0 +1,16 @@ + + +报告空的 finally 块。 +空的 finally 块通常表明存在编码错误。 +

示例:

+
+
+try {
+  throw new Exception()
+}
+finally {
+}
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyEmptyStatementBody.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyEmptyStatementBody.html new file mode 100644 index 000000000..260c8b27b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyEmptyStatementBody.html @@ -0,0 +1,12 @@ + + +报告语句体为空的 ifwhiledofor 语句。 虽然偶尔是有意为之,但此结构令人困惑,并且通常是由拼写错误所致。 +

示例:

+
+
+if (condition) {}
+while(true){}
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyEmptySyncBlock.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyEmptySyncBlock.html new file mode 100644 index 000000000..364058cf1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyEmptySyncBlock.html @@ -0,0 +1,12 @@ + + +报告语句体为空的 synchronized 语句。 虽然在理论上这种语义可能是有意为之,但此构造令人困惑,并且通常是由拼写错误所致。 +

示例:

+
+
+synchronized(lock) {
+}
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyEmptyTryBlock.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyEmptyTryBlock.html new file mode 100644 index 000000000..eb212de1f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyEmptyTryBlock.html @@ -0,0 +1,16 @@ + + +报告空的 try 块。 +空的 try 块通常表明存在编码错误。 +

示例:

+
+
+try {
+}
+finally {
+  close()
+}
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyFallthrough.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyFallthrough.html new file mode 100644 index 000000000..9061868b4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyFallthrough.html @@ -0,0 +1,19 @@ + + +报告 switch 语句中的 fallthrough。 虽然偶尔有用,但直落通常是无意为之,并且可能导致意外的错误。 +

示例:

+
+
+switch(n) {
+  case 1:
+    print 1
+  case 2: // "case 1" 直落到 "case 2"。 从 "case 2" 开始的语句将在执行 "case 1" 后立即执行。
+    print 2
+    break
+  default:
+    print "Default"
+}
+
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyGStringKey.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyGStringKey.html new file mode 100644 index 000000000..ea0f5245e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyGStringKey.html @@ -0,0 +1,18 @@ + + +报告将 groovy.lang.GString 对象用作映射键的语句。 +通常,GString 对象是可变的,可能不应用作键。 +此外,使用具有相同值的 java.lang.String 对象无法访问 GString 条目。 +

示例:

+
+
+def map = [:]
+def key = 'foo'
+map << ["${key}": 'bar']
+assert map[key] == null // 令人困惑的比较 'true' 结果
+
+
+ +

2017.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyIfStatementWithIdenticalBranches.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyIfStatementWithIdenticalBranches.html new file mode 100644 index 000000000..7d9aac93a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyIfStatementWithIdenticalBranches.html @@ -0,0 +1,22 @@ + + +报告具有相同的 "then" 和 else 分支的 if 语句。 +此类语句几乎肯定表明程序员出现错误。 +

示例:

+
+
+if (condition) {
+  print "foo"
+} else {
+  print "foo"
+}
+
+
+

在应用快速修复后:

+
+
+print "foo"
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyIfStatementWithTooManyBranches.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyIfStatementWithTooManyBranches.html new file mode 100644 index 000000000..2ec52f45a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyIfStatementWithTooManyBranches.html @@ -0,0 +1,23 @@ + + +报告分支太多的 if 语句。 +此类语句可能令人困惑,并且通常表明设计抽象度不足。 +

示例:

+
+
+if (a) {
+  print "foo"
+} else if (b) {
+  print "bar"
+} else if (c) {
+  print "baz"
+} else if (d) {
+  print "Too many branches"
+}
+
+
+ +

+ 使用最大分支数字段可指定预期的最大分支数量。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyImplicitNullArgumentCall.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyImplicitNullArgumentCall.html new file mode 100644 index 000000000..987e3c43e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyImplicitNullArgumentCall.html @@ -0,0 +1,13 @@ + + +报告对只有一个形参的方法的无实参调用。 +这等效于使用 null 进行调用,但这种行为通常令人困惑并且是无意为之。 +

示例:

+
+
+def foo(String s){}
+foo() // 此调用实际上为 'foo(null)' 调用
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyInArgumentCheck.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyInArgumentCheck.html new file mode 100644 index 000000000..a667fd024 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyInArgumentCheck.html @@ -0,0 +1,13 @@ + + +报告具有不兼容类型的条目和容器的成员运算符 in 的用法。 +

示例:

+
+
+def list = [1, 2]
+if ("foo" in list) {} // 整数列表不能包含字符串
+
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyInfiniteLoopStatement.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyInfiniteLoopStatement.html new file mode 100644 index 000000000..202b82c85 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyInfiniteLoopStatement.html @@ -0,0 +1,14 @@ + + +报告只能通过抛出异常来退出的 for、 +whiledo 语句。 虽然此类语句可能是正确的,但它们通常是由错误所致。 +

示例:

+
+
+while(true) {
+  Thread.sleep(1000)
+}
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyInfiniteRecursion.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyInfiniteRecursion.html new file mode 100644 index 000000000..195ae335e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyInfiniteRecursion.html @@ -0,0 +1,15 @@ + + +报告肯定会无限递归或抛出异常的方法。 +此检查报告的方法无法正确结束。 +

示例:

+
+
+// 此函数会使循环越来越深
+def fibonacci(int n) {
+  return fibonacci(n-1) + fibonacci(n-2)
+}
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyInstanceMethodNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyInstanceMethodNamingConvention.html new file mode 100644 index 000000000..02e5b5735 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyInstanceMethodNamingConvention.html @@ -0,0 +1,9 @@ + + +报告名称太短、太长或不遵循指定正则表达式模式的实例方法。 此检查将忽略重写库方法的实例方法。 + +

+ 使用下面提供的字段可指定实例方法名称的预期最小长度、最大长度和正则表达式。

+

正则表达式应以标准 java.util.regex 格式指定。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyInstanceVariableNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyInstanceVariableNamingConvention.html new file mode 100644 index 000000000..1d7b35281 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyInstanceVariableNamingConvention.html @@ -0,0 +1,9 @@ + + +报告名称太短、太长或不遵循指定正则表达式模式的实例变量。 + +

+ 使用下面提供的字段可指定实例变量名称的预期最小长度、最大长度和正则表达式。

+

正则表达式应以标准 java.util.regex 格式指定。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyLabeledStatement.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyLabeledStatement.html new file mode 100644 index 000000000..a6ab19a0d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyLabeledStatement.html @@ -0,0 +1,19 @@ + + +报告已在父工作流中使用的标签。 +

示例:

+
+
+def list = ["foo"]
+cycle:
+for (element in list) {
+  cycle: // 令人困惑的标签重复
+  element.chars().forEach {
+  }
+}
+
+
+ + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyListGetCanBeKeyedAccess.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyListGetCanBeKeyedAccess.html new file mode 100644 index 000000000..91a49fc7b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyListGetCanBeKeyedAccess.html @@ -0,0 +1,19 @@ + + +报告对 java.util.List.get() 方法的调用。 此类调用可由更简短明确的键控访问形式替代。 +

示例:

+
+
+def list = ["foo"]
+def str = list.get(0) // list.get(0) 可以替换为 list[0]
+
+
+

在应用快速修复后:

+
+
+def list = ["foo"]
+def str = list[0]
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyListSetCanBeKeyedAccess.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyListSetCanBeKeyedAccess.html new file mode 100644 index 000000000..a68b1f6bb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyListSetCanBeKeyedAccess.html @@ -0,0 +1,19 @@ + + +报告对 java.util.List.set() 方法的调用。 此类调用可由更简短明确的键控访问形式替代。 +

示例:

+
+
+def list = ["foo"]
+list.set(0, "bar") // list.set(0, "bar") 可以替换为 list[0] = "bar"
+
+
+

在应用快速修复后:

+
+
+def list = ["foo"]
+list[0] = "bar"
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyLocalVariableNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyLocalVariableNamingConvention.html new file mode 100644 index 000000000..d334cb09d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyLocalVariableNamingConvention.html @@ -0,0 +1,9 @@ + + +报告名称太短、太长或不遵循指定正则表达式模式的局部变量。 + +

+ 使用下面提供的字段可指定局部变量名称的预期最小长度、最大长度和正则表达式。

+

正则表达式应以标准 java.util.regex 格式指定。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyLoopStatementThatDoesntLoop.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyLoopStatementThatDoesntLoop.html new file mode 100644 index 000000000..068dce6da --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyLoopStatementThatDoesntLoop.html @@ -0,0 +1,13 @@ + + +报告语句体保证最多执行一次的 forwhile 语句。 虽然可以有意编写此类语句,但它们通常表明存在错误。 +

示例:

+
+
+  for (int i in 0..<10) {
+    return
+  }
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyMapGetCanBeKeyedAccess.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyMapGetCanBeKeyedAccess.html new file mode 100644 index 000000000..10bc292a0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyMapGetCanBeKeyedAccess.html @@ -0,0 +1,19 @@ + + +报告对 java.util.Map.get() 方法的调用。 此类调用可由更简短明确的键控访问形式替代。 +

示例:

+
+
+def map = ["foo": "bar"]
+def str = map.get("foo") // map.get("foo") 可以替换为 map["foo"]
+
+
+

在应用快速修复后:

+
+
+def map = ["foo": "bar"]
+def str = map["foo"]
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyMapPutCanBeKeyedAccess.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyMapPutCanBeKeyedAccess.html new file mode 100644 index 000000000..0131c384a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyMapPutCanBeKeyedAccess.html @@ -0,0 +1,19 @@ + + +报告对 java.util.Map.put() 方法的调用。 此类调用可由更简短明确的键控访问形式替代。 +

示例:

+
+
+def map = ["foo": "bar"]
+map.put("foo", "baz") // map.put("foo", "baz") 可以替换为 map["foo"] = "baz"
+
+
+

在应用快速修复后:

+
+
+def map = ["foo": "bar"]
+map["foo"] = "baz"
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyMethodParameterCount.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyMethodParameterCount.html new file mode 100644 index 000000000..fc6e17f6c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyMethodParameterCount.html @@ -0,0 +1,8 @@ + + +报告形参过多的方法。 方法的形参过多可能表明有必要重构。 此检查会忽略从库类继承签名的方法。 + +

+ 使用最大形参数量: 字段可指定方法的最大可接受形参数量。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyMethodWithMoreThanThreeNegations.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyMethodWithMoreThanThreeNegations.html new file mode 100644 index 000000000..f66ba83c8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyMethodWithMoreThanThreeNegations.html @@ -0,0 +1,6 @@ + + +报告具有三个或更多求反运算(!!=)的方法。 +此类方法可能造成不必要的困惑。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyMissingReturnStatement.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyMissingReturnStatement.html new file mode 100644 index 000000000..ad62e8d8e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyMissingReturnStatement.html @@ -0,0 +1,22 @@ + + +报告具有非 void 返回类型的方法结尾缺少 return 语句。 +方法的执行流应该可以执行到方法结尾。 +

示例:

+
+
+String foo(int a) {
+  if (a > 0) {
+    return "more than zero"
+  }
+} // foo(-1) 将返回 'null'
+
+int bar(int a) {
+  if (a > 0) {
+    return a
+  }
+} // bar(-1) 将失败并引发运行时异常
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyMultipleReturnPointsPerMethod.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyMultipleReturnPointsPerMethod.html new file mode 100644 index 000000000..e029cfaf8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyMultipleReturnPointsPerMethod.html @@ -0,0 +1,21 @@ + + +报告返回点过多的方法。 返回点过多的方法可能令人困惑且难以重构。 +

示例:

+
+
+  int foo(int a) {
+    if (a > 0) {
+      return a
+    }
+    if (a < 0) return -a
+    return 0
+  }
+
+
+ +

+ 使用下面提供的字段可指定方法的最大可接受返回点数量。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyNegatedConditional.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyNegatedConditional.html new file mode 100644 index 000000000..f3db55211 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyNegatedConditional.html @@ -0,0 +1,12 @@ + + +报告条件被否定的条件表达式。 +翻转条件表达式分支的顺序通常会增加此类语句的清晰度。 +

示例:

+
+
+~condition ? "1" : "2"
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyNegatedIf.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyNegatedIf.html new file mode 100644 index 000000000..ee96b8467 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyNegatedIf.html @@ -0,0 +1,16 @@ + + +报告包含 else 分支且条件被否定的 if 语句。 +翻转 ifelse 分支的顺序通常会改进此类语句的清晰度。 +

示例:

+
+
+if (!condition) {
+  return "1"
+} else {
+  return "2"
+}
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyNestedAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyNestedAssignment.html new file mode 100644 index 000000000..6ff91f1d4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyNestedAssignment.html @@ -0,0 +1,12 @@ + + +报告嵌套在其他表达式中的赋值表达式。 +虽然极其简洁,但此类表达式可能令人困惑,并违反一般设计原则,即给定结构只应发挥一种作用。 +

示例:

+
+
+a = b = 1
+
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyNestedConditional.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyNestedConditional.html new file mode 100644 index 000000000..aa2faf434 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyNestedConditional.html @@ -0,0 +1,12 @@ + + +报告嵌套在其他条件表达式中的三元条件表达式。 +此类嵌套条件可能非常令人困惑。 出于此检查的目的,"Elvis" 表达式将算作条件表达式。 +

示例:

+
+
+return (condition ? "result" : null) ?: "fail"
+
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyNestedSwitch.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyNestedSwitch.html new file mode 100644 index 000000000..0701d057b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyNestedSwitch.html @@ -0,0 +1,24 @@ + + +报告嵌套在其他 switch 语句中的 switch 语句。 +此类嵌套 switch 语句令人困惑,并且可能导致意外行为。 +

示例:

+
+
+switch (outer) {
+  case 1:
+    switch (inner) {
+      case 1:
+        print "inner 1"
+        break
+      default:
+        print "inner default"
+    }
+    break
+  default:
+    print "default"
+}
+
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyNestedSynchronizedStatement.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyNestedSynchronizedStatement.html new file mode 100644 index 000000000..a258061d6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyNestedSynchronizedStatement.html @@ -0,0 +1,8 @@ + + +报告嵌套的 synchronized 语句。 +

+ 嵌套的 synchronized 语句要么冗余(如果锁定对象相同),要么容易导致死锁。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyNonShortCircuitBoolean.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyNonShortCircuitBoolean.html new file mode 100644 index 000000000..217b1193f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyNonShortCircuitBoolean.html @@ -0,0 +1,20 @@ + + +报告布尔运算符 'and' 和 'or' 的非短路形式(& +和 |)。 +

+ 非短路版本偶尔有用,但是,它们通常是由非短路形式(&& + 和 ||)拼写错误导致的,并且可能产生难以捉摸的错误。 +

+ +

示例:

+

+if (a & b) {}
+
+

在应用快速修复后:

+

+if (a && b) {}
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyNotifyWhileNotSynchronized.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyNotifyWhileNotSynchronized.html new file mode 100644 index 000000000..109b6f6ce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyNotifyWhileNotSynchronized.html @@ -0,0 +1,9 @@ + + +报告不是在相应的 synchronized 语句或 synchronized 方法中进行的 notify()notifyAll() 调用。 +

+ 在没有持有锁定的对象上调用这些方法会导致抛出 IllegalMonitorStateException。 + 此类结构不一定错误,因为在调用该包含方法前可能已获取必要的锁定,但即便如此,还是要仔细查看。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyOctalInteger.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyOctalInteger.html new file mode 100644 index 000000000..09a309b69 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyOctalInteger.html @@ -0,0 +1,8 @@ + + +报告八进制整数文字。 +

+ 某些编码标准禁止使用八进制文字,因为它们可能容易与十进制文字混淆。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyOverlyComplexArithmeticExpression.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyOverlyComplexArithmeticExpression.html new file mode 100644 index 000000000..dae63e3c4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyOverlyComplexArithmeticExpression.html @@ -0,0 +1,12 @@ + + +报告包含太多项的算术表达式。 +

+ 此类表达方式可能令人困惑,并且容易出错。 +

+ +

+ 使用最大项数字段可指定算数表达式中允许的最大项数。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyOverlyComplexBooleanExpression.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyOverlyComplexBooleanExpression.html new file mode 100644 index 000000000..06c7162b1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyOverlyComplexBooleanExpression.html @@ -0,0 +1,12 @@ + + +报告包含太多项的布尔表达式。 +

+ 此类表达方式可能令人困惑,并且容易出错。 +

+ +

+ 使用最大项数字段可以指定布尔表达式中允许的最大项数。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyOverlyComplexMethod.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyOverlyComplexMethod.html new file mode 100644 index 000000000..e4344ea89 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyOverlyComplexMethod.html @@ -0,0 +1,12 @@ + + +报告具有过高循环复杂度的方法。 +

+ 循环复杂度基本上是方法中分支点数量的度量。 循环复杂度过高的方法可能令人困惑且难以测试。 +

+ +

+ 使用方法复杂度限制字段可指定方法的最大可接受循环复杂度。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyOverlyLongMethod.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyOverlyLongMethod.html new file mode 100644 index 000000000..2ae0e8ada --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyOverlyLongMethod.html @@ -0,0 +1,12 @@ + + +报告过长的方法。 +

+ 过长的方法可能令人困惑,并且表明可能有必要重构。 +

+ +

+ 使用每个方法的最大语句数字段可指定方法的最大可接受非注释源代码语句数量。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyOverlyNestedMethod.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyOverlyNestedMethod.html new file mode 100644 index 000000000..844922bb6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyOverlyNestedMethod.html @@ -0,0 +1,12 @@ + + +报告方法体嵌套过深的方法。 +

+ 语句嵌套过深的方法可能令人困惑,并且表明可能有必要重构。 +

+ +

+ 使用最大嵌套深度字段可指定方法的最大可接受嵌套深度。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyParameterNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyParameterNamingConvention.html new file mode 100644 index 000000000..b64e44da6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyParameterNamingConvention.html @@ -0,0 +1,9 @@ + + +报告名称太短、太长或不遵循指定正则表达式模式的方法形参。 + +

+ 使用下面提供的字段可指定方法形参名称的预期最小长度、最大长度和正则表达式。

+

正则表达式应以标准 java.util.regex 格式指定。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyPointlessArithmetic.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyPointlessArithmetic.html new file mode 100644 index 000000000..c5142bb5c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyPointlessArithmetic.html @@ -0,0 +1,17 @@ + + +报告无意义的算术表达式。 +

+ 此类表达式包括加 0 或减 0、乘以 0 或 1、除以 1 以及 0 移位。 此类表达式可能是未完全完成的自动重构所致,在任何情况下都不太可能是开发人员有意为之。 +

+ +

示例:

+

+  a + 0
+
+

在应用快速修复后:

+

+  a
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyPointlessBoolean.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyPointlessBoolean.html new file mode 100644 index 000000000..cd8b2dd29 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyPointlessBoolean.html @@ -0,0 +1,17 @@ + + +报告无意义或复杂的无意义布尔表达式。 +

+ 此类表达式包括与 true 的合取、与 false 的析取、与布尔文字的相等比较或布尔文字求反。 此类表达式可能是未完全完成的自动重构所致,在任何情况下都不太可能是开发人员有意为之。 +

+ +

示例:

+

+  if (someBool && true) {}
+
+

在应用快速修复后:

+

+  if (someBool) {}
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyPublicFieldAccessedInSynchronizedContext.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyPublicFieldAccessedInSynchronizedContext.html new file mode 100644 index 000000000..c00bbcf19 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyPublicFieldAccessedInSynchronizedContext.html @@ -0,0 +1,8 @@ + + +报告在同步上下文中访问的非 final、非 private 字段。 +

+ 不能保证始终以同步方式访问非 private 字段,此类“部分同步的”访问可能意外导致不一致的数据结构。 出于此检查的目的,将忽略构造函数和初始值设定项中的访问。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyRangeTypeCheck.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyRangeTypeCheck.html new file mode 100644 index 000000000..45b6128b8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyRangeTypeCheck.html @@ -0,0 +1,6 @@ + + +报告在没有 next()previous() 方法 +或者在没有实现 java.lang.Comparable 接口的范围中使用的类型。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyResultOfAssignmentUsed.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyResultOfAssignmentUsed.html new file mode 100644 index 000000000..ea95fc4f4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyResultOfAssignmentUsed.html @@ -0,0 +1,8 @@ + + +报告嵌套在其他表达式中以立即使用所赋值的赋值表达式。 +

+ 此类表达式可能令人困惑,并违反一般设计原则,即给定结构只应发挥一种作用。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyResultOfIncrementOrDecrementUsed.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyResultOfIncrementOrDecrementUsed.html new file mode 100644 index 000000000..e792652ce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyResultOfIncrementOrDecrementUsed.html @@ -0,0 +1,8 @@ + + +报告嵌套在其他表达式中的增量或减量表达式。 +

+ 此类表达式可能令人困惑,并违反一般设计原则,即给定结构只应发挥一种作用。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyResultOfObjectAllocationIgnored.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyResultOfObjectAllocationIgnored.html new file mode 100644 index 000000000..c074b3810 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyResultOfObjectAllocationIgnored.html @@ -0,0 +1,8 @@ + + +报告忽略运算结果的对象分配。 +

+ 此类分配表达式虽然在 Groovy 中合法,但通常要么是无意为之,要么表明存在复杂的对象初始化策略。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyReturnFromClosureCanBeImplicit.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyReturnFromClosureCanBeImplicit.html new file mode 100644 index 000000000..8b8fa4645 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyReturnFromClosureCanBeImplicit.html @@ -0,0 +1,23 @@ + + +报告闭包末尾可以设置为隐式的返回声明。 +

+ Groovy 闭包隐式返回其中最后一条语句的值。 +

+ +

示例:

+

+  def foo = {
+    return 1
+  }
+
+ +

在应用快速修复后:

+

+  def foo = {
+    1
+  }
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyReturnFromFinallyBlock.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyReturnFromFinallyBlock.html new file mode 100644 index 000000000..43dc26536 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyReturnFromFinallyBlock.html @@ -0,0 +1,8 @@ + + +报告 finally 块中的 return 语句。 +

+ 虽然偶尔是有意为之,但此类 return 语句可能会掩盖抛出的异常,并导致调试复杂化。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovySillyAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/GroovySillyAssignment.html new file mode 100644 index 000000000..1adbd9ba8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovySillyAssignment.html @@ -0,0 +1,5 @@ + + +报告变量对自身的赋值。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyStaticMethodNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyStaticMethodNamingConvention.html new file mode 100644 index 000000000..c1e704269 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyStaticMethodNamingConvention.html @@ -0,0 +1,9 @@ + + +报告名称太短、太长或不遵循指定正则表达式模式的 static 方法。 + +

+ 使用下面提供的字段可指定 static 方法名称的预期最小长度、最大长度和正则表达式。

+

正则表达式应以标准 java.util.regex 格式指定。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyStaticVariableNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyStaticVariableNamingConvention.html new file mode 100644 index 000000000..80742ccc7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyStaticVariableNamingConvention.html @@ -0,0 +1,12 @@ + + +报告名称太短、太长或不遵循指定正则表达式模式的 static 变量。 +

+ 此检查不会检查常量(即被声明为 static final 的不可变类型的变量)。 +

+ +

+ 使用下面提供的字段可指定 static 变量名称的预期最小长度、最大长度和正则表达式。 +

正则表达式应以标准 java.util.regex 格式指定。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovySwitchStatementWithNoDefault.html b/original-plugin-raw/zh/inspectionDescriptions/GroovySwitchStatementWithNoDefault.html new file mode 100644 index 000000000..2b6eeec5f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovySwitchStatementWithNoDefault.html @@ -0,0 +1,8 @@ + + +报告不包含 default 标签的 switch 语句。 +

+ 某些编码实践可能会坚持将此标签添加到所有 switch 语句。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovySynchronizationOnNonFinalField.html b/original-plugin-raw/zh/inspectionDescriptions/GroovySynchronizationOnNonFinalField.html new file mode 100644 index 000000000..cef6851dc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovySynchronizationOnNonFinalField.html @@ -0,0 +1,8 @@ + + +报告其中的锁定表达式为非 final 字段的 synchronized 语句。 +

+ 此类语句不太可能包含有用的语义,因为不同的线程即便在对同一对象操作时也可能在不同的对象上锁定。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovySynchronizationOnThis.html b/original-plugin-raw/zh/inspectionDescriptions/GroovySynchronizationOnThis.html new file mode 100644 index 000000000..2df527772 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovySynchronizationOnThis.html @@ -0,0 +1,9 @@ + + +报告使用 this 作为其锁定表达式的同步。 +

+ 报告的结构包括锁定 thissynchronized 块,以及对以 wait() 为目标的 wait() notify()notifyAll() 的调用。 + 此类结构(如 synchronized 方法)会导致难以跟踪给定对象上锁定的对象,并且可能导致对象遭到“拒绝服务”攻击。 替代做法是考虑在 private 实例变量上锁定,从而完全控制对该对象的访问。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovySynchronizationOnVariableInitializedWithLiteral.html b/original-plugin-raw/zh/inspectionDescriptions/GroovySynchronizationOnVariableInitializedWithLiteral.html new file mode 100644 index 000000000..8640f0741 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovySynchronizationOnVariableInitializedWithLiteral.html @@ -0,0 +1,8 @@ + + +报告在使用文字初始化的对象上锁定的 synchronized 块。 +

+ 字符串文字是暂存的,Number 文字可以从缓存中分配。 正因为如此,可能系统的其他某些部分(使用通过相同文字初始化的对象)实际上会包含对完全相同的对象的引用。 如果字符串被认为是 private 对象,这可能会产生意外的死锁情况。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovySynchronizedMethod.html b/original-plugin-raw/zh/inspectionDescriptions/GroovySynchronizedMethod.html new file mode 100644 index 000000000..a8c5f523d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovySynchronizedMethod.html @@ -0,0 +1,8 @@ + + +报告方法上的 synchronized 修饰符。 +

+ 某些编码标准禁止使用 synchronized 修饰符,而是支持 synchronized 语句。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovySystemRunFinalizersOnExit.html b/original-plugin-raw/zh/inspectionDescriptions/GroovySystemRunFinalizersOnExit.html new file mode 100644 index 000000000..1d51fb6eb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovySystemRunFinalizersOnExit.html @@ -0,0 +1,9 @@ + + +报告对 System.runFinalizersOnExit() 的调用。 +

+ 此调用是 Java 语言中最危险的调用之一。 它本质上为非线程安全,可能导致数据损坏、死锁,并可能影响远离调用点的程序部分。 + 已弃用,强烈建议不要使用。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyThreadStopSuspendResume.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyThreadStopSuspendResume.html new file mode 100644 index 000000000..1d77923f9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyThreadStopSuspendResume.html @@ -0,0 +1,8 @@ + + +报告对 Thread.stop()Thread.suspend()Thread.resume() 的调用。 +

+ 这些调用在本质上容易导致数据损坏和死锁,因此强烈建议不使用。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyThrowFromFinallyBlock.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyThrowFromFinallyBlock.html new file mode 100644 index 000000000..0b788b328 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyThrowFromFinallyBlock.html @@ -0,0 +1,8 @@ + + +报告 finally 块中的 throw 语句。 +

+ 虽然偶尔是有意为之,但此类 throw 语句可能会掩盖抛出的异常,并导致调试变得极其复杂。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyTrivialConditional.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyTrivialConditional.html new file mode 100644 index 000000000..1de3d1d00 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyTrivialConditional.html @@ -0,0 +1,16 @@ + + +报告 x ? true : false 或类似形式并且可以大大简化的三元条件运算符。 + +

示例:

+

+  foo() ? true : false
+
+ +

在应用快速修复后:

+

+foo()
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyTrivialIf.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyTrivialIf.html new file mode 100644 index 000000000..76e502791 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyTrivialIf.html @@ -0,0 +1,19 @@ + + +报告可以简化为单个赋值或 return 语句的 +if 语句。 + +

示例:

+

+  if (foo())
+    return true;
+  else
+    return false;
+
+ +

在应用快速修复后:

+

+  return foo();
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyUncheckedAssignmentOfMemberOfRawType.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyUncheckedAssignmentOfMemberOfRawType.html new file mode 100644 index 000000000..711e6dfbb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyUncheckedAssignmentOfMemberOfRawType.html @@ -0,0 +1,10 @@ + + +

报告原始类型成员中的未检查的赋值。

+

示例:

+

+  List list = new ArrayList()
+  List<String> a = list.get(0)
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyUnconditionalWait.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnconditionalWait.html new file mode 100644 index 000000000..aaa596e87 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnconditionalWait.html @@ -0,0 +1,6 @@ + + +

报告在同步上下文中无条件调用的 wait()。 +通常,wait() 用于在某个条件为 true 前阻塞线程。 如果是无条件调用 wait(),则通常表示已在获取锁定之前检查条件。 在这种情况下,如果条件在检查的时间与获得锁定的时间之间变为 true,则可能会发生数据竞争。 虽然此检查发现的结构未必不正确,但肯定值得检查。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyUnnecessaryContinue.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnnecessaryContinue.html new file mode 100644 index 000000000..347f87210 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnnecessaryContinue.html @@ -0,0 +1,21 @@ + + +

报告循环中最后能够到达的 continue 语句。 +这些 continue 语句是不必要的语句,可以安全移除。

+

示例:

+

+  for(int i in array) {
+      println(i)
+      continue
+  }
+
+

在应用快速修复后:

+

+  for(int i in array) {
+      println(i)
+  }
+
+ +

有关更多信息,请参阅 Java 中的相同检查。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyUnnecessaryReturn.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnnecessaryReturn.html new file mode 100644 index 000000000..166d0fb83 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnnecessaryReturn.html @@ -0,0 +1,20 @@ + + +

报告返回 void 的构造函数和方法结尾的 return 语句。 此类调用不必要,并且可以安全移除。

+

示例: +


+  void foo (String s){
+      print(s)
+      return
+  }
+
+

在应用快速修复后:

+

+  void foo (String s){
+      print(s)
+  }
+
+ +

有关更多信息,请参阅 Java 中的相同检查。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyUnreachableStatement.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnreachableStatement.html new file mode 100644 index 000000000..dbe4e863b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnreachableStatement.html @@ -0,0 +1,18 @@ + + +

报告无法到达的语句。 如果该语句位于无线循环、returnbreakcontinue 语句后,则可能发生这种情况。

+

示例: +


+  void foo (int n) {
+      if (n < 1) {
+          return
+          print('This statement is unreachable')
+      }
+      while (true){
+          print ('Hello, world!')
+      }
+      print('This statement is unreachable too')
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyUnsynchronizedMethodOverridesSynchronizedMethod.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnsynchronizedMethodOverridesSynchronizedMethod.html new file mode 100644 index 000000000..093a5d579 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnsynchronizedMethodOverridesSynchronizedMethod.html @@ -0,0 +1,21 @@ + + +

报告重写 synchronized 方法的非 synchronized 方法。

+

示例:

+

+  abstract class Base {
+      synchronized void foo() {
+          // ...
+      }
+  }
+  class Derived extends Base {
+      @Override
+      void foo() {
+          super.foo()
+            // ...
+        }
+    }
+
+

在这里,类 Bar 中的非 synchronized 方法 foo() 会重写 synchronized 方法。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyUntypedAccess.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyUntypedAccess.html new file mode 100644 index 000000000..8c3c06eeb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyUntypedAccess.html @@ -0,0 +1,5 @@ + + +

报告无法确定类型的引用表达式。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyUnusedAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnusedAssignment.html new file mode 100644 index 000000000..74083e016 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnusedAssignment.html @@ -0,0 +1,14 @@ + + +

报告赋值后因值从未使用而导致变量冗余的情况。

+

如果变量未使用,建议将其移除,以缩短代码并避免冗余分配。

+

报告的情况如下:

+
    +
  • 该变量赋值后从未读取
  • +
  • 在读取下一个变量之前,该值始终被另一个赋值重写
  • +
  • 变量初始值设定项冗余(由于以上两种原因之一)
  • +
+ +

有关更多信息,请参阅 Java 中的相同检查。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyUnusedCatchParameter.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnusedCatchParameter.html new file mode 100644 index 000000000..bbf8b6c74 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnusedCatchParameter.html @@ -0,0 +1,24 @@ + + +

报告未在相应的块中使用的 catch 形参。 此检查不会报告任何命名为 "ignore"或 "ignored" 的 catch 形参。

+

示例:

+

+  try {
+      def arr = new int[3]
+      arr[5] = 5
+  } catch(Exception ex) {
+      println('Catching the exception')
+  }
+
+

此处的形参 ex 永远不会在 catch 块中使用。 +

在应用快速修复后:

+

+  try {
+      def arr = new int[3]
+      arr[5] = 5
+  } catch(Exception ignored) {
+      println('Catching the exception')
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyUnusedDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnusedDeclaration.html new file mode 100644 index 000000000..904d77765 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnusedDeclaration.html @@ -0,0 +1,18 @@ + + +

报告未使用的类、方法和字段。

+

示例:

+

+  public class Department {
+      private Organization myOrganization;
+  }
+
+

在这里,Department 显式引用 Organization,但如果 Department 类未使用,则此检查将报告这两个类。 + +

+该检查还会报告其方法、所有方法实现/重写器未使用的形参,以及已声明但未使用的局部变量。 +

+ +

有关更多信息,请参阅 Java 中的相同检查。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyUnusedIncOrDec.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnusedIncOrDec.html new file mode 100644 index 000000000..f778c2903 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyUnusedIncOrDec.html @@ -0,0 +1,5 @@ + + +

报告未使用的增量和减量表达式。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyVariableCanBeFinal.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyVariableCanBeFinal.html new file mode 100644 index 000000000..601787774 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyVariableCanBeFinal.html @@ -0,0 +1,18 @@ + + +

报告可能添加了 final 修饰符的形参或局部变量。

+ +

示例:

+

+  def list = [1,2,3]
+  return list
+
+

在应用快速修复后: +


+  final def list = [1,2,3]
+  return list
+
+ +

有关更多信息,请参阅 Java 中的相同检查。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyVariableNotAssigned.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyVariableNotAssigned.html new file mode 100644 index 000000000..60b7ee5c5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyVariableNotAssigned.html @@ -0,0 +1,5 @@ + + +

报告可能未初始化的变量。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyWaitCallNotInLoop.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyWaitCallNotInLoop.html new file mode 100644 index 000000000..8651b749e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyWaitCallNotInLoop.html @@ -0,0 +1,6 @@ + + +

报告不是在循环中进行的 wait() 调用。

+

wait() 通常用于挂起线程,直到某个条件变成 true 为止,并且应在 wait() 返回后检查该条件。 使用循环很容易做到这一点。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyWaitWhileNotSynchronized.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyWaitWhileNotSynchronized.html new file mode 100644 index 000000000..52f56b5da --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyWaitWhileNotSynchronized.html @@ -0,0 +1,7 @@ + + +

报告不是在相应的 synchronized 语句或 synchronized 方法中进行的 wait() 调用。

+

在没有持有锁定的对象上调用 wait() 会导致抛出 IllegalMonitorStateException。 +此类结构不一定错误,因为在调用该包含方法前可能已获取必要的锁定,但即便如此,还是要仔细查看。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GroovyWhileLoopSpinsOnField.html b/original-plugin-raw/zh/inspectionDescriptions/GroovyWhileLoopSpinsOnField.html new file mode 100644 index 000000000..267eed206 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GroovyWhileLoopSpinsOnField.html @@ -0,0 +1,33 @@ + + +

报告在非 volatile 字段值上自旋,等待它被另一个线程更改的 while 循环。

+

+除了在循环内完成少量工作时可能会非常耗费 CPU 之外,此类循环很可能具有与预期不同的语义。 即便另一个线程改变了该字段的值,Java 内存模型也允许该循环永不完成。 +

+

示例:

+

+  class SpinsOnField {
+      boolean ready = false;
+
+      void run() {
+          // 即使在从其他线程调用 markAsReady 后,
+          // 该循环也可能永不完成
+          while (!ready) {
+          }
+          // 执行某些工作
+      }
+
+      void markAsReady() {
+          ready = true;
+      }
+  }
+
+

+此外,自 Java 9 起,建议在 volatile 字段的自旋循环中调用 Thread.onSpinWait(),这可能会显著提高在某些硬件上的性能。 +

+ +

+使用下面的复选框可使此检查仅报告空 while 循环。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GspInspection.html b/original-plugin-raw/zh/inspectionDescriptions/GspInspection.html new file mode 100644 index 000000000..b8d0ec4ca --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GspInspection.html @@ -0,0 +1,10 @@ + + +报告 GSP 标记特性的不一致。 +

示例:

+
    +
  • 如果存在特性 plugin,则将标记 <g:render> 中的特性 contextPath 标记为未使用
  • +
  • 如果标记 <if> 既没有 test 特性,也没有 env 特性,则以警告进行标注
  • +
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/Guava.html b/original-plugin-raw/zh/inspectionDescriptions/Guava.html new file mode 100644 index 000000000..d234dd48a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Guava.html @@ -0,0 +1,19 @@ + + +报告可以迁移到标准 Java API 调用的 Guava 函数基元的用法。 +

例如,该检查会报告类和接口(如 FluentIterableOptionalFunctionPredicateSupplier)的用法。

+

示例:

+

+  ImmutableList<String> results = FluentIterable.from(List.of(1, 2, 3)).transform(Object::toString).toList();
+
+

在应用快速修复后:

+

+  List<String> results = List.of(1, 2, 3).stream().map(Object::toString).collect(Collectors.toList());
+
+

+该快速修复可能会改变语义。 Guava 的一些惰性求值的可迭代对象可以转换为预求值的可迭代对象。 +

+ +

仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtClientClassFromNonInheritedModule.html b/original-plugin-raw/zh/inspectionDescriptions/GwtClientClassFromNonInheritedModule.html new file mode 100644 index 000000000..8f49916d0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtClientClassFromNonInheritedModule.html @@ -0,0 +1,7 @@ + + +报告 GWT 模块中的客户端代码,该模块使用来自当前模块中未继承的另一个模块的客户端代码。 +

只有当 gwt.xml 文件中有相应的 inherits 标记时,来自一个 GWT 模块的客户端代码才能使用来自另一个 GWT 模块的客户端代码。

+

快速修复将必要的 inherits 标记添加到 gwt.xml 文件中。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtCssResourceErrors.html b/original-plugin-raw/zh/inspectionDescriptions/GwtCssResourceErrors.html new file mode 100644 index 000000000..e6d1afc40 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtCssResourceErrors.html @@ -0,0 +1,7 @@ + + +报告扩展 CssResource 的接口和相应的 CSS 文件之间的不一致。 +

来自扩展 com.google.gwt.resources.client.CssResource 的接口的方法必须对应于 CSS 类或链接的 CSS 文件中的 @def 声明。

+

快速修复为 CSS 类和 @def 声明创建了缺失的方法,反之亦然。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtDefaultPackageNotRegistered.html b/original-plugin-raw/zh/inspectionDescriptions/GwtDefaultPackageNotRegistered.html new file mode 100644 index 000000000..ae69a0095 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtDefaultPackageNotRegistered.html @@ -0,0 +1,9 @@ + + +报告一个 GWT 模块描述符,它不注册默认的 clientpublic 文件夹,但注册自定义源或公共文件夹。 +

仅当 gwt.xml 文件中没有 sourcesuper-source 标记时,GWT 才隐式地将 client 文件夹视为客户端源路径。 + 所以,如果 client 文件夹存在,但是没有在 gwt.xml 文件中注册,并且 gwt.xml 声明了自定义 source 或者 super-source 标签,很可能这表明一个错误。

+

同样,如果 gwt.xml 声明了自定义 public 文件夹,但没有使用默认名称注册现有文件夹,这也可能表明存在错误。

+

快速修复将默认文件夹的显式注册添加到 gwt.xml 文件中。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtDeprecatedEventListeners.html b/original-plugin-raw/zh/inspectionDescriptions/GwtDeprecatedEventListeners.html new file mode 100644 index 000000000..4b167780f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtDeprecatedEventListeners.html @@ -0,0 +1,8 @@ + + +报告使用 GWT 1.6 中已弃用的事件监听器接口的代码。 +

来自 com.google.gwt.user.client.ui 软件包的 *Listener 接口(例如 com.google.gwt.user.client.ui.ClickListener)已自 GWT 1.6 版被弃用。

+

快速修复迁移代码以使用相应的 *Handler 程序接口。

+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtDeprecatedPropertyKeyJavadocTag.html b/original-plugin-raw/zh/inspectionDescriptions/GwtDeprecatedPropertyKeyJavadocTag.html new file mode 100644 index 000000000..c8721f88a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtDeprecatedPropertyKeyJavadocTag.html @@ -0,0 +1,8 @@ + + +报告 Javadoc 注释中 @gwt.key 标记的用法。 +

自 GWT 1.5 已弃用此标签

+

快速修复用 @LocalizableResource.Key 注解替换了已弃用的标记。

+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtInconsistentI18nInterface.html b/original-plugin-raw/zh/inspectionDescriptions/GwtInconsistentI18nInterface.html new file mode 100644 index 000000000..9f1d586ee --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtInconsistentI18nInterface.html @@ -0,0 +1,9 @@ + + +报告扩展 ConstantsMessages 的接口的方法与相应文件中定义的属性之间的不一致。 +

来自扩展 com.google.gwt.i18n.client.Constantscom.google.gwt.i18n.client.Messages 接口的接口方法必须对应于来自链接属性文件的属性。 +

+

快速修复为属性文件中找到的属性创建缺失的方法,并为接口中定义的方法创建缺失的属性。

+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtInconsistentSerializableClass.html b/original-plugin-raw/zh/inspectionDescriptions/GwtInconsistentSerializableClass.html new file mode 100644 index 000000000..37535f510 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtInconsistentSerializableClass.html @@ -0,0 +1,8 @@ + + +报告实现了 IsSerializableSerializable 接口但不满足可序列化类要求的类。 +

可序列化的类必须有一个没有实参的公共构造函数,并且它们所有没有 transient 修饰符的字段都必须是可序列化的。

+

如果缺少无实参的构造函数,快速修复会添加一个,或者为其设置 public 修饰符。

+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtIncorrectArgumentOfGwtCreateMethod.html b/original-plugin-raw/zh/inspectionDescriptions/GwtIncorrectArgumentOfGwtCreateMethod.html new file mode 100644 index 000000000..06362b153 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtIncorrectArgumentOfGwtCreateMethod.html @@ -0,0 +1,5 @@ + + +报告使用不是类文字(ClassName.class 表达式)的实参调用 GWT.create() 方法的代码。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtJavaFromJSMethodCalls.html b/original-plugin-raw/zh/inspectionDescriptions/GwtJavaFromJSMethodCalls.html new file mode 100644 index 000000000..f7804a58c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtJavaFromJSMethodCalls.html @@ -0,0 +1,6 @@ + + +报告来自 JavaScript 本机接口方法的 Java 方法的错误调用。 +

方法调用中的形参个数必须与方法声明中的实参个数相等,非 static 方法不能在不指定实例的情况下调用。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtJavaScriptReferences.html b/original-plugin-raw/zh/inspectionDescriptions/GwtJavaScriptReferences.html new file mode 100644 index 000000000..b18330cf6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtJavaScriptReferences.html @@ -0,0 +1,6 @@ + + +报告从 JSNI 方法到 Java 类、方法或字段的无效引用。 + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtMethodWithParametersInConstantsInterface.html b/original-plugin-raw/zh/inspectionDescriptions/GwtMethodWithParametersInConstantsInterface.html new file mode 100644 index 000000000..b1ab7f99e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtMethodWithParametersInConstantsInterface.html @@ -0,0 +1,8 @@ + + +报告在扩展 Constants 接口的接口中带有形参的方法。 +

扩展 com.google.gwt.i18n.client.Constants 的接口中的方法对应于链接的属性文件中的非形参化属性,并且不能有形参。

+

快速修复会更改接口以扩展支持形参化属性的 com.google.gwt.i18n.client.Messages 接口。

+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtObsoleteTypeArgsJavadocTag.html b/original-plugin-raw/zh/inspectionDescriptions/GwtObsoleteTypeArgsJavadocTag.html new file mode 100644 index 000000000..97b7b6f94 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtObsoleteTypeArgsJavadocTag.html @@ -0,0 +1,8 @@ + + +报告 Javadoc 注释中 @gwt.typeArgs 标记的用法。 +

此标记在 GWT 1.5 中已弃用,应替换为形参化类型。

+

快速修复删除了已弃用的标签并添加了必要的类型形参。

+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtOverlayTypeRestrictionsViolated.html b/original-plugin-raw/zh/inspectionDescriptions/GwtOverlayTypeRestrictionsViolated.html new file mode 100644 index 000000000..4f767d73d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtOverlayTypeRestrictionsViolated.html @@ -0,0 +1,7 @@ + + +报告覆盖类型(JavaScriptObject 类的子类)中的问题。 +

这种类不能声明可重写的方法,它们的所有内部类都必须为 static,并必须有一个没有实参且主体为空的 protected 构造函数。

+

如果可能,快速修复会添加所需的限定符。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtServiceNotRegistered.html b/original-plugin-raw/zh/inspectionDescriptions/GwtServiceNotRegistered.html new file mode 100644 index 000000000..45e483625 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtServiceNotRegistered.html @@ -0,0 +1,7 @@ + + +报告未在 web.xml 文件中注册为 servlet 的 GWT 远程服务。 +

快速修复将必要的 servletservlet-mapping 标记添加到 web.xml。

+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtSetServiceEntryPointCalls.html b/original-plugin-raw/zh/inspectionDescriptions/GwtSetServiceEntryPointCalls.html new file mode 100644 index 000000000..0293120fa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtSetServiceEntryPointCalls.html @@ -0,0 +1,7 @@ + + +报告对 ServiceDefTarget.setServiceEntryPoint() 方法的调用,该方法可以由 @RemoteServiceRelativePath 注解替换。 +

快速修复将执行替换。

+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtToHtmlReferences.html b/original-plugin-raw/zh/inspectionDescriptions/GwtToHtmlReferences.html new file mode 100644 index 000000000..fa5c1ac1b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtToHtmlReferences.html @@ -0,0 +1,6 @@ + + +报告不引用 HTML 标记的 id 特性的 RootPanel.get 方法的实参。 +

快速修复建议用有效值替换此类实参。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtUiBinderErrors.html b/original-plugin-raw/zh/inspectionDescriptions/GwtUiBinderErrors.html new file mode 100644 index 000000000..3338b3fce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtUiBinderErrors.html @@ -0,0 +1,6 @@ + + +报告 UiBinder 接口的实现与其 ui.xml 文件之间的不一致。 +

此类实现必须链接到 ui.xml 文件,并且其根标记必须与 UiBinder 引用中指定的类型形参匹配。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtUiFieldAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/GwtUiFieldAssignment.html new file mode 100644 index 000000000..b49629bfe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtUiFieldAssignment.html @@ -0,0 +1,7 @@ + + +报告对标有 @UiField 注解的字段的赋值。 +

此类字段默认由 @UiField 初始化,不应由用户代码更改。 如果要在代码中初始化此类字段,则需要将 @UiField 注解中的 provided 特性设置为 true

+

快速修复将 @UiField 注解中的 provided 特性设置为 true

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtUiFieldErrors.html b/original-plugin-raw/zh/inspectionDescriptions/GwtUiFieldErrors.html new file mode 100644 index 000000000..6a0c1417e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtUiFieldErrors.html @@ -0,0 +1,7 @@ + + +报告用 @UiField 注解的字段和 ui.xml 文件中 ui:field 特性之间的不一致。 +

在 ui.xml 文件中必须正好有一个标记通过 ui: field 特性链接到此类字段,字段不能为 private,并且它的类型和链接标记必须匹配。

+

如有必要,快速修复删除 private 修饰符并为字段设置适当的类型。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtUiHandlerErrors.html b/original-plugin-raw/zh/inspectionDescriptions/GwtUiHandlerErrors.html new file mode 100644 index 000000000..560fa1eb3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtUiHandlerErrors.html @@ -0,0 +1,6 @@ + + +报告用 @UiHandler 注解的方法中的不一致。 +

此类方法不能为 private,其形参的类型必须与事件类相对应。 它所引用的字段必须在 ui.xml 文件中声明。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/GwtUiXmlReferences.html b/original-plugin-raw/zh/inspectionDescriptions/GwtUiXmlReferences.html new file mode 100644 index 000000000..5790b39cb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/GwtUiXmlReferences.html @@ -0,0 +1,7 @@ + + +报告 ui.xml 文件中对 CSS 类和 Java 方法的无效引用。 +

快速修复建议创建一个缺失的元素。

+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/HCLBlockConflictingProperties.html b/original-plugin-raw/zh/inspectionDescriptions/HCLBlockConflictingProperties.html new file mode 100644 index 000000000..4f207c75a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HCLBlockConflictingProperties.html @@ -0,0 +1,7 @@ + + +报告相互冲突的块属性

+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HCLBlockMissingProperty.html b/original-plugin-raw/zh/inspectionDescriptions/HCLBlockMissingProperty.html new file mode 100644 index 000000000..8447d22d7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HCLBlockMissingProperty.html @@ -0,0 +1,7 @@ + + + 报告缺少必需属性的块

+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HCLDeprecatedElement.html b/original-plugin-raw/zh/inspectionDescriptions/HCLDeprecatedElement.html new file mode 100644 index 000000000..08720460a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HCLDeprecatedElement.html @@ -0,0 +1,7 @@ + + + 报告已弃用的块或属性

+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HCLSimplifyExpression.html b/original-plugin-raw/zh/inspectionDescriptions/HCLSimplifyExpression.html new file mode 100644 index 000000000..cba4430fb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HCLSimplifyExpression.html @@ -0,0 +1,8 @@ + + +报告次优 HCL2 表达式并建议简化。 例如,将 element(list, index) 更改为 list[index](请记住,建议的简化可能会改变语义)。 +

+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HCLUnknownBlockType.html b/original-plugin-raw/zh/inspectionDescriptions/HCLUnknownBlockType.html new file mode 100644 index 000000000..764d43a7b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HCLUnknownBlockType.html @@ -0,0 +1,7 @@ + + + 报告未知类型的块(第一个文字)

+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HILConvertToHCL.html b/original-plugin-raw/zh/inspectionDescriptions/HILConvertToHCL.html new file mode 100644 index 000000000..19045db30 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HILConvertToHCL.html @@ -0,0 +1,40 @@ + + +

报告旧式 HCL 表达式并建议将其转换为 HCL2 表达式。

+ +

示例:

+ +

+  # Terraform 0.11 配置。 为清楚起见,省略了某些部分。
+resource "azurerm_app_service" "example" {
+ count               = "${length(local.app_services)}"
+ name                = "${lower(lookup(local.app_services[count.index], "kind"))}-appservice"
+ location            = "${azurerm_resource_group.example.location}"
+ resource_group_name = "${azurerm_resource_group.example.name}"
+ app_service_plan_id = "${element(azurerm_app_service_plan.example.*.id, count.index)}"
+
+ site_config {
+   # omitted for clarity
+ }
+}
+
+ +

应用快速修复后:

+ +

+  # Terraform 0.12 配置。 为清楚起见,省略了某些部分。
+resource "azurerm_app_service" "example" {
+ count               = length(local.app_services)
+ name                = "${lower(local.app_services[count.index].kind)}-appservice"
+ location            = azurerm_resource_group.example.location
+ resource_group_name = azurerm_resource_group.example.name
+ app_service_plan_id = azurerm_app_service_plan.example[count.index].id
+
+ site_config {
+    # omitted for clarity
+ }
+}
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HILMissingSelfInContext.html b/original-plugin-raw/zh/inspectionDescriptions/HILMissingSelfInContext.html new file mode 100644 index 000000000..a76808cf0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HILMissingSelfInContext.html @@ -0,0 +1,7 @@ + + + 报告不可用范围的用法,例如 'self' 不在资源配置程序中。

+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HILOperationTypesMismatch.html b/original-plugin-raw/zh/inspectionDescriptions/HILOperationTypesMismatch.html new file mode 100644 index 000000000..44c4bc626 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HILOperationTypesMismatch.html @@ -0,0 +1,7 @@ + + + 报告运算不正确的实参类型

+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HILUnknownResourceType.html b/original-plugin-raw/zh/inspectionDescriptions/HILUnknownResourceType.html new file mode 100644 index 000000000..f600f3eb6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HILUnknownResourceType.html @@ -0,0 +1,7 @@ + + + 报告未知(未在模块中使用)的资源类型用法

+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HILUnresolvedReference.html b/original-plugin-raw/zh/inspectionDescriptions/HILUnresolvedReference.html new file mode 100644 index 000000000..8bb98a808 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HILUnresolvedReference.html @@ -0,0 +1,7 @@ + + + 报告未解析的引用。

+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HTML.html b/original-plugin-raw/zh/inspectionDescriptions/HTML.html new file mode 100644 index 000000000..a2ba39099 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HTML.html @@ -0,0 +1,6 @@ + + +报告非标准 HTML 标记和特性。 +您可以指定不应报告的标记和特性名称。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/HamlNestedTagContent.html b/original-plugin-raw/zh/inspectionDescriptions/HamlNestedTagContent.html new file mode 100644 index 000000000..4df49a9c1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HamlNestedTagContent.html @@ -0,0 +1,5 @@ + + +报告其内容既不在同一行也不嵌套的 Haml 标记。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HardCodedStringLiteral.html b/original-plugin-raw/zh/inspectionDescriptions/HardCodedStringLiteral.html new file mode 100644 index 000000000..65aabb8d1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HardCodedStringLiteral.html @@ -0,0 +1,16 @@ + + +报告硬编码 String 文字的任何实例。 +

硬编码的 String 文字在国际化环境中可能是错误的。 此检查不会报告空字符串和仅包含空格的字符串。 可以使用快速修复将字符串文字转换为 java.util.ResourceBundle.getString() 方法调用。

+ +

使用检查的选项可进一步专门化此检查是否应报告以下位置的字符串:

+
    +
  • 断言语句,如 assert str.equals("message")
  • +
  • 异常构造函数调用,如 new Exception("message")
  • +
  • JUnit 断言调用,如 assertEquals(str, "message")
  • +
  • 返回 String 的方法的唯一实参,如 getStringByKey("key")
  • +
  • 具有合法和现有类名值的文字,如 Class.forName("java.lang.Object")
  • +
  • 具有合法和现有属性键值的文字 bundle.getString("authentication.failed")
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HardcodedActionUrl.html b/original-plugin-raw/zh/inspectionDescriptions/HardcodedActionUrl.html new file mode 100644 index 000000000..50ab96079 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HardcodedActionUrl.html @@ -0,0 +1,17 @@ + + +硬编码的 Struts 操作 URL。 +报告 Struts 操作 URL 为“手动”制作的情况,并建议使用 Struts <url>标记
进行转换。 +
+示例: +

+<a href="namespace/foo!bar.action?param1=value1&param2=value2"/> +

+将被替换为 +

+<a href="<s:url namespace="namespace" action="foo" method="bar"/>
+    <s:param name="param1">值 1</s:param>
+    <s:param name="param2">值 2</s:param>
+</s:url>"/> + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/HardcodedFileSeparators.html b/original-plugin-raw/zh/inspectionDescriptions/HardcodedFileSeparators.html new file mode 100644 index 000000000..51434312b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HardcodedFileSeparators.html @@ -0,0 +1,18 @@ + + +报告字符串或字符文字中的正斜杠 (/) 或反斜杠 (\)。 这些字符通常用作文件分隔符,如果它们被硬编码,则可移植性可能会受到影响。 +

+ 该检查不会报告转义序列内的反斜杠和紧跟在 '<' 字符之后或紧接在 '>' 字符之前的正斜杠,因为它们通常表示 XML 或 HTML 标记而不是文件名。 + 表示 java.util.TimeZone ID 的字符串、作为有效正则表达式的字符串或与 IANA 注册的 MIME 媒体类型等效的字符串也不会被报告。 +

+

示例:

+

+  new File("C:\\Users\\Name");
+
+ +

+ 使用该选项可将 example/* 包含在已识别的媒体类型集中。 + 通常,在示例之外(例如在 Content-Type 标头中)使用 example/* MIME 媒体类型是错误的。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HardcodedLineSeparators.html b/original-plugin-raw/zh/inspectionDescriptions/HardcodedLineSeparators.html new file mode 100644 index 000000000..a9ed40154 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HardcodedLineSeparators.html @@ -0,0 +1,10 @@ + + +报告字符串文字、字符文字或文本块中使用的换行 (\n) 和回车 (\r) 字符转义序列。 这些字符通常用作行分隔符,如果它们被硬编码,可移植性可能会受到影响。 +

示例:

+

+  String count = "first\nsecond\rthird";
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HardwiredNamespacePrefix.html b/original-plugin-raw/zh/inspectionDescriptions/HardwiredNamespacePrefix.html new file mode 100644 index 000000000..1813cf601 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HardwiredNamespacePrefix.html @@ -0,0 +1,12 @@ + + +报告 name() 函数与包含冒号 (:) 的字符串的比较。 此类用法通常表明在比较中存在硬编码的命名空间前缀。 因此,针对为相同命名空间使用另一个前缀的 XML 运行时,代码将中断。 + +

示例:

+

+  <xsl:if test="name() = 'xlink:href'">...<xsl:if>
+
+ +

由 XPathView + XSLT-Support 提供技术支持

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HasPlatformType.html b/original-plugin-raw/zh/inspectionDescriptions/HasPlatformType.html new file mode 100644 index 000000000..ddaf5db59 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HasPlatformType.html @@ -0,0 +1,14 @@ + + +报告具有平台类型的函数和属性。 +

为防止意外错误,应显式声明类型。

+

示例:

+

+  fun foo() = java.lang.String.valueOf(1)
+
+

快速修复让您能够指定返回类型:

+

+  fun foo(): String = java.lang.String.valueOf(1)
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/HashCodeUsesNonFinalVariable.html b/original-plugin-raw/zh/inspectionDescriptions/HashCodeUsesNonFinalVariable.html new file mode 100644 index 000000000..6103cc794 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HashCodeUsesNonFinalVariable.html @@ -0,0 +1,32 @@ + + +报告访问非 final 变量的 hashCode() 的实现。 +

+ 此类访问可能导致 hashCode() 在该对象生命周期的不同时刻返回不同的值,进而可能在使用标准集合类时导致问题。 +

+

示例:

+

+  class Drink {
+    String name;
+    Drink(String name) { this.name = name; }
+    @Override public int hashCode() {
+      return Objects.hash(name); //警告
+    }
+  }
+  ...
+    Drink coffee = new Drink("Coffee");
+    priceMap.put(coffee, 10.0);
+    coffee.name = "Tea";
+    double coffeePrice = priceMap.get(coffee); //找不到
+
+

建议通过快速修复将该字段设为 final:

+

+  class Drink {
+    final String name;
+    ...
+  }
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HashCodeUsesVar.html b/original-plugin-raw/zh/inspectionDescriptions/HashCodeUsesVar.html new file mode 100644 index 000000000..688a1f192 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HashCodeUsesVar.html @@ -0,0 +1,14 @@ + + +

如果 hashCode 中使用了 var 字段,则报告这些字段。

+

示例:

+

+  class Test {
+    var value = 3
+    override def hashCode(): Int =
+      value // 值可能会改变,表明 hashCode() 被误用
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HbEmptyBlock.html b/original-plugin-raw/zh/inspectionDescriptions/HbEmptyBlock.html new file mode 100644 index 000000000..2a9b012fd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HbEmptyBlock.html @@ -0,0 +1,5 @@ + + +报告不带实参的 ifeachwith 块帮助程序。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HeadOrLastOption.html b/original-plugin-raw/zh/inspectionDescriptions/HeadOrLastOption.html new file mode 100644 index 000000000..a6111082a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HeadOrLastOption.html @@ -0,0 +1,25 @@ + + +

在模拟 headOptionlastOption 时报告。

+ +

示例:

+

+  var seq: Seq[Int]
+  if (seq.nonEmpty) Some(seq.head) else None
+  seq.lift(0)
+
+  if (seq.size == 0) None else seq.lastOption
+  seq.lift(seq.size - 1)
+
+

在应用快速修复后:

+

+  var seq: Seq[Int]
+  seq.headOption
+  seq.headOption
+
+  seq.lastOption
+  seq.lastOption
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HelmChartMissingKeys.html b/original-plugin-raw/zh/inspectionDescriptions/HelmChartMissingKeys.html new file mode 100644 index 000000000..517a4ceb0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HelmChartMissingKeys.html @@ -0,0 +1,6 @@ + + +报告 Chart.yaml 中缺少所需的键。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HelmChartUnknownKeys.html b/original-plugin-raw/zh/inspectionDescriptions/HelmChartUnknownKeys.html new file mode 100644 index 000000000..5a676f2b9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HelmChartUnknownKeys.html @@ -0,0 +1,6 @@ + + +报告 Chart.yaml 中无法识别的键。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HelmChartUnknownValues.html b/original-plugin-raw/zh/inspectionDescriptions/HelmChartUnknownValues.html new file mode 100644 index 000000000..235d19848 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HelmChartUnknownValues.html @@ -0,0 +1,6 @@ + + +报告 Chart.yaml 和 requirements.yaml 中无法识别的值。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HelmUnknownTemplates.html b/original-plugin-raw/zh/inspectionDescriptions/HelmUnknownTemplates.html new file mode 100644 index 000000000..63aad349a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HelmUnknownTemplates.html @@ -0,0 +1,6 @@ + + +报告 Helm 模板文件中无效的用户定义模板引用。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HelmUnknownValues.html b/original-plugin-raw/zh/inspectionDescriptions/HelmUnknownValues.html new file mode 100644 index 000000000..a4893e29d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HelmUnknownValues.html @@ -0,0 +1,6 @@ + + +报告 Helm 模板文件中无效的值引用。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HibernateConfigDomFacetInspection.html b/original-plugin-raw/zh/inspectionDescriptions/HibernateConfigDomFacetInspection.html new file mode 100644 index 000000000..f243225e7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HibernateConfigDomFacetInspection.html @@ -0,0 +1,6 @@ + + +

报告缺失的 Hibernate XML 配置文件。

+

如有必要,该快速修复会创建一个 facet 并向其添加一个配置文件。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HibernateConfigDomInspection.html b/original-plugin-raw/zh/inspectionDescriptions/HibernateConfigDomInspection.html new file mode 100644 index 000000000..62942e432 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HibernateConfigDomInspection.html @@ -0,0 +1,14 @@ + + +

报告 Hibernate XML 配置错误,包括:

+
    +
  • 对不可实例化类的引用
  • +
  • 对不扩展所需类的类的引用
  • +
  • 对范围不适当的类的引用
  • +
  • 空标记和特性值
  • +
  • 与所需模式不匹配的标记和特性值(例如,Java 标识符)
  • +
  • 不包含必需子标记或特性的标记
  • +
  • 定义具有重复名称的对象的标记
  • +
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/HibernateMappingDatasourceDomInspection.html b/original-plugin-raw/zh/inspectionDescriptions/HibernateMappingDatasourceDomInspection.html new file mode 100644 index 000000000..5771735c0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HibernateMappingDatasourceDomInspection.html @@ -0,0 +1,9 @@ + + +

报告 Hibernate XML 配置数据库相关的映射错误,包括:

+
    +
  • 对无法识别的目录/架构/表的引用
  • +
  • 对无法识别的列的引用
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HibernateMappingDomInspection.html b/original-plugin-raw/zh/inspectionDescriptions/HibernateMappingDomInspection.html new file mode 100644 index 000000000..321f8c192 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HibernateMappingDomInspection.html @@ -0,0 +1,14 @@ + + +

报告 Hibernate XML 配置映射错误,包括:

+
    +
  • 对不可实例化类的引用
  • +
  • 对不扩展所需类的类的引用
  • +
  • 对范围不适当的类的引用
  • +
  • 空标记和特性值
  • +
  • 与所需模式不匹配的标记和特性值(例如,Java 标识符)
  • +
  • 不包含必需子标记或特性的标记
  • +
  • 定义具有重复名称的对象的标记
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HibernateResource.html b/original-plugin-raw/zh/inspectionDescriptions/HibernateResource.html new file mode 100644 index 000000000..5fe1010c7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HibernateResource.html @@ -0,0 +1,27 @@ + + +如果返回的 org.hibernate.Session 资源没有被安全关闭,报告对 openSession() 方法的调用。 +

+ 默认情况下,该检查假定资源可以由名称中带有 'close' 或 'cleanup' 的任何方法关闭。 +

+

示例:

+

+  void doHibernateQuery(SessionFactory factory) {
+    Session session = factory.openSession(); //警告
+    session.createQuery("...");
+  }
+
+ +

+ 使用以下选项配置检查: +

+
    +
  • + 是否允许在 try 块内打开 org.hibernate.Session 资源。 这种样式不太合意,因为它比在 try 块前面打开资源更冗长。 +
  • +
  • + 资源能否通过任何将资源作为实参传递的方法调用来关闭。 +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HidesClassScope.html b/original-plugin-raw/zh/inspectionDescriptions/HidesClassScope.html new file mode 100644 index 000000000..e10482969 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HidesClassScope.html @@ -0,0 +1,5 @@ + + + 报告在具有同名实例变量的类的范围内声明的局部变量和形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HidesUpperScope.html b/original-plugin-raw/zh/inspectionDescriptions/HidesUpperScope.html new file mode 100644 index 000000000..584edb58f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HidesUpperScope.html @@ -0,0 +1,5 @@ + + + 报告在其他同名局部变量或形参范围内声明的局部变量。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HidingNonVirtualFunction.html b/original-plugin-raw/zh/inspectionDescriptions/HidingNonVirtualFunction.html new file mode 100644 index 000000000..ffd5a64a2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HidingNonVirtualFunction.html @@ -0,0 +1,17 @@ + + +报告与基类中声明具有相同签名并隐藏非虚拟函数的函数。 +

示例:

+
+class Base {
+  public:
+    void operate() {}
+};
+
+class Derived : public Base {
+  public:
+    void operate() {}
+}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HighlightVisitorInternal.html b/original-plugin-raw/zh/inspectionDescriptions/HighlightVisitorInternal.html new file mode 100644 index 000000000..97a9798d1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HighlightVisitorInternal.html @@ -0,0 +1,8 @@ + + +报告 Java/Groovy 代码的“优良代码显示为红色”问题。 +

+ 必须以批处理模式运行,并且必须启用 IDE 内部模式。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlDeprecatedAttribute.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlDeprecatedAttribute.html new file mode 100644 index 000000000..45fcdbb79 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlDeprecatedAttribute.html @@ -0,0 +1,5 @@ + + +报告过时的 HTML5 特性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlDeprecatedTag.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlDeprecatedTag.html new file mode 100644 index 000000000..4f89c28ab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlDeprecatedTag.html @@ -0,0 +1,5 @@ + + +报告过时的 HTML5 标记。 建议将过时的标记替换为 CSS 或其他标记。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlExtraClosingTag.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlExtraClosingTag.html new file mode 100644 index 000000000..72087b991 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlExtraClosingTag.html @@ -0,0 +1,21 @@ + + +报告空元素的冗余结束标记,例如 imgbr。 +

示例:

+

+  <html>
+    <body>
+      <br></br>
+    </body>
+  </html>
+
+

在应用快速修复后:

+

+  <html>
+    <body>
+      <br>
+    </body>
+  </html>
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlFormInputWithoutLabel.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlFormInputWithoutLabel.html new file mode 100644 index 000000000..5b7d3ed8b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlFormInputWithoutLabel.html @@ -0,0 +1,5 @@ + + +报告没有关联标签的表单元素 (inputtextareaselect)。 建议创建新标签。 基于 WCAG 2.0:H44
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlMissingClosingTag.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlMissingClosingTag.html new file mode 100644 index 000000000..68811de05 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlMissingClosingTag.html @@ -0,0 +1,22 @@ + + +报告不含结束标记的 HTML 元素。 +即便在可选的情况下,有些编码样式也要求 HTML 元素包含结束标记。 +

示例:

+

+  <html>
+    <body>
+      <p>Behold!
+    </body>
+  </html>
+
+

在应用快速修复后:

+

+  <html>
+    <body>
+      <p>Behold!</p>
+    </body>
+  </html>
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlNonExistentInternetResource.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlNonExistentInternetResource.html new file mode 100644 index 000000000..4563ba28d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlNonExistentInternetResource.html @@ -0,0 +1,5 @@ + + +报告未解析的 Web 链接。 通过在后台发出网络请求来发挥作用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlPresentationalElement.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlPresentationalElement.html new file mode 100644 index 000000000..55c7dbaf4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlPresentationalElement.html @@ -0,0 +1,5 @@ + + +报告 HTML 表示标记。 建议将表示标记替换为 CSS 或其他标记。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlRequiredAltAttribute.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlRequiredAltAttribute.html new file mode 100644 index 000000000..ef0660d7b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlRequiredAltAttribute.html @@ -0,0 +1,5 @@ + + +报告 imgapplet 标记或图像映射的 area 元素中缺少的 alt 特性。 建议添加含标签内容替代文本的必要特性。 基于 WCAG 2.0:H24H35H36H37。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlRequiredLangAttribute.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlRequiredLangAttribute.html new file mode 100644 index 000000000..8ac702f93 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlRequiredLangAttribute.html @@ -0,0 +1,5 @@ + + +报告 html 标记中缺少的 lang(或 xml:lang)特性。 建议添加一项必备特性来声明文档的默认语言。 基于 WCAG 2.0:H57。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlRequiredSummaryAttribute.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlRequiredSummaryAttribute.html new file mode 100644 index 000000000..e0e48bb86 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlRequiredSummaryAttribute.html @@ -0,0 +1,5 @@ + + +报告 table 标记中缺少的 summary 特性。 建议添加 summary 特性。 基于 WCAG 2.0:H73。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlRequiredTitleAttribute.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlRequiredTitleAttribute.html new file mode 100644 index 000000000..f96c23b7e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlRequiredTitleAttribute.html @@ -0,0 +1,5 @@ + + +报告缺少的标题特性 frameiframedla 标记。 建议添加标题特性。 基于 WCAG 2.0:H33H40H64。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlRequiredTitleElement.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlRequiredTitleElement.html new file mode 100644 index 000000000..27806fd47 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlRequiredTitleElement.html @@ -0,0 +1,5 @@ + + +报告 head 部分中缺少的 title 元素。 建议添加 title 元素。 标题应能说明文档。 基于 WCAG 2.0:H25。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlTagCanBeJavadocTag.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlTagCanBeJavadocTag.html new file mode 100644 index 000000000..982f1ef8c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlTagCanBeJavadocTag.html @@ -0,0 +1,22 @@ + + +报告 <code> 标记在 Javadoc 注释中的用法。 +从 Java 5 起,这些标记可以替换为 {@code ...} 结构。 +这允许在注释中使用尖括号 <> 而不是 HTML 字符实体。 +

示例:

+

+  /**
+   * @return empty <code>ArrayList&lt;Integer&gt;</code>
+   */
+  List<Integer> getList(){ ... }
+
+

在应用快速修复后:

+

+  /**
+   * @return empty {@code ArrayList<Integer>}
+   */
+  List<Integer> getList(){ ... }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlUnknownAnchorTarget.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlUnknownAnchorTarget.html new file mode 100644 index 000000000..1ee7b3e8d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlUnknownAnchorTarget.html @@ -0,0 +1,5 @@ + + +报告 # 符号后面的 URL 中未解析的最后部分。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlUnknownAttribute.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlUnknownAttribute.html new file mode 100644 index 000000000..aaeb5e19e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlUnknownAttribute.html @@ -0,0 +1,5 @@ + + +报告未知的 HTML 特性。 建议配置不应报告的特性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlUnknownBooleanAttribute.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlUnknownBooleanAttribute.html new file mode 100644 index 000000000..6ca271458 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlUnknownBooleanAttribute.html @@ -0,0 +1,5 @@ + + +报告不含值的 HTML 非布尔特性。 建议配置不应报告的特性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlUnknownTag.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlUnknownTag.html new file mode 100644 index 000000000..d5413b3b4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlUnknownTag.html @@ -0,0 +1,5 @@ + + +报告未知的 HTML 标记。 建议配置不应报告的标记。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HtmlUnknownTarget.html b/original-plugin-raw/zh/inspectionDescriptions/HtmlUnknownTarget.html new file mode 100644 index 000000000..416fcd8fe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HtmlUnknownTarget.html @@ -0,0 +1,5 @@ + + +报告链接中未解析的文件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HttpRequestContentLengthIsIgnored.html b/original-plugin-raw/zh/inspectionDescriptions/HttpRequestContentLengthIsIgnored.html new file mode 100644 index 000000000..7010a4ec1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HttpRequestContentLengthIsIgnored.html @@ -0,0 +1,5 @@ + + +报告显式设置的 Content-Length 标头。 此标头冗余,因为 HTTP 客户端使用实际的请求主体长度。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HttpRequestPlaceholder.html b/original-plugin-raw/zh/inspectionDescriptions/HttpRequestPlaceholder.html new file mode 100644 index 000000000..72022ed29 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HttpRequestPlaceholder.html @@ -0,0 +1,6 @@ + + +报告请求内部的 $placeholder。 +

当工具无法识别请求的一部分时,将自动创建要由用户替换的 $placeholder。 例如,请求映射 /aaaa/*/bbb 将生成为 GET localhost/aaaa/{{$placeholder}}/bbb。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/HttpUrlsUsage.html b/original-plugin-raw/zh/inspectionDescriptions/HttpUrlsUsage.html new file mode 100644 index 000000000..fb3f10ff7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/HttpUrlsUsage.html @@ -0,0 +1,6 @@ + + +

报告使用未加密协议(如 HTTP)的链接,这些链接可能会使您的数据暴露在中间人的攻击之下。 这些攻击一般是危险的,对工件存储库可能特别有害。 使用加密协议取而代之,例如 HTTPS。

+

请参阅 HTTPS: 与 HTTP 的区别(wikipedia.org)

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/I18nForm.html b/original-plugin-raw/zh/inspectionDescriptions/I18nForm.html new file mode 100644 index 000000000..7ea05fd12 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/I18nForm.html @@ -0,0 +1,9 @@ + + +报告 UI 窗体中硬编码字符串的任何实例。 +

硬编码的字符串文字在国际化环境中通常是错误。 + 此检查不报告空字符串和仅包含空格的字符串。

+ +

该快速修复会将字符串文字转换为对资源包中属性的引用。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IOResource.html b/original-plugin-raw/zh/inspectionDescriptions/IOResource.html new file mode 100644 index 000000000..22ad78a93 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IOResource.html @@ -0,0 +1,32 @@ + + +报告未安全关闭的 I/O 资源。 此检查所检查的 I/O 资源包括 java.io.InputStreamjava.io.OutputStreamjava.io.Readerjava.io.Writerjava.util.zip.ZipFilejava.io.Closeablejava.io.RandomAccessFile。 +

+ 不报告由其他 I/O 资源包装的 I/O 资源,因为包装资源将关闭被包装资源。 +

+

+ 默认情况下,该检查假定资源可以由名称中带有 'close' 或 'cleanup' 的任何方法关闭。 +

+

示例:

+

+  void save() throws IOException {
+    FileWriter writer = new FileWriter("filename.txt"); //警告
+    writer.write("sample");
+  }
+
+ +

+ 使用以下选项配置检查: +

+
    +
  • 列出不需关闭并且此检查应当忽略的 I/O 资源类。
  • +
  • + 是否允许在 try 块内打开 I/O 资源。 + 这种样式不太合意,因为它比在 try 块前面打开资源更冗长。 +
  • +
  • + 资源能否通过任何将资源作为实参传递的方法调用来关闭。 +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IdempotentLoopBody.html b/original-plugin-raw/zh/inspectionDescriptions/IdempotentLoopBody.html new file mode 100644 index 000000000..c84b0c43d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IdempotentLoopBody.html @@ -0,0 +1,21 @@ + + +报告除了第一次迭代中产生的副作用外,在第二次和后续迭代中不产生其他副作用的循环,这可能表示编程错误。 +

此类循环可能只迭代零次、一次或无限次。 +如果不存在无限循环的情况,则可以将其替换为 if 语句。 + 否则,程序可能会卡住。

+

示例:

+

+    public void foo(String baseName, String names) {
+        int suffix = 1;
+        String name = baseName;
+        while (names.contains(name)) {
+            // 错误:suffix 未更新,导致循环体幂等
+            name = baseName + suffix;
+        }
+    }
+
+ +

2018.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IfCanBeAssertion.html b/original-plugin-raw/zh/inspectionDescriptions/IfCanBeAssertion.html new file mode 100644 index 000000000..ab7a6fc0a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IfCanBeAssertion.html @@ -0,0 +1,22 @@ + + +报告仅从 then 分支抛出 java.lang.Throwable 而没有 else 分支的 if 语句。 此类语句可以转换为更紧凑的 assert 语句。 +

+检查还报告 Guava 的 Preconditions.checkNotNull()。 + 它们可以替换为不需要库 Objects.requireNonNull() 调用。

+

示例:

+

+  if (x == 2) throw new RuntimeException("fail");
+  if (y == null) throw new AssertionError();
+  Preconditions.checkNotNull(z, "z");
+
+

在应用快速修复后:

+

+  assert x != 2 : "fail";
+  Objects.requireNonNull(y);
+  Objects.requireNonNull(z, "z");
+
+ +

默认情况下,此检查在编辑器中提供快速修复,而没有高亮显示代码。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/IfCanBeSwitch.html b/original-plugin-raw/zh/inspectionDescriptions/IfCanBeSwitch.html new file mode 100644 index 000000000..1f46a3cb5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IfCanBeSwitch.html @@ -0,0 +1,41 @@ + + +报告可以替换为 switch 语句的 if 语句。 +

替换结果通常更简短、更清晰。

+

示例:

+

+  void test(String str) {
+    if (str.equals("1")) {
+      System.out.println(1);
+    } else if (str.equals("2")) {
+      System.out.println(2);
+    } else if (str.equals("3")) {
+      System.out.println(3);
+    } else {
+      System.out.println(4);
+    }
+  }
+
+

在应用快速修复后:

+

+  void test(String str) {
+    switch (str) {
+      case "1" -> System.out.println(1);
+      case "2" -> System.out.println(2);
+      case "3" -> System.out.println(3);
+      default -> System.out.println(4);
+    }
+  }
+  
+ +

该检查适用于项目或模块的语言级别为 7 或更高级别的情况。

+

使用 'if' 条件分支的最小数量字段可指定必须报告 if 语句的最小 if 条件分支数。 注意,不计入终端 else 分支(无 if)。

+

+使用对数字启用 switch 建议选项,可以对基元和装箱的数字及字符启用 switch 语句建议。 +

+使用对枚举启用 switch 建议选项,可以对 enum 常量启用 switch 语句建议。 +

+ 使用仅对 null-safe 表达式启用建议选项,可仅建议不能引入 NullPointerExceptionswitch 语句。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IfElseToFilterdOption.html b/original-plugin-raw/zh/inspectionDescriptions/IfElseToFilterdOption.html new file mode 100644 index 000000000..30f4762df --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IfElseToFilterdOption.html @@ -0,0 +1,18 @@ + + +

报告评估为 Option 的 if 语句,并建议将其替换为 filter

+

示例:

+

+  def condition(x: Int): Boolean = ???
+  val value = 3
+  if (condition(value)) Some(value) else None
+
+

在应用快速修复后:

+

+  def condition(x: Int): Boolean = ???
+  val value = 3
+  Some(value).filter(condition)
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/IfElseToOption.html b/original-plugin-raw/zh/inspectionDescriptions/IfElseToOption.html new file mode 100644 index 000000000..117f83109 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IfElseToOption.html @@ -0,0 +1,15 @@ + + +

报告模拟对 Option.apply(x) 的调用。

+

示例:

+

+  if (x == null) None else Some(x)
+  if (x != null) Some(x) else None
+
+

在应用快速修复后:

+

+  Option(x)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IfStatementMissingBreakInLoop.html b/original-plugin-raw/zh/inspectionDescriptions/IfStatementMissingBreakInLoop.html new file mode 100644 index 000000000..454604a5a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IfStatementMissingBreakInLoop.html @@ -0,0 +1,27 @@ + + +报告包含 if 语句并且以 break 结尾但又不改变语义的循环。 +这可以防止冗余的循环迭代。 +

示例:

+

+  boolean found = false;
+  for (int i = 0; i < arr.length; i++) {
+    if (Objects.equals(value, arr[i])) {
+      found = true;
+    }
+  }
+
+

在应用快速修复后:

+

+  boolean found = false;
+  for (int i = 0; i < arr.length; i++) {
+    if (Objects.equals(value, arr[i])) {
+      found = true;
+      break;
+    }
+  }
+
+ +

2019.2 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IfStatementWithIdenticalBranches.html b/original-plugin-raw/zh/inspectionDescriptions/IfStatementWithIdenticalBranches.html new file mode 100644 index 000000000..6b6556657 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IfStatementWithIdenticalBranches.html @@ -0,0 +1,30 @@ + + +报告可以从分支中提取通用部分的 if 语句。 +

这些通用部分独立于条件并使 if 语句更难理解。

+

示例:

+

+  if (x > 12) {
+    doSomethingBefore();
+    doSomethingDifferent1();
+    doSomethingAfter();
+  } else {
+    doSomethingBefore();
+    doSomethingDifferent2();
+    doSomethingAfter();
+  }
+
+

在应用快速修复后:

+

+  doSomethingBefore();
+  if (x > 12) {
+    doSomethingDifferent1();
+  } else {
+    doSomethingDifferent2();
+  }
+  doSomethingAfter();
+
+ +

这是 2018.1 更新的功能

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/IfStatementWithIdenticalBranchesJS.html b/original-plugin-raw/zh/inspectionDescriptions/IfStatementWithIdenticalBranchesJS.html new file mode 100644 index 000000000..ba803c1a4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IfStatementWithIdenticalBranchesJS.html @@ -0,0 +1,6 @@ + + +报告具有相同的 thenelse 分支的 if 语句。 此类语句几乎 +肯定有错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IfStatementWithTooManyBranches.html b/original-plugin-raw/zh/inspectionDescriptions/IfStatementWithTooManyBranches.html new file mode 100644 index 000000000..5491a05d9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IfStatementWithTooManyBranches.html @@ -0,0 +1,11 @@ + + +报告分支太多的 if 语句。 +

此类语句可能令人困惑,并且通常表明设计抽象级别不足。

+ +

+ 使用最大分支数字段指定 if 语句可以具备的最大分支数。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IfStatementWithTooManyBranchesJS.html b/original-plugin-raw/zh/inspectionDescriptions/IfStatementWithTooManyBranchesJS.html new file mode 100644 index 000000000..1f6db01e3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IfStatementWithTooManyBranchesJS.html @@ -0,0 +1,8 @@ + + +报告分支过多的 if 语句。 此类语句可能令人困惑,并且通常表明设计抽象级别不足。 + +

+ 使用下面的字段可指定预期的最大分支数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IfThenToElvis.html b/original-plugin-raw/zh/inspectionDescriptions/IfThenToElvis.html new file mode 100644 index 000000000..14a8d030e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IfThenToElvis.html @@ -0,0 +1,19 @@ + + +报告可以折叠到 elvis (?:) 表达式中的 if-then 表达式。 +

示例:

+

+  fun maybeFoo(): String? = "foo"
+
+  var foo = maybeFoo()
+  val bar = if (foo == null) "hello" else foo
+
+

该快速修复会将 if-then 表达式转换为 elvis (?:) 表达式:

+

+  fun maybeFoo(): String? = "foo"
+
+  var foo = maybeFoo()
+  val bar = foo ?: "hello"
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/IfThenToSafeAccess.html b/original-plugin-raw/zh/inspectionDescriptions/IfThenToSafeAccess.html new file mode 100644 index 000000000..6847a9fd8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IfThenToSafeAccess.html @@ -0,0 +1,21 @@ + + +报告可以折叠到安全访问 (?.) 表达式中的 if-then 表达式。 +

示例:

+

+  fun bar(x: String) = ""
+
+  fun foo(a: String?) {
+     if (a != null) bar(a) else null
+  }
+
+

该快速修复会将 if-then 表达式转换为安全访问 (?.) 表达式:

+

+  fun bar(x: String) = ""
+
+  fun foo(a: String?) {
+     a?.let { bar(it) }
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/IgnoreFileDuplicateEntry.html b/original-plugin-raw/zh/inspectionDescriptions/IgnoreFileDuplicateEntry.html new file mode 100644 index 000000000..7917ff9f9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IgnoreFileDuplicateEntry.html @@ -0,0 +1,14 @@ + + +报告忽略文件(例如 .gitignore、.hgignore)中的重复条目(模式)。 +这些文件中的重复条目冗余,可以移除。 + +

示例:

+
+    # Output directories
+    /out/
+    /target/
+    /out/
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IgnoreResultOfCall.html b/original-plugin-raw/zh/inspectionDescriptions/IgnoreResultOfCall.html new file mode 100644 index 000000000..79594ce39 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IgnoreResultOfCall.html @@ -0,0 +1,25 @@ + + +报告其结果被忽略的方法调用。 +

忽略结果对于许多方法完全合法,但对于某些方法,几乎肯定是错误。 忽略结果可能是错误之举的方法示例包括返回实际读取字节数的 java.io.inputStream.read(),以及 java.lang.Stringjava.math.BigInteger 上的任何方法。 这些方法不会产生副作用,因此忽略它们的结果将毫无意义。 +

+

将检查对以下方法的调用:

+
    +
  • 简单 getter(除返回字段外别无他用)
  • +
  • 在此检查的设置中指定的方法
  • +
  • 使用 org.jetbrains.annotations.Contract(pure=true) 注解的方法
  • +
  • 使用 .*.CheckReturnValue 注解的方法
  • +
  • 使用 javax.annotation.CheckReturnValue 注解的类或软件包中的方法
  • +
  • 所有非库方法(可选)
  • +
+

不会报告对使用 Error Prone 或 AssertJ 的 @CanIgnoreReturnValue 注解进行注解的方法的调用。 + + +

+ 使用检查设置指定要检查的类。 + 方法采用 Java 正则表达式语法按名称或名称模式进行匹配。 + 对于类,请使用完全限定名称。 每个条目都应用于该类及其所有继承者。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IgnoredJUnitTest.html b/original-plugin-raw/zh/inspectionDescriptions/IgnoredJUnitTest.html new file mode 100644 index 000000000..0da47914a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IgnoredJUnitTest.html @@ -0,0 +1,26 @@ + + +报告 JUnit 4 的 @Ignore 或 JUnit 5 的 @Disabled 注解的用法。 +长期使用这些注解进行注解的测试,特别是在没有指定原因的情况下,都是代码异味。 +

示例:

+

+  @Ignore
+  public class UrgentTest {
+
+    @Test
+    public void testIt() {
+      Assert.assertEquals("expected", "actual");
+    }
+  }
+
+ +

+ 配置检查: +

+
    +
  • + 使用仅报告没有原因的注解选项可以仅报告没有原因被指定为注解的 value 特性的情况。 +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IllegalIdentifier.html b/original-plugin-raw/zh/inspectionDescriptions/IllegalIdentifier.html new file mode 100644 index 000000000..6d919756a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IllegalIdentifier.html @@ -0,0 +1,13 @@ + + +报告 Android 运行时不接受的 Android 项目标识符。 +例如,带有空格的方法名称。 +

示例:

+

+  class Test {
+      var `a b c` = 3
+  }
+
+

要修正此问题,请更改标识符的名称以匹配 Android 运行时要求。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ImplementationHasNoInterface.html b/original-plugin-raw/zh/inspectionDescriptions/ImplementationHasNoInterface.html new file mode 100644 index 000000000..c6d1961be --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ImplementationHasNoInterface.html @@ -0,0 +1,5 @@ + + + 报告在项目范围内没有接口声明的类实现。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ImplicitArrayToString.html b/original-plugin-raw/zh/inspectionDescriptions/ImplicitArrayToString.html new file mode 100644 index 000000000..bed997f3e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ImplicitArrayToString.html @@ -0,0 +1,21 @@ + + +报告 String 连接中使用的数组,或作为形参传递给 java.io.PrintStream 方法的数组,如 System.out.println()。 +

+ 通常使用数组的内容,而不是使用数组对象本身。 +

+

示例:

+

+  void print(Object[] objects) {
+    System.out.println(objects);
+  }
+
+

在应用快速修复后:

+

+  void print(Object[] objects) {
+    System.out.println(Arrays.toString(objects));
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ImplicitCallToSuper.html b/original-plugin-raw/zh/inspectionDescriptions/ImplicitCallToSuper.html new file mode 100644 index 000000000..ffa3de8fb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ImplicitCallToSuper.html @@ -0,0 +1,34 @@ + + +报告不以调用 "super" 构造函数或同一类的另一个构造函数开头的构造函数。 +

可以认为是此类构造函数隐式地从调用 super() 开始。 某些编码标准倾向于显式地调用 super()

+

示例:

+

+  class Foo {
+    Foo() {}
+  }
+
+

在应用快速修复后:

+

+  class Foo {
+    Foo() {
+      super();
+    }
+  }
+
+ +

+ 使用检查设置可以忽略直接从 Object 扩展的类。 + 例如: +

+

+  class Foo {
+    Foo() {} // 未报告
+  }
+
+  class Bar extends Foo {
+    Bar() {} // 对 'super()' 的隐式调用
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ImplicitDeclarationOfIvar.html b/original-plugin-raw/zh/inspectionDescriptions/ImplicitDeclarationOfIvar.html new file mode 100644 index 000000000..537cd6b09 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ImplicitDeclarationOfIvar.html @@ -0,0 +1,6 @@ + + + 报告“非脆弱”实例变量,这些实例变量为要在运行时合成的属性提供支持,无需在类的接口中声明它们。 + 尽管这是声明实例变量的正确方法,但您可能会忘记显式声明它们。 由于“非脆弱”实例变量是通过额外的间接层实现的,它们可能会导致不需要的运行时开销。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ImplicitDefaultCharsetUsage.html b/original-plugin-raw/zh/inspectionDescriptions/ImplicitDefaultCharsetUsage.html new file mode 100644 index 000000000..fa84911b8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ImplicitDefaultCharsetUsage.html @@ -0,0 +1,17 @@ + + +报告隐式使用平台默认字符集的方法和构造函数调用。 在使用不同默认字符集的系统上,这些调用可能产生不同的结果。 这可能会导致意外的行为。 +

示例:

+
void foo(byte[] bytes) {
+  String s = new String(bytes);
+}
+
+

如果相应的重载方法可用,则可以采用指定显式 UTF-8 字符集的快速修复。 + 在应用快速修复后:

+
void foo(byte[] bytes) {
+  String s = new String(bytes, StandardCharsets.UTF_8);
+}
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ImplicitIntegerAndEnumConversion.html b/original-plugin-raw/zh/inspectionDescriptions/ImplicitIntegerAndEnumConversion.html new file mode 100644 index 000000000..46856d4da --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ImplicitIntegerAndEnumConversion.html @@ -0,0 +1,5 @@ + + + 报告 enum 类型的表达式在整数或指针类型的上下文中使用或者整数或指针类型的表达式在 enum 类型的上下文中使用(赋值,转换,作为形参传递,从方法、函数或块返回等)的情况。 您必须显式地将一种类型转换为另一种类型以避免编译器警告。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ImplicitNullableNothingType.html b/original-plugin-raw/zh/inspectionDescriptions/ImplicitNullableNothingType.html new file mode 100644 index 000000000..717608792 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ImplicitNullableNothingType.html @@ -0,0 +1,13 @@ + + +报告具有隐式 Nothing? 类型的变量和函数。 +

示例:

+

+  fun foo() = null
+
+

该快速修复会显式指定返回类型:

+

+  fun foo(): Nothing? = null
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ImplicitNumericConversion.html b/original-plugin-raw/zh/inspectionDescriptions/ImplicitNumericConversion.html new file mode 100644 index 000000000..0100878d2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ImplicitNumericConversion.html @@ -0,0 +1,25 @@ + + +报告数值类型之间的隐式转换。 +

隐式数字转换本身不是问题,但如果是意外,可能会在跟踪错误时造成困难。

+

示例:

+

+  double m(int i) {
+    return i * 10;
+  }
+
+

在应用快速修复后:

+

+  double m(int i) {
+    return (double) (i * 10);
+  }
+
+ +

配置检查:

+
    +
  • 使用忽略扩大转换选项可以忽略不会导致数据丢失的隐式转换(例如,int->long)。
  • +
  • 使用忽略 'char' 与其他类型之间的转换选项可以忽略 char 与其他类型之间的转换。 该检查仍将报告浮点数与其他类型之间的转换。
  • +
  • 使用忽略来自常量和文字的转换可使检查忽略来自文字和编译时常量的转换。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ImplicitPointerAndIntegerConversion.html b/original-plugin-raw/zh/inspectionDescriptions/ImplicitPointerAndIntegerConversion.html new file mode 100644 index 000000000..a1bdd5d78 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ImplicitPointerAndIntegerConversion.html @@ -0,0 +1,5 @@ + + + 报告整数类型的表达式在指针类型的上下文中使用或者指针类型的表达式在整数类型的上下文中使用(赋值,转换,作为形参传递,从方法、函数或块返回等)的情况。 您必须显式地将一种类型转换为另一种类型以避免编译器警告。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ImplicitSubclassInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ImplicitSubclassInspection.html new file mode 100644 index 000000000..5b5eed2ef --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ImplicitSubclassInspection.html @@ -0,0 +1,14 @@ + + +报告在运行时代码阻止某个框架(例如 Spring 或 Hibernate)对类进行子类化的情况。 + +

必要但不可能进行子类化的典型示例:

+
    +
  • 使用特定于框架的注解(例如 Spring @Configuration)标记的 final
  • +
  • 使用特定于框架的注解(例如 Spring @Transactional)标记的 finalstaticprivate 方法
  • +
  • final 类中使用特定于框架的注解标记的方法
  • +
+ +

报告的情况清单取决于使用的框架。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ImplicitThis.html b/original-plugin-raw/zh/inspectionDescriptions/ImplicitThis.html new file mode 100644 index 000000000..41df47097 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ImplicitThis.html @@ -0,0 +1,25 @@ + + +报告隐式 this 的使用情况。 +

示例:

+

+  class Foo {
+      fun s() = ""
+
+      fun test() {
+          s()
+      }
+  }
+
+

该快速修复会显式指定 this

+

+  class Foo {
+      fun s() = ""
+
+      fun test() {
+          this.s()
+      }
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ImplicitTypeConversion.html b/original-plugin-raw/zh/inspectionDescriptions/ImplicitTypeConversion.html new file mode 100644 index 000000000..76635eabb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ImplicitTypeConversion.html @@ -0,0 +1,28 @@ + + +报告在预定义的 XPath 类型 STRINGNUMBERBOOLEANNODESET 之间进行的隐式转换。 有助于编写类型表现更明确的XSLT脚本,且避免难以捉摸的错误。 +

示例:

+

+  <xsl:if test="foo" />
+
+不同于 +

+  <xsl:if test="string(foo)" />
+
+ +

+第一个测试检查元素 “ foo” 是否存在(count(foo) > 0),而第二个测试仅当元素包含文本时 (string-length(foo) > 0),才会为 “true”。 建议使 +类型转换更加明确。 +

+ +

+ 使用以下选项配置检查: +

+
  • 启用或禁用某些类型之间的隐式转换
  • +
  • 总是报告没有导致实际预期类型的显式转换,例如, + <xsl:if test="number(foo)" />
  • +
  • 忽略使用 string() 函数作为编写 string-length() > 0 的快捷方式而造成的从 NODESET + 到 BOOLEAN 的转换。
+由 XPathView + XSLT-Support 提供技术支持 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ImplicitlyExposedWebServiceMethods.html b/original-plugin-raw/zh/inspectionDescriptions/ImplicitlyExposedWebServiceMethods.html new file mode 100644 index 000000000..28e6d8e62 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ImplicitlyExposedWebServiceMethods.html @@ -0,0 +1,6 @@ + + +

报告未使用 @javax.jws.WebMethod 注解的隐式公开的 Java Web 服务方法。

+

该快速修复会将 @WebMethod 注解添加到高亮显示的方法中。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/IncompatibleAPI.html b/original-plugin-raw/zh/inspectionDescriptions/IncompatibleAPI.html new file mode 100644 index 000000000..78db8ec3c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IncompatibleAPI.html @@ -0,0 +1,5 @@ + + +报告不兼容 API 的用法。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/IncompatibleEnums.html b/original-plugin-raw/zh/inspectionDescriptions/IncompatibleEnums.html new file mode 100644 index 000000000..2551fa6bc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IncompatibleEnums.html @@ -0,0 +1,5 @@ + + + 报告在其他 enum 类型 B 的上下文中使用 enum 类型 A 的表达式(赋值,转换,作为形参传递,从方法、函数或块返回等)的情况。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IncompatibleInitializers.html b/original-plugin-raw/zh/inspectionDescriptions/IncompatibleInitializers.html new file mode 100644 index 000000000..7d4db7b2a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IncompatibleInitializers.html @@ -0,0 +1,6 @@ + + +报告变量初始值设定项与其声明的类型不对应的情况。 +例如,数组或结构的初始值设定项过多。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IncompatibleMask.html b/original-plugin-raw/zh/inspectionDescriptions/IncompatibleMask.html new file mode 100644 index 000000000..b8608472f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IncompatibleMask.html @@ -0,0 +1,13 @@ + + +报告确保评估为 truefalse 的按位掩码表达式。 +

+ 该检查将检查 (var & constant1) == constant2(var | constant1) == constant2 形式的表达式,其中 constant1constant2 是不兼容的位掩码常量。

+

示例:

+
  // 不兼容的掩码:由于掩码以 00 结尾,
+  // 结果可能是 0x1200,但不是 0x1234
+  if ((mask & 0xFF00) == 0x1234) {...}
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IncompatibleMaskJS.html b/original-plugin-raw/zh/inspectionDescriptions/IncompatibleMaskJS.html new file mode 100644 index 000000000..e9cc25a09 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IncompatibleMaskJS.html @@ -0,0 +1,17 @@ + + + +报告确定评估为 truefalse +的按位掩码表达式。 +表达式的形式为 (var & constant1) == constant2 或 +(var | constant1) == constant2,其中 constant1 +和 constant2 是不兼容的位掩码常量。 +

示例:

+
+// 不兼容的掩码:由于掩码中的最后一个字节为零,
+// 因此 0x1200 是可能的,但 0x1234 不可能
+if ((mask & 0xFF00) == 0x1234) {...}
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IncompatiblePointers.html b/original-plugin-raw/zh/inspectionDescriptions/IncompatiblePointers.html new file mode 100644 index 000000000..f8d4f422b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IncompatiblePointers.html @@ -0,0 +1,6 @@ + + + 报告在其他指针类型 B 的上下文中使用指针类型 A 的表达式(赋值,转换,作为形参传递,从方法、函数或块返回等)的情况。 您必须显式地将一种指针类型转换为另一种类型以避免编译器警告。 + 当两种类型都是指向类类型的指针时,此检查不适用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IncompatibleTypes.html b/original-plugin-raw/zh/inspectionDescriptions/IncompatibleTypes.html new file mode 100644 index 000000000..497ff139c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IncompatibleTypes.html @@ -0,0 +1,5 @@ + + +报告类型不一致。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IncompleteDestructuring.html b/original-plugin-raw/zh/inspectionDescriptions/IncompleteDestructuring.html new file mode 100644 index 000000000..3a81c7c1c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IncompleteDestructuring.html @@ -0,0 +1,17 @@ + + +报告不完整的析构声明。 +

示例:

+

+  data class Person(val name: String, val age: Int)
+  val person = Person("", 0)
+  val (name) = person
+
+

该快速修复会使用新变量完成析构声明:

+

+  data class Person(val name: String, val age: Int)
+  val person = Person("", 0)
+  val (name, age) = person
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/IncompleteProperty.html b/original-plugin-raw/zh/inspectionDescriptions/IncompleteProperty.html new file mode 100644 index 000000000..67f4b89c9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IncompleteProperty.html @@ -0,0 +1,20 @@ + + + +报告在资源包 .properties 文件的一部分中没有翻译的属性键。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InconsistentCommentForJavaParameter.html b/original-plugin-raw/zh/inspectionDescriptions/InconsistentCommentForJavaParameter.html new file mode 100644 index 000000000..08c0a6f12 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InconsistentCommentForJavaParameter.html @@ -0,0 +1,24 @@ + + +报告注释块中指定的 java 方法的不一致形参名称。 +

示例:

+

+  // Java
+  public class JavaService {
+      public void invoke(String command) {}
+  }
+
+

+  // Kotlin
+  fun main() {
+      JavaService().invoke(/* name = */ "fix")
+  }
+
+

该快速修复会更正注释块中的形参名称:

+

+  fun main() {
+      JavaService().invoke(/* command = */ "fix")
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InconsistentLanguageLevel.html b/original-plugin-raw/zh/inspectionDescriptions/InconsistentLanguageLevel.html new file mode 100644 index 000000000..64182d163 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InconsistentLanguageLevel.html @@ -0,0 +1,8 @@ + + +报告依赖于具有更高语言级别的其他模块的模块。 +

应该移除此类依赖项或提高模块的语言级别。

+ +

仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/InconsistentLineSeparators.html b/original-plugin-raw/zh/inspectionDescriptions/InconsistentLineSeparators.html new file mode 100644 index 000000000..5af90ff20 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InconsistentLineSeparators.html @@ -0,0 +1,8 @@ + + + 报告包含的行分隔符与项目设置中指定的行分隔符不同的文件。 +

例如,如果在设置 | 编辑器 | 代码样式 | 行分隔符中将行分隔符设置为 \n,而您正在编辑的文件使用 \r\n 作为行分隔符,就会触发该检查。

+ +

该检查还会警告留意文件中的混合行分隔符。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InconsistentResourceBundle.html b/original-plugin-raw/zh/inspectionDescriptions/InconsistentResourceBundle.html new file mode 100644 index 000000000..36f3ada5f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InconsistentResourceBundle.html @@ -0,0 +1,81 @@ + + +报告资源包中包含的属性文件中的问题。 +
    +
  • 报告缺失的翻译 +
  • +
+选项会控制搜索未翻译的属性。
+它报告在父属性文件中包含但在继承中缺失的属性(除非它是语言方言)。
+例如: 拥有此资源包:
+ +messages.properties : abc=xxx
+messages_fr.properties:空
+ +属性 abc 将报告为未翻译。 +
    +
  • + + 报告不一致的属性 +
  • +
+选项会控制无效的资源包结构检查。
+它报告在继承属性文件中包含但在父级(如果没有父级,则在同级)中缺失的属性。
+例如: 拥有此资源包:
+messages.properties:空
+messages_fr.properties : abc=xxx
+ +此处的属性 abc 翻译不适用于法语以外的任何语言,因此,将在(默认)属性文件 messages.properties 中报告为缺失。 + +
    +
  • + + 报告使用相同值重写的属性 +
  • +
+选项会检查逐字复制粘贴到多个属性文件中的属性。
+例如: 在此资源包中:
+messages.properties : abc=xxx
+messages_fr.properties : abc=xxx
+ +属性 abc 将在文件 messages_fr.properties 中报告为不必要地继承。 +
+ +
    +
  • + + 报告被不同的占位符重写的属性 +
  • +
+选项会检查为占位符一致性而重写的属性。
+例如: 在此资源包中:
+messages.properties
+qwe={0}xxx{1}
+abc={0}yyy{1}
+messages_fr.properties
+qwe={0}xxx{0}xxx{1}
+abc={0}yyy
+ + +将报告属性 abc,因为属性包含值与 messages.properties 不对应的消息格式占位符。 +
+ +
    +
  • + + 报告使用不同值结尾重写的属性 +
  • +
+选项会检查为了结尾一致性而被重写的属性。
+例如: 在此资源包中:
+messages.properties
+abc=xxxzzz
+messages_fr.properties
+abc=xxx;
+ + +属性 abc 将被报告,因为属性在值的末尾包含特殊符号('!''?''.'':'';'),但 messages.properties 中的值没有。 +
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/InconsistentTextBlockIndent.html b/original-plugin-raw/zh/inspectionDescriptions/InconsistentTextBlockIndent.html new file mode 100644 index 000000000..90bff1938 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InconsistentTextBlockIndent.html @@ -0,0 +1,25 @@ + + +报告同时使用空格和制表符缩进的文本块。 +

由于空格和制表符在文本块处理过程中受到同等对待,所以此类情况会产生意外的结果。

+

在下面的示例中,空格和制表符分别可视化为 ·,在编辑器中,一个制表符相当于 4 个空格。

+

示例:

+

+String colors = """
+········red
+␉   ␉   green
+········blue""";
+
+ +

打印此类字符串后,结果为:

+

+red
+······green
+blue
+
+

编译器从每行的开头移除 2 个空格或制表符后,最后各行的开头会出现额外的空格。

+ +

仅当配置的语言级别为 15 或更高时,此检查才会报告。

+

2021.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IncorrectHttpHeaderInspection.html b/original-plugin-raw/zh/inspectionDescriptions/IncorrectHttpHeaderInspection.html new file mode 100644 index 000000000..66564302e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IncorrectHttpHeaderInspection.html @@ -0,0 +1,7 @@ + + +

+ 报告与任何公共已知标头不匹配的未知 HTTP 标头。 快速修复建议在启用使用自定义 HTTP 标题选项时,将该标题添加到自定义标题列表中。 自定义标头列表中的 HTTP 标头将不会触发检查。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IncorrectOnMessageMethodsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/IncorrectOnMessageMethodsInspection.html new file mode 100644 index 000000000..fc87b0441 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IncorrectOnMessageMethodsInspection.html @@ -0,0 +1,51 @@ + + +

报告使用 @OnMessage 注解的不正确 WebSocket 方法。

+ +

+ 此注解标记处理传入 WebSocket 消息的方法。 每个 WebSocket 端点只能包含一个处理所有 WebSocket 消息格式(文本、二进制、pong)的消息处理方法。 带有 @OnMessage 注解的方法允许以任何顺序具有以下形参集: +

+ +
    +
  • + 可以包含以下形参集之一: +
      +
    • + 如果该方法正在处理文本消息: +
        +
      • String,用于接收整条消息
      • +
      • Java 基元类型或类等效项,用于接收转换为该类型的整条消息
      • +
      • String 和布尔对,用于按部分接收消息
      • +
      • Reader,用于以阻塞流的形式接收整条消息
      • +
      • 端点具有文本解码器的任何对象形参(Decoder.TextDecoder.TextStream) +
      • +
      +
    • +
    • + 如果该方法正在处理二进制消息: +
        +
      • byte[]ByteBuffer,用于接收整条消息
      • +
      • byte[] 和布尔对,或 ByteBuffer 和布尔对,用于按部分接收消息
      • +
      • InputStream,用于以阻塞流的形式接收整条消息
      • +
      • 端点具有二进制解码器的任何对象形参(Decoder.BinaryDecoder.BinaryStream) +
      • +
      +
    • +
    • + 如果该方法正在处理 pong 消息: +
        +
      • PongMessage,用于处理 pong 消息
      • +
      +
    • +
    +
  • +
  • 使用 @PathParam 注解的任意数量的服务器端点的 String 或 Java 基元形参
  • +
  • 一个可选的 Session 形参
  • +
+ +

+ 如果该方法返回一个值,WebSocket 运行时会将其解释为返回给对等方的消息。 + 允许的返回类型是 StringByteBufferbyte[]、任何 Java 基元或类等效项,以及任何带有编码器的类型。 如果该方法返回一个 Java 基元值,则实现必须使用 Java 基元的标准 Java 字符串表示来构造要发送的文本消息,除非开发者为此端点配置的类型提供了编码器,在这种情况下必须使用该编码器。 如果该方法返回 Java 基元的类等效项,则实现必须按照前面所述从 Java 基元等效项构造文本消息。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IncorrectParentDisposable.html b/original-plugin-raw/zh/inspectionDescriptions/IncorrectParentDisposable.html new file mode 100644 index 000000000..f25945ca2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IncorrectParentDisposable.html @@ -0,0 +1,10 @@ + + +报告在插件代码中将 ApplicationProject 用作父级 Disposable。 +

+ 此类用法可能导致无法正确卸载插件。 + 请参阅 SDK 文档中的选择可处置的父级。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/IncrementDecrementResultUsedJS.html b/original-plugin-raw/zh/inspectionDescriptions/IncrementDecrementResultUsedJS.html new file mode 100644 index 000000000..912fd0514 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IncrementDecrementResultUsedJS.html @@ -0,0 +1,6 @@ + + +报告赋值结果在包含其的表达式中 +使用的递增 (++) 或递减 (--) 表达式。 此类赋值可能会由于运算顺序而导致困惑,因为赋值的评估可能会以意想不到的方式影响外部表达式。 示例:var a = b++ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IncrementDecrementUsedAsExpression.html b/original-plugin-raw/zh/inspectionDescriptions/IncrementDecrementUsedAsExpression.html new file mode 100644 index 000000000..4f6364be1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IncrementDecrementUsedAsExpression.html @@ -0,0 +1,24 @@ + + +报告嵌套在其他表达式中的增量或减量表达式。 +此类表达式可能令人困惑,并违反一般设计原则,即任何结构应当只发挥一种作用。 +

该快速修复会将递增或递减运算提取到单独的表达式语句中。

+

示例:

+

+  int i = 10;
+  while (i-- > 0) {
+    System.out.println(i);
+  }
+
+

在应用快速修复后:

+

+  int i = 10;
+  while (i > 0) {
+    i--;
+    System.out.println(i);
+  }
+  i--;
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IndexBoundsCheck.html b/original-plugin-raw/zh/inspectionDescriptions/IndexBoundsCheck.html new file mode 100644 index 000000000..19bb35aab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IndexBoundsCheck.html @@ -0,0 +1,19 @@ + + +

报告索引边界的显式检查。

+ +

该快速修复改用 lift

+ +

示例:

+

+  var x: Seq[Int]
+  if (i < x.length) Some(x(i)) else None
+
+

在应用快速修复后:

+

+  var x: Seq[Int]
+  x.lift(i)
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/IndexOfReplaceableByContains.html b/original-plugin-raw/zh/inspectionDescriptions/IndexOfReplaceableByContains.html new file mode 100644 index 000000000..d0a01894d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IndexOfReplaceableByContains.html @@ -0,0 +1,16 @@ + + +报告与 String.indexOf() 调用(可以替换为对 String.contains() 方法的调用)的比较。 +

示例:

+

+  boolean b = "abcd".indexOf('e') >= 0;
+
+

在应用快速修复后:

+

+  boolean b = "abcd".contains('e');
+
+ +

仅当项目或模块的语言级别为 5 或更高时,此检查才会报告。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IndexZeroUsage.html b/original-plugin-raw/zh/inspectionDescriptions/IndexZeroUsage.html new file mode 100644 index 000000000..28aaa655b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IndexZeroUsage.html @@ -0,0 +1,14 @@ + + +报告 0 在谓词索引中或者与函数 position() 的 +比较中的用法。 此类用法几乎在所有情况下都是错误,因为在 XPath 中,索引从 1不是 0 开始。 + +

示例:

+ +

+  //someelement[position() = 0] or //something[0]
+
+ +

由 XPathView + XSLT-Support 提供技术支持

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/InfiniteLoopJS.html b/original-plugin-raw/zh/inspectionDescriptions/InfiniteLoopJS.html new file mode 100644 index 000000000..3cec1aa72 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InfiniteLoopJS.html @@ -0,0 +1,6 @@ + + +报告只能通过抛出异常来退出的 for 、 +whiledo 语句。 此类语句通常表示编码错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InfiniteLoopStatement.html b/original-plugin-raw/zh/inspectionDescriptions/InfiniteLoopStatement.html new file mode 100644 index 000000000..a41c22031 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InfiniteLoopStatement.html @@ -0,0 +1,22 @@ + + +报告只能通过抛出异常退出的 forwhiledo 语句。 虽然此类语句可能是正确的,但它们经常由编码错误导致。 +

示例:

+

+  for (;;) {
+  }
+
+ +

+使用 放置在 Thread.run 中时忽略 选项忽略 Thread.run 中的无限循环语句。 +它可能对守护线程有用。 +

示例:

+

+  new Thread(() -> {
+    while (true) {
+    }
+  }).start();
+
+

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InfiniteRecursion.html b/original-plugin-raw/zh/inspectionDescriptions/InfiniteRecursion.html new file mode 100644 index 000000000..c8c3fe7f6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InfiniteRecursion.html @@ -0,0 +1,11 @@ + + +报告具有无限递归的方法和函数。 +

示例:

+

+  int factorial(int n) {
+    return n * factorial(n - 1);
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InfiniteRecursionJS.html b/original-plugin-raw/zh/inspectionDescriptions/InfiniteRecursionJS.html new file mode 100644 index 000000000..a830e6e01 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InfiniteRecursionJS.html @@ -0,0 +1,6 @@ + + +报告肯定会无限递归或 +抛出异常的函数。 此类函数可能无法正常返回。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InitializationIssue.html b/original-plugin-raw/zh/inspectionDescriptions/InitializationIssue.html new file mode 100644 index 000000000..63cc49dc0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InitializationIssue.html @@ -0,0 +1,5 @@ + + +报告 C++ 变量初始化问题。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InitializerIssues.html b/original-plugin-raw/zh/inspectionDescriptions/InitializerIssues.html new file mode 100644 index 000000000..f700e57a9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InitializerIssues.html @@ -0,0 +1,5 @@ + + +报告声明初始值设定项的不正确用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InjectOfNonPublicMember.html b/original-plugin-raw/zh/inspectionDescriptions/InjectOfNonPublicMember.html new file mode 100644 index 000000000..4ee5a010c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InjectOfNonPublicMember.html @@ -0,0 +1,9 @@ + + +

+ 报告非 public 字段和方法上的 com.google.inject.Inject 注解。 + 虽然 Guice 可以处理此类注入,但由于安全限制,它在部署过程中可能无法正常工作。 + 一般来说,最好通过将注入的字段和方法设为 public,或者创建一个 public setter 并使用 @Inject 注解来避免此类注入。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InjectedReferences.html b/original-plugin-raw/zh/inspectionDescriptions/InjectedReferences.html new file mode 100644 index 000000000..a9d7bbcd8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InjectedReferences.html @@ -0,0 +1,10 @@ + + +报告语言注入所注入的未解析引用。 +

示例:

+
+    @Language("file-reference")
+    String fileName = "/home/user/nonexistent.file"; // 文件不存在时高亮显示
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InjectionNotApplicable.html b/original-plugin-raw/zh/inspectionDescriptions/InjectionNotApplicable.html new file mode 100644 index 000000000..bc012c2bf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InjectionNotApplicable.html @@ -0,0 +1,13 @@ + + +报告将 @Language 注解应用于 StringString[] 以外类型的元素的情况。 +

示例:

+

+  @Language("HTML") int i;
+
+

在应用快速修复后:

+

+  int i;
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/InjectionValueTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/InjectionValueTypeInspection.html new file mode 100644 index 000000000..70a24ab9c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InjectionValueTypeInspection.html @@ -0,0 +1,33 @@ + + +

报告无效的注入点类型(属性和构造函数实参)。

+ +

允许使用以下注入点类型:refidref、任何集合类型、内部 Bean 等。

+ +

示例:

+ +

+  public class InjectionValueTypes{
+  public List<MyBean> setListBeans() {...}
+    public MyBean setMyBean() {...}
+    }
+  }
+  <beans>
+    <bean class="MyBean" id="myBean"/>
+    <bean class="ErrTypeBean" id="errTypeBean"/>
+    <bean class="InjectionValueTypes" id="kt">
+      <property name="myBean" ref="errTypeBean"/>
+      // 报告 "'MyBean' 类型的属性不能由 'ErrTypeBean' 注入"
+      <property name="listBeans">
+        <list>
+          <idref local="myBean"/>
+          <ref bean="myBean"/>
+          <ref bean="errTypeBean"/> // 报告 "无法添加到 'MyBean' 类型的集合中"
+          <bean class="ErrTypeBean"/> // 报告 "Bean 必须为 'MyBean' 类型"
+        </list>
+      </property>
+    </bean>
+  </beans>
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InnerClassMayBeStatic.html b/original-plugin-raw/zh/inspectionDescriptions/InnerClassMayBeStatic.html new file mode 100644 index 000000000..eb9f26364 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InnerClassMayBeStatic.html @@ -0,0 +1,32 @@ + + +报告可以设置为 static 的内部类。 +

static 内部类不保留对其封闭实例的隐式引用。 + 这可以防止常见的内存泄漏,减少类的每个实例使用的内存。

+

示例:

+

+  public class Outer {
+    class Inner { // 非 static
+      public void foo() {
+        bar("x");
+      }
+
+      private void bar(String string) {}
+    }
+  }
+
+

在应用快速修复后:

+

+  public class Outer {
+    static class Inner {
+      public void foo() {
+        bar("x");
+      }
+
+      private void bar(String string) {}
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InnerClassOnInterface.html b/original-plugin-raw/zh/inspectionDescriptions/InnerClassOnInterface.html new file mode 100644 index 000000000..1192dcbe5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InnerClassOnInterface.html @@ -0,0 +1,15 @@ + + +报告 interface 类中的内部类。 +

有些编码标准不建议使用这种类。 该检查不报告枚举和注解类。

+ +

+使用忽略接口的内部接口选项,可以忽略内部接口。 示例: +


+  interface I {
+    interface Inner {
+    }
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InnerClassReferencedViaSubclass.html b/original-plugin-raw/zh/inspectionDescriptions/InnerClassReferencedViaSubclass.html new file mode 100644 index 000000000..676d506cb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InnerClassReferencedViaSubclass.html @@ -0,0 +1,34 @@ + + +报告对其中的调用由声明类的子类而不是声明类本身限定的内部类和嵌套类的访问。 +

+ Java 允许此类限定,但是此类访问可能表明继承和重写之间存在难以捉摸的混淆。 +

+

示例:

+

+  class Super {
+    static class Inner {}
+  }
+
+  class Sub extends Super {
+    void test() {
+      Sub.Inner s = new Sub.Inner(); // 'Inner' 类在 'Super' 类中声明,但通过 'Sub' 类引用
+    }
+  }
+
+

在应用快速修复后:

+

+  class Super {
+    static class Inner {}
+  }
+
+  class Sub extends Super {
+    void test() {
+      Super.Inner s = new Super.Inner();
+    }
+  }
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InnerClassVariableHidesOuterClassVariable.html b/original-plugin-raw/zh/inspectionDescriptions/InnerClassVariableHidesOuterClassVariable.html new file mode 100644 index 000000000..05ba06493 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InnerClassVariableHidesOuterClassVariable.html @@ -0,0 +1,22 @@ + + +报告与周围类的字段同名的内部类字段。 +由于进行此类命名,在周围类有意使用同名字段的情况下,您可能会误用内部类的字段。 +

建议通过快速修复重命名该内部类字段。

+

示例:

+

+  class Outer {
+    private String name;
+
+    class Inner {
+      private String name;
+    }
+  }
+
+ +

+ 使用此选项可选择此检查应报告所有名称冲突,还是只报告与内部类可见的字段的冲突。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InnerHTMLJS.html b/original-plugin-raw/zh/inspectionDescriptions/InnerHTMLJS.html new file mode 100644 index 000000000..baef799ba --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InnerHTMLJS.html @@ -0,0 +1,10 @@ + + +报告使用 innerHTML 属性以文本形式对 DOM 节点的 JavaScript 访问。 +在采用显式 DOM 调用(例如 getElementByID() +和 createElement())时, +innerHTML 的大多数用法执行效果更好。 此外,innerHTML 不适用于 XML +DOM,包括用于 XHTML 的 DOM(如果以 XML 格式查看)。 这可能会导致 +难以诊断错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InsertLiteralUnderscores.html b/original-plugin-raw/zh/inspectionDescriptions/InsertLiteralUnderscores.html new file mode 100644 index 000000000..c395e9739 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InsertLiteralUnderscores.html @@ -0,0 +1,16 @@ + + +报告不带下划线的长数值文字并建议添加它们。 下划线使此类文字更易于阅读。 +

示例:

+

+  1000000
+
+

在应用快速修复后:

+

+  1_000_000
+
+ +

仅当项目或模块的语言级别为 7 级或更高级别时,此检查才会报告。

+

2020.2 最新变化

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/InspectionDescriptionNotFoundInspection.html b/original-plugin-raw/zh/inspectionDescriptions/InspectionDescriptionNotFoundInspection.html new file mode 100644 index 000000000..c2689f533 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InspectionDescriptionNotFoundInspection.html @@ -0,0 +1,11 @@ + + +报告检查的缺失 HTML 描述文件。 +

+ 描述显示在设置/偏好设置 | 编辑器 | 检查中。 +

+

+ 快速修复创建描述文件会创建模板描述 HTML 文件。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/InspectionMappingConsistency.html b/original-plugin-raw/zh/inspectionDescriptions/InspectionMappingConsistency.html new file mode 100644 index 000000000..797244c45 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InspectionMappingConsistency.html @@ -0,0 +1,8 @@ + + +报告 plugin.xml 中检查扩展点注册的问题。 +

+ 必须使用相应的特性来定义检查(组)名称,才能在 IDE 中正确显示。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InspectionUniqueToolbarId.html b/original-plugin-raw/zh/inspectionDescriptions/InspectionUniqueToolbarId.html new file mode 100644 index 000000000..be5f0f784 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InspectionUniqueToolbarId.html @@ -0,0 +1,8 @@ + + +报告为 ActionManager.createActionToolbar() 传递了非唯一 place 形参。 +

+ 必须指定正确的 place 才能通过 AnActionEvent.getPlace() 区分 update()/actionPerformed() 中操作的用法。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InspectionUsingGrayColors.html b/original-plugin-raw/zh/inspectionDescriptions/InspectionUsingGrayColors.html new file mode 100644 index 000000000..3b794a57a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InspectionUsingGrayColors.html @@ -0,0 +1,12 @@ + + +报告用于创建灰色的 java.awt.Color 的用法。 +

+ 快速修复转换为 Gray 将改用 com.intellij.ui.Gray 常量。 +

+

示例:

+Color myGray = new Color(55, 55, 55); +

在应用快速修复后:

+Color myGray = Gray._55; + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/InstanceGuardedByStatic.html b/original-plugin-raw/zh/inspectionDescriptions/InstanceGuardedByStatic.html new file mode 100644 index 000000000..033cdebd4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InstanceGuardedByStatic.html @@ -0,0 +1,25 @@ + + +报告保护符是 static 字段的实例字段或方法上的 @GuardedBy 注解。 用 static 来保护非 static 可能会导致过度的锁争用,因为访问任何对象实例中的每个锁定字段均将阻止同时访问每个对象实例中的字段。 +

示例:

+

+    private static ReadWriteLock lock = new ReentrantReadWriteLock(); //static 保护字段
+    private Object state;
+
+    @GuardedBy("lock")
+    public void bar() {
+        state = new Object();
+    }
+
+ +

支持的 @GuardedBy 注解是:

+
    +
  • net.jcip.annotations.GuardedBy
  • +
  • javax.annotation.concurrent.GuardedBy
  • +
  • org.apache.http.annotation.GuardedBy
  • +
  • com.android.annotations.concurrency.GuardedBy
  • +
  • androidx.annotation.GuardedBy
  • +
  • com.google.errorprone.annotations.concurrent.GuardedBy
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InstanceOf.html b/original-plugin-raw/zh/inspectionDescriptions/InstanceOf.html new file mode 100644 index 000000000..46e1b8a8c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InstanceOf.html @@ -0,0 +1,6 @@ + + +

报告 isInsteadOf 的用法,并建议将其替换为 Scala 插件内置 is[T] 方法。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InstanceVariableInitialization.html b/original-plugin-raw/zh/inspectionDescriptions/InstanceVariableInitialization.html new file mode 100644 index 000000000..914b76afd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InstanceVariableInitialization.html @@ -0,0 +1,16 @@ + + +报告在对象初始化时可能未被初始化的实例变量。 +

示例:

+

+  class Foo {
+    public int bar;
+
+    static { }
+  }
+
+

请注意,此检查会使用非常保守的数据流算法,可能会错误地将实例变量报告为未初始化。 报告为已初始化的变量将始终被初始化。

+ +

使用忽略基元字段选项可以忽略未初始化的基元字段。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InstanceVariableUninitializedUse.html b/original-plugin-raw/zh/inspectionDescriptions/InstanceVariableUninitializedUse.html new file mode 100644 index 000000000..4016aadd0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InstanceVariableUninitializedUse.html @@ -0,0 +1,20 @@ + + +报告在初始化之前读取的实例变量。 +

该检查会忽略 null 的相等检查。

+

示例:

+

+  class Foo {
+    int bar;
+
+    Foo() {
+      System.out.println(bar);
+    }
+  }
+
+

请注意,此检查会使用非常保守的数据流算法,可能会错误地将实例变量报告为未初始化。 报告为已初始化的变量将始终被初始化。 + +

使用有注解时忽略选项可以指定特殊注解。 该检查将忽略使用其中一种注解进行注解的字段。

+

使用忽略基元字段选项可以忽略未初始化的基元字段。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/InstanceofCatchParameter.html b/original-plugin-raw/zh/inspectionDescriptions/InstanceofCatchParameter.html new file mode 100644 index 000000000..8a735d377 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InstanceofCatchParameter.html @@ -0,0 +1,19 @@ + + +报告使用 instanceof 表达式来测试 catch 块中形参类型的情况。 +

测试 catch 形参的类型通常最好使用单独的 catch 块,而不是使用 instanceof

+

示例:

+

+  void foo(Runnable runnable) {
+    try {
+        runnable.run();
+    } catch (Throwable throwable) {
+        if (throwable instanceof NoClassDefFoundError) { // 警告:'catch' 形参 'throwable' 上的 'instanceof'
+            System.out.println("Class not found!");
+        }
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InstanceofChain.html b/original-plugin-raw/zh/inspectionDescriptions/InstanceofChain.html new file mode 100644 index 000000000..dc0f8ebe3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InstanceofChain.html @@ -0,0 +1,32 @@ + + +报告所有语句条件均为 instanceof 表达式或类等式表达式(例如与 String.class 比较)的 if-else 语句的任何链。 +此类结构通常表明面向对象的设计失败,面向对象的设计要求此类基于类型的调度应通过多态方法调用而不是类型测试的显式链来完成。 +

示例:

+

+  double getArea(Shape shape) {
+    // 警告:抽象失败。
+    // 最好在 shape 接口中
+    // 声明 getArea() 抽象方法,
+    // 并在每个继承者中实现。
+    if (shape instanceof Point) {
+      return 0;
+    }
+    if (shape instanceof Circle) {
+      return Math.PI *
+        Math.pow(((Circle) shape).radius(), 2);
+    }
+    if (shape instanceof Rectangle) {
+      return ((Rectangle) shape).width() *
+        ((Rectangle) shape).height();
+    }
+    throw new IllegalArgumentException();
+  }
+
+ +

+ 使用下面的复选框可忽略库类中的 instanceof 表达式。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InstanceofIncompatibleInterface.html b/original-plugin-raw/zh/inspectionDescriptions/InstanceofIncompatibleInterface.html new file mode 100644 index 000000000..c682168d8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InstanceofIncompatibleInterface.html @@ -0,0 +1,27 @@ + + +报告其中比较的类型为接口,比较的表达式的类的类型既不实现比较的接口,也不具有实现所比较接口的任何可见子类的 instanceof 表达式。 +

+ 尽管这可能是有意为之,但通常此类结构很可能表明有错误,其中得到的 instanceof 表达式的求值结果始终为 false。 +

+

示例:

+

+  interface I1 {}
+
+  interface I2 {}
+
+  interface I3 extends I1 {}
+
+  static class Sub1 implements I1 {}
+
+  static class Sub2 extends Sub1 implements I2 {
+    void test(Sub1 sub1) {
+      if (sub1 instanceof I3) { // 这里的 'I3' 为不兼容的接口
+      }
+    }
+  }
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InstanceofThis.html b/original-plugin-raw/zh/inspectionDescriptions/InstanceofThis.html new file mode 100644 index 000000000..51cb6b36c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InstanceofThis.html @@ -0,0 +1,36 @@ + + +报告在其中检查 this 表达式的 instanceofgetClass() == SomeClass.class 的用法。 +

此类表达式表明面向对象的设计失败,应该替换为多态构造。

+

示例:

+

+class Super {
+  void process() {
+    if (this instanceof Sub) { // 警告
+      doSomething();
+    } else {
+      doSomethingElse();
+    }
+  }
+}
+  
+class Sub extends Super {}
+
+

要修正该问题,可以使用重写方法:

+

+class Super {
+  void process() {
+    doSomethingElse();
+  }
+}
+  
+class Sub extends Super {
+  @Override
+  void process() {
+    doSomething();
+  }
+}  
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InstantiatingObjectToGetClassObject.html b/original-plugin-raw/zh/inspectionDescriptions/InstantiatingObjectToGetClassObject.html new file mode 100644 index 000000000..03e92980a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InstantiatingObjectToGetClassObject.html @@ -0,0 +1,15 @@ + + +报告实例化类以获取其类对象的代码。 +

直接按名称访问类对象时的性能更好。

+

示例:

+

+  Class<?> c = new Sample().getClass();
+
+

在应用快速修复后:

+

+  Class<?> c = Sample.class;
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InstantiationOfUtilityClass.html b/original-plugin-raw/zh/inspectionDescriptions/InstantiationOfUtilityClass.html new file mode 100644 index 000000000..ded1dcfaa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InstantiationOfUtilityClass.html @@ -0,0 +1,26 @@ + + +报告使用 new 关键字的实用程序类的实例化。 +

+ 在实用程序类中,所有字段和方法均为 static。 + 这种类的实例化很可能不必要,并且表明存在错误。

+

示例:

+

+  class MyUtils {
+    public static double cube(double x) {
+      return x * x * x;
+    }
+  }
+  class Main {
+    public static void main(String[] args) {
+      // 实用类的实例化
+      MyUtils utils = new MyUtils();
+    }
+  }
+
+

+ 为防止实用程序类被实例化,建议使用 private 构造函数。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IntLiteralMayBeLongLiteral.html b/original-plugin-raw/zh/inspectionDescriptions/IntLiteralMayBeLongLiteral.html new file mode 100644 index 000000000..cfb7abcc2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IntLiteralMayBeLongLiteral.html @@ -0,0 +1,11 @@ + + +报告立即转换为 longint 文字表达式。 +

此类文字表达式可以替换为等效的 long 文字。

+

示例:

+
Long l = (long)42;
+

在应用快速修复后:

+
Long l = 42L;
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IntegerDivisionInFloatingPointContext.html b/original-plugin-raw/zh/inspectionDescriptions/IntegerDivisionInFloatingPointContext.html new file mode 100644 index 000000000..92c7107ed --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IntegerDivisionInFloatingPointContext.html @@ -0,0 +1,11 @@ + + +报告结果用作浮点数时的整数除法。 +此类除法通常表明有错误,并且由于在整数除法中出现截断,可能会产生意想不到的结果。 +

示例:

+

+  float x = 3.0F + 3/5;
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IntegerMultiplicationImplicitCastToLong.html b/original-plugin-raw/zh/inspectionDescriptions/IntegerMultiplicationImplicitCastToLong.html new file mode 100644 index 000000000..27e7505f3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IntegerMultiplicationImplicitCastToLong.html @@ -0,0 +1,35 @@ + + +报告隐式转换为 long 的整数乘法和左移。 +

示例:

+

+  void f(int i) {
+    long val = 65536 * i;
+  }
+
+

应用快速修复后,代码变为:

+

+  void x(int i) {
+    long val = 65536L * i;
+  }
+
+

示例:

+

+  void f(int i) {
+    long value = i << 24;
+  }
+
+

应用快速修复后,代码变为:

+

+  void f(int i) {
+    long value = (long) i << 24;
+  }
+
+ +

+ 此类乘法通常表明有错误,因为可能会意外发生溢出截断。 + 将 int 文字转换为 long 文字 (65536L) 可以修正该问题。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IntegerTypeRequired.html b/original-plugin-raw/zh/inspectionDescriptions/IntegerTypeRequired.html new file mode 100644 index 000000000..2c8e2c72a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IntegerTypeRequired.html @@ -0,0 +1,5 @@ + + +报告要求具有整数类型但没有的表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IntentionDescriptionNotFoundInspection.html b/original-plugin-raw/zh/inspectionDescriptions/IntentionDescriptionNotFoundInspection.html new file mode 100644 index 000000000..e44f5fef0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IntentionDescriptionNotFoundInspection.html @@ -0,0 +1,11 @@ + + +报告意图的缺失 HTML 描述文件和 before/after.template。 +

+ 它们显示在设置/偏好设置 | 编辑器 | 意图中。 +

+

+ 快速修复创建描述文件会创建模板描述 HTML 文件。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/InterceptionAnnotationWithoutRuntimeRetention.html b/original-plugin-raw/zh/inspectionDescriptions/InterceptionAnnotationWithoutRuntimeRetention.html new file mode 100644 index 000000000..0dd6403c4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InterceptionAnnotationWithoutRuntimeRetention.html @@ -0,0 +1,5 @@ + + +

报告没有运行时保留的截取注解。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InterfaceHasNoImplementation.html b/original-plugin-raw/zh/inspectionDescriptions/InterfaceHasNoImplementation.html new file mode 100644 index 000000000..5c9f35275 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InterfaceHasNoImplementation.html @@ -0,0 +1,5 @@ + + + 报告在项目范围内没有实现的接口声明。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InterfaceMayBeAnnotatedFunctional.html b/original-plugin-raw/zh/inspectionDescriptions/InterfaceMayBeAnnotatedFunctional.html new file mode 100644 index 000000000..be8402ac7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InterfaceMayBeAnnotatedFunctional.html @@ -0,0 +1,8 @@ + + +报告可以用 @FunctionalInterface 注解的接口(自 JDK 1.8 起提供)。 +

使用 @FunctionalInterface 对接口进行注解表明该接口为功能性接口,不能再有其他 abstract 方法。

+ +

仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InterfaceMethodClashesWithObject.html b/original-plugin-raw/zh/inspectionDescriptions/InterfaceMethodClashesWithObject.html new file mode 100644 index 000000000..e7d1bb2ab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InterfaceMethodClashesWithObject.html @@ -0,0 +1,17 @@ + + +报告与 java.lang.Object 类中的 protected 方法 clone()finalize() 冲突的接口方法。 +

在接口中,可以使用与 java.lang.Object 方法不兼容的返回类型来声明这些方法。 + 实现此类接口的类不可编译。 + 当接口正常工作时,虽然仍可根据它创建 lambda,但不建议这样做。

+

示例:

+

+  // // 警告:此接口不能由任何类实现,
+  // 只能由 lambda 或方法引用实现
+  interface MyInterface {
+    double clone();
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InterfaceNeverImplemented.html b/original-plugin-raw/zh/inspectionDescriptions/InterfaceNeverImplemented.html new file mode 100644 index 000000000..e92978803 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InterfaceNeverImplemented.html @@ -0,0 +1,16 @@ + + +报告没有具体子类的接口。 + +

配置检查:

+
    +
  • + 使用下面的列表可以添加注解。 该检查将忽略使用其中一种注解声明的接口。 +
  • +
  • + 使用下面的复选框可以忽略仅声明常量字段的接口。 + 即使没有实现,仍然可以使用此类接口。 +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InterfaceWithOnlyOneDirectInheritor.html b/original-plugin-raw/zh/inspectionDescriptions/InterfaceWithOnlyOneDirectInheritor.html new file mode 100644 index 000000000..cb11584e5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InterfaceWithOnlyOneDirectInheritor.html @@ -0,0 +1,11 @@ + + +报告仅具有一个直接继承者的接口。 +虽然此类接口可能会在内存受限或带宽受限的环境中提供令人钦佩的设计清晰度,但它们不必要地增加了应用程序的总占用空间。 请考虑将接口与其继承者合并。 +

+ 此检查适用于 Java ME 和其他资源高度受限的环境。 + 不加考虑地应用此检查的结果可能会对代码清晰度和设计产生负面影响。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IntroduceWhenSubject.html b/original-plugin-raw/zh/inspectionDescriptions/IntroduceWhenSubject.html new file mode 100644 index 000000000..27c549085 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IntroduceWhenSubject.html @@ -0,0 +1,25 @@ + + +报告可以通过引入主体实参进行简化的 when 表达式。 +

示例:

+

+  fun test(obj: Any): String {
+      return when {
+          obj is String -> "string"
+          obj is Int -> "int"
+          else -> "unknown"
+      }
+  }
+
+

该快速修复会引入一个主体实参:

+

+  fun test(obj: Any): String {
+      return when (obj) {
+          is String -> "string"
+          is Int -> "int"
+          else -> "unknown"
+      }
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/InvalidCallToProtectedPrivateMethod.html b/original-plugin-raw/zh/inspectionDescriptions/InvalidCallToProtectedPrivateMethod.html new file mode 100644 index 000000000..bf6ab3009 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InvalidCallToProtectedPrivateMethod.html @@ -0,0 +1,8 @@ + + +报告对 protected/private 方法的无效调用。 +

您可以使用正确类型的隐式或显式接收器来调用 protected 方法。

+

您只能通过隐式接收器调用 private 方法 (对 self setter 方法除外,例如 self.foo=)。

+

您只能从方法处理程序的上下文调用 protected 和 private 方法。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InvalidComparatorMethodReference.html b/original-plugin-raw/zh/inspectionDescriptions/InvalidComparatorMethodReference.html new file mode 100644 index 000000000..40fc5fcbb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InvalidComparatorMethodReference.html @@ -0,0 +1,20 @@ + + +报告映射到 Comparator 接口的不履行其约定的方法引用。 +

+某些方法引用,例如 Integer::max,可以映射到 Comparator 接口。 +但是,将它们用作 Comparator 是没有意义的,结果可能是不可预测的。 +

+

示例:

+

+  ArrayList<Integer> ints = foo();
+  ints.sort(Math::min);
+
+

在应用快速修复后:

+

+  ArrayList<Integer> ints = foo();
+  ints.sort(Comparator.reverseOrder());
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InvalidI18nProperty.html b/original-plugin-raw/zh/inspectionDescriptions/InvalidI18nProperty.html new file mode 100644 index 000000000..903ec5f55 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InvalidI18nProperty.html @@ -0,0 +1,5 @@ + + +报告 *.property 文件中未解析的属性。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/InvalidImplementedBy.html b/original-plugin-raw/zh/inspectionDescriptions/InvalidImplementedBy.html new file mode 100644 index 000000000..ae2aed688 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InvalidImplementedBy.html @@ -0,0 +1,5 @@ + + +

如果指定的类未实现注解的类,则报告 com.google.inject.ImplementedBy 注解。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InvalidPropertyKeyForm.html b/original-plugin-raw/zh/inspectionDescriptions/InvalidPropertyKeyForm.html new file mode 100644 index 000000000..980cc8f93 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InvalidPropertyKeyForm.html @@ -0,0 +1,5 @@ + + +报告对 .properties 文件的未解析引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InvalidProvidedBy.html b/original-plugin-raw/zh/inspectionDescriptions/InvalidProvidedBy.html new file mode 100644 index 000000000..ad0e33638 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InvalidProvidedBy.html @@ -0,0 +1,5 @@ + + +

如果指定的类未提供注解的类,则报告 com.google.inject.ImplementedBy 注解。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/InvalidRequestParameters.html b/original-plugin-raw/zh/inspectionDescriptions/InvalidRequestParameters.html new file mode 100644 index 000000000..4f28a46f0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/InvalidRequestParameters.html @@ -0,0 +1,5 @@ + + +

报告非 Map<String, String[]> 的字段或形参上的 com.google.inject.RequestParameters 注解。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IterableUsedAsVararg.html b/original-plugin-raw/zh/inspectionDescriptions/IterableUsedAsVararg.html new file mode 100644 index 000000000..c7b3cbde5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IterableUsedAsVararg.html @@ -0,0 +1,17 @@ + + +报告 vararg 方法调用中 CollectionIterable 的可疑用法。 +

例如,在以下方法中:

+

+  <T> boolean contains(T needle, T... haystack) {...}
+
+

像下面这样的调用

+

+  if(contains("item", listOfStrings)) {...}
+
+

看起来很可疑,因为列表将被包装成一个元素数组。 + 此类代码可以被成功编译并且很可能会无异常地运行,但它可能被错误地使用。

+ +

2019.2 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IteratorHasNextCallsIteratorNext.html b/original-plugin-raw/zh/inspectionDescriptions/IteratorHasNextCallsIteratorNext.html new file mode 100644 index 000000000..ab290a6fd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IteratorHasNextCallsIteratorNext.html @@ -0,0 +1,13 @@ + + +报告迭代器实例上调用 Iterator.next()ListIterator.previous()Iterator.hasNext()ListIterator.hasPrevious() 的实现。 此类调用几乎肯定是错误,因为 hasNext() 之类的方法不应修改迭代器状态,而 next() 应修改迭代器状态。 +

示例:

+

+  class MyIterator implements Iterator<Integer> {
+    public boolean hasNext() {
+      return next() != null;
+    }
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/IteratorNextDoesNotThrowNoSuchElementException.html b/original-plugin-raw/zh/inspectionDescriptions/IteratorNextDoesNotThrowNoSuchElementException.html new file mode 100644 index 000000000..3cd4eb0d0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/IteratorNextDoesNotThrowNoSuchElementException.html @@ -0,0 +1,24 @@ + + +报告不能抛出 java.util.NoSuchElementExceptionIterator.next() 的实现。 +

+ 此类实现违反了 java.util.iterator 的约定,如果以非标准方式使用迭代器,可能会导致难以捉摸的错误。 +

+

示例:

+

+  class Numbers implements Iterator<Integer> {
+    @Override
+    public Integer next() { //warning
+        if (hasNext()) {
+            return generateNext();
+        } else {
+            return null; //而是抛出 NoSuchElementException
+        }
+    }
+
+    ...
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JBoss.html b/original-plugin-raw/zh/inspectionDescriptions/JBoss.html new file mode 100644 index 000000000..f7701f50a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JBoss.html @@ -0,0 +1,22 @@ + + + +

报告不正确的 JBoss 特定的 XML 部署描述符:

+ +
    +
  • jboss-web.xml
  • +
  • jboss-app.xml
  • +
  • jboss.xml
  • +
+ +

一些报告的问题:

+ +
    +
  • 对不可实例化类的引用
  • +
  • 对不扩展所需类的类的引用
  • +
  • 空标记和特性值
  • +
  • 不包含必需子标记或特性的标记
  • +
  • 定义具有重复名称的对象的标记
  • +
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JCenterRepository.html b/original-plugin-raw/zh/inspectionDescriptions/JCenterRepository.html new file mode 100644 index 000000000..c32b15572 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JCenterRepository.html @@ -0,0 +1,6 @@ + + +检测 JCenter 存储库的用法以解决依赖关系。 +2022 年 2 月 1 日后,构建不能再解析 JCenter 中的工件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JDBCExecuteWithNonConstantString.html b/original-plugin-raw/zh/inspectionDescriptions/JDBCExecuteWithNonConstantString.html new file mode 100644 index 000000000..42132ac1e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JDBCExecuteWithNonConstantString.html @@ -0,0 +1,21 @@ + + +报告对 java.sql.Statement.execute() 或其任何变体的调用,这些变体会将动态构造的字符串作为要执行的查询。 +

构造的 SQL 语句是安全漏洞的常见来源。 + 默认情况下,此检查会忽略编译时常量。

+

示例:

+

+  ResultSet execute(Statement statement, String name) throws SQLException {
+    return statement.executeQuery("select * from " + name); // 报告警告
+  }
+
+ +

+使用检查选项可以将任何 static final 字段视为常量。 +请小心,因为启用该选项时,像下面这样的字符串将被忽略: +


+  private static final String SQL = "SELECT * FROM user WHERE name='" + getUserInput() + "'";
+
+

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JDBCPrepareStatementWithNonConstantString.html b/original-plugin-raw/zh/inspectionDescriptions/JDBCPrepareStatementWithNonConstantString.html new file mode 100644 index 000000000..175a3ca33 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JDBCPrepareStatementWithNonConstantString.html @@ -0,0 +1,20 @@ + + +报告对 java.sql.Connection.prepareStatement()java.sql.Connection.prepareCall() 或其任何变体的调用,这些变体会将动态构造的字符串作为要准备的语句。 +

+ 构造的 SQL 语句是安全漏洞的常见来源。 默认情况下,此检查会忽略编译时常量。 +

+

示例:

+

+  String bar() { return "bar"; }
+
+  Connection connection = DriverManager.getConnection("", "", "");
+  connection.("SELECT * FROM user WHERE name='" + bar() + "'");
+
+ +使用检查设置可以将任何 static final 字段视为常量。 请小心,因为启用该选项时,像下面这样的字符串将被忽略: +

+  static final String SQL = "SELECT * FROM user WHERE name='" + getUserInput() + "'";
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JDBCResource.html b/original-plugin-raw/zh/inspectionDescriptions/JDBCResource.html new file mode 100644 index 000000000..39c864f78 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JDBCResource.html @@ -0,0 +1,28 @@ + + +报告未安全关闭的 JDBC 资源。 此检查报告的 JDBC 资源包括 java.sql.Connectionjava.sql.Statementjava.sql.PreparedStatementjava.sql.CallableStatementjava.sql.ResultSet。 +

+ 默认情况下,该检查假定资源可以由名称中带有 'close' 或 'cleanup' 的任何方法关闭。 +

+

示例:

+

+  ResultSet findAllElements(Connection connection) throws SQLException {
+    PreparedStatement statement = connection.prepareStatement("SELECT * FROM TABLE");//语句未关闭
+    statement.execute();
+    return statement.getResultSet();
+  }
+
+ +

+ 使用以下选项配置检查: +

+
    +
  • + 是否允许在 try 块内打开 JDBC 资源。 这种样式不太合意,因为它比在 try 块前面打开资源更冗长。 +
  • +
  • + 资源能否通过任何将资源作为实参传递的方法调用来关闭。 +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JNDIResource.html b/original-plugin-raw/zh/inspectionDescriptions/JNDIResource.html new file mode 100644 index 000000000..009514f2e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JNDIResource.html @@ -0,0 +1,28 @@ + + +报告未安全关闭的 JNDI 资源。 此检查报告的 JNDI 资源包括 javax.naming.InitialContextjavax.naming.NamingEnumeration。 +

+ 默认情况下,该检查假定资源可以由名称中带有 'close' 或 'cleanup' 的任何方法关闭。 +

+

示例:

+

+  Object findObject(Properties properties, String name) throws NamingException {
+    Context context = new InitialContext(properties); //上下文未关闭
+    return context.lookup(name);
+  }
+
+ +

+ 使用以下选项配置检查: +

+
    +
  • + 是否允许在 try 块内打开 JNDI 资源。 + 这种样式不太合意,因为它比在 try 块前面打开资源更冗长。 +
  • +
  • + 资源能否通过任何将资源作为实参传递的方法调用来关闭。 +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JRubyDeprecatedJavaMethodUsageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JRubyDeprecatedJavaMethodUsageInspection.html new file mode 100644 index 000000000..942b40336 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JRubyDeprecatedJavaMethodUsageInspection.html @@ -0,0 +1,5 @@ + + +报告 Ruby 代码中已弃用的 Java 方法的用法。 被弃用的方法视为过时的方法,最好替换为未弃用的等效用法。 如果将来移除弃用的方法,在代码库中保留弃用方法的用法可能会导致问题。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JRubyImplementInterfaceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JRubyImplementInterfaceInspection.html new file mode 100644 index 000000000..326cfe0fe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JRubyImplementInterfaceInspection.html @@ -0,0 +1,6 @@ + + +报告实现 Java 接口但未实现部分或全部接口方法的类。 声明为实现 Java 接口的类 +应为其所有方法提供实现,否则可能发生运行时错误。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JRubyJavaFieldAccessInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JRubyJavaFieldAccessInspection.html new file mode 100644 index 000000000..7ba2e4a69 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JRubyJavaFieldAccessInspection.html @@ -0,0 +1,8 @@ + + +报告在不使用 field_accessorfield_reader 或 +field_writer 的情况下,对来自 Ruby 的 Java 字段的点引用。 建议只通过其中的一种字段类型访问 Java 类上的 package、 +protected 和 private 字段。 +

'Calling Java From JRuby' 启发

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JRubyPublicClassInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JRubyPublicClassInspection.html new file mode 100644 index 000000000..d4f55ea25 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JRubyPublicClassInspection.html @@ -0,0 +1,6 @@ + + +报告导入的不具备 public 可见性的类。 尝试使用不具备正确可见性的类可能导致 +运行时出错。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JRubyStringImportInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JRubyStringImportInspection.html new file mode 100644 index 000000000..247be36f8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JRubyStringImportInspection.html @@ -0,0 +1,11 @@ + + +报告无效的 import 语句。 Import 语句必须: +
    +
  • 使用 . 而不是 ::
  • +
  • 引用 Java 类或软件包
  • +
  • 不以 Java 开头
  • +
  • 不以 .: 结尾
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JRubySuperClassMustBeAClassInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JRubySuperClassMustBeAClassInspection.html new file mode 100644 index 000000000..0bab8f86b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JRubySuperClassMustBeAClassInspection.html @@ -0,0 +1,5 @@ + + +报告引用 Java 接口而不是类的超类子句。 超类子句必须引用一个类。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JRubyUnusedImportInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JRubyUnusedImportInspection.html new file mode 100644 index 000000000..a477bf200 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JRubyUnusedImportInspection.html @@ -0,0 +1,5 @@ + + +报告 Ruby 文件中未使用的 import。 可以安全移除未使用的 import。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSAccessibilityCheck.html b/original-plugin-raw/zh/inspectionDescriptions/JSAccessibilityCheck.html new file mode 100644 index 000000000..d7ef5541d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSAccessibilityCheck.html @@ -0,0 +1,6 @@ + + +报告对使用 @private@protected 标记进行标注, +但不符合这些标记所隐含的可见性规则的 JavaScript 成员的引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSAnnotator.html b/original-plugin-raw/zh/inspectionDescriptions/JSAnnotator.html new file mode 100644 index 000000000..6832f4218 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSAnnotator.html @@ -0,0 +1,8 @@ + + +报告基本语法问题以及与语言规范不一致的情况,例如关键字的无效用法、不兼容的数字格式的用法或 getter/setter 的多个形参。 +
+通常必须报告此类错误,并且不应禁用这些错误。 +但在某些情况下,例如由于 JavaScript 的动态性质而导致问题、使用尚未支持的语言功能或 IDE 检查器中有错误时,禁止报告这些很基本的错误可能会很方便。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSArrowFunctionBracesCanBeRemoved.html b/original-plugin-raw/zh/inspectionDescriptions/JSArrowFunctionBracesCanBeRemoved.html new file mode 100644 index 000000000..90eae66ac --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSArrowFunctionBracesCanBeRemoved.html @@ -0,0 +1,18 @@ + + +报告其函数体仅由大括号和恰好一条语句组成的箭头函数。 +建议转换为不带大括号的简洁语法。 + +

+ + let incrementer = (x) => {return x + 1}; + +

+

应用快速修复后,代码段如下所示:

+

+ + let incrementer = (x) => x + 1; + +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSAssignmentUsedAsCondition.html b/original-plugin-raw/zh/inspectionDescriptions/JSAssignmentUsedAsCondition.html new file mode 100644 index 000000000..562b8bf10 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSAssignmentUsedAsCondition.html @@ -0,0 +1,10 @@ + + + +报告用作 ifwhilefor 或 +do 语句的条件的赋值。 虽然偶尔是有意为之,但此用法令人困惑,而且通常表明存在拼写错误(例如,应使用 = 而不是 ==)。 + +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSBitwiseOperatorUsage.html b/original-plugin-raw/zh/inspectionDescriptions/JSBitwiseOperatorUsage.html new file mode 100644 index 000000000..ec8cfac96 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSBitwiseOperatorUsage.html @@ -0,0 +1,6 @@ + + +报告按位 AND ("&") 或 OR ("|") 运算符的可疑用法。 +通常这是拼写错误,应为应用布尔运算 AND ("&&") 和 OR ("||") 的结果。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSCheckFunctionSignatures.html b/original-plugin-raw/zh/inspectionDescriptions/JSCheckFunctionSignatures.html new file mode 100644 index 000000000..06c560aa8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSCheckFunctionSignatures.html @@ -0,0 +1,8 @@ + + +报告其中的实参与所引用函数的签名不匹配的 JavaScript 调用表达式,包括实参的类型及其数量。 +也报告在形参和返回类型方面与被重载函数不匹配的重载函数。 + +

将忽略 TypeScript 代码。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSClassNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/JSClassNamingConvention.html new file mode 100644 index 000000000..3763ea75c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSClassNamingConvention.html @@ -0,0 +1,10 @@ + + +报告用 JSDoc @constructor@class 标记进行注解, +并且其名称太短、太长或不符合指定正则表达式模式的类或函数。 + +

+ 使用下面提供的字段来指定类名称的最小长度、 +最大长度以及预期的正则表达式。 对正则表达式使用标准的 java.util.regex 格式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSClosureCompilerSyntax.html b/original-plugin-raw/zh/inspectionDescriptions/JSClosureCompilerSyntax.html new file mode 100644 index 000000000..e14cb5e1c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSClosureCompilerSyntax.html @@ -0,0 +1,5 @@ + + +报告 Google Closure Compiler 注解隐含的警告,包括 @abstract@interface@implement 标记的正确使用情况。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSCommentMatchesSignature.html b/original-plugin-raw/zh/inspectionDescriptions/JSCommentMatchesSignature.html new file mode 100644 index 000000000..5c4a8ef1a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSCommentMatchesSignature.html @@ -0,0 +1,5 @@ + + +报告 JSDoc 注释中形参的名称和数量与函数的实际形参之间不匹配的情况。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSComparisonWithNaN.html b/original-plugin-raw/zh/inspectionDescriptions/JSComparisonWithNaN.html new file mode 100644 index 000000000..f95f44146 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSComparisonWithNaN.html @@ -0,0 +1,5 @@ + + +报告与 NaN 的比较。 类似于 expr == NaNexpr === NaN 的比较总是评估为 false。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSConsecutiveCommasInArrayLiteral.html b/original-plugin-raw/zh/inspectionDescriptions/JSConsecutiveCommasInArrayLiteral.html new file mode 100644 index 000000000..b771c2ccc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSConsecutiveCommasInArrayLiteral.html @@ -0,0 +1,6 @@ + + +报告数组文字中的连续逗号。 跳过的元素接受 undefined 值, +但这可能是无意为之,例如,当逗号位于一行的末尾和下一行的开头时。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSConstantReassignment.html b/original-plugin-raw/zh/inspectionDescriptions/JSConstantReassignment.html new file mode 100644 index 000000000..85892d9a8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSConstantReassignment.html @@ -0,0 +1,5 @@ + + +报告将值重新赋给常量或只读变量的情况。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSConstructorReturnsPrimitive.html b/original-plugin-raw/zh/inspectionDescriptions/JSConstructorReturnsPrimitive.html new file mode 100644 index 000000000..9528ec3de --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSConstructorReturnsPrimitive.html @@ -0,0 +1,6 @@ + + +报告返回基元值的构造函数。 +在通过 new 调用时,此值将丢失,取而代之的是返回一个对象。 要避免警告,请使用 @return 标记来指定函数返回。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSDeclarationsAtScopeStart.html b/original-plugin-raw/zh/inspectionDescriptions/JSDeclarationsAtScopeStart.html new file mode 100644 index 000000000..3e8ba496a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSDeclarationsAtScopeStart.html @@ -0,0 +1,8 @@ + + +检查使用 var 声明的局部变量的声明是否位于函数范围的顶部。 +

+默认情况下,在执行代码时,变量声明总是被隐形地移动(“提升”)到它所包含的范围的顶部。 +因此,在范围顶部声明有助于在代码中表现出这种行为。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSDeprecatedSymbols.html b/original-plugin-raw/zh/inspectionDescriptions/JSDeprecatedSymbols.html new file mode 100644 index 000000000..e91d874e7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSDeprecatedSymbols.html @@ -0,0 +1,5 @@ + + +报告弃用的函数变量的用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSDuplicateCaseLabel.html b/original-plugin-raw/zh/inspectionDescriptions/JSDuplicateCaseLabel.html new file mode 100644 index 000000000..f1c9c9c3e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSDuplicateCaseLabel.html @@ -0,0 +1,5 @@ + + +报告 switch 语句中重复的 case 标签,这通常表示有错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSDuplicatedDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/JSDuplicatedDeclaration.html new file mode 100644 index 000000000..81598c475 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSDuplicatedDeclaration.html @@ -0,0 +1,5 @@ + + +报告一个范围中的多个声明。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSEqualityComparisonWithCoercion.TS.html b/original-plugin-raw/zh/inspectionDescriptions/JSEqualityComparisonWithCoercion.TS.html new file mode 100644 index 000000000..51b1f3ba9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSEqualityComparisonWithCoercion.TS.html @@ -0,0 +1,24 @@ + + +报告可能导致意外类型强制的相等运算符的用法。 +建议将 ==!= 相等运算符替换为类型安全的 ===!== 运算符。 + +

根据所选的选项,将报告下面的一种情况:

+ +
    +
  • + ==!= 运算符的所有用法。 +
  • +
  • + 除了与 null 比较之外的所有用法。 某些代码样式允许使用 x == null 替代 + x === null || x === undefined。 +
  • +
  • + 仅可疑的表达式,例如:==!= 与 + 0''、 + nulltrue、 + falseundefined 比较。 +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSEqualityComparisonWithCoercion.html b/original-plugin-raw/zh/inspectionDescriptions/JSEqualityComparisonWithCoercion.html new file mode 100644 index 000000000..605d9daaf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSEqualityComparisonWithCoercion.html @@ -0,0 +1,22 @@ + + +报告可能导致意外类型强制的相等运算符的用法。 +建议将 ==!= 替换为类型安全的相等运算符 ===!==。 +

根据所选的选项,将报告下面的一种情况:

+
    +
  • + ==!= 运算符的所有用法。 +
  • +
  • + 除了与 null 比较之外的所有用法。 某些代码样式允许使用 x == null 替代 + x === null || x === undefined。 +
  • +
  • + 仅可疑的表达式,例如:==!= 与 + 0''、 + nulltrue、 + falseundefined 比较。 +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSFieldCanBeLocal.html b/original-plugin-raw/zh/inspectionDescriptions/JSFieldCanBeLocal.html new file mode 100644 index 000000000..537d2cbe9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSFieldCanBeLocal.html @@ -0,0 +1,6 @@ + + +此检查会搜索可使用局部变量替换的冗余类字段。 +如果一个字段的所有局部用法都紧跟对该字段的赋值,则可以移除该字段,并且可以将其用法替换为局部变量。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSFileReferences.html b/original-plugin-raw/zh/inspectionDescriptions/JSFileReferences.html new file mode 100644 index 000000000..9e28616c7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSFileReferences.html @@ -0,0 +1,5 @@ + + +报告 JavaScript 文件中未解析的文件引用,包括 CommonJS 和 AMD 模块引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSFunctionExpressionToArrowFunction.html b/original-plugin-raw/zh/inspectionDescriptions/JSFunctionExpressionToArrowFunction.html new file mode 100644 index 000000000..bc7bc1002 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSFunctionExpressionToArrowFunction.html @@ -0,0 +1,9 @@ + +报告函数表达式。 +建议将其转换为箭头函数。 +

示例:

+
arr.map(function(el) {return el + 1})
+

应用快速修复后,代码如下所示:

+
arr.map(el => el + 1)
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSHint.html b/original-plugin-raw/zh/inspectionDescriptions/JSHint.html new file mode 100644 index 000000000..49b3e4c5a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSHint.html @@ -0,0 +1,5 @@ + + +报告 JSHint linter 检测到的问题。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSIgnoredPromiseFromCall.html b/original-plugin-raw/zh/inspectionDescriptions/JSIgnoredPromiseFromCall.html new file mode 100644 index 000000000..2ac59fd16 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSIgnoredPromiseFromCall.html @@ -0,0 +1,6 @@ + + +报告返回日后不使用的 Promise 的函数调用。 +此类调用通常是无意为之,表明有错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSImplicitlyInternalDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/JSImplicitlyInternalDeclaration.html new file mode 100644 index 000000000..1bb7d12f5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSImplicitlyInternalDeclaration.html @@ -0,0 +1,6 @@ + + +检查函数和变量声明是否具有显式内部修饰符。 +此验证可在 ActionScript 文件中工作。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSIncompatibleTypesComparison.html b/original-plugin-raw/zh/inspectionDescriptions/JSIncompatibleTypesComparison.html new file mode 100644 index 000000000..a87042230 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSIncompatibleTypesComparison.html @@ -0,0 +1,5 @@ + + +报告与不兼容类型的操作数或不含可能公共值的类型的操作数的比较。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSJQueryEfficiency.html b/original-plugin-raw/zh/inspectionDescriptions/JSJQueryEfficiency.html new file mode 100644 index 000000000..ef78c382f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSJQueryEfficiency.html @@ -0,0 +1,5 @@ + + +报告可以缓存的重复 jQuery 选择器,或报告特性或伪选择器的用法(可选)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSJoinVariableDeclarationAndAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/JSJoinVariableDeclarationAndAssignment.html new file mode 100644 index 000000000..524ddeada --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSJoinVariableDeclarationAndAssignment.html @@ -0,0 +1,5 @@ + + +报告在没有初始值设定项的情况下声明并且在代码或单个嵌套范围中使用多得多的变量。 建议将此变量移到更靠近其用法的位置,并将其与初始值设定项表达式联接起来。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSLastCommaInArrayLiteral.html b/original-plugin-raw/zh/inspectionDescriptions/JSLastCommaInArrayLiteral.html new file mode 100644 index 000000000..e411e41db --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSLastCommaInArrayLiteral.html @@ -0,0 +1,11 @@ + + +报告数组文字中尾随逗号的用法。 + +

只有将 JavaScript 语言版本设置为 ECMAScript 5.1 时才报告该警告。

+ +

尽管此规范允许在数组中使用尾随逗号,但在使用尾随逗号时,某些浏览器可能会抛出错误。

+ +

您可以在代码样式 | JavaScriptTypeScript | 标点符号中配置尾随逗号的格式设置选项。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSLastCommaInObjectLiteral.html b/original-plugin-raw/zh/inspectionDescriptions/JSLastCommaInObjectLiteral.html new file mode 100644 index 000000000..ffd687001 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSLastCommaInObjectLiteral.html @@ -0,0 +1,11 @@ + + +报告对象文字中尾随逗号的用法。 + +

只有将 JavaScript 语言版本设置为 ECMAScript 5.1 时才报告该警告。

+ +

此规范允许在对象文字中使用尾随逗号,但在使用尾随逗号时,某些浏览器可能会抛出错误。

+ +

您可以在代码样式 | JavaScriptTypeScript | 标点符号中配置尾随逗号的格式设置选项。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSLintValidation.html b/original-plugin-raw/zh/inspectionDescriptions/JSLintValidation.html new file mode 100644 index 000000000..9a79f40cb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSLintValidation.html @@ -0,0 +1,6 @@ + + +为指定文件运行 JSLintJSHint 验证器。 +在 JavaScript 文件中验证。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSMethodCanBeStatic.html b/original-plugin-raw/zh/inspectionDescriptions/JSMethodCanBeStatic.html new file mode 100644 index 000000000..ae0b40268 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSMethodCanBeStatic.html @@ -0,0 +1,10 @@ + + +报告可以安全地设为 static 的类方法。 +如果某个方法未引用其类的任何非 static 方法和非 static 字段,并且未在子类中被重写, +则该方法可以为 static 方法。 + +

+ 使用下面的第一个复选框只检查 private 方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSMismatchedCollectionQueryUpdate.html b/original-plugin-raw/zh/inspectionDescriptions/JSMismatchedCollectionQueryUpdate.html new file mode 100644 index 000000000..c1523e890 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSMismatchedCollectionQueryUpdate.html @@ -0,0 +1,10 @@ + + +报告查询了其内容但未更新或更新了其内容但未查询 +的字段或变量的集合。 这种不匹配的查询和更新毫无意义, +并且可能表明有死码或排版错误。 +

+根据查询方法是否返回某些内容或向其传递回调,来自动检测查询方法。 +使用下表指定哪些方法是更新方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSMissingSwitchBranches.html b/original-plugin-raw/zh/inspectionDescriptions/JSMissingSwitchBranches.html new file mode 100644 index 000000000..ef20e7904 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSMissingSwitchBranches.html @@ -0,0 +1,5 @@ + + +当 switch 语句不包含 enumunion 类型的某些值选项时,报告该类型变量的 switch 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSMissingSwitchDefault.html b/original-plugin-raw/zh/inspectionDescriptions/JSMissingSwitchDefault.html new file mode 100644 index 000000000..e4d0048a9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSMissingSwitchDefault.html @@ -0,0 +1,5 @@ + + +报告在未枚举某些可能值的情况下不含 default 子句的 switch 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSNonASCIINames.html b/original-plugin-raw/zh/inspectionDescriptions/JSNonASCIINames.html new file mode 100644 index 000000000..d2b216c37 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSNonASCIINames.html @@ -0,0 +1,7 @@ + + +报告名称中的非 ASCII 符号。

+如果选择了“仅允许 ASCII 名称”选项,则报告所有包含非 ASCII 符号的名称。
+否则报告所有既包含 ASCII 又包含非 ASCII 符号的名称。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSNonStrictModeUsed.html b/original-plugin-raw/zh/inspectionDescriptions/JSNonStrictModeUsed.html new file mode 100644 index 000000000..52faf2bef --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSNonStrictModeUsed.html @@ -0,0 +1,5 @@ + + +报告不处于 strict 模式的 JavaScript 文件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSObjectNullOrUndefined.html b/original-plugin-raw/zh/inspectionDescriptions/JSObjectNullOrUndefined.html new file mode 100644 index 000000000..1a30bbc7e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSObjectNullOrUndefined.html @@ -0,0 +1,5 @@ + + +报告对 undefinednull 对象调用方法、访问属性或调用函数所导致的错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSObsoletePrivateAccessSyntax.html b/original-plugin-raw/zh/inspectionDescriptions/JSObsoletePrivateAccessSyntax.html new file mode 100644 index 000000000..a9569e791 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSObsoletePrivateAccessSyntax.html @@ -0,0 +1,8 @@ + + +报告对 private 字段的 #x 样式的访问。 +

+这种语法在较早版本的规范草稿中允许存在,但现在不再是有效的语法。 +最新版本的草稿中只允许显式使用 this. 限定符。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSOctalInteger.html b/original-plugin-raw/zh/inspectionDescriptions/JSOctalInteger.html new file mode 100644 index 000000000..cfa0cb737 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSOctalInteger.html @@ -0,0 +1,7 @@ + + +报告已弃用的前缀为 0 而不是 0o 的八进制整数文字。
+现代 ECMAScript 代码中不允许使用此类文字,在 strict 模式下使用它们会导致错误。
+要针对 ES5 和 ES3 语言级别强制执行此检查,请选中下面的“对 ES5 代码中过时的八进制文字发出警告”复选框。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSPotentiallyInvalidConstructorUsage.html b/original-plugin-raw/zh/inspectionDescriptions/JSPotentiallyInvalidConstructorUsage.html new file mode 100644 index 000000000..1179aa326 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSPotentiallyInvalidConstructorUsage.html @@ -0,0 +1,6 @@ + + +报告可能无效的构造函数的用法,例如:new 后面不是构造函数的函数,使用 +构造函数的原型或调用构造函数但没有使用 new 。 假定构造函数的名称采用大写(可选)或有显式的 JSDoc @constructor 标记。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSPotentiallyInvalidTargetOfIndexedPropertyAccess.html b/original-plugin-raw/zh/inspectionDescriptions/JSPotentiallyInvalidTargetOfIndexedPropertyAccess.html new file mode 100644 index 000000000..2bf5b5c5e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSPotentiallyInvalidTargetOfIndexedPropertyAccess.html @@ -0,0 +1,5 @@ + + +报告可能无效的索引属性访问,例如 Array[1]。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSPotentiallyInvalidUsageOfClassThis.html b/original-plugin-raw/zh/inspectionDescriptions/JSPotentiallyInvalidUsageOfClassThis.html new file mode 100644 index 000000000..9e3c437cb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSPotentiallyInvalidUsageOfClassThis.html @@ -0,0 +1,6 @@ + + +报告试图通过不是 lambda 的嵌套函数中的 this. 限定符,来引用 ECMAScript 类成员的情况。
+不是 lambda 的嵌套函数中的 this 是函数自身的 this,与外部类无关。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSPotentiallyInvalidUsageOfThis.html b/original-plugin-raw/zh/inspectionDescriptions/JSPotentiallyInvalidUsageOfThis.html new file mode 100644 index 000000000..ef76309ee --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSPotentiallyInvalidUsageOfThis.html @@ -0,0 +1,17 @@ + + +报告闭包中的用于引用外部上下文属性的 this

示例:

+

+function Outer() {
+  this.outerProp = 1;
+  function inner() {
+    // 不良,因为 Outer 的 'outerProp' 
+    // 不会如预期的那样
+    // 在调用 'new Outer()' 时在此处进行更新
+    this.outerProp = 2;
+  }
+  inner();
+}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSPrimitiveTypeWrapperUsage.html b/original-plugin-raw/zh/inspectionDescriptions/JSPrimitiveTypeWrapperUsage.html new file mode 100644 index 000000000..e29576ce1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSPrimitiveTypeWrapperUsage.html @@ -0,0 +1,5 @@ + + +报告基元类型包装器使用不当或基元类型属性被修改的情况,因为在后一种情况下,所赋之值将丢失。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSRedundantSwitchStatement.html b/original-plugin-raw/zh/inspectionDescriptions/JSRedundantSwitchStatement.html new file mode 100644 index 000000000..0da1cfe78 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSRedundantSwitchStatement.html @@ -0,0 +1,5 @@ + + +报告语句体为空或仅有一个 case 分支或仅有一个 default 分支的 switch 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSReferencingMutableVariableFromClosure.html b/original-plugin-raw/zh/inspectionDescriptions/JSReferencingMutableVariableFromClosure.html new file mode 100644 index 000000000..8ead65042 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSReferencingMutableVariableFromClosure.html @@ -0,0 +1,13 @@ + + +报告函数中对外部可变变量的访问。 +

示例:

+

+  for (var i = 1; i <= 3; i++) {
+    setTimeout(function() {
+        console.log(i); // 不良
+    }, 0);
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSRemoveUnnecessaryParentheses.html b/original-plugin-raw/zh/inspectionDescriptions/JSRemoveUnnecessaryParentheses.html new file mode 100644 index 000000000..6562daff6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSRemoveUnnecessaryParentheses.html @@ -0,0 +1,13 @@ + + +报告冗余圆括号。 + +

在表达式中:

+var x = ((1) + 2) + 3 +

在箭头函数实参列表中:

+var incrementer = (x) => x + 1 + +

在 TypeScript 和 Flow 类型声明中:

+type Card = (Suit & Rank) | (Suit & Number) + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSStringConcatenationToES6Template.html b/original-plugin-raw/zh/inspectionDescriptions/JSStringConcatenationToES6Template.html new file mode 100644 index 000000000..3fcc33cd1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSStringConcatenationToES6Template.html @@ -0,0 +1,10 @@ + + +报告字符串串联。 建议将其替换为模板文字。 +

示例

+
 "result: " + a + "." 
+

应用快速修复后,代码如下所示:

+
 `result: ${a}.` 
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSSuspiciousEqPlus.html b/original-plugin-raw/zh/inspectionDescriptions/JSSuspiciousEqPlus.html new file mode 100644 index 000000000..e41aadec7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSSuspiciousEqPlus.html @@ -0,0 +1,6 @@ + + +报告 a =+ b 形式的赋值。 +建议替换为 a += b。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSSuspiciousNameCombination.html b/original-plugin-raw/zh/inspectionDescriptions/JSSuspiciousNameCombination.html new file mode 100644 index 000000000..28d558dca --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSSuspiciousNameCombination.html @@ -0,0 +1,17 @@ + + + +报告目标变量或函数形参的名称与分配给它的值的名称不匹配的赋值或函数调用。 +

示例:

+

+  var x = 0;
+  var y = x;
+
+或 +

+  var x = 0, y = 0;
+  var rc = new Rectangle(y, x, 20, 20);
+
+

指定不应一起使用的名称。 如果形参名称或赋值目标名称包含一个组中的词语,而赋值或传递的变量的名称包含另一个组中的词语,则会报告错误。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSSwitchVariableDeclarationIssue.html b/original-plugin-raw/zh/inspectionDescriptions/JSSwitchVariableDeclarationIssue.html new file mode 100644 index 000000000..7ed0bef79 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSSwitchVariableDeclarationIssue.html @@ -0,0 +1,7 @@ + + +报告在 switch 语句的一个 case 子句中声明但在同一语句的另一个 case 子句中使用的变量。 +对于块范围的变量,这将导致抛出 ReferenceError。 +对于 var 变量,它表示可能有错误。

如果有意使用此模式,请禁用 var 变量检查。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSTestFailedLine.html b/original-plugin-raw/zh/inspectionDescriptions/JSTestFailedLine.html new file mode 100644 index 000000000..154285365 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSTestFailedLine.html @@ -0,0 +1,5 @@ + + +报告失败的方法调用或测试中的断言。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSTypeOfValues.html b/original-plugin-raw/zh/inspectionDescriptions/JSTypeOfValues.html new file mode 100644 index 000000000..58e212897 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSTypeOfValues.html @@ -0,0 +1,6 @@ + + +报告 typeof 表达式与不是以下标准类型之一的文字字符串的比较:undefinedobjectbooleannumberstringfunctionsymbol。 +此类比较始终返回 false。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSUndeclaredVariable.html b/original-plugin-raw/zh/inspectionDescriptions/JSUndeclaredVariable.html new file mode 100644 index 000000000..76dae9b96 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSUndeclaredVariable.html @@ -0,0 +1,10 @@ + + +报告全局变量的隐式声明。 +

示例:

+

+  var aaa = 1; // 优良
+  bbb = 2; // 不良,如果未在某处用 'var' 声明 bbb
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSUndefinedPropertyAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/JSUndefinedPropertyAssignment.html new file mode 100644 index 000000000..e9a44e67c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSUndefinedPropertyAssignment.html @@ -0,0 +1,13 @@ + + +报告对未在变量类型中定义的属性的赋值。

示例:

+

+/**
+ * @type {{ property1: string, property2: number }}
+ */
+let myVariable = create();
+
+myVariable.newProperty = 3; // 不良
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSUnfilteredForInLoop.html b/original-plugin-raw/zh/inspectionDescriptions/JSUnfilteredForInLoop.html new file mode 100644 index 000000000..34784162e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSUnfilteredForInLoop.html @@ -0,0 +1,27 @@ + + +报告未筛选的 for-in 循环。 +

+使用此结构不仅会处理对象自身的属性,还会处理对象原型的属性。 +在某些特定情况下可能出人意料,例如,在复制或修改所有属性的实用程序方法中 +或者 Object 的原型可能被错误修改时。 +例如,以下代码将打印 42myMethod: +

+

+Object.prototype.myMethod = function myMethod() {};
+let a = { foo: 42 };
+for (let i in a) {
+  console.log(a[i]);
+}
+
+ +

建议将整个循环替换为 Object.keys() 方法,或添加 hasOwnProperty() 检查。 应用快速修复后,代码如下所示:

+

+for (let i in a) {
+  if (a.hasOwnProperty(i)) {
+    console.log(a[i]);
+  }
+}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSUnnecessarySemicolon.html b/original-plugin-raw/zh/inspectionDescriptions/JSUnnecessarySemicolon.html new file mode 100644 index 000000000..788b429c8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSUnnecessarySemicolon.html @@ -0,0 +1,5 @@ + + +报告不必要的分号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSUnreachableSwitchBranches.html b/original-plugin-raw/zh/inspectionDescriptions/JSUnreachableSwitchBranches.html new file mode 100644 index 000000000..936043a25 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSUnreachableSwitchBranches.html @@ -0,0 +1,17 @@ + + +报告 switch 语句不可到达的 case 分支。

示例:

+

+/**
+ * @param {('foo' | 'bar')} p
+ */
+function foo(p) {
+    switch (p) {
+        case 'foo': break;
+        case 'bar': break;
+        case 'baz': break; // 不可到达
+    }
+}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSUnresolvedExtXType.html b/original-plugin-raw/zh/inspectionDescriptions/JSUnresolvedExtXType.html new file mode 100644 index 000000000..7fc263dba --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSUnresolvedExtXType.html @@ -0,0 +1,5 @@ + + +报告没有相应类的 Ext JS xtype 引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSUnresolvedFunction.html b/original-plugin-raw/zh/inspectionDescriptions/JSUnresolvedFunction.html new file mode 100644 index 000000000..9ca0e47a2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSUnresolvedFunction.html @@ -0,0 +1,6 @@ + + +报告调用中未解析的函数。 +

将忽略 TypeScript 代码。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSUnresolvedLibraryURL.html b/original-plugin-raw/zh/inspectionDescriptions/JSUnresolvedLibraryURL.html new file mode 100644 index 000000000..484aac501 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSUnresolvedLibraryURL.html @@ -0,0 +1,6 @@ + + +报告未与任何本地存储文件关联的外部 JavaScript 库的 URL。 建议下载此库。 +此类关联使 IDE 可以提供正确的代码补全和导航。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSUnresolvedReactComponent.html b/original-plugin-raw/zh/inspectionDescriptions/JSUnresolvedReactComponent.html new file mode 100644 index 000000000..410665f88 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSUnresolvedReactComponent.html @@ -0,0 +1,7 @@ + + +报告对 React 组件的未解析引用。 +如果引用的组件在此项目或其依赖项中定义,则建议添加缺少的 import 语句,或创建采用此名称的新组件。 +

新组件的模板可以在“编辑器 | 文件和代码模板”中修改。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSUnresolvedVariable.html b/original-plugin-raw/zh/inspectionDescriptions/JSUnresolvedVariable.html new file mode 100644 index 000000000..274796741 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSUnresolvedVariable.html @@ -0,0 +1,6 @@ + + +报告未解析的引用变量或字段。 +

将忽略 TypeScript 代码。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSUntypedDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/JSUntypedDeclaration.html new file mode 100644 index 000000000..8e8e072dd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSUntypedDeclaration.html @@ -0,0 +1,6 @@ + + +检查函数和变量声明是否指定了类型。 +验证可在 ECMAScript 级别 4 文件中工作。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSUnusedAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/JSUnusedAssignment.html new file mode 100644 index 000000000..b84c6de62 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSUnusedAssignment.html @@ -0,0 +1,12 @@ + + +报告赋值后从未使用其值的变量。
+建议移除未使用的变量以缩短代码并避免冗余分配。 +

报告的情况如下:

+
    +
  • 赋值后从未读取的变量。
  • +
  • 在下次读取变量前,变量的值总是被另一个赋值覆盖。
  • +
  • 变量的初始值设定项冗余(出于上述原因之一)。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSUnusedGlobalSymbols.html b/original-plugin-raw/zh/inspectionDescriptions/JSUnusedGlobalSymbols.html new file mode 100644 index 000000000..0d8ab36b3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSUnusedGlobalSymbols.html @@ -0,0 +1,5 @@ + + +报告未使用的可以全局访问的 public 函数、变量、类或属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSUnusedLocalSymbols.html b/original-plugin-raw/zh/inspectionDescriptions/JSUnusedLocalSymbols.html new file mode 100644 index 000000000..f27703d70 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSUnusedLocalSymbols.html @@ -0,0 +1,5 @@ + + +报告本地可以访问的并且未使用的形参、局部变量、函数、类或 private 成员声明。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSUrlImportUsage.html b/original-plugin-raw/zh/inspectionDescriptions/JSUrlImportUsage.html new file mode 100644 index 000000000..95ec8a47f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSUrlImportUsage.html @@ -0,0 +1,10 @@ + + +检查 JavaScript 语言中使用过的 URL 导入。 +建议下载指定的远程 URL 的模块。 +此类关联使 IDE 可以提供正确的代码补全和导航。 +
+
+只有 JavaScript 语言的 ECMAScript 模块支持导入说明符中的 URL。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSValidateJSDoc.html b/original-plugin-raw/zh/inspectionDescriptions/JSValidateJSDoc.html new file mode 100644 index 000000000..4c7f134b9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSValidateJSDoc.html @@ -0,0 +1,5 @@ + + +报告文档注释中的语法差异。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSValidateTypes.html b/original-plugin-raw/zh/inspectionDescriptions/JSValidateTypes.html new file mode 100644 index 000000000..128c99260 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSValidateTypes.html @@ -0,0 +1,11 @@ + + +报告类型不正确的以下对象: +
    +
  • 函数调用中的形参
  • +
  • 返回值
  • +
  • 赋值表达式
  • +
+

将忽略 TypeScript 代码。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSVoidFunctionReturnValueUsed.html b/original-plugin-raw/zh/inspectionDescriptions/JSVoidFunctionReturnValueUsed.html new file mode 100644 index 000000000..c62035045 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSVoidFunctionReturnValueUsed.html @@ -0,0 +1,16 @@ + + +报告不返回任何内容的函数的返回值。 +调用此类函数总是生成 undefined 值,此类赋值可能表明有错误。

示例:

+

+let a = console.log('foo');
+
+
+以下用法将被忽略: +
    +
  • 在 return 语句内部
  • +
  • 在某些二进制运算中
  • +
  • 对于覆盖的非 void 函数
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSXNamespaceValidation.html b/original-plugin-raw/zh/inspectionDescriptions/JSXNamespaceValidation.html new file mode 100644 index 000000000..dcee52975 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSXNamespaceValidation.html @@ -0,0 +1,8 @@ + + +报告不导入 React 命名空间的 JSX 构造的用法。 +将 React 命名空间置于文件范围中可确保正确编译代码。 +

+在 React 17+ 的项目中已禁用此检查,因为这些版本不再需要 React 命名空间。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JSXSyntaxUsed.html b/original-plugin-raw/zh/inspectionDescriptions/JSXSyntaxUsed.html new file mode 100644 index 000000000..8b661feea --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JSXSyntaxUsed.html @@ -0,0 +1,5 @@ + + +报告 JavaScript 代码中 React JSX 标记的用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JUnit3StyleTestMethodInJUnit4Class.html b/original-plugin-raw/zh/inspectionDescriptions/JUnit3StyleTestMethodInJUnit4Class.html new file mode 100644 index 000000000..67dc51734 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JUnit3StyleTestMethodInJUnit4Class.html @@ -0,0 +1,7 @@ + + +报告位于不扩展 JUnit 3 TestCase 类并包含 JUnit 4 或 JUnit 5 @Test 注解方法的类中的 JUnit 3 样式测试方法。 +无法运行此类测试方法。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JUnit4AnnotatedMethodInJUnit3TestCase.html b/original-plugin-raw/zh/inspectionDescriptions/JUnit4AnnotatedMethodInJUnit3TestCase.html new file mode 100644 index 000000000..090898c41 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JUnit4AnnotatedMethodInJUnit3TestCase.html @@ -0,0 +1,22 @@ + + +报告 junit.framework.TestCase 继承者中的 JUnit 4 @Test 注解方法。 混合 JUnit 的 API 会导致运行测试出现问题。 +

示例:

+

+  public class MyTest extends TestCase {
+      @Test //名称不是以 "test" 开头,因此将被忽略
+      public void wouldBeIgnored() {}
+  
+      @Test   //名称以 "test" 开头
+      @Ignore //因此即便有 @Ignore 注解也会执行
+      public void testWouldBeExecuted() {}
+  }
+
+

提供的修正:

+
    +
  • 移除 @Ignore 注解并重命名测试方法,使名称不以“test”开头。
  • +
  • 将 JUnit 3 测试类转换为 JUnit 4。
  • +
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JUnit5AssertionsConverter.html b/original-plugin-raw/zh/inspectionDescriptions/JUnit5AssertionsConverter.html new file mode 100644 index 000000000..0aeed55ac --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JUnit5AssertionsConverter.html @@ -0,0 +1,31 @@ + + +

报告 JUnit 5 测试中对任何junit.framework.Assertorg.junit.Assertorg.junit.Assume 类中的方法的调用。

+

尽管这些测试正常工作,但迁移到 org.junit.jupiter.api.Assertions/org.junit.jupiter.api.Assumptions 有助于避免对旧版 JUnit 的依赖。

+

示例:

+

+  import org.junit.Assert;
+  import org.junit.jupiter.api.Test;
+
+  public class MyTest {
+    @Test
+    public void simpleTest() {
+      Assert.assertEquals(4, 2 + 2);
+    }
+  }
+
+

在应用快速修复后:

+

+  import org.junit.jupiter.api.Assertions;
+  import org.junit.jupiter.api.Test;
+
+  public class MyTest {
+    @Test
+    public void simpleTest() {
+      Assertions.assertEquals(4, 2 + 2);
+    }
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JUnit5Converter.html b/original-plugin-raw/zh/inspectionDescriptions/JUnit5Converter.html new file mode 100644 index 000000000..a045b7773 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JUnit5Converter.html @@ -0,0 +1,32 @@ + + +报告可以自动迁移到 JUnit 5 的 JUnit 4 测试。 +虽然默认运行程序可以自动转换,但自定义运行程序、方法规则和字段规则不能自动转换,需要手动更改。 +

示例:

+

+  import org.junit.Assert;
+  import org.junit.Test;
+
+  public class RelevantTest {
+    @Test
+    public void testIt() {
+      Assert.assertEquals("expected", "actual");
+    }
+  }
+
+

在应用快速修复后:

+

+  import org.junit.jupiter.api.Assertions;
+  import org.junit.jupiter.api.Test;
+
+  public class RelevantTest {
+    @Test
+    public void testIt() {
+      Assertions.assertEquals("expected", "actual");
+    }
+  }
+
+ +

此检查要求类路径中提供 JUnit 5 库,并且为项目配置了 JDK 1.8 或更高版本。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JUnit5MalformedNestedClass.html b/original-plugin-raw/zh/inspectionDescriptions/JUnit5MalformedNestedClass.html new file mode 100644 index 000000000..5bc0b887e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JUnit5MalformedNestedClass.html @@ -0,0 +1,7 @@ + + +报告使用 @Nested 注解的 static 内部类。 +

不能对 static 类使用 @Nested 注解。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JUnit5MalformedRepeated.html b/original-plugin-raw/zh/inspectionDescriptions/JUnit5MalformedRepeated.html new file mode 100644 index 000000000..26125f6fb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JUnit5MalformedRepeated.html @@ -0,0 +1,11 @@ + + +

报告 JUnit 5 @RepeatedTest 的以下问题:

+
    +
  • 在同一个方法中使用 @Test@RepeatedTest。 即便允许使用它们,结合使用也不会产生其他效果。
  • +
  • RepetitionInfo 形参在 @BeforeAll@AfterAll 方法中使用。 该形参未注入到这些方法中。
  • +
  • RepetitionInfo 形参在包含 @Test 方法的类中的 @BeforeEach@AfterEach 方法中使用。 在本例中,此形参不会被注入 @Test 方法中。
  • +
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JUnitDatapoint.html b/original-plugin-raw/zh/inspectionDescriptions/JUnitDatapoint.html new file mode 100644 index 000000000..a47175901 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JUnitDatapoint.html @@ -0,0 +1,44 @@ + + +报告使用 @DataPoint 注解并且为非 public 和/或非 static 的字段或方法。 +不能运行 @DataPoint 成员格式错误的 theories 测试类。 +

示例:

+

+  @RunWith(Theories.class)
+  public class SeriousTest {
+    @DataPoint
+    private String dataPoint = "value";
+
+    @DataPoint("generated")
+    private String generatedDataPoint() {
+      return "generated value";
+    }
+
+    @Theory
+    public void theoryMethod(String param) {
+      // ...
+    }
+  }
+
+

通过快速修复来修正修饰符:

+

+  @RunWith(Theories.class)
+  public class SeriousTest {
+    @DataPoint
+    public static String dataPoint = "value";
+
+    @DataPoint("generated")
+    public static String generatedDataPoint() {
+      return "generated value";
+    }
+
+    @Theory
+    public void theoryMethod(String param) {
+      // ...
+    }
+  }
+
+ +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JUnitRule.html b/original-plugin-raw/zh/inspectionDescriptions/JUnitRule.html new file mode 100644 index 000000000..135e8b774 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JUnitRule.html @@ -0,0 +1,34 @@ + + +报告格式错误的 @Rule@ClassRule 注解用法。 +无法运行规则格式错误的测试。 +

    +
  • + @Rule 注解成员必须为 public 以及 org.junit.rules.TestRuleorg.junit.rules.MethodRule 的子类型 +
  • + @ClassRule 注解成员必须为 publicstatic 以及 org.junit.rules.TestRule 的子类型 +
+

示例:

+

+  public class MomentousTest {
+    @Rule
+    private final TemporaryFolder tempFolder =
+      new TemporaryFolder();
+
+    // ... 测试转到此处
+  }
+
+

通过快速修复来修正修饰符:

+

+  public class MomentousTest {
+    @Rule
+    public final TemporaryFolder tempFolder =
+      new TemporaryFolder();
+
+    // ... 测试转到此处
+  }
+
+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JUnitTestNG.html b/original-plugin-raw/zh/inspectionDescriptions/JUnitTestNG.html new file mode 100644 index 000000000..2d39cb2cd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JUnitTestNG.html @@ -0,0 +1,29 @@ + + +报告可以转换为基于 TestNG 的单元测试的任何基于 JUnit 的测试类。 +

示例:

+

+import org.junit.Test;
+import static org.junit.Assert.*;
+
+public class ExampleTest {
+  @Test
+  public void testExample(){
+    assertEquals(2 + 2, 4);
+  }
+}
+
+

在应用快速修复后:

+

+import org.testng.Assert;
+import org.testng.annotations.Test;
+
+public class ExampleTest {
+  @Test
+  public void testExample(){
+    Assert.assertEquals(4, 2 + 2);
+  }
+}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JadeTabsAndSpaces.html b/original-plugin-raw/zh/inspectionDescriptions/JadeTabsAndSpaces.html new file mode 100644 index 000000000..2624dbcce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JadeTabsAndSpaces.html @@ -0,0 +1,5 @@ + + +报告 Pug 文件中空格和制表符缩进的使用情况。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Java8CollectionRemoveIf.html b/original-plugin-raw/zh/inspectionDescriptions/Java8CollectionRemoveIf.html new file mode 100644 index 000000000..e5feac1f2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Java8CollectionRemoveIf.html @@ -0,0 +1,22 @@ + + +报告可以折叠为单个 Collection.removeIf 调用的循环。 +

示例:

+

+  for (Iterator<String> it = collection.iterator(); it.hasNext(); ) {
+    String aValue = it.next();
+    if(shouldBeRemoved(aValue)) {
+      it.remove();
+    }
+  }
+
+

在应用快速修复后:

+

+  collection.removeIf(aValue -> shouldBeRemoved(aValue));
+
+ +

+ 仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Java8ListSort.html b/original-plugin-raw/zh/inspectionDescriptions/Java8ListSort.html new file mode 100644 index 000000000..ad2c102c3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Java8ListSort.html @@ -0,0 +1,8 @@ + + +报告 Collections.sort(list,comparator) 的调用,可以替换为 list.sort(comparator)。 +

Collections.sort 只是一个包装器,所以最好直接使用实例方法。

+ +

仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Java8MapApi.html b/original-plugin-raw/zh/inspectionDescriptions/Java8MapApi.html new file mode 100644 index 000000000..71153c30c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Java8MapApi.html @@ -0,0 +1,52 @@ + + +报告 java.util.Map 常见的使用模式,并建议将其替换为: +getOrDefault()computeIfAbsent()putIfAbsent()merge()replaceAll( )。 +

示例:

+

+  map.containsKey(key) ? map.get(key) : "default";
+
+

在应用快速修复后:

+

+  map.getOrDefault(key, "default");
+
+

示例:

+

+  List<String> list = map.get(key);
+  if (list == null) {
+    list = new ArrayList<>();
+    map.put(key, list);
+  }
+
+

在应用快速修复后:

+

+  map.computeIfAbsent(key, localKey -> new ArrayList<>());
+
+

示例:

+

+  Integer val = map.get(key);
+  if (val == null) map.put(key, 1);
+  else map.put(key, val + 1);
+
+

在应用快速修复后:

+

+  map.merge(key, 1, (localKey, localValue) -> localValue + 1);
+
+

示例:

+

+  for (Map.Entry<String, String> entry : map.entrySet()) {
+    map.put(entry.getKey(), transform(entry.getValue()));
+  }
+
+

在应用快速修复后:

+

+  map.replaceAll((localKey, localValue) -> transform(localValue));
+
+ + +

请注意,如果提取到 lambda 表达式的代码修改了相同的 Map,对于某些 Map,替换为 computeIfAbsent()merge() 可能无法正常使用。 在默认情况下,如果这段代码有副作用,则不会出现警告。 如有必要,启用建议替换,即使 lambda 可能有副作用选项,以始终显示警告。

+

此外,由于 put() 等旧方法和 computeIfAbsent()merge() 等新方法中对 null 值的不同处理,语义可能会改变,如果将 null 值存储到给定的 Map 中很重要,您需要考虑这一点。 当值是静态已知为 null 时,该检查不会建议进行替换。但对于可 null 性未知的值,仍然建议进行替换。 在这些情况下,我们建议禁止警告并添加说明注释。 +

+

此检查仅在项目或模块的语言级别为 8 或更高时有效。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Java8MapForEach.html b/original-plugin-raw/zh/inspectionDescriptions/Java8MapForEach.html new file mode 100644 index 000000000..6d5157af9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Java8MapForEach.html @@ -0,0 +1,28 @@ + + +建议将 for(Entry<?,?> entry : map.entrySet()) {...} 或 +map.entrySet().forEach(entry -> ...) 替换为 map.forEach((key, value) -> ...)。 +

示例

+

+  void print(Map<String, Integer> map) {
+    map.entrySet().forEach(entry -> {
+      String str = entry.getKey();
+      System.out.println(str + ":" + entry.getValue());
+    });
+  }
+
+

在应用快速修复后:

+

+  void print(Map<String, Integer> map) {
+    map.forEach((str, value) -> System.out.println(str + ":" + value));
+  }
+
+ +

+ 启用 不要报告循环选项后,只会报告 entrySet().forEach() 情况。 + 但是,该快速修复操作也可用于 for 循环。 +

+

仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。

+

2017.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Java9CollectionFactory.html b/original-plugin-raw/zh/inspectionDescriptions/Java9CollectionFactory.html new file mode 100644 index 000000000..b534de72c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Java9CollectionFactory.html @@ -0,0 +1,36 @@ + + +报告 java.util.Collections 不可修改的集合调用,这些调用可以转换为更新的集合工厂方法。 +例如,这些可以替换为在 Java 9 中引入的 List.of()Set.of() 或在 Java 10 中引入的 List.copyOf()。 + +

请注意,与 java.util.Collections 方法相比,Java 9 集合工厂方法: +

    +
  • 不接受 null 值。 +
  • 需要唯一的集合元素和映射键。 +
  • 不要接受 null 实参来查询返回集合的 List.contains()Map.get() 等方法。 +
+

当这些情况被违反时,会抛出异常。 + 这可以在迁移后更改代码的语义。

+

示例: +


+  List<Integer> even = Collections.unmodifiableList(
+    Arrays.asList(2, 4, 6, 8, 10, 2));
+  List<Integer> evenCopy = Collections.unmodifiableList(
+    new ArrayList<>(list1));
+
+

在应用快速修复后:

+

+  List<Integer> even = List.of(2, 4, 6, 8, 10, 2);
+  List<Integer> evenCopy = List.copyOf(list);
+
+ + +

仅当项目或模块的语言级别为 9 或更高时,此检查才会报告。 +

+使用当内容为非常量时不发出警告选项可以仅在提供的实参是编译时常量的情况下报告。 +这减少了行为改变的机会,因为并不总是可以静态检查原始元素是否唯一且为非 null。 +

+ 使用建议 'Map.ofEntries' 选项可建议使用 Map.ofEntries() 替换超过 10 个条目的不可修改的映射。 +

2017.2 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Java9ModuleExportsPackageToItself.html b/original-plugin-raw/zh/inspectionDescriptions/Java9ModuleExportsPackageToItself.html new file mode 100644 index 000000000..48a9a4bfa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Java9ModuleExportsPackageToItself.html @@ -0,0 +1,19 @@ + + +报告导出到定义它们的同一 Java 9 模块或在该模块中打开的软件包。 +该快速修复会从 module-info.java 中移除此类指令。 +

示例:

+

+  module com.mycomp {
+    exports com.mycomp.main to com.mycomp;
+  }
+
+

在应用快速修复后:

+

+  module main {
+  }
+
+ +

仅当项目或模块的语言级别为 9 或更高时,此检查才会报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Java9RedundantRequiresStatement.html b/original-plugin-raw/zh/inspectionDescriptions/Java9RedundantRequiresStatement.html new file mode 100644 index 000000000..bf73ad5cc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Java9RedundantRequiresStatement.html @@ -0,0 +1,13 @@ + + +报告这样一种情况: Java 9 模块 A 需要 Java 9 模块 B, +但是 A 不使用 B 中的任何软件包。 +此外,需要 java.base 模块的指令是冗余的。 + +

+ 该修复删除了此类冗余依赖项的 requires 指令。 + 如果删除的依赖项重新导出了实际使用的模块,则修复程序会为这些模块添加 requires 指令。 +

+2017.1 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Java9ReflectionClassVisibility.html b/original-plugin-raw/zh/inspectionDescriptions/Java9ReflectionClassVisibility.html new file mode 100644 index 000000000..fe890e17a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Java9ReflectionClassVisibility.html @@ -0,0 +1,7 @@ + + +报告 Class.forName()ClassLoader.loadClass() 调用,这些调用尝试访问由于 Java 9 模块可访问性规则而在当前范围内不可见的类。 + +

仅当项目或模块的语言级别为 9 或更高时,此检查才会报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Java9UndeclaredServiceUsage.html b/original-plugin-raw/zh/inspectionDescriptions/Java9UndeclaredServiceUsage.html new file mode 100644 index 000000000..af5027ab2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Java9UndeclaredServiceUsage.html @@ -0,0 +1,7 @@ + + +报告使用 java.util.ServiceLoader 加载服务但未使用 module-info.java 文件中的 uses 子句声明的情况,并建议插入它。 + +

2018.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaAccessorEmptyParenCall.html b/original-plugin-raw/zh/inspectionDescriptions/JavaAccessorEmptyParenCall.html new file mode 100644 index 000000000..04ce57aae --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaAccessorEmptyParenCall.html @@ -0,0 +1,24 @@ + + +

报告对带有空实参子句的 Java 访问器方法的调用。

+ +

符合访问器 JavaBean 命名协定的方法预计不会有副作用。 + 推荐的惯例是,在没有形参且方法没有副作用时使用无形参方法。 + 该惯例促进了统一访问原则,即客户端代码不应受到将特性实现为字段或方法的决定的影响。

+ +

问题是 Java 没有实现统一访问原则。 + 为了填补这一空白,Scala 允许您为不带实参的 Java 方法调用省略空圆括号。

+ +

该快速修复会移除空实参子句。

+ +

示例:

+

+  "test".getClass()
+
+

在应用快速修复后:

+

+  "test".getClass
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaAccessorMethodOverriddenAsEmptyParen.html b/original-plugin-raw/zh/inspectionDescriptions/JavaAccessorMethodOverriddenAsEmptyParen.html new file mode 100644 index 000000000..95ec1d389 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaAccessorMethodOverriddenAsEmptyParen.html @@ -0,0 +1,28 @@ + + +

报告具有重写 Java 访问器方法的空形参子句的方法。

+ +

符合访问器 JavaBean 命名协定的方法预计不会有副作用。 + 推荐的惯例是,在没有形参且方法没有副作用时使用无形参方法。 + 该惯例促进了统一访问原则,即客户端代码不应受到将特性实现为字段或方法的决定的影响。

+ +

问题是 Java 没有实现统一访问原则,不允许没有形参子句的方法。 + 为了填补这一空白,Scala 允许您使用没有形参子句的方法来重写带有空形参子句的方法。

+ +

该快速修复会移除空形参子句。

+ +

示例:

+

+  class TestException extends Exception {
+    override def getMessage(): String = ???
+  }
+
+

在应用快速修复后:

+

+  class TestException extends Exception {
+    override def getMessage: String = ???
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaAnnotator.html b/original-plugin-raw/zh/inspectionDescriptions/JavaAnnotator.html new file mode 100644 index 000000000..984efa5e8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaAnnotator.html @@ -0,0 +1,5 @@ + + +允许查看 Java 注解器报告的问题:编译问题、IDEA 引用未解析等。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaCollectionsStaticMethod.html b/original-plugin-raw/zh/inspectionDescriptions/JavaCollectionsStaticMethod.html new file mode 100644 index 000000000..890c054c8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaCollectionsStaticMethod.html @@ -0,0 +1,23 @@ + + +报告可以替换为 Kotlin stdlib 的 Java Collections static 方法调用。 +

示例:

+

+  import java.util.Collections
+
+  fun test() {
+      val mutableList = mutableListOf(1, 2)
+      Collections.fill(mutableList, 3)
+  }
+
+

该快速修复会将 Java Collections static 方法调用替换为相应的 Kotlin stdlib 方法调用:

+

+  import java.util.Collections
+
+  fun test() {
+      val mutableList = mutableListOf(1, 2)
+      mutableList.fill(3)
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaCollectionsStaticMethodOnImmutableList.html b/original-plugin-raw/zh/inspectionDescriptions/JavaCollectionsStaticMethodOnImmutableList.html new file mode 100644 index 000000000..8fed51317 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaCollectionsStaticMethodOnImmutableList.html @@ -0,0 +1,16 @@ + + +报告在不可变的 Kotlin 集合上对 Java 更改器方法的调用(如 fillreverseshufflesort)。 +

这可能会在运行时导致 UnsupportedOperationException

+

示例:

+

+  import java.util.Collections
+
+  fun test() {
+      val immutableList = listOf(1, 2)
+      Collections.reverse(immutableList)
+  }
+
+

要修正此问题,请使列表可变。

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaDoc.html b/original-plugin-raw/zh/inspectionDescriptions/JavaDoc.html new file mode 100644 index 000000000..9ecbc2473 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaDoc.html @@ -0,0 +1,42 @@ + + +报告以下 Javadoc 注释缺陷: +
    +
  • 在需要有 Javadoc 的位置没有 Javadoc
  • +
  • 缺少必要的标记
  • +
  • 标记无效或不完整
  • +
  • Javadoc 描述缺失或不完整
  • +
+

示例:

+

+  class Main {
+  }
+
+

在应用快速修复后:

+

+  /**
+   *
+   */
+  class Main {
+  }
+
+

示例:

+

+  String id(String value) {
+    return value;
+  }
+
+

在应用快速修复后:

+

+  /**
+   * @param value
+   * @return
+   */
+  String id(String value) {
+    return value;
+  }
+
+ +使用选项卡和相应的检查选项可定义需要具备 Javadoc 的可见性范围,以及类、方法、字段和内部类所需的 Javadoc 标记。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaFxColorRgb.html b/original-plugin-raw/zh/inspectionDescriptions/JavaFxColorRgb.html new file mode 100644 index 000000000..be56cb1ce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaFxColorRgb.html @@ -0,0 +1,7 @@ + + +报告有效范围之外的 RGB 颜色分量。 + +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaFxDefaultTag.html b/original-plugin-raw/zh/inspectionDescriptions/JavaFxDefaultTag.html new file mode 100644 index 000000000..b8d7e7cce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaFxDefaultTag.html @@ -0,0 +1,7 @@ + + +报告 .fxml 文件中的冗余标签。 这些标记对应于 @DefaultProperty 类注解中声明的类属性,因此可以省略它们。 + +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaFxEventHandler.html b/original-plugin-raw/zh/inspectionDescriptions/JavaFxEventHandler.html new file mode 100644 index 000000000..fc439983c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaFxEventHandler.html @@ -0,0 +1,5 @@ + + +报告事件处理程序问题,包括不兼容的实参类型、模糊的事件处理程序方法和错误的返回类型。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaFxRedundantPropertyValue.html b/original-plugin-raw/zh/inspectionDescriptions/JavaFxRedundantPropertyValue.html new file mode 100644 index 000000000..64bbc773c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaFxRedundantPropertyValue.html @@ -0,0 +1,6 @@ + + +报告 .fxml 文件中具有默认值而多余的属性(特性和标签)。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaFxResourcePropertyValue.html b/original-plugin-raw/zh/inspectionDescriptions/JavaFxResourcePropertyValue.html new file mode 100644 index 000000000..ef6e79b11 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaFxResourcePropertyValue.html @@ -0,0 +1,5 @@ + + +报告 .properties 文件中定义的与特性类型不匹配的特性值。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaFxUnresolvedFxIdReference.html b/original-plugin-raw/zh/inspectionDescriptions/JavaFxUnresolvedFxIdReference.html new file mode 100644 index 000000000..99126ac92 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaFxUnresolvedFxIdReference.html @@ -0,0 +1,5 @@ + + +报告未解析 fx: id 引用。 快速修复将创建相应的字段。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaFxUnresolvedStyleClassReference.html b/original-plugin-raw/zh/inspectionDescriptions/JavaFxUnresolvedStyleClassReference.html new file mode 100644 index 000000000..fdb9094f4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaFxUnresolvedStyleClassReference.html @@ -0,0 +1,5 @@ + + +报告未解析的 CSS 样式类。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaFxUnresolvedStyleClassReferences.html b/original-plugin-raw/zh/inspectionDescriptions/JavaFxUnresolvedStyleClassReferences.html new file mode 100644 index 000000000..f5f72498b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaFxUnresolvedStyleClassReferences.html @@ -0,0 +1,5 @@ + + +报告未解析的 css 样式类。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaFxUnusedImports.html b/original-plugin-raw/zh/inspectionDescriptions/JavaFxUnusedImports.html new file mode 100644 index 000000000..c146f7a9d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaFxUnusedImports.html @@ -0,0 +1,6 @@ + + +报告 .fxml 文件中未使用的 import。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaLangImport.html b/original-plugin-raw/zh/inspectionDescriptions/JavaLangImport.html new file mode 100644 index 000000000..ea3d52a36 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaLangImport.html @@ -0,0 +1,12 @@ + + +报告引用 java.lang 软件包的 import 语句。 +

+ java.lang 类始终隐式导入,因此此类 import 语句冗余,也令人困惑。 +

+

+ IntelliJ IDEA 可以通过优化 import 命令自动检测并修正此类语句,对于不打算更改的代码库的脱机报告,此检查非常有用。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaLangInvokeHandleSignature.html b/original-plugin-raw/zh/inspectionDescriptions/JavaLangInvokeHandleSignature.html new file mode 100644 index 000000000..82ceaa6d8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaLangInvokeHandleSignature.html @@ -0,0 +1,31 @@ + + +报告不匹配任何方法或字段的 MethodHandleVarHandle 工厂方法调用。 +

也报告不匹配 MethodHandle 签名的 MethodHandle.invoke() 和类似方法的实参以及不匹配 VarHandle 类型的 VarHandle.set() 的实参 + + +

示例:

+
+  MethodHandle mh = MethodHandles.lookup().findVirtual(
+      MyClass.class, "foo", MethodType.methodType(void.class, int.class));
+  // 此实参应为 int
+  mh.invoke(myObj, "abc");
+
+
+
+  // 此实参应为 String.class
+  VarHandle vh = MethodHandles.lookup().findVarHandle(
+      MyClass.class, "text", int.class);
+
+
+
+  VarHandle vh = MethodHandles.lookup().findVarHandle(
+      MyClass.class, "text", String.class);
+  // 此实参应为 String
+  vh.set(myObj, 42);
+
+

+ 2017.2 最新变化 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaMapForEach.html b/original-plugin-raw/zh/inspectionDescriptions/JavaMapForEach.html new file mode 100644 index 000000000..656cff929 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaMapForEach.html @@ -0,0 +1,25 @@ + + +报告可以替换为 Kotlin 的 forEach 的 Java Map.forEach 方法调用。 +

示例:

+

+  fun test(map: HashMap<Int, String>) {
+      map.forEach { (key, value) ->
+          foo(key, value)
+      }
+  }
+
+  fun foo(i: Int, s: String) {}
+
+

该快速修复会移除圆括号:

+

+  fun test(map: HashMap<Int, String>) {
+      map.forEach { key, value ->
+          foo(key, value)
+      }
+  }
+
+  fun foo(i: Int, s: String) {}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaModuleNaming.html b/original-plugin-raw/zh/inspectionDescriptions/JavaModuleNaming.html new file mode 100644 index 000000000..f3cadf821 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaModuleNaming.html @@ -0,0 +1,11 @@ + + +报告模块名称与 Java Platform Module System 建议相矛盾的情况。 +

其中一种建议是避免在模块名称末尾使用数字。

+

示例:

+

+module foo1.bar2 {}
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaMutatorMethodAccessedAsParameterless.html b/original-plugin-raw/zh/inspectionDescriptions/JavaMutatorMethodAccessedAsParameterless.html new file mode 100644 index 000000000..555154091 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaMutatorMethodAccessedAsParameterless.html @@ -0,0 +1,23 @@ + + +

报告对具有类似转变器名称而没有实参子句的方法的调用。

+

Scala 允许在没有实参子句的情况下调用无形参 Java 方法。 + 这主要是为了允许 Scala 代码以与 Scala 访问器方法相同的方式使用无形参 Java 访问器方法。 + 即,不使用任何实参子句并遵守统一访问原则,也就是说客户端代码不应受到将特性实现为字段或方法的决定的影响。

+ +

但是,对于具有副作用的方法,通常使用空实参子句。

+ +

该快速修复会添加一个空实参子句。

+

示例:

+

+  val stringBuilder = new java.util.ArrayList[String]
+  stringBuilder.clear
+
+

在应用快速修复后:

+

+  val stringBuilder = new java.util.ArrayList[String]
+  stringBuilder.clear()
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaMutatorMethodOverriddenAsParameterless.html b/original-plugin-raw/zh/inspectionDescriptions/JavaMutatorMethodOverriddenAsParameterless.html new file mode 100644 index 000000000..2ca59da14 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaMutatorMethodOverriddenAsParameterless.html @@ -0,0 +1,30 @@ + + +

报告没有形参子句并使用类似转变器的名称重写 Java 方法的方法。

+

Scala 允许重写没有形参子句的无形参 Java 方法。 + 这主要是为了允许 Scala 代码以与 Scala 访问器方法相同的方式重写 Java 访问器方法。 + 即,不使用任何形参子句并遵守统一访问原则,也就是说客户端代码不应受到将特性实现为字段或方法的决定的影响。

+ +

但是,对于具有副作用的方法,通常有一个空形参子句。 + 这将符合里氏替换原则,即当被重写的方法有副作用时,重写方法也必须被声明为具有副作用的方法。

+ +

该快速修复会添加一个空形参子句。

+

示例:

+

+  import java.util
+
+  class Test extends util.ArrayList[String] {
+    override def clear: Unit = ???
+  }
+
+

在应用快速修复后:

+

+  import java.util
+
+  class Test extends util.ArrayList[String] {
+    override def clear(): Unit = ???
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaReflectionInvocation.html b/original-plugin-raw/zh/inspectionDescriptions/JavaReflectionInvocation.html new file mode 100644 index 000000000..f66aab583 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaReflectionInvocation.html @@ -0,0 +1,13 @@ + + +报告提供给 Method.invoke()Constructor.newInstance() 的实参与 Class.getMethod()Class.getConstructor() 中指定的签名不匹配的情况。 +

示例:

+

+  Method m = myObj.getClass().getMethod("myMethod", int.class);
+  //此实参应为 int
+  m.invoke(myObj, "abc");
+
+ +

2017.2 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaReflectionMemberAccess.html b/original-plugin-raw/zh/inspectionDescriptions/JavaReflectionMemberAccess.html new file mode 100644 index 000000000..ce1061ffb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaReflectionMemberAccess.html @@ -0,0 +1,26 @@ + + +报告对不存在或不可见的字段和方法的反射访问。 +

示例:

+

+  Field stringHashField() throws NoSuchFieldException {
+    return String.class.getField("hash");
+  }
+
+

在应用快速修复后:

+

+  Field stringHashField() throws NoSuchFieldException {
+    return String.class.getDeclaredField("hash");
+  }
+
+ +

+ 对于 final 类,很清楚该类中是否存在具有指定名称的字段或方法。 +

+

+ 对于非 final 类,子类中可能有使用该名称的字段或方法,因此可能会出现误报。 + 使用该项检查的设置,可消除任何位置或特定类的此类误报。 +

+

2017.2 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaRequiresAutoModule.html b/original-plugin-raw/zh/inspectionDescriptions/JavaRequiresAutoModule.html new file mode 100644 index 000000000..5bcfcfb27 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaRequiresAutoModule.html @@ -0,0 +1,20 @@ + + +报告 requires 指令中自动模块的用法。 +

自动模块不可靠,因为它可能依赖于类路径中的类型,并且当它转换为显式模块时,它的名称和导出的软件包可能会改变。

+

对应于 -Xlint:requires-automatic-Xlint:requires-transitive-automatic Javac 选项。 +第一个选项增加了对何时使用自动模块的了解。 +第二个选项则是警示模块的作者,建立自动模块的隐含可读性将使该模块的用户面临风险。 +

示例:

+

+  //module-info.java
+  module org.printer {
+    requires transitive drivers.corp.org; // 在 'drivers.corp.org' 为自动模块时报告
+  }
+
+ +

+ 使用仅高亮显示传递依赖选项,可仅对传递依赖发出警告。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaStylePropertiesInvocation.html b/original-plugin-raw/zh/inspectionDescriptions/JavaStylePropertiesInvocation.html new file mode 100644 index 000000000..528a347d0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaStylePropertiesInvocation.html @@ -0,0 +1,23 @@ + + +

报告通过方法调用访问的属性。

+

示例:

+

+  class Foo {
+      int foo
+  }
+
+  def bar = new Foo()
+  print(bar.getFoo())
+
+

在应用快速修复后:

+

+  class Foo {
+      int foo
+  }
+
+  def bar = new Foo()
+  print(bar.foo)
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavacQuirks.html b/original-plugin-raw/zh/inspectionDescriptions/JavacQuirks.html new file mode 100644 index 000000000..b465c1353 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavacQuirks.html @@ -0,0 +1,21 @@ + + +报告现有的 Javac 问题、性能问题和不兼容性。 +例如,当需要处理许多嵌套调用时,类型推断会变慢。 +

以下代码会触发警告,因为 vararg 方法调用包含 50 个以上的多态实参:

+

+  Arrays.asList(
+      Arrays.asList("a", "b"),
+      ...
+      Arrays.asList("a100", "b100"));
+
+

快速修复程序添加了显式类型实参,可以加快编译和 IDE 的速度。

+

+  //noinspection RedundantTypeArguments
+  Arrays.<List<String>>asList(
+      Arrays.asList("a", "b"),
+      ...
+      Arrays.asList("a100", "b100"));
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavadocHtmlLint.html b/original-plugin-raw/zh/inspectionDescriptions/JavadocHtmlLint.html new file mode 100644 index 000000000..6fb1dadc1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavadocHtmlLint.html @@ -0,0 +1,23 @@ + + +报告自 Java 8 以来 DocLint 报告的 Javadoc 注释中的相同 HTML 问题。 +

该检查发现以下问题:

+
    +
  • 自闭合、未闭合、未知、放错位置或空的标记
  • +
  • 未知或错误的特性
  • +
  • 放错位置的文本
  • +
+

示例:

+

+/**
+ * 未知标记:List<String>
+ * 未闭合标记:error</b>
+ * 放错位置的文本或标记:<ul><li>one</li>, <li>two</li></ul>
+ * 错误或空的特性:<a href=""></a>
+ * 自闭合标记:<br/>
+ * …
+ */
+void sample(){ }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavadocReference.html b/original-plugin-raw/zh/inspectionDescriptions/JavadocReference.html new file mode 100644 index 000000000..103a9eece --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavadocReference.html @@ -0,0 +1,19 @@ + + +报告 Javadoc 注释中未解析的引用。 +

在以下示例中,由于缺少 someParam 形参,将高亮显示该形参:

+

+class A {
+    /**
+     * @param someParam description
+     **/
+    void foo() {
+    }
+}
+
+ +

+ 禁用报告无法访问的符号选项,可忽略引用缺少的方法形参、类、字段和方法的标记。

+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JavaeeApplicationDomInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JavaeeApplicationDomInspection.html new file mode 100644 index 000000000..13ea29362 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JavaeeApplicationDomInspection.html @@ -0,0 +1,24 @@ + + +报告 `application.xml` 配置文件中的以下问题: +
    +
  • 对不可实例化类的引用
  • +
  • 对不扩展所需类的类的引用
  • +
  • 对范围不适当的类的引用
  • +
  • 与所需模式不匹配的标记和特性值(例如,Java 标识符)
  • +
  • 不包含必需子标记或特性的标记
  • +
  • 定义具有重复名称的对象的标记
  • +
+ +

示例:


+

+<application>
+    <module id="ExampleWebModule">
+      <web> // 错误:应定义 “web-uri” 子标记
+        <context-root>ExampleWebApp</context-root>
+      </web>
+    </module>
+</application>
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JdkProxiedBeanTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JdkProxiedBeanTypeInspection.html new file mode 100644 index 000000000..d401baa52 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JdkProxiedBeanTypeInspection.html @@ -0,0 +1,8 @@ + + +

报告不正确配置的 JDK 代理的 Bean 类型。

+ +

有关详细信息,请参阅基于 JDK 和 CGLIB 的代理

+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JoinDeclarationAndAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/JoinDeclarationAndAssignment.html new file mode 100644 index 000000000..f6a33d13c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JoinDeclarationAndAssignment.html @@ -0,0 +1,14 @@ + + +报告可以与以下赋值联接的属性声明。 +

示例:

+

+  val x: String
+  x = System.getProperty("")
+
+

该快速修复会将声明与赋值联接:

+

+  val x = System.getProperty("")
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JoinDeclarationAndAssignmentJava.html b/original-plugin-raw/zh/inspectionDescriptions/JoinDeclarationAndAssignmentJava.html new file mode 100644 index 000000000..726992152 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JoinDeclarationAndAssignmentJava.html @@ -0,0 +1,16 @@ + + +报告可以与变量声明联接的变量赋值。 +

示例:

+

+  int x;
+  x = 1;
+
+

快速修复将赋值转换为初始值设定项:

+

+  int x = 1;
+
+ +

2018.3 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JpaAttributeMemberSignatureInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JpaAttributeMemberSignatureInspection.html new file mode 100644 index 000000000..3b630df03 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JpaAttributeMemberSignatureInspection.html @@ -0,0 +1,32 @@ + + +报告以下 JPA 规范错误: +
    +
  • 为一个方法或字段配置了多个特性
  • +
  • Embeddable 对象中使用了非法特性 (JPA 1.0)
  • +
  • 持久特性元数据不在字段或属性 getter 上指定
  • +
  • 没有基于属性访问的 setter 或 getter
  • +
+ +

示例:

+

+  @Entity
+  @Table(name = "TABLE")
+  public class JavaEntity {
+
+    private Integer id; // 错误:getter 和 setter 都应该存在
+
+    public Integer getId() { ... }
+
+
+
+    private String data;
+
+    public String getData() { ... }
+
+    @Basic // 错误:持久注解应该放在字段或 getter 方法上
+    public void setData(String data) { ... }
+  }
+

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JpaAttributeTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JpaAttributeTypeInspection.html new file mode 100644 index 000000000..0d75a00b9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JpaAttributeTypeInspection.html @@ -0,0 +1,18 @@ + + +报告 JPA 特性的属性类型不匹配。 + +

示例:


+

+  @Entity
+  public class JavaEntity {
+
+    @OneToOne
+    Map incorrectRelationship; // 错误:'One To One' 特性类型应该是 Entity,而不是 Map
+
+    @ManyToMany
+    Map correctRelationship;
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JpaConfigDomFacetInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JpaConfigDomFacetInspection.html new file mode 100644 index 000000000..a4bbcf222 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JpaConfigDomFacetInspection.html @@ -0,0 +1,5 @@ + + +报告缺失的 persistence.xml 配置文件并建议将文件添加到持久性 facet。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JpaDataSourceORMDomInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JpaDataSourceORMDomInspection.html new file mode 100644 index 000000000..bfc8b0b8a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JpaDataSourceORMDomInspection.html @@ -0,0 +1,35 @@ + + +报告无法在配置的数据源中解析的 Persistence ORM XML 描述符并建议刷新数据源或分配不同的数据源。 + +

示例数据库表:

+

+  CREATE TABLE DATA_TABLE (
+    ID INTEGER,
+    DATA VARCHAR(100)
+  );
+

+ +

示例 JSP 文件:

+

+  <?xml version="1.0" encoding="UTF-8"?>
+  <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" version="1.0">
+    <entity name="JavaEntity" class="JavaEntity">
+        <table name="UNKNOWN_TABLE"/> // 错误:未解析的表
+        <attributes>
+          <id name="id">
+            <column name="ID" nullable="false"/>
+          </id>
+          <basic name="UNKNOWN_COLUMN"> // 错误:未解析的列
+            <column name="UNKNOWN_COLUMN" length="12"/>
+          </basic>
+        </attributes>
+    </entity>
+  </entity-mappings>
+

+ +

+ 注意:数据源可以通过 `分配数据源` 操作进行配置 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JpaDataSourceORMInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JpaDataSourceORMInspection.html new file mode 100644 index 000000000..c269c4229 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JpaDataSourceORMInspection.html @@ -0,0 +1,38 @@ + + +如果无法在配置的数据源中解析,则报告以下 Persistence ORM 注解中的引用:
+
    +
  • Table
  • +
  • Column
  • +
  • [Any]To[Any]
  • +
  • JoinColumn / JoinTable
  • +
  • NamedQuery / NativeQuery
  • +
  • Embeddable
  • +

+ +建议刷新数据源或分配不同的数据源。
+ +

示例数据库表:

+

+  CREATE TABLE DATA_TABLE (
+    ID INTEGER,
+    DATA VARCHAR(100)
+);
+

+ +

示例 JPA 实体类:

+

+  @Entity
+  @Table(name = "UNKNOWN_TABLE") // 未解决的引用
+  public class JavaEntity {
+    @Column(name = "ID") // 无法解析未定义的表中的列
+    Integer id;
+  }
+

+ + +

+ 注意:数据源可以通过 `分配数据源` 操作或实体类的相应间距图标进行配置 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JpaDomInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JpaDomInspection.html new file mode 100644 index 000000000..902881703 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JpaDomInspection.html @@ -0,0 +1,23 @@ + + + +报告 XML 配置文件中的以下问题: +
    +
  • 对不可实例化类的引用
  • +
  • 对不扩展所需类的类的引用
  • +
  • 对范围不适当的类的引用
  • +
  • 与所需模式不匹配的标记和特性值(例如,Java 标识符)
  • +
  • 不包含必需子标记或特性的标记
  • +
  • 定义具有重复名称的对象的标记
  • +
+ +

示例:


+

+<persistence>
+    <persistence-unit name="example-persistence-unit">
+        <provider>org.example.SomeRandomClass</provider> // 错误:提供程序类应实现 PersistenceProvider 接口
+    </persistence-unit>
+</persistence>
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JpaEntityGraphsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JpaEntityGraphsInspection.html new file mode 100644 index 000000000..d812efe63 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JpaEntityGraphsInspection.html @@ -0,0 +1,23 @@ + + +报告 EntityGraph 相关注解中的以下未解析特性:
+
    +
  • @NamedAttributeNode 中的值
  • +
  • @NamedAttributeNode 中的命名子图
  • +
  • @NamedEntityGraph 中的名称
  • +

+ +

示例:


+

+  @Entity
+  @NamedEntityGraph(name = "entity-graph", ...)
+  public class JavaEntity {
+    public void foo() {
+      Persistence.createEntityManagerFactory("")
+        .createEntityManager()
+        .getEntityGraph("unknown-entity-graph"); // 未解析的引用
+    }
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JpaEntityListenerInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JpaEntityListenerInspection.html new file mode 100644 index 000000000..79a7a8a3b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JpaEntityListenerInspection.html @@ -0,0 +1,22 @@ + + +报告以下 JPA 规范错误:
+
    +
  • 没有 public 无实参构造函数的实体侦听器类
  • +
  • 具有不正确签名的实体侦听器方法
  • +

+ +

示例:

+

+  @Entity
+  @EntityListeners(value = JavaEntityListener.class)
+  class JavaEntity { ... }
+
+  class JavaEntityListener {
+
+    @PostLoad
+    void postLoad(String parameter) { ... } // 错误:方法 'postLoad' 应在此处采用 'Object' 类型的形参
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JpaEntityListenerWarningsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JpaEntityListenerWarningsInspection.html new file mode 100644 index 000000000..08a5636f3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JpaEntityListenerWarningsInspection.html @@ -0,0 +1,16 @@ + + +报告没有任何实体侦听器方法的实体侦听器类。 + +

示例:


+

+  @Entity
+  @EntityListeners(value = JavaEntityListener.class)
+  public class JavaEntity { ... }
+
+  class JavaEntityListener { // 错误:找不到特定于实体侦听器的方法
+
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JpaMissingIdInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JpaMissingIdInspection.html new file mode 100644 index 000000000..059a54451 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JpaMissingIdInspection.html @@ -0,0 +1,12 @@ + + +报告缺失的标识属性持久性对象。
+ +

示例:


+

+  @Entity
+  public class JavaEntity { // 错误:实体类应该有一个 @Id 注解的属性
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JpaModelReferenceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JpaModelReferenceInspection.html new file mode 100644 index 000000000..2df655c03 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JpaModelReferenceInspection.html @@ -0,0 +1,25 @@ + + +报告以下 JPA 注解和 API 方法中的未解析符号: +
    +
  • AttributeOverride
  • +
  • AssociationOverride
  • +
  • MapsId
  • +
  • MapKey
  • +
  • Criteria API 方法
  • +
+ +

示例:


+

+  @Entity
+  @AssociationOverrides({
+    @AssociationOverride(name = "missingAttribute", joinColumns = { ... }), // 错误:未解析的特性
+    @AssociationOverride(name = "existingAttribute", joinColumns = { ... })
+  })
+  public class JavaEntity {
+    @OneToOne
+    AnotherEntity existingAttribute;
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JpaORMDomInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JpaORMDomInspection.html new file mode 100644 index 000000000..9de370dd1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JpaORMDomInspection.html @@ -0,0 +1,38 @@ + + +报告对 `orm.xml` 配置文件中任何数据库对象的未解析引用: +
    +
  • +
  • +
  • 架构
  • +
  • 目录
  • +
  • 序列
  • +
+ +

示例数据库表:


+

+CREATE TABLE DATA_TABLE (
+  ID INTEGER,
+  DATA VARCHAR(100)
+);
+

+ +

示例 orm.xml 文件:


+

+<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" version="1.0">
+    <package>example</package>
+    <entity name="JavaEntity" class="JavaEntity">
+        <table name="DATA_TABLE"/>
+        <attributes>
+          <id name="id">
+            <column name="UNKNOWN_ID" nullable="false" length="20"/> // 错误:未解析的列名
+          </id>
+          <basic name="data">
+            <column name="DATA" length="12"/> // OK
+          </basic>
+        </attributes>
+    </entity>
+</entity-mappings>
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JpaObjectClassSignatureInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JpaObjectClassSignatureInspection.html new file mode 100644 index 000000000..82fb87c2f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JpaObjectClassSignatureInspection.html @@ -0,0 +1,21 @@ + + +在以下情况下报告错误定义的持久对象类: + +
    +
  • 类不是顶级类
  • +
  • 类为 final
  • +
  • 类被多次注解
  • +
  • 类被定义为持久实体和实体侦听器
  • +
+ +

示例:


+

+  @Entity
+  @EntityListeners(value = JavaEntity.class) // 错误:@Entity 和 @EntityListener 注解都指向同一个类
+  public final class JavaEntity { // 错误:持久实体不应为 final
+    ...
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JpaQlInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JpaQlInspection.html new file mode 100644 index 000000000..444b952dc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JpaQlInspection.html @@ -0,0 +1,20 @@ + + +报告 Persistence QL 查询中的以下错误: +
    +
  • 不匹配的表达式类型
  • +
  • 形参不正确
  • +
  • 空或常量条件
  • +
  • 未解析的符号
  • +
+ +

示例查询:

+

+SELECT OBJECT(e) FROM JavaEntity e WHERE TRUE // 警告:常量条件
+
+SELECT OBJECT(e) FROM JavaEntity e WHERE e.id BETWEEN 0 AND '2' // 错误:应为数值,但得到字符串
+
+SELECT e from JavaEntity e where e.id=?1 and e.name=?3 // 错误:只有 2 个实际查询形参
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JpaQueryApiInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JpaQueryApiInspection.html new file mode 100644 index 000000000..d69bb1b60 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JpaQueryApiInspection.html @@ -0,0 +1,25 @@ + + +报告命名和原生查询以及相关 API 方法中的未解析符号: +
    +
  • 未知命名查询
  • +
  • 未知查询形参
  • +
+ +

示例:

+

+  @Entity
+  @NamedQuery(name = "SelectByConditionQuery", query = "...")
+  public class JavaEntity { ... }
+
+  class Main {
+    public static void executeQuery() {
+      Persistence.createEntityManagerFactory("")
+        .createEntityManager()
+        .createNamedQuery("SelectAllQuery") // 错误:未知查询名称
+        ...
+    }
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JpdlModelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JpdlModelInspection.html new file mode 100644 index 000000000..902cf88ca --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JpdlModelInspection.html @@ -0,0 +1,16 @@ + + +

报告不正确的 JPDL <process-definition> 文件:

+ +
    +
  • 对不可实例化类的引用
  • +
  • 对不扩展所需类的类的引用
  • +
  • 对范围不适当的类的引用
  • +
  • 空标记和特性值
  • +
  • 与所需模式不匹配的标记和特性值(例如,Java 标识符)
  • +
  • 不包含必需子标记或特性的标记
  • +
  • 定义具有重复名称的对象的标记
  • +
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JsfJamExtendsClassInconsistencyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JsfJamExtendsClassInconsistencyInspection.html new file mode 100644 index 000000000..1c1c12501 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JsfJamExtendsClassInconsistencyInspection.html @@ -0,0 +1,29 @@ + + +

使用未实现所需接口的特定 JSF 注解的报告类:

+ +
    +
  • @FacesComponent 必须扩展 <javax/jakarta>.faces.component.FacesComponent
  • +
  • @FacesRenderer 必须扩展 <javax/jakarta>.faces.render.Renderer
  • +
  • @FacesConverter 必须扩展 <javax/jakarta>.faces.convert.Converter
  • +
  • @FacesValidator 必须扩展 <javax/jakarta>.faces.validator.Validator
  • +
+ +

示例:

+

+
+@FacesConverter(value="...")  // 类必须扩展 'javax.faces.convert.Converter'
+public class FooConverter {
+}
+
+@FacesRenderer(rendererType="..", componentFamily="..")  // 类必须扩展 'javax.faces.render.Renderer'
+public class FooConverter {
+}
+
+@FacesRenderer(rendererType="..", componentFamily="..")  // 类必须扩展 'javax.faces.validator.Validator'
+public class FooValidator {
+}
+
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JsfManagedBeansInconsistencyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JsfManagedBeansInconsistencyInspection.html new file mode 100644 index 000000000..0de210e7a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JsfManagedBeansInconsistencyInspection.html @@ -0,0 +1,25 @@ + + +

报告 Java Server Faces 配置文件中不正确的 <managed-bean> 元素

+ +

示例:

+ +

+ public class FooBean {
+    public void setSomeProperty(String foo) {}
+  }
+  <faces-config >
+    <managed-bean>
+      <managed-bean-name>myBean</managed-bean-name>
+      <managed-bean-class>beans.FooBean</managed-bean-class>
+      <managed-bean-scope>application</managed-bean-scope>
+      <managed-property>
+        <property-name>someProperty</property-name> <!-- 托管属性必须是 'java.lang.String' 类型-->
+        <property-class>my.company.BarClass</property-class>
+        <null-value/>
+      </managed-property>
+    </managed-bean>
+  </faces-config>
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Json5StandardCompliance.html b/original-plugin-raw/zh/inspectionDescriptions/Json5StandardCompliance.html new file mode 100644 index 000000000..c048829ec --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Json5StandardCompliance.html @@ -0,0 +1,5 @@ + + +报告 JSON5 文件中语言规范不一致的情况。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JsonDuplicatePropertyKeys.html b/original-plugin-raw/zh/inspectionDescriptions/JsonDuplicatePropertyKeys.html new file mode 100644 index 000000000..2e83e8b58 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JsonDuplicatePropertyKeys.html @@ -0,0 +1,5 @@ + + +报告对象文字中重复的键。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JsonPathEvaluateUnknownKey.html b/original-plugin-raw/zh/inspectionDescriptions/JsonPathEvaluateUnknownKey.html new file mode 100644 index 000000000..eb29e5c7a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JsonPathEvaluateUnknownKey.html @@ -0,0 +1,5 @@ + + +报告要评估的 JSON 源文档中缺少的 JSONPath 表达式中的键。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JsonPathUnknownFunction.html b/original-plugin-raw/zh/inspectionDescriptions/JsonPathUnknownFunction.html new file mode 100644 index 000000000..7e676b302 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JsonPathUnknownFunction.html @@ -0,0 +1,6 @@ + + +报告在 JSONPath 函数调用中使用了未知名称,而不是已知的标准函数名称: +concatkeyslengthminmaxavgstddevsum。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JsonPathUnknownOperator.html b/original-plugin-raw/zh/inspectionDescriptions/JsonPathUnknownOperator.html new file mode 100644 index 000000000..89bf10507 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JsonPathUnknownOperator.html @@ -0,0 +1,6 @@ + + +报告在 JSONPath 表达式中使用了未知运算符,而不是其中一种标准运算符: +inninsubsetofanyofnoneofsizeemptycontains。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JsonSchemaCompliance.html b/original-plugin-raw/zh/inspectionDescriptions/JsonSchemaCompliance.html new file mode 100644 index 000000000..618d4ec75 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JsonSchemaCompliance.html @@ -0,0 +1,5 @@ + + +报告 JSON 文件与分配给它的 JSON 模式之间的不一致。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JsonSchemaDeprecation.html b/original-plugin-raw/zh/inspectionDescriptions/JsonSchemaDeprecation.html new file mode 100644 index 000000000..2b29498c7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JsonSchemaDeprecation.html @@ -0,0 +1,7 @@ + + +报告 JSON 文件中弃用的属性。
+请注意,JSON 架构规范中尚未定义弃用机制, +并且该检查使用了非标准的扩展 'deprecationMessage'。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JsonSchemaRefReference.html b/original-plugin-raw/zh/inspectionDescriptions/JsonSchemaRefReference.html new file mode 100644 index 000000000..083bfd36a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JsonSchemaRefReference.html @@ -0,0 +1,5 @@ + + +报告 JSON 架构中未解析的 $ref$schema 路径。
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JsonStandardCompliance.html b/original-plugin-raw/zh/inspectionDescriptions/JsonStandardCompliance.html new file mode 100644 index 000000000..83858b4ba --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JsonStandardCompliance.html @@ -0,0 +1,14 @@ + + +报告 JSON 文件与语言规范的以下差异: +
    +
  • 行或块注释(可配置)。
  • +
  • 多个顶层值(用于 JSON Lines 文件,可针对其他文件配置)。
  • +
  • 对象或数组中的尾随逗号(可配置)。
  • +
  • 用单引号引用的字符串。
  • +
  • 属性键不是由双引号引用的字符串。
  • +
  • 用 NaN 或正无穷大/负无穷大数值作为浮点文字(可配置)。
  • +
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JspAbsolutePathInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JspAbsolutePathInspection.html new file mode 100644 index 000000000..7ad9a15a0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JspAbsolutePathInspection.html @@ -0,0 +1,19 @@ + + +报告 JSP 文件中的绝对路径。 +

如果应用程序上下文非空,它们就不会被解析,因此 JSP 中禁止绝对路径。

+

该快速修复将向路径中添加动态前缀。

+

示例:

+

+  <%@page contentType="text/html; ISO-8859-1" %>
+
+  <a href="/hey.jsp">hey</a>
+
+

在应用快速修复后:

+

+  <%@page contentType="text/html; ISO-8859-1" %>
+
+  <a href="${pageContext.request.contextPath}/hey.jsp">hey</a>
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JspDirectiveInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JspDirectiveInspection.html new file mode 100644 index 000000000..3ad390cb5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JspDirectiveInspection.html @@ -0,0 +1,15 @@ + + +报告没有 URI 或 tagdir 特性的 JSP 导入指令。 + +

示例:

+

+<html>
+  <body>
+    <%@ taglib prefix="html"%> // 错误:应指定 `uri` 或 `tagdir` 特性
+    ...
+  </body>
+</html>
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JspPropertiesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JspPropertiesInspection.html new file mode 100644 index 000000000..9c6761667 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JspPropertiesInspection.html @@ -0,0 +1,13 @@ + + +报告 *.properties 文件中的未解析属性。 + +

示例 JSP 文件:

+

+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib uri="/tags/fmt" prefix="fmt" %>
+
+<fmt:message bundle="bundle.properties" key="unknown.property"/> // 错误:引用的文件中没有此类属性
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/JspTagBodyContent.html b/original-plugin-raw/zh/inspectionDescriptions/JspTagBodyContent.html new file mode 100644 index 000000000..f20ef8fc9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JspTagBodyContent.html @@ -0,0 +1,18 @@ + + +报告不符合 TLD 主体内容规范的 JSP 标记主体内容。 +

如果指定了空的主体内容,则标记的主体应为空。

+

如果指定了无脚本主体内容,该标记的主体不应包含 JSP scriptlet。

+

对于空内容类型,该快速修复将移除标记的主体,如果指定了无脚本内容类型,则移除 scriptlet。

+

示例:

+

+<s:empty>body not allowed here</s:empty>
+<s:scriptless>say: <% System.out.println("hey"); %></s:scriptless>
+
+

在应用快速修复后:

+

+<s:empty/>
+<s:scriptless>say: </s:scriptless>
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JspUnescapedEl.html b/original-plugin-raw/zh/inspectionDescriptions/JspUnescapedEl.html new file mode 100644 index 000000000..70540470c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JspUnescapedEl.html @@ -0,0 +1,16 @@ + + +报告 JSP 页面中未转义的 EL 表达式。 +

未转义的 EL 表达式可能导致跨站脚本攻击 (XSS) 漏洞。

+

该快速修复会使用 JSTL <out> 标记包装原始 EL 表达式。

+

示例:

+

+${foo}
+
+

在应用快速修复后:

+

+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<c:out value="${foo}"/>
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Junit4Converter.html b/original-plugin-raw/zh/inspectionDescriptions/Junit4Converter.html new file mode 100644 index 000000000..bb5fc3b90 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Junit4Converter.html @@ -0,0 +1,24 @@ + + +报告可以转换为 JUnit 4 测试类的 JUnit 3 测试类。 +

示例:

+

+  public class MainTestCase extends junit.framework.TestCase {
+    public void test() {
+      Assert.assertTrue(true);
+    }
+  }
+
+

在应用快速修复后:

+

+  public class MainTestCase {
+    @org.junit.Test
+    public void test() {
+      Assert.assertTrue(true);
+    }
+  }
+
+ +

当项目或模块的语言级别为 5 或更高级别并且在类路径上可以使用 JUnit 4 时,此检查才会报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Junit5MalformedParameterized.html b/original-plugin-raw/zh/inspectionDescriptions/Junit5MalformedParameterized.html new file mode 100644 index 000000000..5bb7892dc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Junit5MalformedParameterized.html @@ -0,0 +1,31 @@ + + +

报告源格式错误的形参化测试:

+
    +
  • MethodSource 具有未知目标或方法并非 static、no-arg
  • +
  • ValueSourceEnumSource 类型不能转换为方法形参。
  • +
  • 未定义来源。
  • +
+

示例:

+

+  class Test {
+    @MethodSource("parameters")
+    @ParameterizedTest
+    void foo(String param) {}
+  }
+
+

在应用快速修复后:

+

+  class Test {
+    private static Stream<Arguments> parameters() {
+        return Stream.empty();
+    }
+
+    @MethodSource("parameters")
+    @ParameterizedTest
+    void foo(String param) {}
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JupyterKernelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JupyterKernelInspection.html new file mode 100644 index 000000000..6bc8d12f3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JupyterKernelInspection.html @@ -0,0 +1,10 @@ + + +

报告 Python 解释器未作为笔记本内核配置的情况。 + 此检查可以防止 Jupyter 笔记本代码单元的代码洞察和运行时行为之间的差异。

+

如果您看到以下警告,则表明新配置的服务器的内核与当前 Python 解释器不匹配。 + 例如,它可能已安装了一套不同的软件包。

+

您可以点击警告横幅上的相应链接,来注册您的 Python 解释器。 之后,即可在配置的服务器内核列表中看到该解释器。

+

有关详细信息,请参阅管理 Jupyter 笔记本服务器

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JupyterPackageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JupyterPackageInspection.html new file mode 100644 index 000000000..14592a929 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JupyterPackageInspection.html @@ -0,0 +1,8 @@ + + +

报告未为选定的 Python 解释器安装 jupyter 软件包的情况。 没有正确安装的 Jupyter 软件包,就无法执行 Jupyter 笔记本。

+

点击警告横幅上的相应链接以安装缺失的软件包。 您也可以在项目设置/首选项中或在 + Python 软件包工具窗口中安装此软件包。

+

有关详细信息,请参阅安装 Python 软件包

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/JvmUnresolvedTmsLinkInspection.html b/original-plugin-raw/zh/inspectionDescriptions/JvmUnresolvedTmsLinkInspection.html new file mode 100644 index 000000000..6a7b9b8ee --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/JvmUnresolvedTmsLinkInspection.html @@ -0,0 +1,12 @@ + + +报告可能无效的 TMS 链接。 +

表示 ID 拼写错误和可能已移除的 TMS 元素的链接。

+

可能的原因:

+
    +
  • TMS 链接注解未提供 value 特性或为空
  • +
  • 未加载 TMS 项目中的数据。
  • +
  • 在加载的 TMS 元素 ID 中找不到指定 ID
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KDocMissingDocumentation.html b/original-plugin-raw/zh/inspectionDescriptions/KDocMissingDocumentation.html new file mode 100644 index 000000000..bc891b3cf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KDocMissingDocumentation.html @@ -0,0 +1,16 @@ + + +报告没有 KDoc 注释的 public 声明。 +

示例:

+

+  class A
+
+

该快速修复会在声明上方生成注释块:

+

+  /**
+   *
+   */
+  class A
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KDocUnresolvedReference.html b/original-plugin-raw/zh/inspectionDescriptions/KDocUnresolvedReference.html new file mode 100644 index 000000000..032db2eb8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KDocUnresolvedReference.html @@ -0,0 +1,13 @@ + + +报告 KDoc 注释中未解析的引用。 +

示例:

+

+  /**
+   * [unresolvedLink]
+   */
+  fun foo() {}
+
+

要修正此问题,请使链接有效。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KRUnspecifiedParameters.html b/original-plugin-raw/zh/inspectionDescriptions/KRUnspecifiedParameters.html new file mode 100644 index 000000000..5ff28d1b7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KRUnspecifiedParameters.html @@ -0,0 +1,5 @@ + + +报告使用 K&R 未指定形参语法的函数的用法,该语法使用非空实参列表。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KarmaConfigFile.html b/original-plugin-raw/zh/inspectionDescriptions/KarmaConfigFile.html new file mode 100644 index 000000000..bb19bddda --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KarmaConfigFile.html @@ -0,0 +1,9 @@ + + + + + 报告 Karma 配置文件 (例如 karma.conf.js) 的文件路径 ('basePath'、'files') 中的潜在错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KeySetIterationMayUseEntrySet.html b/original-plugin-raw/zh/inspectionDescriptions/KeySetIterationMayUseEntrySet.html new file mode 100644 index 000000000..c50cbfb6b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KeySetIterationMayUseEntrySet.html @@ -0,0 +1,22 @@ + + +报告对 java.util.Map 实例的 keySet() 的迭代,其中迭代的键用于从映射中检索值。 +

+ 替换为 entrySet()values() 的迭代时,此类迭代可能会更有效(如果实际上没有使用键)。 +

+

+ 同理,如果在 lambda 中检索值,则 keySet().forEach(key -> ...) 可以替换为 forEach((key, value) -> ...)。 +

+

示例:

+

+  for (Object key : map.keySet()) {
+   Object val = map.get(key);
+  }
+
+

在应用快速修复后:

+

+  for (Object val : map.values()) {}
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/KeyValueCoding.html b/original-plugin-raw/zh/inspectionDescriptions/KeyValueCoding.html new file mode 100644 index 000000000..2bd72e2d0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KeyValueCoding.html @@ -0,0 +1,5 @@ + + +报告访问可能未定义的对象键路径的尝试,这通常会在运行时导致异常。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KindProjectorSimplifyTypeProjection.html b/original-plugin-raw/zh/inspectionDescriptions/KindProjectorSimplifyTypeProjection.html new file mode 100644 index 000000000..e47afd2b8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KindProjectorSimplifyTypeProjection.html @@ -0,0 +1,15 @@ + + +

报告类型投影并建议将其转换为 Kind Projector 格式。

+

示例:

+

+  def a: ({type L[A] = (A, A)})#L
+
+

在应用快速修复后:

+

+  def a: Lambda[A => (A, A)]
+
+ +

此检查在 Kind Projector 插件启用时运行。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KindProjectorUseCorrectLambdaKeyword.html b/original-plugin-raw/zh/inspectionDescriptions/KindProjectorUseCorrectLambdaKeyword.html new file mode 100644 index 000000000..f18d94eb8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KindProjectorUseCorrectLambdaKeyword.html @@ -0,0 +1,8 @@ + + +

报告使用 `λ`。

+

使用 Kind Projector 插件中的函数语法时,请使用 `Lambda` 而不是 `λ`。 您可以在设置 | 编辑器 | 代码样式 | Scala | 其他中更改代码样式设置以使用 `λ` 而不是 `Lambda`。

+ +

此检查在 Kind Projector 插件启用时运行。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KotlinAnnotator.html b/original-plugin-raw/zh/inspectionDescriptions/KotlinAnnotator.html new file mode 100644 index 000000000..f2d72fc9b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KotlinAnnotator.html @@ -0,0 +1,5 @@ + + +允许查看 Kotlin 注解器报告的问题:编译问题、IDE 未解析的引用等。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KotlinCatchMayIgnoreException.html b/original-plugin-raw/zh/inspectionDescriptions/KotlinCatchMayIgnoreException.html new file mode 100644 index 000000000..a4eec6c87 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KotlinCatchMayIgnoreException.html @@ -0,0 +1,32 @@ + + +报告空的或可能忽略异常的 catch 块。 +

虽然偶尔是有意为之,但空的 catch 块可能导致调试复杂化。 + 此外,忽略 catch 形参可能是错误的。

+ +

+ 该检查不会报告任何命名为 ignoreignored_catch 参数。 +

+

+ 您可以使用快速修复将异常名称更改为 _。 +

+

示例:

+

+  try {
+    throwingMethod()
+  } catch (ex: IOException) {
+
+  }
+
+

在应用快速修复后:

+

+  try {
+    throwingMethod()
+  } catch (_: IOException) {
+
+  }
+
+ +使用当 'catch' 块包含注释时不发出警告选项可以忽略包含注释的 catch 块。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KotlinConstantConditions.html b/original-plugin-raw/zh/inspectionDescriptions/KotlinConstantConditions.html new file mode 100644 index 000000000..3d5fc81a7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KotlinConstantConditions.html @@ -0,0 +1,26 @@ + + +报告静态已知始终为 true、false、null 或零的非普通条件和值。 +虽然有时会有意为之,但通常这是程序中存在逻辑错误的迹象。 此外,报告永远无法到达 when 分支和某些静态已知始终失败的表达式。 +

示例:

+

+fun process(x: Int?) {
+  val isNull = x == null
+  if (!isNull) {
+    if (x != null) {} // 条件始终为 true
+    require(x!! < 0 && x > 10) // 条件始终为 false
+  } else {
+    println(x!!) // !! operator will always fail
+  }
+}
+fun process(v: Any) {
+  when(v) {
+    is CharSequence -> println(v as Int) // 转换将始终失败
+    is String -> println(v) // 分支无法到达
+  }
+}
+
+ +

2021.3 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KotlinCovariantEquals.html b/original-plugin-raw/zh/inspectionDescriptions/KotlinCovariantEquals.html new file mode 100644 index 000000000..7a144dcc5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KotlinCovariantEquals.html @@ -0,0 +1,14 @@ + + +报告当该类没有另一个采用 Any? 作为其实参类型的 equals() 时,采用除 Any? 以外的实参类型的 equals()。 +

示例:

+

+  class Foo {
+      fun equals(other: Foo?): Boolean {
+          return true
+      }
+  }
+
+

要修正此问题,请创建采用 Any? 类型实参的 equals() 方法。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KotlinDeprecation.html b/original-plugin-raw/zh/inspectionDescriptions/KotlinDeprecation.html new file mode 100644 index 000000000..3a17499e2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KotlinDeprecation.html @@ -0,0 +1,10 @@ + + +报告在代码清理操作(代码 | 代码清理)期间过时的语言功能和不必要的冗长代码结构。 +

+该快速修复会自动用紧凑和最新的语法替换过时的语言功能或不必要的冗长代码结构。 +

+还会将弃用的符号替换为建议的替换项。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/KotlinDoubleNegation.html b/original-plugin-raw/zh/inspectionDescriptions/KotlinDoubleNegation.html new file mode 100644 index 000000000..b761443c4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KotlinDoubleNegation.html @@ -0,0 +1,7 @@ + + +报告冗余双重否定。 +

示例:

+
  val truth = !!true
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/KotlinEqualsBetweenInconvertibleTypes.html b/original-plugin-raw/zh/inspectionDescriptions/KotlinEqualsBetweenInconvertibleTypes.html new file mode 100644 index 000000000..eea216e22 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KotlinEqualsBetweenInconvertibleTypes.html @@ -0,0 +1,11 @@ + + +报告对接收器和实参的基元、枚举或字符串类型不兼容的 equals() 的调用。 + +

虽然此类调用理论上可能有用,但很可能是错误。

+

示例:

+
  5.equals("");
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KotlinInternalInJava.html b/original-plugin-raw/zh/inspectionDescriptions/KotlinInternalInJava.html new file mode 100644 index 000000000..5549d7bc5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KotlinInternalInJava.html @@ -0,0 +1,10 @@ + + +报告位于不同模块中的 Java 代码中 Kotlin internal 声明的用法。 +

+ internal 关键字旨在限制对其他模块的类、函数或属性的访问。 + 由于 JVM 限制,internal 类、函数和属性仍然可以从 Kotlin 外部访问,这可能会导致兼容性问题。 +

+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/KotlinInvalidBundleOrProperty.html b/original-plugin-raw/zh/inspectionDescriptions/KotlinInvalidBundleOrProperty.html new file mode 100644 index 000000000..f51bce40d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KotlinInvalidBundleOrProperty.html @@ -0,0 +1,5 @@ + + +报告 Kotlin 文件中未解析的 .properties 文件密钥和资源包引用。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/KotlinLoggerInitializedWithForeignClass.html b/original-plugin-raw/zh/inspectionDescriptions/KotlinLoggerInitializedWithForeignClass.html new file mode 100644 index 000000000..59b92d353 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KotlinLoggerInitializedWithForeignClass.html @@ -0,0 +1,26 @@ + + +报告使用类文字初始化的 Logger 实例,而非使用 Logger 驻留的类。 +

+ 当从另一个类复制粘贴时可能会发生这种情况。 + 这可能导致记录意外类别下的事件以及错误筛选。 +

+

+ 使用检查选项可指定此检查识别的记录器工厂类和方法。 +

+

示例:

+

+class AnotherService
+class MyService {
+    private val logger = LoggerFactory.getLogger(AnotherService::class.java)
+}
+
+

在应用快速修复后:

+

+class MyService {
+    private val logger = LoggerFactory.getLogger(MyService::class.java)
+}
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KotlinRedundantOverride.html b/original-plugin-raw/zh/inspectionDescriptions/KotlinRedundantOverride.html new file mode 100644 index 000000000..99367e7b2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KotlinRedundantOverride.html @@ -0,0 +1,25 @@ + + +报告冗余重写声明。 +

+ 如果重写不修改继承的签名语义,则可以省略重写,例如,通过更改可见性。 +

+

示例:

+

+  open class Foo {
+      open fun singleExpression() {
+      }
+  }
+
+  class Bar : Foo() {
+      override fun singleExpression() = super.singleExpression()
+  }
+
+ +

在应用快速修复后:

+

+  class Bar : Foo() {
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KotlinSealedInheritorsInJava.html b/original-plugin-raw/zh/inspectionDescriptions/KotlinSealedInheritorsInJava.html new file mode 100644 index 000000000..5832ec669 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KotlinSealedInheritorsInJava.html @@ -0,0 +1,20 @@ + + +报告从 Java 代码中的 Kotlin sealed 接口或类进行继承的尝试。 +

示例:

+

+// Kotlin 文件:MathExpression.kt
+
+sealed class MathExpression
+
+data class Const(val number: Double) : MathExpression()
+data class Sum(val e1: MathExpression, val e2: MathExpression) : MathExpression()
+
+

+// Java 文件:NotANumber.java
+
+public class NotANumber extends MathExpression {
+}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KotlinTestJUnit.html b/original-plugin-raw/zh/inspectionDescriptions/KotlinTestJUnit.html new file mode 100644 index 000000000..7758feaf1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KotlinTestJUnit.html @@ -0,0 +1,6 @@ + + +报告 kotlin-testjunit 依赖项(无 kotlin-test-junit)的用法。 +

建议使用 kotlin-test-junit 依赖项来处理 Kotlin 和 JUnit。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KotlinThrowableNotThrown.html b/original-plugin-raw/zh/inspectionDescriptions/KotlinThrowableNotThrown.html new file mode 100644 index 000000000..972b2df2b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KotlinThrowableNotThrown.html @@ -0,0 +1,21 @@ + + +当创建的 Throwable 从未实际抛出时,报告 Throwable 或其子类的实例化。 +

报告的代码指出了测试中难以捕获的错误。

+

+ 此外,当结果 Throwable 实例未抛出时,此检查会报告返回 Throwable 或其子类实例的方法调用。 +

+

示例:

+

+  fun check(condition: Boolean) {
+      if (!condition) /* throw is missing here */ IllegalArgumentException("condition is not met");
+  }
+
+  fun createError() = RuntimeException()
+
+  fun foo() {
+      /* throw is missing here */ createError()
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KotlinUnusedImport.html b/original-plugin-raw/zh/inspectionDescriptions/KotlinUnusedImport.html new file mode 100644 index 000000000..9c9b94d49 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KotlinUnusedImport.html @@ -0,0 +1,32 @@ + + +报告冗余的 import 语句。 + +

可以安全地移除默认和未使用的导入。

+ +

示例:

+

+  import kotlin.*
+  import kotlin.collections.*
+  import kotlin.comparisons.*
+  import kotlin.io.*
+  import kotlin.ranges.*
+  import kotlin.sequences.*
+  import kotlin.text.*
+
+  // 特定于 jvm
+  import java.lang.*
+  import kotlin.jvm.*
+
+  // 特定于 js
+  import kotlin.js.*
+
+  import java.io.* // 此导入未使用,可以移除
+  import java.util.*
+
+  fun foo(list: ArrayList<String>) {
+      list.add("")
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KubernetesDeprecatedKeys.html b/original-plugin-raw/zh/inspectionDescriptions/KubernetesDeprecatedKeys.html new file mode 100644 index 000000000..023d474cc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KubernetesDeprecatedKeys.html @@ -0,0 +1,6 @@ + + +报告 Kubernetes 资源文件中已弃用的键。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KubernetesDeprecatedResources.html b/original-plugin-raw/zh/inspectionDescriptions/KubernetesDeprecatedResources.html new file mode 100644 index 000000000..569fb2392 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KubernetesDeprecatedResources.html @@ -0,0 +1,6 @@ + + +报告弃用的 Kubernetes 资源类型。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KubernetesDuplicatedEnvVars.html b/original-plugin-raw/zh/inspectionDescriptions/KubernetesDuplicatedEnvVars.html new file mode 100644 index 000000000..e075f2046 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KubernetesDuplicatedEnvVars.html @@ -0,0 +1,6 @@ + + +报告 Kubernetes 容器定义中的重复 EnvVars。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KubernetesMissingKeys.html b/original-plugin-raw/zh/inspectionDescriptions/KubernetesMissingKeys.html new file mode 100644 index 000000000..030c5f1e2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KubernetesMissingKeys.html @@ -0,0 +1,6 @@ + + +报告 Kubernetes 资源文件中缺少所需的键。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KubernetesNonEditableKeys.html b/original-plugin-raw/zh/inspectionDescriptions/KubernetesNonEditableKeys.html new file mode 100644 index 000000000..cfbb81083 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KubernetesNonEditableKeys.html @@ -0,0 +1,6 @@ + + +报告 Kubernetes 资源文件中的不可编辑(只读)的键。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KubernetesNonEditableResources.html b/original-plugin-raw/zh/inspectionDescriptions/KubernetesNonEditableResources.html new file mode 100644 index 000000000..d955e1d87 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KubernetesNonEditableResources.html @@ -0,0 +1,6 @@ + + +报告不可编辑(只读)的 Kubernetes 资源类型。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KubernetesUnknownKeys.html b/original-plugin-raw/zh/inspectionDescriptions/KubernetesUnknownKeys.html new file mode 100644 index 000000000..2be467d64 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KubernetesUnknownKeys.html @@ -0,0 +1,6 @@ + + +报告 Kubernetes 资源文件中无法识别的键。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KubernetesUnknownResourcesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/KubernetesUnknownResourcesInspection.html new file mode 100644 index 000000000..f3392e318 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KubernetesUnknownResourcesInspection.html @@ -0,0 +1,6 @@ + + +报告无法识别的 Kubernetes 资源类型。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/KubernetesUnknownValues.html b/original-plugin-raw/zh/inspectionDescriptions/KubernetesUnknownValues.html new file mode 100644 index 000000000..95d38f9a9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/KubernetesUnknownValues.html @@ -0,0 +1,6 @@ + + +报告 Kubernetes 资源文件中的无效值。 +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LabeledStatement.html b/original-plugin-raw/zh/inspectionDescriptions/LabeledStatement.html new file mode 100644 index 000000000..95f12e607 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LabeledStatement.html @@ -0,0 +1,12 @@ + + +报告可能导致重构和方法控制流复杂化的语句。 +

示例:

+

+  label:
+  while (true) {
+      // 代码
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LabeledStatementJS.html b/original-plugin-raw/zh/inspectionDescriptions/LabeledStatementJS.html new file mode 100644 index 000000000..d6fdc6dd8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LabeledStatementJS.html @@ -0,0 +1,5 @@ + + +报告标签语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LambdaBodyCanBeCodeBlock.html b/original-plugin-raw/zh/inspectionDescriptions/LambdaBodyCanBeCodeBlock.html new file mode 100644 index 000000000..cf040f4da --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LambdaBodyCanBeCodeBlock.html @@ -0,0 +1,13 @@ + + +报告主体为表达式的 lambda,并建议将表达式主体转换为代码块。 +

示例:

+

+  n -> n + 1
+
+

在应用快速修复后:

+
n -> {
+  return n + 1;
+}
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LambdaCanBeMethodCall.html b/original-plugin-raw/zh/inspectionDescriptions/LambdaCanBeMethodCall.html new file mode 100644 index 000000000..6cf77d0dd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LambdaCanBeMethodCall.html @@ -0,0 +1,8 @@ + + +报告可以替换为 JDK 方法调用的 lambda 表达式。 +

例如,Function<T, T> 类型的表达式 x -> x 可以替换为 Function.identity() 调用。

+ +

2017.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LambdaCanBeReplacedWithAnonymous.html b/original-plugin-raw/zh/inspectionDescriptions/LambdaCanBeReplacedWithAnonymous.html new file mode 100644 index 000000000..227a52708 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LambdaCanBeReplacedWithAnonymous.html @@ -0,0 +1,21 @@ + + +报告可以替换为匿名类的 lambda 表达式。 +

+ 如果您需要在匿名类中实现其他方法或者需要降级到以前的 Java 版本之一,则将 lambda 表达式扩展到匿名类会很有用。 +

+

示例:

+

+  s -> System.out.println(s)
+
+

在应用快速修复后:

+
new Consumer<String>() {
+  @Override
+  public void accept(String s) {
+    System.out.println(s);
+  }
+}
+ +

该检查在 Java 8 及更高版本中可用。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LambdaParameterHidingMemberVariable.html b/original-plugin-raw/zh/inspectionDescriptions/LambdaParameterHidingMemberVariable.html new file mode 100644 index 000000000..c32835653 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LambdaParameterHidingMemberVariable.html @@ -0,0 +1,22 @@ + + +报告与周围类的字段同名的 lambda 形参。 +由于进行此类命名,在有意使用同名字段的情况下,您可能会误用 lambda 形参。 +

建议通过快速修复重命名该 lambda 形参。

+

示例:

+

+  public class MyClass {
+    public Object foo;
+
+    void sort(List<Integer> list) {
+      list.sort((foo, bar) -> foo - bar);
+    }
+  }
+
+ +

+ 使用此选项可选择是否忽略对 lambda 表达式不可见的字段。 + 例如,超类的 private 字段。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LambdaParameterNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/LambdaParameterNamingConvention.html new file mode 100644 index 000000000..d8d5db679 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LambdaParameterNamingConvention.html @@ -0,0 +1,12 @@ + + +报告名称太短、太长或不遵循指定正则表达式模式的 lambda 形参。 +

示例:如果使用默认设置(其中形参名称应以小写字母开头)启用检查,则应报告 Function<String, String> id = X -> X;

+ +

配置检查:

+

+使用选项部分中的字段可指定 lambda 形参名称的最小长度、最大长度以及预期的正则表达式。 + 指定 0 以便不检查名称的长度。

+

正则表达式应以标准 java.util.regex 格式指定。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LambdaParameterTypeCanBeSpecified.html b/original-plugin-raw/zh/inspectionDescriptions/LambdaParameterTypeCanBeSpecified.html new file mode 100644 index 000000000..5179981b7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LambdaParameterTypeCanBeSpecified.html @@ -0,0 +1,15 @@ + + +报告未指定其类型的 lambda 形参并建议添加缺少的类型声明。 +

示例:

+

+  Function<String, Integer> length = a -> a.length();
+
+

在应用快速修复后:

+

+  Function<String, Integer> length = (String a) -> a.length();
+
+ +

仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LambdaUnfriendlyMethodOverload.html b/original-plugin-raw/zh/inspectionDescriptions/LambdaUnfriendlyMethodOverload.html new file mode 100644 index 000000000..f9ca2119b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LambdaUnfriendlyMethodOverload.html @@ -0,0 +1,19 @@ + + +报告采用的函数接口存在抽象方法签名冲突的重载方法。 +

此类重载会引入歧义,并要求调用方将 lambda 转换为特定类型或显式指定 lambda 形参类型。 + 最好为重载方法赋予不同的名称,以消除歧义。

+

示例:

+

+  interface MyExecutor {
+    void execute(Supplier<?> supplier);
+    void execute(Callable<?> callable);
+  }
+
+

+这里的 SupplierCallable 为函数接口,其单抽象方法不接受任何形参并返回非 void 值。 +因此,除非使用显式转换,否则无法在调用点推断 lambda 的类型。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LanguageDetectionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/LanguageDetectionInspection.html new file mode 100644 index 000000000..aa9cc5c52 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LanguageDetectionInspection.html @@ -0,0 +1 @@ +检测自然语言并建议启用相应的语法和拼写检查。 diff --git a/original-plugin-raw/zh/inspectionDescriptions/LanguageFeature.html b/original-plugin-raw/zh/inspectionDescriptions/LanguageFeature.html new file mode 100644 index 000000000..dcb2bcb3c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LanguageFeature.html @@ -0,0 +1,47 @@ + + +

报告当前文件中未启用的高级语言功能的用法。

+ +

高级语言功能需要通过相应的编译器选项或通过在使用它们的文件中导入显式功能标志来启用。

+ +

+ 后缀运算符表示法:
+ val s = 123 toString +

+ +

+ 反射调用:
+ def foo(v: {def bar()}) = v.bar() +

+ +

+ 动态成员选择:
+ class Foo extends Dynamic +

+ +

+ 隐式转换:
+ implicit def toInt(s: String) = s.toInt +

+ +

+ 高阶类型(自 Scala 2.13.1 起默认启用)
+ class Bar[M[A]] +

+ +

+ 存在类型:
+ def foo(v: Seq[T] forSome { type T }) +

+ +

+ 宏定义:
+ def assert(s: String) = macro Asserts.assertImpl +

+ + +

当提供 "-feature" 选项时,Scala 编译器也可能会发出这些警告。

+ +

有关编译器选项,请参阅:项目设置 | 编译器 | Scala 编译器 | 功能

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/LanguageMismatch.html b/original-plugin-raw/zh/inspectionDescriptions/LanguageMismatch.html new file mode 100644 index 000000000..51d481279 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LanguageMismatch.html @@ -0,0 +1,14 @@ + + +报告引用的语言与用法上下文的预期语言不匹配的情况。 + +

示例:

+

+  @Language("JavaScript")
+  String JS_CODE = "var x;";
+
+  @Language("XPath")
+  String XPATH_CODE = JS_CODE; // 此处为警告
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/LastArgumentMustBeNull.html b/original-plugin-raw/zh/inspectionDescriptions/LastArgumentMustBeNull.html new file mode 100644 index 000000000..0f78f6f39 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LastArgumentMustBeNull.html @@ -0,0 +1,5 @@ + + +报告发送消息表达式,其中消息具有 NS_REQUIRES_NIL_TERMINATION特性,并且最后一个实参不是 nil。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LastIndexToLast.html b/original-plugin-raw/zh/inspectionDescriptions/LastIndexToLast.html new file mode 100644 index 000000000..90922f611 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LastIndexToLast.html @@ -0,0 +1,6 @@ + + +

报告 seq(seq.size - 1)seq.apply(seq.size - 1),并且如果 seq 不是 IndexedSeq 的实例,建议将其替换为 seq.last

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LateinitVarOverridesLateinitVar.html b/original-plugin-raw/zh/inspectionDescriptions/LateinitVarOverridesLateinitVar.html new file mode 100644 index 000000000..448f9afa1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LateinitVarOverridesLateinitVar.html @@ -0,0 +1,17 @@ + + +报告重写另一个 lateinit var 属性的 lateinit var 属性。 +

+ 一个子类实例的单个属性会有两个字段,而来自超类的一个将保持不使用。

+ +

示例:

+open class BaseClass { + open lateinit var name: String +} + +class RealClass : BaseClass() { + override lateinit var name: String +} +

+
+ \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LawOfDemeter.html b/original-plugin-raw/zh/inspectionDescriptions/LawOfDemeter.html new file mode 100644 index 000000000..63354f440 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LawOfDemeter.html @@ -0,0 +1,9 @@ + + +报告违反迪米特法则的情况。 +

迪米特法则指定了一种样式准则:绝不调用从另一个调用中获取的对象的方法。 +遵循此准则的代码更容易维护、调整和重构,方法之间的耦合更少,重复更少,信息隐藏得更好。 另一方面,为满足这一准则,您可能需要编写许多包装器方法。

+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LeakableMapKey.html b/original-plugin-raw/zh/inspectionDescriptions/LeakableMapKey.html new file mode 100644 index 000000000..a91442558 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LeakableMapKey.html @@ -0,0 +1,14 @@ + + +报告在插件代码中将 LanguageFileType 用作映射键。 +

+ 此类用法可能导致无法正确卸载插件。 +

+

+ 请考虑使用 String 作为键。 +

+

+ 有关更多信息,请参阅 SDK 文档中的动态插件。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LeakingThis.html b/original-plugin-raw/zh/inspectionDescriptions/LeakingThis.html new file mode 100644 index 000000000..14f75f275 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LeakingThis.html @@ -0,0 +1,30 @@ + + +在对象构造期间使用 this 报告不安全的操作,包括: + +
    +
  • 在类初始化期间访问非 final 属性:从构造函数或属性初始化
  • +
  • 在类初始化期间调用非 final 函数
  • +
  • 在非 final 类的构造函数中使用 this 作为函数实参
  • +
+ +

+ 如果其他类继承自给定的类,则在执行不安全操作时,可能无法完全初始化它们。 +

+

示例:

+

+  abstract class Base {
+      val code = calculate()
+      abstract fun calculate(): Int
+  }
+
+  class Derived(private val x: Int) : Base() {
+      override fun calculate() = x
+  }
+
+  fun testIt() {
+      println(Derived(42).code) // 预期值:42,实际值:0
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/LegacyStringFormatting.html b/original-plugin-raw/zh/inspectionDescriptions/LegacyStringFormatting.html new file mode 100644 index 000000000..17f6aa512 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LegacyStringFormatting.html @@ -0,0 +1,18 @@ + + +

报告可以转换为插值字符串的传统字符串格式化表达式(通过 "format"、"formatted" 或字符串串联)。

+

新语法更简洁,提供更多静态检查并提供更好的运行时性能。

+ +

示例:

+

+  val str = "test"
+  "test %s".format(str)
+
+

在应用快速修复后:

+

+  val str = "test"
+  s"test $str"
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LengthOneStringInIndexOf.html b/original-plugin-raw/zh/inspectionDescriptions/LengthOneStringInIndexOf.html new file mode 100644 index 000000000..c7b14768f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LengthOneStringInIndexOf.html @@ -0,0 +1,15 @@ + + +报告在 String.indexOf()String.lastIndexOf() 调用中用作实参的单字符字符串。 +

建议通过快速修复将此类字符串文字替换为等效的字符文字,从而获得一些性能增强。

+

示例:

+

+  return s.indexOf("x");
+
+

在应用快速修复后:

+

+  return s.indexOf('x');
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LengthOneStringsInConcatenation.html b/original-plugin-raw/zh/inspectionDescriptions/LengthOneStringsInConcatenation.html new file mode 100644 index 000000000..48ed27b6d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LengthOneStringsInConcatenation.html @@ -0,0 +1,17 @@ + + +报告与一个字符组成的字符串文字的串联。 +

这些文字可以替换为等效的字符文字,从而提升一定的性能。

+

示例:

+

+  String hello = hell + "o";
+
+

在应用快速修复后:

+

+  String hello = hell + 'o';
+
+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LessResolvedByNameOnly.html b/original-plugin-raw/zh/inspectionDescriptions/LessResolvedByNameOnly.html new file mode 100644 index 000000000..de572f3ae --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LessResolvedByNameOnly.html @@ -0,0 +1,12 @@ + + +报告对在另一个文件中已声明但未在当前文件中显式导入的变量或 mixin 的引用。 +

示例:

+

+* {
+  margin: @var-in-other-file;
+}
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LessUnresolvedMixin.html b/original-plugin-raw/zh/inspectionDescriptions/LessUnresolvedMixin.html new file mode 100644 index 000000000..9895855d9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LessUnresolvedMixin.html @@ -0,0 +1,12 @@ + + +报告对未解析的 Less mixin 的引用。 +

示例:

+

+* {
+  .unknown-mixin();
+}
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LessUnresolvedVariable.html b/original-plugin-raw/zh/inspectionDescriptions/LessUnresolvedVariable.html new file mode 100644 index 000000000..8389d7fcc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LessUnresolvedVariable.html @@ -0,0 +1,12 @@ + + +报告对未解析的 Less 变量的引用。 + +

示例:

+

+* {
+  margin: @unknown-var;
+}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LiftReturnOrAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/LiftReturnOrAssignment.html new file mode 100644 index 000000000..65ff30583 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LiftReturnOrAssignment.html @@ -0,0 +1,25 @@ + + +报告可以通过提取 return 语句或赋值而转换为表达式的 ifwhentry 语句。 +

示例:

+

+  fun foo(arg: Int): String {
+      when (arg) {
+          0 -> return "Zero"
+          1 -> return "One"
+          else -> return "Multiple"
+      }
+  }
+
+在应用快速修复后: +

+  fun foo(arg: Int): String {
+      return when (arg) {
+          0 -> "Zero"
+          1 -> "One"
+          else -> "Multiple"
+      }
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LimitedScopeInnerClass.html b/original-plugin-raw/zh/inspectionDescriptions/LimitedScopeInnerClass.html new file mode 100644 index 000000000..1800d4c2e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LimitedScopeInnerClass.html @@ -0,0 +1,17 @@ + + +报告本地类。 +

本地类是指在代码块中声明的命名嵌套类。 +本地类不常见,因此可能令人困惑。 + 此外,有些代码标准不建议使用本地类。

+

示例:

+

+  void test() {
+    class Local { // 局部类
+    }
+    new Local();
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ListIndexOfReplaceableByContains.html b/original-plugin-raw/zh/inspectionDescriptions/ListIndexOfReplaceableByContains.html new file mode 100644 index 000000000..2c4372a13 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ListIndexOfReplaceableByContains.html @@ -0,0 +1,20 @@ + + +报告可以用 List.contains() 方法替换的任何 List.indexOf() 表达式。 +

示例:

+

+  boolean hasEmptyString(List<String> list) {
+    // 警告:可以简化
+    return list.indexOf("") >= 0;
+  }
+
+

提供的快速修复将 indexOf 调用替换为 contains 调用:

+

+  boolean hasEmptyString(List<String> list) {
+    // 快速修复已应用
+    return list.contains("");
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ListRemoveInLoop.html b/original-plugin-raw/zh/inspectionDescriptions/ListRemoveInLoop.html new file mode 100644 index 000000000..eb8fce029 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ListRemoveInLoop.html @@ -0,0 +1,27 @@ + + +报告在循环中调用的可以替换为 List.subList().clear()List.remove(index)。 +

在删除多个元素的情况下,此替换对于大多数 List 实现更有效。

+

示例:

+

+  void removeRange(List<String> list, int from, int to) {
+    for (int i = from; i < to; i++) {
+        list.remove(from);
+    }
+  }
+
+

在应用快速修复后:

+

+  void removeRange(List<String> list, int from, int to) {
+    if (to > from) {
+      list.subList(from, to).clear();
+    }
+  }
+
+

+ 该快速修复会自动添加范围检查,以防止在最小值大于最大值时可能出现的 IndexOutOfBoundsException。 如果代码中不可能出现这种情况,则可将其移除。 +

+ +

2018.2 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ListenerMayUseAdapter.html b/original-plugin-raw/zh/inspectionDescriptions/ListenerMayUseAdapter.html new file mode 100644 index 000000000..7d3153e64 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ListenerMayUseAdapter.html @@ -0,0 +1,10 @@ + + +报告实现侦听器而不是扩展相应适配器的类。 +

在将侦听器实现替换为适配器扩展后,可以通过快速修复来移除任何冗余的空方法。

+ +

+ 使用仅在找到空实现方法时发出警告选项可将检查配置为即便未发现空方法也发出警告。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LiteralAsArgToStringEquals.html b/original-plugin-raw/zh/inspectionDescriptions/LiteralAsArgToStringEquals.html new file mode 100644 index 000000000..0f982dfa7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LiteralAsArgToStringEquals.html @@ -0,0 +1,20 @@ + + +报告包含字符串文字实参的 String.equals()String.equalsIgnoreCase() 调用。 +

某些编码标准指定字符串文字应当为 equals() 的限定符而不是实参,从而最大限度减少 NullPointerException

+

可以通过快速修复交换文字和表达式。

+

示例:

+

+  boolean isFoo(String value) {
+    return value.equals("foo");
+  }
+
+

在应用快速修复后:

+

+  boolean isFoo(String value) {
+    return "foo".equals(value);
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LoadLibraryWithNonConstantString.html b/original-plugin-raw/zh/inspectionDescriptions/LoadLibraryWithNonConstantString.html new file mode 100644 index 000000000..1c67a03a8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LoadLibraryWithNonConstantString.html @@ -0,0 +1,22 @@ + + +报告对java.lang.System.loadLibrary()java.lang.System.load()java.lang.Runtime.loadLibrary()java.lang.Runtime.load() 的调用,它们会将动态构造的字符串作为库的名称。 +

+ 构造的库名称字符串是安全漏洞的常见来源。 + 默认情况下,此检查会忽略编译时常量。

+

示例:

+

+  void test(int i) {
+    System.loadLibrary("foo" + i);
+  }
+
+ +

+使用检查设置可以将任何 static final 字段视为常量。 +请小心,因为启用该选项时,像下面这样的字符串将被忽略: +

+

+  private static final String LIBRARY = getUserInput();
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LocalCanBeFinal.html b/original-plugin-raw/zh/inspectionDescriptions/LocalCanBeFinal.html new file mode 100644 index 000000000..63fc3db38 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LocalCanBeFinal.html @@ -0,0 +1,21 @@ + + +报告指定检查范围内找到的可以向其中添加 final 修饰符的形参或局部变量。 +

示例:

+

+  ArrayList<Integer> list = new ArrayList();
+  fill(list);
+  return list;
+
+

在应用快速修复后:

+

+  final ArrayList<Integer> list = new ArrayList();
+  fill(list);
+  return list;
+
+ +

+ 使用该检查的选项可定义是否应报告形参或局部变量。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/LocalTmsIdInspection.html b/original-plugin-raw/zh/inspectionDescriptions/LocalTmsIdInspection.html new file mode 100644 index 000000000..fcb4b8806 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LocalTmsIdInspection.html @@ -0,0 +1,10 @@ + + +报告在 Markdown 中声明的本地 TMS 条目中缺少的 ID 和重复的 ID。 +

无法将缺少 ID 或 ID 无效的 TMS 元素链接到代码(单元测试)。

+

该快速修复会生成独一无二的 ID。

+ +

缺少测试用例 ID 时报告警告,不唯一时报告错误。 + 测试套件/运行 ID 号码不唯一时报告错误。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LocalValueEscapesScope.html b/original-plugin-raw/zh/inspectionDescriptions/LocalValueEscapesScope.html new file mode 100644 index 000000000..34185197c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LocalValueEscapesScope.html @@ -0,0 +1,12 @@ + + +报告带有对超出其范围的局部变量的引用的变量。 +

示例:

+

+  int *escapeLocalScope() {
+    int lv = 100;
+    return &lv;
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LocalVariableHidingMemberVariable.html b/original-plugin-raw/zh/inspectionDescriptions/LocalVariableHidingMemberVariable.html new file mode 100644 index 000000000..6a86cba53 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LocalVariableHidingMemberVariable.html @@ -0,0 +1,31 @@ + + +报告与周围类的字段同名的局部变量。 +由于进行此类命名,在有意使用同名字段的情况下,您可能会误用该变量。 +

建议通过快速修复重命名该变量。

+

示例:

+

+  public class Foo {
+    public Object foo;
+
+    void bar() {
+      Object o = new Object() {
+        void baz() {
+          Object foo; // 局部变量 'foo' 隐藏类 'Foo' 中的字段
+        }
+      };
+    }
+  }
+
+ +

+ 您可以为此检查配置以下选项: +

+
    +
  1. 忽略不可访问字段 - 忽略与不可见的超类字段同名的局部变量(例如,由于这些字段是 private 字段)。
  2. +
  3. 忽略隐藏非 static 字段的 static 上下文中的局部变量 - +例如,当局部变量位于 static 方法内部或位于 static 内部类中的方法内部时。 +
  4. +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LocalVariableName.html b/original-plugin-raw/zh/inspectionDescriptions/LocalVariableName.html new file mode 100644 index 000000000..3f56bbc23 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LocalVariableName.html @@ -0,0 +1,28 @@ + + +报告不遵循命名惯例的局部变量。 +

您可以在检查选项中指定所需的模式。

+

建议的命名惯例:必须以小写字母开头,使用驼峰拼写法并且没有下划线。

+

示例:

+

+  fun fibonacciNumber(index: Int): Long = when(index) {
+      0 -> 0
+      else -> {
+          // 未遵循命名惯例:包含下划线符号 (`_`)
+          var number_one: Long = 0
+          // 未遵循命名惯例:以大写字母开头
+          var NUMBER_TWO: Long = 1
+          // 遵循命名惯例:以小写字母开头,使用驼峰拼写法并且没有下划线。
+          var numberThree: Long = number_one + NUMBER_TWO
+
+          for(currentIndex in 2..index) {
+              numberThree = number_one + NUMBER_TWO
+              number_one = NUMBER_TWO
+              NUMBER_TWO = numberThree
+          }
+          numberThree
+      }
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LocalVariableNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/LocalVariableNamingConvention.html new file mode 100644 index 000000000..e5a6ff343 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LocalVariableNamingConvention.html @@ -0,0 +1,13 @@ + + +报告名称太短、太长或不遵循指定正则表达式模式的局部变量。 +

示例:如果在默认设置下启用该检查,其中变量名称应以小写字母开头,则报告 int X = 42;

+ + +

配置检查:

+

+使用选项部分中的字段可指定局部变量名称的最小长度、最大长度以及预期的正则表达式。 +指定 0 以便不检查名称的长度。 正则表达式应以标准 java.util.regex 格式指定。 +

使用复选框来忽略 for 循环和 catch 部分的形参。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LocalVariableNamingConventionJS.html b/original-plugin-raw/zh/inspectionDescriptions/LocalVariableNamingConventionJS.html new file mode 100644 index 000000000..5e7d2d949 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LocalVariableNamingConventionJS.html @@ -0,0 +1,10 @@ + + +报告名称太短、太长或不符合 +指定正则表达式模式的局部变量。 + +

+ 使用下面提供的字段来指定局部变量名称的最小长度、 +最大长度以及预期的正则表达式。 使用标准 java.util.regex 格式的正则表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Local_CustomHtmlAttributes.html b/original-plugin-raw/zh/inspectionDescriptions/Local_CustomHtmlAttributes.html new file mode 100644 index 000000000..98586e94a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Local_CustomHtmlAttributes.html @@ -0,0 +1,7 @@ + + +报告 HTML 或 JSP 文件中的自定义 HTML 特性。 + +

使用下面的选项可将特性添加到已知的自定义特性列表。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Local_CustomHtmlTags.html b/original-plugin-raw/zh/inspectionDescriptions/Local_CustomHtmlTags.html new file mode 100644 index 000000000..e6e7883f4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Local_CustomHtmlTags.html @@ -0,0 +1,8 @@ + + +报告 HTML 或 JSP 文件中的自定义 HTML 标记。 + + +

使用下面的选项可将标记添加到已知的自定义标记列表。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Local_NotRequiredHtmlAttributes.html b/original-plugin-raw/zh/inspectionDescriptions/Local_NotRequiredHtmlAttributes.html new file mode 100644 index 000000000..694cc126d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Local_NotRequiredHtmlAttributes.html @@ -0,0 +1,8 @@ + + +报告 HTML 或 JSP 文件中的冗余 HTML 特性。 + + +

使用下面的选项可将特性添加到非必需特性列表。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LogStatementGuardedByLogCondition.html b/original-plugin-raw/zh/inspectionDescriptions/LogStatementGuardedByLogCondition.html new file mode 100644 index 000000000..8663f46e6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LogStatementGuardedByLogCondition.html @@ -0,0 +1,40 @@ + + +报告带有未被保护条件包围的非常量实参的日志记录调用。 +对日志记录调用的实参的评估可能开销巨大。 +当日志记录语句使用的级别禁用日志记录时,使用临界子句包围日志记录调用可避免这种开销。 这对于最不严重的日志记录调用级别(跟踪、调试、最精细)特别有用,因为这些调用在生产环境中最常被禁用。 +

示例:

+

+  public class Principal {
+    void bad(Object object) {
+      if (true) {
+        LOG.debug("log log log " + expensiveCalculation(object));
+      }
+      LOG.debug("some more logging " + expensiveCalculation(1));
+    }
+
+    void good(Object) {
+      if (LOG.isDebug()) {
+        LOG.debug("value: " + expensiveCalculation(object));
+      }
+    }
+  }
+
+ +

+ 配置检查: +

+
    +
  • + 使用记录器类名字段可以指定使用的记录器类名。 +
  • +
  • +

    + 使用该表可以指定此检查应警告的日志记录方法,以及相应的日志条件文本。 +

  • +
  • + 使用标记所有不受保护的日志调用选项可让检查标记所有不受保护的日志调用,而不仅仅是那些具有非常量实参的调用。 +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LoggerInitializedWithForeignClass.html b/original-plugin-raw/zh/inspectionDescriptions/LoggerInitializedWithForeignClass.html new file mode 100644 index 000000000..1517b7fe7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LoggerInitializedWithForeignClass.html @@ -0,0 +1,31 @@ + + +报告用来初始化的 class 文字所属的类与 Logger 所属的类不同的 Logger 实例。 从另一个类复制粘贴某些代码时,很容易发生这种情况,并可能导致在意外类别下记录事件,并导致筛选器应用不正确。 +

提供了一个快速修复来用周围类中的文字替换外类文字。

+

示例:

+

+  public class Paramount {
+    protected static final Logger LOG = Logger.getLogger(Critical.class);
+
+    // …其他字段和方法
+  }
+
+

在应用快速修复后:

+

+  public class Paramount {
+    protected static final Logger LOG = Logger.getLogger(Paramount.class);
+
+    // …其他字段和方法
+  }
+
+ +

+ 配置检查: +

+
    +
  • 使用该表可以指定此检查识别的记录器工厂类和记录器工厂方法。
  • +
  • 使用忽略使用超类初始化的记录器选项可以忽略使用包含该记录器的类的超类初始化的记录器。
  • +
  • 使用忽略非 public 类中的记录器,仅对 public 类中的记录器发出警告。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LoggingConditionDisagreesWithLogStatement.html b/original-plugin-raw/zh/inspectionDescriptions/LoggingConditionDisagreesWithLogStatement.html new file mode 100644 index 000000000..33a107363 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LoggingConditionDisagreesWithLogStatement.html @@ -0,0 +1,15 @@ + + +报告与包含的日志记录调用的日志级别不匹配的 if 语句的 is log enabled for 条件。 +

+示例: +


+  if (LOG.isTraceEnabled()) {
+    // 已记录调试级别,但已检查跟踪级别
+    LOG.debug("some log message");
+  }
+
+ +

此检查能够理解 java.util.logginglog4jLog4j 2Apache Commons LoggingSLF4J 日志记录框架。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Lombok.html b/original-plugin-raw/zh/inspectionDescriptions/Lombok.html new file mode 100644 index 000000000..0d73d137b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Lombok.html @@ -0,0 +1,5 @@ + + +提供 Lombok 注解的一般检查。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/LongLine.html b/original-plugin-raw/zh/inspectionDescriptions/LongLine.html new file mode 100644 index 000000000..0fdfb9cca --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LongLine.html @@ -0,0 +1,5 @@ + + +报告比代码样式设置中指定的右边距形参长的行。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LongLiteralsEndingWithLowercaseL.html b/original-plugin-raw/zh/inspectionDescriptions/LongLiteralsEndingWithLowercaseL.html new file mode 100644 index 000000000..e7230fb64 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LongLiteralsEndingWithLowercaseL.html @@ -0,0 +1,7 @@ + + +报告以小写 'l' 结尾的 long 文字。 这些文字可能令人困惑,因为小写的 'l' 与 '1' 非常相似。 +

此检查的快速修复会将小写 'l' 替换为大写 'L'。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LoopConditionNotUpdatedInsideLoop.html b/original-plugin-raw/zh/inspectionDescriptions/LoopConditionNotUpdatedInsideLoop.html new file mode 100644 index 000000000..9a47cc95f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LoopConditionNotUpdatedInsideLoop.html @@ -0,0 +1,21 @@ + + +报告在循环条件中使用且未在循环内更新的任何变量和形参。 +

此类变量和形参通常被错误使用,因为如果执行它们可能会导致无限循环。

+

示例:

+

+  void loopDoesNotLoop(boolean b) {
+    while (b) {
+      System.out.println();
+      break;
+    }
+  }
+
+ +

配置检查:

+

+ 如果条件可以间接更新(例如,通过调用的方法或从另一个线程并发更新),请使用 忽略可能的非本地变更 选项来禁用此检查。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LoopDoesntUseConditionVariable.html b/original-plugin-raw/zh/inspectionDescriptions/LoopDoesntUseConditionVariable.html new file mode 100644 index 000000000..5d5e97a64 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LoopDoesntUseConditionVariable.html @@ -0,0 +1,13 @@ + + +报告循环内未更新的循环条件。 +这可以指示代码缺陷并在运行时导致无限循环。 +

示例:

+

+    int i = 0, j = 0;
+    while (i < 10) {
+        ++j;
+    }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LoopStatementThatDoesntLoopJS.html b/original-plugin-raw/zh/inspectionDescriptions/LoopStatementThatDoesntLoopJS.html new file mode 100644 index 000000000..76ad19313 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LoopStatementThatDoesntLoopJS.html @@ -0,0 +1,6 @@ + + +报告语句体最多可以执行一次的 for 、 +whiledo 语句。 这通常表示有错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LoopStatementsThatDontLoop.html b/original-plugin-raw/zh/inspectionDescriptions/LoopStatementsThatDontLoop.html new file mode 100644 index 000000000..a7da08863 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LoopStatementsThatDontLoop.html @@ -0,0 +1,17 @@ + + +报告其语句体最多执行一次的 forwhiledo 语句的任何实例。 通常,这表明存在错误。 + +

+使用忽略增强型 for 循环选项可忽略 foreach 循环。 +它们有时用于以紧凑的方式仅对可迭代对象的第一个条目执行操作。 +

+

示例:

+

+  for (String s : stringIterable) {
+    doSomethingOnFirstString(s);
+    break;
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LoopToCallChain.html b/original-plugin-raw/zh/inspectionDescriptions/LoopToCallChain.html new file mode 100644 index 000000000..926901017 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LoopToCallChain.html @@ -0,0 +1,24 @@ + + +报告可替换为 stdlib 运算的序列(如 mapfilter 等)的 for 循环。 +

示例:

+

+fun foo(list: List<String>): List<Int> {
+  val result = ArrayList<Int>()
+  for (s in list) {
+     if (s.length > 0)
+       result.add(s.hashCode())
+     }
+  return result
+}
+
+

在应用快速修复后:

+

+fun foo(list: List<String>): List<Int> {
+  val result = list
+    .filter { it.length > 0 }
+    .map { it.hashCode() }
+  return result
+}
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/LoopVariableNotUpdated.html b/original-plugin-raw/zh/inspectionDescriptions/LoopVariableNotUpdated.html new file mode 100644 index 000000000..764cd8a7d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LoopVariableNotUpdated.html @@ -0,0 +1,8 @@ + + +

报告在循环条件中使用且未在循环内更新的变量。

+ +

如果执行,这些可能会导致无限循环,并且可能不是预期的。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LoopWithImplicitTerminationCondition.html b/original-plugin-raw/zh/inspectionDescriptions/LoopWithImplicitTerminationCondition.html new file mode 100644 index 000000000..d7091cb36 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LoopWithImplicitTerminationCondition.html @@ -0,0 +1,11 @@ + + +报告任何以 true 常量作为其唯一条件的 whiledo-whilefor 循环。 同时,此类循环仍然能够被可以跳出循环的包含 if 语句终止。 +

此类 if 语句必须是 whilefor 循环中的第一个或唯一语句,也必须是 do-while 循环中的最后一个或唯一语句。

+ +

移除 if 语句并将其条件设为显式循环条件可简化循环。

+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/LossyEncoding.html b/original-plugin-raw/zh/inspectionDescriptions/LossyEncoding.html new file mode 100644 index 000000000..eb7034232 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/LossyEncoding.html @@ -0,0 +1,14 @@ + + + +报告由于当前文档编码而无法显示的字符。 +

示例:

+
    +
  • 如果在带有 US-ASCII 字符集的文档中键入国际字符,保存时会丢失某些字符。
  • +
  • 如果加载使用 ISO-8859-1 一字节字符集的 UTF-8 编码文件,某些字符将无法正确显示。
  • +
+ +

要解决此问题,可以直接在文件中指定编码来更改文件编码,例如编辑 XML 文件的 XML prolog 中的 encoding= 特性,或者在设置 | 编辑器 | 文件编码中更改相应选项。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MVCPathVariableInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MVCPathVariableInspection.html new file mode 100644 index 000000000..802a9c12d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MVCPathVariableInspection.html @@ -0,0 +1,20 @@ + + +

报告在方法签名中声明但在 URL 路径中不存在或者在 URL 路径中声明但在方法签名中不存在的 @PathVariable 形参。 + 该快速修复会添加缺失的形参。

+

示例:

+

+  @RequestMapping("/path/{myVariable}/")
+  public String handler(@PathVariable String name_is_not_equal_to_myVariable) {
+    return "...";
+  }
+
+

应用快速修复后,结果如下所示:

+

+  @RequestMapping("/path/{myVariable}/")
+  public String handler(@PathVariable String myVariable) {
+    return "...";
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MagicCharacter.html b/original-plugin-raw/zh/inspectionDescriptions/MagicCharacter.html new file mode 100644 index 000000000..4f8a7c573 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MagicCharacter.html @@ -0,0 +1,8 @@ + + +报告在没有常量声明的情况下使用的字符文字。 这些字符可能导致代码可读性差。 此外,如果只在代码中的一处更改某个字符,而不是在代码中的每一处都更改该字符,可能会出现错误。 +

示例:

+
char c = 'c';
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MagicConstant.html b/original-plugin-raw/zh/inspectionDescriptions/MagicConstant.html new file mode 100644 index 000000000..19b616070 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MagicConstant.html @@ -0,0 +1,23 @@ + + +报告可以替换为“魔术”常量的表达式。 +

示例 1:

+

+  // 使用了裸文字 "2",警告:
+  Font font = new Font("Arial", 2)
+
+

示例 2:

+

+  // 使用了预定义常量,良好:
+  Font font = new Font("Arial", Font.ITALIC)
+
+

+ 如果可能,该快速修复会插入相应的预定义常量。 +

+ +

+ 此检查的行为由 org.intellij.lang.annotations.MagicConstant 注解进行控制。 + 有些标准的 Java 库方法进行了预先注解,但您也可以在代码中使用该注解。 +

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/MagicNumber.html b/original-plugin-raw/zh/inspectionDescriptions/MagicNumber.html new file mode 100644 index 000000000..788911fca --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MagicNumber.html @@ -0,0 +1,32 @@ + + +报告“幻数”:未通过常量声明来命名的数值文字。 +

使用幻数会导致代码不清晰,并且如果幻数在一个位置更改但在另一个位置保持不变,则会导致错误。 此检查不会报告数字 0、1、2、3、4、5、6、7、8、9、10、100、1000、0L、1L、2L、0.0、1.0、0.0F 和 1.0F。

+

示例:

+

+  void checkFileSize(long bytes) {
+    if (bytes > 1_048_576) {
+      throw new IllegalArgumentException("too big");
+    }
+  }
+
+

快速修复引入了一个新常量:

+

+  static final int MAX_SUPPORTED_FILE_SIZE = 1_048_576;
+
+  void checkFileSize(long bytes) {
+    if (bytes > MAX_SUPPORTED_FILE_SIZE) {
+      throw new IllegalArgumentException("too big");
+    }
+  }
+
+ +

配置检查:

+
    +
  • 使用忽略 'hashCode()' 方法中的常量选项可在 hashCode() 方法中禁用此检查。
  • +
  • 使用在注解中忽略选项可以忽略注解中的幻数。
  • +
  • 在构造 CollectionMapStringBuilderStringBuffer 对象时,使用忽略 StringBuilders 和 Collections 的初始容量选项可以忽略用作初始容量的幻数。
  • +
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MagicNumberJS.html b/original-plugin-raw/zh/inspectionDescriptions/MagicNumberJS.html new file mode 100644 index 000000000..8803b7036 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MagicNumberJS.html @@ -0,0 +1,8 @@ + + + +报告使用数值文字但未通过常量声明来命名的“幻数”。 +魔法数字可能导致代码意图不明确,如果一个代码位置中的魔法数字进行了更改,但在另一个代码位置未加更改,则可能导致错误。 数字 0、1、2、3、4、5、6、7、8、9、10、100、1000、 +0.0 和 1.0 将被忽略。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MainFunctionReturnUnit.html b/original-plugin-raw/zh/inspectionDescriptions/MainFunctionReturnUnit.html new file mode 100644 index 000000000..1dfeacd6f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MainFunctionReturnUnit.html @@ -0,0 +1,7 @@ + + +报告返回类型错误(应为 Unit)的入口点函数。 +

示例:

+fun main() = "Hello world!" + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/MakeArrayToString.html b/original-plugin-raw/zh/inspectionDescriptions/MakeArrayToString.html new file mode 100644 index 000000000..b76874c17 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MakeArrayToString.html @@ -0,0 +1,16 @@ + + +

报告传递给 printprintln 的数组,并建议将它们转换为正确的字符串

. +

示例:

+

+  var x: Array[Int]
+  print(x)
+
+

在应用快速修复后:

+

+  var x: Array[Int]
+  print(x.mkString("Array(", ", ", ")"))
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MalformedDataProvider.html b/original-plugin-raw/zh/inspectionDescriptions/MalformedDataProvider.html new file mode 100644 index 000000000..da1865c89 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MalformedDataProvider.html @@ -0,0 +1,24 @@ + +报告对不存在或不可访问的数据提供者方法的引用。 + +

示例:

+

+public class InstanceDataProviderFromForeignClass {
+  // 方法 data() 在类 A 中不存在
+  @Test(dataProvider = "data", dataProviderClass = A.class)
+  public void test() {
+  }
+}
+class A { }
+
+

在应用快速修复后:

+

+//所需的 data() 方法在类 A 中创建
+class A {
+  @DataProvider
+  public Object[][] data() {
+    return new Object[][]{};
+  }
+}
+
+ \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MalformedFormatString.html b/original-plugin-raw/zh/inspectionDescriptions/MalformedFormatString.html new file mode 100644 index 000000000..1d1fe17db --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MalformedFormatString.html @@ -0,0 +1,13 @@ + + +报告不符合标准 Java 语法的格式字符串。 +

默认情况下,如果编译时常量被用作 java.util.Formatterjava.lang.Stringjava.io.PrintWriterjava.io.PrintStream 上相应方法的实参,则该检查会将其视为格式字符串。 +

+

示例:

+

+  String.format("x = %d, y = %d", 42);
+
+ +

使用检查设置可以将其他类和方法标记为与字符串格式相关。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MalformedSetUpTearDown.html b/original-plugin-raw/zh/inspectionDescriptions/MalformedSetUpTearDown.html new file mode 100644 index 000000000..436af5489 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MalformedSetUpTearDown.html @@ -0,0 +1,19 @@ + + +报告不声明为 public、不返回 void 或接受实参的 JUnit 3 setUp()tearDown() 方法。 +此类 setUp()tearDown() 方法很可能是无意中创建的,JUnit 测试运行程序不会执行这些方法。 +

示例:

+

+  public class WeightyTest extends TestCase {
+    private File file;
+    private int setUp(String prefix) throws IOException {
+      file = File.createTempFile(prefix, ".tmp");
+      return 0;
+    }
+
+    // ... 测试转到此处
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ManagedBeanClassInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ManagedBeanClassInspection.html new file mode 100644 index 000000000..4cdb79122 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ManagedBeanClassInspection.html @@ -0,0 +1,18 @@ + + +在以下情况下报告错误定义的托管 Bean 类: +
    +
  • 类不为 final
  • +
  • 类为 abstract
  • +
  • Bean 为非 static 内部类
  • +
+ +

示例:


+

+  @ManagedBean
+  public final class JavaManagedBean { // 错误:托管 Bean 不应为 final
+    ...
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ManualArrayCopy.html b/original-plugin-raw/zh/inspectionDescriptions/ManualArrayCopy.html new file mode 100644 index 000000000..b893362be --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ManualArrayCopy.html @@ -0,0 +1,16 @@ + + +报告可以替换为 System.arraycopy() 的数组内容的手动复制。 +

示例:

+

+  for (int i = 0; i < array.length; i++) {
+    newArray[i] = array[i];
+  }
+
+

在应用快速修复后:

+

+  System.arraycopy(array, 0, newArray, 0, array.length);
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ManualArrayToCollectionCopy.html b/original-plugin-raw/zh/inspectionDescriptions/ManualArrayToCollectionCopy.html new file mode 100644 index 000000000..06fc2855c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ManualArrayToCollectionCopy.html @@ -0,0 +1,28 @@ + + +报告使用循环将数组内容复制到集合中的代码。 +

+ 一种更短并且有可能更快(取决于集合实现)的方法是使用 Collection.addAll(Arrays.asList())Collections.addAll()。 +

+

+

仅报告内部没有附加语句的循环。

+

示例:

+

+  void addAll(List<String> list, String[] arr) {
+    for (int i = 0; i < arr.length; i++) {
+      String s = arr[i];
+      list.add(s);
+    }
+  }
+
+

在应用快速修复后:

+

+  void addAll(List<String> list, String[] arr) {
+    Collections.addAll(list, arr);
+  }
+
+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ManualMinMaxCalculation.html b/original-plugin-raw/zh/inspectionDescriptions/ManualMinMaxCalculation.html new file mode 100644 index 000000000..d22ae9abf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ManualMinMaxCalculation.html @@ -0,0 +1,24 @@ + + +报告可以使用 Math.max()Math.min() 调用而不是手动计算两个数字的最小值或最大值的情况。 +

示例:

+

+  public int min(int a, int b) {
+    return b < a ? b : a;
+  }
+
+

在应用快速修复后:

+

+  public int min(int a, int b) {
+    return Math.min(a, b);
+  }
+
+ +

+ 使用禁用 float 和 double 选项,可对 doublefloat 禁用此检查。 + 由于该快速修复在处理 NaN 时可能会略微破坏 float/ + double 的语义,因此这很有用。 不过,如果用户不在意 NaN,那么在大多数情况下它其实会修正难以捉摸的错误。 +

+

2019.2 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MapFlatten.html b/original-plugin-raw/zh/inspectionDescriptions/MapFlatten.html new file mode 100644 index 000000000..5a4a76ddd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MapFlatten.html @@ -0,0 +1,14 @@ + + +

报告 collection.map(f).flatten(m),并建议将其替换为 collection.flatMap

+

示例:

+

+  Seq(1, 10).map(i => Seq(i, i + 10)).flatten
+
+

在应用快速修复后:

+

+  Seq(1, 10).flatMap(i => Seq(i, i + 10))
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MapGetEmptinessCheck.html b/original-plugin-raw/zh/inspectionDescriptions/MapGetEmptinessCheck.html new file mode 100644 index 000000000..ad9e27398 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MapGetEmptinessCheck.html @@ -0,0 +1,18 @@ + + +

报告 Map.get 结果的空性检查,并建议将其替换为对 Map.contains 的调用。

+

示例:

+

+  val map = Map(1 -> 42)
+  map.get(key).nonEmpty
+  map.get(key).isEmpty
+
+

在应用快速修复后:

+

+  val map = Map(1 -> 42)
+  map.contains(key)
+  !map.contains(key)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MapGetGet.html b/original-plugin-raw/zh/inspectionDescriptions/MapGetGet.html new file mode 100644 index 000000000..7718b87a8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MapGetGet.html @@ -0,0 +1,16 @@ + + +

通过键从映射中获取值时,报告对 Map.get/Option.get 的不必要调用

. +

示例:

+

+  val map = Map(1 -> 42)
+  map.get(k).get
+
+

在应用快速修复后:

+

+  val map = Map(1 -> 42)
+  map(k)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MapGetOrElse.html b/original-plugin-raw/zh/inspectionDescriptions/MapGetOrElse.html new file mode 100644 index 000000000..09b8b2d8f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MapGetOrElse.html @@ -0,0 +1,16 @@ + + +

报告 Option 上的 mapgetOrElse,并建议将其替换为 fold

+

示例:

+

+  def p(x: Int): Boolean = ???
+  Option(0).map(p).getOrElse(false)
+
+

在应用快速修复后:

+

+  def p(x: Int): Boolean = ???
+  Option(0).fold(false)(p)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MapGetOrElseBoolean.html b/original-plugin-raw/zh/inspectionDescriptions/MapGetOrElseBoolean.html new file mode 100644 index 000000000..0c7606b45 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MapGetOrElseBoolean.html @@ -0,0 +1,18 @@ + + +

报告 mapgetOrElse(false)/getOrElse(true) 并建议将其替换为 exists/forall

+

示例:

+

+  def p(x: Int): Boolean = ???
+  Option(0).map(p).getOrElse(false)
+  Option(0).map(p).getOrElse(true)
+
+

在应用快速修复后:

+

+  def p(x: Int): Boolean = ???
+  Option(0).exists(p)
+  Option(0).forall(p)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MapGetWithNotNullAssertionOperator.html b/original-plugin-raw/zh/inspectionDescriptions/MapGetWithNotNullAssertionOperator.html new file mode 100644 index 000000000..adb24e2a9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MapGetWithNotNullAssertionOperator.html @@ -0,0 +1,13 @@ + + +报告可替换为 map.getValue()map.getOrElse() 等的 map.get()!!。 +

示例:

+

+fun test(map: Map<Int, String>): String = map.get(0)!!
+
+

在应用快速修复后:

+

+fun test(map: Map<Int, String>): String = map.getValue(0)
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MapKeys.html b/original-plugin-raw/zh/inspectionDescriptions/MapKeys.html new file mode 100644 index 000000000..e7074fe9e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MapKeys.html @@ -0,0 +1,20 @@ + + +

报告从 Map 中提取键的非标准方法。

+

示例:

+

+  val map = Map(1 -> 42)
+  map.map(_._1)
+  map.map(_._1).toSet
+  map.map(_._1).toIterator
+
+

在应用快速修复后:

+

+  val map = Map(1 -> 42)
+  map.keys
+  map.keySet
+  map.keysIterator
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MapLift.html b/original-plugin-raw/zh/inspectionDescriptions/MapLift.html new file mode 100644 index 000000000..ed9deefd3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MapLift.html @@ -0,0 +1,16 @@ + + +

报告 map.lift(n) 的用法,并建议将其替换为 map.get(n)

+

示例:

+

+  val m = Map(1 -> 1)
+  m.lift(1)
+
+

在应用快速修复后:

+

+  val m = Map(1 -> 1)
+  m.get(1)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MapReplaceableByEnumMap.html b/original-plugin-raw/zh/inspectionDescriptions/MapReplaceableByEnumMap.html new file mode 100644 index 000000000..ed19cf668 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MapReplaceableByEnumMap.html @@ -0,0 +1,17 @@ + + +报告键类型为枚举类的 java.util.Map 对象的实例化。 此类 java.util.Map 对象可以替换为 java.util.EnumMap 对象。 +

+ java.util.EnumMap 实现可以更加高效,因为底层数据结构是简单的数组。 +

+

示例:

+

+  Map<MyEnum, String> myEnums = new HashMap<>();
+
+

在应用快速修复后:

+

+  Map<MyEnum, String> myEnums = new EnumMap<>(MyEnum.class);
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MapToBooleanContains.html b/original-plugin-raw/zh/inspectionDescriptions/MapToBooleanContains.html new file mode 100644 index 000000000..b94156775 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MapToBooleanContains.html @@ -0,0 +1,22 @@ + + +

报告将集合映射到布尔值并在它上面使用 contains

+ +

该快速修复改用 .exists()!.forall()

+

示例:

+

+  def p(x: Int): Boolean = ???
+  var seq: Seq[Int]
+  seq.map(p).contains(true)
+  seq.map(p).contains(false)
+
+

在应用快速修复后:

+

+  def p(x: Int): Boolean = ???
+  var seq: Seq[Int]
+  seq.exists(p)
+  !seq.forall(p)
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MapValues.html b/original-plugin-raw/zh/inspectionDescriptions/MapValues.html new file mode 100644 index 000000000..43d8b132d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MapValues.html @@ -0,0 +1,18 @@ + + +

报告从 Map 中提取值的非标准方法。

+

示例:

+

+  val map = Map(1 -> 42)
+  map.map(_._2)
+  map.map(_._2).toIterator
+
+

在应用快速修复后:

+

+  val map = Map(1 -> 42)
+  map.values
+  map.valuesIterator
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MarkInnerCaseObjectsAsFinal.html b/original-plugin-raw/zh/inspectionDescriptions/MarkInnerCaseObjectsAsFinal.html new file mode 100644 index 000000000..5c883ed73 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MarkInnerCaseObjectsAsFinal.html @@ -0,0 +1,21 @@ + + +

报告缺少 case 对象的 final 修饰符。

+

虽然内部 case 对象在 Scala 中实际上是 final,但它们不能扩展,并且它们并不总是在编译的字节码中被标记为这样。 因此,此检查建议您这样做。 + 请参阅最佳做法

+ +

示例:

+

+  object Outer {
+    case object Inner
+  }
+
+

在应用快速修复后:

+

+  object Outer {
+    final case object Inner
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MarkdownIncorrectTableFormatting.html b/original-plugin-raw/zh/inspectionDescriptions/MarkdownIncorrectTableFormatting.html new file mode 100644 index 000000000..49e1c0671 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MarkdownIncorrectTableFormatting.html @@ -0,0 +1,5 @@ + + +检查表格的格式是否正确。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/MarkdownNoTableBorders.html b/original-plugin-raw/zh/inspectionDescriptions/MarkdownNoTableBorders.html new file mode 100644 index 000000000..53efe2914 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MarkdownNoTableBorders.html @@ -0,0 +1,6 @@ + + +检查表格是否有正确的边框。 +出于兼容性原因,所有表格行的开头和结尾都应该有边框(管道符号)。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/MarkdownUnresolvedFileReference.html b/original-plugin-raw/zh/inspectionDescriptions/MarkdownUnresolvedFileReference.html new file mode 100644 index 000000000..e0a69f7aa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MarkdownUnresolvedFileReference.html @@ -0,0 +1,5 @@ + + +报告 Markdown 文件中的未解析文件引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MarkedForRemoval.html b/original-plugin-raw/zh/inspectionDescriptions/MarkedForRemoval.html new file mode 100644 index 000000000..f9f3ecc22 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MarkedForRemoval.html @@ -0,0 +1,11 @@ + + +报告已用 @Deprecated(forRemoval=true) 标记为移除的已弃用的 API(类、字段和方法)的用法。 + +

+ 使用标记为移除的 API 的代码可能会导致未来版本的 API 出现运行时错误。 这就是为什么此检查的推荐严重性为 Error

+

+ 如果您想使用与普通弃用相同的代码高亮显示,您可以将严重性更改为 警告

+

2017.3 最新变化

+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/MarkerInterface.html b/original-plugin-raw/zh/inspectionDescriptions/MarkerInterface.html new file mode 100644 index 000000000..16abbc0dd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MarkerInterface.html @@ -0,0 +1,8 @@ + + +报告不含任何方法或字段的标记接口。 +

此类接口可能令人困惑,通常表明设计失败。

+

该检查将忽略扩展两个或多个接口的接口以及指定其超接口泛型类型的接口。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MaskedAssertion.html b/original-plugin-raw/zh/inspectionDescriptions/MaskedAssertion.html new file mode 100644 index 000000000..6e8adfed5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MaskedAssertion.html @@ -0,0 +1,37 @@ + + +报告使用 catch 块屏蔽的断言语句和测试框架断言。 +此类断言永远不会失败,因为将捕获并无提示地忽略 AssertionError。 +

示例 1:

+

+void javaAssertion() {
+  try {
+    ...
+    assert 1 == 2; // 断言被无提示忽略
+  } catch (AssertionError e) {}
+}
+
+

示例 2:

+

+@Test
+void testWithAssertJ() {
+  try {
+    ...
+    assertThat(1).as("test").isEqualTo(2); // 断言被无提示忽略
+  } catch (AssertionError e) {}
+}
+
+

示例 3:

+

+@Test
+void testWithJunit() {
+  try {
+    ...
+    assertEquals(1, 2); // 断言被无提示忽略
+  } catch (AssertionError e) {}
+}
+
+ +

2020.3 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MatchToPartialFunction.html b/original-plugin-raw/zh/inspectionDescriptions/MatchToPartialFunction.html new file mode 100644 index 000000000..eac8c6112 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MatchToPartialFunction.html @@ -0,0 +1,20 @@ + + +

报告可以转换为模式匹配匿名函数的 match 语句。

+

示例:

+

+  iterable.map(value => value match {
+      case Some(value) => whenValue(value)
+      case None => whenNothing()
+  })
+
+

在应用快速修复后:

+

+  iterable.map {
+      case Some(value) => whenValue(value)
+      case None => whenNothing()
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MathRandomCastToInt.html b/original-plugin-raw/zh/inspectionDescriptions/MathRandomCastToInt.html new file mode 100644 index 000000000..25cd6da85 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MathRandomCastToInt.html @@ -0,0 +1,14 @@ + + +报告对立即转换为 intMath.random() 的调用。 +

0.0(包括)和 1.0(不包括)之间的 double 转换为 int 将始终舍入为零。 在将该值转换为 int 前,应先将其乘以某个因子,以获取介于零(包括)和乘法因子(不包括)之间的值。 + 另一种可能的解决办法是使用 java.util.RandomnextInt() 方法。

+

示例:

+
  int r = (int)Math.random() * 10;
+
+

在应用快速修复后:

+
  int r = (int)(Math.random() * 10);
+
+ + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/MavenCoroutinesDeprecation.html b/original-plugin-raw/zh/inspectionDescriptions/MavenCoroutinesDeprecation.html new file mode 100644 index 000000000..24c3d3c60 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MavenCoroutinesDeprecation.html @@ -0,0 +1,5 @@ + + +报告为了与 Kotlin 1.3 及更高版本兼容而应更新的 Maven 中的 kotlinx.coroutines 库依赖项。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MavenDuplicateDependenciesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MavenDuplicateDependenciesInspection.html new file mode 100644 index 000000000..78017bbf4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MavenDuplicateDependenciesInspection.html @@ -0,0 +1,5 @@ + + +

报告重复的依赖项

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MavenDuplicatePluginInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MavenDuplicatePluginInspection.html new file mode 100644 index 000000000..db766b090 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MavenDuplicatePluginInspection.html @@ -0,0 +1,5 @@ + + +

报告 pom.xml 中插件声明的重复

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MavenModelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MavenModelInspection.html new file mode 100644 index 000000000..25df1f647 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MavenModelInspection.html @@ -0,0 +1,5 @@ + + +

报告 Maven 模型中的解析问题

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MavenParentMissedVersionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MavenParentMissedVersionInspection.html new file mode 100644 index 000000000..6d15ffeaf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MavenParentMissedVersionInspection.html @@ -0,0 +1,5 @@ + + +

报告不支持使用者 POM 功能的版本缺少父版本元素

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MavenPropertyInParent.html b/original-plugin-raw/zh/inspectionDescriptions/MavenPropertyInParent.html new file mode 100644 index 000000000..1a90302e6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MavenPropertyInParent.html @@ -0,0 +1,5 @@ + + +

报告使用父模块中定义的属性是被禁止的。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MavenRedundantGroupId.html b/original-plugin-raw/zh/inspectionDescriptions/MavenRedundantGroupId.html new file mode 100644 index 000000000..5cc6f89e3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MavenRedundantGroupId.html @@ -0,0 +1,6 @@ + + +

报告不必要的 <groupId> 定义,因为它已经在父 pom.xml 中定义

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MayBeConstant.html b/original-plugin-raw/zh/inspectionDescriptions/MayBeConstant.html new file mode 100644 index 000000000..c28bc187b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MayBeConstant.html @@ -0,0 +1,17 @@ + + +报告为了获得更好的性能和 Java 互操作性而可能声明为 const 的对象中的顶级 val 属性。 +

示例:

+

+  object A {
+      val foo = 1
+  }
+
+

在应用快速修复后:

+

+  object A {
+      const val foo = 1
+  }
+
+ + diff --git a/original-plugin-raw/zh/inspectionDescriptions/MeaninglessRecordAnnotationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MeaninglessRecordAnnotationInspection.html new file mode 100644 index 000000000..4d25199ec --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MeaninglessRecordAnnotationInspection.html @@ -0,0 +1,23 @@ + + +报告记录组件上使用但并没有效果的注解。 +

这可能发生在以下两种情况下:

+
    +
  • 报告的注解具有 METHOD 目标,但显式定义了相应的访问器。
  • +
  • 报告的注解具有 PARAMETER 目标,但显式定义了规范构造函数。
  • +
+

示例:

+

+@Target(ElementType.METHOD)
+@interface A { }
+  
+// 该注解根本不会出现在字节码中,
+// 因为它应当传播到访问器,但显式定义了访问器
+record R(@A int x) {
+  public int x() { return x; }
+}
+
+ +

2021.1 最新变化

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MemberVisibility.html b/original-plugin-raw/zh/inspectionDescriptions/MemberVisibility.html new file mode 100644 index 000000000..c25b61f4d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MemberVisibility.html @@ -0,0 +1,5 @@ + + +报告由于 public/private/protected 限制而无法访问的符号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MemberVisibilityCanBePrivate.html b/original-plugin-raw/zh/inspectionDescriptions/MemberVisibilityCanBePrivate.html new file mode 100644 index 000000000..ebe3644f4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MemberVisibilityCanBePrivate.html @@ -0,0 +1,17 @@ + + +报告可以设为 private 以遵循封装原则的声明。 +

示例:

+

+class Service(val url: String) {
+    fun connect(): URLConnection = URL(url).openConnection()
+}
+
+

应用快速修复后(考虑到 Service 类之外没有使用 url 的情况):

+

+class Service(private val url: String) {
+    fun connect(): URLConnection = URL(url).openConnection()
+}
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MessDetectorValidationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MessDetectorValidationInspection.html new file mode 100644 index 000000000..a999b4e34 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MessDetectorValidationInspection.html @@ -0,0 +1,15 @@ + + +报告由 PHP Mess Detector 检测到的编码风格问题。 + +

+ 该项检查要求正确安装 PHP Mess Detector,并在 IDE中的 设置/偏好设置 | PHP | 质量工具 | Mess Detector 下正确设置 。 +

+

+ 要了解有关安装 PHP Mess Detector 的更多信息,请参见 PHP Mess Detector installation (phpmd.org)。 +

+

+ 您可以使用预定义规则集,或通过指定有效的 ruleset.xml 文件添加您自己的规则。 有关详细信息,请参阅 rules index (phpmd.org)How to create a custom rule set (phpmd.org)。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MetaAnnotationWithoutRuntimeRetention.html b/original-plugin-raw/zh/inspectionDescriptions/MetaAnnotationWithoutRuntimeRetention.html new file mode 100644 index 000000000..81f0661d0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MetaAnnotationWithoutRuntimeRetention.html @@ -0,0 +1,20 @@ + + +报告 JUnit 5 应当使用的包含 SOURCECLASS 保留策略的注解。 +此类注解在运行时不可用,很可能应当修正其保留策略,才能通过反射进行访问。 +

请注意,如果未指定保留策略,则使用默认保留策略 CLASS

+

示例:

+

+  @Testable
+  public @interface UnitTest {}
+
+

在应用快速修复后:

+

+  @Retention(RetentionPolicy.RUNTIME)
+  @Testable
+  public @interface UnitTest {}
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MeteorUnresolvedSymbol.html b/original-plugin-raw/zh/inspectionDescriptions/MeteorUnresolvedSymbol.html new file mode 100644 index 000000000..e1f9f3f8a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MeteorUnresolvedSymbol.html @@ -0,0 +1,5 @@ + + +在 Spacebars 帮助程序或模板中报告未解析的引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MethodCallInLoopCondition.html b/original-plugin-raw/zh/inspectionDescriptions/MethodCallInLoopCondition.html new file mode 100644 index 000000000..2e0617e19 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MethodCallInLoopCondition.html @@ -0,0 +1,29 @@ + + +报告循环语句条件部分中的方法调用。 在资源高度受限的环境中,此类调用可能会对性能产生不利影响。 +

+ 不加考虑地应用此检查的结果可能会对代码清晰度和设计产生负面影响。 + 此检查适用于 Java ME 和其他资源高度受限的环境。 +

+

示例:

+

+  String s = "example";
+  for (int i = 0; i < s.length(); i++) {
+    System.out.println(s.charAt(i));
+  }
+
+

在应用快速修复后:

+

+  String s = "example";
+  int length = s.length();
+  for (int i = 0; i < length; i++) {
+    System.out.println(s.charAt(i));
+  }
+
+ +

+ 使用该选项可以忽略对常见 Java 迭代方法(例如 Iterator.hasNext())和具有副作用的已知方法(例如 Atomic*.compareAndSet)的调用。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MethodCanBeVariableArityMethod.html b/original-plugin-raw/zh/inspectionDescriptions/MethodCanBeVariableArityMethod.html new file mode 100644 index 000000000..7e5e0dbf0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MethodCanBeVariableArityMethod.html @@ -0,0 +1,17 @@ + + +报告可以转换为可变 arity 方法的方法。 +

示例:

+

+  void process(String name, Object[] objects);
+
+

在应用快速修复后:

+

+  void process(String name, Object... objects);
+
+ +

+ 仅当项目或模块的语言级别为 5 或更高时,此检查才会报告。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MethodCount.html b/original-plugin-raw/zh/inspectionDescriptions/MethodCount.html new file mode 100644 index 000000000..6e0241344 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MethodCount.html @@ -0,0 +1,13 @@ + + +报告方法数超过指定最大值的类。 +

具有太多方法的类通常会试图“进行过多处理”。 请考虑将这种类拆分为多个较小的类。

+ +

配置检查:

+
    +
  • 使用方法计数限制字段可指定类中允许的最大方法数。
  • +
  • 使用忽略简单的 getter 和 setter 方法选项可忽略方法计数中的简单 getter 和 setter。
  • +
  • 使用忽略重写/实现 super 方法的方法可忽略重写或实现 super 类方法的方法。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MethodCoupling.html b/original-plugin-raw/zh/inspectionDescriptions/MethodCoupling.html new file mode 100644 index 000000000..b0a3df757 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MethodCoupling.html @@ -0,0 +1,14 @@ + + +报告引用过多其他类的方法。 +耦合度过高的方法可能非常脆弱,应该被拆分为较小的方法。 +

无论被引用多少次,每个被引用的类都只被计算一次。

+ +

配置检查:

+
    +
  • 使用方法耦合限制字段可指定方法允许的最大耦合度。
  • +
  • 使用包括与 Java 系统类的耦合选项可计算对 javajavax 软件包中的类的引用。
  • +
  • 使用包括与库类的耦合选项可计算对第三方库类的引用。
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MethodIsLaterInTheScope.html b/original-plugin-raw/zh/inspectionDescriptions/MethodIsLaterInTheScope.html new file mode 100644 index 000000000..0543d1fe0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MethodIsLaterInTheScope.html @@ -0,0 +1,6 @@ + + + 报告在声明之前使用的方法。
+ 目的是确保与要求方法先声明再使用的编译器兼容。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MethodMayBeStatic.html b/original-plugin-raw/zh/inspectionDescriptions/MethodMayBeStatic.html new file mode 100644 index 000000000..12728e0e1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MethodMayBeStatic.html @@ -0,0 +1,28 @@ + + +报告可以安全设置为 static 的方法。 +尽可能将方法设置为 static 可减少内存消耗并提高代码质量。 +

如果满足以下条件,则方法可以为 static

+
    +
  • + 不是 synchronizednativeabstract, +
  • +
  • + 不引用包含类中的任何非 static 方法和非 static 字段, +
  • +
  • + 不是重写,也不会在子类中被重写。 +
  • +
+ +

使用以下选项配置检查:

+
    +
  • 是否只报告 privatefinal 方法,从而提高此检查的性能。
  • +
  • 是否忽略空方法。
  • +
  • 使用 Java 8 或更高版本时是否忽略接口中的默认方法。
  • +
  • + 是否让该快速修复在调用被设为 static 的方法时使用类引用替换实例限定符,即调用 myClass.m() 将被替换为 MyClass.m()。 +
  • +
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MethodMayBeSynchronized.html b/original-plugin-raw/zh/inspectionDescriptions/MethodMayBeSynchronized.html new file mode 100644 index 000000000..fb586f5d3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MethodMayBeSynchronized.html @@ -0,0 +1,25 @@ + + +报告其主体只包含一条 synchronized 语句的方法。 +对于实例方法,此 synchronized 语句的锁定表达式必须等于 this;对于 static 方法,必须等于 [ClassName].class。 +

+ 为改善此类方法的可读性,可以移除 synchronized 包装器,并将方法标记为 synchronized。 +

+

示例:

+

+  public int generateInt(int x) {
+    synchronized (this) {
+      return 1;
+    }
+  }
+
+

在应用快速修复后:

+

+  public synchronized int generateInt(int x) {
+    return 1;
+  }
+
+ + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MethodNameSameAsClassName.html b/original-plugin-raw/zh/inspectionDescriptions/MethodNameSameAsClassName.html new file mode 100644 index 000000000..c7276e075 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MethodNameSameAsClassName.html @@ -0,0 +1,31 @@ + + +报告与其类同名的方法。 +虽然 Java 语言允许此类命名,但按照约定,它被保留用于定义构造函数。 +将它用于方法可能是一种错误或不好的做法。 +

示例:

+

+  class MyClass {
+    int val;
+
+    // 方法 MyClass 的名称与其包含类相同。
+    // 可能是错误添加了 'void'。
+    void MyClass(int val) {
+      this.val = val;
+    }
+  }
+
+

在适当的情况下,可以通过快速修复将方法转换为构造函数:

+

+  class MyClass {
+    int val;
+
+    MyClass(int val) {
+      this.val = val;
+    }
+  }
+
+

可以通过另一种快速修复重命名该方法。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MethodNameSameAsParentName.html b/original-plugin-raw/zh/inspectionDescriptions/MethodNameSameAsParentName.html new file mode 100644 index 000000000..d12dc094e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MethodNameSameAsParentName.html @@ -0,0 +1,19 @@ + + +报告与此方法的类的超类同名的方法,因为此类方法名称可能令人困惑。 +

此检查不会检查层次结构深处的接口或超类。

+

示例: +


+  class Parent {}
+  class Child extends Parent {
+     public Parent Parent() {
+       return null;
+     }
+  }
+
+

只能在编辑器中使用重命名此类方法的快速修复。

+ +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MethodOnlyUsedFromInnerClass.html b/original-plugin-raw/zh/inspectionDescriptions/MethodOnlyUsedFromInnerClass.html new file mode 100644 index 000000000..38c3d9cc2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MethodOnlyUsedFromInnerClass.html @@ -0,0 +1,34 @@ + + +报告仅从包含该方法的类的内部类调用的 private 方法。 此类方法可以安全地移到该内部类中。 +

示例:

+

+public class Outer {
+  public static void main(String[] args) {
+    new Inner().run(args[0]);
+  }
+
+  static class Inner {
+    void run(String arg) {
+      // 方法 isEmpty() 仅从内部类使用
+      // 考虑将其移到内部类
+      if (!isEmpty(arg)) {
+        System.out.println("Argument is supplied");
+      }
+    }
+  }
+
+  private static boolean isEmpty(String s) {
+    return s != null && s.trim().isEmpty();
+  }
+}
+
+ +

+使用下面的第一个复选框可忽略从匿名类或本地类调用的 private 方法。 +

+使用第三个复选框可仅报告 static 方法。 +

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MethodOverloadsParentMethod.html b/original-plugin-raw/zh/inspectionDescriptions/MethodOverloadsParentMethod.html new file mode 100644 index 000000000..66b79bf97 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MethodOverloadsParentMethod.html @@ -0,0 +1,23 @@ + + +报告形参名称和数量与超类中的方法相同,但其中至少一个形参为不同的不兼容类型的实例方法。 +

+ 在本例中,子类中的方法将重载而不是重写超类中的方法。 如果不是有意为之,可能会导致潜在错误。 +

+

示例:

+

+  public class Foo {
+    void foo(int x) {}
+  }
+
+  public class Bar extends Foo {
+    void foo(Number x) {} // 在重写可能是有意为之的情况下,
+                          // 方法 'foo()' 重载超类的兼容方法
+  }
+
+ +

+ 使用此选项可选择该检查是否也应报告形参类型不兼容的情况。 +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MethodOverridesInaccessibleMethodOfSuper.html b/original-plugin-raw/zh/inspectionDescriptions/MethodOverridesInaccessibleMethodOfSuper.html new file mode 100644 index 000000000..295fbc121 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MethodOverridesInaccessibleMethodOfSuper.html @@ -0,0 +1,25 @@ + + +报告与超类的不可访问方法包含相同签名的方法, +例如,另一个软件包中的超类的 private 方法或 package-private 方法。 +

+ 此类方法名称可能令人困惑,因为子类中的方法看似重写,实则隐藏了超类不可访问的方法。 + 此外,如果此方法在超类中的可见性日后发生变化,可能会静默地更改子类的语义,否则会导致编译错误。 +

+

建议通过快速修复重命名该方法。

+

示例:

+

+  public class Super {
+    private void test() {
+    }
+  }
+
+  public class Sub extends Super {
+    void test() { // 将 'Super.test()' 设为 public 将导致编译错误
+                  // 将 'Super.test()' 设为 package-private 会使 'Sub.test()' 变成重写
+    }
+  }
+ +

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MethodOverridesStaticMethod.html b/original-plugin-raw/zh/inspectionDescriptions/MethodOverridesStaticMethod.html new file mode 100644 index 000000000..1912c97c9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MethodOverridesStaticMethod.html @@ -0,0 +1,17 @@ + + +报告签名与超类的 static 方法相同的 static 方法。 +此类方法可能看似重写,但实则它对超类隐藏了该方法,因为 Java 中的 static 方法不能被重写。 +

示例:

+

+  class Parent {
+    static void method(){}
+  }
+
+  class Example extends Parent {
+    static void method(){} //警告
+  }
+
+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MethodParameterCountMismatch.html b/original-plugin-raw/zh/inspectionDescriptions/MethodParameterCountMismatch.html new file mode 100644 index 000000000..db184b778 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MethodParameterCountMismatch.html @@ -0,0 +1,5 @@ + + +报告对具有错误实参数量的方法的调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MethodRefCanBeReplacedWithLambda.html b/original-plugin-raw/zh/inspectionDescriptions/MethodRefCanBeReplacedWithLambda.html new file mode 100644 index 000000000..c1064ef60 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MethodRefCanBeReplacedWithLambda.html @@ -0,0 +1,16 @@ + + +报告方法引用,例如 MyClass::myMethodmyObject::myMethod,并建议将它们替换为等效的 lambda 表达式。 +

Lambda 表达式比方法引用更容易修改。

+

示例:

+

+  System.out::println
+
+

在应用快速修复后:

+

+  s -> System.out.println(s)
+
+ +

默认情况下,此检查不会高亮显示编辑器中的代码,而仅提供快速修复。

+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MethodReturnAlwaysConstant.html b/original-plugin-raw/zh/inspectionDescriptions/MethodReturnAlwaysConstant.html new file mode 100644 index 000000000..7554311a2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MethodReturnAlwaysConstant.html @@ -0,0 +1,7 @@ + + +报告仅返回常量(继承者不同,常量也可能不同)的方法。 +

仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

+ + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MethodWithMultipleLoops.html b/original-plugin-raw/zh/inspectionDescriptions/MethodWithMultipleLoops.html new file mode 100644 index 000000000..147a88117 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MethodWithMultipleLoops.html @@ -0,0 +1,30 @@ + + +报告包含多个循环语句的方法。 +

示例:

+

以下方法将被报告,因为它包含两个循环:

+

+  void methodWithTwoLoops(int n1, int n2) {
+    for (int i = 0; i < n1; i++) {
+      System.out.println(i);
+    }
+
+    int j = 0;
+    while (j < n2) {
+      System.out.println(j);
+      j++;
+    }
+  }
+
+

以下方法也会被报告,因为它包含嵌套循环:

+

+  void methodWithNestedLoop(int n1, int n2) {
+    for (int i = 0; i < n1; i++) {
+      for (int j = 0; j < n2; j++) {
+        System.out.println(i + j);
+      }
+    }
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MicronautDataMethodInconsistency.html b/original-plugin-raw/zh/inspectionDescriptions/MicronautDataMethodInconsistency.html new file mode 100644 index 000000000..0eb8d82f0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MicronautDataMethodInconsistency.html @@ -0,0 +1,5 @@ + + +报告与查询模式条件不匹配的 Micronaut Data 仓库方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MicronautDataRepositoryMethodParameters.html b/original-plugin-raw/zh/inspectionDescriptions/MicronautDataRepositoryMethodParameters.html new file mode 100644 index 000000000..b3f0b866c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MicronautDataRepositoryMethodParameters.html @@ -0,0 +1,23 @@ + + +

报告不正确的 Micronaut Data 仓库方法形参类型。

+ +

示例:

+

+  public class Person {
+    private int id;
+    private String lastname;
+    private Address address;
+  }
+
+  public class Address {
+    private int zipCode;
+  }
+
+  public interface CustomerRepository extends CrudRepository<Person, Integer> {
+    List<Person> findByAddress(String lastname);  // 应为 'Address' 类型
+    List<Person> findByAddressZipCode(String str);   // 应为 'int' 类型
+  }
+
+ + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MicronautDataRepositoryMethodReturnType.html b/original-plugin-raw/zh/inspectionDescriptions/MicronautDataRepositoryMethodReturnType.html new file mode 100644 index 000000000..ea9c6c1da --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MicronautDataRepositoryMethodReturnType.html @@ -0,0 +1,19 @@ + + +

报告不正确的 Micronaut Data 仓库方法返回类型

+

支持以下返回类型:

+ +
  • void
  • +
  • 基元类型
  • +
  • 简单类型
  • +
  • java.util.List 或任何常见的 Iterable 类型
  • +
  • java.util.stream.Stream
  • +
  • java.util.Optional
  • +
  • io.micronaut.data.model.Page
  • +
  • io.micronaut.data.model.Slice
  • +
  • java.util.concurrent.Futurejava.util.concurrent.CompletableFuture
  • +
  • 与 Reactive Streams 兼容的类型,例如 PublisherSingleMaybeFluxMono 等 +
  • +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MigrateAssertToMatcherAssert.html b/original-plugin-raw/zh/inspectionDescriptions/MigrateAssertToMatcherAssert.html new file mode 100644 index 000000000..0e69e0d1d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MigrateAssertToMatcherAssert.html @@ -0,0 +1,34 @@ + + +报告对可以迁移到 Hamcrest 声明式样式 Assert.assertThat() 调用的 Assert.assertEquals()Assert.assertTrue() 等方法的调用。 +

    示例:

    +
    
    +  public class SubstantialTest {
    +    @Test
    +    public void testContents(Collection<String> c, String s) {
    +      Assert.assertTrue(c.contains(s));
    +      Assert.assertEquals(c, s);
    +      Assert.assertNotNull(c);
    +      Assert.assertNull(c);
    +      Assert.assertFalse(c.contains(s));
    +    }
    +  }
    +
    +

    为执行迁移提供了快速修复:

    +
    
    +  public class SubstantialTest {
    +    @Test
    +    public void testContents(Collection<String> c, String s) {
    +      assertThat(c, hasItem(o));
    +      assertThat(o, is(c));
    +      assertThat(c, notNullValue());
    +      assertThat(c, nullValue());
    +      assertThat(c, not(hasItem(o)));
    +    }
    +  }
    +
    + +

    此检查要求类路径上有可用的 Hamcrest 库。 +

    使用静态导入匹配程序的方法选项,可指定是否希望该快速修复静态导入 Hamcrest 匹配程序方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MigrateDiagnosticSuppression.html b/original-plugin-raw/zh/inspectionDescriptions/MigrateDiagnosticSuppression.html new file mode 100644 index 000000000..01d80c7f3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MigrateDiagnosticSuppression.html @@ -0,0 +1,22 @@ + + +报告带有旧诊断名称的禁止,例如 @Suppress("HEADER_WITHOUT_IMPLEMENTATION")。 +

    + 来自 Kotlin 1.2 及更早版本的一些诊断现在已经过时,从而使这样的禁止变得冗余。 +

    +

    示例:

    +
    
    +@Suppress("HEADER_DECLARATION_WITH_BODY")
    +expect fun connection() {
    +  // ...
    +}
    +
    +

    在应用快速修复后:

    +
    
    +@Suppress("EXPECTED_DECLARATION_WITH_BODY")
    +expect fun connection() {
    +  // ...
    +}
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MimeType.html b/original-plugin-raw/zh/inspectionDescriptions/MimeType.html new file mode 100644 index 000000000..05ef98507 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MimeType.html @@ -0,0 +1,7 @@ + + + +允许您控制 MIME 类型名称的有效性。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MinMaxValuesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MinMaxValuesInspection.html new file mode 100644 index 000000000..9d8140820 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MinMaxValuesInspection.html @@ -0,0 +1,14 @@ + + +

    报告 Bean 验证约束注解中 maxmin 值的不正确值。

    + +

    示例:

    +
    
    +public class Car {
    +  @NotNull
    +  @Size(min = 14, max = 2) // 'max' 值小于 'min' 值
    +  private String licensePlate;
    +}
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MismatchedArrayReadWrite.html b/original-plugin-raw/zh/inspectionDescriptions/MismatchedArrayReadWrite.html new file mode 100644 index 000000000..08f037bb5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MismatchedArrayReadWrite.html @@ -0,0 +1,13 @@ + + +报告其内容已读取但未更新或已更新但未读取的数组。 此类不一致读写毫无意义,可能表明死码、代码不完整或错误。 + +

    示例:

    +
    
    +  final int[] bar = new int[3];
    +  bar[2] = 3;
    +
    +

    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MismatchedCollectionQueryUpdate.html b/original-plugin-raw/zh/inspectionDescriptions/MismatchedCollectionQueryUpdate.html new file mode 100644 index 000000000..d7b4ef602 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MismatchedCollectionQueryUpdate.html @@ -0,0 +1,29 @@ + + +报告其内容已查询但未更新或已更新但未查询的集合。 + +

    + 此类不一致查询和更新毫无意义,可能表明有死码或拼写错误。 +

    +

    + 使用检查设置可以指定与更新/查询方法相对应的名称模式。 + 返回元素的查询方法会被自动检测,并且只需指定将数据写入输出形参的查询方法(例如 OutputStream)。 +

    +

    示例:

    +

    假设您有一个包含方法 store() 的自定义 FixedStack 类: +

    
    +  public class FixedStack<T> extends Collection<T> {
    +    public T store(T t) {
    +      // 实现
    +    }
    +  }
    +
    +

    您可以将 store 添加到更新方法表中,以报告不匹配的查询,例如: +

    
    +  void test(int i) {
    +    FixedStack<Integer> stack = new FixedStack<>();
    +    stack.store(i);
    +  }
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MismatchedStringBuilderQueryUpdate.html b/original-plugin-raw/zh/inspectionDescriptions/MismatchedStringBuilderQueryUpdate.html new file mode 100644 index 000000000..9b3b712a6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MismatchedStringBuilderQueryUpdate.html @@ -0,0 +1,15 @@ + + +报告其内容已读取但未写入,或已写入但未读取的 StringBuilderStringBuffer 对象。 +

    此类不一致读写毫无意义,可能表明死码、代码不完整或错误。

    +

    示例:

    +
    
    +  public void m1() {
    +    StringBuilder sb = new StringBuilder();
    +    sb.append("a");
    +  }
    +
    + +

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MismatchedStringCase.html b/original-plugin-raw/zh/inspectionDescriptions/MismatchedStringCase.html new file mode 100644 index 000000000..44529ee63 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MismatchedStringCase.html @@ -0,0 +1,12 @@ + + +报告因为在仅大写的字符串中搜索小写字符或在仅小写的字符串中搜索大写字符而始终返回相同值(-1false)的 String 方法调用。 +

    报告的方法包括 equalsstartsWithendsWithcontainsindexOflastIndexOf

    +

    示例:

    +
    +  if (columnName.toLowerCase().equals("ID")) {...}
    +
    + +

    2019.3 最新变化

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MisorderedAssertEqualsArguments.html b/original-plugin-raw/zh/inspectionDescriptions/MisorderedAssertEqualsArguments.html new file mode 100644 index 000000000..48f9d785d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MisorderedAssertEqualsArguments.html @@ -0,0 +1,22 @@ + + +报告对预期实参和实际实参的顺序错误的 assertEquals() 的调用。 +

    + 对于 JUnit 3、4 和 5,正确的顺序是(expected, actual)。 + 对于 TestNG,正确的顺序是(actual, expected)。 +

    +

    + 对于通过的断言,此类调用没有问题,但可能会在失败时给出令人困惑的错误报告。 + 使用该快速修复可以翻转实参顺序。 +

    +

    示例 (JUnit):

    +
    
    +  assertEquals(actual, expected)
    +
    +

    在应用快速修复后:

    +
    
    +  assertEquals(expected, actual)
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Misra.html b/original-plugin-raw/zh/inspectionDescriptions/Misra.html new file mode 100644 index 000000000..d06fba323 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Misra.html @@ -0,0 +1,8 @@ + + +报告 MISRA C 2012 和 MISRA C++ 2008 准则定义的各种问题。 +

    当前支持的检查列表位于此处

    + +

    2020.3 最新变化

    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/MissingAccessibleContext.html b/original-plugin-raw/zh/inspectionDescriptions/MissingAccessibleContext.html new file mode 100644 index 000000000..714d62a51 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MissingAccessibleContext.html @@ -0,0 +1,20 @@ + + +报告不提供无障碍功能上下文的 Swing 组件。 +

    + 此信息由屏幕阅读器使用。 如果不提供,则视障用户将无法访问该组件。 +

    +

    示例:

    +
      ListCellRenderer<String> renderer = (list, val, index, sel, cell) -> {
    +    JPanel panel = new JPanel();
    +    return panel;
    +  };
    +
    +

    + 要修正此问题,您应该在返回的 JPanel 上调用 setAccessibleName() 或重写其 getAccessibleContext() 方法。 +

    +

    + 返回的文本应反映组件的用途。 例如,在 ListCellRenderer 的情况下,这将是菜单项的文本。 +

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MissingAspectjAutoproxyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MissingAspectjAutoproxyInspection.html new file mode 100644 index 000000000..684d7036b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MissingAspectjAutoproxyInspection.html @@ -0,0 +1,18 @@ + + +

    如果 XML 配置中没有 <aop:aspectj-autoproxy/> 元素,则报告早于 2.5 的 Spring 版本中的 @Aspect 注解。

    + +

    示例:

    +
    
    +@Aspect // 未启用 '@AspectJ 支持
    +class MyAspect {
    +   ...
    +}
    +
    +<beans>
    +   <!-- <aop:aspectj-autoproxy/> -->
    +</beans>
    +
    + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/MissingDeprecatedAnnotation.html b/original-plugin-raw/zh/inspectionDescriptions/MissingDeprecatedAnnotation.html new file mode 100644 index 000000000..72b4c2239 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MissingDeprecatedAnnotation.html @@ -0,0 +1,25 @@ + + +报告具有 @deprecated Javadoc 标记但没有 @java.lang.Deprecated 注解的模块声明、类、字段或方法。 +

    示例:

    +
    
    +  /**
    +   * @deprecated use {@code example()} instead
    +   */
    +  void sample(){ }
    +
    +

    在应用快速修复后:

    +
    
    +  /**
    +   * @deprecated use {@code example()} instead
    +   */
    +  @Deprecated
    +  void sample(){ }
    +
    + +

    此检查仅在项目或模块的语言级别为 5 或更高时有效。

    +

    +使用下面的复选框,对使用 @Deprecated 注解但在 @deprecated Javadoc 标记中没有解释的符号发出警告。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MissingDeprecatedAnnotationOnScheduledForRemovalApi.html b/original-plugin-raw/zh/inspectionDescriptions/MissingDeprecatedAnnotationOnScheduledForRemovalApi.html new file mode 100644 index 000000000..9995b89a8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MissingDeprecatedAnnotationOnScheduledForRemovalApi.html @@ -0,0 +1,16 @@ + + +报告使用 @ApiStatus.ScheduledForRemoval(没有 @Deprecated)标记的声明。 +

    示例:

    +
    +  @ApiStatus.ScheduledForRemoval(inVersion = "2017.3")
    +  public void myLegacyMethod() { }
    +
    +

    应用快速修复后,结果如下所示:

    +
    +  @Deprecated
    +  @ApiStatus.ScheduledForRemoval(inVersion = "2017.3")
    +  public void myLegacyMethod() { }
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MissingFinalNewline.html b/original-plugin-raw/zh/inspectionDescriptions/MissingFinalNewline.html new file mode 100644 index 000000000..f7c1d93ab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MissingFinalNewline.html @@ -0,0 +1,5 @@ + + +如果清单文件未按照 JAR 文件规范的要求以最后的换行符结尾,则报告。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MissingMnemonic.html b/original-plugin-raw/zh/inspectionDescriptions/MissingMnemonic.html new file mode 100644 index 000000000..f22af949d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MissingMnemonic.html @@ -0,0 +1,5 @@ + + +报告具有 text 属性的可聚焦组件或具有分配的 labelFor 属性但没有助记符的标签。 该快速修复会为此类组件分配独一无二的助记符。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/MissingOverrideAnnotation.html b/original-plugin-raw/zh/inspectionDescriptions/MissingOverrideAnnotation.html new file mode 100644 index 000000000..a605ec763 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MissingOverrideAnnotation.html @@ -0,0 +1,21 @@ + + + 报告重写没有 @java.lang.Override 注解的超类方法的方法。 +

    + 由于表明了意图,注解方法提高了代码可读性。 此外,在重写方法的签名与超类方法不匹配时,编译器会报错。 +

    + +

    配置检查:

    +
      +
    • + 使用忽略 'equals()'、'hashCode()' 和 'toString()' 选项可以忽略这些 java.lang.Object 方法:equals()hashCode() 和 +toString()。 由于 @Override 注解而使得这些方法消失且代码不再编译的风险相对较小。 +
    • +
    • + 使用忽略匿名类中的方法选项可以忽略匿名类中的方法。 +
    • +
    +

    此检查适用于项目或模块的语言级别为 5 或更高级别的情况。

    + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/MissingPackageInfo.html b/original-plugin-raw/zh/inspectionDescriptions/MissingPackageInfo.html new file mode 100644 index 000000000..09731b095 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MissingPackageInfo.html @@ -0,0 +1,8 @@ + + +报告包含类但不包含 package-info.javapackage.html 文件并因此缺少软件包文档的软件包。 +

    该快速修复会创建一个初始的 package-info.java 文件。

    + +

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MissingRecentApi.html b/original-plugin-raw/zh/inspectionDescriptions/MissingRecentApi.html new file mode 100644 index 000000000..76a3598ac --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MissingRecentApi.html @@ -0,0 +1,14 @@ + + +报告在比 <idea-version> @since-build (plugin.xml) 中指定的版本更新的版本中引入的 IntelliJ Platform API 的用法。 +

    + 使用此类 API 可能导致插件与旧的 IDE 版本不兼容。 +

    +

    + 为了避免在旧 IDE 版本中运行插件时可能出现的问题,请相应地提高 since-build,或移除此 API 的用法。 +

    + +

    配置检查:

    +如果 <idea-version> @since/until-build 特性在 plugin.xml 中未指定,请显式设置 Since/Until。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MissingReturn.html b/original-plugin-raw/zh/inspectionDescriptions/MissingReturn.html new file mode 100644 index 000000000..c7243f508 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MissingReturn.html @@ -0,0 +1,6 @@ + + +报告可能在不执行 return 语句的情况下退出的非 void 方法、函数和块。 +控制流图中的所有路径都必须以 return 语句结尾。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MissingSerialAnnotation.html b/original-plugin-raw/zh/inspectionDescriptions/MissingSerialAnnotation.html new file mode 100644 index 000000000..891d229db --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MissingSerialAnnotation.html @@ -0,0 +1,46 @@ + + +报告 SerializableExternalizable 类中适合使用 java.io.Serial 注解进行注解的方法和字段。 该快速修复会添加注解。 +

    示例:

    +
    
    +class Main implements Serializable {
    +  private static final long serialVersionUID = 7874493593505141603L;
    +
    +  private void writeObject(ObjectOutputStream out) throws IOException {
    +  }
    +}
    +
    +

    在应用快速修复后:

    +
    
    +  class Main implements Serializable {
    +    @Serial
    +    private static final long serialVersionUID = 7874493593505141603L;
    +
    +    @Serial
    +    private void writeObject(ObjectOutputStream out) throws IOException {
    +    }
    +}
    +
    +

    示例:

    +
    
    +  class Main implements Externalizable {
    +    protected Object readResolve() throws ObjectStreamException {
    +      return "SomeObject";
    +    }
    +  }
    +
    +

    在应用快速修复后:

    +
    
    +  class Main implements Externalizable {
    +    @Serial
    +    protected Object readResolve() throws ObjectStreamException {
    +        return "SomeObject";
    +    }
    +  }
    +
    + +

    有关所有可能情况的更多信息,请参阅 java.io.Serial 的文档。

    +

    此检查适用于项目或模块的语言级别为 14 或更高级别的情况。

    +

    2020.3 最新变化

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MissingSinceTagDocInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MissingSinceTagDocInspection.html new file mode 100644 index 000000000..bed9776b8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MissingSinceTagDocInspection.html @@ -0,0 +1,8 @@ + + +报告不包含 Joomla 要求的 @since 标记的类、类属性和类方法 DocBlock! DocBlock 标准。 + +

    参阅 Joomla! 编码标准 (developer.joomla.org) 了解详细信息。 +

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MissingSwitchCase.html b/original-plugin-raw/zh/inspectionDescriptions/MissingSwitchCase.html new file mode 100644 index 000000000..a8d0a4717 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MissingSwitchCase.html @@ -0,0 +1,6 @@ + + +将不包括所有枚举类型元素的 switch 语句报告为 case。 +它还会报告不包括 default: 分支的整数类型上的 switch 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MissingYardParamTag.html b/original-plugin-raw/zh/inspectionDescriptions/MissingYardParamTag.html new file mode 100644 index 000000000..0d4aeb112 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MissingYardParamTag.html @@ -0,0 +1,6 @@ + + +报告不带 @param 标记的方法形参。 可以通过快速修复来添加缺失的 @param 标记。 +

    使用生成标记格式字段指定所添加的 @param 标记的格式。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MissingYardReturnTag.html b/original-plugin-raw/zh/inspectionDescriptions/MissingYardReturnTag.html new file mode 100644 index 000000000..2caf28822 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MissingYardReturnTag.html @@ -0,0 +1,5 @@ + + +报告未使用 @return 标记注解的方法。 可以通过快速修复来添加缺失的 @return 标记。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MissortedModifiers.html b/original-plugin-raw/zh/inspectionDescriptions/MissortedModifiers.html new file mode 100644 index 000000000..a4ba14747 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MissortedModifiers.html @@ -0,0 +1,35 @@ + + +报告修饰符不符合规范首选顺序(如 Java 语言规范中所述)的声明。 +

    示例:

    +
    
    +  class Foo {
    +    native public final void foo();
    +  }
    +
    +

    在应用快速修复后:

    +
    
    +  class Foo {
    +    public final native void foo();
    +  }
    +
    + +

    使用检查设置可以:

    +
      +
    • +

      + 切换位置错误的注解的报告: + (带有 ElementType.TYPE_USE紧接在类型之前和修饰符关键字之后的注解,或其他在修饰符关键字之前的注解)。 + 禁用此选项后,任何注解都可以放置在修饰符关键字之前或之后。 + 将始终报告在修饰符关键字之间带有注解的修饰符列表。 +

      +
    • +
    • +

      + 指定 ElementType.TYPE_USE 注解是否应直接置于类型之前,即使该注解指定了其他目标。 +

      +
    • +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MisspelledEquals.html b/original-plugin-raw/zh/inspectionDescriptions/MisspelledEquals.html new file mode 100644 index 000000000..81beb0501 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MisspelledEquals.html @@ -0,0 +1,24 @@ + + +报告带有单个形参的 equal() 的声明。 +通常,这是拼写错误,equals() 实际上是有意的。 +

    建议通过快速修复将方法重命名为 equals

    +

    示例:

    +
    
    +  class Main {
    +    public boolean equal(Object obj) {
    +      return true;
    +    }
    +  }
    +
    +

    在应用快速修复后:

    +
    
    +  class Main {
    +    public boolean equals(Object obj) {
    +      return true;
    +    }
    +  }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MisspelledHeader.html b/original-plugin-raw/zh/inspectionDescriptions/MisspelledHeader.html new file mode 100644 index 000000000..5006dc7e3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MisspelledHeader.html @@ -0,0 +1,5 @@ + + + 报告任何未知的和可能拼写错误的标头名称,并提供可能的变体。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MisspelledMethodName.html b/original-plugin-raw/zh/inspectionDescriptions/MisspelledMethodName.html new file mode 100644 index 000000000..8573cc972 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MisspelledMethodName.html @@ -0,0 +1,16 @@ + + +报告一个类的多个方法的名称仅大小写不同的情况。 此类名称可能非常令人困惑。 +

    示例: +

    
    +  public int hashcode() { // 已报告,可能应为 hashCode?
    +    return 0;
    +  }
    +
    +

    只能在编辑器中使用重命名此类方法的快速修复。

    + +

    使用忽略方法重写/实现 super 方法选项,可以忽略重写或实现超类中方法的方法。 +

    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MnCacheAnnotationParameters.html b/original-plugin-raw/zh/inspectionDescriptions/MnCacheAnnotationParameters.html new file mode 100644 index 000000000..78ca7a58b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MnCacheAnnotationParameters.html @@ -0,0 +1,18 @@ + + +

    报告 parameters 特性的值包含未定义方法形参名称的 Micronaut Cache 注解。

    +

    支持以下注解:

    +
      +
    • io.micronaut.cache.annotation.Cacheable
    • +
    • io.micronaut.cache.annotation.CachePut
    • +
    • io.micronaut.cache.annotation.CacheInvalidate
    • +
    +

    示例:

    +
    
    +  @CachePut(parameters = "myParameter") // 错误:无法解析符号 'myParameter'
    +  public String cachedMethod(String name_is_not_equal_to_myParameter) {
    +    return "...";
    +  }
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MnPropertiesConfig.html b/original-plugin-raw/zh/inspectionDescriptions/MnPropertiesConfig.html new file mode 100644 index 000000000..f2eb3cd5c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MnPropertiesConfig.html @@ -0,0 +1,5 @@ + + +

    报告 Micronaut 应用程序 .properties 配置文件中已弃用的配置键和无效值。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MnUnresolvedPathVariable.html b/original-plugin-raw/zh/inspectionDescriptions/MnUnresolvedPathVariable.html new file mode 100644 index 000000000..aea4ddd54 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MnUnresolvedPathVariable.html @@ -0,0 +1,20 @@ + + +

    报告在方法签名中声明但在 URL 路径中缺失或者在 URL 路径中声明但在方法签名中缺失的 @PathVariable 形参。 + 该快速修复会添加缺失的形参。

    +

    示例:

    +
    
    +  @Get("/path/{myVariable}/")
    +  public String handler(@PathVariable String name_is_not_equal_to_myVariable) {
    +    return "...";
    +  }
    +
    +

    应用快速修复后,结果如下所示:

    +
    
    +  @Get("/path/{myVariable}/")
    +  public String handler(@PathVariable String myVariable) {
    +    return "...";
    +  }
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MnYamlConfig.html b/original-plugin-raw/zh/inspectionDescriptions/MnYamlConfig.html new file mode 100644 index 000000000..d00cde012 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MnYamlConfig.html @@ -0,0 +1,5 @@ + + +

    报告 Micronaut 应用程序 .yaml 配置文件中已弃用的配置键和无效值。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ModuleWithTooFewClasses.html b/original-plugin-raw/zh/inspectionDescriptions/ModuleWithTooFewClasses.html new file mode 100644 index 000000000..0eae3fd3f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ModuleWithTooFewClasses.html @@ -0,0 +1,10 @@ + + +报告包含的类太少的模块。 模块过小可能表明设计过于分散。 +Java、Kotlin 和 Groovy 类均计算在内。 + +

    仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

    +

    使用最小类数字段可指定模块可能拥有的最小类数。

    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ModuleWithTooManyClasses.html b/original-plugin-raw/zh/inspectionDescriptions/ModuleWithTooManyClasses.html new file mode 100644 index 000000000..84c0aa225 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ModuleWithTooManyClasses.html @@ -0,0 +1,10 @@ + + +报告包含的类太多的模块。 模块过大可能表明缺乏设计清晰度。 +Java、Kotlin 和 Groovy 类均计算在内。 + +

    仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

    +

    使用最大类数字段可指定模块可以拥有的最大类数。

    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MongoJSDeprecationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MongoJSDeprecationInspection.html new file mode 100644 index 000000000..cb0154b7e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MongoJSDeprecationInspection.html @@ -0,0 +1,10 @@ + + +报告 MongoDB 和 JavaScript 代码中已弃用的方法的用法。 +

    快速修复用推荐的替代方法替换了已弃用的方法。

    +

    示例:

    +
    db.my_collection.insert()
    +

    在应用快速修复后:

    +
    db.my_collection.insertOne()
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MongoJSExtDeprecationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MongoJSExtDeprecationInspection.html new file mode 100644 index 000000000..a38ca9636 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MongoJSExtDeprecationInspection.html @@ -0,0 +1,14 @@ + + +报告 MongoDB 和 JavaScript 代码中已弃用的方法的用法。 +

    快速修复用推荐的替代方法替换了已弃用的方法。

    +

    示例:

    +
    
    +  db.my_collection.insert()
    +
    +

    在应用快速修复后:

    +
    
    +  db.my_collection.insertOne()
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MongoJSExtResolveInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MongoJSExtResolveInspection.html new file mode 100644 index 000000000..1d0afe60d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MongoJSExtResolveInspection.html @@ -0,0 +1,5 @@ + + +报告 MongoDB 和 JavaScript 代码中未解析的引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MongoJSExtSideEffectsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MongoJSExtSideEffectsInspection.html new file mode 100644 index 000000000..9a8259ffa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MongoJSExtSideEffectsInspection.html @@ -0,0 +1,10 @@ + + +报告在数据源处于只读模式时可能导致副作用的语句。 +

    该快速修复会关闭相应数据源的只读模式。

    +

    示例:

    +
    
    +db.my_collection.insertOne()
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MongoJSResolveInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MongoJSResolveInspection.html new file mode 100644 index 000000000..87f7e262c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MongoJSResolveInspection.html @@ -0,0 +1,13 @@ + + +报告 MongoDB 和 JavaScript 代码中未解析的引用。 +

    示例:

    +
    db
    +use foo
    +  -- a reference to a non-existing collection
    +db.non_existing_collection
    +db['non_existing_collection']
    +db['non_existing_collection'].find().hasNext()
    +

    non_existing_collection 集合在数据库中不存在,将被报告。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MongoJSSideEffectsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MongoJSSideEffectsInspection.html new file mode 100644 index 000000000..1fae1c162 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MongoJSSideEffectsInspection.html @@ -0,0 +1,11 @@ + + +报告在数据源处于只读模式时可能导致副作用的语句。 +

    有关启用只读模式的详细信息,请参阅 IDE 文档中的“为连接启用只读模式”

    +

    禁用只读模式快速修复会关闭相应数据源的只读模式。

    +

    示例:

    +
    
    +db.my_collection.insertOne()
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MoveFieldAssignmentToInitializer.html b/original-plugin-raw/zh/inspectionDescriptions/MoveFieldAssignmentToInitializer.html new file mode 100644 index 000000000..598df4770 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MoveFieldAssignmentToInitializer.html @@ -0,0 +1,25 @@ + + +建议使用字段初始值设定项替换通过赋值的字段初始化。 +

    仅当字段初始值设定项位于初始值设定项中时才会高亮显示代码,并且将其与字段声明结合可能是安全的。 + 在其他情况下,检查提供没有代码高亮显示的快速修复,因为修复可能会更改代码语义。

    +

    示例:

    +
    
    +  class MyClass {
    +    static final int intConstant;
    +    
    +    static {
    +      intConstant = 10;
    +    }
    +  }
    +
    +快速修复将赋予的值移动到字段初始值设定项,并移除类初始值设定项部分(如果可能): +
    
    +  class MyClass {
    +    static final int intConstant = 10;
    +  }
    +
    + +自从 2017.2 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MoveLambdaOutsideParentheses.html b/original-plugin-raw/zh/inspectionDescriptions/MoveLambdaOutsideParentheses.html new file mode 100644 index 000000000..cf4859e17 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MoveLambdaOutsideParentheses.html @@ -0,0 +1,21 @@ + + +报告圆括号中可以移到外部的 lambda 表达式。 +

    示例:

    +
    
    +fun square(a: Int, b: (Int) -> Int) {
    +  b(a * a)
    +}
    +
    +fun foo() {
    +  square(2, { it })
    +}
    +
    +

    在应用快速修复后:

    +
    
    +fun foo() {
    +  square(2){ it }
    +}
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MoveVariableDeclarationIntoWhen.html b/original-plugin-raw/zh/inspectionDescriptions/MoveVariableDeclarationIntoWhen.html new file mode 100644 index 000000000..c4b54d210 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MoveVariableDeclarationIntoWhen.html @@ -0,0 +1,28 @@ + + +报告可移动到 when 表达式中的变量声明。 +

    示例:

    +
    
    +fun someCalc(x: Int) = x * 42
    +
    +fun foo(x: Int): Int {
    +  val a = someCalc(x)
    +  return when (a) {
    +    1 -> a
    +    2 -> 2 * a
    +    else -> 24
    +  }
    +}
    +
    +

    在应用快速修复后:

    +
    
    +fun foo(x: Int): Int {
    +  return when (val a = someCalc(x)) {
    +    1 -> a
    +    2 -> 2 * a
    +    else -> 24
    +  }
    +}
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MsBuiltinInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MsBuiltinInspection.html new file mode 100644 index 000000000..b525db39f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MsBuiltinInspection.html @@ -0,0 +1,24 @@ + + +报告 ISNULL 函数中字符串实参的截断。 + +

    ISNULL 语法是 ISNULL(check_expression, replacement_value)。 +

    + +

    根据 docs.microsoft.com 上的 ISNULL,如果 replacement_valuecheck_expression 长,replacement_value 将被截断。 +

    + +

    示例(Microsoft SQL 服务器):

    + +
    DECLARE @name1 VARCHAR(2) = NULL;
    +DECLARE @name2 VARCHAR(10) = 'Example';
    +DECLARE @name3 VARCHAR(2) = 'Hi';
    +
    +  -- `@name2` 是 VARCHAR(10) 并且将被截断
    +SELECT ISNULL(@name1, @name2);
    +
    +  -- `@name3` 是 VARCHAR(2)(作为 `@name1`)并且不会被截断
    +SELECT ISNULL(@name1, @name3);
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MsOrderByInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MsOrderByInspection.html new file mode 100644 index 000000000..42d441092 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MsOrderByInspection.html @@ -0,0 +1,24 @@ + + +报告在视图、内联函数、派生表、子查询和通用表表达式中使用 ORDER BY 子句而不使用 TOPOFFSETFOR XML 的用法。 +

    有关 ORDER BY 用法的详细信息,请参阅 docs.microsoft.com 上的 SELECT - ORDER BY 子句 (Transact-SQL) 页面。

    +

    示例(Microsoft SQL Server):

    +
    CREATE TABLE foo (a INT NOT NULL, b  INT NOT NULL);
    +
    +SELECT *
    +FROM (SELECT a, b
    +FROM foo A
    +WHERE a < 89
    +ORDER BY b) ALIAS;
    +
    +

    在子查询中,ORDER BY 将被高亮显示为错误。 您可以将 TOP、OFFSET 或 FOR XML 添加到子查询。 + 或者,使用删除元素快速修复来删除 ORDER BY 部分。

    +

    在应用快速修复后:

    +
    SELECT *
    +FROM (SELECT a, b
    +FROM foo A
    +WHERE a < 89) ALIAS;
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MultiCatchCanBeSplit.html b/original-plugin-raw/zh/inspectionDescriptions/MultiCatchCanBeSplit.html new file mode 100644 index 000000000..798cfcd73 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MultiCatchCanBeSplit.html @@ -0,0 +1,25 @@ + + +报告多个 catch 部分并建议将它们拆分为单独的 catch 块。 +

    示例:

    +
    
    +  try {
    +    int i = getIndex();
    +  } catch (NullPointerException|IndexOutOfBoundsException e) {
    +    e.printStackTrace();
    +  }
    +
    +

    在应用快速修复后:

    +
    
    +  try {
    +    int i = getIndex();
    +  } catch (NullPointerException e) {
    +    e.printStackTrace();
    +  } catch (IndexOutOfBoundsException e) {
    +    e.printStackTrace();
    +  }
    +
    + +

    仅当项目或模块的语言级别为 7 或更高时,此检查才会报告。

    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/MultipleArgListsInAnnotation.html b/original-plugin-raw/zh/inspectionDescriptions/MultipleArgListsInAnnotation.html new file mode 100644 index 000000000..14549a229 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MultipleArgListsInAnnotation.html @@ -0,0 +1,12 @@ + + +

    报告具有多个实参列表的注解。

    + +

    示例:

    +
    
    +  @someAnnotation()()
    +  object Test
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MultipleBindingAnnotations.html b/original-plugin-raw/zh/inspectionDescriptions/MultipleBindingAnnotations.html new file mode 100644 index 000000000..8e2d0cf6f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MultipleBindingAnnotations.html @@ -0,0 +1,5 @@ + + +

    报告带有多个绑定注解的形参,这违反了 Guice 规范。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MultipleExceptionsDeclaredOnTestMethod.html b/original-plugin-raw/zh/inspectionDescriptions/MultipleExceptionsDeclaredOnTestMethod.html new file mode 100644 index 000000000..16cebfe7e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MultipleExceptionsDeclaredOnTestMethod.html @@ -0,0 +1,27 @@ + + +报告具有多个异常的 JUnit 测试方法的 throws 子句。 +此类子句会造成不必要的冗余。 +不会从其他项目代码调用测试方法,因此无需单独处理这些异常。 +

    示例:

    +
    
    +  @Test
    +  public void testReflection() throws NoSuchMethodException,
    +      InvocationTargetException, IllegalAccessException {
    +    String result = (String) String.class.getMethod("trim")
    +        .invoke(" hello ");
    +    assertEquals("hello", result);
    +  }
    +
    +

    通过快速修复将异常声明替换为单个异常:

    +
    
    +  @Test
    +  public void testReflection() throws Exception {
    +    String result = (String) String.class.getMethod("trim")
    +        .invoke(" hello ");
    +    assertEquals("hello", result);
    +  }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MultipleInjectedConstructorsForClass.html b/original-plugin-raw/zh/inspectionDescriptions/MultipleInjectedConstructorsForClass.html new file mode 100644 index 000000000..7922a97a5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MultipleInjectedConstructorsForClass.html @@ -0,0 +1,6 @@ + + +

    报告具有注解为 com.google.inject.Inject 的多个构造函数的类。 + Guice 将无法决定调用哪个构造函数来创建类实例。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MultipleMethodDesignatorsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MultipleMethodDesignatorsInspection.html new file mode 100644 index 000000000..06230b541 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MultipleMethodDesignatorsInspection.html @@ -0,0 +1,5 @@ + + +

    报告具有多个 HTTP 方法注解(@GET@POST@PUT 等)的资源方法。

    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/MultipleRepositoryUrls.html b/original-plugin-raw/zh/inspectionDescriptions/MultipleRepositoryUrls.html new file mode 100644 index 000000000..3235ba863 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MultipleRepositoryUrls.html @@ -0,0 +1,6 @@ + + +报告每个存储库块(Maven 或 Ivy)使用多个 URL 的情况。 +问题在于只能为存储库选择一个 URL,而其他 URL 将被忽略。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MultipleReturnPointsPerMethod.html b/original-plugin-raw/zh/inspectionDescriptions/MultipleReturnPointsPerMethod.html new file mode 100644 index 000000000..89d5b8924 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MultipleReturnPointsPerMethod.html @@ -0,0 +1,43 @@ + + +报告 return 点数超过指定最大值的方法。 +具有太多 return 点的方法可能令人困惑且难以重构。 +

    一个 return 点可以是 return 语句,也可以是从 void 方法或构造函数底部的直落。

    +

    示例:

    +

    如果只允许两个 return 语句,则报告以下方法:

    +
    
    +  void doSmth(User[] users) {
    +    for (User user : users) {
    +      if (cond1(user)) {
    +        user.setId(getId());
    +        return;
    +      } else if (cond2(user)) {
    +        if (cond3(user)) {
    +          user.setId(getId());
    +          return;
    +        }
    +      }
    +    }
    +  }
    +
    +

    请考虑重写该方法,使其更容易理解:

    +
    
    +  void doSmth(User[] users) {
    +    for (User user : users) {
    +      if (cond1(user) || cond2(user) && cond3(user)) {
    +        user.setId(getId());
    +        return;
    +      }
    +    }
    +  }
    +
    + +

    配置检查:

    +
      +
    • 使用 return 点限制字段可指定方法允许的最大 return 点数。
    • +
    • 使用忽略临界子句选项可忽略临界子句。 + 临界子句是只包含 return 语句的 if 语句
    • +
    • 使用对 'equals()' 方法忽略选项可忽略 equals() 方法中的 return 点。
    • +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MultipleTopLevelClassesInFile.html b/original-plugin-raw/zh/inspectionDescriptions/MultipleTopLevelClassesInFile.html new file mode 100644 index 000000000..e90578ff5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MultipleTopLevelClassesInFile.html @@ -0,0 +1,7 @@ + + +报告单个 Java 文件中的多个顶层类。 +

    将多个顶层类放在一个文件中可能令人困惑,并且会降低各种软件工具的实用性。

    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MultipleVariablesInDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/MultipleVariablesInDeclaration.html new file mode 100644 index 000000000..35b1dfce0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MultipleVariablesInDeclaration.html @@ -0,0 +1,30 @@ + + +报告在单个声明中声明的多个变量,并建议为每个变量创建单独的声明。 +

    一些编码标准禁止此类声明。

    +

    示例:

    +
    
    +  int x = 1, y = 2;
    +
    +

    在应用快速修复后:

    +
    
    +  int x = 1;
    +  int y = 2;
    +
    + +

    配置检查:

    +
      +
    • 使用 忽略 'for' 循环声明 选项可忽略在 'for' 循环语句的初始化中声明的多个变量,例如: +
      
      +  for (int i = 0, max = list.size(); i > max; i++) {}
      +
      +
    • +
    • 使用 仅在单个声明中对不同的数组维度发出警告 选项,以仅在单个声明中声明具有不同数组维度的变量时发出警告,例如: +
      
      +  String s = "", array[];
      +
      +
    • +
    +

    2019.2 最新变化

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MultiplyOrDivideByPowerOfTwo.html b/original-plugin-raw/zh/inspectionDescriptions/MultiplyOrDivideByPowerOfTwo.html new file mode 100644 index 000000000..febff420f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MultiplyOrDivideByPowerOfTwo.html @@ -0,0 +1,22 @@ + + +报告整数值与可表示为 2 的幂的常量整数的乘积。 此类表达式可以替换为右移或左移运算,以提高性能。 +

    + 请注意,此检查与现代 JVM(例如 HotSpot 或 OpenJ9)无关,因为它们的 JIT 编译器将执行此优化。 + 它可能只在一些不执行 JIT 编译的嵌入式系统中有用。 +

    +

    示例:

    +
    
    +  int y = x * 4;
    +
    +

    建议通过快速修复将乘法或除法运算替换为移位运算:

    +
    
    +  int y = x << 2;
    +
    + +

    + 使用该选项可使检查也报告二次幂除法。 + 请注意,用移位替换二次幂除法不适用于负数。 +

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MustAlreadyBeRemovedApi.html b/original-plugin-raw/zh/inspectionDescriptions/MustAlreadyBeRemovedApi.html new file mode 100644 index 000000000..28cb75a12 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MustAlreadyBeRemovedApi.html @@ -0,0 +1,19 @@ + + +报告使用应从当前版本的声明库中移除的 @ApiStatus.ScheduledForRemoval +标记的声明。 + +

    它会将计划移除的指定版本与可在下面设置的版本进行比较。

    +

    + 以点分隔字符串指定版本,可选择加上 + alphabetasnapshoteap 后缀。 +

    +

    有效版本示例:1.02.3.12018.17.5-snapshot3.0-eap。 +

    +

    + 版本比较非常直观,例如:1.0 < 2.01.0-eap < 1.02.3-snapshot < 2.3 等。 + 有关详细比较逻辑,请参阅 VersionComparatorUtil 的实现。 +

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MutatorLikeMethodIsParameterless.html b/original-plugin-raw/zh/inspectionDescriptions/MutatorLikeMethodIsParameterless.html new file mode 100644 index 000000000..74cdc1b0c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MutatorLikeMethodIsParameterless.html @@ -0,0 +1,22 @@ + + +

    报告具有类似转变器名称且没有形参子句的方法。

    + +

    对于具有副作用的方法,通常有一个空形参子句来表明它不仅仅是一个访问器方法。

    + +

    该快速修复会添加一个空形参子句。

    +

    示例:

    +
    
    +  trait Test {
    +    def updateAll: Boolean
    +  }
    +
    +

    在应用快速修复后:

    +
    
    +  trait Test {
    +    def updateAll(): Boolean
    +  }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MutinyCallingSubscribeInNonBlockingScope.html b/original-plugin-raw/zh/inspectionDescriptions/MutinyCallingSubscribeInNonBlockingScope.html new file mode 100644 index 000000000..cef85b242 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MutinyCallingSubscribeInNonBlockingScope.html @@ -0,0 +1,15 @@ + + +

    报告 "reactive" 方法中的 subscribe() 调用。

    +

    返回发布程序(包括 UniMulti)的方法不应直接调用 subscribe() 方法,因为它可能破坏反应式调用链。

    +

    不要使用 subscribe(),而是考虑使用组合运算符,例如 flatMap()merge() 等。

    +

    示例:

    +
    
    +  Multi<String> stringMulti(){
    +    Multi<String> multi = Multi.createFrom().item("abc");
    +    multi.subscribe(); // <- 在非阻塞上下文中阻塞 'subscribe' 调用
    +    return multi;
    +  }
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MysqlLoadDataPathInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MysqlLoadDataPathInspection.html new file mode 100644 index 000000000..e3f1ead0b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MysqlLoadDataPathInspection.html @@ -0,0 +1,11 @@ + + +报告 LOAD 语句中以波浪符号开头的路径。 +

    示例(MySQL):

    +
    CREATE TABLE table_name (id int);
    +LOAD DATA LOCAL INFILE '~/Documents/some_file.txt'
    +INTO TABLE table_name FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n'
    +IGNORE 1 LINES;
    +

    使用文件的完整路径代替波浪符号。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/MysqlParsingInspection.html b/original-plugin-raw/zh/inspectionDescriptions/MysqlParsingInspection.html new file mode 100644 index 000000000..2984effdb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/MysqlParsingInspection.html @@ -0,0 +1,10 @@ + + +报告查询中 UNION 的无效用法。 +

    该检查适用于早于 8.0 的 MySQL 版本。

    +

    示例(MySQL):

    +
    
    +SELECT * FROM (SELECT 1 UNION (SELECT 1 UNION SELECT 2)) a;
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NakedNotify.html b/original-plugin-raw/zh/inspectionDescriptions/NakedNotify.html new file mode 100644 index 000000000..006fe6e61 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NakedNotify.html @@ -0,0 +1,21 @@ + + +报告调用的未发生任何可检测到的状态变更的 Object.notify()Object.notifyAll()。 +

    + Object.notify()Object.notifyAll() 通常用于通知其他线程发生了状态变更。 该状态变更应发生在包含 Object.notify() 或 +Object.notifyAll() 调用的同步上下文中,并且发生在调用之前。 尽管没有此类状态变更未必就不正确,但肯定值得检查。 +

    +

    示例:

    +
    
    +  synchronized (this) {
    +    notify();
    +  }
    +  // 无状态变更
    +  synchronized (this) {
    +    notify(); // 告知可能冗余
    +  }
    +
    + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NameBooleanParameters.html b/original-plugin-raw/zh/inspectionDescriptions/NameBooleanParameters.html new file mode 100644 index 000000000..dcbd99be6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NameBooleanParameters.html @@ -0,0 +1,17 @@ + + +

    报告并建议命名布尔形参。

    + +

    示例:

    +
    
    +  def execute(optionA: Boolean, optionB: Boolean): Unit = ???
    +  execute(true, false)
    +
    +

    在应用快速修复后:

    +
    
    +  def execute(optionA: Boolean, optionB: Boolean): Unit = ???
    +  execute(optionA = true, optionB = false)
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NativeMethods.html b/original-plugin-raw/zh/inspectionDescriptions/NativeMethods.html new file mode 100644 index 000000000..44373514c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NativeMethods.html @@ -0,0 +1,6 @@ + + +报告被声明为 native 的方法。 原生方法本质上不可移植。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NegatedConditional.html b/original-plugin-raw/zh/inspectionDescriptions/NegatedConditional.html new file mode 100644 index 000000000..bd54f64e9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NegatedConditional.html @@ -0,0 +1,26 @@ + + +报告条件被否定的条件表达式。 +

    翻转条件表达式分支的顺序通常会增加此类语句的清晰度。

    + +

    + 使用忽略 '!= null' 比较忽略 '!= 0' 比较选项可以忽略 obj != nullnum != 0 形式的比较。 + 由于 obj != null 实际上意味着 "obj exists",整个表达式的含义不涉及任何否定,所以易于理解。 +

    + 同样的推理也适用于 num !=0 表达式,在使用位掩码时更是如此。 +

    + 这些形式还有另外的好处,即先提及有趣的情况。 + 在大多数情况下,== null 分支的值为 null 本身,如以下示例所示: + +

    
    +    static String getName(Person p) {
    +        return p != null ? p.getName() : null;
    +    }
    +
    +    static String getExecutableString(int fileMode) {
    +        return (fileMode & 0b001001001) != 0 ? "executable" : "non-executable";
    +    }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NegatedConditionalExpression.html b/original-plugin-raw/zh/inspectionDescriptions/NegatedConditionalExpression.html new file mode 100644 index 000000000..cb6d96df9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NegatedConditionalExpression.html @@ -0,0 +1,16 @@ + + +报告使用前缀表达式否定的条件表达式,因为此类结构可能令人困惑。 +

    可以通过修正将外部否定同时传播到两个分支。

    +

    示例:

    +
    
    +  !(i == 1 ? a : b)
    +
    +

    在应用快速修复后:

    +
    
    +  i == 1 ? !a : !b
    +
    + +

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NegatedConditionalExpressionJS.html b/original-plugin-raw/zh/inspectionDescriptions/NegatedConditionalExpressionJS.html new file mode 100644 index 000000000..241f76201 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NegatedConditionalExpressionJS.html @@ -0,0 +1,8 @@ + + + +报告条件被否定的条件表达式。 +建议翻转条件表达式中分支的顺序以增加语句的清晰度。 +示例:!condition ? 2 : 1 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NegatedEqualityExpression.html b/original-plugin-raw/zh/inspectionDescriptions/NegatedEqualityExpression.html new file mode 100644 index 000000000..27a7333b4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NegatedEqualityExpression.html @@ -0,0 +1,16 @@ + + +报告被前缀表达式否定的等式表达式。 +

    可以使用 != 运算符简化此类表达式。

    +

    示例:

    +
    
    +  !(i == 1)
    +
    +

    在应用快速修复后:

    +
    
    +  i != 1
    +
    + +

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NegatedIfElse.html b/original-plugin-raw/zh/inspectionDescriptions/NegatedIfElse.html new file mode 100644 index 000000000..835a78226 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NegatedIfElse.html @@ -0,0 +1,32 @@ + + +报告包含 else 分支并且条件被否定的 if 语句。 +

    翻转 ifelse 分支的顺序通常会增加此类语句的清晰度。

    +

    可以通过修正反转当前 if 语句。

    +

    示例:

    +
    
    +    void m(Object o1, Object o2) {
    +        if (o1 != o2) {
    +            System.out.println(1);
    +        }
    +        else {
    +            System.out.println(2);
    +        }
    +    }
    +
    +

    应用快速修复后:

    +
    
    +    void m(Object o1, Object o2) {
    +        if (o1 == o2) {
    +            System.out.println(2);
    +        } else {
    +            System.out.println(1);
    +        }
    +    }
    +
    + +

    使用忽略 '!= null' 比较选项可以忽略 != null 形式的比较。

    +

    使用忽略 '!= 0' 比较选项可以忽略 != 0 形式的比较。

    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NegatedIfStatementJS.html b/original-plugin-raw/zh/inspectionDescriptions/NegatedIfStatementJS.html new file mode 100644 index 000000000..6a34636eb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NegatedIfStatementJS.html @@ -0,0 +1,6 @@ + + +报告具有 else 分支和否定条件的 if 语句。 +翻转 ifelse 分支的顺序通常会改进此类语句的清晰度。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/NegativelyNamedBooleanVariable.html b/original-plugin-raw/zh/inspectionDescriptions/NegativelyNamedBooleanVariable.html new file mode 100644 index 000000000..00556ea44 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NegativelyNamedBooleanVariable.html @@ -0,0 +1,12 @@ + + +报告否定命名的变量,例如:disabledhiddenisNotChanged。 +

    反转 boolean 值并从名称中移除否定通常有助于使代码更容易理解。

    +

    示例:

    +
    
    +    boolean disabled = false;
    +
    + +

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NestedAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/NestedAssignment.html new file mode 100644 index 000000000..bb1b00caa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NestedAssignment.html @@ -0,0 +1,15 @@ + + +报告嵌套在其他表达式中的赋值表达式。 +

    此类表达式可能令人困惑,并违反一般设计原则,即任何结构应当只发挥一种作用。

    +

    示例:

    +
    
    +  String userName;
    +  // 警告:使用了对 'userName' 赋值的结果
    +  String message = "Hello " + (userName = "Alice") + "!"
    +  System.out.println(message);
    +  System.out.println("Goodbye " + userName);
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NestedAssignmentJS.html b/original-plugin-raw/zh/inspectionDescriptions/NestedAssignmentJS.html new file mode 100644 index 000000000..b520d1b66 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NestedAssignmentJS.html @@ -0,0 +1,7 @@ + + + +报告嵌套在另一个表达式中的赋值表达式,例如 a=b=1。 +此类表达式可能令人困惑,并违反一般设计原则,即给定结构只应发挥一种作用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NestedConditionalExpression.html b/original-plugin-raw/zh/inspectionDescriptions/NestedConditionalExpression.html new file mode 100644 index 000000000..832b25eae --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NestedConditionalExpression.html @@ -0,0 +1,12 @@ + + +报告嵌套的条件表达式,因为它们可能导致代码格外令人困惑。 +

    示例:

    +
    
    +  int y = a == 10 ? b == 20 ? 10 : a : b;
    +
    + +

    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NestedConditionalExpressionJS.html b/original-plugin-raw/zh/inspectionDescriptions/NestedConditionalExpressionJS.html new file mode 100644 index 000000000..8c6f0ad71 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NestedConditionalExpressionJS.html @@ -0,0 +1,6 @@ + + +报告另一个三元条件中的三元条件表达式。 +此类嵌套条件句可能极其令人困惑,最好替换为更显式的条件逻辑。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NestedFunctionCallJS.html b/original-plugin-raw/zh/inspectionDescriptions/NestedFunctionCallJS.html new file mode 100644 index 000000000..e64f543eb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NestedFunctionCallJS.html @@ -0,0 +1,5 @@ + + +报告在另一个函数调用中用作实参的函数调用,例如 foo(bar()) + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NestedFunctionJS.html b/original-plugin-raw/zh/inspectionDescriptions/NestedFunctionJS.html new file mode 100644 index 000000000..79a3c3564 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NestedFunctionJS.html @@ -0,0 +1,10 @@ + + +报告嵌套在另一个函数中的函数。 +尽管 JavaScript 允许嵌套函数,但此类结构可能令人困惑。 + +

    + 使用下面的复选框以忽略匿名嵌套函数。 +

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NestedLambdaShadowedImplicitParameter.html b/original-plugin-raw/zh/inspectionDescriptions/NestedLambdaShadowedImplicitParameter.html new file mode 100644 index 000000000..80294e28a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NestedLambdaShadowedImplicitParameter.html @@ -0,0 +1,25 @@ + + +报告具有隐藏的隐式形参的嵌套 lambda。 +

    示例:

    +
    
    +fun foo(listOfLists: List<List<String>>) {
    +  listOfLists.forEach {
    +    it.forEach {
    +      println(it)
    +    }
    +  }
    +}
    +
    +

    在应用快速修复后:

    +
    
    +fun foo(listOfLists: List<List<String>>) {
    +  listOfLists.forEach {
    +    it.forEach { it1 ->
    +      println(it1)
    +    }
    +  }
    +}
    +
    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/NestedMethodCall.html b/original-plugin-raw/zh/inspectionDescriptions/NestedMethodCall.html new file mode 100644 index 000000000..14fde166d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NestedMethodCall.html @@ -0,0 +1,35 @@ + + +报告用作另一个方法调用的形参的方法调用。 +

    该快速修复会引入一个变量,使代码更简单,也更易于调试。

    +

    示例:

    +
    
    +  public int y() { return 1; }
    +  public int f(int x) { return 2 * x; }
    +
    +  public void foo() {
    +      int x = f(y());
    +  }
    +
    +

    在应用快速修复后:

    +
    
    +  public int y() { return 1; }
    +  public int f(int x) { return 2 * x; }
    +
    +  public void foo() {
    +      int y = y();
    +      int x = f(y);
    +  }
    +
    + +

    +使用检查选项可以切换以下各项的报告: +

    +
      +
    • 字段初始值设定项中的方法调用
    • +
    • 对 static 方法的调用
    • +
    • 对简单 getter 的调用
    • +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NestedStatefulMonads.html b/original-plugin-raw/zh/inspectionDescriptions/NestedStatefulMonads.html new file mode 100644 index 000000000..18650caf9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NestedStatefulMonads.html @@ -0,0 +1,12 @@ + + +

    报告可能导致架构错误的嵌套有状态单体。

    +

    示例:

    +
    
    +  import scala.concurrent.Future
    +  val a = Future { }
    +  Future { a }
    +
    + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/NestedSwitchStatement.html b/original-plugin-raw/zh/inspectionDescriptions/NestedSwitchStatement.html new file mode 100644 index 000000000..de55bb208 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NestedSwitchStatement.html @@ -0,0 +1,19 @@ + + +报告嵌套的 switch 语句或表达式。 +

    嵌套的 switch 语句可能导致代码格外令人困惑。 这些语句可以提取到一个单独的方法中。

    +

    示例:

    +
    
    +  int res = switch (i) {
    +            case 0 -> 0;
    +            default -> switch (i) {
    +                case 100 -> 0;
    +                default -> i;
    +            };
    +        };
    +
    + +

    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NestedSwitchStatementJS.html b/original-plugin-raw/zh/inspectionDescriptions/NestedSwitchStatementJS.html new file mode 100644 index 000000000..fa4e67e4d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NestedSwitchStatementJS.html @@ -0,0 +1,6 @@ + + +报告嵌套在另一个 switch 语句中的 +switch 语句。 嵌套的 switch 语句可能非常令人困惑,尤其在缩进不一致的情况下。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NestedSynchronizedStatement.html b/original-plugin-raw/zh/inspectionDescriptions/NestedSynchronizedStatement.html new file mode 100644 index 000000000..4a2571579 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NestedSynchronizedStatement.html @@ -0,0 +1,21 @@ + + +报告嵌套的 synchronized 语句。 +建议尽量避免嵌套同步,因为在某些情况下,嵌套同步可能会导致死锁。 +

    示例:

    +
    
    +  synchronized (lockA){
    +    //线程 1 在等待 lockB
    +    synchronized (lockB){ //警告
    +    }
    +  }
    +  ...
    +  synchronized (lockB) {
    +    //线程 2 在等待 lockA
    +    synchronized (lockA) { //警告
    +    }
    +  }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NestedTryStatement.html b/original-plugin-raw/zh/inspectionDescriptions/NestedTryStatement.html new file mode 100644 index 000000000..af00ddf5b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NestedTryStatement.html @@ -0,0 +1,7 @@ + + +报告嵌套的 try 语句。 +

    嵌套的 try 语句可能会导致代码不清晰,并且可能会合并它们的 catchfinally 部分。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NestingDepth.html b/original-plugin-raw/zh/inspectionDescriptions/NestingDepth.html new file mode 100644 index 000000000..10f364d26 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NestingDepth.html @@ -0,0 +1,8 @@ + + +报告主体包含嵌套过深语句的方法。 +

    语句嵌套过深的方法可能令人困惑,并且表明可能有必要重构。

    + +

    使用嵌套深度限制字段可指定方法允许的最大嵌套深度。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NestingDepthJS.html b/original-plugin-raw/zh/inspectionDescriptions/NestingDepthJS.html new file mode 100644 index 000000000..392c4549e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NestingDepthJS.html @@ -0,0 +1,9 @@ + + +报告其函数体中包含的语句在其他语句中嵌套过深的函数。 +此类函数可能令人困惑,并且表明可能有必要重构。 + +

    + 使用下面提供的字段指定函数中可接受的最大嵌套深度。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NewClassNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/NewClassNamingConvention.html new file mode 100644 index 000000000..a099afa6c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NewClassNamingConvention.html @@ -0,0 +1,13 @@ + + +报告名称太短、太长或不遵循指定正则表达式模式的类。 +

    示例:如果为测试启用了检查,并且指定的最小类名称长度为 8(默认值),因以下测试类的名称长度为 6,即小于 8,因此将生成警告:public class MyTest{}。 +

    只能在编辑器中采用快速修复来重命名这种类。

    + +

    配置检查:

    +

    + 使用选项部分中的列表来指定应检查哪些类。 取消选中要为之跳过检查的类对应的复选框。

    +

    对于类的每种类型,请使用所提供的输入字段指定类名应有的最小长度、最大长度和正则表达式。 在长度字段中指定 0 可跳过相应检查。

    +

    正则表达式应以标准 java.util.regex 格式指定。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NewEntityRequiredProperties.html b/original-plugin-raw/zh/inspectionDescriptions/NewEntityRequiredProperties.html new file mode 100644 index 000000000..f854d8a2b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NewEntityRequiredProperties.html @@ -0,0 +1,34 @@ + + +报告使用 newgetOrCreate 函数在 ChangeScope 中创建时 Entity 的未分配属性。 +

    + 必须分配 Entity 的所有非可 null 属性,或者使用 @Many 注解对其进行标记。 + 否则,可能会导致运行时异常。 +

    +

    示例:

    +
    
    +  interface A: Entity {
    +    var x: Int
    +    var y: Int?
    +    @Many var z: Int
    +    var p: Int
    +  }
    +
    +  fun ChangeScope.foo() {
    +    new(A::class) {
    +      this.p = 0
    +    }
    +  }
    +
    +

    快速修复会生成缺少必需属性的赋值

    +
    
    +  fun ChangeScope.foo() {
    +    new(A::class) {
    +      this.x = x
    +      this.p = 0
    +    }
    +  }
    +
    + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/NewExceptionWithoutArguments.html b/original-plugin-raw/zh/inspectionDescriptions/NewExceptionWithoutArguments.html new file mode 100644 index 000000000..5c9a94739 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NewExceptionWithoutArguments.html @@ -0,0 +1,11 @@ + + +报告未指定任何实参的异常实例的创建。 +

    当异常被构造为没有任何实参时,它不包含有关所发生问题的信息,这会使调试变得不必要地困难。

    +

    示例:

    +
    
    +  throw new IOException(); // 警告:没有实参的异常
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NewGroovyClassNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/NewGroovyClassNamingConvention.html new file mode 100644 index 000000000..16ad99171 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NewGroovyClassNamingConvention.html @@ -0,0 +1,8 @@ + + +

    报告名称太短、太长或不遵循指定正则表达式模式的类。

    + +

    对于类的每种类型,请使用所提供的输入字段指定类名应有的最小长度、最大长度和正则表达式。

    +

    正则表达式应以标准 java.util.regex 格式指定。

    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/NewInstanceOfSingleton.html b/original-plugin-raw/zh/inspectionDescriptions/NewInstanceOfSingleton.html new file mode 100644 index 000000000..67074b257 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NewInstanceOfSingleton.html @@ -0,0 +1,22 @@ + + +

    报告使用 @groovy.lang.Singleton 注解的类的新实例创建。 + 此类构造可能导致运行时异常无法实例化单例

    +

    示例:

    +
    
    +  @Singleton
    +  class Foo{
    +  }
    +  
    +  Foo foo = new Foo()
    +
    +

    在应用快速修复后:

    +
    
    +  @Singleton
    +  class Foo{
    +  }
    +  
    +  Foo foo = Foo.instance
    +
    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/NewMethodNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/NewMethodNamingConvention.html new file mode 100644 index 000000000..a145de54b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NewMethodNamingConvention.html @@ -0,0 +1,12 @@ + + +报告名称太短、太长或不遵循指定正则表达式模式的方法。 +

    此检查将忽略重写库方法和构造函数的实例方法。

    +

    示例:如果对 static 方法启用检查,并且指定的方法名称的最小长度为 4(默认值),则以下 static 方法会产生警告,因为其名称长度为 3,即小于 4:public static int max(int a, int b)。 +

    只能在编辑器中使用重命名此类方法的快速修复。

    + +

    配置检查:

    +

    使用选项部分中的列表可指定应检查哪些方法。 取消选中要跳过检查的方法类型的复选框。 在长度字段中指定 0 可跳过相应检查。

    +

    正则表达式应以标准 java.util.regex 格式指定。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NewObjectEquality.html b/original-plugin-raw/zh/inspectionDescriptions/NewObjectEquality.html new file mode 100644 index 000000000..c7977ad20 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NewObjectEquality.html @@ -0,0 +1,24 @@ + + +报告将 ==!= 应用于新分配对象而不是调用 equals() 的代码。 +

    + 对新分配对象的引用不能指向现有对象,因此比较结果始终为 false。 该检查还可以报告从简单方法返回的新建对象。 +

    +

    示例:

    +
    
    +  void test(Object obj) {
    +    if (new Object() == obj) {...}
    +  }
    +
    +

    在应用快速修复后:

    +
    
    +  void test(Object obj) {
    +    if (new Object().equals(obj)) {...}
    +  }
    +
    + +

    + 2018.3 最新变化 +

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NewStringBufferWithCharArgument.html b/original-plugin-raw/zh/inspectionDescriptions/NewStringBufferWithCharArgument.html new file mode 100644 index 000000000..88aca47d1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NewStringBufferWithCharArgument.html @@ -0,0 +1,15 @@ + + +报告对 char 作为实参的 StringBufferStringBuilder 构造函数的调用。 +在本例中,char 无提示地转换为整数,并解读为缓冲区的初始容量。 +

    示例:

    +
    
    +  new StringBuilder('(').append("1").append(')');
    +
    +

    在应用快速修复后:

    +
    
    +  new StringBuilder("(").append("1").append(')');
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NoAttributeForProperty.html b/original-plugin-raw/zh/inspectionDescriptions/NoAttributeForProperty.html new file mode 100644 index 000000000..0a0c2a039 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NoAttributeForProperty.html @@ -0,0 +1,7 @@ + + +报告对象属性的缺失特性(assignretainweakstrongcopy)。
    +当不使用 ARC(自动引用计数)时,如果缺少这些特性之一,则会出现编译器警告。 + 默认情况下,在非 ARC 模式下,编译器假定属性具有 assign 特性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NoButtonGroup.html b/original-plugin-raw/zh/inspectionDescriptions/NoButtonGroup.html new file mode 100644 index 000000000..21ebac91d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NoButtonGroup.html @@ -0,0 +1,5 @@ + + +报告未放置在 ButtonGroup 中的 JRadioButton 组件。 可以通过快速修复对放置在相邻网格单元格中的单选按钮进行分组。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/NoClassDefinition.html b/original-plugin-raw/zh/inspectionDescriptions/NoClassDefinition.html new file mode 100644 index 000000000..0195351b7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NoClassDefinition.html @@ -0,0 +1,5 @@ + + + 报告在项目中没有具有相应名称的类/协议的 @class@protocol 指令。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NoDefaultBaseConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/NoDefaultBaseConstructor.html new file mode 100644 index 000000000..1e41c40bc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NoDefaultBaseConstructor.html @@ -0,0 +1,5 @@ + + +报告在没有默认构造函数的情况下未显式初始化基类的类。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NoExplicitFinalizeCalls.html b/original-plugin-raw/zh/inspectionDescriptions/NoExplicitFinalizeCalls.html new file mode 100644 index 000000000..fc965114f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NoExplicitFinalizeCalls.html @@ -0,0 +1,15 @@ + + +报告对 Object.finalize() 的调用。 +

    显式调用 Object.finalize() 可能导致对象处于不一致的状态。 + 垃圾收集器在确定没有对该对象的引用时,自动对该对象调用此方法。

    +

    该检查不报告 finalize() 实现中对 super.finalize() 的调用,因为它们是良性的。

    +

    示例:

    +
    
    +  MyObject m = new MyObject();
    +  m.finalize();
    +  System.gc()
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NoGetterOrSetter.html b/original-plugin-raw/zh/inspectionDescriptions/NoGetterOrSetter.html new file mode 100644 index 000000000..fa8767d25 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NoGetterOrSetter.html @@ -0,0 +1,5 @@ + + + 报告既没有 getter 或 setter(或只有 readonly 属性的 getter)也没有 @synthesize 语句的属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NoLabelFor.html b/original-plugin-raw/zh/inspectionDescriptions/NoLabelFor.html new file mode 100644 index 000000000..89bce21f3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NoLabelFor.html @@ -0,0 +1,7 @@ + + +报告没有任何静态文本并且没有为此组件使用 setLabelFor 标记的任何标签的组件。 +

    没有静态文本的组件包括编辑字段与组合框。 +无法使用键盘快捷键激活此类组件。 此检查的快速修复允许您自动将相邻标签与有问题的组件相关联。

    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/NoScrollPane.html b/original-plugin-raw/zh/inspectionDescriptions/NoScrollPane.html new file mode 100644 index 000000000..932d3a217 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NoScrollPane.html @@ -0,0 +1,5 @@ + + +报告未放置在 JScrollPane 中的 Scrollable 组件(JTextField 除外)。 该快速修复会使用滚动窗格围绕有问题的组件。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/NoTailRecursionAnnotation.html b/original-plugin-raw/zh/inspectionDescriptions/NoTailRecursionAnnotation.html new file mode 100644 index 000000000..67148993e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NoTailRecursionAnnotation.html @@ -0,0 +1,20 @@ + + +

    报告没有 @tailrec 注解的尾递归方法,该注解验证方法将使用尾调用优化进行编译。

    + +

    请注意,方法必须是有效的 final,此检查才会被显示。

    + +

    示例:

    +
    
    +  def factorial(n: Long, acc: Long = 1): Long =
    +    if (n <= 1) acc else factorial(n - 1, acc * n)
    +
    +

    在应用快速修复后:

    +
    
    +  @tailrec
    +  def factorial(n: Long, acc: Long = 1): Long =
    +    if (n <= 1) acc else factorial(n - 1, acc * n)
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NodeCoreCodingAssistance.html b/original-plugin-raw/zh/inspectionDescriptions/NodeCoreCodingAssistance.html new file mode 100644 index 000000000..320c9a420 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NodeCoreCodingAssistance.html @@ -0,0 +1,7 @@ + + +建议为 Node.js 配置编码辅助,例如 require 和/或核心模块('path'、'http'、'fs' 等)。 +

    +有关完整列表,请参阅 https://nodejs.org/api/

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonAsciiCharacters.html b/original-plugin-raw/zh/inspectionDescriptions/NonAsciiCharacters.html new file mode 100644 index 000000000..56f4c7eb0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonAsciiCharacters.html @@ -0,0 +1,13 @@ + + +报告在异常上下文中使用非 ASCII 符号的代码元素。 + +

    示例:

    +
      +
    • 标识符、字符串或注释中使用的非 ASCII 字符。
    • +
    • 使用不同语言编写的标识符,例如带有使用西里尔文编写的字母 CmyCollection
    • +
    • 包含 Unicode 符号(如长划线和箭头)的注释或字符串。
    • +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonAtomicOperationOnVolatileField.html b/original-plugin-raw/zh/inspectionDescriptions/NonAtomicOperationOnVolatileField.html new file mode 100644 index 000000000..87b955bbd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonAtomicOperationOnVolatileField.html @@ -0,0 +1,19 @@ + + +报告对 volatile 字段的非原子操作。 +

    + 非原子操作的示例之一是使用增量运算符更新字段。 + 由于操作涉及读写,并且在此之间可能发生其他修改,因此可能损坏数据。 + 使用 synchronized 块进行环绕,或使用 java.util.concurrent.atomic 软件包中的一个类,可以使该项操作成为原子操作。 +

    +

    示例:

    +
    
    +  private volatile int v = 1;
    +
    +  void foo() {
    +    v = 2 * v;
    +  }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonBlockStatementBodyJS.html b/original-plugin-raw/zh/inspectionDescriptions/NonBlockStatementBodyJS.html new file mode 100644 index 000000000..1be74ef11 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonBlockStatementBodyJS.html @@ -0,0 +1,5 @@ + + +报告其语句体不是块语句的 ifwhileforwith 语句。 在语句体中使用代码块通常对下游维护更安全。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonBooleanMethodNameMayNotStartWithQuestion.html b/original-plugin-raw/zh/inspectionDescriptions/NonBooleanMethodNameMayNotStartWithQuestion.html new file mode 100644 index 000000000..9993f1903 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonBooleanMethodNameMayNotStartWithQuestion.html @@ -0,0 +1,20 @@ + + +报告名称以疑问词开头的非布尔方法。 此类方法名称可能令人困惑。 +

    此检查将忽略重写库方法的非布尔方法。

    +

    示例: +

    
    +  public void hasName(String name) {
    +    assert names.contains(name);
    +  }
    +
    +

    只能在编辑器中使用重命名此类方法的快速修复。

    + +

    配置检查:

    +
      +
    • 使用布尔方法名称前缀列表可指定应仅用于布尔方法的疑问词。
    • +
    • 使用忽略具有 'java.lang.Boolean' 返回类型的方法选项可忽略返回类型为 java.lang.Boolean 的方法。
    • +
    • 使用忽略重写/实现 super 方法的方法选项可忽略具有 super 方法的方法。
    • +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonCommentSourceStatements.html b/original-plugin-raw/zh/inspectionDescriptions/NonCommentSourceStatements.html new file mode 100644 index 000000000..f21a9a723 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonCommentSourceStatements.html @@ -0,0 +1,15 @@ + + +报告语句数超过指定最大值的方法。 +

    语句过多的方法可能令人困惑,并且表明可能有必要重构。

    +

    以下语句不计算在内:

    +
      +
    • 空语句(分号)
    • +
    • 块语句
    • +
    • for 循环初始化语句,即 for(int i = ...;...) 语句内的 int i = ...
    • +
    • for 循环 update 语句,即 for(int i = ...;...; i += 2) 语句内的 i += 2
    • +
    + +

    使用每个方法的最大语句数字段可指定方法中允许的最大语句数。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonDefaultConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/NonDefaultConstructor.html new file mode 100644 index 000000000..c2486a6fc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonDefaultConstructor.html @@ -0,0 +1,9 @@ + + +报告具有非默认(空)构造函数的扩展/服务类。 +

    + 只有在相应的方法中需要时,才应获取其他依赖项。 + 允许使用在相应级别具有扩展/服务的 Project 的构造函数。 +

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonExceptionNameEndsWithException.html b/original-plugin-raw/zh/inspectionDescriptions/NonExceptionNameEndsWithException.html new file mode 100644 index 000000000..c3ff2c6eb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonExceptionNameEndsWithException.html @@ -0,0 +1,10 @@ + + +报告名称以 Exception 结尾的非 exception 类。 +

    这种类可能会违反通用的命名惯例而引起混淆,并且通常表示缺少 extends Exception 子句。

    +

    示例: +

    public class NotStartedException {}
    +

    只能在编辑器中采用快速修复来重命名这种类。

    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonExtendableApiUsage.html b/original-plugin-raw/zh/inspectionDescriptions/NonExtendableApiUsage.html new file mode 100644 index 000000000..9637de3f1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonExtendableApiUsage.html @@ -0,0 +1,10 @@ + + +报告扩展、实现或重写使用 @ApiStatus.NonExtendable 标记的 API 元素的类、接口和方法。 +

    + @ApiStatus.NonExtendable 注解表示不得扩展、实现或重写类、接口或方法。 + 将此类接口和类转换为内部库实现很常见,因此,如果客户端提供不同的实现,将获得 ClassCastException。 + 将新的 abstract 方法添加到这种类和接口将破坏与客户端实现的兼容性。 +

    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonFinalClone.html b/original-plugin-raw/zh/inspectionDescriptions/NonFinalClone.html new file mode 100644 index 000000000..e142b68d4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonFinalClone.html @@ -0,0 +1,18 @@ + + +报告没有 final 修饰符的 clone() 方法。 +

    + clone() 可以用于在不使用构造函数的情况下实例化对象,因此允许重写 clone() 方法可能导致对象损坏,甚至导致安全漏洞。 将 clone() 方法或封闭类本身设为 final 可以防止这种情况。 +

    +

    示例:

    +
    
    +  class Main implements Cloneable {
    +      @Override
    +      protected Object clone() throws CloneNotSupportedException {
    +        return super.clone();
    +      }
    +  }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonFinalFieldInEnum.html b/original-plugin-raw/zh/inspectionDescriptions/NonFinalFieldInEnum.html new file mode 100644 index 000000000..b3366719f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonFinalFieldInEnum.html @@ -0,0 +1,33 @@ + + +报告枚举类型中的非 final 字段,因为很少需要它们,且提供全局可变状态。 +

    示例:

    +
    
    +  enum Enum {
    +    FIRST("first"),
    +    SECOND("second");
    +
    +    public String str;
    +
    +    Enum(String str) {
    +        this.str = str;
    +    }
    +  }
    +
    +

    在应用快速修复后:

    +
    
    +  enum Enum {
    +    FIRST("first"),
    +    SECOND("second");
    +
    +    public final String str;
    +
    +    Enum(String str) {
    +        this.str = str;
    +    }
    +  }
    +
    + +配置“在快速修复不可用时忽略字段”复选框以仅高亮显示可通过该快速修复设为 final 的字段。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonFinalFieldInImmutable.html b/original-plugin-raw/zh/inspectionDescriptions/NonFinalFieldInImmutable.html new file mode 100644 index 000000000..8579c69af --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonFinalFieldInImmutable.html @@ -0,0 +1,24 @@ + + +报告包含 @Immutable 注解的类中的任何非 final 字段。 +这违反了 @Immutable 注解的约定。 +

    示例:

    +
    
    +  import javax.annotation.concurrent.Immutable;
    +  @Immutable
    +  class Foo {
    +    String bar = "foo";
    +  }
    +
    + +

    支持的 @GuardedBy 注解是:

    +
      +
    • net.jcip.annotations.GuardedBy
    • +
    • javax.annotation.concurrent.GuardedBy
    • +
    • org.apache.http.annotation.GuardedBy
    • +
    • com.android.annotations.concurrency.GuardedBy
    • +
    • androidx.annotation.GuardedBy
    • +
    • com.google.errorprone.annotations.concurrent.GuardedBy
    • +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonFinalFieldOfException.html b/original-plugin-raw/zh/inspectionDescriptions/NonFinalFieldOfException.html new file mode 100644 index 000000000..5de955bc4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonFinalFieldOfException.html @@ -0,0 +1,13 @@ + + +报告 java.lang.Exception 的子类中未被声明为 final 的字段。 +

    不应修改异常对象上的数据,因为这可能会导致丢失可供以后调试和记录的错误上下文。

    +

    示例:

    +
    
    +  public class EditorException extends Exception {
    +    private String message; // 警告:异常类的非 final 字段 'message'
    +  }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonFinalGuard.html b/original-plugin-raw/zh/inspectionDescriptions/NonFinalGuard.html new file mode 100644 index 000000000..126623324 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonFinalGuard.html @@ -0,0 +1,26 @@ + + +报告其中的保护字段不是 final@GuardedBy 注解。 +

    在非 final 字段上进行保护可能会导致意外的竞争条件,因为该字段的值会被锁定(可能会变化),而不是锁定字段本身。

    +

    示例:

    +
    
    +    private ReadWriteLock lock = new ReentrantReadWriteLock(); //非 final 保护字段
    +    private Object state;
    +
    +    @GuardedBy("lock")
    +    public void bar() {
    +        state = new Object();
    +    }
    +
    + +

    支持的 @GuardedBy 注解是:

    +
      +
    • net.jcip.annotations.GuardedBy
    • +
    • javax.annotation.concurrent.GuardedBy
    • +
    • org.apache.http.annotation.GuardedBy
    • +
    • com.android.annotations.concurrency.GuardedBy
    • +
    • androidx.annotation.GuardedBy
    • +
    • com.google.errorprone.annotations.concurrent.GuardedBy
    • +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonFinalStaticVariableUsedInClassInitialization.html b/original-plugin-raw/zh/inspectionDescriptions/NonFinalStaticVariableUsedInClassInitialization.html new file mode 100644 index 000000000..90dffa597 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonFinalStaticVariableUsedInClassInitialization.html @@ -0,0 +1,17 @@ + + +报告在类初始化期间使用 final static 变量的情况。 +

    在此类情况下,代码语义可能会依赖于类的创建顺序。 此外,此类情况可能会导致在变量初始化之前使用变量,并且通常会导致困难和令人困惑的错误。

    +

    示例:

    +
    
    +  class Foo {
    +    public static int bar = 0;
    +
    +    static {
    +      System.out.println(bar);
    +    }
    +  }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonFinalUtilityClass.html b/original-plugin-raw/zh/inspectionDescriptions/NonFinalUtilityClass.html new file mode 100644 index 000000000..32ae28034 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonFinalUtilityClass.html @@ -0,0 +1,8 @@ + + +报告非 final 的实用程序类。 +

    实用程序类将所有字段和方法声明为 static。 + 使之为 final 可防止意外地被子类化。

    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonJREEmulationClassesInClientCode.html b/original-plugin-raw/zh/inspectionDescriptions/NonJREEmulationClassesInClientCode.html new file mode 100644 index 000000000..9aea556a6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonJREEmulationClassesInClientCode.html @@ -0,0 +1,5 @@ + + +报告 JRE Emulation Library 中不存在的 JDK 类和方法的引用。 在 GWT 模块的客户端代码中禁止使用这种类和方法。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonJaxWsWebServices.html b/original-plugin-raw/zh/inspectionDescriptions/NonJaxWsWebServices.html new file mode 100644 index 000000000..772de7851 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonJaxWsWebServices.html @@ -0,0 +1,6 @@ + + +

    报告没有 @javax.jws.WebService 注解的公开 Java Web 服务。

    +

    该快速修复会将 @WebService 注解添加到类中。

    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonOsgiMavenDependency.html b/original-plugin-raw/zh/inspectionDescriptions/NonOsgiMavenDependency.html new file mode 100644 index 000000000..989f5a602 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonOsgiMavenDependency.html @@ -0,0 +1,7 @@ + + + 报告 OSGi 项目中指向不能在 OSGi 容器中运行的库的任何 Maven 依赖项。 +

    Osmorc 将尝试捆绑这些库,但是使用原生支持 OSGi 的库会提供更好的结果,因此是首选。 +

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonProtectedConstructorInAbstractClass.html b/original-plugin-raw/zh/inspectionDescriptions/NonProtectedConstructorInAbstractClass.html new file mode 100644 index 000000000..68c2dd09a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonProtectedConstructorInAbstractClass.html @@ -0,0 +1,28 @@ + + +报告 abstract 类的 public 构造函数。 +

    + abstract 类的构造函数只能从其子类的构造函数进行调用,将其声明为 public 可能令人困惑。 +

    +

    该快速修复会将此类构造函数设为 protected。

    +

    示例:

    +
    
    +  public abstract class Foo {
    +    public Foo () { // 警告:有 'public' 修饰符
    +        /* ... */
    +    }
    +  }
    +
    +

    在应用快速修复后:

    +
    
    +  public abstract class Foo {
    +    protected Foo () {
    +        /* ... */
    +    }
    +  }
    +
    + +

    配置检查:

    +

    使用下面的选项可以忽略非 public 类。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonPublicClone.html b/original-plugin-raw/zh/inspectionDescriptions/NonPublicClone.html new file mode 100644 index 000000000..b4c94783d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonPublicClone.html @@ -0,0 +1,7 @@ + + +报告 protected 而不是 publicclone() 方法。 +

    java.lang.Object 重写 clone() 方法时,应将该方法设为 public,以便从软件包外部的非子类进行访问。

    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonReproducibleMathCall.html b/original-plugin-raw/zh/inspectionDescriptions/NonReproducibleMathCall.html new file mode 100644 index 000000000..66b365ec0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonReproducibleMathCall.html @@ -0,0 +1,7 @@ + + +报告不能保证准确再现结果的对 java.lang.Math 方法的调用。 +

    在需要结果重现性的环境中,应改用 java.lang.StrictMath

    + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonSerializableFieldInSerializableClass.html b/original-plugin-raw/zh/inspectionDescriptions/NonSerializableFieldInSerializableClass.html new file mode 100644 index 000000000..badc0b00d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonSerializableFieldInSerializableClass.html @@ -0,0 +1,38 @@ + + +报告实现 java.io.Serializable 的类中的不可序列化字段。 如果对象被序列化,此类字段将导致运行时异常。 +

    + 不报告被声明为 transientstatic 的字段,也不报告定义了 writeObject 方法的类的字段。 +

    +

    + 此检查假定 java.util.Collectionjava.util.Map 类型的字段为 Serializable,除非声明它们的类型为非 Serializable。 +

    +

    示例:

    +
    
    +  class NonSerializableClass {}
    +
    +  public class SerializableClass implements Serializable {
    +      NonSerializableClass clazz; // //警告:可序列化类中存在不可序列化字段 'clazz'
    +      static NonSerializableClass staticClazz; // 无警告
    +  }
    +  
    +
    + +

    + 使用以下选项配置检查: +

    +
      +
    • + 列出此检查不应报告其继承者的类。 + 这适用于从超类继承 Serializable 但不用于序列化的类。 +
    • +
    • + 列出会使检查忽略注解字段的注解。 +
    • +
    • + 是否忽略使用匿名类初始化的字段。 +
    • +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonSerializableObjectBoundToHttpSession.html b/original-plugin-raw/zh/inspectionDescriptions/NonSerializableObjectBoundToHttpSession.html new file mode 100644 index 000000000..8b7d31b2b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonSerializableObjectBoundToHttpSession.html @@ -0,0 +1,21 @@ + + +报告未实现用作 javax.servlet.http.HttpSession.setAttribute()javax.servlet.http.HttpSession.putValue() 实参的 java.io.Serializable 的类对象。 +

    + 如果 HttpSession 被钝化或迁移,则不会序列化此类对象,并且可能导致难以诊断的错误。 +

    +

    + 此检查假定 java.util.Collection 和 +java.util.Map 类型的对象为 Serializable,除非类型形参为非 Serializable。 +

    +

    示例:

    +
    
    +  void foo(HttpSession session) {
    +      session.setAttribute("foo", new NonSerializable());
    +  }
    +  static class NonSerializable {}
    +
    + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonSerializableObjectPassedToObjectStream.html b/original-plugin-raw/zh/inspectionDescriptions/NonSerializableObjectPassedToObjectStream.html new file mode 100644 index 000000000..af0ed6ae3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonSerializableObjectPassedToObjectStream.html @@ -0,0 +1,20 @@ + + +报告用作 java.io.ObjectOutputStream.write() 实参的非 Serializable 对象。 此类调用将导致运行时异常。 +

    + 此检查假定 java.util.Collectionjava.util.Map 类型的对象为 Serializable,除非声明它们的类型为非 Serializable。 +

    +

    示例:

    +
    
    +  public class IWantToSerializeThis {
    +    public static void main(String[] args) throws IOException {
    +      try(var stream = new ObjectOutputStream(Files.newOutputStream(Paths.get("output")))) {
    +        // 警告 -- 将会失败并抛出 NotSerializableException
    +        stream.writeObject(new IWantToSerializeThis());
    +      }
    +    }
    +  }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonSerializableServiceParameters.html b/original-plugin-raw/zh/inspectionDescriptions/NonSerializableServiceParameters.html new file mode 100644 index 000000000..cdc7e7dae --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonSerializableServiceParameters.html @@ -0,0 +1,7 @@ + + +报告具有不可序列化形参类型、返回类型或抛出异常类型的远程服务的方法。 +

    快速修复通过扩展相应的接口将引用类型标记为可序列化。

    +

    禁用报告接口选项以跳过对接口类型的检查。 如果实例被传递给方法的实际类是可序列化的,这不会导致任何问题。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonSerializableWithSerialVersionUIDField.html b/original-plugin-raw/zh/inspectionDescriptions/NonSerializableWithSerialVersionUIDField.html new file mode 100644 index 000000000..004f9a6a4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonSerializableWithSerialVersionUIDField.html @@ -0,0 +1,12 @@ + + +报告定义 serialVersionUID 字段的非 Serializable 类。 该上下文中的 serialVersionUID 字段通常表明有错误,因为该字段将被忽略,且该类将不会被序列化。 +

    示例:

    +
    
    +  public class IWantToSerializeThis {
    +    private static final long serialVersionUID = 2669293150219020249L;
    +  }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonSerializableWithSerializationMethods.html b/original-plugin-raw/zh/inspectionDescriptions/NonSerializableWithSerializationMethods.html new file mode 100644 index 000000000..d6f44746c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonSerializableWithSerializationMethods.html @@ -0,0 +1,14 @@ + + +报告定义 readObject()writeObject() 方法的非 Serializable 类。 该上下文中的此类方法通常表明有错误。 +

    示例:

    +
    
    +  public class SampleClass {
    +    private void readObject(ObjectInputStream str) {}
    +    private void writeObject(ObjectOutputStream str) {}
    +  }
    +
    + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonShortCircuitBoolean.html b/original-plugin-raw/zh/inspectionDescriptions/NonShortCircuitBoolean.html new file mode 100644 index 000000000..eb5280897 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonShortCircuitBoolean.html @@ -0,0 +1,22 @@ + + +报告布尔 'and' 和 'or' 的非短路形式(&|)的用法。 +尽管非短路版本偶尔有用,但在大多数情况下,本应使用短路形式(&&||),此类无意的用法可能会导致难以捉摸的错误。 +

    + 建议通过快速修复来使用短路版本。 +

    +

    示例:

    +
    
    +  void foo(boolean x, boolean y) {
    +    if (x | y) { /**/ }
    +  }
    +
    +

    在应用快速修复后:

    +
    
    +  void foo(boolean x, boolean y) {
    +    if (x || y) { /**/ }
    +  }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonStaticFinalLogger.html b/original-plugin-raw/zh/inspectionDescriptions/NonStaticFinalLogger.html new file mode 100644 index 000000000..f7ea71ada --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonStaticFinalLogger.html @@ -0,0 +1,27 @@ + + +报告未被声明为 static 和/或 final 的记录器字段。 +确保每个类记录器都是有效的常量并绑定到该类可以简化为应用程序提供统一日志记录实现的任务。 +

    提供了一个快速修复来将记录器修饰符更改为 static final

    +

    示例:

    +
    
    +  public class Significant {
    +    private Logger LOG = Logger.getLogger(Critical.class);
    +  }
    +
    +

    在应用快速修复后:

    +
    
    +  public class Significant {
    +    private static final Logger LOG = Logger.getLogger(Critical.class);
    +  }
    +
    + +

    + 配置检查: +

    +
      +
    • 使用记录器类名表可以指定记录器类名。 该检查将报告不是 staticfinal 并且类型等同于指定类名之一的字段。 +
    • +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonSynchronizedMethodOverridesSynchronizedMethod.html b/original-plugin-raw/zh/inspectionDescriptions/NonSynchronizedMethodOverridesSynchronizedMethod.html new file mode 100644 index 000000000..dc77a83bd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonSynchronizedMethodOverridesSynchronizedMethod.html @@ -0,0 +1,19 @@ + + +报告重写 synchronized 方法的非 synchronized 方法。 +

    + 如果超类方法被声明为 synchronized,重写的方法将不会自动同步。 这可能导致使用子类时出现意外的竞争条件。 +

    +

    示例:

    +
    
    +  class Super {
    +    synchronized void process() {}
    +  }
    +  class Sub extends Super {
    +    // 非 synchronized 方法 'process()' 重写 synchronized 方法
    +    void process() {}
    +  }  
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NonThreadSafeLazyInitialization.html b/original-plugin-raw/zh/inspectionDescriptions/NonThreadSafeLazyInitialization.html new file mode 100644 index 000000000..bbca326db --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NonThreadSafeLazyInitialization.html @@ -0,0 +1,34 @@ + + +报告以非线程安全方式延迟初始化的 static 变量。 +

    应该使用适当的同步构造来完成 static 变量的延迟初始化,以防止不同的线程执行冲突的初始化。

    +

    如果适用,建议使用引入延迟初始化容器类习惯用法的快速修复。 + 这个习惯用法利用了 JVM 会保证类在使用之前不会被初始化的事实。 +

    示例:

    +
    
    +  class X {
    +    private static List<String> list;
    +
    +    public List<String> getList() {
    +      if (list == null) {
    +        list = List.of("one", "two", "tree");
    +      }
    +      return list;
    +    }
    +  }
    +
    +

    在应用快速修复后:

    +
    
    +  class X {
    +    private static final class ListHolder {
    +      static final List<String> list = List.of("one", "two", "tree");
    +    }
    +
    +    public List<String> getList() {
    +      return ListHolder.list;
    +    }
    +  }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NoopMethodInAbstractClass.html b/original-plugin-raw/zh/inspectionDescriptions/NoopMethodInAbstractClass.html new file mode 100644 index 000000000..0290f8ea0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NoopMethodInAbstractClass.html @@ -0,0 +1,14 @@ + + +报告 abstract 类中的 no-op(表示“无运算”)方法。 +

    更好的设计通常是将此类方法设为 abstract,以便继承这些方法的类提供实现。

    +

    示例:

    +
    
    +  abstract class Test {
    +    protected void doTest() {
    +    }
    +  }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NotAssignable.html b/original-plugin-raw/zh/inspectionDescriptions/NotAssignable.html new file mode 100644 index 000000000..ee8be847d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NotAssignable.html @@ -0,0 +1,5 @@ + + +报告对不可赋值符号的赋值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NotImplementedCode.html b/original-plugin-raw/zh/inspectionDescriptions/NotImplementedCode.html new file mode 100644 index 000000000..e2d167bac --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NotImplementedCode.html @@ -0,0 +1,11 @@ + + +

    报告未实现的 ??? 占位符。

    + +

    示例:

    +
    
    +  def foo = ???
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NotImplementedFunctions.html b/original-plugin-raw/zh/inspectionDescriptions/NotImplementedFunctions.html new file mode 100644 index 000000000..24f813689 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NotImplementedFunctions.html @@ -0,0 +1,13 @@ + + +报告在类中声明但没有实现的函数。 +

    示例:

    + +
    +class Test {
    +  public:
    +    void setUp();
    +};
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NotImplementedMethods.html b/original-plugin-raw/zh/inspectionDescriptions/NotImplementedMethods.html new file mode 100644 index 000000000..85fe200f7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NotImplementedMethods.html @@ -0,0 +1,5 @@ + + + 报告在 @interface 中声明但未在 @implementation 中实现的方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NotImplementsProtocol.html b/original-plugin-raw/zh/inspectionDescriptions/NotImplementsProtocol.html new file mode 100644 index 000000000..892862d5f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NotImplementsProtocol.html @@ -0,0 +1,5 @@ + + + 在 A 和 B 是类并且 B 不符合 A 符合的协议的条件下,报告在类型 B 的上下文中使用类型 A 的表达式(赋值,转换,作为形参传递,从方法、函数或块返回等)的情况。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NotInHierarchyMessage.html b/original-plugin-raw/zh/inspectionDescriptions/NotInHierarchyMessage.html new file mode 100644 index 000000000..8be9d9ecb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NotInHierarchyMessage.html @@ -0,0 +1,5 @@ + + +报告解析为未在接收者的类或其上级中声明的方法的发送消息表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NotInitializedVariable.html b/original-plugin-raw/zh/inspectionDescriptions/NotInitializedVariable.html new file mode 100644 index 000000000..7f4406538 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NotInitializedVariable.html @@ -0,0 +1,6 @@ + + +报告在使用之前可能尚未初始化的局部变量。 +形式上,调用图有一个路径,以变量声明开始,以不赋值或取消引用此变量的用法结束。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NotNullFieldNotInitialized.html b/original-plugin-raw/zh/inspectionDescriptions/NotNullFieldNotInitialized.html new file mode 100644 index 000000000..bfa6fbfa7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NotNullFieldNotInitialized.html @@ -0,0 +1,26 @@ + + +报告构造函数中未初始化的注解为非 null 的字段。 +

    示例:

    +
    public class MyClass {
    +  private @NotNull String value;
    +
    +  public void setValue(@NotNull String value) {
    +    this.value = value;
    +  }
    +
    +  public @NotNull String getValue() {
    +    return value;
    +  }
    +  }
    +

    + 此类字段可能违反非 null 约束。 在上例中,setValue 形参注解为非 null,但是如果没有调用 setter,getValue 可能返回 null。 +

    + +

    配置检查:

    +
      +
    • 使用忽略可以隐式初始化的字段选项,可控制该字段能够隐式初始化(例如通过依赖项注入)时是否应发出警告。
    • +
    • 使用忽略在 setUp() 方法中初始化的字段选项,可控制在测试用例 setUp() 方法中写入该字段时是否应发出警告。
    • +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NotReleasedValue.html b/original-plugin-raw/zh/inspectionDescriptions/NotReleasedValue.html new file mode 100644 index 000000000..264364614 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NotReleasedValue.html @@ -0,0 +1,10 @@ + + +报告存储在局部变量或形参中的拥有对象,这些对象稍后不会释放或在释放前被另一个值重写。
    + - 如果您使用名称以 allocnew 开头、包含 copy 或者如果您向其发送 retain 消息的方法创建对象,您将获得该对象的所有权。
    + - 您可以使用 releaseautorelease 放弃对象的所有权。
    +Objective-C 内存管理规则要求释放或自动释放每个拥有的对象,请参阅 +内存管理编程指南
    +如果 ARC(自动引用计数)已启用,则此检查会被禁用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NotSuperclass.html b/original-plugin-raw/zh/inspectionDescriptions/NotSuperclass.html new file mode 100644 index 000000000..bc1f51133 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NotSuperclass.html @@ -0,0 +1,5 @@ + + + 在 A 和 B 是类并且 B 不是 A 的超类的条件下,报告在类型 B 的上下文中使用类型 A 的表达式(赋值,转换,作为形参传递,从方法、函数或块返回等)的情况。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NotVisibleClass.html b/original-plugin-raw/zh/inspectionDescriptions/NotVisibleClass.html new file mode 100644 index 000000000..3c6aaac89 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NotVisibleClass.html @@ -0,0 +1,5 @@ + + +报告预声明类但未导入其定义的隐式类用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NotifyCalledOnCondition.html b/original-plugin-raw/zh/inspectionDescriptions/NotifyCalledOnCondition.html new file mode 100644 index 000000000..759b4178a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NotifyCalledOnCondition.html @@ -0,0 +1,26 @@ + + +报告在 java.util.concurrent.locks.Condition 对象上对 notify()notifyAll() 的调用。 +

    + 这可能是编程错误,本应使用 signal()signalAll() 方法的某些变体,否则可能出现 IllegalMonitorStateException。 +

    +

    示例:

    +
    
    +  class C {
    +    final Lock l = new ReentrantLock();
    +    final Condition c = l.newCondition();
    +
    +    void release() {
    +      l.lock();
    +      try {
    +        c.notifyAll(); // 此处可能本应使用 'signalAll()'
    +      } finally {
    +        l.unlock();
    +      }
    +    }
    +  }
    +
    + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NotifyWithoutCorrespondingWait.html b/original-plugin-raw/zh/inspectionDescriptions/NotifyWithoutCorrespondingWait.html new file mode 100644 index 000000000..1667609ef --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NotifyWithoutCorrespondingWait.html @@ -0,0 +1,13 @@ + + +报告对无法为之找到相应 Object.wait() 调用的 Object.notify()Object.notifyAll() 的调用。 +

    此检查仅报告以当前类的目标字段为目标的调用。

    +

    示例:

    +
    
    +  synchronized (synList) {
    +    synList.notify(); //从未调用 synList.wait()
    +  }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NpmUsedModulesInstalled.html b/original-plugin-raw/zh/inspectionDescriptions/NpmUsedModulesInstalled.html new file mode 100644 index 000000000..7cfc260e7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NpmUsedModulesInstalled.html @@ -0,0 +1,7 @@ + + +报告未安装或未在 package.json 依赖项中列出的 require() 调用或 import 语句中的模块。 +

    建议安装此模块和/或将其包含到 package.json 中。

    +

    对于 require() 调用,仅在Node.js Core JavaScript 库范围内的文件中起作用。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NullArgumentToVariableArgMethod.html b/original-plugin-raw/zh/inspectionDescriptions/NullArgumentToVariableArgMethod.html new file mode 100644 index 000000000..d70a215fb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NullArgumentToVariableArgMethod.html @@ -0,0 +1,14 @@ + + +报告对可变 arity 方法的调用,该调用在 vararg 形参位置有一个实参,这个实参要么是 null,要么是 vararg 形参子类型的数组。 +此类实参可能令人困惑,因为不清楚需要 vararg 调用还是非 vararg 调用。 +

    示例:

    +
    
    +  String[] ss = new String[]{"foo", "bar"};
    +  System.out.printf("%s", ss);
    +
    +

    在本例中,不会打印整个数组,而是只打印数组的第一个元素。

    + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NullChecksToSafeCall.html b/original-plugin-raw/zh/inspectionDescriptions/NullChecksToSafeCall.html new file mode 100644 index 000000000..a811ee314 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NullChecksToSafeCall.html @@ -0,0 +1,18 @@ + + +报告可以替换为安全调用的链式 null 检查。 +

    示例:

    +
    
    +  fun test(my: My?) {
    +      if (my != null && my.foo() != null) {}
    +  }
    +
    +

    在应用快速修复后:

    +
    
    +  fun test(my: My?) {
    +      if (my?.foo() != null) {}
    +  }
    +
    + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/NullDereference.html b/original-plugin-raw/zh/inspectionDescriptions/NullDereference.html new file mode 100644 index 000000000..908991507 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NullDereference.html @@ -0,0 +1,14 @@ + + +报告可能包含 nullptr 的指针的取消引用。 +

    示例:

    +
    
    +  using namespace std;
    +  void process(string *a, string b) {
    +    if (a != nullptr || a->length()) {
    +      a = &b;
    +    }
    +  }
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NullThrown.html b/original-plugin-raw/zh/inspectionDescriptions/NullThrown.html new file mode 100644 index 000000000..0e3916a64 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NullThrown.html @@ -0,0 +1,7 @@ + + +报告用作 throw 语句实参的 null 文字。 +

    此类结构会产生通常不应以编程方式抛出的 java.lang.NullPointerException

    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NullableBooleanElvis.html b/original-plugin-raw/zh/inspectionDescriptions/NullableBooleanElvis.html new file mode 100644 index 000000000..e2612e221 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NullableBooleanElvis.html @@ -0,0 +1,17 @@ + + +报告应该使用相等检查而不是 elvis 运算符的情况。 +

    示例:

    +
    
    +fun check(a: Boolean? == null) {
    +    if (a ?: false) throw IllegalStateException()
    +}
    +
    +

    在应用快速修复后:

    +
    
    +fun check(a: Boolean? == null) {
    +    if (a == true) throw IllegalStateException()
    +}
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NullableProblems.html b/original-plugin-raw/zh/inspectionDescriptions/NullableProblems.html new file mode 100644 index 000000000..de0dfd186 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NullableProblems.html @@ -0,0 +1,30 @@ + + +报告与可 null 性注解相关的问题。 +

    示例:

    +
      +
    • 重写方法未注解: +
      
      +abstract class A {
      +  @NotNull abstract String m();
      +}
      +class B extends A {
      +    String m() { return "empty string"; }
      +}
      +    
      +
    • +
    • 注解的基元类型:@NotNull int myFoo;
    • +
    • @Nullable@NotNull 位于同一成员上:@Nullable @NotNull String myFooString;
    • +
    • 可 null 元素的集合被分配到非 null 元素的集合中: +
      
      +void testList(List<@Nullable String> nullableList) {
      +   List<@NotNull String> list2 = nullableList;
      +}
      +    
      +
    • +
    + +

    使用配置注解按钮可指定可 null 性注解,使用复选框可细调该检查提供警告的位置。

    +

    仅当项目或模块的语言级别为 5 或更高,并且类路径上提供可 null 性注解时,此检查才会报告。

    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/NumberEquality.html b/original-plugin-raw/zh/inspectionDescriptions/NumberEquality.html new file mode 100644 index 000000000..cde37a206 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NumberEquality.html @@ -0,0 +1,21 @@ + + +报告使用 ==!= 而不是 equals() 来测试 Number 相等性的代码。 +

    + 使用自动装箱时很容易犯这样的错误:即不比较两个基元,而是比较包装器类型的两个实例,例如使用 Integer 而不是 int。 +

    +

    示例:

    +
      void foo(Integer a, Integer b) {
    +    final boolean bool = a == b;
    +  }
    +
    +

    如果已知 a 为非 null,则可以安全地应用“不安全”的快速修复,并获得类似于如下所示的结果:

    +
      void foo(Integer a, Integer b) {
    +    final boolean bool = a.equals(b);
    +  }
    +
    + +

    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NumericOverflow.html b/original-plugin-raw/zh/inspectionDescriptions/NumericOverflow.html new file mode 100644 index 000000000..a5d7e3aab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NumericOverflow.html @@ -0,0 +1,12 @@ + + +报告计算过程中溢出的表达式。 +通常是意外发生这种情况,并且表明存在错误。 例如,使用了错误的类型或应当反方向移位。 +

    示例:

    +
    
    +  float a = 1.0f/0.0f;
    +  long b = 30 * 24 * 60 * 60 * 1000;
    +  long c = 1000L << 62;
    +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/NumericToString.html b/original-plugin-raw/zh/inspectionDescriptions/NumericToString.html new file mode 100644 index 000000000..1657d2a59 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/NumericToString.html @@ -0,0 +1,20 @@ + + +报告对扩展 Number 的类的对象的 toString() 调用。 +此类调用在国际化环境中通常是不正确的,应该使用一些特定于区域设置的格式。 +

    示例:

    +
    
    +  void print(Double d) {
    +    System.out.println(d.toString());
    +  }
    +
    +解决此问题的一种可能方式是: +
    
    +  void print(Double d) {
    +    System.out.printf("%f%n", d);
    +  }
    +
    +这将使用默认区域设置来格式化数字,该默认区域设置在 JVM 启动期间进行设置,并且基于主机环境。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCClangAnalyzer.html b/original-plugin-raw/zh/inspectionDescriptions/OCClangAnalyzer.html new file mode 100644 index 000000000..3c58dc30b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCClangAnalyzer.html @@ -0,0 +1,7 @@ + + +运行 Clang 分析器并收集它报告的问题。 它仅用于批处理模式。 +此检查要求将您的项目配置为使用 Apple LLVM Compiler 4.x 或更高版本。 +将其关闭可以加速批处理分析。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCClangCompiler.html b/original-plugin-raw/zh/inspectionDescriptions/OCClangCompiler.html new file mode 100644 index 000000000..2c52e0777 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCClangCompiler.html @@ -0,0 +1,7 @@ + + +运行 Clang 编译器并收集它报告的问题。 它由编辑器高亮显示使用并在批处理模式下使用。 +此检查要求将您的项目配置为使用 Apple LLVM Compiler 4.x 或更高版本。 +将其关闭可以加速批处理分析或从编辑器中移除 Clang 高亮显示。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCDFA.html b/original-plugin-raw/zh/inspectionDescriptions/OCDFA.html new file mode 100644 index 000000000..46a62dbcb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCDFA.html @@ -0,0 +1,6 @@ + + +报告上下文相关数据流分析器发现的问题。 +例如:“常量条件”、“悬空指针”、“空解引用”、“不可到达的代码”等。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCGlobalUnused.html b/original-plugin-raw/zh/inspectionDescriptions/OCGlobalUnused.html new file mode 100644 index 000000000..8469613e3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCGlobalUnused.html @@ -0,0 +1,6 @@ + + +驱动未使用的类、全局声明、实例变量、属性、方法和宏检查。 +将其关闭可以加速批处理分析。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCInconsistentNaming.html b/original-plugin-raw/zh/inspectionDescriptions/OCInconsistentNaming.html new file mode 100644 index 000000000..1bd4a9223 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCInconsistentNaming.html @@ -0,0 +1,7 @@ + + +报告与此类符号的命名惯例不匹配的名称。 +

    了解更多。

    +

    2019.1 最新变化

    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCLegacyObjCLiteral.html b/original-plugin-raw/zh/inspectionDescriptions/OCLegacyObjCLiteral.html new file mode 100644 index 000000000..30f531600 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCLegacyObjCLiteral.html @@ -0,0 +1,13 @@ + + +报告旧式代码:集合文字、集合访问器用法和 NSNumber 文字。 +

    示例:

    +
    
    +  NSString *myString = [myArray objectAtIndex:1];
    +
    +

    在应用快速修复后:

    +
    
    +  NSString *myString = myArray[1];
    +
    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCNotLocalizedString.html b/original-plugin-raw/zh/inspectionDescriptions/OCNotLocalizedString.html new file mode 100644 index 000000000..32200208f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCNotLocalizedString.html @@ -0,0 +1,5 @@ + + +报告项目中的非本地化字符串。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCNotReleasedIvar.html b/original-plugin-raw/zh/inspectionDescriptions/OCNotReleasedIvar.html new file mode 100644 index 000000000..4aa0bae2c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCNotReleasedIvar.html @@ -0,0 +1,14 @@ + + +报告存储在实例变量中的未释放的拥有对象。
    +如果符合以下条件,您将获得对象的所有权:
    +- 使用名称以 allocnew 开头或包含 copy
    的方法创建 +- 向其发送 retain 消息
    +- 设置具有retaincopy 特性并与实例变量合成的属性的值
    +要放弃对象的所有权,您需要:
    +- 向其发送 releaseautorelease 消息
    +- 将 nil 分配给与实例变量合成的属性
    +如果 ARC(自动引用计数)已启用,则此检查会被禁用。 如果下面的复选框被关闭,您可以在类的任何方法中释放实例变量。 如果打开,您可以在 dealloctearDownapplicationWillTerminate:、 +didTurnIntoFault 方法以及任何可以从它们调用的方法中释放实例变量。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCSimplifyInspectionLegacy.html b/original-plugin-raw/zh/inspectionDescriptions/OCSimplifyInspectionLegacy.html new file mode 100644 index 000000000..3151a0fad --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCSimplifyInspectionLegacy.html @@ -0,0 +1,5 @@ + + +报告可以简化的代码部分,例如常量条件、相同的 if 分支、无意义的布尔表达式等。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCStringsDuplicateKey.html b/original-plugin-raw/zh/inspectionDescriptions/OCStringsDuplicateKey.html new file mode 100644 index 000000000..84b4d59a3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCStringsDuplicateKey.html @@ -0,0 +1,7 @@ + + +

    + 报告重复的本地化键。 +

    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCStringsMissingLanguage.html b/original-plugin-raw/zh/inspectionDescriptions/OCStringsMissingLanguage.html new file mode 100644 index 000000000..aa9e32e00 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCStringsMissingLanguage.html @@ -0,0 +1,7 @@ + + +

    + 报告其他语言中缺少的本地化键。 +

    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCStringsUnusedKey.html b/original-plugin-raw/zh/inspectionDescriptions/OCStringsUnusedKey.html new file mode 100644 index 000000000..96cd49d21 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCStringsUnusedKey.html @@ -0,0 +1,7 @@ + + +

    + 报告未使用的本地化键。 +

    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCUnusedClass.html b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedClass.html new file mode 100644 index 000000000..adb11d350 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedClass.html @@ -0,0 +1,5 @@ + + +报告从未使用过的 Objective-C 类和协议。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCUnusedConcept.html b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedConcept.html new file mode 100644 index 000000000..672bd5b4d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedConcept.html @@ -0,0 +1,7 @@ + + +报告从未使用过并且可以安全移除的概念。 + +

    2019.3 最新变化

    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCUnusedGlobalDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedGlobalDeclaration.html new file mode 100644 index 000000000..c625a53a8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedGlobalDeclaration.html @@ -0,0 +1,5 @@ + + +报告从未使用且可以安全移除的全局函数和变量声明。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCUnusedIncludeDirective.html b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedIncludeDirective.html new file mode 100644 index 000000000..7166bcfee --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedIncludeDirective.html @@ -0,0 +1,16 @@ + + +报告未使用或不需要且可以安全移除的 include 指令。 +
    +
    检测完全未使用的 include 指令
    +
    如果在翻译单元中从未使用过 include 指令的声明,则认为该指令未使用。
    +
    检测未直接使用的 include 指令
    +
    如果未直接在文件中使用 include 指令的声明,则认为该指令未使用。 搭配“包括您使用的内容”策略时效果最佳。
    +
    检测不需要的 include 指令
    +
    检测要编译的文件的最少 include 指令集。 所有其他 #include 指令都被视为未使用。
    +
    +

    使用下面的复选框在头文件中运行检查。

    + +

    2019.2 最新变化

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCUnusedInstanceVariable.html b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedInstanceVariable.html new file mode 100644 index 000000000..0fe69e0e7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedInstanceVariable.html @@ -0,0 +1,5 @@ + + +报告从未访问或写入的实例变量。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCUnusedMacro.html b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedMacro.html new file mode 100644 index 000000000..9fd7bc21c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedMacro.html @@ -0,0 +1,5 @@ + + +报告从未使用且可以安全移除的宏定义。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCUnusedMethod.html b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedMethod.html new file mode 100644 index 000000000..2d21b3c06 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedMethod.html @@ -0,0 +1,5 @@ + + +报告从未调用过的方法,例如,在发送消息表达式、@selector 表达式以及其他位置(如 XIB 文件)中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCUnusedProperty.html b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedProperty.html new file mode 100644 index 000000000..0a7d4d7c4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedProperty.html @@ -0,0 +1,5 @@ + + +报告从未访问或写入的属性,无论是在限定表达式中还是在访问器方法调用中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCUnusedStruct.html b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedStruct.html new file mode 100644 index 000000000..24a774b7c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedStruct.html @@ -0,0 +1,5 @@ + + +报告那些从未使用过并且可以安全移除的类和结构。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCUnusedTemplateParameter.html b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedTemplateParameter.html new file mode 100644 index 000000000..942a40448 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedTemplateParameter.html @@ -0,0 +1,5 @@ + + +报告从未使用且可以安全移除的模板形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OCUnusedTypeAlias.html b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedTypeAlias.html new file mode 100644 index 000000000..f49ce3651 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OCUnusedTypeAlias.html @@ -0,0 +1,7 @@ + + +报告从未使用过并且可以安全移除的语句。 + +

    2020.2 最新变化

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ObjectAllocationIgnoredJS.html b/original-plugin-raw/zh/inspectionDescriptions/ObjectAllocationIgnoredJS.html new file mode 100644 index 000000000..00197c239 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ObjectAllocationIgnoredJS.html @@ -0,0 +1,6 @@ + + +报告所分配对象的结果被忽略的对象分配,例如 new Error(); 作为不带任何赋值的语句。 +此类分配表达式可以指示奇怪的对象初始化策略。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ObjectAllocationInLoop.html b/original-plugin-raw/zh/inspectionDescriptions/ObjectAllocationInLoop.html new file mode 100644 index 000000000..637ff7152 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ObjectAllocationInLoop.html @@ -0,0 +1,39 @@ + + +报告循环内的对象或数组分配。 虽然不一定是问题,但循环内的对象分配是查找内存泄漏和性能问题的好地方。 +

    + 检查会报告以下结构: +

    +
      +
    • 通过 new 运算符进行的显式分配
    • +
    • 已知会返回新对象的方法
    • +
    • 实例绑定方法引用
    • +
    • 捕获变量或 this 引用的 lambda
    • +
    +

    示例:

    +
    
    +  // 显式分配
    +  for (Status status : Status.values()) {
    +    declarationsMap.put(status, new ArrayList<>());
    +  }
    +
    +  // Lambda 捕获变量
    +  String message = "Engine running.";
    +  for (Engine engine : engines) {
    +      if (!isRunning(engine)) {
    +          logger.warn(() -> {
    +              return String.format(message);
    +          });
    +      }
    +  }
    +
    +  // 实例绑定方法引用
    +  for(Node node : nodes) {
    +    descriptor = node.getDescription();
    +    descriptor.ifPresent(dynamicTestExecutor::execute);
    +  }
    +
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ObjectEquality.html b/original-plugin-raw/zh/inspectionDescriptions/ObjectEquality.html new file mode 100644 index 000000000..7f33ff014 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ObjectEquality.html @@ -0,0 +1,22 @@ + + +报告使用 ==!= 而不是 equals() 来测试 Object 相等性的代码。 +

    使用 ==!= 比较对象通常是错误的,因为它不是通过相等性而是通过同一性来比较对象。 + 不报告与 null 的比较。 + 数组、StringNumber 比较由单独的检查报告。 +

    +

    示例:

    +
      if (list1 == list2) {
    +    return;
    +  }
    +
    +

    在应用快速修复后:

    +
      if (Object.equals(list1, list2)) {
    +    return;
    +  }
    +
    + +

    +

    使用检查设置为此检查配置异常。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ObjectEqualsCanBeEquality.html b/original-plugin-raw/zh/inspectionDescriptions/ObjectEqualsCanBeEquality.html new file mode 100644 index 000000000..1e7a52628 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ObjectEqualsCanBeEquality.html @@ -0,0 +1,10 @@ + + +报告对可以替换为 ==!= 表达式而又不改变语义的 equals() 的调用。 +

    当这些调用用于比较没有自身的 equals() 实现但使用默认 Object.equals()final 类时,可以替换这些调用。 +此替换可能会提升性能。

    +

    enum 值上的 equals() 调用进行单独检查:对 Enum 值调用 'equals()'。

    + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ObjectInstantiationInEqualsHashCode.html b/original-plugin-raw/zh/inspectionDescriptions/ObjectInstantiationInEqualsHashCode.html new file mode 100644 index 000000000..086969bb8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ObjectInstantiationInEqualsHashCode.html @@ -0,0 +1,31 @@ + + +报告 equals()hashCode()compareTo()Comparator.compare() 方法内(临时)新对象的构造。 +

    + 除了构造函数调用之外,还可以通过在 foreach 语句中自动装箱或迭代器创建来创建新对象。 + 这可能会导致性能问题,例如,将对象添加到 SetMap 时,这些方法将在这些地方被经常调用。 +

    +

    + 当在 throwassert 语句中创建对象时,该检查将不会报告。 +

    +

    示例:

    +
    
    +  class Person {
    +    private String name;
    +    private int age;
    +
    +    public boolean equals(Object o) {
    +      return Arrays.equals(new Object[] {name, age}, new Object[] {((Foo)o).name, ((Foo)o).age});
    +    }
    +
    +    public int hashCode() {
    +      return (name + age).hashCode();
    +    }
    +  }
    +
    +

    + 在此示例中,在 equals() 内部创建了两个额外的数组,age 字段的用法需要装箱,而 name + age 隐式地创建了一个新字符串。 +

    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ObjectLiteralToLambda.html b/original-plugin-raw/zh/inspectionDescriptions/ObjectLiteralToLambda.html new file mode 100644 index 000000000..50919b259 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ObjectLiteralToLambda.html @@ -0,0 +1,25 @@ + + +报告使用单个 abstract 方法实现 Java 接口的匿名对象文字,该方法可使用 lambda 表达式转换为调用。 +

    示例:

    +
    
    +class SomeService {
    +  val threadPool = Executors.newCachedThreadPool()
    +    
    +  fun foo() {
    +    threadPool.submit(object : Runnable {
    +      override fun run() {
    +        println("hello")
    +      }
    +    })
    +  }
    +}
    +
    +

    在应用快速修复后:

    +
    
    +  fun foo() {
    +    threadPool.submit { println("hello") }
    +  }
    +
    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ObjectNotify.html b/original-plugin-raw/zh/inspectionDescriptions/ObjectNotify.html new file mode 100644 index 000000000..13bc4b69e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ObjectNotify.html @@ -0,0 +1,6 @@ + + +报告对 Object.notify() 的调用。 虽然偶尔有用,但在几乎所有情况下,Object.notifyAll() 都是更好的选择,因为调用 Object.notify() 可能导致死锁。 +有关讨论,请参阅 Doug Lea 的 Concurrent Programming in Java。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ObjectPropertyName.html b/original-plugin-raw/zh/inspectionDescriptions/ObjectPropertyName.html new file mode 100644 index 000000000..6ebd34609 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ObjectPropertyName.html @@ -0,0 +1,27 @@ + + +报告不遵循命名惯例的属性。 +

    报告了以下属性:

    +
      +
    • 顶级属性
    • +
    • 对象和伴生对象中的属性
    • +
    +

    您可以在检查选项中指定所需的模式。

    +

    建议的命名惯例:必须以大写字母开头,使用驼峰拼写法并且没有下划线。

    +

    示例:

    +
    
    +  // 顶级属性
    +  val USER_NAME_FIELD = "UserName"
    +  // 包含对单例对象的引用的顶级属性
    +  val PersonComparator: Comparator<Person> = /*...*/
    +
    +  class Person {
    +    companion object {
    +      // 伴生对象中的属性
    +      val NO_NAME = Person()
    +    }
    +  }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ObjectToString.html b/original-plugin-raw/zh/inspectionDescriptions/ObjectToString.html new file mode 100644 index 000000000..996752a33 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ObjectToString.html @@ -0,0 +1,25 @@ + + +报告对使用 java.lang.Object 中默认实现的 toString() 的调用。 +

    该默认实现很少是有意为之,可能是误用。

    +

    + 此检查将忽略对包含 java.lang.Object、接口或 abstract 类类型的对象的 toString() 调用。 +

    +

    示例:

    +
    
    +  class Bar {
    +      void foo1(Bar bar) {
    +          String s = bar.toString(); // 警告
    +          /* ... */
    +      }
    +
    +      void foo2(Object obj) {
    +          String s = obj.toString(); // 此处无警告
    +          /* ... */
    +      }
    +  }
    +
    + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ObjectsEqualsCanBeSimplified.html b/original-plugin-raw/zh/inspectionDescriptions/ObjectsEqualsCanBeSimplified.html new file mode 100644 index 000000000..ca367f7da --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ObjectsEqualsCanBeSimplified.html @@ -0,0 +1,18 @@ + + +报告对 Objects.equals(a, b) 的调用,其中第一个实参是静态已知为非 null。 +

    如果两个实参都是基元,此类调用可以安全地替换为 a.equals(b)a == b

    +

    示例:

    +
    
    +  String defaultName = "default";
    +  boolean isDefault = Objects.equals(defaultName, name);
    +
    +

    在应用快速修复后:

    +
    
    +  String defaultName = "default";
    +  boolean isDefault = defaultName.equals(name);
    +
    + +

    2018.3 最新变化

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ObsoleteCollection.html b/original-plugin-raw/zh/inspectionDescriptions/ObsoleteCollection.html new file mode 100644 index 000000000..68f769648 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ObsoleteCollection.html @@ -0,0 +1,11 @@ + + +报告 java.util.Vectorjava.util.Hashtablejava.util.Stack 的用法。 +

    这些类的用法通常可以分别替换为 java.util.ArrayListjava.util.HashMapjava.util.ArrayDeque 的用法。 +虽然仍受支持,但以前的类已被 JDK1.2 集合类废弃,在新开发中或许不宜使用。 + +

    +使用在需要的位置忽略废弃的集合类型选项可以忽略任何将废弃的集合用作方法实参或分配给需要废弃类型的变量的情况。 +启用此选项可能会消耗大量处理器资源。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ObsoleteExperimentalCoroutines.html b/original-plugin-raw/zh/inspectionDescriptions/ObsoleteExperimentalCoroutines.html new file mode 100644 index 000000000..a151e3328 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ObsoleteExperimentalCoroutines.html @@ -0,0 +1,6 @@ + + +报告使用实验性协同程序的代码。 +

    此类用法与 Kotlin 1.3+ 不兼容,应更新。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ObsoleteKotlinJsPackages.html b/original-plugin-raw/zh/inspectionDescriptions/ObsoleteKotlinJsPackages.html new file mode 100644 index 000000000..09d997174 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ObsoleteKotlinJsPackages.html @@ -0,0 +1,6 @@ + + +报告 kotlin.domkotlin.browser 软件包的用法。 +

    在 Kotlin 1.4+ 中,这些软件包分别移至 kotlinx.domkotlinx.browser

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ObviousNullCheck.html b/original-plugin-raw/zh/inspectionDescriptions/ObviousNullCheck.html new file mode 100644 index 000000000..c2152e8ae --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ObviousNullCheck.html @@ -0,0 +1,7 @@ + + +报告是否在明显为非 null 的值(例如,新创建的对象)上调用 null 检查方法(例如,Objects.requireNonNullAssert.assertNotNull)。 这种检查是冗余的,可能表明存在编程错误。 + +

    2017.2 最新变化

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OctalAndDecimalIntegersMixed.html b/original-plugin-raw/zh/inspectionDescriptions/OctalAndDecimalIntegersMixed.html new file mode 100644 index 000000000..ce05574a5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OctalAndDecimalIntegersMixed.html @@ -0,0 +1,16 @@ + + +报告单个数组初始值设定项中混合的八进制和十进制整数文字。 +当您将数字列表复制到数组初始值设定项中时,可能会发生这种情况。 +数组中的某些数字可能用零填充,编译器会将它们解释为八进制。 +

    示例:

    +
    int[] elapsed = {1, 13, 052};
    +

    应用移除前导零的快速修复后:

    +
    int[] elapsed = {1, 13, 52};
    +

    如果它是一个八进制数(例如,在内联变量之后),那么您可以使用另一个将八进制转换为十进制的快速修复:

    +int[] elapsed = {1, 13, 42}; + +

    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OctalLiteral.html b/original-plugin-raw/zh/inspectionDescriptions/OctalLiteral.html new file mode 100644 index 000000000..ac296027d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OctalLiteral.html @@ -0,0 +1,22 @@ + + +报告八进制整数文字。 某些编码标准禁止使用八进制文字,因为它们可能容易与十进制文字混淆。 +

    示例:

    +
    
    +  int i = 015;
    +  int j = 0_777;
    +
    +

    此检查有两种不同的快速修复。 + 应用将八进制文字转换为十进制文字快速修复后,代码变为:

    +
    
    +  int i = 13;
    +  int j = 511;
    +
    +

    应用移除前导零以变为十进制快速修复后,代码变为:

    +
    
    +  int i = 15;
    +  int j = 777;
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OnDemandImport.html b/original-plugin-raw/zh/inspectionDescriptions/OnDemandImport.html new file mode 100644 index 000000000..59f3191c7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OnDemandImport.html @@ -0,0 +1,12 @@ + + +报告任何涵盖整个软件包的 import 语句 ('* imports')。 +

    某些编码标准禁止此类 import 语句。

    +

    + 您可以将 IntelliJ IDEA 配置为使用优化 import 命令检测和修正此类语句。 转到设置 | 编辑器 | 代码样式 | Java | 导入,确保启用使用单个类导入选项,并在将 import 与 '*' 搭配使用的类计数将静态 import 与 '*' 搭配使用的名称计数字段中指定值。 + 因此,对于不打算更改的代码库的脱机报告,此检查非常有用。 +

    + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OneButtonGroup.html b/original-plugin-raw/zh/inspectionDescriptions/OneButtonGroup.html new file mode 100644 index 000000000..1605d702f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OneButtonGroup.html @@ -0,0 +1,5 @@ + + +报告仅包含一个 JRadioButtonButtonGroup 实例。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/OneWayWebMethod.html b/original-plugin-raw/zh/inspectionDescriptions/OneWayWebMethod.html new file mode 100644 index 000000000..715ba670c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OneWayWebMethod.html @@ -0,0 +1,6 @@ + + +

    报告使用 @javax.jws.Oneway 注解的具有非 void 返回类型的 Java Web 服务方法。

    +

    有两种可能的快速修复方法:从方法中移除 @Oneway 注解或将返回类型更改为 void

    + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/OptionEqualsSome.html b/original-plugin-raw/zh/inspectionDescriptions/OptionEqualsSome.html new file mode 100644 index 000000000..2b18a3456 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OptionEqualsSome.html @@ -0,0 +1,16 @@ + + +

    报告简化 OptionSome(x) 相等检查的机会。

    +

    示例:

    +
    
    +  option == Some(x)
    +  Some(x) != option
    +
    +

    在应用快速修复后:

    +
    
    +  option.contains(x)
    +  !option.contains(x)
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OptionalAssignedToNull.html b/original-plugin-raw/zh/inspectionDescriptions/OptionalAssignedToNull.html new file mode 100644 index 000000000..c8603fc63 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OptionalAssignedToNull.html @@ -0,0 +1,25 @@ + + +报告 null 分配给 Optional 变量或从返回 Optional 的方法返回。 +

    建议您使用 Optional.empty()(或 Optional.absent() 用于 Guava)来表示空值。

    +

    示例:

    +
    
    +  Optional<Integer> foo(boolean flag) {
    +    return flag ? Optional.of(42) : null;
    +  }
    +
    +

    在应用快速修复后:

    +
    
    +  Optional<Integer> foo(boolean flag) {
    +    return flag ? Optional.of(42) : Optional.empty();
    +  }
    +
    + +

    配置检查:

    +

    + 使用 报告 Optional 与 null 的比较 选项还可以报告optional == null 之类的比较。 虽然在极少数情况下(例如延迟初始化的可选字段)这可能是正确的,但可选变量通常不会为 null,并且可能应为 optional.isPresent()。 +

    +

    仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。

    +

    2017.2 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OptionalContainsCollection.html b/original-plugin-raw/zh/inspectionDescriptions/OptionalContainsCollection.html new file mode 100644 index 000000000..e0dd5bbc4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OptionalContainsCollection.html @@ -0,0 +1,19 @@ + + +报告包含数组或集合类型形参的 java.util.Optionalcom.google.common.base.Optional 类型。 +

    在此类情况下,使用空的数组或集合来表示无结果更为清晰。

    +

    示例:

    +
    
    +  Optional<List<Integer>> foo() {
    +    return Optional.empty();
    +  }
    +
    +

    此代码可能如下所示:

    +
    
    +  List<Integer> foo() {
    +    return new List<>();
    +  }
    +  
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OptionalExpectation.html b/original-plugin-raw/zh/inspectionDescriptions/OptionalExpectation.html new file mode 100644 index 000000000..06b9714bc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OptionalExpectation.html @@ -0,0 +1,17 @@ + + +报告某些平台模块中没有实际注解的可选预期注解。 +

    示例:

    +
    // 通用代码
    +@OptionalExpectation
    +expect annotation class JvmName(val name: String)
    +
    +@JvmName(name = "JvmFoo")
    +fun foo() { }
    +
    +// jvm 代码
    +actual annotation class JvmName(val name: String)
    +
    +

    该检查还会报告对非 JVM 平台(例如 Native)省略 actual annotation class JvmName 的情况。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OptionalGetWithoutIsPresent.html b/original-plugin-raw/zh/inspectionDescriptions/OptionalGetWithoutIsPresent.html new file mode 100644 index 000000000..70260034e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OptionalGetWithoutIsPresent.html @@ -0,0 +1,15 @@ + + +报告对 Optional 上的 get() 的调用而不检查它是否有值。 +

    在空 Optional 实例上调用 Optional.get() 将抛出异常。

    +

    示例:

    +
    
    +  void x(List<Integer> list) {
    +    final Optional<Integer> optional =
    +      list.stream().filter(x -> x > 10).findFirst();
    +    final Integer result = optional.get(); // 此处有问题
    +  }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OptionalIsPresent.html b/original-plugin-raw/zh/inspectionDescriptions/OptionalIsPresent.html new file mode 100644 index 000000000..229345d08 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OptionalIsPresent.html @@ -0,0 +1,15 @@ + + +报告可以用函数样式重写的条件,如 if(Optional.isPresent()),因为它更短并更容易阅读。 +

    示例:

    +
    
    +  if (str.isPresent()) str.get().trim();
    +
    +

    在应用快速修复后:

    +
    
    +  str.ifPresent(String::trim);
    +
    + +

    仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OptionalToIf.html b/original-plugin-raw/zh/inspectionDescriptions/OptionalToIf.html new file mode 100644 index 000000000..a163fc4b2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OptionalToIf.html @@ -0,0 +1,23 @@ + + +报告可替换为 if 语句序列的 Optional 调用链。 +

    示例:

    +
    
    +  return Optional.ofNullable(name)
    +    .map(this::extractInitials)
    +    .map(initials -> initials.toUpperCase(Locale.ENGLISH))
    +    .orElseGet(this::getDefault);
    +
    +

    在应用快速修复后:

    +
    
    +  if (name != null) {
    +    String initials = extractInitials(name);
    +    if (initials != null) return initials.toUpperCase(Locale.ENGLISH);
    +  }
    +  return getDefault();
    +
    + +

    仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。

    +

    2020.2 最新变化

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OptionalUsedAsFieldOrParameterType.html b/original-plugin-raw/zh/inspectionDescriptions/OptionalUsedAsFieldOrParameterType.html new file mode 100644 index 000000000..30898b764 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OptionalUsedAsFieldOrParameterType.html @@ -0,0 +1,19 @@ + + +报告 java.util.Optional<T>java.util.OptionalDoublejava.util.OptionalIntjava.util.OptionalLongcom.google.common.base.Optional 用为字段或形参的类型的任何情况。 +

    Optional 设计为在需要一个明确的方式来表示 "没有结果"的情况下,为库方法的返回类型提供有限的机制。

    +

    如果类需要 Serializable,则使用 java.util.Optional 类型的字段也有问题,因为 java.util.Optional 不可序列化。

    +

    示例:

    +
    
    +  class MyClass {
    +    Optional<String> name; // Optional 字段
    +
    +    // Optional 形参
    +    void setName(Optional<String> name) {
    +      this.name = name;
    +    }
    +  }
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OraMissingBodyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/OraMissingBodyInspection.html new file mode 100644 index 000000000..d969037e4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OraMissingBodyInspection.html @@ -0,0 +1,10 @@ + + +报告缺少主体声明的软件包和对象类型规范。 +

    声明例程的软件包规范和对象类型以及带有光标的软件包规范必须具有实现这些例程和光标的主体声明。 在程序代码中调用例程或光标时,缺少主体会导致运行时错误。

    +

    示例(Oracle):

    +
    CREATE OR REPLACE PACKAGE ppp IS
    +    FUNCTION foo(a INT) RETURN INT;
    +END;
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OraOverloadInspection.html b/original-plugin-raw/zh/inspectionDescriptions/OraOverloadInspection.html new file mode 100644 index 000000000..60f4a65bb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OraOverloadInspection.html @@ -0,0 +1,15 @@ + + +报告 Oracle 中子程序重载的无效情况。 +

    示例(Oracle):

    +
    DECLARE
    +    SUBTYPE fff IS BINARY_INTEGER;
    +    SUBTYPE ggg IS NATURAL;
    +    PROCEDURE foo (a IN ggg) IS BEGIN NULL; END;
    +    PROCEDURE foo (a IN fff) IS BEGIN NULL; END;
    +BEGIN
    +    NULL;
    +END;
    +

    您不能重载形参仅在子类型方面不同的子程序。 例如,您不能重载一个接受 BINARY INTEGER 形参而另一个接受 NATURAL 形参的过程。 有关过程重载限制的更多信息,请参阅 docs.oracle.com 上的“重载限制”页面。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OraUnmatchedForwardDeclarationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/OraUnmatchedForwardDeclarationInspection.html new file mode 100644 index 000000000..e5cb27bf2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OraUnmatchedForwardDeclarationInspection.html @@ -0,0 +1,20 @@ + + +报告在代码中缺少实现的过程和函数的声明。 +

    在 Oracle 中,您可以声明一个没有主体的过程或函数,并在稍后的某个时间编写实现。 该检查将报告未实现的此类过程或函数的名称。

    +

    示例(Oracle):

    +
    DECLARE PROCEDURE foo(a int, b varchar2);
    +BEGIN
    +    NULL;
    +END;
    +

    foo 过程已被声明,但缺少实现。 我们可以添加实现来消除错误。

    +
    DECLARE PROCEDURE foo(a int, b varchar2);
    +  PROCEDURE foo(a int, b varchar2) IS
    +BEGIN
    +    NULL;
    +END;
    +BEGIN
    +    NULL;
    +END;
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OtherCpp.html b/original-plugin-raw/zh/inspectionDescriptions/OtherCpp.html new file mode 100644 index 000000000..42ba951cc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OtherCpp.html @@ -0,0 +1,5 @@ + + +报告与 C/C++ 相关的其他问题。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OtherObjC.html b/original-plugin-raw/zh/inspectionDescriptions/OtherObjC.html new file mode 100644 index 000000000..448913822 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OtherObjC.html @@ -0,0 +1,5 @@ + + +报告与 Objective-C 相关的其他问题。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverflowingLoopIndex.html b/original-plugin-raw/zh/inspectionDescriptions/OverflowingLoopIndex.html new file mode 100644 index 000000000..fb6ce1e33 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverflowingLoopIndex.html @@ -0,0 +1,16 @@ + + +报告没有索引溢出就无法完成的循环或根本不循环的循环。 +之所以发生这种情况,通常是因为更新操作中有错误。 +

    示例:

    +
    
    +  void foo(int s) {
    +    for (int i = s; i > 12; i++) { // i-- 应在此处
    +      System.out.println(i);
    +    }
    +  }
    +
    + +

    2019.1 最新变化

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverloadedMethodsWithSameNumberOfParameters.html b/original-plugin-raw/zh/inspectionDescriptions/OverloadedMethodsWithSameNumberOfParameters.html new file mode 100644 index 000000000..0495fa8c0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverloadedMethodsWithSameNumberOfParameters.html @@ -0,0 +1,17 @@ + + +报告在同一类中声明、具有相同名称和相同数量形参的方法。 +此类重载可能非常令人困惑,因为可能不清楚调用的是哪个重载。 +

    示例:

    +
    
    +  class Main {
    +    public static void execute(Runnable r) {}
    +    public static <T> void execute(RunnableFuture<T> c) {}
    +  }
    +
    + +

    + 使用该选项可以忽略形参类型绝对不兼容的重载方法。 +

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverloadedVarargsMethod.html b/original-plugin-raw/zh/inspectionDescriptions/OverloadedVarargsMethod.html new file mode 100644 index 000000000..1478ebb20 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverloadedVarargsMethod.html @@ -0,0 +1,12 @@ + + +报告与类或超类中的其他方法同名的 vararg 方法。 +采用可变数量实参的重载方法可能非常令人困惑,因为通常不清楚调用的是哪个重载。 +

    示例:

    +
    
    +    public void execute(Runnable... r) {} // 警告
    +    public void execute(Runnable r1, Runnable r2) {}
    +
    + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverlyComplexArithmeticExpression.html b/original-plugin-raw/zh/inspectionDescriptions/OverlyComplexArithmeticExpression.html new file mode 100644 index 000000000..4a3c5c81e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverlyComplexArithmeticExpression.html @@ -0,0 +1,12 @@ + + +报告具有过多项的算术表达式。 此类表达式可能难以理解并且可能包含错误。 +

    形参、字段引用和其他主要表达式均计为一项。

    +

    示例: +

    int calc(int a, int b) {
    +        return a + a + a + b + b + b + b; // 该行包含 7 个项并将被报告。
    +    }
    + +

    使用下面的字段可指定算术表达式中允许的项数。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverlyComplexArithmeticExpressionJS.html b/original-plugin-raw/zh/inspectionDescriptions/OverlyComplexArithmeticExpressionJS.html new file mode 100644 index 000000000..3240f5f92 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverlyComplexArithmeticExpressionJS.html @@ -0,0 +1,9 @@ + + + +报告包含太多项的算术表达式。 此类表达方式可能令人困惑,并且容易出错。 + +

    + 使用下面的字段可指定算术表达式中允许的最大项数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverlyComplexBooleanExpression.html b/original-plugin-raw/zh/inspectionDescriptions/OverlyComplexBooleanExpression.html new file mode 100644 index 000000000..fe7f4a2a1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverlyComplexBooleanExpression.html @@ -0,0 +1,15 @@ + + +报告包含太多项的布尔表达式。 此类表达方式可能令人困惑,并且容易出错。 +

    示例:

    +
    
    +  cond(x1) && cond(x2) ^ cond(x3) && cond(x4);
    +
    + +

    配置检查:

    +
      +
    • 使用最大项数字段可以指定布尔表达式中允许的最大项数。
    • +
    • 使用忽略纯合取和析取选项可以忽略重复使用单一布尔运算符的布尔表达式。
    • +
    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverlyComplexBooleanExpressionJS.html b/original-plugin-raw/zh/inspectionDescriptions/OverlyComplexBooleanExpressionJS.html new file mode 100644 index 000000000..a17d0d97a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverlyComplexBooleanExpressionJS.html @@ -0,0 +1,9 @@ + + + +报告包含太多项的布尔表达式。 此类表达方式可能令人困惑,并且容易出错。 + +

    + 使用下面的字段可指定算术表达式中允许的最大项数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverlyLargePrimitiveArrayInitializer.html b/original-plugin-raw/zh/inspectionDescriptions/OverlyLargePrimitiveArrayInitializer.html new file mode 100644 index 000000000..98d0d6b14 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverlyLargePrimitiveArrayInitializer.html @@ -0,0 +1,13 @@ + + +报告包含过多元素的基元数组的数组初始值设定项表达式。 此类初始值设定项可能会导致过大的类文件,因为必须生成代码才能初始化每个数组元素。 在内存或带宽受限的环境中,从资源文件加载大型基元数组可能更高效。 +

    + 此检查适用于 Java ME 和其他资源高度受限的环境。 + 不加考虑地应用此检查的结果可能会对代码清晰度和设计产生负面影响。 +

    + +

    + 使用该选项可以指定基元数组初始值设定项中允许的最大元素数。 +

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverlyLongLambda.html b/original-plugin-raw/zh/inspectionDescriptions/OverlyLongLambda.html new file mode 100644 index 000000000..98db49888 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverlyLongLambda.html @@ -0,0 +1,15 @@ + + +报告语句数超过指定最大值的 lambda 表达式。 +

    过长的 lambda 表达式可能令人困惑,将语句提取到单独的方法中通常会更好。

    +

    以下语句不计算在内:

    +
      +
    • 空语句(分号)
    • +
    • 块语句
    • +
    • for 循环初始化语句,即 for(int i = ...;...) 语句内的 int i = ...
    • +
    • for 循环 update 语句,即 for(int i = ...;...; i += 2) 语句内的 i += 2
    • +
    + +

    使用非注释源语句限制字段可指定 lambda 表达式中允许的最大语句数。

    + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverlyStrongTypeCast.html b/original-plugin-raw/zh/inspectionDescriptions/OverlyStrongTypeCast.html new file mode 100644 index 000000000..ab806683b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverlyStrongTypeCast.html @@ -0,0 +1,23 @@ + + +报告过强的类型转换。 例如,将对象转换为 ArrayList,将其转换为 List 也可以。 +

    + 注意:与冗余类型转换检查非常相似,如果您有意使用过强的转换来生成 ClassCastException,则对此检查应用修正可能会改变程序的语义。 +

    +

    示例:

    +
    
    +  interface Super {
    +    void doSmth();
    +  }
    +  interface Sub extends Super { }
    +
    +  void use(Object obj) {
    +    // 警告:可以使用 ((Super)obj).doSmth()
    +    ((Sub)obj).doSmth();
    +  }
    +
    + +

    + 在代码中有匹配的 instanceof 检查时,使用下面的复选框可忽略转换。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverridableMethodCallDuringObjectConstruction.html b/original-plugin-raw/zh/inspectionDescriptions/OverridableMethodCallDuringObjectConstruction.html new file mode 100644 index 000000000..a279fd1dc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverridableMethodCallDuringObjectConstruction.html @@ -0,0 +1,34 @@ + + +报告在对象构造期间对当前类的可重写方法的调用。 +

    如果方法位于以下位置,则会在对象构造期间调用: +

      +
    • 构造函数
    • +
    • 非 static 实例初始值设定项
    • +
    • 非 static 字段初始值设定项
    • +
    • clone() 方法
    • +
    • readObject() 方法
    • +
    • readObjectNoData() 方法
    • +

      如果方法未被声明为 finalstaticprivate,则该方法可重写。 + 即使可重写,package-local 方法也被认为是安全的。 此类调用可能会导致难以捉摸的错误,因为对象初始化可能发生在方法调用之前。

      +

      示例:

      +
      
      +  class Parent {
      +    void someMethod() { }
      +  }
      +
      +  class Child extends Parent {
      +    Child() {
      +      someMethod();
      +    }
      +  }
      +
      + +

      此检查与以下检查共享功能:

      +
        +
      • 对象构造期间调用的 abstract 方法
      • +
      • 在对象构造期间调用的重写的方法
      • +
      +

      一次只能启用一个检查,以防止警告重复。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverriddenAttributeMismatch.html b/original-plugin-raw/zh/inspectionDescriptions/OverriddenAttributeMismatch.html new file mode 100644 index 000000000..fecf36c84 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverriddenAttributeMismatch.html @@ -0,0 +1,5 @@ + + +报告具有与基本属性的类型/特性不同的类型和/或特性的被重写属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverriddenMethodCallDuringObjectConstruction.html b/original-plugin-raw/zh/inspectionDescriptions/OverriddenMethodCallDuringObjectConstruction.html new file mode 100644 index 000000000..e63898b51 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverriddenMethodCallDuringObjectConstruction.html @@ -0,0 +1,37 @@ + + +报告在对象构造期间对当前类的重写方法的任何调用。 +如果对象构造在内部,则会发生这种情况: +
        +
      • 构造函数
      • +
      • 非 static 实例初始值设定项
      • +
      • 非 static 字段初始值设定项
      • +
      • clone()
      • +
      • readObject()
      • +
      • readObjectNoData()
      • +
      +

      此类调用可能会导致难以捉摸的错误,因为不能保证对象在方法调用发生之前被初始化。

      +

      示例:

      +
      
      +  abstract class Parent {
      +    void someMethod() { }
      +  }
      +
      +  class Child extends Parent {
      +    Child() {
      +      someMethod();
      +    }
      +
      +    @Override
      +    void someMethod() { }
      +  }
      +
      + +

      此检查与以下各项共享其功能:

      +
        +
      • 对象构造期间调用的 abstract 方法检查
      • +
      • 对象构造期间调用的可重写方法检查
      • +
      +

      一次只应启用一个检查,以防止重复警告。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverriddenTypeMismatch.html b/original-plugin-raw/zh/inspectionDescriptions/OverriddenTypeMismatch.html new file mode 100644 index 000000000..9bab5d0c3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverriddenTypeMismatch.html @@ -0,0 +1,6 @@ + + +报告形参或返回类型与基方法类型不同的被重写方法(被重写类中具有相同选择器的方法)。 返回类型是 covariant,这意味着被重写方法可以返回基方法返回类型的任何子类型。 +形参类型是 contravariant,这意味着被重写方法可以具有基方法形参类型的任何超类的形参。 协变和逆变仅适用于对象类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverrideAbstractMember.html b/original-plugin-raw/zh/inspectionDescriptions/OverrideAbstractMember.html new file mode 100644 index 000000000..6659b54a0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverrideAbstractMember.html @@ -0,0 +1,28 @@ + + +

      报告重写 abstract 成员但没有 override 修饰符的函数。

      +

      Scala 不要求开发者对实现 abstract 成员的方法使用 override。 + 尽管如此,最好用 override 标记此类方法,以便在重写关系被损坏时(例如,通过后续重构)由编译器通知。

      +

      示例:

      +
      
      +  trait Base {
      +    def fun(): Int
      +  }
      +
      +  class Impl extends Base {
      +    def fun(): Int = 42
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  trait Base {
      +    def fun(): Int
      +  }
      +
      +  class Impl extends Base {
      +    override def fun(): Int = 42
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverrideOnly.html b/original-plugin-raw/zh/inspectionDescriptions/OverrideOnly.html new file mode 100644 index 000000000..4ce44db23 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverrideOnly.html @@ -0,0 +1,10 @@ + + +报告对使用 @ApiStatus.OverrideOnly 标记的 API 方法的调用。 +

      + @ApiStatus.OverrideOnly 注解表示该方法是 SPI(服务提供程序接口)的一部分。 + 声明库的客户端应实现或重写此类方法,而不是直接调用。 + 使用此注解标记类或接口与使用它标记每个方法相同。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverridingDeprecatedMember.html b/original-plugin-raw/zh/inspectionDescriptions/OverridingDeprecatedMember.html new file mode 100644 index 000000000..2d330f5c9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverridingDeprecatedMember.html @@ -0,0 +1,20 @@ + + +报告从弃用成员继承的声明。 +

      示例:

      +
      
      +open class BaseService {
      +  @Deprecated("obsolete", replaceWith = ReplaceWith("connection"))
      +  open fun connect() {}
      +
      +  open fun connection() {}
      +} 
      +
      +class SomeService: BaseService() {
      +  override fun connect() {
      +    super.connect()
      +  }
      +}
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/OverwrittenKey.html b/original-plugin-raw/zh/inspectionDescriptions/OverwrittenKey.html new file mode 100644 index 000000000..f2eff174a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/OverwrittenKey.html @@ -0,0 +1,16 @@ + + +报告覆盖 Map 键、Set 元素或 add/put 调用序列中的数组元素或使用类似于 Set.of 的 Java 9 工厂方法(将导致运行时异常)的代码。 +

      这通常是复制粘贴错误所致。

      +

      示例:

      +
      
      +  map.put("A", 1);
      +  map.put("B", 2);
      +  map.put("C", 3);
      +  map.put("D", 4);
      +  map.put("A", 5); // 键 "A" 重复,覆盖以前写入的条目
      +
      + +

      2017.3 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PackageAccessibility.html b/original-plugin-raw/zh/inspectionDescriptions/PackageAccessibility.html new file mode 100644 index 000000000..d3335dbcf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PackageAccessibility.html @@ -0,0 +1,8 @@ + + +报告 OSGi 上下文中无法访问的软件包中的类的用法。 +

      例如,该检查会报告位于 .jar 文件中的类的用法,这些类没有被打包为捆绑包,没有被捆绑包导出,也没有在清单文件中导入(如果适用)。

      +

      使用这样的类可能会在运行时导致 "找不到类" 异常。

      +

      默认情况下,该检查在测试中被禁用。 要启用它,请使用检查测试选项。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PackageDirectoryMismatch.html b/original-plugin-raw/zh/inspectionDescriptions/PackageDirectoryMismatch.html new file mode 100644 index 000000000..6441b3727 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PackageDirectoryMismatch.html @@ -0,0 +1,5 @@ + + +报告与文件位置不匹配的 package 指令。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PackageDotHtmlMayBePackageInfo.html b/original-plugin-raw/zh/inspectionDescriptions/PackageDotHtmlMayBePackageInfo.html new file mode 100644 index 000000000..45d0e49f8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PackageDotHtmlMayBePackageInfo.html @@ -0,0 +1,21 @@ + + +报告用于记录软件包的任何 package.html 文件。 +

      从 JDK 1.5 开始,建议您改用 package-info.java 文件,因为此类文件还可以包含软件包注解。 这样,package-info.java 就变成了软件包级别注解和文档的唯一仓库。

      +

      示例:package.html

      +
      
      +<html>
      +  <body>
      +    Documentation example.
      +  </body>
      +</html>
      +
      +

      应用该快速修复后:package-info.java

      +
      
      +/**
      + * Documentation example.
      + */
      +package com.sample;
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PackageInMultipleModules.html b/original-plugin-raw/zh/inspectionDescriptions/PackageInMultipleModules.html new file mode 100644 index 000000000..7e5f45161 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PackageInMultipleModules.html @@ -0,0 +1,10 @@ + + +报告存在于多个模块中的非空软件包。 +当软件包被包含在多个模块中时,很容易在两个模块中创建同名的类。 +依赖于这些模块的模块如果尝试使用这种类,就会发生冲突。 +Java Platform Module System 不允许包含在多个模块中的软件包(也称为 拆分软件包) + +

      仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PackageInfoWithoutPackage.html b/original-plugin-raw/zh/inspectionDescriptions/PackageInfoWithoutPackage.html new file mode 100644 index 000000000..aacfb75bd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PackageInfoWithoutPackage.html @@ -0,0 +1,8 @@ + + +报告没有 package 语句的 package-info.java 文件。 +

      +即便该文件位于其他位置,Javadoc 工具也会考虑默认软件包的此类文件。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PackageJsonMismatchedDependency.html b/original-plugin-raw/zh/inspectionDescriptions/PackageJsonMismatchedDependency.html new file mode 100644 index 000000000..ade000ec4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PackageJsonMismatchedDependency.html @@ -0,0 +1,5 @@ + + +报告未安装或与指定的版本范围不匹配的 package.json 中的依赖项。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PackageName.html b/original-plugin-raw/zh/inspectionDescriptions/PackageName.html new file mode 100644 index 000000000..d49cbd56e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PackageName.html @@ -0,0 +1,12 @@ + + +报告不遵循命名惯例的软件包名称。 +

      您可以在检查选项中指定所需的模式。

      +

      建议的命名惯例:软件包的名称始终小写,并且不应包含下划线。

      +

      示例:

      +org.example.project +

      通常不鼓励使用多词名称,但如果您确实需要使用多个词,则可以将它们串联在一起或使用驼峰拼写法

      +

      示例:

      +org.example.myProject + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PackageNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/PackageNamingConvention.html new file mode 100644 index 000000000..b1e000a5e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PackageNamingConvention.html @@ -0,0 +1,13 @@ + + +报告名称太短、太长或不遵循指定正则表达式模式的软件包。 +

      示例:

      +
      
      +  package io;
      +
      + +

      + 使用选项可以指定软件包名称的最小长度和最大长度,以及匹配有效软件包名称的正则表达式(正则表达式采用标准 java.util.regex 格式)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PackageVisibleField.html b/original-plugin-raw/zh/inspectionDescriptions/PackageVisibleField.html new file mode 100644 index 000000000..ebe148998 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PackageVisibleField.html @@ -0,0 +1,14 @@ + + +报告在没有任何访问修饰符(也称为 package-private)的情况下声明的字段。 +

      不报告常量(即标记为 staticfinal 的字段)。

      +

      示例:

      +
      
      +  public class A {
      +    Object object;             // 警告
      +    final static int MODE = 0; // 常量,无警告
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PackageVisibleInnerClass.html b/original-plugin-raw/zh/inspectionDescriptions/PackageVisibleInnerClass.html new file mode 100644 index 000000000..8d978d174 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PackageVisibleInnerClass.html @@ -0,0 +1,20 @@ + + +报告在没有任何访问修饰符(也称为 package-private)的情况下声明的嵌套类。 +

      示例:

      +
      
      +  public class Outer {
      +    static class Nested {}  // 警告
      +    class Inner {}          // 警告
      +    enum Mode {}            // 警告取决于设置
      +    interface I {}          // 警告取决于设置
      +  }
      +
      + +

      配置检查:

      +
        +
      • 使用忽略软件包可见的内部枚举选项可忽略 package-private 内部枚举。
      • +
      • 使用忽略软件包可见的内部接口选项可忽略 package-private 内部接口。
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PackageWithTooFewClasses.html b/original-plugin-raw/zh/inspectionDescriptions/PackageWithTooFewClasses.html new file mode 100644 index 000000000..9eefa2b0c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PackageWithTooFewClasses.html @@ -0,0 +1,9 @@ + + +报告包含少于指定最小值的类的软件包。 +

      不报告包含子软件包的软件包。 过小的软件包可能表明设计零散。

      + +

      仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

      +

      使用最小类数字段可指定软件包中允许的最小类数。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PackageWithTooManyClasses.html b/original-plugin-raw/zh/inspectionDescriptions/PackageWithTooManyClasses.html new file mode 100644 index 000000000..ffb1b3f22 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PackageWithTooManyClasses.html @@ -0,0 +1,9 @@ + + +报告包含过多类的软件包。 +

      过大的软件包可能表明设计不够明确。

      + +

      仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

      +

      使用最大类数字段可指定软件包中允许的最大类数。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PageflowModelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PageflowModelInspection.html new file mode 100644 index 000000000..42ba97b3b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PageflowModelInspection.html @@ -0,0 +1,16 @@ + + +

      报告不正确的 Seam Pageflow 文件:

      + +
        +
      • 对不可实例化类的引用
      • +
      • 对不扩展所需类的类的引用
      • +
      • 对范围不适当的类的引用
      • +
      • 空标记和特性值
      • +
      • 与所需模式不匹配的标记和特性值(例如,Java 标识符)
      • +
      • 不包含必需子标记或特性的标记
      • +
      • 定义具有重复名称的对象的标记
      • +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PagesFileModelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PagesFileModelInspection.html new file mode 100644 index 000000000..5c5e691ce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PagesFileModelInspection.html @@ -0,0 +1,16 @@ + + +

      报告不正确的 Seam File Navigation index.page.xml 文件:

      + +
        +
      • 对不可实例化类的引用
      • +
      • 对不扩展所需类的类的引用
      • +
      • 对范围不适当的类的引用
      • +
      • 空标记和特性值
      • +
      • 与所需模式不匹配的标记和特性值(例如,Java 标识符)
      • +
      • 不包含必需子标记或特性的标记
      • +
      • 定义具有重复名称的对象的标记
      • +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PagesModelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PagesModelInspection.html new file mode 100644 index 000000000..869d7875d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PagesModelInspection.html @@ -0,0 +1,16 @@ + + +报告不正确的 Seam Navigation pages.xml 文件: + +
        +
      • 对不可实例化类的引用
      • +
      • 对不扩展所需类的类的引用
      • +
      • 对范围不适当的类的引用
      • +
      • 空标记和特性值
      • +
      • 与所需模式不匹配的标记和特性值(例如,Java 标识符)
      • +
      • 不包含必需子标记或特性的标记
      • +
      • 定义具有重复名称的对象的标记
      • +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ParameterCanBeLocal.html b/original-plugin-raw/zh/inspectionDescriptions/ParameterCanBeLocal.html new file mode 100644 index 000000000..fd185154c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ParameterCanBeLocal.html @@ -0,0 +1,22 @@ + + +报告可以用局部变量替换的冗余方法形参。 +

      如果一个形参的所有局部用法都紧跟对该形参的赋值,则可以移除该形参,并且将其用法替换为局部变量。 +拥有此类形参是没有意义的,因为传递给它的值会被重写。 + 此问题通常是重构的结果。

      +

      示例:

      +
      
      +  void test(int p) {
      +    p = 1;
      +    System.out.print(p);
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  void test() {
      +    int p = 1;
      +    System.out.print(p);
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ParameterHidingMemberVariable.html b/original-plugin-raw/zh/inspectionDescriptions/ParameterHidingMemberVariable.html new file mode 100644 index 000000000..c34ee1c9b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ParameterHidingMemberVariable.html @@ -0,0 +1,39 @@ + + +报告与周围类的字段同名的方法形参。 +由于进行此类命名,在有意使用同名字段的情况下,您可能会误用该形参。 +

      建议通过快速修复重命名该形参。

      +

      示例:

      +
      
      +  class Main {
      +    private String value;
      +
      +    public Main(String value) {
      +      value = value.toUpperCase();
      +    }
      +  }
      +  
      + +

      + 您可以为此检查配置以下选项: +

      +
        +
      1. + 对属性 setter 忽略 - 忽略简单 setter 的形参。 +
      2. +
      3. + 忽略从子类不可见的超类字段 - 忽略超类中对此方法不可见的 private 字段。 +
      4. +
      5. + 对构造函数忽略 - 忽略构造函数的形参。 +
      6. +
      7. + 对 abstract 方法忽略 - 忽略 abstract 方法的形参。 +
      8. +
      9. + 对隐藏实例字段的 static 方法形参忽略 - 忽略隐藏实例字段的 static 方法的形参,并忽略隐藏外部类实例字段的 static 内部类中实例方法的形参。 虽然不是严格意义上的隐藏,但此类形参仍然令人困惑。 +
      10. +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ParameterNameDiffersFromOverriddenParameter.html b/original-plugin-raw/zh/inspectionDescriptions/ParameterNameDiffersFromOverriddenParameter.html new file mode 100644 index 000000000..bc1adc284 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ParameterNameDiffersFromOverriddenParameter.html @@ -0,0 +1,27 @@ + + +报告名称与其重写的方法的相应形参不同的形参。 虽然在 Java 中是合法的,但这种不一致的名称可能令人困惑,并减少具有良好命名做法的文档优势。 +

      示例:

      +
      
      +  class Person {
      +    Person(String fullName) {}
      +  }
      +  class Child extends Person {
      +    Child(String name) { super(name); }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Person {
      +    Person(String fullName) {}
      +  }
      +  class Child extends Person {
      +    Child(String fullName) { super(fullName); }
      +  }
      +
      + +

      + 使用选项可以指示是否忽略只有单个字符长度或来自库方法的重写的形参名称。 如果您不希望受到库中使用的可疑命名惯例的约束,那么两者都会很有用。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ParameterNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/ParameterNamingConvention.html new file mode 100644 index 000000000..6bf3853e2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ParameterNamingConvention.html @@ -0,0 +1,12 @@ + + +报告名称太短、太长或不遵循指定正则表达式模式的方法形参。 +

      示例:如果使用默认设置(其中形参名称应以小写字母开头)启用检查,则应报告 void fooBar(int X)

      + + +

      配置检查:

      +

      + 使用选项部分中的字段可指定方法形参名称的最小长度、最大长度以及预期的正则表达式。 指定 0 以便不检查名称的长度。

      +

      正则表达式应以标准 java.util.regex 格式指定。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ParameterNamingConventionJS.html b/original-plugin-raw/zh/inspectionDescriptions/ParameterNamingConventionJS.html new file mode 100644 index 000000000..0df0b7574 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ParameterNamingConventionJS.html @@ -0,0 +1,10 @@ + + +报告名称太短、太长或不符合 +指定正则表达式模式的函数形参。 + +

      + 使用下面提供的字段来指定局部变量名称的最小长度、 +最大长度以及预期的正则表达式。 使用标准 java.util.regex 格式的正则表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ParameterTypeMismatch.html b/original-plugin-raw/zh/inspectionDescriptions/ParameterTypeMismatch.html new file mode 100644 index 000000000..ce0cb9e3b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ParameterTypeMismatch.html @@ -0,0 +1,6 @@ + + + 报告在其接口和实现中具有不同形参类型的方法。 + 它还会报告采用与其属性类型不同的类型的 setter。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ParameterTypePreventsOverriding.html b/original-plugin-raw/zh/inspectionDescriptions/ParameterTypePreventsOverriding.html new file mode 100644 index 000000000..c1d46d7ab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ParameterTypePreventsOverriding.html @@ -0,0 +1,30 @@ + + +报告与相应 super 方法的形参类型同名但属于不同软件包的子类方法的形参类型。 +在这些情况下,子类方法不能重写 super 方法。 +

      示例:

      +
      
      +public class A {
      + public void method(Object o) {}
      +}
      +
      +public class B extends A {
      + public void method(Object o) {} // 对形参类型发出警告
      + class Object {}
      +}
      +
      +

      在应用快速修复后:

      +
      
      +public class A {
      + public void method(Object o) {}
      +}
      +
      +public class B extends A {
      + public void method(java.lang.Object o) {} // 新形参类型
      + class Object {}
      +}
      +
      + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ParameterizedParametersStaticCollection.html b/original-plugin-raw/zh/inspectionDescriptions/ParameterizedParametersStaticCollection.html new file mode 100644 index 000000000..fee0e2d07 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ParameterizedParametersStaticCollection.html @@ -0,0 +1,45 @@ + + +报告使用 @RunWith(Parameterized.class) 注解,但要么不包括使用 @Parameterized.Parameters 注解的数据提供程序方法,要么此方法的签名不正确的 JUnit 4 形参化测试类。 这种测试类无法运行。 +数据提供程序方法应为 publicstatic 并具有 IterableObject[] 的返回类型。 +

      建议创建一个空的形参提供程序方法或更改不正确的数据提供程序方法的签名。

      + +

      示例:

      +

      
      +  @RunWith(Parameterized.class)
      +  public class ImportantTest {
      +    private int input;
      +    private int expected;
      +
      +    ImportantTest(int input, int expected) {
      +      this.input = input;
      +      this.expected = expected;
      +    }
      +
      +    // …测试用例
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  @RunWith(Parameterized.class)
      +  public class ImportantTest {
      +    private int input;
      +    private int expected;
      +
      +    ImportantTest(int input, int expected) {
      +      this.input = input;
      +      this.expected = expected;
      +    }
      +
      +    @Parameters
      +    public static Iterable<Object[]> parameters() {
      +      return null;
      +    }
      +
      +    // …测试用例
      +  }
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ParameterlessMemberOverriddenAsEmptyParen.html b/original-plugin-raw/zh/inspectionDescriptions/ParameterlessMemberOverriddenAsEmptyParen.html new file mode 100644 index 000000000..592ed8351 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ParameterlessMemberOverriddenAsEmptyParen.html @@ -0,0 +1,30 @@ + + +

      报告具有一个空形参子句且重写没有形参子句的方法的方法。

      + +

      推荐的惯例是,只要没有形参并且该方法没有副作用,就使用没有形参子句的方法。

      + +

      该惯例促进了统一访问原则,即客户端代码不应受到将特性实现为字段或方法的决定的影响。

      + +

      根据里氏替换原则,当被重写的方法没有形参子句时,重写方法也必须被声明为没有副作用的方法。

      + +

      该快速修复会移除空形参子句。

      +

      示例:

      +
      
      +  trait Base { def isOk: Boolean }
      +
      +  class Impl extends Base {
      +    override def isOk(): Boolean = ???
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  trait Base { def isOk: Boolean }
      +
      +  class Impl extends Base {
      +    override def isOk: Boolean = ???
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ParametersPerConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/ParametersPerConstructor.html new file mode 100644 index 000000000..e02a2e443 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ParametersPerConstructor.html @@ -0,0 +1,23 @@ + + +报告形参数量超过指定最大值的构造函数。 +此类对象很难实例化,特别是在某些形参是可选形参的情况下。 +构造函数的形参过多可能表明有必要重构。 +例如,请考虑应用构建器模式。 +

      示例:

      +
      
      +  public BankAccount(long accountNumber,
      +                     String owner,
      +                     double balance,
      +                     double interestRate) {
      +    // fields initialization
      +  }
      +
      + +

      配置检查:

      +
        +
      • 使用形参限制字段可以指定构造函数中允许的最大形参数量。
      • +
      • 使用忽略具有以下可见性的构造函数列表可指定检查是否应忽略具有特定可见性的构造函数。
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ParametersPerFunctionJS.html b/original-plugin-raw/zh/inspectionDescriptions/ParametersPerFunctionJS.html new file mode 100644 index 000000000..d60228dff --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ParametersPerFunctionJS.html @@ -0,0 +1,10 @@ + + +报告形参过多的函数。 +此类函数通常表明设计有问题。 + +

      + 使用下面的字段可指定函数的最大可接受形参数量。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ParametersPerMethod.html b/original-plugin-raw/zh/inspectionDescriptions/ParametersPerMethod.html new file mode 100644 index 000000000..042249bf6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ParametersPerMethod.html @@ -0,0 +1,9 @@ + + +报告形参数量超过指定最大值的方法。 +方法的形参过多可能表明有必要重构。 +

      不报告具有 super 方法的方法。

      + +

      使用形参限制字段可以指定方法允许的最大形参数量。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PathAnnotation.html b/original-plugin-raw/zh/inspectionDescriptions/PathAnnotation.html new file mode 100644 index 000000000..61f5a4dfc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PathAnnotation.html @@ -0,0 +1,13 @@ + + +

      报告 @Path 注解中的语法错误和未使用的 URI 模板。

      +

      示例:

      +
      
      +  @GET
      +  @Path("/{unused}") // 从未使用过 'unused' 模板
      +  public String get() {
      +    return "";
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PatternNotApplicable.html b/original-plugin-raw/zh/inspectionDescriptions/PatternNotApplicable.html new file mode 100644 index 000000000..c1cceb31b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PatternNotApplicable.html @@ -0,0 +1,9 @@ + + +报告将 @Pattern 注解应用于 String 之外类型的元素的情况。 +

      示例:

      +
      
      +  @Pattern("\\d\\d") int i;
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PatternOverriddenByNonAnnotatedMethod.html b/original-plugin-raw/zh/inspectionDescriptions/PatternOverriddenByNonAnnotatedMethod.html new file mode 100644 index 000000000..a18d7ea5c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PatternOverriddenByNonAnnotatedMethod.html @@ -0,0 +1,20 @@ + + +报告不带 @Pattern 注解的方法重写带 @Pattern 注解方法的情况。 +这不会阻止在编辑器中高亮显示错误,但重写方法在运行时将不会被检查。 +

      +提供了快速修复,用于添加与超类方法中注解相匹配的 @Pattern 注解。 这确保 +运行时检查检测正常工作。 +

      示例:

      +
      
      +  abstract class Parent {
      +    abstract @Pattern("\\d\\d-\\d\\d\\d") String getId();
      +  }
      +  class Child extends Parent {
      +    @Override String getId() { // 此处为警告
      +      return "12-345";
      +    }
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PatternValidation.html b/original-plugin-raw/zh/inspectionDescriptions/PatternValidation.html new file mode 100644 index 000000000..e635f5cb6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PatternValidation.html @@ -0,0 +1,11 @@ + + +报告作为 @Pattern 形参的实参传递并从与指定模式不匹配的 @Pattern 注解方法返回的表达式。 +

      示例:

      +
      
      +  @Pattern("\\d\\d-\\d\\d\\d") String getId() {
      +    return "1";
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PatternVariableCanBeUsed.html b/original-plugin-raw/zh/inspectionDescriptions/PatternVariableCanBeUsed.html new file mode 100644 index 000000000..0353b04a5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PatternVariableCanBeUsed.html @@ -0,0 +1,21 @@ + + +报告可以替换为模式变量的局部变量声明,模式变量通常更紧凑。 +

      示例:

      +
      
      +  if (obj instanceof String) {
      +    String str = (String) obj;
      +    System.out.println(str);
      +  }
      +
      +

      可以替换为:

      +
      
      +  if (obj instanceof String str) {
      +    System.out.println(str);
      +  }
      +
      + +

      仅当项目或模块的语言级别为 15(预览)或更高时,此检查才会报告。

      +

      2020.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PgSelectFromProcedureInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PgSelectFromProcedureInspection.html new file mode 100644 index 000000000..8f512a57d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PgSelectFromProcedureInspection.html @@ -0,0 +1,16 @@ + + +报告从函数执行 SELECT 或执行没有类型别名的 DBLINK(例如 AS t1 (s VARCHAR) )的情况。 +

      此要求不适用于标量函数。

      +

      示例(PostgreSQL):

      +
      CREATE FUNCTION produce_a_table() RETURNS RECORD AS $$
      +SELECT 1;
      +$$ LANGUAGE sql;
      +SELECT * FROM produce_a_table() AS s (c1 INT);
      +SELECT * FROM produce_a_table() AS s (c1);
      +SELECT * FROM DBLINK('dbname=mydb', 'SELECT proname, prosrc FROM pg_proc') AS t1;
      +

      AS s (c1 INT) 具有类型别名,而 AS s (c1)AS t1 没有。 + 在这种情况下,将高亮显示 produce_a_table()DBLINK() 的第二次调用。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhingDomInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhingDomInspection.html new file mode 100644 index 000000000..c22f0d455 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhingDomInspection.html @@ -0,0 +1,5 @@ + + +报告 Phing 构建文件中未解析的资源引用。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpAbstractStaticMethodInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpAbstractStaticMethodInspection.html new file mode 100644 index 000000000..d35aff8a4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpAbstractStaticMethodInspection.html @@ -0,0 +1,5 @@ + + + 报告声明为 abstract 的 static 方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpAccessingStaticMembersOnTraitInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpAccessingStaticMembersOnTraitInspection.html new file mode 100644 index 000000000..73b874dcf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpAccessingStaticMembersOnTraitInspection.html @@ -0,0 +1,8 @@ + + +报告用于特征的 static 成员访问表达式。 此类直接访问自 PHP 8.1 起已弃用。 相反,应该在使用特征的类上访问 static 成员。 +

      + 有关详细信息,请参阅 PHP 8.1 弃用:访问特征上的 static 成员 (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpApplyingEmptyIndexOperatorOnStringInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpApplyingEmptyIndexOperatorOnStringInspection.html new file mode 100644 index 000000000..fe2160859 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpApplyingEmptyIndexOperatorOnStringInspection.html @@ -0,0 +1,11 @@ + + +报告空索引运算符 ([]) 在字符串中的用法。 + +

      + 从 PHP 7.1 开始,对字符串应用空索引运算符会引发致命错误。 +

      +

      有关详细信息,请参阅 Creating/modifying with square bracket syntax (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpArgumentWithoutNamedIdentifierInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpArgumentWithoutNamedIdentifierInspection.html new file mode 100644 index 000000000..019ab1c4f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpArgumentWithoutNamedIdentifierInspection.html @@ -0,0 +1,5 @@ + + +报告没有名称标识符的实参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpArithmeticTypeCheckInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpArithmeticTypeCheckInspection.html new file mode 100644 index 000000000..502e5711c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpArithmeticTypeCheckInspection.html @@ -0,0 +1,15 @@ + + + +报告具有不受支持的操作数的算术和按位表达式。 + +

      + 从 PHP 8.0 开始,当操作数之一是数组、资源或非重载对象时,使用算术和按位运算符 +-*/**%< <>&|^~++- 将导致一个 TypeError。 唯一的例外是 + array + array合并操作,它仍然被支持。 +

      + +

      + 完整的操作列表见 PHP's internal test source。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpArrayAccessCanBeReplacedWithForeachValueInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayAccessCanBeReplacedWithForeachValueInspection.html new file mode 100644 index 000000000..0cdfc69f0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayAccessCanBeReplacedWithForeachValueInspection.html @@ -0,0 +1,5 @@ + + +报告 foreach 循环内可以用 foreach 值替换的数组访问表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpArrayAccessOnIllegalTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayAccessOnIllegalTypeInspection.html new file mode 100644 index 000000000..a36e62e3e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayAccessOnIllegalTypeInspection.html @@ -0,0 +1,5 @@ + + +报告在非法类型上使用的数组偏移访问表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpArrayFillCanBeConvertedToLoopInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayFillCanBeConvertedToLoopInspection.html new file mode 100644 index 000000000..ce883247f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayFillCanBeConvertedToLoopInspection.html @@ -0,0 +1,5 @@ + + +报告可以替换为 foreach 循环的 array_fill() 调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpArrayFilterCanBeConvertedToLoopInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayFilterCanBeConvertedToLoopInspection.html new file mode 100644 index 000000000..664716f84 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayFilterCanBeConvertedToLoopInspection.html @@ -0,0 +1,5 @@ + + +报告可以替换为 foreach 循环的 array_filter() 调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpArrayIndexImmediatelyRewrittenInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayIndexImmediatelyRewrittenInspection.html new file mode 100644 index 000000000..dc8cec90d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayIndexImmediatelyRewrittenInspection.html @@ -0,0 +1,5 @@ + + +报告在访问之前立即被重写的数组索引上的写入表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpArrayIndexResetIsUnnecessaryInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayIndexResetIsUnnecessaryInspection.html new file mode 100644 index 000000000..1d298e919 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayIndexResetIsUnnecessaryInspection.html @@ -0,0 +1,8 @@ + + +报告已在第一个元素上设置内部指针的数组上的 reset($array) 调用。 此类调用冗余,可以安全移除。 +

      + 有关详细信息,请参阅 reset (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpArrayIsAlwaysEmptyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayIsAlwaysEmptyInspection.html new file mode 100644 index 000000000..3616d3681 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayIsAlwaysEmptyInspection.html @@ -0,0 +1,5 @@ + + +报告在迭代/访问时得知为空的数组。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpArrayKeyDoesNotMatchArrayShapeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayKeyDoesNotMatchArrayShapeInspection.html new file mode 100644 index 000000000..24d735748 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayKeyDoesNotMatchArrayShapeInspection.html @@ -0,0 +1,5 @@ + + +报告不符合通过 #[ArrayShape] 特性指定的键的数组键。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpArrayMapCanBeConvertedToLoopInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayMapCanBeConvertedToLoopInspection.html new file mode 100644 index 000000000..633595852 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayMapCanBeConvertedToLoopInspection.html @@ -0,0 +1,5 @@ + + +报告可以替换为 foreach 循环的 array_map() 调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpArrayPushWithOneElementInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayPushWithOneElementInspection.html new file mode 100644 index 000000000..3ab70ed9d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayPushWithOneElementInspection.html @@ -0,0 +1,8 @@ + + +报告用于向数组中添加一个元素的 array_push() 调用。 在此类情况下,建议改用 $array[] =,这样不会增加调用函数的开销。 +

      + 有关详细信息,请参阅 array_push (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpArraySearchInBooleanContextInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpArraySearchInBooleanContextInspection.html new file mode 100644 index 000000000..3ea815093 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpArraySearchInBooleanContextInspection.html @@ -0,0 +1,5 @@ + + +报告仅用于检查数组中是否存在某个元素的 array_search() 调用,即 if (array_search($a, $b) === false) {} 之类的表达式。 此类调用可以安全地替换为 in_array() 调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpArrayShapeAttributeCanBeAddedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayShapeAttributeCanBeAddedInspection.html new file mode 100644 index 000000000..03f0d6f00 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayShapeAttributeCanBeAddedInspection.html @@ -0,0 +1,5 @@ + + +报告使用已知非普通键返回数组的方法和函数。 建议通过 #[ArrayShape] 特性指定返回数组的形状。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpArrayToStringConversionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayToStringConversionInspection.html new file mode 100644 index 000000000..0601b27e8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayToStringConversionInspection.html @@ -0,0 +1,8 @@ + + +报告数组到字符串的转换,即在需要字符串的上下文中提供的数组。 +

      + 在 PHP 8.0 之前,这将导致 E_NOTICE 级错误。 在 PHP 8.0 中,会发出 E-WARNING。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpArrayUsedOnlyForWriteInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayUsedOnlyForWriteInspection.html new file mode 100644 index 000000000..278d264d5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayUsedOnlyForWriteInspection.html @@ -0,0 +1,5 @@ + + + 报告仅被更新,但从未被查询的本地数组。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpArrayWriteIsNotUsedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayWriteIsNotUsedInspection.html new file mode 100644 index 000000000..0903ec7c4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpArrayWriteIsNotUsedInspection.html @@ -0,0 +1,5 @@ + + +报告之后没有在代码中使用的数组写入访问表达式。 此类问题最常见的来源是修改通过形参传递的数组:如果一个数组是通过值传递的,则变更在函数外部将不可见。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpAssignmentInConditionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpAssignmentInConditionInspection.html new file mode 100644 index 000000000..db8656d86 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpAssignmentInConditionInspection.html @@ -0,0 +1,5 @@ + + +报告在条件表达式中使用的赋值。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpAssignmentReplaceableWithOperatorAssignmentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpAssignmentReplaceableWithOperatorAssignmentInspection.html new file mode 100644 index 000000000..a2ea08c8b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpAssignmentReplaceableWithOperatorAssignmentInspection.html @@ -0,0 +1,5 @@ + + +报告可以用组合运算符赋值替换的赋值(例如,+=)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpAssignmentReplaceableWithPrefixExpressionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpAssignmentReplaceableWithPrefixExpressionInspection.html new file mode 100644 index 000000000..1169c799b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpAssignmentReplaceableWithPrefixExpressionInspection.html @@ -0,0 +1,5 @@ + + +报告可以用增量(++)或减量(--)操作替换的赋值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpAttributeCanBeAddedToOverriddenMemberInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpAttributeCanBeAddedToOverriddenMemberInspection.html new file mode 100644 index 000000000..6852294f7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpAttributeCanBeAddedToOverriddenMemberInspection.html @@ -0,0 +1,8 @@ + + +报告可以传播到覆盖方法/形参的方法和形参的特性。 +

      + 有关详细信息,请参阅 Attributes (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpAttributeIsNotRepeatableInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpAttributeIsNotRepeatableInspection.html new file mode 100644 index 000000000..929137cb4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpAttributeIsNotRepeatableInspection.html @@ -0,0 +1,8 @@ + + + 报告在其实参声明中没有 Attribute::IS_REPEATABLE 标志的重复特性。 +

      + 有关详细信息,请参阅 Attributes (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpAutovivificationOnFalseValuesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpAutovivificationOnFalseValuesInspection.html new file mode 100644 index 000000000..ef1a2dcd6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpAutovivificationOnFalseValuesInspection.html @@ -0,0 +1,8 @@ + + +报告将 false 值自动转换为数组的情况。 从 PHP 8.1 开始,不建议使用此类表达式。 +

      + 有关详细信息,请参阅 在 false 上弃用自动有效化。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpBooleanCanBeSimplifiedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpBooleanCanBeSimplifiedInspection.html new file mode 100644 index 000000000..8b51d759b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpBooleanCanBeSimplifiedInspection.html @@ -0,0 +1,5 @@ + + +报告包含 truefalse 文本并且可以被简化的布尔表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpCSFixerValidationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpCSFixerValidationInspection.html new file mode 100644 index 000000000..eda56afe5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpCSFixerValidationInspection.html @@ -0,0 +1,12 @@ + + +报告由 PHP CS Fixer 检测到的编码风格问题。 + +

      + 该项检查要求正确安装 PHP CS Fixer,并在 设置/偏好设置 | PHP | 质量工具 | PHP CS Fixer 正确设置。 +

      +

      + 要了解有关安装 PHP CS Fixer 的更多信息,请参见 PHP CS Fixer installation (GitHub)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpCSValidationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpCSValidationInspection.html new file mode 100644 index 000000000..75716ab72 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpCSValidationInspection.html @@ -0,0 +1,14 @@ + + +报告由 PHP_CodeSniffer 检测到的编码风格问题。 + +

      + 该项检查要求正确安装PHP_CodeSniffer,并在 设置/偏好设置 | PHP | 质量工具 | PHP_CodeSniffer 下正确设置 。 +

      + +

      + 要了解有关安装 PHP_CodeSniffer 的更多信息,请参见 PHP_CodeSniffer installation (GitHub)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpCaseWithValueNotFoundInEnumInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpCaseWithValueNotFoundInEnumInspection.html new file mode 100644 index 000000000..4eb9fc2bb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpCaseWithValueNotFoundInEnumInspection.html @@ -0,0 +1,8 @@ + + +报告在目标枚举类中找不到的枚举 from 方法调用的实参。 +

      + 有关详细信息,请参阅枚举 (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpCastIsEvaluableInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpCastIsEvaluableInspection.html new file mode 100644 index 000000000..fcc480cd0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpCastIsEvaluableInspection.html @@ -0,0 +1,8 @@ + + +报告可以就地评估的类型转换,并建议将其替换为计算得出的实际值。 +

      + 有关详细信息,请参阅 Type juggling (php.net)。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpCastIsUnnecessaryInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpCastIsUnnecessaryInspection.html new file mode 100644 index 000000000..9c082ed57 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpCastIsUnnecessaryInspection.html @@ -0,0 +1,8 @@ + + +报告在已经是相应类型的值上使用的类型转换运算符。 这些运算符是冗余的,可以安全移除。 +

      + 有关详细信息,请参阅 Type juggling (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpClassCantBeUsedAsAttributeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpClassCantBeUsedAsAttributeInspection.html new file mode 100644 index 000000000..0b2a89b27 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpClassCantBeUsedAsAttributeInspection.html @@ -0,0 +1,8 @@ + + + 报告特性被解析为没有用 #[Attribute] 注释的类。 +

      + 有关详细信息,请参阅 Attributes (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpClassConstantAccessedViaChildClassInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpClassConstantAccessedViaChildClassInspection.html new file mode 100644 index 000000000..9185d6d17 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpClassConstantAccessedViaChildClassInspection.html @@ -0,0 +1,5 @@ + + +报告以所引用类的父类中的常量为目标的类常量引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpClassHasTooManyDeclaredMembersInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpClassHasTooManyDeclaredMembersInspection.html new file mode 100644 index 000000000..c1865f850 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpClassHasTooManyDeclaredMembersInspection.html @@ -0,0 +1,5 @@ + + +报告具有太多属性或方法的类。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpClassImplementsSolelyTraversableInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpClassImplementsSolelyTraversableInspection.html new file mode 100644 index 000000000..283dfb2e8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpClassImplementsSolelyTraversableInspection.html @@ -0,0 +1,9 @@ + + +报告那些单独实现 Traversable 接口的类,而不是作为 IteratorIteratorAggregate 接口的一部分。 + +

      + Traversable 接口是一个内部引擎接口;它不能在 PHP 脚本中实现。 有关详细信息,请参阅 The Traversable interface (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpClassNamingConventionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpClassNamingConventionInspection.html new file mode 100644 index 000000000..d9f71cf0a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpClassNamingConventionInspection.html @@ -0,0 +1,14 @@ + + +报告名称太短、太长或不符合指定的正则表达式模式的类。 +某些编码风格对类有特殊的命名惯例。 + +

      + 使用检查选项来指定类名称的最小/最大长度和预期正则表达式。 + 要忽略名字的长度,指定 0。 +

      +

      + 要了解更多关于正则表达式的信息,请参考 Quick Start guide (regular-expressions.info)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpClosureCanBeConvertedToFirstClassCallableInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpClosureCanBeConvertedToFirstClassCallableInspection.html new file mode 100644 index 000000000..da08f9e95 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpClosureCanBeConvertedToFirstClassCallableInspection.html @@ -0,0 +1,8 @@ + + +报告使用 Closure::fromCallable 但可以替换为自 PHP 8.1 起可用的一级可调用语法 f(...)callable 创建表达式。 +

      + 有关详细信息,请参阅 一类可调用语法 (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpClosureCanBeConvertedToShortArrowFunctionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpClosureCanBeConvertedToShortArrowFunctionInspection.html new file mode 100644 index 000000000..974f1f5d9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpClosureCanBeConvertedToShortArrowFunctionInspection.html @@ -0,0 +1,8 @@ + + +报告可以转化为短箭头函数的匿名函数。 短箭头函数的支持自 PHP 7.4 起可用。 +

      + 有关详细信息,请参阅 PHP RFC: Arrow Functions 2.0 (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpCommentCanBeReplacedWithNamedArgumentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpCommentCanBeReplacedWithNamedArgumentInspection.html new file mode 100644 index 000000000..5b4ea801a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpCommentCanBeReplacedWithNamedArgumentInspection.html @@ -0,0 +1,8 @@ + + +报告仅包含参数名称的函数调用中参数之前的内联注释(因此可用作提示)。 在 PHP 8.0 及更高版本中,可以改用命名参数。 +

      + 有关详细信息,请参阅 Named arguments (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpComplexClassInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpComplexClassInspection.html new file mode 100644 index 000000000..887f14cc7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpComplexClassInspection.html @@ -0,0 +1,12 @@ + + +报告过于复杂的类。 + +

      类复杂度基于三个指标进行评估:

      +
        +
      • TCC(紧密类内聚)— 类内聚程度的度量(越大越好)。
      • +
      • WMC(加权方法计数)— 类中所有方法的循环复杂度总和(越小越好)。
      • +
      • ATFD(访问外部数据)— 在当前类中访问的另一个类的属性数量(越少越好)。
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpComplexFunctionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpComplexFunctionInspection.html new file mode 100644 index 000000000..15baa21a0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpComplexFunctionInspection.html @@ -0,0 +1,14 @@ + + +报告过于复杂的函数或方法。 + +

      复杂度基于四个指标进行评估:

      +
        +
      • 代码行数 — 函数/方法中的代码行数(越少越好)
      • +
      • 最大嵌套深度 — 函数/方法主体中嵌套语句的最大数量(越少越好)
      • +
      • 循环复杂度 — 函数/方法的循环复杂度(越少越好)
      • +
      • 变量数量 — 函数/方法主体中使用的变量数量
      • +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpComposerDuplicatedRequirementInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpComposerDuplicatedRequirementInspection.html new file mode 100644 index 000000000..e9c568873 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpComposerDuplicatedRequirementInspection.html @@ -0,0 +1,5 @@ + + +报告在 composer.jsonrequirerequire-dev 部分的重复软件包条目。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpComposerExtensionStubsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpComposerExtensionStubsInspection.html new file mode 100644 index 000000000..66346f573 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpComposerExtensionStubsInspection.html @@ -0,0 +1,5 @@ + + +报告未在 composer.json 中指定的 PHP 扩展中的类、函数和常量的用法。 如果扩展被列在 composer.jsonrequire-dev 部分,检查将报告标记为测试根的文件夹之外的相应符号用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpCompoundNamespaceDepthInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpCompoundNamespaceDepthInspection.html new file mode 100644 index 000000000..ed9a3a669 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpCompoundNamespaceDepthInspection.html @@ -0,0 +1,11 @@ + + +报告深度超过两级的复合命名空间使用情况。 + +

      根据 PSR-12,不得使用深度超过两级的复合命名空间。

      + +

      + 有关详细信息,请参阅 PSR-12: Extended Coding Style (php-fig.org) 。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpConcatenationWithArithmeticInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpConcatenationWithArithmeticInspection.html new file mode 100644 index 000000000..5ceb0cb22 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpConcatenationWithArithmeticInspection.html @@ -0,0 +1,10 @@ + + +报告与 +-<<>> 一起使用的字符串串联表达式运算符。 + +从 PHP 8 开始,串联操作的优先级较低,因此此类表达式可能会产生意外的结果。 +

      + 有关详细信息,请参阅 Concatenation precedence (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpConcatenationWithEmptyStringCanBeInlinedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpConcatenationWithEmptyStringCanBeInlinedInspection.html new file mode 100644 index 000000000..f9f84e945 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpConcatenationWithEmptyStringCanBeInlinedInspection.html @@ -0,0 +1,5 @@ + + +报告在给空字符串文字赋值之后立即执行的 .= 串联赋值。 此类赋值可以合并在一起。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpConditionAlreadyCheckedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpConditionAlreadyCheckedInspection.html new file mode 100644 index 000000000..e23ccf98f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpConditionAlreadyCheckedInspection.html @@ -0,0 +1,5 @@ + + +报告已被早期的条件涵盖因而不起任何作用的条件以及在到达时始终为 true(或始终为 false)的变量。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpConditionCanBeReplacedWithMinMaxCallInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpConditionCanBeReplacedWithMinMaxCallInspection.html new file mode 100644 index 000000000..c48f259ca --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpConditionCanBeReplacedWithMinMaxCallInspection.html @@ -0,0 +1,5 @@ + + +报告手动计算最小值/最大值而不是调用 min/max 函数的条件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpConditionCheckedByNextConditionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpConditionCheckedByNextConditionInspection.html new file mode 100644 index 000000000..ff9b5bbac --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpConditionCheckedByNextConditionInspection.html @@ -0,0 +1,5 @@ + + +报告被后续条件覆盖,因此是冗余的逻辑二元表达式内的条件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpConstantNamingConventionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpConstantNamingConventionInspection.html new file mode 100644 index 000000000..9a080ab28 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpConstantNamingConventionInspection.html @@ -0,0 +1,14 @@ + + +报告名称太短、太长或不符合指定的正则表达式模式的常量。 +某些编码风格对常量有特殊的命名惯例。 + +

      + 使用检查选项来指定常量名称的最小/最大长度和预期正则表达式。 + 要忽略名字的长度,指定 0。 +

      +

      + 要了解更多关于正则表达式的信息,请参考 Quick Start guide (regular-expressions.info)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpConstantReassignmentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpConstantReassignmentInspection.html new file mode 100644 index 000000000..d7c1229a9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpConstantReassignmentInspection.html @@ -0,0 +1,8 @@ + + + 报告常量的重新赋值。 +

      + 由于不能更改常量,因此此类赋值将无效,并且将发出 E_NOTICE(在 PHP 7.4 和更低版本中)或 E_WARNING(在 PHP 8.0 和更高版本中)。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpConstructorStyleInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpConstructorStyleInspection.html new file mode 100644 index 000000000..100ff0103 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpConstructorStyleInspection.html @@ -0,0 +1,14 @@ + + +报告旧式的构造函数声明(ClassName()),并建议用新式的构造函数(__construct())替换它们。 + +

      + 在 PHP 8.0 之前,全局命名空间中的类所使用的旧式构造函数语法被视为弃用的,会导致 E_DEPRECATED 错误。 如果同时定义了 __construct()ClassName() 方法,__construct() 将被调用。 +

      +

      在带命名空间的类,或者任何 PHP 8.0 的类中,ClassName() 方法从来没有任何特殊含义,也不会被作为构造函数调用。 因此,如果 PHP 语言级别设置为 8.0 或更高,检查就不会报告这种情况。 +

      +

      + 有关详细信息,请参阅 Constructors and destructors (php.net)。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpContinueTargetingSwitchInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpContinueTargetingSwitchInspection.html new file mode 100644 index 000000000..f635437c4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpContinueTargetingSwitchInspection.html @@ -0,0 +1,17 @@ + + +报告以 switch 语句为目标的 continue 语句。 在 PHP 7.3 和更高版本中,此类用法已弃用,并会发出 E_WARNING ,因为它们很可能是编程错误的结果。 + +
        +
      • + 在 PHP 中,此类 continue 语句等效于 break,也就是说,它们会终止当前 switch 结构的执行。 +
      • +
      • + 在其他语言中,此类 continue 语句在 PHP 中的行为与 continue 2 相同,也就是说,它们将执行带到更高级别的控制结构(例如,外循环的下一迭代)。 +
      • +
      +

      + 有关详细信息,请参阅 continue (php.net)break (php.net)switch (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpCoveredCharacterInClassInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpCoveredCharacterInClassInspection.html new file mode 100644 index 000000000..96c1cffbc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpCoveredCharacterInClassInspection.html @@ -0,0 +1,5 @@ + + +报告正则表达式字符类中已被同一类中的另一个元素覆盖的元素。 此类元素冗余,可以安全移除。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpCurlyBraceAccessSyntaxUsageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpCurlyBraceAccessSyntaxUsageInspection.html new file mode 100644 index 000000000..28c971189 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpCurlyBraceAccessSyntaxUsageInspection.html @@ -0,0 +1,5 @@ + + +报告大括号语法在访问数组元素和字符串偏移时的用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDangerousArrayInitializationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDangerousArrayInitializationInspection.html new file mode 100644 index 000000000..917ddd70e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDangerousArrayInitializationInspection.html @@ -0,0 +1,10 @@ + + +报告危险的数组初始化(如 $arr[] = value)。 +

      + 不建议采取这种做法,因为如果 $arr 已包含某些值(例如来自请求变量的字符串),此值将保留,并且 [] 实际上可能代表字符串访问运算符。 最好始终通过直接赋值来初始化变量。 +

      +

      有关详细信息,请参阅 Creating/modifying with square bracket syntax (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDefineCanBeReplacedWithConstInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDefineCanBeReplacedWithConstInspection.html new file mode 100644 index 000000000..f8330e7e9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDefineCanBeReplacedWithConstInspection.html @@ -0,0 +1,5 @@ + + +报告可以替换为 const 语法的 define() 调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDefineConstantNameStartsWithLeadingSlashInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDefineConstantNameStartsWithLeadingSlashInspection.html new file mode 100644 index 000000000..41dca1aa4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDefineConstantNameStartsWithLeadingSlashInspection.html @@ -0,0 +1,5 @@ + + +报告 define 结构,其中常量的 FQN 由前导斜杠开头。 此类常量将不会被 PHP 正确注册。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDeprecatedCastInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDeprecatedCastInspection.html new file mode 100644 index 000000000..e99825411 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDeprecatedCastInspection.html @@ -0,0 +1,16 @@ + + +报告已弃用的转换表达式: +
        +
      • + (unset) 转换表达式,自 PHP 7.2 已弃用。 +
      • +
      • + (real) 转换表达式,自 PHP 7.4 已弃用。 +
      • +
      +

      + 有关详细信息,请参阅 Deprecated features in PHP 7.2.x (php.net)Deprecations for PHP 7.4 (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDeprecatedImplodeUsageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDeprecatedImplodeUsageInspection.html new file mode 100644 index 000000000..7bfafc288 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDeprecatedImplodeUsageInspection.html @@ -0,0 +1,11 @@ + + +报告 implodejoin 函数的已弃用用法。 + +

      从 PHP 7.4 开始,不建议使用 implodejoin,将数组作为第一个实参,而字符串作为第二个实参。

      +

      + 有关详细信息,请参阅 Deprecations for PHP 7.4 (php.net)。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDeprecatedSerializableUsageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDeprecatedSerializableUsageInspection.html new file mode 100644 index 000000000..bf31e7bef --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDeprecatedSerializableUsageInspection.html @@ -0,0 +1,12 @@ + + +报告已弃用的 Serializable 接口的用法。 + +

      + 从 PHP 8.1 开始,非抽象类、实现 Serializable 的类、不实现 __serialize()__unserialize() 的类将抛出弃用警告。 +

      +

      + 有关详细信息,请参阅逐步淘汰可序列化 (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDeprecatedStdLibCallInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDeprecatedStdLibCallInspection.html new file mode 100644 index 000000000..bc65203ce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDeprecatedStdLibCallInspection.html @@ -0,0 +1,29 @@ + + +报告对从 PHP 8.1 开始弃用的标准 PHP 库函数的调用。 + +

      + 报告以下调用: +

      +
        +
      • + 将对象作为实参的 key()current()next()prev()reset( ) 调用。 +
      • +
      • + 不包含实参的 mb_check_encoding() 调用。 +
      • +
      • + 不包含实参的 get_class()get_parent_class()get_Called_class() 调用。 +
      • +
      • + 将布尔值作为 $value 实参传递的 IntlCalendar::roll() 调用。 +
      • +
      • + 包含非字符串实参的 ctype_*() 调用。 +
      • +
      +

      + 有关详细信息,请参阅 PHP RFC:PHP 8.1 弃用。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDeprecationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDeprecationInspection.html new file mode 100644 index 000000000..6a9d16359 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDeprecationInspection.html @@ -0,0 +1,8 @@ + + +报告已弃用的实体的用法。 +

      + 在大多数情况下,这种用法应该被删除,或者用其他结构来代替。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDisabledExtensionStubsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDisabledExtensionStubsInspection.html new file mode 100644 index 000000000..5d70563ed --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDisabledExtensionStubsInspection.html @@ -0,0 +1,11 @@ + + +报告相应 PHP 解释器扩展的存根对其被禁用的类、函数和常量的使用。 +

      + 您可以在设置/偏好设置 | PHP | PHP 运行时下配置存根的集合。 +

      +

      + 有关详细信息,请参阅 PhpStorm stubs (blog.jetbrains.com/phpstorm)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDisabledQualityToolComposerInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDisabledQualityToolComposerInspection.html new file mode 100644 index 000000000..bfde2f90f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDisabledQualityToolComposerInspection.html @@ -0,0 +1,5 @@ + + +在相应的代码检查被禁用的情况下,在 composer.json 中高亮显示质量工具的条目。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDivisionByZeroInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDivisionByZeroInspection.html new file mode 100644 index 000000000..cc352c7a2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDivisionByZeroInspection.html @@ -0,0 +1,5 @@ + + + 报告除 0 或对0 取模。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDocDuplicateTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDocDuplicateTypeInspection.html new file mode 100644 index 000000000..eaa77ab17 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDocDuplicateTypeInspection.html @@ -0,0 +1,5 @@ + + +报告 PHPDoc 注释中的重复类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDocFieldTypeMismatchInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDocFieldTypeMismatchInspection.html new file mode 100644 index 000000000..93d82cf9a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDocFieldTypeMismatchInspection.html @@ -0,0 +1,5 @@ + + +报告 PHPDoc @var 标签中与属性的声明类型不匹配的属性类型。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDocMissingThrowsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDocMissingThrowsInspection.html new file mode 100644 index 000000000..1c63667f8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDocMissingThrowsInspection.html @@ -0,0 +1,7 @@ + + + 检查是否对函数/方法抛出的每个异常PHPDoc 块中都包含 @throws 标签。 + +

      添加到 设置/偏好设置 | PHP | 分析 下的 未检查的异常 列表中的异常类被排除在检查范围之外。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDocRedundantThrowsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDocRedundantThrowsInspection.html new file mode 100644 index 000000000..15abde255 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDocRedundantThrowsInspection.html @@ -0,0 +1,7 @@ + + + 报告 @throws 标签,用于不是由函数/方法抛出的异常。 + +

      添加到 设置/偏好设置 | PHP | 分析 下的 未检查的异常 列表中的异常类被排除在检查范围之外。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDocSignatureInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDocSignatureInspection.html new file mode 100644 index 000000000..73ba983d0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDocSignatureInspection.html @@ -0,0 +1,5 @@ + + +报告在 PHPDoc 注释中的形参名称和类型,这些形参名称和类型与函数/方法声明中的形参名称和类型不匹配。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDocSignatureIsNotCompleteInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDocSignatureIsNotCompleteInspection.html new file mode 100644 index 000000000..e4f79719f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDocSignatureIsNotCompleteInspection.html @@ -0,0 +1,5 @@ + + +报告至少包含一个 @param@return 标记,但函数/方法声明中指定的形参或返回类型缺少 @param@return 标记的 PHPDoc 注释。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateArrayKeysInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateArrayKeysInspection.html new file mode 100644 index 000000000..fb318f1dd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateArrayKeysInspection.html @@ -0,0 +1,6 @@ + + + 报告数组声明中的重复键。 +

      如果数组声明中的多个元素使用相同的键,只有最后一个会被使用,其他的都会被覆盖掉。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateCaseInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateCaseInspection.html new file mode 100644 index 000000000..031718bbb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateCaseInspection.html @@ -0,0 +1,6 @@ + + + 报告在 switch 语句中重复的 case 表达式。 +

      如果 switch 语句具有多个重复的 case 表达式,仅执行第一个表达式。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateCatchBodyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateCatchBodyInspection.html new file mode 100644 index 000000000..fef06dd83 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateCatchBodyInspection.html @@ -0,0 +1,5 @@ + + +报告有重复主体的 catch 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateMatchArmBodyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateMatchArmBodyInspection.html new file mode 100644 index 000000000..1ebd7ef2c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateMatchArmBodyInspection.html @@ -0,0 +1,8 @@ + + +报告在 match 分支中的重复主体。 +

      + 有关详细信息,请参阅 Match expression (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateMatchConditionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateMatchConditionInspection.html new file mode 100644 index 000000000..78ad21fdf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateMatchConditionInspection.html @@ -0,0 +1,8 @@ + + + 报告 match 表达式中的重复条件。 +

      + 有关详细信息,请参阅 Match expression (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateSwitchCaseBodyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateSwitchCaseBodyInspection.html new file mode 100644 index 000000000..210feb816 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicateSwitchCaseBodyInspection.html @@ -0,0 +1,5 @@ + + +报告不同分支中包含相同代码的 switch 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicatedCharacterInStrFunctionCallInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicatedCharacterInStrFunctionCallInspection.html new file mode 100644 index 000000000..fb492da7d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDuplicatedCharacterInStrFunctionCallInspection.html @@ -0,0 +1,5 @@ + + +报告在 ltrimstr_words_counts 等函数的 characters 参数中提供的重复字符。 此类重复很可能由错误导致,可以安全移除。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpDynamicAsStaticMethodCallInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpDynamicAsStaticMethodCallInspection.html new file mode 100644 index 000000000..1a7b39c90 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpDynamicAsStaticMethodCallInspection.html @@ -0,0 +1,7 @@ + + +报告对动态类方法的静态调用。 + +

      对于具有魔术方法 __ callStatic 的类,可以设置单独的检查严重性和突出显示级别。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpElementIsNotAvailableInCurrentPhpVersionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpElementIsNotAvailableInCurrentPhpVersionInspection.html new file mode 100644 index 000000000..25920f617 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpElementIsNotAvailableInCurrentPhpVersionInspection.html @@ -0,0 +1,5 @@ + + +报告使用比配置的 PHP 版本更新的实体的情况。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpEnforceDocCommentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpEnforceDocCommentInspection.html new file mode 100644 index 000000000..f8691b2fd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpEnforceDocCommentInspection.html @@ -0,0 +1,8 @@ + + +报告没有 PHPDoc 注释或仅包含 @noinspection 标记的 PHPDoc 注释的元素。 + +

      您可以使用缺少 PHPDoc 注释 检查仅报告非完全类型化元素。

      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpExceptionImmediatelyRethrownInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpExceptionImmediatelyRethrownInspection.html new file mode 100644 index 000000000..b0d36db9b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpExceptionImmediatelyRethrownInspection.html @@ -0,0 +1,5 @@ + + +报告只重新抛出捕获的异常的 catch 语句,该异常位于与后续异常类型不同的类层次结构中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpExpectedValuesShouldBeUsedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpExpectedValuesShouldBeUsedInspection.html new file mode 100644 index 000000000..b57ee25e0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpExpectedValuesShouldBeUsedInspection.html @@ -0,0 +1,8 @@ + + + 报告赋值和比较表达式的值,这些值应该被预期值替换(也就是通过 #[ExpectedValues] 特性指定的值)。 +

      + 有关详细信息,请参阅 Attributes (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpExpressionAlwaysNullInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpExpressionAlwaysNullInspection.html new file mode 100644 index 000000000..893fdf618 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpExpressionAlwaysNullInspection.html @@ -0,0 +1,5 @@ + + +报告始终为 nullreturn 语句中的变量。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpExpressionResultUnusedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpExpressionResultUnusedInspection.html new file mode 100644 index 000000000..beffa2f5f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpExpressionResultUnusedInspection.html @@ -0,0 +1,6 @@ + + + 报告被计算但计算结果不在任何地方使用的表达式。 +

      例如,将 = 运算符错写成 ==,就会造成这种错误。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpExpressionWithSameOperandsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpExpressionWithSameOperandsInspection.html new file mode 100644 index 000000000..dd028a7ef --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpExpressionWithSameOperandsInspection.html @@ -0,0 +1,5 @@ + + +报告使用相同操作数的表达式,但应该使用不同的操作数(例如,$var == $var)。 这包括比较、逻辑、空值合并、减法和除法表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpExpressionWithoutClarifyingParenthesesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpExpressionWithoutClarifyingParenthesesInspection.html new file mode 100644 index 000000000..b945fce00 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpExpressionWithoutClarifyingParenthesesInspection.html @@ -0,0 +1,5 @@ + + +报告潜在不明确表达式,并建议将其置于澄清圆括号中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpFeatureEnvyLocalInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpFeatureEnvyLocalInspection.html new file mode 100644 index 000000000..d8664b95c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpFeatureEnvyLocalInspection.html @@ -0,0 +1,9 @@ + + +报告"依恋情结"代码异味。 +当一种方法对另一个类调用方法的次数多于对源类的调用次数时,定义为发生“依恋情结”。 它通常表示预期的功能位于错误的类中。 +

      + 此检查不计入对库类、父类以及包含其或被其包含的类的调用。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpFieldAssignmentTypeMismatchInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpFieldAssignmentTypeMismatchInspection.html new file mode 100644 index 000000000..e1a07824f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpFieldAssignmentTypeMismatchInspection.html @@ -0,0 +1,5 @@ + + +报告属性赋值中的类型违规。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpFieldCanBePromotedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpFieldCanBePromotedInspection.html new file mode 100644 index 000000000..4e505d25b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpFieldCanBePromotedInspection.html @@ -0,0 +1,8 @@ + + +报告可以用提升版本替换的属性。 +

      + 有关详细信息,请参阅 Constructor Property Promotion (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpFieldImmediatelyRewrittenInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpFieldImmediatelyRewrittenInspection.html new file mode 100644 index 000000000..32e322bc8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpFieldImmediatelyRewrittenInspection.html @@ -0,0 +1,5 @@ + + +报告在访问之前立即被覆盖的属性上的写入表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpForeachArrayIsUsedAsValueInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpForeachArrayIsUsedAsValueInspection.html new file mode 100644 index 000000000..e3d7f1c0f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpForeachArrayIsUsedAsValueInspection.html @@ -0,0 +1,8 @@ + + + 报告在 foreach 循环中用作数组表达式和数组键或值的变量(例如,foreach ($items as $items) {}) 。 +

      + 通常情况下,这是一个拼写错误的结果。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpForeachNestedOuterKeyValueVariablesConflictInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpForeachNestedOuterKeyValueVariablesConflictInspection.html new file mode 100644 index 000000000..953446d9b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpForeachNestedOuterKeyValueVariablesConflictInspection.html @@ -0,0 +1,5 @@ + + +报告同时被内部和外部 foreach 循环作为键或值的变量。 在大多数情况下,这是一个错误,或者将来可能会导致错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpForeachOverSingleElementArrayLiteralInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpForeachOverSingleElementArrayLiteralInspection.html new file mode 100644 index 000000000..f889c28d9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpForeachOverSingleElementArrayLiteralInspection.html @@ -0,0 +1,5 @@ + + +报告迭代的数组文字只包含一个元素的 foreach 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpForeachVariableOverwritesAlreadyDefinedVariableInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpForeachVariableOverwritesAlreadyDefinedVariableInspection.html new file mode 100644 index 000000000..eeb5473dd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpForeachVariableOverwritesAlreadyDefinedVariableInspection.html @@ -0,0 +1,7 @@ + + +报告 foreach 循环中的键和值,这些键和值在 foreach 循环之前被分配了一个非基元值,并在其之后被访问。 + +这可能导致潜在的错误,因为它意外地覆盖了已经定义的值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpFormatCallWithSingleArgumentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpFormatCallWithSingleArgumentInspection.html new file mode 100644 index 000000000..528a8415d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpFormatCallWithSingleArgumentInspection.html @@ -0,0 +1,5 @@ + + +报告使用单个实参的 sprintf()vsprintf() 调用。 此类调用不会产生任何效果,并且可以安全解开,即替换为参数本身。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpFormatFunctionParametersMismatchInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpFormatFunctionParametersMismatchInspection.html new file mode 100644 index 000000000..d34c930ff --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpFormatFunctionParametersMismatchInspection.html @@ -0,0 +1,8 @@ + + + 报告格式函数(如 printfsprintf)的实参,这些实参没有被映射到任何形参或规范转换。 +

      + 有关详细信息,请参阅 printf (php.net)sprintf (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpFullyQualifiedNameUsageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpFullyQualifiedNameUsageInspection.html new file mode 100644 index 000000000..fd347e7b2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpFullyQualifiedNameUsageInspection.html @@ -0,0 +1,5 @@ + + +报告可以通过添加 use 语句来缩短的完全合格的类名。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpFuncGetArgCanBeReplacedWithParamInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpFuncGetArgCanBeReplacedWithParamInspection.html new file mode 100644 index 000000000..609034785 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpFuncGetArgCanBeReplacedWithParamInspection.html @@ -0,0 +1,5 @@ + + +报告可以替换为直接形参访问的 func_get_arg() 调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpFunctionCyclomaticComplexityInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpFunctionCyclomaticComplexityInspection.html new file mode 100644 index 000000000..344466704 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpFunctionCyclomaticComplexityInspection.html @@ -0,0 +1,8 @@ + + +报告循环复杂度较高并且或许可以简化的方法。 +

      + 有关详细信息,请参阅 循环复杂度 (wikipedia.org) 。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpFunctionNamingConventionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpFunctionNamingConventionInspection.html new file mode 100644 index 000000000..a0d33daaa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpFunctionNamingConventionInspection.html @@ -0,0 +1,14 @@ + + +报告太短、太长或不符合指定的正则表达式模式的函数名称。 +某些编码风格对函数有特殊的命名惯例。 + +

      + 使用检查选项来指定函数名称的最小/最大长度和预期正则表达式。 + 要忽略名字的长度,指定 0。 +

      +

      + 要了解更多关于正则表达式的信息,请参考 Quick Start guide (regular-expressions.info)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpGetClassCanBeReplacedWithClassNameLiteralInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpGetClassCanBeReplacedWithClassNameLiteralInspection.html new file mode 100644 index 000000000..944502f7b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpGetClassCanBeReplacedWithClassNameLiteralInspection.html @@ -0,0 +1,8 @@ + + + 报告 get_class() 调用,并建议在 PHP 语言级别设置为 8.0 或更高时将其替换为 ::class。 +

      + 有关详细信息,请参阅 Allow ::class on objects (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpGotoIntoLoopInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpGotoIntoLoopInspection.html new file mode 100644 index 000000000..cfc5f1f71 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpGotoIntoLoopInspection.html @@ -0,0 +1,8 @@ + + +报告位于循环或 switch 语句内的 goto 标签。 +

      + 有关详细信息,请参阅 goto (php.net)。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpHalsteadMetricInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpHalsteadMetricInspection.html new file mode 100644 index 000000000..e769a2d2a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpHalsteadMetricInspection.html @@ -0,0 +1,9 @@ + + +报告 Halstead 复杂度度量指标较高的方法。 + +

      + 有关详细信息,请参阅 Halstead 度量 (wikipedia.org)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpHierarchyChecksInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpHierarchyChecksInspection.html new file mode 100644 index 000000000..e4b20f010 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpHierarchyChecksInspection.html @@ -0,0 +1,6 @@ + + +检查类的层次结构:抽象方法的实现,实现/重写方法与其在父类中的声明兼容性以及属性的类型重新声明。 +

      所有报告的违规行为都会导致 PHP 致命错误。 不建议禁用或取消此检查。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpIdempotentOperationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpIdempotentOperationInspection.html new file mode 100644 index 000000000..1676657e0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpIdempotentOperationInspection.html @@ -0,0 +1,5 @@ + + +报告不更改表达式结果 (如 + 0. "") 并因此而冗余的二进制表达式操作数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpIfCanBeMergedWithSequentialConditionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpIfCanBeMergedWithSequentialConditionInspection.html new file mode 100644 index 000000000..f9534b86c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpIfCanBeMergedWithSequentialConditionInspection.html @@ -0,0 +1,5 @@ + + +报告一个后面跟随主体相同的 elseif 或其他 if 语句的 if 语句。 此类声明可以合并在一起。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpIfWithCommonPartsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpIfWithCommonPartsInspection.html new file mode 100644 index 000000000..fad392619 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpIfWithCommonPartsInspection.html @@ -0,0 +1,5 @@ + + +报告有重复的通用部分的 if 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpIgnoredClassAliasDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/PhpIgnoredClassAliasDeclaration.html new file mode 100644 index 000000000..62517e107 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpIgnoredClassAliasDeclaration.html @@ -0,0 +1,15 @@ + + +报告被 IDE 忽略的类别名声明,因为存在相同 FQN 的实际类声明。 + +

      + 检查的目的是澄清 IDE 在类和类别名声明同时存在的情况下的行为。 + 当存在几个具有相同 FQN 的声明时,IDE 通常无法在它们之间选择一个声明。 + 这会导致错误的代码补全、错误的类型推理等。 由于类的声明优先于 + 类的别名声明,后者成为冗余的,因此被 IDE 忽略了。 +

      +

      + 注意,忽略类别名声明并不影响 PHP 解释器的行为。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpIllegalArrayKeyTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpIllegalArrayKeyTypeInspection.html new file mode 100644 index 000000000..76bcb0319 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpIllegalArrayKeyTypeInspection.html @@ -0,0 +1,8 @@ + + + 报告非法类型的数组键,例如对象或数组。 +

      + 有关详细信息,请参阅 Arrays (php.net)。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpIllegalPsrClassPathInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpIllegalPsrClassPathInspection.html new file mode 100644 index 000000000..83bd40c55 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpIllegalPsrClassPathInspection.html @@ -0,0 +1,12 @@ + + +报告文件路径不遵循 PSR-0/PSR-4 项目结构的类。 +

      + 您可以在 设置/偏好设置 | 目录 下配置项目供应商的根目录。 +

      + +

      + 有关详细信息,请参阅 PSR-0/PSR-4 standards (php-fig.org)。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpIllegalStringOffsetInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpIllegalStringOffsetInspection.html new file mode 100644 index 000000000..52fef53ab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpIllegalStringOffsetInspection.html @@ -0,0 +1,12 @@ + + +报告在字符串访问表达式中使用非 integer 偏移量,如 $str[42]。 + +

      + 自 PHP 5.4 起,字符串偏移量必须是整数或类整数字符串。 + 由于使用字符串作为字符串偏移量被认为是一种不好的做法,该检查也会报告此类用法。 +

      +

      有关详细信息,请参阅 String access and modification by character (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpImmutablePropertyIsWrittenInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpImmutablePropertyIsWrittenInspection.html new file mode 100644 index 000000000..ef39df92d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpImmutablePropertyIsWrittenInspection.html @@ -0,0 +1,5 @@ + + +高亮显示对属性的写入权限引用,通过 #[Immutable] 为这些属性声明的写入权限范围比引用范围更严格。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpImplicitOctalLiteralUsageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpImplicitOctalLiteralUsageInspection.html new file mode 100644 index 000000000..35d1c454e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpImplicitOctalLiteralUsageInspection.html @@ -0,0 +1,11 @@ + + +报告可以替换为显式文字(例如 0o71)的隐式八进制文字(例如 071)。 +

      + PHP 8.1 及更高版本支持使用 0o/0O 前缀的显式八进制文字。 +

      +

      + 有关详细信息,请参阅显式八进制整数文字表示法 (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpInArrayCanBeReplacedWithComparisonInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpInArrayCanBeReplacedWithComparisonInspection.html new file mode 100644 index 000000000..e2da85c91 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpInArrayCanBeReplacedWithComparisonInspection.html @@ -0,0 +1,8 @@ + + +报告单元素数组作为 $haystack 实参提供的 in_array() 调用。 这种调用可以用直接比较来代替。 +

      + 有关详细信息,请参阅 in_array (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpInapplicableAttributeTargetDeclarationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpInapplicableAttributeTargetDeclarationInspection.html new file mode 100644 index 000000000..e78c482e1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpInapplicableAttributeTargetDeclarationInspection.html @@ -0,0 +1,8 @@ + + +报告那些在实参声明中没有适当的 Attribute::TARGET_* 标志的特性。 +

      + 有关详细信息,请参阅 Attributes (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpInappropriateInheritDocUsageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpInappropriateInheritDocUsageInspection.html new file mode 100644 index 000000000..c1e33733c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpInappropriateInheritDocUsageInspection.html @@ -0,0 +1,13 @@ + + + 报告不当的 @inheritDoc 用法: +
        +
      • + 对非类成员 +
      • +
      • + 对没有带有文档注释的超级成员的类成员。 +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpIncludeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpIncludeInspection.html new file mode 100644 index 000000000..f83517909 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpIncludeInspection.html @@ -0,0 +1,5 @@ + + + 报告未解析的 includeinclude_oncerequirerequire_once 表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpIncompatibleReturnTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpIncompatibleReturnTypeInspection.html new file mode 100644 index 000000000..60bee5f0e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpIncompatibleReturnTypeInspection.html @@ -0,0 +1,5 @@ + + + 报告 return 语句,该语句的返回类型与函数或方法中声明的返回类型不兼容。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpInconsistentReturnPointsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpInconsistentReturnPointsInspection.html new file mode 100644 index 000000000..a745a8026 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpInconsistentReturnPointsInspection.html @@ -0,0 +1,16 @@ + + +报告函数/方法退出点的不一致性。 + +

      +报告了以下类型的不一致情况: +

      +
        +
      • 函数/方法既有带有实参又有不带有实参的 return 语句。
      • +
      • 函数或方法可能返回一个值或终止执行而不返回任何值。
      • +
      +

      +严格来说,这些都不是错误,但实际上它们通常表明了一个编程错误。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpIncorrectMagicMethodSignatureInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpIncorrectMagicMethodSignatureInspection.html new file mode 100644 index 000000000..6d8d94937 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpIncorrectMagicMethodSignatureInspection.html @@ -0,0 +1,8 @@ + + + 报告不兼容的魔法方法签名。 +

      + 有关详细信息,请参阅 RFC: Ensure correct signatures of magic methods (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpInstanceofIsAlwaysTrueInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpInstanceofIsAlwaysTrueInspection.html new file mode 100644 index 000000000..9b28658ca --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpInstanceofIsAlwaysTrueInspection.html @@ -0,0 +1,5 @@ + + +报告实参在已检查的变量的层次结构内的 instanceof 表达式。 此类表达式将始终是评估为 true。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpInternalEntityUsedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpInternalEntityUsedInspection.html new file mode 100644 index 000000000..095f3ec67 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpInternalEntityUsedInspection.html @@ -0,0 +1,8 @@ + + + 报告被标记为 @internal 并且位于不同源根的实体用法。 位于同一源根中的用法不被报告。 +

      + 在大多数情况下,报告的用法应该被删除,或者用其他结构来代替。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpInvalidInstanceofInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpInvalidInstanceofInspection.html new file mode 100644 index 000000000..b0d32ebd9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpInvalidInstanceofInspection.html @@ -0,0 +1,5 @@ + + + 报告不是对象或字符串的 'instanceof' 实参 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpInvalidMagicMethodModifiersInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpInvalidMagicMethodModifiersInspection.html new file mode 100644 index 000000000..a6ef0155b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpInvalidMagicMethodModifiersInspection.html @@ -0,0 +1,5 @@ + + + 报告没有被声明为 public 的或被声明为 static 的魔术方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpInvalidStringOffsetUsageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpInvalidStringOffsetUsageInspection.html new file mode 100644 index 000000000..4b2fab466 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpInvalidStringOffsetUsageInspection.html @@ -0,0 +1,18 @@ + + +报告将导致运行时错误的无效字符串偏移的使用情况。 + +

      + 报告的情况如下: +

      +
        +
      • 将字符串偏移量用作对象或数组
      • +
      • 通过 unset 取消设置字符串偏移量
      • +
      • 通过引用传递字符串偏移量
      • +
      • 创建对字符串偏移的引用或反之
      • +
      • 递增或递减字符串偏移量
      • +
      • 在字符串偏移上使用组合运算符赋值,例如 +=.=
      • +
      • 使用空字符串或长度大于 1 的字符串分配字符串偏移量
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpIssetCanBeReplacedWithCoalesceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpIssetCanBeReplacedWithCoalesceInspection.html new file mode 100644 index 000000000..42d3715ad --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpIssetCanBeReplacedWithCoalesceInspection.html @@ -0,0 +1,8 @@ + + +报告使用 isset 的条件,这些条件可以安全地被使用 ?? null合并运算符的表达式取代。 +

      + 有关详细信息,请参阅 Null coalesce operator (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpLackOfCohesionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpLackOfCohesionInspection.html new file mode 100644 index 000000000..5f64d9822 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpLackOfCohesionInspection.html @@ -0,0 +1,8 @@ + + +报告“缺少内聚”度量指标值较高的类,该值表示类的内聚程度。 +

      +它使用类的依赖项关系图组件来显示一个类的内聚程度 (M. Hitz 和 B. Montazeri 对 LCOM 指标的定义) +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpLanguageLevelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpLanguageLevelInspection.html new file mode 100644 index 000000000..9196266ba --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpLanguageLevelInspection.html @@ -0,0 +1,6 @@ + + + 报告源代码中对于所选的语言级别不被支持的语言特性。 +

      例如,联合类型只能在 PHP 8.0 及更新版本中使用。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpLineCommentWillBeParsedAsAttributeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpLineCommentWillBeParsedAsAttributeInspection.html new file mode 100644 index 000000000..10c6eb86d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpLineCommentWillBeParsedAsAttributeInspection.html @@ -0,0 +1,8 @@ + + + 报告以 #[ 开头的行注释。 在 PHP 8.0 和更高版本中,此类注释被解析为特性。 +

      + 有关详细信息,请参阅 Attributes (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpLongTypeFormInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpLongTypeFormInspection.html new file mode 100644 index 000000000..709ae3d68 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpLongTypeFormInspection.html @@ -0,0 +1,11 @@ + + +报告长形类型关键词的用法。 +

      + 根据 PSR-12,必须使用类型关键字的缩写,即 bool 而不是 booleanint 而不是 integer等。 +

      +

      + 有关详细信息,请参阅 Keywords and Types (php-fig.org)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpLoopCanBeConvertedToArrayFillInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpLoopCanBeConvertedToArrayFillInspection.html new file mode 100644 index 000000000..3960d5bb0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpLoopCanBeConvertedToArrayFillInspection.html @@ -0,0 +1,5 @@ + + +报告可以替换为 array_fill() 调用的 for 循环。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpLoopCanBeConvertedToArrayFilterInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpLoopCanBeConvertedToArrayFilterInspection.html new file mode 100644 index 000000000..574247aab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpLoopCanBeConvertedToArrayFilterInspection.html @@ -0,0 +1,5 @@ + + +报告可以替换为 array_filter() 调用的 foreach 循环。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpLoopCanBeConvertedToArrayMapInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpLoopCanBeConvertedToArrayMapInspection.html new file mode 100644 index 000000000..2e52a707e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpLoopCanBeConvertedToArrayMapInspection.html @@ -0,0 +1,5 @@ + + +报告可以替换为 array_map() 调用的 foreach 循环。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpLoopCanBeReplacedWithImplodeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpLoopCanBeReplacedWithImplodeInspection.html new file mode 100644 index 000000000..8d965d9f9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpLoopCanBeReplacedWithImplodeInspection.html @@ -0,0 +1,8 @@ + + +报告可以安全替换为 implode() 调用的 foreach 循环。 +

      + 有关详细信息,请参阅 implode (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpLoopCanBeReplacedWithStrRepeatInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpLoopCanBeReplacedWithStrRepeatInspection.html new file mode 100644 index 000000000..44930da0c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpLoopCanBeReplacedWithStrRepeatInspection.html @@ -0,0 +1,5 @@ + + +报告可以安全地替换为 str_repeat() 调用的 for 循环。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpLoopNeverIteratesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpLoopNeverIteratesInspection.html new file mode 100644 index 000000000..d357af018 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpLoopNeverIteratesInspection.html @@ -0,0 +1,9 @@ + + +报告其主体最多执行一次的循环语句。 + +

      + 检查不报告主体内使用了一个键或值的 foreach 循环。 通常情况下,这种循环只在其第一次迭代时执行一个操作(例如,获得数组的第一个元素)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMatchCanBeReplacedWithSwitchStatementInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMatchCanBeReplacedWithSwitchStatementInspection.html new file mode 100644 index 000000000..0d6b2e562 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMatchCanBeReplacedWithSwitchStatementInspection.html @@ -0,0 +1,11 @@ + + +报告可以替换为 switch 语句的 match 表达式。 +

      + 请注意,match 表达式使用严格类型比较,而 switch 语句使用松散比较。 因此,替换后表达式语义可能发生变化。 +

      +

      + 有关详细信息,请参阅 match (php.net)match (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMatchExpressionCanBeReplacedWithTernaryInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMatchExpressionCanBeReplacedWithTernaryInspection.html new file mode 100644 index 000000000..6653c36bb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMatchExpressionCanBeReplacedWithTernaryInspection.html @@ -0,0 +1,8 @@ + + +报告包含一个默认分支和单个非默认分支的 match 表达式。 这种 match 表达式可以用三元表达式代替。 +

      + 有关详细信息,请参阅 Match expression (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMatchExpressionWithOnlyDefaultArmInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMatchExpressionWithOnlyDefaultArmInspection.html new file mode 100644 index 000000000..8d31183b0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMatchExpressionWithOnlyDefaultArmInspection.html @@ -0,0 +1,8 @@ + + +报告只包含 default 分支的 match 表达式。 这种表达式是冗余的,应当进行简化。 +

      + 有关详细信息,请参阅 Match expression (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMemberCanBePulledUpInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMemberCanBePulledUpInspection.html new file mode 100644 index 000000000..cad6ff272 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMemberCanBePulledUpInspection.html @@ -0,0 +1,5 @@ + + +报告应向上拉取到父类或接口的类方法和属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMethodMayBeStaticInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMethodMayBeStaticInspection.html new file mode 100644 index 000000000..0a53faff0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMethodMayBeStaticInspection.html @@ -0,0 +1,5 @@ + + +报告不使用任何实例引用而可以转换为 static 方法的方法。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMethodNamingConventionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMethodNamingConventionInspection.html new file mode 100644 index 000000000..7bdb176d0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMethodNamingConventionInspection.html @@ -0,0 +1,14 @@ + + +报告名称太短、太长或不符合指定的正则表达式模式的方法。 +某些编码风格对方法有特殊的命名惯例。 + +

      + 使用检查选项来指定方法名称的最小/最大长度和预期正则表达式。 + 要忽略名字的长度,指定 0。 +

      +

      + 要了解更多关于正则表达式的信息,请参考 Quick Start guide (regular-expressions.info)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMethodOrClassCallIsNotCaseSensitiveInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMethodOrClassCallIsNotCaseSensitiveInspection.html new file mode 100644 index 000000000..8d8117757 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMethodOrClassCallIsNotCaseSensitiveInspection.html @@ -0,0 +1,5 @@ + + +报告与声明中使用的大小写不匹配的函数、方法、类和命名空间的用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMethodParametersCountMismatchInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMethodParametersCountMismatchInspection.html new file mode 100644 index 000000000..078b3fdb7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMethodParametersCountMismatchInspection.html @@ -0,0 +1,5 @@ + + +报告采取比声明中指定的更多形参的函数/方法调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMissingBreakStatementInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingBreakStatementInspection.html new file mode 100644 index 000000000..bd5a0cd97 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingBreakStatementInspection.html @@ -0,0 +1,9 @@ + + + 报告 switch 语句中不以 breakreturn 语句结尾的 case 子句。 + +

      + 如果 case 子句不以 breakreturn 结尾,则其执行可能无意中落入下一个 case。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMissingDocCommentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingDocCommentInspection.html new file mode 100644 index 000000000..7d309a468 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingDocCommentInspection.html @@ -0,0 +1,8 @@ + + +报告没有 PHPDoc 注释或 PHPDoc 注释仅包含 @noinspection 标记的非完全类型化元素。 + +

      您可以使用强制执行 PHPDoc 注释检查报告完全类型化元素。

      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMissingFieldTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingFieldTypeInspection.html new file mode 100644 index 000000000..a63564aa5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingFieldTypeInspection.html @@ -0,0 +1,5 @@ + + +报告没有类型声明的属性。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMissingParamTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingParamTypeInspection.html new file mode 100644 index 000000000..0a90c7ad9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingParamTypeInspection.html @@ -0,0 +1,5 @@ + + +报告未指定类型声明的形参。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMissingParentCallCommonInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingParentCallCommonInspection.html new file mode 100644 index 000000000..4c8992ac7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingParentCallCommonInspection.html @@ -0,0 +1,5 @@ + + + 报告那些不调用其父方法的方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMissingParentCallMagicInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingParentCallMagicInspection.html new file mode 100644 index 000000000..bce0bf2cb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingParentCallMagicInspection.html @@ -0,0 +1,5 @@ + + + 报告那些不调用其父魔术方法的魔术方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMissingParentConstructorInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingParentConstructorInspection.html new file mode 100644 index 000000000..037e4ebcf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingParentConstructorInspection.html @@ -0,0 +1,5 @@ + + + 报告不调用其父构造函数的构造函数。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMissingReturnTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingReturnTypeInspection.html new file mode 100644 index 000000000..765b1953c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingReturnTypeInspection.html @@ -0,0 +1,5 @@ + + +报告那些没有指定返回类型声明的函数。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMissingStrictTypesDeclarationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingStrictTypesDeclarationInspection.html new file mode 100644 index 000000000..9749248a4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingStrictTypesDeclarationInspection.html @@ -0,0 +1,9 @@ + + + 检测文件中缺少的 declare(strict_types=1) 指令。 + +

      + 请参阅 Strict typing (php.net) 以了解更多关于您可能需要使用这个指令的原因。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMissingVisibilityInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingVisibilityInspection.html new file mode 100644 index 000000000..d798cb333 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMissingVisibilityInspection.html @@ -0,0 +1,21 @@ + + +报告声明时未定义可见性的属性、常量和方法。 + +

      根据 PSR-12,应为以下方面定义可见性:

      +
        +
      • + 所有属性, +
      • +
      • + 所有常量,如果您项目的 PHP 最低版本支持常量可见性(PHP 7.1 或更高版本), +
      • +
      • + 所有方法。 +
      • +
      +

      + 有关详细信息,请参阅 PSR-12: Extended Coding Style (php-fig.org) 。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMixedReturnTypeCanBeReducedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMixedReturnTypeCanBeReducedInspection.html new file mode 100644 index 000000000..d00dd4a08 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMixedReturnTypeCanBeReducedInspection.html @@ -0,0 +1,5 @@ + + + 报告 'mixed' 返回类型,可以将其缩小为更具体的类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpModifierOrderInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpModifierOrderInspection.html new file mode 100644 index 000000000..d62100031 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpModifierOrderInspection.html @@ -0,0 +1,16 @@ + + +报告以不正确的顺序指定的可见性修饰符。 + +

      根据 PSR-12,正确的顺序如下:

      + +
        +
      • 当存在时,abstractfinal 声明必须位于可见性声明前面。
      • + +
      • 当存在时,static 声明必须位于可见性声明后面。
      • +
      +

      + 有关详细信息,请参阅 PSR-12: Extended Coding Style (php-fig.org)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpModuloByOneInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpModuloByOneInspection.html new file mode 100644 index 000000000..1fc36975a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpModuloByOneInspection.html @@ -0,0 +1,5 @@ + + +报告始终评估为 01 的模数表达式 %。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMultipleClassDeclarationsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMultipleClassDeclarationsInspection.html new file mode 100644 index 000000000..f0fa0ca6a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMultipleClassDeclarationsInspection.html @@ -0,0 +1,11 @@ + + +报告对在项目文件中有多个声明的类的引用。 +

      使用以下选项来自定义检查:

      +
        +
      • + 忽略 PHPDoc :如果选择,检查将不会报告在 PHPDoc 块中引用的类的多个声明。 +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpMultipleClassesDeclarationsInOneFile.html b/original-plugin-raw/zh/inspectionDescriptions/PhpMultipleClassesDeclarationsInOneFile.html new file mode 100644 index 000000000..aee8a3c11 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpMultipleClassesDeclarationsInOneFile.html @@ -0,0 +1,9 @@ + + +报告在单个文件中有多个类声明,这违反了 PSR-0 / PSR-4 标准。 + +

      + 有关详细信息,请参阅 PSR-0/PSR-4 standards (php-fig.org)。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpNamedArgumentMightBeUnresolvedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpNamedArgumentMightBeUnresolvedInspection.html new file mode 100644 index 000000000..e7c27b224 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpNamedArgumentMightBeUnresolvedInspection.html @@ -0,0 +1,5 @@ + + + 报告方法调用中可能由于层次结构中的特定类实例而未被解析的命名实参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpNamedArgumentUsageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpNamedArgumentUsageInspection.html new file mode 100644 index 000000000..f90abe896 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpNamedArgumentUsageInspection.html @@ -0,0 +1,3 @@ + +报告有名称标识符的实参。 + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpNamedArgumentsWithChangedOrderInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpNamedArgumentsWithChangedOrderInspection.html new file mode 100644 index 000000000..7eada9181 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpNamedArgumentsWithChangedOrderInspection.html @@ -0,0 +1,5 @@ + + +报告命名实参的顺序与形参顺序不匹配 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpNestedDirNameCallsCanBeReplacedWithLevelParameterInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpNestedDirNameCallsCanBeReplacedWithLevelParameterInspection.html new file mode 100644 index 000000000..d8703a01b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpNestedDirNameCallsCanBeReplacedWithLevelParameterInspection.html @@ -0,0 +1,5 @@ + + +报告可以通过改用 levels 形参省略的嵌套 dirname() 调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpNestedMinMaxCallInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpNestedMinMaxCallInspection.html new file mode 100644 index 000000000..1b5ac420c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpNestedMinMaxCallInspection.html @@ -0,0 +1,5 @@ + + +报告嵌套的 min/max 调用。 由于 min/max 函数接受任意数量的参数,因此此类嵌套调用是冗余的。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpNestedTernaryExpressionUsageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpNestedTernaryExpressionUsageInspection.html new file mode 100644 index 000000000..f6588af01 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpNestedTernaryExpressionUsageInspection.html @@ -0,0 +1,5 @@ + + +报告嵌套的三元表达式,这些表达式自 PHP 7.4 起已弃用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpNeverTypedFunctionReturnViolationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpNeverTypedFunctionReturnViolationInspection.html new file mode 100644 index 000000000..c6075348d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpNeverTypedFunctionReturnViolationInspection.html @@ -0,0 +1,8 @@ + + +报告其 never 返回类型提示可能返回某个值的函数。 具有此类返回类型的函数不应返回任何值。 +

      + 有关详细信息,请参阅 noreturn 类型 (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpNewClassMissingParameterListInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpNewClassMissingParameterListInspection.html new file mode 100644 index 000000000..bcf6f8001 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpNewClassMissingParameterListInspection.html @@ -0,0 +1,11 @@ + + +报告类的实例化中缺少的形参列表。 + +

      根据 PSR-12 规范,当实例化一个新类时,即使没有实参传递给构造函数,您也必须始终使用圆括号。

      + +

      + 有关详细信息,请参阅 PSR-12: Extended Coding Style (php-fig.org) 。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpNoReturnAttributeCanBeAddedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpNoReturnAttributeCanBeAddedInspection.html new file mode 100644 index 000000000..cdb8df777 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpNoReturnAttributeCanBeAddedInspection.html @@ -0,0 +1,5 @@ + + +报告没有 #[NoReturn] 的函数,这些函数总是通过调用其他 exitPoint 函数特性来停止其执行。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpNonCanonicalElementsOrderInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpNonCanonicalElementsOrderInspection.html new file mode 100644 index 000000000..e82a19cac --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpNonCanonicalElementsOrderInspection.html @@ -0,0 +1,7 @@ + + + 报告元素列出顺序不规范的 PHPDoc 标签。 +

      例如,对于 @property@param@var 这样的标签,检查将报告 [name] ["Type"] 的用法,而不是 ["Type"] [name]。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpNonCompoundUseInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpNonCompoundUseInspection.html new file mode 100644 index 000000000..53393f9bc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpNonCompoundUseInspection.html @@ -0,0 +1,9 @@ + + + 报告包含非完全合格的类名的 use 语句,因为没有任何作用。 该检查只报告类的导入;函数和常量的导入不被考虑。 + +

      + 有关详细信息,请参阅 Using namespaces: Aliasing/Importing (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpNonStrictObjectEqualityInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpNonStrictObjectEqualityInspection.html new file mode 100644 index 000000000..756f7cdf8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpNonStrictObjectEqualityInspection.html @@ -0,0 +1,20 @@ + + +报告比较运算符(==)在比较对象变量中的用法。 + +

      + 对象变量的比较如下: +

      +
        +
      • + 当使用比较运算符(==)时,如果两个对象实例具有相同的特性和数值(数值用 == 比较),并且是同一个类的实例,则认为它们是相等的。 +
      • +
      • + 当使用身份运算符(===)时,当且仅当它们指向同一个类的同一个实例,两个对象变量被认为是相等的。 +
      • +
      +

      + 有关详细信息,请参阅 Comparing Objects (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpNotInstalledPackagesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpNotInstalledPackagesInspection.html new file mode 100644 index 000000000..0ae375a14 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpNotInstalledPackagesInspection.html @@ -0,0 +1,5 @@ + + +报告 composer.json 中需要但没有安装的 Composer 软件包。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpNullIsNotCompatibleWithParameterInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpNullIsNotCompatibleWithParameterInspection.html new file mode 100644 index 000000000..fae712f9a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpNullIsNotCompatibleWithParameterInspection.html @@ -0,0 +1,5 @@ + + +报告通过被引用传递给与 null 不兼容的形参来初始化的变量。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpNullSafeOperatorCanBeUsedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpNullSafeOperatorCanBeUsedInspection.html new file mode 100644 index 000000000..83780b1f1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpNullSafeOperatorCanBeUsedInspection.html @@ -0,0 +1,5 @@ + + +报告可以用 ?-> nullsafe 运算符安全替换的 null 检查条件表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpObjectFieldsAreOnlyWrittenInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpObjectFieldsAreOnlyWrittenInspection.html new file mode 100644 index 000000000..c9614b149 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpObjectFieldsAreOnlyWrittenInspection.html @@ -0,0 +1,5 @@ + + +报告对新对象的变量赋值,这些赋值仅用于编写对象属性,没有明显的副作用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpOptionalBeforeRequiredParametersInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpOptionalBeforeRequiredParametersInspection.html new file mode 100644 index 000000000..658366193 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpOptionalBeforeRequiredParametersInspection.html @@ -0,0 +1,8 @@ + + +报告在函数/方法声明中出现在必要形参之前的可选形参。 +

      + 有关详细信息,请参阅 Default argument values (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpOverridingMethodVisibilityInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpOverridingMethodVisibilityInspection.html new file mode 100644 index 000000000..7e8e945b4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpOverridingMethodVisibilityInspection.html @@ -0,0 +1,12 @@ + + +检查这些方法未覆盖可见性。 +

      + 在子类中用 public 方法覆盖 protected 方法,使得这个方法可以从任何地方被访问。 + 这违反了封装原则,被认为是一种不好的做法。 +

      +

      + 有关详细信息,请参阅 Method Visibility (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpParameterByRefIsNotUsedAsReferenceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpParameterByRefIsNotUsedAsReferenceInspection.html new file mode 100644 index 000000000..e0efad00d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpParameterByRefIsNotUsedAsReferenceInspection.html @@ -0,0 +1,9 @@ + + +报告通过引用传递给函数/方法但在函数/方法主体中没有被修改的变量。 在这种情况下,形参声明中的 & 可以被安全地移除。 + +

      + 有关详细信息,请参阅 Passing by Reference (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpParameterNameChangedDuringInheritanceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpParameterNameChangedDuringInheritanceInspection.html new file mode 100644 index 000000000..b1c8ebe20 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpParameterNameChangedDuringInheritanceInspection.html @@ -0,0 +1,5 @@ + + + 报告名称与父方法中定义的相同形参名称不同的方法形参。 从 PHP 8.0 开始,此类代码可能会导致运行时出错。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpParameterWriteCanBeMergedIntoDefaultValueInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpParameterWriteCanBeMergedIntoDefaultValueInspection.html new file mode 100644 index 000000000..25900005c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpParameterWriteCanBeMergedIntoDefaultValueInspection.html @@ -0,0 +1,5 @@ + + +报告可以直接合并到形参的默认值中的形参重写表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpParamsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpParamsInspection.html new file mode 100644 index 000000000..59b647a43 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpParamsInspection.html @@ -0,0 +1,9 @@ + + +报告传递给函数调用的形参,这些形参的类型与通过类型声明或 PHPDoc @param 标记在函数定义中指定的类型不匹配。 + + +

      有关详细信息,请参阅 Type declarations (php.net) 和 + @param (phpdoc.org)

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpPassByRefInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpPassByRefInspection.html new file mode 100644 index 000000000..35ca1ef44 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpPassByRefInspection.html @@ -0,0 +1,8 @@ + + + 报告无法通过引用传递的函数/方法调用中的实参。 +

      + 只有变量和从函数返回的引用可以通过引用传递。 有关详细信息,请参阅 Passing by Reference (php.net)。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpPluralMixedCanBeReplacedWithArrayInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpPluralMixedCanBeReplacedWithArrayInspection.html new file mode 100644 index 000000000..9ade62cbd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpPluralMixedCanBeReplacedWithArrayInspection.html @@ -0,0 +1,5 @@ + + +报告 PHPDoc 块中可以安全地用 array 替代的 mixed[] 的用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpPossiblePolymorphicInvocationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpPossiblePolymorphicInvocationInspection.html new file mode 100644 index 000000000..28e146c1d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpPossiblePolymorphicInvocationInspection.html @@ -0,0 +1,5 @@ + + +报告多态代码用法。 此类用法不明确,可能不实用,具体取决于作为实参传递的类实例。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpPregMatchWithoutEffectiveRegexpInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpPregMatchWithoutEffectiveRegexpInspection.html new file mode 100644 index 000000000..4b7185a03 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpPregMatchWithoutEffectiveRegexpInspection.html @@ -0,0 +1,6 @@ + + +报告所包含的 pattern 实参不使用任何正则表达式工具的 preg_match 调用。 +此类调用可以替换为 str_starts_with()str_contains() 调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpPrivateFieldCanBeLocalVariableInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpPrivateFieldCanBeLocalVariableInspection.html new file mode 100644 index 000000000..216adfd01 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpPrivateFieldCanBeLocalVariableInspection.html @@ -0,0 +1,5 @@ + + +报告仅在单个方法中使用的 private 属性。 这种属性可以替换为局部变量。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpPromotedFieldUsageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpPromotedFieldUsageInspection.html new file mode 100644 index 000000000..f2e3f6865 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpPromotedFieldUsageInspection.html @@ -0,0 +1,11 @@ + + +报告通过提升的构造函数形参声明的属性。 +

      + 仅在 PHP 8.0 及更高版本允许使用提升的属性。 在早期的 PHP 版本中,它会导致一个解析错误。 +

      +

      + 有关详细信息,请参阅 Constructor Property Promotion (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpPropertyNamingConventionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpPropertyNamingConventionInspection.html new file mode 100644 index 000000000..ea515adbe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpPropertyNamingConventionInspection.html @@ -0,0 +1,14 @@ + + +报告名称太短、太长或不符合指定的正则表达式模式的属性。 +某些编码风格对属性有特殊的命名惯例。 + +

      + 使用检查选项来指定属性名称的最小/最大长度和预期正则表达式。 + 要忽略名字的长度,指定 0。 +

      +

      + 要了解更多关于正则表达式的信息,请参考 Quick Start guide (regular-expressions.info)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpPropertyOnlyWrittenInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpPropertyOnlyWrittenInspection.html new file mode 100644 index 000000000..f9b2a6d9f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpPropertyOnlyWrittenInspection.html @@ -0,0 +1,9 @@ + + +报告以下 private 属性: +
        +
      • 写入但从未读取
      • +
      • 读取但从未写入
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpPureAttributeCanBeAddedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpPureAttributeCanBeAddedInspection.html new file mode 100644 index 000000000..623ebe2f6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpPureAttributeCanBeAddedInspection.html @@ -0,0 +1,5 @@ + + +报告非普通的纯函数。 这种函数在其主体内有其他的函数调用,但所有这种调用不会产生任何副作用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpPureFunctionMayProduceSideEffectsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpPureFunctionMayProduceSideEffectsInspection.html new file mode 100644 index 000000000..3bb2e4615 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpPureFunctionMayProduceSideEffectsInspection.html @@ -0,0 +1,5 @@ + + +报告可能产生副作用的函数上使用的 #[Pure] 注解。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpRangesInClassCanBeMergedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpRangesInClassCanBeMergedInspection.html new file mode 100644 index 000000000..9011b6d35 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpRangesInClassCanBeMergedInspection.html @@ -0,0 +1,5 @@ + + +报告正则表达式字符类中仅调整现有范围的字母范围或字符。 此类元素可以与调整后的范围合并。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpReadonlyPropertyWrittenOutsideDeclarationScopeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpReadonlyPropertyWrittenOutsideDeclarationScopeInspection.html new file mode 100644 index 000000000..132de8689 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpReadonlyPropertyWrittenOutsideDeclarationScopeInspection.html @@ -0,0 +1,9 @@ + + +报告在声明作用域之外对 readonly 属性的写入访问。 声明作用域实际上意味着在其中声明属性的类的非静态方法。 + +

      + 有关详细信息,请参阅只读属性(php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantArrayCallInForeachIteratedValueInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantArrayCallInForeachIteratedValueInspection.html new file mode 100644 index 000000000..536ca310d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantArrayCallInForeachIteratedValueInspection.html @@ -0,0 +1,5 @@ + + +报告 foreach 循环内使用迭代值而没有键的 array_values() 调用。 此类调用冗余,可以安全移除。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantAssignmentToPromotedFieldInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantAssignmentToPromotedFieldInspection.html new file mode 100644 index 000000000..5977d5718 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantAssignmentToPromotedFieldInspection.html @@ -0,0 +1,8 @@ + + + 报告对类属性的冗余赋值,这些赋值重复了通过提升的构造函数形参进行的自动赋值。 +

      + 有关详细信息,请参阅 Constructor Property Promotion (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantAttributeParenthesisInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantAttributeParenthesisInspection.html new file mode 100644 index 000000000..8f418ade7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantAttributeParenthesisInspection.html @@ -0,0 +1,8 @@ + + + 报告特性中的空实参列表。 +

      + 有关详细信息,请参阅 Attributes (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantCatchClauseInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantCatchClauseInspection.html new file mode 100644 index 000000000..371bfcbc8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantCatchClauseInspection.html @@ -0,0 +1,5 @@ + + +报告带有异常的 catch 子句,这些异常在相应的try块中从未抛出。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantClosingTagInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantClosingTagInspection.html new file mode 100644 index 000000000..d067ea604 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantClosingTagInspection.html @@ -0,0 +1,5 @@ + + +报告PHP结束标记 ?> 的用法,这些用法在仅包含 PHP 代码的文件中是冗余的。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantDefaultBreakContinueArgumentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantDefaultBreakContinueArgumentInspection.html new file mode 100644 index 000000000..f82e1a4bf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantDefaultBreakContinueArgumentInspection.html @@ -0,0 +1,9 @@ + + +报告 continuebreak 语句的冗余 1 实参。 由于此实参是可选的,并且其默认值为 1,因此可以省略此类用法。 + +

      + 有关详细信息,请参阅 continue (php.net)break (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantDocCommentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantDocCommentInspection.html new file mode 100644 index 000000000..53d41d017 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantDocCommentInspection.html @@ -0,0 +1,5 @@ + + +报告仅包含声明中已提供信息的 PHPDoc 注释。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantIntersectionTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantIntersectionTypeInspection.html new file mode 100644 index 000000000..bc5b66bd9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantIntersectionTypeInspection.html @@ -0,0 +1,8 @@ + + +报告包含冗余类型的交叉类型声明,例如,同时包含父类及其子类的交叉类型。 +

      + 有关详细信息,请参阅 PHP RFC: Pure intersection types (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantMethodOverrideInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantMethodOverrideInspection.html new file mode 100644 index 000000000..861d292d2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantMethodOverrideInspection.html @@ -0,0 +1,5 @@ + + +报告只包含对父方法的单个调用的重写方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantOptionalArgumentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantOptionalArgumentInspection.html new file mode 100644 index 000000000..d1daa6fa8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantOptionalArgumentInspection.html @@ -0,0 +1,5 @@ + + +报告匹配可选形参相应默认值的冗余实参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantTypeInUnionTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantTypeInUnionTypeInspection.html new file mode 100644 index 000000000..97412dfce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantTypeInUnionTypeInspection.html @@ -0,0 +1,8 @@ + + +报告包含冗余类型的联合类型声明,例如,同时包含类别名和原始类的联合类型。 +

      + 有关详细信息,请参阅 Union Types RFC: Duplicate and redundant types (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantVariableDocTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantVariableDocTypeInspection.html new file mode 100644 index 000000000..3215717f9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpRedundantVariableDocTypeInspection.html @@ -0,0 +1,5 @@ + + +报告 @var 标签的变量,其类型已经从源代码中推断出。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpReturnDocTypeMismatchInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpReturnDocTypeMismatchInspection.html new file mode 100644 index 000000000..6c6b637c0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpReturnDocTypeMismatchInspection.html @@ -0,0 +1,5 @@ + + +报告 PHPDoc 注释中与函数的实际返回类型不匹配的返回类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpReturnValueOfMethodIsNeverUsedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpReturnValueOfMethodIsNeverUsedInspection.html new file mode 100644 index 000000000..c66229930 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpReturnValueOfMethodIsNeverUsedInspection.html @@ -0,0 +1,5 @@ + + + 报告返回值未被使用的 private 方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpSameParameterValueInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpSameParameterValueInspection.html new file mode 100644 index 000000000..e66ab2bd8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpSameParameterValueInspection.html @@ -0,0 +1,5 @@ + + +报告在所有方法调用中具有相同值的 private 方法形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpSecondWriteToReadonlyPropertyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpSecondWriteToReadonlyPropertyInspection.html new file mode 100644 index 000000000..e45ecbcb8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpSecondWriteToReadonlyPropertyInspection.html @@ -0,0 +1,9 @@ + + +报告 readonly 属性的重新赋值。 此类属性在初始化后无法修改。 + +

      + 有关详细信息,请参阅只读属性(php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpSeparateElseIfInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpSeparateElseIfInspection.html new file mode 100644 index 000000000..8cb947c8a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpSeparateElseIfInspection.html @@ -0,0 +1,11 @@ + + +报告用两个词指定的 else if 结构的用法。 + +

      根据 PSR-12,您必须使用 elseif,而不是 else if,以使所有控制关键字作为一个词显示。

      + +

      + 有关详细信息,请参阅 PSR-12: Extended Coding Style (php-fig.org) 。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpShortOpenTagInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpShortOpenTagInspection.html new file mode 100644 index 000000000..d0d45e6c3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpShortOpenTagInspection.html @@ -0,0 +1,8 @@ + + +报告短的 PHP 起始标记 <? 的用法。 由于短标记可以在 PHP 解释器配置中被禁用,使用它们可能会导致代码兼容性问题。 +

      + 有关详细信息,请参阅 PHP tags (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpSignatureMismatchDuringInheritanceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpSignatureMismatchDuringInheritanceInspection.html new file mode 100644 index 000000000..3b785c0d0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpSignatureMismatchDuringInheritanceInspection.html @@ -0,0 +1,5 @@ + + + 报告与父类不兼容的重写方法声明。 该检查仅在 PHP 语言等级低于 8.0 的情况下被启用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpSillyAssignmentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpSillyAssignmentInspection.html new file mode 100644 index 000000000..9e10ff780 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpSillyAssignmentInspection.html @@ -0,0 +1,5 @@ + + + 报告赋值语句,其中两边都是相等的。 这种赋值没有任何作用,可以被删除。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpSingleStatementWithBracesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpSingleStatementWithBracesInspection.html new file mode 100644 index 000000000..fc08d612d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpSingleStatementWithBracesInspection.html @@ -0,0 +1,8 @@ + + +报告控制结构(如循环或条件),其主体被包围在大括号中,但只包含一个子语句。 在这种情况下使用大括号不必要。 +

      + 有关详细信息,请参阅 Control structures (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpStanGlobal.html b/original-plugin-raw/zh/inspectionDescriptions/PhpStanGlobal.html new file mode 100644 index 000000000..1c25169b3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpStanGlobal.html @@ -0,0 +1,12 @@ + + +
      + 运行 PHPStan 以查找代码问题。 +

      + 该项检查要求正确安装 PHPStan,并在 IDE 中的设置/首选项 | PHP | + 质量工具 | PHPStan 下正确设置 。
      +

      要了解安装 PHPStan 的更多信息,请参阅: + https://phpstan.org/user-guide/getting-started +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpStarClosureCanBeReplacedWithPlusInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpStarClosureCanBeReplacedWithPlusInspection.html new file mode 100644 index 000000000..17793ced5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpStarClosureCanBeReplacedWithPlusInspection.html @@ -0,0 +1,5 @@ + + +报告包含以星号 * 结尾的重复字符的正则表达式模式(例如,aa*)。 此类模式可以替换为 a+。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpStatementHasEmptyBodyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpStatementHasEmptyBodyInspection.html new file mode 100644 index 000000000..945fc4d88 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpStatementHasEmptyBodyInspection.html @@ -0,0 +1,6 @@ + + +报告主体为空的语句。 +

      虽然偶尔有用,但此类语句通常是拼写错误的结果,可能会引起混淆。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpStatementWithoutBracesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpStatementWithoutBracesInspection.html new file mode 100644 index 000000000..2a51d6c16 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpStatementWithoutBracesInspection.html @@ -0,0 +1,8 @@ + + +报告控制结构(如循环或条件),其主体不被包围在大括号内。 +

      + 有关详细信息,请参阅 Control structures (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpStaticAsDynamicMethodCallInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpStaticAsDynamicMethodCallInspection.html new file mode 100644 index 000000000..2598236a0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpStaticAsDynamicMethodCallInspection.html @@ -0,0 +1,7 @@ + + +报告对 static 类方法的动态调用。 + +

      如果目标使用魔术方法 __call,则可以设置单独的检查严重性和高亮显示级别。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpStrFunctionsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpStrFunctionsInspection.html new file mode 100644 index 000000000..7f48fa582 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpStrFunctionsInspection.html @@ -0,0 +1,8 @@ + + +报告 strpossubstr 函数调用,可以用 str_* 函数调用(在 PHP 8.0 中引入)代替。 +

      + 有关详细信息,请参阅 str_contains (php.net)str_starts_with and str_ends_with functions (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpStrictComparisonWithOperandsOfDifferentTypesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpStrictComparisonWithOperandsOfDifferentTypesInspection.html new file mode 100644 index 000000000..d87c61458 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpStrictComparisonWithOperandsOfDifferentTypesInspection.html @@ -0,0 +1,8 @@ + + +报告对类型不兼容的操作数使用的 ===!== 严格比较。 +

      + 有关详细信息,请参阅 PHP type comparison tables (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpStrictTypeCheckingInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpStrictTypeCheckingInspection.html new file mode 100644 index 000000000..1bbcac2e9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpStrictTypeCheckingInspection.html @@ -0,0 +1,18 @@ + + +报告违反严格类型检查规则的行为。 + +

      + 在严格模式下,只有与声明类型完全匹配的变量才被接受。 严格类型检查模式可以按以下方式启用: +

      +
        +
      • 为每个文件,如果 declare(strict_types=1) 指令被指定。 + 该指令必须是一个文件中的第一条语句,明确不允许使用块模式。 +
      • +
      • 为所有文件,如果为所有文件启用检查选项被启用。
      • +
      +

      + 有关详细信息,请参阅 Strict typing (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpSuperClassIncompatibleWithInterfaceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpSuperClassIncompatibleWithInterfaceInspection.html new file mode 100644 index 000000000..7fd97f08f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpSuperClassIncompatibleWithInterfaceInspection.html @@ -0,0 +1,5 @@ + + + 报告父类中与实现的接口不兼容的方法声明。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpSuspiciousNameCombinationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpSuspiciousNameCombinationInspection.html new file mode 100644 index 000000000..8e18d762a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpSuspiciousNameCombinationInspection.html @@ -0,0 +1,15 @@ + + +报告变量或形参的名称与分配或传递的值的名称不匹配的赋值和函数调用。 + +

      + 支持以下几组名称: +

      +
        +
      • needlehaystack
      • +
      • xy
      • +
      • topbottomleftright
      • +
      • yearmonthweekdayhourminutesecond
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpSwitchCanBeReplacedWithMatchExpressionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpSwitchCanBeReplacedWithMatchExpressionInspection.html new file mode 100644 index 000000000..5ea1fe45c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpSwitchCanBeReplacedWithMatchExpressionInspection.html @@ -0,0 +1,5 @@ + + +报告可以用 'match' 表达式代替的 'switch' 语句 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpSwitchCaseWithoutDefaultBranchInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpSwitchCaseWithoutDefaultBranchInspection.html new file mode 100644 index 000000000..e7fe5434c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpSwitchCaseWithoutDefaultBranchInspection.html @@ -0,0 +1,5 @@ + + +报告没有默认分支的 switch 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpSwitchStatementWitSingleBranchInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpSwitchStatementWitSingleBranchInspection.html new file mode 100644 index 000000000..9790c29bd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpSwitchStatementWitSingleBranchInspection.html @@ -0,0 +1,5 @@ + + +报告仅包含一个 case 语句的 switch 语句。 此类 switch 语句可以转换为 if 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpSwitchWithCommonPartsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpSwitchWithCommonPartsInspection.html new file mode 100644 index 000000000..cc9459efc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpSwitchWithCommonPartsInspection.html @@ -0,0 +1,5 @@ + + + 报告有重复的通用部分的 'switch' 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpTernaryExpressionCanBeReducedToShortVersionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpTernaryExpressionCanBeReducedToShortVersionInspection.html new file mode 100644 index 000000000..b8cd3eb27 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpTernaryExpressionCanBeReducedToShortVersionInspection.html @@ -0,0 +1,5 @@ + + +报告条件和 true 语句相匹配的 ?: 三元组表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpTernaryExpressionCanBeReplacedWithConditionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpTernaryExpressionCanBeReplacedWithConditionInspection.html new file mode 100644 index 000000000..4f48024a7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpTernaryExpressionCanBeReplacedWithConditionInspection.html @@ -0,0 +1,5 @@ + + +报告三元表达式,该表达式可以将 condition ? true : false 安全替换为 condition。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpToStringImplementationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpToStringImplementationInspection.html new file mode 100644 index 000000000..bf4b371ef --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpToStringImplementationInspection.html @@ -0,0 +1,15 @@ + + + 报告将没有 __ toString 方法实现的对象转换为 string 的尝试。 + +

      + 在 PHP 7.4 之前,这将导致一个致命的 E_RECOVERABLE_ERROR 级错误。 在 PHP 7.4 中,会抛出一个致命的不可恢复的 ERROR。 从 PHP 8.0 开始,返回值遵循标准 PHP 类型语义,如果可能且严格类型模式被禁用,就会被强制转换为字符串。 +

      +

      + 如果启用了检查每种表达式类型是否存在 __toString 选项,则该检查将会检查表达式的所有可能类型,如果其中至少一种类型不包含 __toString 方法实现,则进行报告。 +

      +

      + 有关详细信息,请参阅 __toString (php.net)。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpToStringMayProduceExceptionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpToStringMayProduceExceptionInspection.html new file mode 100644 index 000000000..32e2d13b7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpToStringMayProduceExceptionInspection.html @@ -0,0 +1,5 @@ + + +报告可能抛出异常的 __toString 的用法,这在 PHP 语言等级低于 7.4 时是不允许的。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpToStringReturnInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpToStringReturnInspection.html new file mode 100644 index 000000000..72758f231 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpToStringReturnInspection.html @@ -0,0 +1,11 @@ + + + 报告那些不返回 string__toString 方法。 + +

      在 PHP 7.4 之前,这将导致一个致命的 E_RECOVERABLE_ERROR 级错误。 在 PHP 7.4 中,会抛出一个致命的不可恢复的 ERROR。 从 PHP 8.0 开始,返回值遵循标准 PHP 类型语义,如果可能且严格类型模式被禁用,就会被强制转换为字符串。 +

      +

      + 有关详细信息,请参阅 __toString (php.net)。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpTooManyParametersInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpTooManyParametersInspection.html new file mode 100644 index 000000000..7f019505a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpTooManyParametersInspection.html @@ -0,0 +1,5 @@ + + +报告形参数量超过指定限制的函数/方法声明。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpTraditionalSyntaxArrayLiteralInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpTraditionalSyntaxArrayLiteralInspection.html new file mode 100644 index 000000000..80ad4d714 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpTraditionalSyntaxArrayLiteralInspection.html @@ -0,0 +1,5 @@ + + +报告了传统数组语法(array())在数组文字上的用法,并建议用短数组语法([])取代它们。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpTraitUsageOutsideUseInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpTraitUsageOutsideUseInspection.html new file mode 100644 index 000000000..25e043966 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpTraitUsageOutsideUseInspection.html @@ -0,0 +1,8 @@ + + +报告已解析为特征但在 use 语句之外指定的类引用。 此类用法很可能是编程错误的结果,因为特征无法实例化,并且设计上不支持任何类似 instanceof 行为。 +

      + 有关详细信息,请参阅 Traits (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpTraitUseRuleInsideDifferentClassUseListInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpTraitUseRuleInsideDifferentClassUseListInspection.html new file mode 100644 index 000000000..2fb4bfaab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpTraitUseRuleInsideDifferentClassUseListInspection.html @@ -0,0 +1,5 @@ + + + 报告特征方法 use 规则,这些规则解析为来自其他包含类的方法,而不是 use 声明中指定的方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpTraitsUseListInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpTraitsUseListInspection.html new file mode 100644 index 000000000..7b01840be --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpTraitsUseListInspection.html @@ -0,0 +1,13 @@ + + +报告通过单个 use 语句导入多个特征的情况。 + +

      + 根据 PSR-12,导入到类中的每个单个特征必须每行包含一个,并且每个包含必须具有自己的 use 导入语句。 +

      + +

      + 有关详细信息,请参阅 PSR-12: Extended Coding Style (php-fig.org) 。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpTypedPropertyMightBeUninitializedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpTypedPropertyMightBeUninitializedInspection.html new file mode 100644 index 000000000..fa81827a5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpTypedPropertyMightBeUninitializedInspection.html @@ -0,0 +1,17 @@ + + +报告从一个未初始化的类型化属性中读取的尝试。 这种尝试将导致 TypeError。 +

      + 类型属性应以下列任何一种方式初始化: +

      +
        +
      • 以一个默认值
      • +
      • 在构造函数中
      • +
      • __get() 魔术 getter
      • +
      • 就地,在使用的时候
      • +
      +

      + 有关详细信息,请参阅 Uninitialized and Unset Properties (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUncoveredEnumCasesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUncoveredEnumCasesInspection.html new file mode 100644 index 000000000..19640ee3d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUncoveredEnumCasesInspection.html @@ -0,0 +1,5 @@ + + +报告在未覆盖 match arm 条件的所有 enum case 的 match 表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedCallbackInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedCallbackInspection.html new file mode 100644 index 000000000..7250b4fe7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedCallbackInspection.html @@ -0,0 +1,15 @@ + + +报告从回调中引用但未被发现的函数、方法、属性或类。 + +

      使用以下选项来自定义检查:

      +
        +
      • + 忽略来自 '*_exists' 和 'is_callable' 函数的回调:如果选择,检查将跳过来自 + method_existsfunction_existsproperty_existsclass_existsis_callable 函数的回调。 +
      • +
      • 不明确时不报告:如果选择,检查将跳过具有多种可能类型的形参,例如标记为 callable|string。 +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedClassConstantInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedClassConstantInspection.html new file mode 100644 index 000000000..9f7bbc324 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedClassConstantInspection.html @@ -0,0 +1,5 @@ + + + 报告对未声明的类常量的引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedClassInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedClassInspection.html new file mode 100644 index 000000000..eed160e53 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedClassInspection.html @@ -0,0 +1,11 @@ + + +报告那些在项目文件、配置的包含路径或 PHP 预定义类中没有找到的类的引用。 +

      使用以下选项来自定义检查:

      +
        +
      • + 忽略 PHPDoc:如果选择,检查将不会报告 PHPDoc 块中引用的未定义类。 +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedConstantInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedConstantInspection.html new file mode 100644 index 000000000..88e2f9415 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedConstantInspection.html @@ -0,0 +1,5 @@ + + +报告对在项目文件中找不到的常量、配置的 include 路径或 PHP 预定义常量的引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedFieldInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedFieldInspection.html new file mode 100644 index 000000000..91572fd68 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedFieldInspection.html @@ -0,0 +1,8 @@ + + +报告对未声明的类属性的引用。 +

      + 检查会跳过 stdClass 或派生类型的对象。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedFunctionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedFunctionInspection.html new file mode 100644 index 000000000..25567a434 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedFunctionInspection.html @@ -0,0 +1,5 @@ + + +报告对未在项目文件中定义的函数、配置的 include 路径或 PHP 预定义函数的引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedGotoLabelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedGotoLabelInspection.html new file mode 100644 index 000000000..e101af810 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedGotoLabelInspection.html @@ -0,0 +1,12 @@ + + + 报告在当前范围内没有找到的 goto 标签。 + +

      + 目标 goto 标签必须位于同一个文件和上下文中:您不能跳入或跳出一个函数或方法,也不能跳入一个循环或 switch 结构。 +

      +

      + 有关详细信息,请参阅 goto (php.net)。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedMethodInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedMethodInspection.html new file mode 100644 index 000000000..fa2447a0e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedMethodInspection.html @@ -0,0 +1,5 @@ + + + 报告对未定义的类方法的引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedNamespaceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedNamespaceInspection.html new file mode 100644 index 000000000..90b5e8466 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedNamespaceInspection.html @@ -0,0 +1,5 @@ + + + 报告对找不到的命名空间的引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedVariableInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedVariableInspection.html new file mode 100644 index 000000000..93f4ef2c9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUndefinedVariableInspection.html @@ -0,0 +1,34 @@ + + + 产生两种类型的警告: +
        +
      • + 未定义变量:在项目文件、配置的 include 路径或 PHP 预定义变量中找不到该变量的定义。 +
      • +
      • + 变量可能还未定义:存在一条或多条路径到达变量的用法行而此时变量还没有定义。 +
      • +
      +

      + 使用以下选项来自定义检查: +

      + +
        +
      • + 报告变量可能未定义:清除复选框以禁用 变量可能还未定义 警告。 +
      • +
      • + 在全局空间中启用检查:默认情况下,对全局空间启用检查。 清除复选框以仅报告 + 函数本地作用域中的未定义变量。 +
      • +
      • +

        + 在当前文件外搜索变量定义:如果选中该选项,仅当当前文件中没有 includerequire 语句以及变量的定义在项目中找不到时,IDE 才会将全局变量报告为未定义。 +

        +

        + 否则,如果未选择,IDE 仅在当前文件中搜索变量的定义,并且忽略 includerequire 语句(如果有)。 +

        +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnhandledExceptionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnhandledExceptionInspection.html new file mode 100644 index 000000000..d51ada963 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnhandledExceptionInspection.html @@ -0,0 +1,5 @@ + + +报告既未包含在 try-catch 块中,也未通过 @throws 标记记录的异常。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertArrayHasKeyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertArrayHasKeyInspection.html new file mode 100644 index 000000000..05a13663b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertArrayHasKeyInspection.html @@ -0,0 +1,10 @@ + + +报告将 array_key_exists() 调用作为参数提供的 assertTrue()assertNotTrue() 方法调用。 此类调用可以用对专用 assertArrayHasKey() 方法的调用进行替换。 + +

      + 有关详细信息,请参阅 assertArrayHasKey (phpunit.readthedocs.io)。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertCanBeReplacedWithEmptyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertCanBeReplacedWithEmptyInspection.html new file mode 100644 index 000000000..e48059e73 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertCanBeReplacedWithEmptyInspection.html @@ -0,0 +1,8 @@ + + +报告 PHPUnit 测试中可以替换为 assertEmpty/assertNotEmptyassertTrue/assertFalse 的用法。 +

      + 有关详细信息,请参阅 assertEmpty (phpunit.readthedocs.io)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertCanBeReplacedWithFailInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertCanBeReplacedWithFailInspection.html new file mode 100644 index 000000000..a132931c9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertCanBeReplacedWithFailInspection.html @@ -0,0 +1,5 @@ + + +报告 PHPUnit 测试中带有 false/true 实参的 assertTrue()/assertFalse() 调用。 此类用法可以替换为 fail() 调用,以表示测试预计会失败。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertContainsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertContainsInspection.html new file mode 100644 index 000000000..ce68d2afc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertContainsInspection.html @@ -0,0 +1,10 @@ + + +报告包含字符串 $needle$ignoreCase 形参的 assertContainsassertNotContains 函数的弃用用法。 + +

      字符串 $needle 以及 assertContainsassertNotContains 函数的 $ignoreCase 可选布尔形参已弃用,在 PHPUnit 9 中将被移除。

      +

      + 有关详细信息,请参阅 Usage of the assertEquals function (phpunit.readthedocs.io)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertCountInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertCountInspection.html new file mode 100644 index 000000000..1a1cf12c8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertCountInspection.html @@ -0,0 +1,13 @@ + + +报告 assertEqualsassertNotEquals 方法的替代用法,以 count 函数作为形参 + +

      +有关详细信息,请参阅 Usage of the assertCount。 +

      +

      +有关详细信息,请参阅 Usage of the assertSameSize。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertEqualsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertEqualsInspection.html new file mode 100644 index 000000000..1eff68bb7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertEqualsInspection.html @@ -0,0 +1,10 @@ + + +报告带有 $delta$maxDepth$canonicalize$ignoreCase 形参的 assertEqualsassertNotEquals 函数的弃用用法。 + +

      assertEqualsassertNotEquals 函数的可选$delta$maxDepth$canonicalize$ignoreCase 形参已被弃用,并将在 PHPUnit 9 中移除。

      +

      + 有关详细信息,请参阅 Usage of the assertEquals function (phpunit.readthedocs.io)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertFileEqualsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertFileEqualsInspection.html new file mode 100644 index 000000000..2fdc7a0a1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertFileEqualsInspection.html @@ -0,0 +1,10 @@ + + +报告具有 $canonicalize$ignoreCase 形参的assertFileEqualsassertFileNotEqualsassertStringEqualsFileassertStringNotEqualsFile 函数已弃用的用法。 + +

      assertFileEqualsassertFileNotEquals 函数的可选 $canonicalize$ignoreCase 形参已弃用,并将在 PHPUnit 9 中移除。

      +

      + 有关详细信息,请参阅 Usage of the assertFileEquals function (phpunit.readthedocs.io)Usage of the assertFileEquals function (phpunit.readthedocs.io)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertTrueWithIncompatibleTypeArgumentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertTrueWithIncompatibleTypeArgumentInspection.html new file mode 100644 index 000000000..7c6719373 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitAssertTrueWithIncompatibleTypeArgumentInspection.html @@ -0,0 +1,5 @@ + + +报告参数类型不兼容的 PHPUnit assertTrue() 调用。 由于 assertTrue() 方法依赖于与 true 的严格类型比较,此类断言始终会失败。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnitCoversByAccessModifierIsDeprecatedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitCoversByAccessModifierIsDeprecatedInspection.html new file mode 100644 index 000000000..191aa8b1a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitCoversByAccessModifierIsDeprecatedInspection.html @@ -0,0 +1,5 @@ + + +报告使用 ClassName::<*>@covers@uses PHPUnit 文档标签。 在 PHPUnit 10 及更新版本中不支持这种注解。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnitCoversFunctionWithoutScopeResolutionOperatorInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitCoversFunctionWithoutScopeResolutionOperatorInspection.html new file mode 100644 index 000000000..c80e5b6e2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitCoversFunctionWithoutScopeResolutionOperatorInspection.html @@ -0,0 +1,5 @@ + + +报告对 @covers PHPDoc 标记中不带范围解析运算符(::)的函数/方法的引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnitDeprecatedCallsIn10VersionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitDeprecatedCallsIn10VersionInspection.html new file mode 100644 index 000000000..e96e25604 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitDeprecatedCallsIn10VersionInspection.html @@ -0,0 +1,5 @@ + + +报告对 PHPUnit 10 中移除的 PHPUnit 断言方法的调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnitDeprecatedExpectExceptionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitDeprecatedExpectExceptionInspection.html new file mode 100644 index 000000000..79c20b535 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitDeprecatedExpectExceptionInspection.html @@ -0,0 +1,19 @@ + + +报告 expectException() 的弃用用法。 +

      + 已弃用将 \PHPUnit\Framework\Error\Deprecated、 + \PHPUnit\Framework\Error\Error、 + \PHPUnit\Framework\Error\Notice 和 + \PHPUnit\Framework\Error\WarningexpectException() 一起使用的支持,并将在 PHPUnit 10 中删除。 +

      +

      + 应该改为使用 expectDeprecation()expectError()expectNotice() 和 + expectWarning() 方法。 +

      + +

      + 有关详细信息,请参阅 Testing PHP Errors, Warnings, and Notices (phpunit.readthedocs.io)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnitExpectedExceptionDocTagIsDeprecatedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitExpectedExceptionDocTagIsDeprecatedInspection.html new file mode 100644 index 000000000..3aaf02bf2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitExpectedExceptionDocTagIsDeprecatedInspection.html @@ -0,0 +1,11 @@ + + +报告以下弃用的 PHPUnit 文档标记的用法。 +
        +
      • @expectedException
      • +
      • @expectedExceptionMessage
      • +
      • @expectedExceptionCode
      • +
      • @expectedExceptionMessageRegExp
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnitMisorderedAssertEqualsArgumentsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitMisorderedAssertEqualsArgumentsInspection.html new file mode 100644 index 000000000..f6e31d9f3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitMisorderedAssertEqualsArgumentsInspection.html @@ -0,0 +1,9 @@ + + +报告对 PHPUnit 相等断言方法(如 assertEquals()assertNotEquals()assertSame() 等)的调用,这些方法的预期结果参数为非文字,实际结果参数为文字。 这样的调用对于通过的断言表现良好,但如果它们的预期参数和实际参数不同,则可能产生令人困惑的错误报告。 + +

      + 有关详细信息,请参阅 assertEquals。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnitMissingTargetForTestInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitMissingTargetForTestInspection.html new file mode 100644 index 000000000..c880a5175 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitMissingTargetForTestInspection.html @@ -0,0 +1,5 @@ + + + 报告没有找到相应的生产类或方法的测试类和方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnitUndefinedDataProviderInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitUndefinedDataProviderInspection.html new file mode 100644 index 000000000..1842c6852 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnitUndefinedDataProviderInspection.html @@ -0,0 +1,7 @@ + + + 报告在 @dataProvider PHPDoc 标签中对未解析的函数/方法的引用。 + +

      请注意,在解析 dataProvider 时,PHPUnit 不会考虑 use 语句。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryBoolCastInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryBoolCastInspection.html new file mode 100644 index 000000000..99ab609a4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryBoolCastInspection.html @@ -0,0 +1,5 @@ + + +报告冗余的 (bool)/(boolean) 转换和 boolval() 调用,因为向 bool 的转换是隐式进行的。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryCurlyVarSyntaxInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryCurlyVarSyntaxInspection.html new file mode 100644 index 000000000..ebebd52bb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryCurlyVarSyntaxInspection.html @@ -0,0 +1,8 @@ + + +报告不必要的{},用于在字符串文字中对变量进行插值。 +

      + 有关详细信息,请参阅 Variable parsing (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryDoubleQuotesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryDoubleQuotesInspection.html new file mode 100644 index 000000000..012eb0d65 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryDoubleQuotesInspection.html @@ -0,0 +1,5 @@ + + +报告不带字符串插值、转义序列或单引号的双引号引用的字符串文字。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryElseBranchInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryElseBranchInspection.html new file mode 100644 index 000000000..85583ff04 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryElseBranchInspection.html @@ -0,0 +1,5 @@ + + +报告语句体始终执行 returnthrow 等终止语句的 if 语句中的 else 分支。 这种分支是冗余的,可以安全地省略。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryFullyQualifiedNameInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryFullyQualifiedNameInspection.html new file mode 100644 index 000000000..f5d43bf8b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryFullyQualifiedNameInspection.html @@ -0,0 +1,5 @@ + + +报告完全合格的类名的使用情况,可以在不添加 use 语句的情况下缩短。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryLeadingBackslashInUseStatementInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryLeadingBackslashInUseStatementInspection.html new file mode 100644 index 000000000..9e14a5250 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryLeadingBackslashInUseStatementInspection.html @@ -0,0 +1,11 @@ + + + 报告 use 语句,有一个不必要的前导 \。 +

      + 对于命名空间的名称(完全合格的命名空间名称包含一个命名空间分隔符,如Foo\Bar,与之相反全局命名空间名称则没有,如FooBar),不需要也不建议开头使用反斜杠,因为导入名称必须是完全合格的,并且它不会相对于现有命名空间进行处理。 +

      +

      + 有关详细信息,请参阅 Using namespaces: Aliasing/Importing (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryLocalVariableInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryLocalVariableInspection.html new file mode 100644 index 000000000..7a6c11d77 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryLocalVariableInspection.html @@ -0,0 +1,5 @@ + + +报告在赋值后立即用于退出语句的局部变量,如 throwreturnyield。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryParenthesesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryParenthesesInspection.html new file mode 100644 index 000000000..18b990da5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryParenthesesInspection.html @@ -0,0 +1,5 @@ + + +报告含有冗余圆括号的表达式,这些圆括号可以被安全地移除。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessarySemicolonInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessarySemicolonInspection.html new file mode 100644 index 000000000..788b429c8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessarySemicolonInspection.html @@ -0,0 +1,5 @@ + + +报告不必要的分号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessarySpreadOperatorForFunctionCallArgumentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessarySpreadOperatorForFunctionCallArgumentInspection.html new file mode 100644 index 000000000..8f879331d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessarySpreadOperatorForFunctionCallArgumentInspection.html @@ -0,0 +1,5 @@ + + +报告在可以安全展开的函数调用参数中的数组文字上使用展开运算符 (...) 的情况。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryStaticReferenceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryStaticReferenceInspection.html new file mode 100644 index 000000000..c81c7794f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryStaticReferenceInspection.html @@ -0,0 +1,5 @@ + + +报告 final 类中的 static 用法 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryStopStatementInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryStopStatementInspection.html new file mode 100644 index 000000000..3fb4a2a80 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryStopStatementInspection.html @@ -0,0 +1,5 @@ + + + 报告不必要并可以安全删除的 returncontinue 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryStringCastInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryStringCastInspection.html new file mode 100644 index 000000000..e6bfd97fa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnnecessaryStringCastInspection.html @@ -0,0 +1,5 @@ + + +报告冗余的 (string) 转换和 strval() 调用,因为向字符串的转换是隐式进行的。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnpackedArgumentTypeMismatchInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnpackedArgumentTypeMismatchInspection.html new file mode 100644 index 000000000..78ac946bf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnpackedArgumentTypeMismatchInspection.html @@ -0,0 +1,8 @@ + + + 报告类型既不是 array 也不是 Traversable 的解包的函数实参和数组元素。 +

      + 从 PHP 8.0 开始,这种用法将导致致命错误。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnreachableStatementInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnreachableStatementInspection.html new file mode 100644 index 000000000..7911c61f7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnreachableStatementInspection.html @@ -0,0 +1,5 @@ + + +报告无法达到的语句。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnused.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnused.html new file mode 100644 index 000000000..3f9d1bbf0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnused.html @@ -0,0 +1,8 @@ + + +报告未使用或从入口点不可达的类、方法、函数、常量或属性。 它还报告所有方法的实现/重写。 +

      某些未使用的成员可能不会即时在代码编辑器中被报告。 由于性能原因,仅当非私有成员的名称很少出现在项目中时,才会对其进行检查。 +

      +

      要看到所有的结果,请使用代码 | 检查代码...代码 | 通过名称运行检查,在批处理模式下运行检查。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedAliasInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedAliasInspection.html new file mode 100644 index 000000000..88d3af313 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedAliasInspection.html @@ -0,0 +1,5 @@ + + + 报告从未使用的导入。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedClassInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedClassInspection.html new file mode 100644 index 000000000..57107bec3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedClassInspection.html @@ -0,0 +1,5 @@ + + + 报告从未使用的类。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedFieldDefaultValueInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedFieldDefaultValueInspection.html new file mode 100644 index 000000000..2b75bfda5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedFieldDefaultValueInspection.html @@ -0,0 +1,5 @@ + + + 报告具有默认初始化器的字段,这些初始化器在类的构造函数中总是被覆盖。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedFunctionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedFunctionInspection.html new file mode 100644 index 000000000..983a2a4f0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedFunctionInspection.html @@ -0,0 +1,5 @@ + + + 报告从未使用的函数。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedLocalVariableInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedLocalVariableInspection.html new file mode 100644 index 000000000..2013694d7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedLocalVariableInspection.html @@ -0,0 +1,10 @@ + + +报告在以下情况下被认为是未使用的变量: +
        +
      • 变量的值未在任何位置使用或立即被覆盖。
      • +
      • 变量中存储的引用未在任何位置使用或立即被覆盖。 +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedMatchConditionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedMatchConditionInspection.html new file mode 100644 index 000000000..8106903a0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedMatchConditionInspection.html @@ -0,0 +1,11 @@ + + +报告 match 表达式中永远不会匹配的条件。 +

      + 与 PHP Engine 行为类似,检查使用严格比较 (===) 来检查 match 条件下的类型与 match 实参类型, 不管 strict_types 指令如何。 由于没有发生类型强制,因此某些条件可能由于类型不匹配而无法匹配。 +

      +

      + 有关详细信息,请参阅 Match expression (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedParameterInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedParameterInspection.html new file mode 100644 index 000000000..42763c680 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedParameterInspection.html @@ -0,0 +1,9 @@ + + +报告在以下情况下被认为是未使用的形参: +
        +
      • 形参是通过值传递的,而且该值不会在任何位置使用或立即被覆盖。
      • +
      • 形参是通过引用传递的,而且该引用不会在任何位置使用或立即被覆盖。
      • +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedPrivateFieldInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedPrivateFieldInspection.html new file mode 100644 index 000000000..4a02e52ea --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedPrivateFieldInspection.html @@ -0,0 +1,5 @@ + + + 报告从未使用的 private 属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedPrivateMethodInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedPrivateMethodInspection.html new file mode 100644 index 000000000..576ed32b8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedPrivateMethodInspection.html @@ -0,0 +1,5 @@ + + + 报告从未使用的 private 方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedSwitchBranchInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedSwitchBranchInspection.html new file mode 100644 index 000000000..d348a80b9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUnusedSwitchBranchInspection.html @@ -0,0 +1,8 @@ + + +报告 switch 语句中不属于枚举 case 集并且因此未执行的分支。 +

      + 有关详细信息,请参阅枚举 (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUsageOfSilenceOperatorInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUsageOfSilenceOperatorInspection.html new file mode 100644 index 000000000..ae0aada76 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUsageOfSilenceOperatorInspection.html @@ -0,0 +1,7 @@ + + +报告静默运算符(@)的使用情况,这种做法强烈不推荐。 +

      有关详细信息,请参阅 Error Control Operators (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpUselessTrailingCommaInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpUselessTrailingCommaInspection.html new file mode 100644 index 000000000..4ec805fb5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpUselessTrailingCommaInspection.html @@ -0,0 +1,10 @@ + + +报告形参列表和闭包的 use 列表中没有带来任何好处的尾随逗号。 +
        +
      • 在单行列表中,尾随逗号是多余的,可以删除。
      • +
      • 在多行列表中,如果在逗号后没有提供换行符,则无法轻松地添加,删除或移动行。 +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpVarUsageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpVarUsageInspection.html new file mode 100644 index 000000000..51713a6cf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpVarUsageInspection.html @@ -0,0 +1,11 @@ + + +报告在声明类属性时 var 关键字的用法。 + +

      根据 PSR-12,var 关键字决不能用来声明一个属性。

      + +

      + 有关详细信息,请参阅 PSR-12: Extended Coding Style (php-fig.org) 。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpVariableNamingConventionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpVariableNamingConventionInspection.html new file mode 100644 index 000000000..ca8de8774 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpVariableNamingConventionInspection.html @@ -0,0 +1,14 @@ + + +报告名称太短、太长或不符合指定的正则表达式模式的变量。 +某些编码风格对变量有特殊的命名惯例。 + +

      + 使用检查选项来指定变量名称的最小/最大长度和预期正则表达式。 + 要忽略名字的长度,指定 0。 +

      +

      + 要了解更多关于正则表达式的信息,请参考 Quick Start guide (regular-expressions.info)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpVariableVariableInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpVariableVariableInspection.html new file mode 100644 index 000000000..ce0615626 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpVariableVariableInspection.html @@ -0,0 +1,5 @@ + + +报告可变变量的用法(动态变量名称,如 $$a)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpVoidFunctionResultUsedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpVoidFunctionResultUsedInspection.html new file mode 100644 index 000000000..43c81e583 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpVoidFunctionResultUsedInspection.html @@ -0,0 +1,8 @@ + + + 报告 void 函数的返回值的用法。 +

      + 由于 void 函数没有返回值,因此这种用法很可能是编程错误。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpWriteAccessToReferencedArrayValueWithoutUnsetInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpWriteAccessToReferencedArrayValueWithoutUnsetInspection.html new file mode 100644 index 000000000..833dddf14 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpWriteAccessToReferencedArrayValueWithoutUnsetInspection.html @@ -0,0 +1,12 @@ + + +报告仍然引用先前在 foreach 语句中使用的数组值的变量的写访问表达式。 + +

      + 建议通过使用 unset 来销毁这种引用。 +

      +

      + 有关详细信息,请参阅 foreach (php.net) and unset (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpWrongCatchClausesOrderInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpWrongCatchClausesOrderInspection.html new file mode 100644 index 000000000..645be79d9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpWrongCatchClausesOrderInspection.html @@ -0,0 +1,11 @@ + + +报告已经被前面的异常捕获的异常和被捕获两次的异常。 +

      + catch 子句必须按从较特定的子句到较普通的子句排序。 否则,一些异常可能不会被最特定的处理程序所捕获。 +

      +

      + 有关详细信息,请参阅 Exceptions (php.net)。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpWrongExceptionTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpWrongExceptionTypeInspection.html new file mode 100644 index 000000000..2cf5091fc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpWrongExceptionTypeInspection.html @@ -0,0 +1,8 @@ + + + 在 throwcatch 语句中报告未从内置 Exception 类继承的自定义异常类。 +

      + 有关详细信息,请参阅 Exceptions (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpWrongForeachArgumentTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpWrongForeachArgumentTypeInspection.html new file mode 100644 index 000000000..2cb61dc0d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpWrongForeachArgumentTypeInspection.html @@ -0,0 +1,10 @@ + + +报告在 stringfloatintboolean 类型的变量上使用的 foreach 结构。 + +

      + 有关详细信息,请参阅 foreach (php.net)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PhpWrongStringConcatenationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PhpWrongStringConcatenationInspection.html new file mode 100644 index 000000000..6ab527d20 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PhpWrongStringConcatenationInspection.html @@ -0,0 +1,5 @@ + + + 报告使用 + 运算符而不是点(.)串联运算符来串联字符串的尝试。 这种尝试很可能是编程错误。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PlaceholderCountMatchesArgumentCount.html b/original-plugin-raw/zh/inspectionDescriptions/PlaceholderCountMatchesArgumentCount.html new file mode 100644 index 000000000..3b306ade8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PlaceholderCountMatchesArgumentCount.html @@ -0,0 +1,6 @@ + + +报告 SLF4J 或 Log4j 2 日志记录调用,例如 logger.info("{}: {}", key),其中记录器消息中 {} 占位符的数量与日志调用的其他实参的数量不匹配。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PlatformDetectionJS.html b/original-plugin-raw/zh/inspectionDescriptions/PlatformDetectionJS.html new file mode 100644 index 000000000..9b355cb88 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PlatformDetectionJS.html @@ -0,0 +1,17 @@ + + +报告用于检测从中运行脚本的浏览器或 +操作系统的通用 JavaScript 模式。 除了指出不可移植的结构外,这些平台检测模式通常不完整并且容易被愚弄。 在大多数情况下,检测单个环境的功能 +比尝试检测整个平台更可取。 +

      检测到的模式包括:

      +
        +
      • document.all
      • +
      • document.layers
      • +
      • navigator.userAgent
      • +
      • navigator.oscpu
      • +
      • navigator.appName
      • +
      • navigator.appCodeName
      • +
      • navigator.platform
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PlatformExtensionReceiverOfInline.html b/original-plugin-raw/zh/inspectionDescriptions/PlatformExtensionReceiverOfInline.html new file mode 100644 index 000000000..06e57aa58 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PlatformExtensionReceiverOfInline.html @@ -0,0 +1,37 @@ + + +

      报告使用灵活可 null 的扩展接收器(具有未知可 null 性的平台类型)对内联函数的潜在不安全调用。

      +

      + 在 Kotlin 1.2 之前,使用灵活的可 null 扩展接收器(具有未知可 null 性的平台类型)对 inline fun 的调用不包括字节码中的可 null 性检查。 自 Kotlin 1.2 起,字节码中包含可 null 性检查(请参阅 KT-12899)。 +

      +

      + 建议添加要抛出异常的显式 !!,或者考虑将函数的接收器类型更改为可 null(如果它能够无异常地运行)。 +

      +

      示例:

      +
      
      +  inline fun String.removePrefix(prefix: String): String {
      +      return this.substring(prefix.length)
      +  }
      +
      +  fun main() {
      +      // `System.getProperty` 返回不可表示的 `String!` 类型
      +      val property = System.getProperty("user.dir")
      +      println(property.removePrefix("/home"))
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  inline fun String.removePrefix(prefix: String): String {
      +      return this.substring(prefix.length)
      +  }
      +
      +  fun main() {
      +      // `System.getProperty` 返回不可表示的 `String!` 类型
      +      val property = System.getProperty("user.dir")
      +      println(property!!.removePrefix("/home"))
      +  }
      +
      + +

      仅当项目或模块的 Kotlin 语言级别低于 1.2 时,此检查才会报告。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Play2BadFileNameInspection.html b/original-plugin-raw/zh/inspectionDescriptions/Play2BadFileNameInspection.html new file mode 100644 index 000000000..5ee648973 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Play2BadFileNameInspection.html @@ -0,0 +1,6 @@ + + +

      报告 Play2 中的错误文件名。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Play2RoutingActionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/Play2RoutingActionInspection.html new file mode 100644 index 000000000..e55c9fc76 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Play2RoutingActionInspection.html @@ -0,0 +1,6 @@ + + +

      报告 URL 路由的各种错误。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Play2RoutingUrlClashInspection.html b/original-plugin-raw/zh/inspectionDescriptions/Play2RoutingUrlClashInspection.html new file mode 100644 index 000000000..a50c22c1b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Play2RoutingUrlClashInspection.html @@ -0,0 +1,6 @@ + + +

      报告由于 URL 匹配而相互冲突的 URL 模式的路由。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Play2UnresolvedResource.html b/original-plugin-raw/zh/inspectionDescriptions/Play2UnresolvedResource.html new file mode 100644 index 000000000..dea9665b9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Play2UnresolvedResource.html @@ -0,0 +1,6 @@ + + +

      报告未解析的 Play2 资源。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PlayCustomTagNameInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PlayCustomTagNameInspection.html new file mode 100644 index 000000000..2cb74b2e1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PlayCustomTagNameInspection.html @@ -0,0 +1,15 @@ + + +

      报告不存在的自定义标记。

      + +

      + 您可以使用存储在 app/views/tags 目录中的简单模板文件为您的应用程序创建自定义标记。 + 模板的文件名用作标记名称。 + 例如,要创建 hello 标记,只需创建 app/views/tags/hello.html 文件。 + 直接引用标记:#{hello /}。 +

      + +

      如果 app/views/tags/hello.html 不存在,此检查将报告 #{hello /} 引用。

      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PlayPropertyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PlayPropertyInspection.html new file mode 100644 index 000000000..0056eb1f2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PlayPropertyInspection.html @@ -0,0 +1,10 @@ + + +

      报告未解析的消息资源键。

      + +

      示例:

      +
      
      +  <h1>&{'unresolved.name', client.name}</h1>  <!-- 无法解析属性键  -->
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PluginXmlCapitalization.html b/original-plugin-raw/zh/inspectionDescriptions/PluginXmlCapitalization.html new file mode 100644 index 000000000..466cc6379 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PluginXmlCapitalization.html @@ -0,0 +1,16 @@ + + +报告 plugin.xml 中的文本大小写问题。 +

      + 已检查以下元素: +

        +
      • <name>
      • +
      • <action>、<group>
      • +
      • <separator, <synonym>、<override-text>
      • +
      • 使用指定所需 capitalizationorg.jetbrains.annotations.Nls 注解的扩展点属性
      • +
      +

      + 有关更多信息,请参阅 IntelliJ 平台 UI 准则中的大写。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PluginXmlDynamicPlugin.html b/original-plugin-raw/zh/inspectionDescriptions/PluginXmlDynamicPlugin.html new file mode 100644 index 000000000..3d30ec3cf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PluginXmlDynamicPlugin.html @@ -0,0 +1,12 @@ + + +报告动态插件问题。 +

      + 无需重新启动 IDE 即可安装、更新和卸载动态插件(2020.1 和更高版本中支持)。 +

      +

      + 有关其他参考,请参阅动态插件。 +

      +

      2020.1 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PluginXmlI18n.html b/original-plugin-raw/zh/inspectionDescriptions/PluginXmlI18n.html new file mode 100644 index 000000000..1e0f449c4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PluginXmlI18n.html @@ -0,0 +1,15 @@ + + +报告 plugin.xml 中的硬编码文本。 +

      + 使用在资源包中定义的文本可在 IDE 中支持多种语言。 +

      +

      + 已检查以下元素: +

        +
      • <action>、<group>
      • +
      • <separator, <override-text>
      • +
      • 具有 bundle/key 替代项的已知扩展点
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PluginXmlValidity.html b/original-plugin-raw/zh/inspectionDescriptions/PluginXmlValidity.html new file mode 100644 index 000000000..08ace9b38 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PluginXmlValidity.html @@ -0,0 +1,8 @@ + + +报告 plugin.xml 中的问题。 +

      + 无效配置可能在运行时导致问题。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PoetryPackageVersionsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PoetryPackageVersionsInspection.html new file mode 100644 index 000000000..a7456ac5e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PoetryPackageVersionsInspection.html @@ -0,0 +1,6 @@ + + +

      报告 pyproject.toml[tool.poetry.dependencies][tool.poetry.dev-dependencies] 部分中过时的软件包版本。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PointcutMethodStyleInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PointcutMethodStyleInspection.html new file mode 100644 index 000000000..e6c7a7b8c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PointcutMethodStyleInspection.html @@ -0,0 +1,5 @@ + + +验证 @Pointcut 方法: 返回类型是否为 void,有无 throws 子句以及方法体是否为空。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PointerTypeRequired.html b/original-plugin-raw/zh/inspectionDescriptions/PointerTypeRequired.html new file mode 100644 index 000000000..e44123a71 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PointerTypeRequired.html @@ -0,0 +1,5 @@ + + +报告要求具有指针类型但没有的表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PointlessArithmeticExpression.html b/original-plugin-raw/zh/inspectionDescriptions/PointlessArithmeticExpression.html new file mode 100644 index 000000000..87b6b25c0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PointlessArithmeticExpression.html @@ -0,0 +1,29 @@ + + +报告无意义的算术表达式。 此类表达式包括加 0、减 0、乘以 0 或 1 以及除以 1。 +

      此类表达式可能是自动重构所致,不太可能是开发者的本意。

      +

      该快速修复会简化此类表达式。

      +

      示例: +

      
      +  void f(int a) {
      +    int x = a - a;
      +    int y = a + 0;
      +    int res = x / x;
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  void f(int a) {
      +    int x = 0;
      +    int y = a;
      +    int res = 1;
      +  }
      +
      + +

      + 请注意,在极少数情况下,建议的替换可能不完全等同于所有可能输入的原始代码。 例如,该检查会建议将 x / x 替换为 1。 + 但是,如果 x 为零,原始代码将抛出 ArithmeticException 或导致 NaN。 + 另外,如果 xNaN,则结果也是 NaN。 此类行为不太可能出于本意。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PointlessArithmeticExpressionJS.html b/original-plugin-raw/zh/inspectionDescriptions/PointlessArithmeticExpressionJS.html new file mode 100644 index 000000000..4e8af9c2f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PointlessArithmeticExpressionJS.html @@ -0,0 +1,5 @@ + + +报告包括加零或减零、乘零或一、除一和零移位的算术表达式。 此类表达式可能是由于没有完全完成自动化重构而造成。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PointlessBinding.html b/original-plugin-raw/zh/inspectionDescriptions/PointlessBinding.html new file mode 100644 index 000000000..8da9943af --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PointlessBinding.html @@ -0,0 +1,6 @@ + + +

      报告普通的显式绑定,它声明一个由自身实现的类,并且没有任何冲突的 @ImplementedBy@ProvidedBy 注解。 + 此类绑定是冗余的,可能会随着程序的发展而引起混淆。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PointlessBitwiseExpression.html b/original-plugin-raw/zh/inspectionDescriptions/PointlessBitwiseExpression.html new file mode 100644 index 000000000..bc22e2fff --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PointlessBitwiseExpression.html @@ -0,0 +1,22 @@ + + +报告无意义的按位表达式。 +

      + 此类表达式包括对给定类型的最大值应用 & 运算符,对零以及移零应用 or 运算符。 出现此类表达式,可能是因为自动重构没有一直持续到完成,而且不太可能是出于原本的意图。

      +

      示例:

      +
      
      +  // 警告:运算毫无意义,可以替换为 `flags`
      +  // 0xFFFF_FFFF 是一个整数的最大值,并且这两个文字都被视为
      +  // 32 位整数文字。
      +  int bits = flags & 0xFFFF_FFFF;
      +
      +  // 警告:运算毫无意义,可以替换为 `bits`
      +  // 包含 0 的 OR 运算始终输出另一个操作数。
      +  int or = bits | 0x0;
      +
      +  // 警告:运算毫无意义,结果始终为 0
      +  int xor = or ^ or;
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PointlessBitwiseExpressionJS.html b/original-plugin-raw/zh/inspectionDescriptions/PointlessBitwiseExpressionJS.html new file mode 100644 index 000000000..ca4458329 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PointlessBitwiseExpressionJS.html @@ -0,0 +1,6 @@ + + + +报告包含 and 零、 or 零或零移位的表达式。 此类表达式可能是由于没有完全完成自动化重构而造成。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PointlessBooleanExpression.html b/original-plugin-raw/zh/inspectionDescriptions/PointlessBooleanExpression.html new file mode 100644 index 000000000..882be149c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PointlessBooleanExpression.html @@ -0,0 +1,25 @@ + + +报告不必要的或过于复杂的布尔表达式。 +

      此类表达式包括: &&true 的组合、 +||false 的组合、布尔文字的相等比较或布尔文字求反。 此类表达可以简化。

      +

      示例: +

      
      +  boolean a = !(x && false);
      +  boolean b = false || x;
      +  boolean c = x != true;
      +
      +

      在应用快速修复后:

      +
      
      +  boolean a = true;
      +  boolean b = x;
      +  boolean c = !x;
      +
      + +

      +

      配置检查:

      +使用 在确定无意义表达式时忽略命名常量 选项可在确定表达式是否无意义时忽略命名常量。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PointlessBooleanExpressionJS.html b/original-plugin-raw/zh/inspectionDescriptions/PointlessBooleanExpressionJS.html new file mode 100644 index 000000000..020c1c8e2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PointlessBooleanExpressionJS.html @@ -0,0 +1,15 @@ + + +报告无意义或复杂的没有意义的布尔表达式或语句。 +

      示例: +

      
      +  let a = !(false && x);
      +  let b = false || x;
      +
      +

      应用快速修复后,结果如下所示: +

      
      +  let a = true;
      +  let b = x;
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PointlessIndexOfComparison.html b/original-plugin-raw/zh/inspectionDescriptions/PointlessIndexOfComparison.html new file mode 100644 index 000000000..84591469f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PointlessIndexOfComparison.html @@ -0,0 +1,6 @@ + + +报告与 .indexOf() 表达式的不必要比较。 此类表达式的一个示例是将 .indexOf() 的结果与小于 -1 的数字进行比较。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PointlessNullCheck.html b/original-plugin-raw/zh/inspectionDescriptions/PointlessNullCheck.html new file mode 100644 index 000000000..8aa33c3ac --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PointlessNullCheck.html @@ -0,0 +1,16 @@ + + +报告 null 检查,后面跟随一个方法调用,当 null 被传递时,肯定会返回 false(例如,Class.isInstance)。 +

      在这种情况下,方法调用总是返回 false,此类检查似乎有些多余。

      +

      示例:

      +
      
      +  if (x != null && myClass.isInstance(x)) { ... }
      +
      +

      在应用快速修复后:

      +
      
      +  if (myClass.isInstance(x)) { ... }
      +
      + +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PostCssCustomMedia.html b/original-plugin-raw/zh/inspectionDescriptions/PostCssCustomMedia.html new file mode 100644 index 000000000..c58e294de --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PostCssCustomMedia.html @@ -0,0 +1,10 @@ + + +报告 PostCSS 自定义媒体查询中的语法错误。 + +

      示例:

      +
      +@custom-media --small-viewport (max-width: 30em);
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PostCssCustomSelector.html b/original-plugin-raw/zh/inspectionDescriptions/PostCssCustomSelector.html new file mode 100644 index 000000000..7c818fa38 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PostCssCustomSelector.html @@ -0,0 +1,10 @@ + + +报告 PostCSS 自定义选择器中的语法错误。 + +

      示例:

      +
      +@custom-selector :--heading h1, h2, h3;
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PostCssMediaRange.html b/original-plugin-raw/zh/inspectionDescriptions/PostCssMediaRange.html new file mode 100644 index 000000000..db054d98f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PostCssMediaRange.html @@ -0,0 +1,11 @@ + + +检查范围上下文语法,该语法可替代性地用于 + 'range' 类型的媒体功能。 + +

      示例:

      +
      +@media screen and (500px <= width <= 1200px) {}
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PostCssNesting.html b/original-plugin-raw/zh/inspectionDescriptions/PostCssNesting.html new file mode 100644 index 000000000..0b50995ae --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PostCssNesting.html @@ -0,0 +1,13 @@ + + +报告语法不符合 PostCSS Nested +或 PostCSS Nesting 规范的嵌套样式规则。 + +

      示例:

      +
      +.phone {
      +  &_title {}
      +}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PostCssUnresolvedModuleValueReference.html b/original-plugin-raw/zh/inspectionDescriptions/PostCssUnresolvedModuleValueReference.html new file mode 100644 index 000000000..40dd85a40 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PostCssUnresolvedModuleValueReference.html @@ -0,0 +1,10 @@ + + +报告对 CSS Module Value@value 声明)的未解析引用。 + +

      示例:

      +
      +@value foo from unknown;
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PostfixMethodCall.html b/original-plugin-raw/zh/inspectionDescriptions/PostfixMethodCall.html new file mode 100644 index 000000000..217278997 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PostfixMethodCall.html @@ -0,0 +1,16 @@ + + +

      报告后缀方法调用。

      +

      它会干扰分号推断。 建议用户改用普通的点表示法。

      + +

      示例:

      +
      
      +  "test" length
      +
      +

      在应用快速修复后:

      +
      
      +  "test".length
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PostfixTemplateDescriptionNotFound.html b/original-plugin-raw/zh/inspectionDescriptions/PostfixTemplateDescriptionNotFound.html new file mode 100644 index 000000000..74a9e64d9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PostfixTemplateDescriptionNotFound.html @@ -0,0 +1,11 @@ + + +报告后缀模板的缺失 HTML 描述文件和 before/after.template。 +

      + 它们显示在设置/偏好设置 | 编辑器 | 后缀补全中。 +

      +

      + 快速修复创建描述文件会创建模板描述 HTML 文件。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PostfixUnaryOperation.html b/original-plugin-raw/zh/inspectionDescriptions/PostfixUnaryOperation.html new file mode 100644 index 000000000..450f56aa6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PostfixUnaryOperation.html @@ -0,0 +1,14 @@ + + +

      报告对 unary_!unary_~ 等的非前缀调用。 建议将其替换为前缀运算符。

      +

      示例:

      +
      
      +  val x = true.unary_!;
      +
      +

      在应用快速修复后:

      +
      
      +  val x = !true
      +
      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PreprocessorComment.html b/original-plugin-raw/zh/inspectionDescriptions/PreprocessorComment.html new file mode 100644 index 000000000..dac8f5cae --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PreprocessorComment.html @@ -0,0 +1,14 @@ + + +报告预处理器 #endif 注释和宏名称之间不匹配。 +

      示例:

      +
      
      +  #ifndef _UTILS_H
      +  #define _UTILS_H
      +
      +  #endif //_UTILS
      +
      + +

      2021.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PresentationAnnotation.html b/original-plugin-raw/zh/inspectionDescriptions/PresentationAnnotation.html new file mode 100644 index 000000000..ffce99e60 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PresentationAnnotation.html @@ -0,0 +1,5 @@ + + +报告 com.intellij.ide.presentation.Presentation 注解中 icon 特性的无效和弃用值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PreviewAnnotationInFunctionWithParameters.html b/original-plugin-raw/zh/inspectionDescriptions/PreviewAnnotationInFunctionWithParameters.html new file mode 100644 index 000000000..d3d991c03 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PreviewAnnotationInFunctionWithParameters.html @@ -0,0 +1,3 @@ + +检查 Preview 是否未和带形参的 Composable 函数一起使用。 预览不支持带参数的 Composable 函数。 + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PreviewDimensionRespectsLimit.html b/original-plugin-raw/zh/inspectionDescriptions/PreviewDimensionRespectsLimit.html new file mode 100644 index 000000000..064f1e188 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PreviewDimensionRespectsLimit.html @@ -0,0 +1,3 @@ + +检查 Preview 尺寸(宽度和高度)是否有最大限制。 + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PreviewFeature.html b/original-plugin-raw/zh/inspectionDescriptions/PreviewFeature.html new file mode 100644 index 000000000..ae7bf24ff --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PreviewFeature.html @@ -0,0 +1,14 @@ + + +报告使用预览特性 API 的情况:一组用 @PreviewFeature 注解的元素。 +

      + 预览特性是 Java 语言、Java 虚拟机或 Java SE API 的一个新特性,它已完全指定、完全实现,但不是永久性的。 预览特性的概念在 JEP 12 中进行了定义。 +

      +

      + 如果一段代码依赖于预览特性,它可能会在未来的 JDK 版本中停止编译,以防该特性得不到积极反馈并被移除或更改。 +

      + +

      仅当当前项目的语言级别为预览时才启用检查。

      +

      2021.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PreviewMultipleParameterProviders.html b/original-plugin-raw/zh/inspectionDescriptions/PreviewMultipleParameterProviders.html new file mode 100644 index 000000000..257bb0f2f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PreviewMultipleParameterProviders.html @@ -0,0 +1,5 @@ + + +检测多个 @PreviewParameter 注解。 不允许多个 @PreviewParameter。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PreviewMustBeTopLevelFunction.html b/original-plugin-raw/zh/inspectionDescriptions/PreviewMustBeTopLevelFunction.html new file mode 100644 index 000000000..1f37b2c8c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PreviewMustBeTopLevelFunction.html @@ -0,0 +1,3 @@ + +检查 Preview 是否仅与顶层声明一起使用,或在具有默认构造函数的顶层类中使用。 + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PreviewNeedsComposableAnnotation.html b/original-plugin-raw/zh/inspectionDescriptions/PreviewNeedsComposableAnnotation.html new file mode 100644 index 000000000..da0474324 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PreviewNeedsComposableAnnotation.html @@ -0,0 +1,3 @@ + +检查 Preview 是否仅和 Composable 函数一起使用。 + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PrimitiveArrayArgumentToVariableArgMethod.html b/original-plugin-raw/zh/inspectionDescriptions/PrimitiveArrayArgumentToVariableArgMethod.html new file mode 100644 index 000000000..bf92658d5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PrimitiveArrayArgumentToVariableArgMethod.html @@ -0,0 +1,15 @@ + + +报告对可变 arity 方法的任何调用,其中该调用在 arity 形参位置有基元数组(例如 System.out.printf("%s", new int[]{1, 2, 3}))。 +此类基元数组实参可能令人困惑,因为它将被包装为单一元素数组,而不是像预期的那样将每个单独的元素装箱。 + +

      示例:

      +
      
      +  String.format("%s", new int[]{1, 2, 3});
      +
      +

      在应用快速修复后:

      +
      
      +  String.format("%s", (Object) new int[]{1, 2, 3});
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PrivateCategoryShouldBeNearImplementation.html b/original-plugin-raw/zh/inspectionDescriptions/PrivateCategoryShouldBeNearImplementation.html new file mode 100644 index 000000000..d2046f633 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PrivateCategoryShouldBeNearImplementation.html @@ -0,0 +1,5 @@ + + +报告与类实现不在同一文件中的私有类别。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PrivateMemberAccessBetweenOuterAndInnerClass.html b/original-plugin-raw/zh/inspectionDescriptions/PrivateMemberAccessBetweenOuterAndInnerClass.html new file mode 100644 index 000000000..ee927504b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PrivateMemberAccessBetweenOuterAndInnerClass.html @@ -0,0 +1,41 @@ + + +报告从嵌套类到外部类的非常量 private 成员的引用。 +对于此类引用,javac 将生成 package-private 合成访问器方法,这可能会危及安全性,因为看似为 private 的成员实际上可以从整个软件包中访问。 +

      + 嵌套类及其外部类会被编译为单独的类文件。 Java 虚拟机通常会禁止从一个类访问另一个类的 private 字段和方法。 为了实现从嵌套类访问外部类的 private 成员,javac 创建了一个 package-private 合成访问器方法。 +

      +

      + 通过将 private 成员设为 package-private,实际的可访问性变成了显式。 + 这也会节省少量内存,可能会在资源受限的环境中提高性能。 +

      +

      + 语言级别设置为 Java 11 或更高时,此检查不会报告,因为由于基于嵌套的访问控制 (JEP 181),不再生成访问器方法。 +

      +

      示例:

      +
      
      +  class Outer {
      +    private void x() {}
      +
      +    class Inner {
      +      void y() {
      +        x();
      +      }
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Outer {
      +    void x() {}
      +
      +    class Inner {
      +      void y() {
      +        x();
      +      }
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PrivatePropertyName.html b/original-plugin-raw/zh/inspectionDescriptions/PrivatePropertyName.html new file mode 100644 index 000000000..2700e591d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PrivatePropertyName.html @@ -0,0 +1,19 @@ + + +

      报告不遵循推荐命名惯例的 private 属性名称。

      +

      + 一致的命名会让阅读和理解代码变得更容易。 + 根据 Kotlin 官方样式指南,private 属性名称应以小写字母开头并使用驼峰拼写法。 + 或者,允许使用下划线前缀,但仅限于 private 属性。 +

      +

      可以通过更改“模式”正则表达式来引入其他命名规则。

      +

      示例:

      +
      
      +  val _My_Cool_Property = ""
      +
      +

      该快速修复会根据 Kotlin 命名惯例重命名类:

      +
      
      +  val _myCoolProperty = ""
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ProblematicVarargsMethodOverride.html b/original-plugin-raw/zh/inspectionDescriptions/ProblematicVarargsMethodOverride.html new file mode 100644 index 000000000..c709d3bd1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ProblematicVarargsMethodOverride.html @@ -0,0 +1,8 @@ + + +报告重写可变 arity(亦称 vararg)方法但将可变 arity 形参替换为数组形参的方法。 +尽管这段代码有效,但它可能令人困惑,因而应当避免。 + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ProblematicWhitespace.html b/original-plugin-raw/zh/inspectionDescriptions/ProblematicWhitespace.html new file mode 100644 index 000000000..a042f0603 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ProblematicWhitespace.html @@ -0,0 +1,13 @@ + + +报告以下问题: +

        +
      • 当代码样式配置为只使用空格时使用制表符进行缩进。
      • +
      • 当代码样式配置为只使用制表符时使用空格进行缩进。
      • +
      • 当代码样式配置为使用智能制表符时,使用空格进行缩进,以及使用制表符进行对齐。
      • +
      + + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ProcedureDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/ProcedureDeclaration.html new file mode 100644 index 000000000..4b409d0f0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ProcedureDeclaration.html @@ -0,0 +1,22 @@ + + +

      使用过程语法报告方法声明。

      +

      不建议开发者对方法使用类似过程的语法。 + 它将在 Scala 3 中被移除,因为它不一致并且可能导致错误。

      +

      该快速修复会将声明从过程语法转换为函数语法。

      +

      示例:

      +
      
      +  trait Test {
      +    def method()
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  trait Test {
      +    def method(): Unit
      +  }
      +
      + +

      提示:您可以使用“通过名称分析/运行检查”(Ctrl+Alt+Shift+I) 将此检查应用于整个项目。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ProcedureDefinition.html b/original-plugin-raw/zh/inspectionDescriptions/ProcedureDefinition.html new file mode 100644 index 000000000..ba957b78f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ProcedureDefinition.html @@ -0,0 +1,22 @@ + + +

      使用过程语法报告方法定义。

      +

      不建议开发者对方法使用类似过程的语法。 + 它将在 Scala 3 中被移除,因为它不一致并且可能导致错误。

      +

      该快速修复会将定义从过程语法转换为函数语法。

      +

      示例:

      +
      
      +  class Test {
      +    def method() { }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Test {
      +    def method(): Unit = { }
      +  }
      +
      + +

      提示:您可以使用“通过名称分析/运行检查”(Ctrl+Alt+Shift+I) 将此检查应用于整个项目。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ProhibitJvmOverloadsOnConstructorsOfAnnotationClassesMigration.html b/original-plugin-raw/zh/inspectionDescriptions/ProhibitJvmOverloadsOnConstructorsOfAnnotationClassesMigration.html new file mode 100644 index 000000000..5c2a57682 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ProhibitJvmOverloadsOnConstructorsOfAnnotationClassesMigration.html @@ -0,0 +1,17 @@ + + +

      报告注解类的构造函数的 @JvmOverloads,因为其毫无意义。

      +

      + 生成的字节码和 Kotlin 元数据中没有 @JvmOverloads 的占用空间,因此 @JvmOverloads 不会影响生成的字节码和代码行为。 +

      +

      自 Kotlin 1.4 起,注解类构造函数上的 @JvmOverloads 会导致编译错误。

      +

      示例:

      +
      
      +  annotation class A @JvmOverloads constructor(val x: Int = 1)
      +
      +

      在应用快速修复后:

      +
      
      +  annotation class A constructor(val x: Int = 1)
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ProhibitRepeatedUseSiteTargetAnnotationsMigration.html b/original-plugin-raw/zh/inspectionDescriptions/ProhibitRepeatedUseSiteTargetAnnotationsMigration.html new file mode 100644 index 000000000..0eca9649a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ProhibitRepeatedUseSiteTargetAnnotationsMigration.html @@ -0,0 +1,21 @@ + + +

      报告在属性访问器上重复使用非 @Repeatable 注解的情况。

      +

      + 由于多次使用非 @Repeatable 注解,这两种注解的使用都会出现在字节码中,从而导致反射调用中的歧义。 +

      +

      + 从 Kotlin 1.4 开始,必须将注解标记为 @Repeatable 或不重复注解,否则会导致编译错误。 +

      +

      示例:

      +
      
      +  annotation class Foo(val x: Int)
      +
      +  @get:Foo(10)
      +  val a: String
      +      @Foo(20) get() = "foo" // 注解重复两次,但未被标记为 @Repeatable
      +
      + +

      仅当项目或模块的 Kotlin 语言级别为 1.4 或更高时,此检查才会报告。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ProhibitTypeParametersForLocalVariablesMigration.html b/original-plugin-raw/zh/inspectionDescriptions/ProhibitTypeParametersForLocalVariablesMigration.html new file mode 100644 index 000000000..bc334e1b7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ProhibitTypeParametersForLocalVariablesMigration.html @@ -0,0 +1,20 @@ + + +

      报告带有类型形参的局部变量。

      +

      局部变量的类型形参没有意义,因为它不能被专门化。

      +

      示例:

      +
      
      +  fun main() {
      +      val <T> x = ""
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun main() {
      +      val x = ""
      +  }
      +
      + +

      仅当项目或模块的 Kotlin 语言级别为 1.4 或更高时,此检查才会报告。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ProhibitUseSiteTargetAnnotationsOnSuperTypesMigration.html b/original-plugin-raw/zh/inspectionDescriptions/ProhibitUseSiteTargetAnnotationsOnSuperTypesMigration.html new file mode 100644 index 000000000..bd2c232d4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ProhibitUseSiteTargetAnnotationsOnSuperTypesMigration.html @@ -0,0 +1,24 @@ + + +

      从 Kotlin 1.4 开始,报告超类的无意义注解目标。

      +

      诸如 @get: 之类的注解目标在超类中毫无意义并且被禁止。

      +

      示例:

      +
      
      +  interface Foo
      +
      +  annotation class Ann
      +
      +  class E : @field:Ann @get:Ann @set:Ann @setparam:Ann Foo
      +
      +

      在应用快速修复后:

      +
      
      +  interface Foo
      +
      +  annotation class Ann
      +
      +  class E : Foo
      +
      + +

      仅当项目或模块的 Kotlin 语言级别为 1.4 或更高时,此检查才会报告。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PropertyAndIvarTypeMismatch.html b/original-plugin-raw/zh/inspectionDescriptions/PropertyAndIvarTypeMismatch.html new file mode 100644 index 000000000..f87688794 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PropertyAndIvarTypeMismatch.html @@ -0,0 +1,5 @@ + + + 报告具有 @synthesize 语句和不同类型的实例变量的属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PropertyName.html b/original-plugin-raw/zh/inspectionDescriptions/PropertyName.html new file mode 100644 index 000000000..a2c9a5330 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PropertyName.html @@ -0,0 +1,18 @@ + + +

      报告不遵循推荐命名惯例的属性名称。

      +

      + 一致的命名会让阅读和理解代码变得更容易。 + 根据 Kotlin 官方样式指南,属性名称应以小写字母开头并使用驼峰拼写法。 +

      +

      可以通过更改“模式”正则表达式来引入其他命名规则。

      +

      示例:

      +
      
      +  val My_Cool_Property = ""
      +
      +

      该快速修复会根据 Kotlin 命名惯例重命名类:

      +
      
      +  val myCoolProperty = ""
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PropertyValueSetToItself.html b/original-plugin-raw/zh/inspectionDescriptions/PropertyValueSetToItself.html new file mode 100644 index 000000000..39f312b27 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PropertyValueSetToItself.html @@ -0,0 +1,10 @@ + + +报告以相同的对象 getter 作为值的 setter 方法的调用。 +该代码通常不执行任何工作,并且可能不是有意为之。 +

      示例:

      +
      bean.setPayerId(bean.getPayerId());
      + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PropsFactoryMethodExists.html b/original-plugin-raw/zh/inspectionDescriptions/PropsFactoryMethodExists.html new file mode 100644 index 000000000..d8db423aa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PropsFactoryMethodExists.html @@ -0,0 +1,30 @@ + + +

      报告可将动态构造函数调用安全替换为工厂方法调用的情况。

      +

      示例:

      +
      
      +  import akka.actor._
      +  
      +  class Foo extends AbstractActor
      +  
      +  object Foo {
      +    def props(): Props = Props(new Foo())
      +  }
      +  
      +  Props(classOf[Foo])
      +
      +

      在应用快速修复后:

      +
      
      +  import akka.actor._
      +  
      +  class Foo extends AbstractActor
      +  
      +  object Foo {
      +    def props(): Props = Props(new Foo())
      +  }
      +  
      +  Foo.props()
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ProtectedField.html b/original-plugin-raw/zh/inspectionDescriptions/ProtectedField.html new file mode 100644 index 000000000..5ae3225b7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ProtectedField.html @@ -0,0 +1,14 @@ + + +报告 protected 字段。 +

      不报告常量(即标记为 staticfinal 的变量)。

      +

      示例:

      +
      
      +  public class A {
      +    protected Object object;              // 警告
      +    protected final static int MODE = 0;  // 常量,无警告
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ProtectedInFinal.html b/original-plugin-raw/zh/inspectionDescriptions/ProtectedInFinal.html new file mode 100644 index 000000000..9d2d8c908 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ProtectedInFinal.html @@ -0,0 +1,18 @@ + + +报告在 final 类内部使用的 protected 可见性。 +在这种情况下,protected 成员只能在类本身中访问,因此它们实际上是 private。 +

      示例:

      +
      
      +  class FinalClass {
      +      protected fun foo() {}
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class FinalClass {
      +      private fun foo() {}
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ProtectedInnerClass.html b/original-plugin-raw/zh/inspectionDescriptions/ProtectedInnerClass.html new file mode 100644 index 000000000..e46ca9524 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ProtectedInnerClass.html @@ -0,0 +1,20 @@ + + +报告 protected 嵌套类。 +

      示例:

      +
      
      +  public class Outer {
      +    protected static class Nested {} // 警告
      +    protected class Inner {}         // 警告
      +    protected enum Mode {}           // 警告取决于设置
      +    protected interface I {}         // 警告取决于设置
      +  }
      +
      + +

      配置检查:

      +
        +
      • 使用忽略 'protected' 内部枚举选项可忽略 protected 内部枚举。
      • +
      • 使用忽略 'protected' 内部接口选项可忽略 protected 内部接口。
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ProtectedMemberInFinalClass.html b/original-plugin-raw/zh/inspectionDescriptions/ProtectedMemberInFinalClass.html new file mode 100644 index 000000000..00186c68f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ProtectedMemberInFinalClass.html @@ -0,0 +1,26 @@ + + +报告 final 类中的 protected 成员。 +

      由于无法继承 final 类,将方法标记为 protected 可能令人困惑。 最好将此类成员声明为 private 或软件包可见。

      +

      示例:

      +
      record Bar(int a, int b) {
      +  protected int sum() { 
      +     return a + b;
      +  }
      +}
      +
      +
      +

      在应用快速修复后:

      +
      record Bar(int a, int b) {
      +  int sum() { 
      +     return a + b;
      +  }
      +}
      +
      + +

      如本例所示,可以显式或隐式地将类标记为 final

      + + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PsalmAdvanceCallableParamsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PsalmAdvanceCallableParamsInspection.html new file mode 100644 index 000000000..03c1e8cf5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PsalmAdvanceCallableParamsInspection.html @@ -0,0 +1,5 @@ + + +报告类型与通过 Closure 定义的类型不兼容的函数调用中的形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PsalmGlobal.html b/original-plugin-raw/zh/inspectionDescriptions/PsalmGlobal.html new file mode 100644 index 000000000..5c38ab45e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PsalmGlobal.html @@ -0,0 +1,12 @@ + + +

      + 运行 Psalm 以查找代码问题。 +

      + 该项检查要求正确安装 Psalm,并在设置/首选项 | PHP | + 质量工具 | Psalm 下正确设置 。
      +

      要了解安装 Psalm 的更多信息,请参阅: + https://psalm.dev/docs/running_psalm/installation/ +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PsalmIncompatibleTypeOfArrayKeyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PsalmIncompatibleTypeOfArrayKeyInspection.html new file mode 100644 index 000000000..3d7c279aa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PsalmIncompatibleTypeOfArrayKeyInspection.html @@ -0,0 +1,5 @@ + + +报告其类型与所声明类型不兼容的数组键。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PsiElementConcatenation.html b/original-plugin-raw/zh/inspectionDescriptions/PsiElementConcatenation.html new file mode 100644 index 000000000..312aca746 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PsiElementConcatenation.html @@ -0,0 +1,8 @@ + + +报告字符串中 PsiElementPsiType 的直接用法。 +

      + 为 PsiJavaParserFacade.createExpressionFromText()(或类似方法)构建字符串时,应改用 PsiElement.getText()。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PublicApiImplicitType.html b/original-plugin-raw/zh/inspectionDescriptions/PublicApiImplicitType.html new file mode 100644 index 000000000..dcac39d3d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PublicApiImplicitType.html @@ -0,0 +1,18 @@ + + +

      + 报告具有隐式返回类型的 publicprotected 函数和属性。 + 出于 API 稳定性的原因,建议显式指定此种类型。 +

      +

      示例:

      +
      
      +  fun publicFunctionWhichAbusesTypeInference() =
      +      otherFunctionWithNotObviousReturnType() ?: yetAnotherFunctionWithNotObviousReturnType()
      +
      +

      在应用快速修复后:

      +
      
      +  fun publicFunctionWhichAbusesTypeInference(): Api =
      +      otherFunctionWithNotObviousReturnType() ?: yetAnotherFunctionWithNotObviousReturnType()
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PublicConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/PublicConstructor.html new file mode 100644 index 000000000..4668acb78 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PublicConstructor.html @@ -0,0 +1,48 @@ + + +报告 public 构造函数。 +

      有些编码标准不建议使用 public 构造函数,而是建议使用 static 工厂方法。 +这样就可以在不影响调用点的情况下交换实现。 +

      示例:

      +
      
      +  class Test {
      +    private String name;
      +
      +    public Test(String name) {
      +        this.name = name;
      +    }
      +
      +    public void test() {
      +        System.out.println(name);
      +    }
      +
      +    public static void main(String[] args) {
      +        new Test("str").test();
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Test {
      +    private String name;
      +
      +    private Test(String name) {
      +        this.name = name;
      +    }
      +
      +    public static Test getInstance(String name) {
      +        return new Test(name);
      +    }
      +
      +    public void test() {
      +        System.out.println(name);
      +    }
      +
      +    public static void main(String[] args) {
      +        getInstance("str").test();
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PublicConstructorInNonPublicClass.html b/original-plugin-raw/zh/inspectionDescriptions/PublicConstructorInNonPublicClass.html new file mode 100644 index 000000000..482fea2ef --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PublicConstructorInNonPublicClass.html @@ -0,0 +1,9 @@ + + +报告非 public 类中的所有 public 构造函数。 +

      在访问级别较低的类中,通常没有理由创建 public 构造函数。 + 但请注意,此检查会改变某些反射调用的行为。 特别是,Class.getConstructor() 将无法找到更新的构造函数(应改为使用 Class.getDeclaredConstructor())。 如果您的代码或某些已使用的框架的代码通过 getConstructor() 依赖于构造函数的可访问性,请不要使用该检查。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PublicField.html b/original-plugin-raw/zh/inspectionDescriptions/PublicField.html new file mode 100644 index 000000000..69ffe266b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PublicField.html @@ -0,0 +1,32 @@ + + +报告 public 字段。 +不报告常量(标记 staticfinal 的字段)。 +

      示例:

      +
      
      +  class Main {
      +    public String name;
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Main {
      +    private String name;
      +
      +    public String getName() {
      +        return name;
      +    }
      +
      +    public void setName(String name) {
      +        this.name = name;
      +    }
      +  }
      +
      + +

      配置检查:

      +
        +
      • 使用有注解时忽略列表可指定要忽略的注解。 该检查将忽略包含其中任何注解的字段。
      • +
      • 使用忽略枚举的 'public final' 字段选项,可以忽略 enum 类型的 public final 字段。
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PublicFieldAccessedInSynchronizedContext.html b/original-plugin-raw/zh/inspectionDescriptions/PublicFieldAccessedInSynchronizedContext.html new file mode 100644 index 000000000..d0cca6da4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PublicFieldAccessedInSynchronizedContext.html @@ -0,0 +1,20 @@ + + +报告在同步上下文中访问的非 final、非 private 字段。 +

      + 不能保证始终以同步方式访问非 private 字段,此类“部分同步的”访问可能意外导致不一致的数据结构。 +

      +

      示例:

      +
      
      +  class Bar {
      +    public String field1;
      +  }
      +  public Bar myBar;
      +
      +  synchronized public void sample() {
      +   myBar.field1 = "bar";
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PublicInnerClass.html b/original-plugin-raw/zh/inspectionDescriptions/PublicInnerClass.html new file mode 100644 index 000000000..cd5274aeb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PublicInnerClass.html @@ -0,0 +1,20 @@ + + +报告 public 嵌套类。 +

      示例:

      +
      
      +  public class Outer {
      +    public static class Nested {} // 警告
      +    public class Inner {}         // 警告
      +    public enum Mode {}           // 警告取决于设置
      +    public interface I {}         // 警告取决于设置
      +  }
      +
      + +

      配置检查:

      +
        +
      • 使用忽略 'public' 内部枚举选项可忽略 public 内部枚举。
      • +
      • 使用忽略 'public' 内部接口选项可忽略 public 内部接口。
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PublicMethodNotExposedInInterface.html b/original-plugin-raw/zh/inspectionDescriptions/PublicMethodNotExposedInInterface.html new file mode 100644 index 000000000..6390bf059 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PublicMethodNotExposedInInterface.html @@ -0,0 +1,35 @@ + + +报告未在接口中公开的类中的 public 方法。 +

      通过接口公开所有 public 方法对于维护松散耦合非常重要,某些基于组件的编程风格可能需要这样做。

      +

      示例:

      +
      
      +interface Person {
      +  String getName();
      +}
      +
      +class PersonImpl implements Person {
      +  private String name;
      +
      +  // 正常:方法在接口中公开
      +  @Override
      +  public String getName() {
      +    return name;
      +  }
      +
      +  // 警告:方法为 public
      +  // 但未在接口中公开
      +  public void setName() {
      +    this.name = name;
      +  }
      +}
      +
      + +

      + 使用有注解时忽略列表可指定特殊注解。 此检查将忽略使用其中一种注解进行注解的方法。 +

      + 使用如果包含类未实现非库接口,则忽略选项可以忽略未实现项目中任何接口的类中的方法。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PublicMethodWithoutLogging.html b/original-plugin-raw/zh/inspectionDescriptions/PublicMethodWithoutLogging.html new file mode 100644 index 000000000..81f1a86d4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PublicMethodWithoutLogging.html @@ -0,0 +1,22 @@ + + +报告任何不包含日志记录语句的 public 方法。 此检查不报告简单的 getter 和 setter。 +

      示例:

      +
      
      +  public class Crucial {
      +    private static final Logger LOG = LoggerFactory.getLogger(Crucial.class);
      +    public void doImportantStuff() {
      +      // 对此方法发出警告
      +    }
      +
      +    public void doOtherStuff() {
      +      LOG.info("do other stuff");
      +    }
      +  }
      +
      + +

      +使用下表可指定 Logger 类名。 +此检查将报告不使用指定类的实例方法的 public 方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PublicStaticArrayField.html b/original-plugin-raw/zh/inspectionDescriptions/PublicStaticArrayField.html new file mode 100644 index 000000000..ab8a33442 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PublicStaticArrayField.html @@ -0,0 +1,14 @@ + + +报告 public static 数组字段。 +

      + 此类字段通常用于存储常量值数组。 尽管如此,它们仍然存在安全隐患,因为它们的内容可能会被修改,即使该字段被声明为 final

      +

      示例:

      +
      
      +  public static String[] allowedPasswords = {"foo", "bar"};
      +
      + +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PublicStaticCollectionField.html b/original-plugin-raw/zh/inspectionDescriptions/PublicStaticCollectionField.html new file mode 100644 index 000000000..41a63d3a9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PublicStaticCollectionField.html @@ -0,0 +1,15 @@ + + +报告可修改的 public static 集合字段。 +

      尽管这些字段经常用于存储常量值集合,但它们仍然代表着安全隐患,因为即使字段被声明为 final,它们的内容仍可能被修改。

      +

      示例:

      +
      
      +  public static final List<String> EVENTS = new ArrayList<>();
      +  
      +
      + +

      + 使用选项部分中的表可指定返回不可修改集合的方法。 + 将不会报告使用这些方法初始化的 public static 集合字段。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Puppet3Deprecations.html b/original-plugin-raw/zh/inspectionDescriptions/Puppet3Deprecations.html new file mode 100644 index 000000000..d8395372f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Puppet3Deprecations.html @@ -0,0 +1,5 @@ + + +报告自 Puppet 3 起弃用的语法的使用情况,例如 import 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Puppet4Deprecations.html b/original-plugin-raw/zh/inspectionDescriptions/Puppet4Deprecations.html new file mode 100644 index 000000000..f71d4d993 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Puppet4Deprecations.html @@ -0,0 +1,11 @@ + + +报告自 Puppet 4 起弃用的语法的使用情况,例如: +

        +
      • 类的 class 名称
      • +
      • 大写变量名
      • +
      • 带下划线的限定变量
      • +
      +

      请注意,这些构造在 Puppet 3.x 和更早的版本中正常使用。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PuppetMultipleHashSetParamsPerResourceInstance.html b/original-plugin-raw/zh/inspectionDescriptions/PuppetMultipleHashSetParamsPerResourceInstance.html new file mode 100644 index 000000000..ab420a772 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PuppetMultipleHashSetParamsPerResourceInstance.html @@ -0,0 +1,5 @@ + + +报告具有两个或多个 HashSet 形参 (* =>) 的资源实例。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PuppetUnresolved.html b/original-plugin-raw/zh/inspectionDescriptions/PuppetUnresolved.html new file mode 100644 index 000000000..4059d919c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PuppetUnresolved.html @@ -0,0 +1,5 @@ + + +报告 Puppet 文件中未解析的符号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyAbstractClassInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyAbstractClassInspection.html new file mode 100644 index 000000000..d50c92dee --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyAbstractClassInspection.html @@ -0,0 +1,40 @@ + + +

      报告不是所有抽象属性或方法都在子类中定义的情况。

      +

      示例:

      +
      +from abc import abstractmethod, ABC
      +
      +
      +class Figure(ABC):
      +
      +    @abstractmethod
      +    def do_figure(self):
      +        pass
      +
      +
      +class Triangle(Figure):
      +    def do_triangle(self):
      +        pass
      +
      +

      应用快速修复后,IDE 为 Triangle 类实现抽象方法:

      +
      +from abc import abstractmethod, ABC
      +
      +
      +class Figure(ABC):
      +
      +    @abstractmethod
      +    def do_figure(self):
      +        pass
      +
      +
      +class Triangle(Figure):
      +    def do_figure(self):
      +        pass
      +
      +    def do_triangle(self):
      +        pass
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyArgumentEqualDefaultInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyArgumentEqualDefaultInspection.html new file mode 100644 index 000000000..7e269f625 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyArgumentEqualDefaultInspection.html @@ -0,0 +1,14 @@ + + +

      报告传递给函数的实参等于默认形参值问题。

      +

      为避免性能下降,默认为禁用此检查。

      +

      示例:

      +
      +def my_function(a: int = 2):
      +    print(a)
      +
      +
      +my_function(2)
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyArgumentListInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyArgumentListInspection.html new file mode 100644 index 000000000..9d16082ce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyArgumentListInspection.html @@ -0,0 +1,27 @@ + + +

      报告声明的形参和实际实参之间的差异,也报告不正确的实参(例如重复的命名实参)和不正确的实参顺序。

      +

      示例:

      +
      +class Foo:
      +    def __call__(self, p1: int, *, p2: str = "%"):
      +        return p2 * p1
      +
      +
      +bar = Foo()
      +bar.__call__() # 形参未填
      +bar(5, "#") # 非预期实参
      +
      +

      正确的代码段如下所示:

      +
      +class Foo:
      +    def __call__(self, p1: int, *, p2: str = "%"):
      +        return p2 * p1
      +
      +
      +bar = Foo()
      +bar.__call__(5)
      +bar(5, p2="#")
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyAssignmentToLoopOrWithParameterInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyAssignmentToLoopOrWithParameterInspection.html new file mode 100644 index 000000000..a3fedfad6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyAssignmentToLoopOrWithParameterInspection.html @@ -0,0 +1,18 @@ + + +报告使用内部循环重写循环变量的情况: +
      +    for i in range(5):
      +      for i in range(20, 25):
      +          print("Inner", i)
      +      print("Outer", i)
      +  
      + +如果在 with 语句中声明的变量在语句体中重新声明,它也会向您发出警告: +
      +    with open("file") as f:
      +      f.read()
      +      with open("file") as f:
      +  
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyAsyncCallInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyAsyncCallInspection.html new file mode 100644 index 000000000..14158f6ff --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyAsyncCallInspection.html @@ -0,0 +1,23 @@ + + +

      报告在未使用 await 语法的情况下调用的协同程序。

      +

      示例:

      +
      +async def bar():
      +    pass
      +
      +
      +async def foo():
      +    bar()
      +
      +

      应用快速修复后,代码变为:

      +
      +async def bar():
      +    pass
      +
      +
      +async def foo():
      +    await bar()
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyAttributeOutsideInitInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyAttributeOutsideInitInspection.html new file mode 100644 index 000000000..8c22fee14 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyAttributeOutsideInitInspection.html @@ -0,0 +1,26 @@ + + +报告实例特性定义在__init__ 方法外部的问题。 +

      示例:

      +
      +    class Book:
      +    def __init__(self):
      +        self.author = 'Mark Twain'
      +
      +    def release(self):
      +        self.year = '1889'
      +
      +

      + 应用快速修复后,代码示例变为: +

      +
      +    class Book:
      +    def __init__(self):
      +        self.year = '1889'
      +        self.author = 'Mark Twain'
      +
      +    def release(self):
      +        pass
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyAugmentAssignmentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyAugmentAssignmentInspection.html new file mode 100644 index 000000000..ef92d2f9a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyAugmentAssignmentInspection.html @@ -0,0 +1,17 @@ + + +

      报告可以替换为增量赋值的赋值。

      +

      示例:

      +
      +a = 23
      +b = 3
      +a = a + b
      +
      +

      应用快速修复后,代码变为:

      +
      +a = 23
      +b = 3
      +a += b
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyBDDParametersInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyBDDParametersInspection.html new file mode 100644 index 000000000..1d0991760 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyBDDParametersInspection.html @@ -0,0 +1,15 @@ + + +

      报告步骤定义函数中不正确的实参。

      +

      示例:

      +
      +from behave import *
      +
      +
      +@given("I'm ready")
      +def step_impl(context,a):
      +    raise NotImplementedError(u'STEP: Given I\'m ready')
      +
      +

      高亮显示不当的 a 实参。 快速修复会将其移除。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyBehaveInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyBehaveInspection.html new file mode 100644 index 000000000..a15d0c557 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyBehaveInspection.html @@ -0,0 +1,12 @@ + + +

      报告 Python Behave BDD 框架的不正确用法:

      +
        +
      • 步骤定义文件没有 from behave import *
      • +
      • 包含步骤定义的目录没有被命名为 steps
      • +
      +

      如果发生其中一种情况,IDE 将高亮显示 .feature 文件中的相应步骤。 您可以应用快速修复来创建步骤定义或重命名包含此步骤的目录。

      + +

      有关详细信息,请参阅创建步骤定义

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyBroadExceptionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyBroadExceptionInspection.html new file mode 100644 index 000000000..2ae836daa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyBroadExceptionInspection.html @@ -0,0 +1,10 @@ + + +

      报告不提供有关此问题的特定信息的异常子句。

      +

      示例:

      +
        +
      • 不指定异常类的子句
      • +
      • 指定为 Exception 的子句
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyByteLiteralInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyByteLiteralInspection.html new file mode 100644 index 000000000..d7cc9936a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyByteLiteralInspection.html @@ -0,0 +1,7 @@ + + +

      报告在 ASCII 范围外部的字节文字中的字符。

      +

      示例:

      +s = b'№5' + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyCallingNonCallableInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyCallingNonCallableInspection.html new file mode 100644 index 000000000..2a8aa7f53 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyCallingNonCallableInspection.html @@ -0,0 +1,12 @@ + + +

      报告尝试调用属性等不可调用对象的问题:

      +
      +class Record:
      +    @property
      +    def as_json(self):
      +
      +json = Record().as_json()
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyChainedComparisonsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyChainedComparisonsInspection.html new file mode 100644 index 000000000..f9b05e567 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyChainedComparisonsInspection.html @@ -0,0 +1,22 @@ + + +

      报告可以简化的链式比较。

      +

      示例:

      +
      
      +  def do_comparison(x):
      +      xmin = 10
      +      xmax = 100
      +      if x >= xmin and x <= xmax:
      +          pass
      +
      +

      IDE 提议简化 if x >= xmin and x <= xmax。 + 应用快速修复后,代码变为:

      +
      
      +  def do_comparison(x):
      +      xmin = 10
      +      xmax = 100
      +      if xmin <= x <= xmax:
      +          pass
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyClassHasNoInitInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyClassHasNoInitInspection.html new file mode 100644 index 000000000..f6d8d7043 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyClassHasNoInitInspection.html @@ -0,0 +1,16 @@ + + +

      报告 Python 2 中的类没有__init__ 方法且其父类也没有此方法的情况。

      +

      示例:

      +
      +class Book():
      +    pass
      +
      +

      快速修复将添加 __init__ 方法:

      +
      +class Book():
      +    def __init__(self):
      +        pass
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyClassicStyleClassInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyClassicStyleClassInspection.html new file mode 100644 index 000000000..381361b23 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyClassicStyleClassInspection.html @@ -0,0 +1,16 @@ + + +

      报告经典样式类的用法。 此检查仅适用于 Python 2。 +

      示例:

      +
      +class A:
      +    pass
      +
      +

      应用 IDE 提供的快速修复后,这段代码变为:

      +
      +class A(object):
      +    def __init__(self):
      +        pass
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyComparisonWithNoneInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyComparisonWithNoneInspection.html new file mode 100644 index 000000000..4511844e9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyComparisonWithNoneInspection.html @@ -0,0 +1,21 @@ + + +

      报告与 None 的比较。 这种类型的比较应始终使用 isis not 进行,不得使用相等运算符。

      +

      示例:

      +
      +a = 2
      +
      +
      +if a == None:
      +    print("Success")
      +
      +

      应用快速修复后,代码变为:

      +
      +a = 2
      +
      +
      +if a is None:
      +    print("Success")
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyCompatibilityInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyCompatibilityInspection.html new file mode 100644 index 000000000..059becb72 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyCompatibilityInspection.html @@ -0,0 +1,8 @@ + + +

      报告与指定的 Python 版本不兼容的情况。 + 如果要自己的代码与一系列 Python 版本兼容(以构建库为例),则可以启用此检查。

      +

      要定义所检查的 Python 版本的范围,请在选项部分中选择相应的复选框。

      +

      有关 IDE 支持的 Python 版本的详细信息,请参阅 Web 帮助

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyDataclassInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyDataclassInspection.html new file mode 100644 index 000000000..4a3961a0a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyDataclassInspection.html @@ -0,0 +1,16 @@ + + +

      报告使用 dataclassesattr 模块创建的类的无效定义和用法。

      +

      示例:

      +
      +import dataclasses
      +
      +
      +@dataclasses.dataclass
      +class FullName:
      +    first: str
      +    middle: str = ""
      +    last: str
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyDecoratorInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyDecoratorInspection.html new file mode 100644 index 000000000..398e8dcef --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyDecoratorInspection.html @@ -0,0 +1,31 @@ + + +

      报告类外部方法中的 @classmethod@staticmethod 装饰器的用法。

      +

      示例:

      +
      +class State(object):
      +
      +    @classmethod
      +    def my_state(cls, name):
      +        cls.name = name
      +
      +
      +@classmethod
      +def change_state(self):
      +    pass
      +
      +

      change_state 方法不应使用 @classmethod 装饰器,或应将其移动到 state 类声明。

      +

      如果应用移除装饰器操作,代码变为:

      +
      +class State(object):
      +
      +    @classmethod
      +    def my_state(cls, name):
      +        cls.name = name
      +
      +
      +def change_state(self):
      +    pass
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyDefaultArgumentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyDefaultArgumentInspection.html new file mode 100644 index 000000000..cdb5c0bda --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyDefaultArgumentInspection.html @@ -0,0 +1,18 @@ + + +

      报告在实参的默认值中检测到列表或字典形式可变值的问题。
      + 默认实参值仅在函数定义时进行一次求值,这意味着修改该实参的默认值将影响此函数的所有后续调用。

      +

      示例:

      +
      +def func(s, cache={}):
      +    cache[s] = None
      +
      +

      应用快速修复后,代码变为:

      +
      +def func(s, cache=None):
      +    if cache is None:
      +        cache = {}
      +    cache[s] = None
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyDeprecatedModulesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyDeprecatedModulesInspection.html new file mode 100644 index 000000000..e64ba8efa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyDeprecatedModulesInspection.html @@ -0,0 +1,5 @@ + + +此检查高亮显示引用了当前 Python 版本中已弃用模块的 import 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyDeprecationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyDeprecationInspection.html new file mode 100644 index 000000000..7b2b001f6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyDeprecationInspection.html @@ -0,0 +1,19 @@ + + +

      报告标记为已弃用并引发 DeprecationWarningPendingDeprecationWarning 警告的 Python 函数或方法的用法。

      +

      此外,该检查还高亮显示 abc.abstractstaticmethodabc.abstractpropertyabc.abstractclassmethod 装饰器的用法。

      +

      示例:

      +
      +class Foo:
      +    @property
      +    def bar(self):
      +        import warnings
      +        warnings.warn("this is deprecated", DeprecationWarning, 2)
      +        return 5
      +
      +
      +foo = Foo()
      +print(foo.bar)
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyDictCreationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyDictCreationInspection.html new file mode 100644 index 000000000..6dad321b8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyDictCreationInspection.html @@ -0,0 +1,15 @@ + + +

      报告可以使用字典文字重写字典创建的情况。

      +

      这种方法可以提升性能。

      +

      示例:

      +
      +dic = {}
      +dic['var'] = 1
      +
      +

      应用快速修复后,代码变为:

      +
      +dic = {'var': 1}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyDictDuplicateKeysInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyDictDuplicateKeysInspection.html new file mode 100644 index 000000000..29dc6fa13 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyDictDuplicateKeysInspection.html @@ -0,0 +1,9 @@ + + +

      报告将同一个值作为字典键使用两次的情况。

      +

      示例:

      +
      +dic = {"a": [1, 2], "a": [3, 4]}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyDocstringTypesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyDocstringTypesInspection.html new file mode 100644 index 000000000..48ef7d094 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyDocstringTypesInspection.html @@ -0,0 +1,5 @@ + + +

      报告 docstring 中与动态推断类型不匹配的类型。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyDunderSlotsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyDunderSlotsInspection.html new file mode 100644 index 000000000..29995332a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyDunderSlotsInspection.html @@ -0,0 +1,14 @@ + + +

      报告包含 __slots__ 定义的类的无效用法。

      +

      示例:

      +
      +class Foo:
      +    __slots__ = ['foo', 'bar']
      +
      +
      +foo = Foo()
      +foo.baz = 'spam'
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyExceptClausesOrderInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyExceptClausesOrderInspection.html new file mode 100644 index 000000000..19e67d4d1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyExceptClausesOrderInspection.html @@ -0,0 +1,26 @@ + + +

      报告 except 子句没有按照从更具体到更通用的正确顺序列出,或者一个异常类被捕获两次的情况。

      +

      + 如果不修复顺序,最具体的处理程序可能无法捕获某些异常。 +

      +

      示例:

      +
      +try:
      +    call()
      +except ValueError:
      +    pass
      +except UnicodeError:
      +    pass
      +
      +

      IDE 建议将该子句上移。 应用快速修复后,代码变为:

      +
      +try:
      +    call()
      +except UnicodeError:
      +    pass
      +except ValueError:
      +    pass
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyExceptionInheritInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyExceptionInheritInspection.html new file mode 100644 index 000000000..de8264d4b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyExceptionInheritInspection.html @@ -0,0 +1,23 @@ + + +

      报告 raise 的自定义异常类不是继承自内置 Exception 类的情况。

      +

      示例:

      +
      +class A:
      +    pass
      +
      +
      +def me_exception():
      +    raise A()
      +
      +

      执行提议的快速修复后,代码变为:

      +
      +class A(Exception):
      +    pass
      +
      +
      +def me_exception():
      +    raise A()
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyFinalInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyFinalInspection.html new file mode 100644 index 000000000..a55885d9b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyFinalInspection.html @@ -0,0 +1,20 @@ + + +

      报告 final 类、方法和变量的无效用法。

      +

      示例:

      +
      +from typing import final
      +
      +
      +@final
      +class A:
      +    def a_method(self):
      +        pass
      +
      +
      +class B(A):
      +    def a_method(self):
      +        pass
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyFromFutureImportInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyFromFutureImportInspection.html new file mode 100644 index 000000000..de86604bd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyFromFutureImportInspection.html @@ -0,0 +1,18 @@ + + +

      报告未在文件开头使用的 from __future__ import 语句

      +

      示例:

      +
      +a = 1
      +from __future__ import print_function
      +print()
      +
      +

      应用快速修复后,代码变为:

      +
      +from __future__ import print_function
      +
      +a = 1
      +print()
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyGlobalUndefinedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyGlobalUndefinedInspection.html new file mode 100644 index 000000000..e928e1d2e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyGlobalUndefinedInspection.html @@ -0,0 +1,21 @@ + + +

      报告通过 global 语句定义的变量未在模块范围中定义的问题。

      +

      示例:

      +
      +def foo():
      +    global bar
      +    print(bar)
      +
      +foo()
      +
      +

      可以移动该全局变量声明来进行修正:

      +
      +global bar
      +
      +
      +def foo():
      +    print(bar)
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyInconsistentIndentationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyInconsistentIndentationInspection.html new file mode 100644 index 000000000..72b85f083 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyInconsistentIndentationInspection.html @@ -0,0 +1,5 @@ + + +

      报告 Python 源文件中缩进不一致的情况,例如在代码中混用制表符和空格。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyIncorrectDocstringInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyIncorrectDocstringInspection.html new file mode 100644 index 000000000..836867f6e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyIncorrectDocstringInspection.html @@ -0,0 +1,22 @@ + + +

      报告 docstring 中不匹配的形参。 例如,b 处于高亮显示状态,因为 add 函数中没有此类形参。

      +
      +    def add(a, c):
      +    """
      +    @param a:
      +    @param b:
      +    @return:
      +    """
      +    pass
      +
      +

      如果 docstring 中没有提及其中任何一个形参,则检查不会警告您缺少这些形参:

      +
      +def mult(a, c):
      +    """
      +    @return:
      +    """
      +    pass
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyInitNewSignatureInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyInitNewSignatureInspection.html new file mode 100644 index 000000000..c183a8a35 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyInitNewSignatureInspection.html @@ -0,0 +1,16 @@ + + +

      报告 __new____init__ 方法不兼容的签名。

      +

      示例:

      +
      +class MyClass(object):
      +    def __new__(cls, arg1):
      +        return super().__new__(cls)
      +
      +    def __init__(self):
      +        pass
      +
      +

      如果 __new____init__ 有不同的实参,则无法实例化 MyClass

      +

      IDE 提议的修复方法是应用“更改签名”重构。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyInterpreterInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyInterpreterInspection.html new file mode 100644 index 000000000..8e42df089 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyInterpreterInspection.html @@ -0,0 +1,6 @@ + + +

      报告没有为项目配置 Python 解释器或解释器无效的问题。 如果没有正确配置的解释器,就无法执行 Python 脚本,也无法受益于某些 Python 代码洞察功能。

      +

      IDE 提供对解释器设置的快速访问。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyListCreationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyListCreationInspection.html new file mode 100644 index 000000000..35cba5053 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyListCreationInspection.html @@ -0,0 +1,15 @@ + + +

      报告可以用列表文本重写列表声明的情况。

      +

      这样可以确保应用程序更出色的性能。

      +

      示例:

      +
      +l = [1]
      +l.append(2)
      +
      +

      应用快速修复后,代码变为:

      +
      +l = [1, 2]
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyMandatoryEncodingInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyMandatoryEncodingInspection.html new file mode 100644 index 000000000..9f0ef3050 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyMandatoryEncodingInspection.html @@ -0,0 +1,18 @@ + + +

      报告 Python 2 中缺少的编码注释。

      +

      示例:

      +
      +class Book(object):
      +    def __init__(self):
      +        pass
      +
      +

      应用快速修复后,将添加缺少的注释:

      +
      +# coding=utf-8
      +class Book(object):
      +    def __init__(self):
      +        pass
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyMethodFirstArgAssignmentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyMethodFirstArgAssignmentInspection.html new file mode 100644 index 000000000..508620d8e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyMethodFirstArgAssignmentInspection.html @@ -0,0 +1,14 @@ + + +

      报告第一个形参(如 selfcls)在方法中重新赋值的情况。 + 因为在大多数情况下,这种重新赋值中没有目标,所以 IDE 会指示错误。

      +

      示例:

      +
      +class Account:
      +    def calc(self, balance):
      +        if balance == 0:
      +            self = balance
      +        return self
      +
      +

      修复方法可以是检查和修改算法,以确保有必要进行这样的重新赋值。 如果一切都正确无误,可以调用此代码的意图操作,并选择忽略警告。

      + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyMethodMayBeStaticInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyMethodMayBeStaticInspection.html new file mode 100644 index 000000000..767b12e84 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyMethodMayBeStaticInspection.html @@ -0,0 +1,27 @@ + + +

      报告任何无需创建类实例并且可以设置为 static 的方法。

      +

      示例:

      +
      +class MyClass(object):
      +    def my_method(self, x):
      +        print(x)
      +
      +

      如果应用从方法中生成函数快速修复,代码将变为:

      +
      +def my_method(x):
      +    print(x)
      +
      +
      +class MyClass(object):
      +    pass
      +
      +

      如果选择将方法设为 static 快速修复,将添加 @staticmethod 装饰器:

      +
      +class MyClass(object):
      +    @staticmethod
      +    def my_method(x):
      +        print(x)
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyMethodOverridingInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyMethodOverridingInspection.html new file mode 100644 index 000000000..80037299b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyMethodOverridingInspection.html @@ -0,0 +1,19 @@ + + +

      报告重写方法签名的不一致。

      + +

      示例:

      +
      +class Book:
      +    def add_title(self):
      +        pass
      +
      +
      +class Novel(Book):
      +    def add_title(self, text):
      +        pass
      +
      + +

      Novel 类中的 add_title 方法的形参与 Book 类中指定的方法签名不匹配。 IDE 提议的修复方法是应用“更改签名”重构。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyMethodParametersInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyMethodParametersInspection.html new file mode 100644 index 000000000..99628f3bd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyMethodParametersInspection.html @@ -0,0 +1,28 @@ + + +

      报告缺少通常命名为 self 的第一个形参的方法。

      +

      示例:

      +
      +class Movie:
      +
      +   def show():
      +       pass
      +
      +

      应用快速修复后,代码变为:

      +
      +class Movie:
      +
      +   def show(self):
      +       pass
      +
      +

      检查还报告类方法中的命名问题。

      +

      示例:

      +
      +class Movie:
      +    @classmethod
      +    def show(abc):
      +        pass
      +
      +

      由于类方法的第一个形参应当为 cls,所以 IDE 提供了快速修复来对其重命名。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyMissingConstructorInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyMissingConstructorInspection.html new file mode 100644 index 000000000..52f2b3f92 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyMissingConstructorInspection.html @@ -0,0 +1,28 @@ + + +

      报告类中缺少对 super 构造函数进行调用的情况。

      +

      示例:

      +
      +class Fruit:
      +    def __init__(self):
      +        pass
      +
      +
      +class Pear(Fruit):
      +    def __init__(self):
      +        pass
      +
      +

      Pear 类在 __init__ 方法中应有 super 调用。

      +

      应用快速修复后,代码变为:

      +
      +class Fruit:
      +    def __init__(self):
      +        pass
      +
      +
      +class Pear(Fruit):
      +    def __init__(self):
      +        super().__init__()
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyMissingOrEmptyDocstringInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyMissingOrEmptyDocstringInspection.html new file mode 100644 index 000000000..66449bda6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyMissingOrEmptyDocstringInspection.html @@ -0,0 +1,27 @@ + + +

      报告缺失的和空的 docstring。

      +

      缺失 docstring 的示例

      +
      +def demo(a):
      +    c = a ** 2
      +
      +

      空 docstring 的示例

      +
      +def demo(a):
      +    """
      +    """
      +    c = a ** 2
      +
      +

      应用快速修复后,这段代码变为:

      +
      +def demo(a):
      +    """
      +
      +    :param a:
      +    """
      +    c = a ** 2
      +
      +

      您需要提供一些有关所生成模板中的形参的详细信息。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyMissingTypeHintsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyMissingTypeHintsInspection.html new file mode 100644 index 000000000..2d5388fbd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyMissingTypeHintsInspection.html @@ -0,0 +1,6 @@ + + +

      报告缺失的采用其中一种或两种格式的函数声明的类型提示:形参注解或类型注释。

      +

      如果希望检查从运行时收集的类型或推断的类型,请选中仅当类型已知时复选框。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyNamedTupleInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyNamedTupleInspection.html new file mode 100644 index 000000000..73a9dd309 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyNamedTupleInspection.html @@ -0,0 +1,25 @@ + + +

      报告 typing.NamedTuple 的无效定义。

      +

      示例:

      +
      +import typing
      +
      +
      +class FullName(typing.NamedTuple):
      +    first: str
      +    last: str = ""
      +    middle: str
      +
      +

      修复方法是将有默认值的字段放在没有默认值的字段后面:

      +
      +import typing
      +
      +
      +class FullName(typing.NamedTuple):
      +    first: str
      +    middle: str
      +    last: str = ""
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyNestedDecoratorsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyNestedDecoratorsInspection.html new file mode 100644 index 000000000..d1ecf99ae --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyNestedDecoratorsInspection.html @@ -0,0 +1,23 @@ + + +

      报告嵌套装饰器的问题。 此检查高亮显示先于另一个装饰器应用 classmethodstaticmethod 的情况。

      +

      示例:

      +
      +def innocent(f):
      +    return f
      +
      +
      +class A:
      +    @innocent  # 装饰器不会收到预期的可调用对象
      +    @classmethod
      +    def f2(cls):
      +        pass
      +
      +    @innocent  # 装饰器不会收到预期的可调用对象
      +    @staticmethod
      +    def f1():
      +        pass
      +
      +

      IDE 提议的快速修复是移除此装饰器。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyNonAsciiCharInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyNonAsciiCharInspection.html new file mode 100644 index 000000000..058c68714 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyNonAsciiCharInspection.html @@ -0,0 +1,20 @@ + + +

      报告 Python 2 中的文件包含非 ASCII 字符且顶部没有编码声明的情况。

      +

      示例:

      +
      +class A(object):
      +# №5
      +    def __init__(self):
      +        pass
      +
      +

      在本例中,IDE 报告了注释中有非 ASCII 符号以及缺少编码声明的情况。 应用建议的快速修复以添加缺少的编码声明:

      +
      +# coding=utf-8
      +class A(object)
      +# №5
      +    def __init__(self):
      +        pass
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyNoneFunctionAssignmentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyNoneFunctionAssignmentInspection.html new file mode 100644 index 000000000..9fdd05153 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyNoneFunctionAssignmentInspection.html @@ -0,0 +1,16 @@ + + +

      报告使用不返回任何内容的函数进行赋值的情况。

      +此检查与 pylint 检查 E1111 相似。 +

      +

      示例:

      +
      +def just_print():
      +    print("Hello!")
      +
      +
      +action = just_print()
      +
      +

      IDE 提议的快速修复是移除此赋值。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyOldStyleClassesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyOldStyleClassesInspection.html new file mode 100644 index 000000000..29f36244d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyOldStyleClassesInspection.html @@ -0,0 +1,5 @@ + + +

      报告老式类中出现的新式类特性。 这项检查高亮显示老式类中的 __slots____getattribute__super()

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyOverloadsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyOverloadsInspection.html new file mode 100644 index 000000000..ccfed3486 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyOverloadsInspection.html @@ -0,0 +1,23 @@ + + +

      报告常规 Python 文件中的重载放置在实现之后或其签名与实现不兼容的情况。

      +

      示例:

      +
      +from typing import overload
      +
      +
      +@overload
      +def foo(p1, p2): # 重载签名不兼容实现
      +    pass
      +
      +
      +@overload
      +def foo(p1): # 重载签名不兼容实现
      +    pass
      +
      +
      +def foo(p1, p2, p3):
      +    print(p1, p2, p3)
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyPackageRequirementsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyPackageRequirementsInspection.html new file mode 100644 index 000000000..35b3e48d1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyPackageRequirementsInspection.html @@ -0,0 +1,9 @@ + + +

      + 报告需求文件 (例如 requirements.txtPipfile) 中提及但未安装的软件包,或已导入但需求文件中未提及的软件包。

      +

      + IDE 显示快速修复横幅,以便您一键安装缺失的软件包。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyPep8Inspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyPep8Inspection.html new file mode 100644 index 000000000..f0c602b76 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyPep8Inspection.html @@ -0,0 +1,6 @@ + + +

      通过运行绑定的 pycodestyle.py 工具报告违反 PEP 8 编码风格指南的情况。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyPep8NamingInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyPep8NamingInspection.html new file mode 100644 index 000000000..ca76eb912 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyPep8NamingInspection.html @@ -0,0 +1,22 @@ + + +

      报告违反 PEP8 命名惯例的情况。

      +

      示例:

      +
      +class mammalia(object):
      +    extremities = 4
      +
      +    def feeds(self):
      +        print("milk")
      +
      +

      在这段代码中,IDE 提议将 mammalia 重命名为 Mammalia。 + 应用快速修复后,代码变为:

      +
      +class Mammalia(object):
      +    extremities = 4
      +
      +    def feeds(self):
      +        print("milk")
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyPropertyAccessInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyPropertyAccessInspection.html new file mode 100644 index 000000000..badb2e966 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyPropertyAccessInspection.html @@ -0,0 +1,26 @@ + + +报告对属性访问不当的情况: +
        +
      • 设置只读属性
      • +
      • 读取只写属性
      • +
      • 删除了不可删除的属性
      • +
      +

      示例:

      +
      +class MyClass:
      +    @property
      +    def read_only(self): return None
      +
      +    def __write_only_setter(self, value): pass
      +
      +    write_only = property(None, __write_only_setter)
      +
      +
      +a = MyClass()
      +a.read_only = 10 # 无法设置属性
      +del a.read_only # 无法删除属性
      +print(a.write_only) # 无法读取属性
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyPropertyDefinitionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyPropertyDefinitionInspection.html new file mode 100644 index 000000000..d5027434a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyPropertyDefinitionInspection.html @@ -0,0 +1,24 @@ + + +

      报告 property() 的实参和用 @property 注解的函数的问题。

      +
      +class C:
      +    @property
      +    def abc(self):  # Getter 应返回或生成某些内容
      +        pass
      +
      +    @abc.setter
      +    def foo(self, value):  # 函数名称与装饰器不匹配
      +        pass
      +
      +    @abc.setter
      +    def abc(self, v1, v2):  # Setter 签名应为 (self, value)
      +        pass
      +
      +    @abc.deleter
      +    def abc(self, v1):  # Deleter 签名应为 (self)
      +        pass
      +
      +

      快速修复提议更新形参。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyProtectedMemberInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyProtectedMemberInspection.html new file mode 100644 index 000000000..4fe4d6eec --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyProtectedMemberInspection.html @@ -0,0 +1,19 @@ + + +

      报告 protected 成员在类、定义其的类的后代或模块的外部访问的情况。

      +
      +class Foo:
      +    def _protected_method(self):
      +        pass
      +
      +
      +class Bar(Foo):
      +    def public_method(self):
      +        self._protected_method()
      +
      +
      +foo = Foo()
      +foo._protected_method() # 访问 protected 方法
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyProtocolInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyProtocolInspection.html new file mode 100644 index 000000000..30f2f3b1a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyProtocolInspection.html @@ -0,0 +1,24 @@ + + +

      报告 PEP-544 中引入的协议的无效定义和用法。

      +

      示例:

      +
      +from typing import Protocol
      +
      +
      +class MyProtocol(Protocol):
      +    def method(self, p: int) -> str:
      +        pass
      +
      +
      +class MyClass(MyProtocol):
      +    def method(self, p: str) -> int: # 'method' 的类型不兼容 'MyProtocol'
      +        pass
      +
      +
      +class MyAnotherProtocol(MyClass, Protocol): # 协议的所有父类必须为协议
      +    pass
      +
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyRedeclarationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyRedeclarationInspection.html new file mode 100644 index 000000000..1e66bc387 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyRedeclarationInspection.html @@ -0,0 +1,14 @@ + + +

      报告对中间未使用的名称的无条件重新声明。

      +

      示例:

      +
      +def x(): pass
      +
      +
      +x = 2
      +
      +

      它适用于函数和类声明以及顶层赋值。

      +

      在显示警告时,您可以尝试进行推荐的操作,例如可能会提示您重命名变量。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyRedundantParenthesesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyRedundantParenthesesInspection.html new file mode 100644 index 000000000..579405b91 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyRedundantParenthesesInspection.html @@ -0,0 +1,6 @@ + + +

      报告表达式中冗余的圆括号。

      +

      IDE 提供用于移除冗余圆括号的快速修复操作。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyRelativeImportInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyRelativeImportInspection.html new file mode 100644 index 000000000..cee340624 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyRelativeImportInspection.html @@ -0,0 +1,6 @@ + + +

      报告纯目录(例如既不包含 __init__.py 也不显式标记为命名空间软件包的目录)中相对 import 的用法。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyReturnFromInitInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyReturnFromInitInspection.html new file mode 100644 index 000000000..8402d6074 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyReturnFromInitInspection.html @@ -0,0 +1,18 @@ + + +

      + 报告位于类的 __init__ 方法中的返回值的 return 语句。 +

      +

      示例:

      +
      +class Sum:
      +    def __init__(self, a, b):
      +        self.a = a
      +        self.b = b
      +        self.sum = a + b
      +        return self.sum
      +
      +

      构造函数不应返回任何值。 __init__ 方法应只初始化新对象实例成员的值。

      +

      IDE 提议的快速修复是移除 return 语句。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PySetFunctionToLiteralInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PySetFunctionToLiteralInspection.html new file mode 100644 index 000000000..ac85e9daf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PySetFunctionToLiteralInspection.html @@ -0,0 +1,17 @@ + + +

      报告对可以替换为 set 文字的 set 函数的调用。

      +

      示例:

      +
      +def do_mult(a, b):
      +    c = a * b
      +    return set([c, a, b])
      +
      +

      应用快速修复后,代码变为:

      +
      +def do_mult(a, b):
      +    c = a * b
      +    return {c, a, b}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyShadowingBuiltinsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyShadowingBuiltinsInspection.html new file mode 100644 index 000000000..02f8852bd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyShadowingBuiltinsInspection.html @@ -0,0 +1,12 @@ + + +

      报告隐藏的内置名称,例如 lenlist

      +

      示例:

      +
      +def len(a, b, c):
      +    d = a + b + c
      +    return d
      +
      +

      在此代码段中,使用了 len 内置名称。 IDE 提议的修复方式是应用重命名重构。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyShadowingNamesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyShadowingNamesInspection.html new file mode 100644 index 000000000..5ca9ab45f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyShadowingNamesInspection.html @@ -0,0 +1,12 @@ + + +

      报告在外部范围中定义的名称被隐藏。

      +

      示例:

      +
      +def outer(p):
      +    def inner(p):
      +        pass
      +
      +

      IDE 提议的快速修复是移除形参或重命名形参。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PySimplifyBooleanCheckInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PySimplifyBooleanCheckInspection.html new file mode 100644 index 000000000..88a4642ff --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PySimplifyBooleanCheckInspection.html @@ -0,0 +1,17 @@ + + +

      报告与布尔文字的相等比较。

      +

      示例:

      +
      +def func(s):
      +    if s.isdigit() == True:
      +        return int(s)
      +
      +

      应用快速修复后,这段代码将简化为:

      +
      +def func(s):
      +    if s.isdigit():
      +        return int(s)
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PySingleQuotedDocstringInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PySingleQuotedDocstringInspection.html new file mode 100644 index 000000000..862e7e39e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PySingleQuotedDocstringInspection.html @@ -0,0 +1,17 @@ + + +

      报告不符合三个双引号引用字符串格式的 docstring。

      +

      示例:

      +
      +def calc(self, balance=0):
      +    'param: balance'
      +    self.balance = balance
      +
      +

      应用快速修复后,代码变为:

      +
      +def calc(self, balance=0):
      +    """param: balance"""
      +    self.balance = balance
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyStatementEffectInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyStatementEffectInspection.html new file mode 100644 index 000000000..862d9f13a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyStatementEffectInspection.html @@ -0,0 +1,15 @@ + + +

      报告不起任何作用的语句。

      +

      示例:

      +
      +class Car:
      +    def __init__(self, speed=0):
      +        self.speed = speed
      +        self.time # 不起任何作用
      +
      +2 + 3 # 不起任何作用
      +
      +

      在本例中,您可以向 Car 类添加字段 time,或者为有问题的语句引入变量。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyStringFormatInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyStringFormatInspection.html new file mode 100644 index 000000000..1ea5a8c2b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyStringFormatInspection.html @@ -0,0 +1,18 @@ + + +

      报告字符串格式化操作中的错误。

      +

      示例 1:

      +
      +"Hello {1}".format("people")
      +
      +

      示例 2:

      +
      +def bar():
      +    return 1
      +
      +
      +"%s %s" % bar()
      +
      +

      修复方法是重写字符串格式化片段,以遵守格式化语法

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyStubPackagesAdvertiser.html b/original-plugin-raw/zh/inspectionDescriptions/PyStubPackagesAdvertiser.html new file mode 100644 index 000000000..12a56dbb2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyStubPackagesAdvertiser.html @@ -0,0 +1,9 @@ + + +

      报告存根软件包的可用性。

      +

      + 存根软件包是指包含相应运行时软件包的类型信息的软件包。 +

      +

      使用存根软件包可以确保为相应的 Python 软件包提供更好的编码辅助。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyStubPackagesCompatibilityInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyStubPackagesCompatibilityInspection.html new file mode 100644 index 000000000..63325c07b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyStubPackagesCompatibilityInspection.html @@ -0,0 +1,6 @@ + + +

      报告不支持相应运行时软件包版本的存根软件包。

      +

      存根软件包包含某些运行时软件包的类型信息。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PySuperArgumentsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PySuperArgumentsInspection.html new file mode 100644 index 000000000..2ba70e35c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PySuperArgumentsInspection.html @@ -0,0 +1,26 @@ + + +

      报告对 super(A, B) 的任何调用不符合以下要求的情况:

      +
        +
      • BA 的实例
      • +
      • BA 的子类
      • +
      +

      示例:

      +
      +class Figure:
      +    def color(self):
      +        pass
      +
      +
      +class Rectangle(Figure):
      +    def color(self):
      +        pass
      +
      +
      +class Square(Figure):
      +    def color(self):
      +        return super(Rectangle, self).color() # Square 不是 Rectangle 的子类
      +
      +

      作为修复,您可以令 SquareRectangle 类的实例。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyTestParametrizedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyTestParametrizedInspection.html new file mode 100644 index 000000000..d65fd8c1d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyTestParametrizedInspection.html @@ -0,0 +1,5 @@ + + +

      报告用 @pytest.mark.parametrize 装饰,但没有实参用于接受装饰器形参的函数。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyTrailingSemicolonInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyTrailingSemicolonInspection.html new file mode 100644 index 000000000..7d716609e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyTrailingSemicolonInspection.html @@ -0,0 +1,17 @@ + + +

      报告语句中的尾随分号。

      +

      示例:

      +
      +def my_func(a):
      +    c = a ** 2;
      +    return c
      +
      +

      IDE 提供移除尾随分号的快速修复。 应用后,代码变为:

      +
      +def my_func(a):
      +    c = a ** 2
      +    return c
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyTupleAssignmentBalanceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyTupleAssignmentBalanceInspection.html new file mode 100644 index 000000000..36655a65a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyTupleAssignmentBalanceInspection.html @@ -0,0 +1,11 @@ + + +

      报告右侧的表达式数量和左侧目标数量不相同的情况。

      +

      示例:

      +
      +t = ('red', 'blue', 'green', 'white')
      +(c1, c2, c3) = t
      +
      +

      可以修改高亮显示的代码段以恢复元组平衡来进行快速修复。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyTupleItemAssignmentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyTupleItemAssignmentInspection.html new file mode 100644 index 000000000..db63402e5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyTupleItemAssignmentInspection.html @@ -0,0 +1,10 @@ + + +

      报告对元组项的赋值。

      +
      +t = ('red', 'blue', 'green', 'white')
      +t[3] = 'black'
      +
      +

      快速修复提议将此元组替换为列表。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyTypeCheckerInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyTypeCheckerInspection.html new file mode 100644 index 000000000..458877481 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyTypeCheckerInspection.html @@ -0,0 +1,24 @@ + + +

      报告函数调用表达式、目标和返回值中的类型错误。 在动态类型语言中,少数情况下可能会这样。

      +

      在 docstring 或 Python 3 函数注解中可以指定函数形参的类型。

      +

      示例:

      +
      +def foo() -> int:
      +    return "abc" # 应为 int,得到的是 str
      +
      +
      +a: str
      +a = foo() # 应为 str,得到的是 int
      +
      +

      进行快速修复可以修改有问题的类型:

      +
      +def foo() -> str:
      +    return "abc"
      +
      +
      +a: str
      +a = foo()
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyTypeHintsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyTypeHintsInspection.html new file mode 100644 index 000000000..8fbab07d9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyTypeHintsInspection.html @@ -0,0 +1,22 @@ + + +

      报告类型提示的无效用法。

      +

      示例:

      +
      +from typing import TypeVar
      +
      +T0 = TypeVar('T1') # 'TypeVar' 的实参必须为 'T0'
      +
      +
      +def b(p: int) -> int:  # 注释和注解中都指定了类型
      +    # type: (int) -> int
      +    pass
      +
      +
      +def c(p1, p2): # 类型签名的实参太多
      +    # type: (int) -> int
      +    pass
      +
      +

      可以进行的快速修复提议各种各样的操作。 您可以重命名、移除或移动有问题的元素。 也可以手动修改类型声明,以确保不显示警告。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyTypedDictInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyTypedDictInspection.html new file mode 100644 index 000000000..cc9cbfbfe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyTypedDictInspection.html @@ -0,0 +1,24 @@ + + +

      报告 TypedDict 无效的定义和用法。

      +

      示例:

      +
      +from typing import TypedDict
      +
      +
      +class Movie(TypedDict):
      +    name: str
      +    year: int
      +    rate: int = 10  # 右侧值不受支持
      +
      +    def method(self): # TypedDict 中的语句无效
      +        pass
      +
      +
      +m = Movie(name="name", year=1000, rate=9)
      +print(m["director"])  # 'Movie' 中没有 'director' 键
      +del m["name"]  # 无法删除 'name' 键
      +m["year"] = "1001"  # 应为 'int',得到的是 'str'
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyUnboundLocalVariableInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyUnboundLocalVariableInspection.html new file mode 100644 index 000000000..90444b596 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyUnboundLocalVariableInspection.html @@ -0,0 +1,19 @@ + + +

      报告赋值前引用的局部变量。

      +

      示例:

      +
      +x = 0
      +if x > 10:
      +    b = 3
      +print(b)
      +
      +

      IDE 报告print(b) 的问题。 可能的修复方法是:

      +
      +x = 0
      +if x > 10:
      +    b = 3
      +    print(b)
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyUnnecessaryBackslashInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyUnnecessaryBackslashInspection.html new file mode 100644 index 000000000..6c677af6b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyUnnecessaryBackslashInspection.html @@ -0,0 +1,11 @@ + + +

      报告在 ()[]{} 中隐式续行位置处的反斜杠。

      +

      示例:

      +
      +a = ('first', \
      +     'second', 'third')
      +
      +

      应用快速修复后,将移除冗余的反斜杠。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyUnreachableCodeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyUnreachableCodeInspection.html new file mode 100644 index 000000000..8c3934efd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyUnreachableCodeInspection.html @@ -0,0 +1,12 @@ + + +

      报告通常无法到达的代码段。

      +

      示例:

      +
      +if True:
      +    print('Yes')
      +else:
      +    print('No')
      +
      +

      修复方法是检查和修改算法,确保其实现预期逻辑。

      + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyUnresolvedReferencesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyUnresolvedReferencesInspection.html new file mode 100644 index 000000000..2d96d4717 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyUnresolvedReferencesInspection.html @@ -0,0 +1,13 @@ + + +

      报告代码中无法解析的引用。

      +

      在动态类型语言中,少数情况下可能会这样。

      +

      如果引用类型未知,其特性不会被高亮显示为未解析,即便它应该被高亮显示:

      +
      +def print_string(s):
      +  print(s.abc())
      +
      +

      在这段代码中,s 始终为字符串,abc 应高亮显示为未解析状态。 但是,s 类型被推断为 Any,并且未报告任何警告。

      +

      IDE 提供快速修复操作来即时添加缺少的引用。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyUnresolvedTmsLinkInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyUnresolvedTmsLinkInspection.html new file mode 100644 index 000000000..6c0a8e3b2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyUnresolvedTmsLinkInspection.html @@ -0,0 +1,11 @@ + + +报告可能无效的 TMS 链接。 +

      表示 ID 拼写错误和可能已移除的 TMS 元素的链接。

      +

      可能的原因:

      +
        +
      • 未加载 TMS 项目中的数据。
      • +
      • 在加载的 TMS 元素 ID 中找不到指定 ID
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyUnsupportedFeaturesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyUnsupportedFeaturesInspection.html new file mode 100644 index 000000000..76429fcf5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyUnsupportedFeaturesInspection.html @@ -0,0 +1,5 @@ + + +此检查检测当前 Python 版本不支持的语言功能的用法 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyUnusedLocalInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyUnusedLocalInspection.html new file mode 100644 index 000000000..e99f754f9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyUnusedLocalInspection.html @@ -0,0 +1,6 @@ + + +

      + 报告在本地定义但未使用函数中名称的局部变量、形参和函数。 +

      + diff --git a/original-plugin-raw/zh/inspectionDescriptions/PyramidSetupInspection.html b/original-plugin-raw/zh/inspectionDescriptions/PyramidSetupInspection.html new file mode 100644 index 000000000..c87a404ab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/PyramidSetupInspection.html @@ -0,0 +1,6 @@ + + +

      报告没有为 Pyramid 项目执行 python setup.py develop 命令的情况。

      +

      您需要执行此命令,来安装新创建的项目以供开发。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/QodanaServiceMessage.html b/original-plugin-raw/zh/inspectionDescriptions/QodanaServiceMessage.html new file mode 100644 index 000000000..47596ac54 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/QodanaServiceMessage.html @@ -0,0 +1,5 @@ + + +报告 Qodana 服务消息(例如由于报告的大量问题而暂停特定检查)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/QsPrivateBeanMembersInspection.html b/original-plugin-raw/zh/inspectionDescriptions/QsPrivateBeanMembersInspection.html new file mode 100644 index 000000000..c3dea86e5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/QsPrivateBeanMembersInspection.html @@ -0,0 +1,11 @@ + + +

      + 报告注入的字段、观察者方法和具有 private 访问权限的 Bean 构造函数。 +

      +

      + CDI 成员的 private 访问级别增加了设置 Bean 所需的反射操作量。 + 改用 package-private 或 protected 访问级别。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/QsProperties.html b/original-plugin-raw/zh/inspectionDescriptions/QsProperties.html new file mode 100644 index 000000000..fe91a0773 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/QsProperties.html @@ -0,0 +1,10 @@ + + +

      + 报告 Quarkus .properties 配置文件中的语法错误、类型错误、已弃用和无法解析的键和值。 +

      +

      + 还高亮显示语法和类型错误。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/QsUndeclaredPathMimeTypesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/QsUndeclaredPathMimeTypesInspection.html new file mode 100644 index 000000000..a81b12184 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/QsUndeclaredPathMimeTypesInspection.html @@ -0,0 +1,13 @@ + + +

      + 报告没有 @Produces@Consumes 注解的端点方法。 +

      +

      + Quarkus 会分析这些注解并将包含在原生可执行文件中的 JAX-RS 提供程序的数量限制为应用程序所需的最少数量。 这减少了原生可执行文件的大小。 +

      +

      + 使用 @Produces@Consumes(如果 HTTP 方法支持)注解方法或整个类,并指定目标 MIME 类型。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/QsYaml.html b/original-plugin-raw/zh/inspectionDescriptions/QsYaml.html new file mode 100644 index 000000000..c84782485 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/QsYaml.html @@ -0,0 +1,5 @@ + + +

      报告 Quarkus 应用程序 YAML 配置文件中已弃用和无法解析的键和值。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Query_bound_parameters.html b/original-plugin-raw/zh/inspectionDescriptions/Query_bound_parameters.html new file mode 100644 index 000000000..fda778d4e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Query_bound_parameters.html @@ -0,0 +1,5 @@ + + +

      报告包含绑定形参但未将必要形参传递给查询方法调用的 GQL 查询。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/Query_index_required.html b/original-plugin-raw/zh/inspectionDescriptions/Query_index_required.html new file mode 100644 index 000000000..0935282fe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Query_index_required.html @@ -0,0 +1,7 @@ + + +

      报告未在 index.yaml 中定义索引的 GQL 查询。 + 在生产服务器上进行此类查询将会失败。 + 通过快速修复可以添加必要的索引定义。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/Query_restricted.html b/original-plugin-raw/zh/inspectionDescriptions/Query_restricted.html new file mode 100644 index 000000000..6e79bf99f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Query_restricted.html @@ -0,0 +1,7 @@ + + +

      报告不符合 Google App Engine 服务器上 +允许的查询限制的 GQL 查询。

      +有关详细信息,请参阅 App Engine 文档。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/QuestionableName.html b/original-plugin-raw/zh/inspectionDescriptions/QuestionableName.html new file mode 100644 index 000000000..c15e7bd30 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/QuestionableName.html @@ -0,0 +1,15 @@ + + +报告名称有问题,而不是真正的描述性名称的变量、方法或类。 +此类名称无助于理解代码,而且很可能是临时创建,但后来被遗忘了。 +

      示例:

      +
      
      +  int aa = 42;
      +
      +

      仅在编辑器中建议重命名快速修复。

      + +

      + 使用该选项可以列出应被报告的名称。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/QuickFixGetFamilyNameViolation.html b/original-plugin-raw/zh/inspectionDescriptions/QuickFixGetFamilyNameViolation.html new file mode 100644 index 000000000..d483c8176 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/QuickFixGetFamilyNameViolation.html @@ -0,0 +1,8 @@ + + +报告使用上下文信息的 QuickFix#getFamilyName()。 +

      + 此方法不得使用任何非静态信息。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/R8IgnoredFlags.html b/original-plugin-raw/zh/inspectionDescriptions/R8IgnoredFlags.html new file mode 100644 index 000000000..916cb23c0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/R8IgnoredFlags.html @@ -0,0 +1,5 @@ + + +报告被 R8 忽略的标志。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RAssignmentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RAssignmentInspection.html new file mode 100644 index 000000000..d9fbe8676 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RAssignmentInspection.html @@ -0,0 +1,21 @@ + + +

      报告将 '=' 用作赋值运算符的情况,并建议改用 '<-'

      +

      + 示例: +

      +

      + + a = 10 + +

      +

      + 当您应用该快速修复时,代码变为: +

      +

      + + a <- 10 + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RBooleanExpressionSimplifier.html b/original-plugin-raw/zh/inspectionDescriptions/RBooleanExpressionSimplifier.html new file mode 100644 index 000000000..d15d1a47c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RBooleanExpressionSimplifier.html @@ -0,0 +1,8 @@ + + +

      报告布尔表达式中的冗余。

      +

      if (x && FALSE) {}

      +

      当您应用该快速修复时,代码变为:

      +

      if (FALSE) {}

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RClosureAssignmentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RClosureAssignmentInspection.html new file mode 100644 index 000000000..778bc1de1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RClosureAssignmentInspection.html @@ -0,0 +1,9 @@ + + +

      报告 '<<-''->>' 作为赋值运算符的用法。

      + +

      示例

      : + +

      x <<- 12

      + +

      使用这些运算符会导致多个错误和代码混淆。 建议将其替换为 >-

      \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RCompareToNaInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RCompareToNaInspection.html new file mode 100644 index 000000000..5afdae578 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RCompareToNaInspection.html @@ -0,0 +1,17 @@ + + +

      报告 NA 常量在相等检查中的用法,并建议将其替换为 is.na 函数。

      +

      示例:

      +
      
      +if (a==NA){
      +  print ("a is not available!")
      +}
      +
      +

      当您应用该快速修复时,代码变为:

      +
      
      +if (is.na(a)){
      +  print ("a is not available!")
      +}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RDeprecatedDoubleStarts.html b/original-plugin-raw/zh/inspectionDescriptions/RDeprecatedDoubleStarts.html new file mode 100644 index 000000000..6c0ad1f71 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RDeprecatedDoubleStarts.html @@ -0,0 +1,13 @@ + + +

      报告 ** 弃用指数运算符的用法。 建议改用 ^。 +

      示例:

      +
      
      +x <- a + b**2
      +
      +

      当您应用该快速修复时,代码变为:

      +
      
      +x  <- a + b^2
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RDeprecatedSetClassArgsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RDeprecatedSetClassArgsInspection.html new file mode 100644 index 000000000..51a94370b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RDeprecatedSetClassArgsInspection.html @@ -0,0 +1,5 @@ + + +

      setCall 函数的 representationaccessversionS3methods 实参自 R 3.0.0 起已被弃用,应避免使用。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RDplyrBooleanOperatorInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RDplyrBooleanOperatorInspection.html new file mode 100644 index 000000000..555d39a7d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RDplyrBooleanOperatorInspection.html @@ -0,0 +1,17 @@ + + +

      报告 dplyr 表达式中 `&&` 和 `||` 运算的用法。

      +

      示例:

      +

      + + filter(diamonds, carat > 0.7 && depth > 62.0) + +

      +

      当您应用该快速修复时,代码变为:

      +

      + + filter(diamonds, carat > 0.7 & depth > 62.0) + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RDplyrCallToPipeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RDplyrCallToPipeInspection.html new file mode 100644 index 000000000..dfbe87d01 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RDplyrCallToPipeInspection.html @@ -0,0 +1,19 @@ + + +

      报告嵌套的 dplyr 调用并建议将其替换为管道。

      +

      示例:

      +

      + + summarise(filter(diamonds, depth > 62.0), mean = mean(carat)) + +

      +

      当您应用该快速修复时,代码变为:

      +

      + + diamonds %>% + filter(depth > 62.0) %>% + summarise(mean = mean(carat)) + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RInstanceOfVirtualS4ClassInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RInstanceOfVirtualS4ClassInspection.html new file mode 100644 index 000000000..4d926f40c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RInstanceOfVirtualS4ClassInspection.html @@ -0,0 +1,13 @@ + + +

      创建 VIRTUAL 类的对象时报告问题。

      +

      示例:

      +
      
      +setClass('MyClass', slots = c('aa', 'bb'), contains = "VIRTUAL")
      +new('MyClass')
      +
      +

      + VIRTUAL 类的最常见用法是类联合,即在调用 setClassUnion() 而不是调用 setClass() 时定义的虚拟类。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RMarkdownRequirements.html b/original-plugin-raw/zh/inspectionDescriptions/RMarkdownRequirements.html new file mode 100644 index 000000000..f2da13213 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RMarkdownRequirements.html @@ -0,0 +1,5 @@ + + +

      报告缺少 R Markdown 所需的 rmarkdownknitr 库。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RMissingPackage.html b/original-plugin-raw/zh/inspectionDescriptions/RMissingPackage.html new file mode 100644 index 000000000..56cd21626 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RMissingPackage.html @@ -0,0 +1,6 @@ + + +

      在导入未安装在 R 解释器上的软件包时报告问题。 + 相应的快速修复将安装缺失的软件包。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RMissingS4ClassNameInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RMissingS4ClassNameInspection.html new file mode 100644 index 000000000..19562f06f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RMissingS4ClassNameInspection.html @@ -0,0 +1,5 @@ + + +

      报告类名和不可用插槽类型中的空 S4 类名字符

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RNamingConventionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RNamingConventionInspection.html new file mode 100644 index 000000000..8c2ac0b29 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RNamingConventionInspection.html @@ -0,0 +1,23 @@ + + +

      报告不适当的属性名称。

      +

      变量和函数名称应仅使用小写字母、数字和下划线。 + 使用下划线(所谓的形蛇形写法)来分隔名称中的单词。 + 在函数名称和 S3 方法中也使用点。

      +

      + 有关详细信息,请参阅 tidyverse 样式指南。 +

      +

      示例:

      +

      + + camelCaseVariable <- 10 + +

      +

      当您应用该快速修复时,此代码变为:

      +

      + + camel_case_variable <- 10 + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RPasteToPaste0Inspection.html b/original-plugin-raw/zh/inspectionDescriptions/RPasteToPaste0Inspection.html new file mode 100644 index 000000000..95f558b52 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RPasteToPaste0Inspection.html @@ -0,0 +1,20 @@ + + +

      报告 'paste' 函数中的空分隔符。 + 该快速修复会将 'paste' 调用替换为 'paste0' 函数。 +

      示例:

      +

      + + paste("a", "b", sep = '') + +

      +

      + 当您应用该快速修复时,代码变为: +

      +

      + + paste0("a", "b") + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RRedundantConcatenationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RRedundantConcatenationInspection.html new file mode 100644 index 000000000..05d06ecec --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RRedundantConcatenationInspection.html @@ -0,0 +1,23 @@ + + +报告带有零个或一个实参的 c 调用。 该检查会建议移除冗余调用。 +

      示例:

      +
      
      +    a <- c()
      +
      +

      +
      
      +    c(10) + 10
      +
      +

      + 当您应用快速修复时,代码变为: +

      +
      
      +    a <- NULL
      +
      +

      +
      
      +    10 + 10
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RRedundantSemicolonInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RRedundantSemicolonInspection.html new file mode 100644 index 000000000..debcd9cb6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RRedundantSemicolonInspection.html @@ -0,0 +1,13 @@ + + +

      报告 R 中不需要的冗余分号 (;) 令牌。

      +

      示例:

      +
      
      +a  <- c();
      +
      +

      当您应用该快速修复时,代码变为:

      +
      
      +a  <- c()
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RStudioAPISourceMarkerInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RStudioAPISourceMarkerInspection.html new file mode 100644 index 000000000..4e3718d53 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RStudioAPISourceMarkerInspection.html @@ -0,0 +1,5 @@ + + +此检查用于添加来自 rstudioapi::sourceMarkers 调用的问题 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RTripleColonToDoubleColonInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RTripleColonToDoubleColonInspection.html new file mode 100644 index 000000000..91f28c20c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RTripleColonToDoubleColonInspection.html @@ -0,0 +1,19 @@ + + +

      报告将 ':::' 用作命名空间访问运算符的情况,并建议使用 '::'(如果可能)。

      +

      示例:

      +

      + + base:::print("Hello world!") + +

      +

      + 当您应用该快速修复时,代码变为: +

      +

      + + base::print("Hello world!") + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RUnknownS4ClassNameInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RUnknownS4ClassNameInspection.html new file mode 100644 index 000000000..759388e8c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RUnknownS4ClassNameInspection.html @@ -0,0 +1,5 @@ + + +

      报告在项目和库文件中找不到的类名

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RUnknownS4GenericInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RUnknownS4GenericInspection.html new file mode 100644 index 000000000..4900362b3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RUnknownS4GenericInspection.html @@ -0,0 +1,5 @@ + + +

      报告 S4 方法声明,在项目和库文件中找不到泛型函数

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RUnresolvedReference.html b/original-plugin-raw/zh/inspectionDescriptions/RUnresolvedReference.html new file mode 100644 index 000000000..07f60bce9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RUnresolvedReference.html @@ -0,0 +1,19 @@ + + +

      报告未解析的符号和函数引用。

      +

      示例:

      +
      
      +my_fahrenheit_to_celsius(40)
      +
      +

      my_fahrenheit_to_celsius 函数未定义,因此 IDE 会显示警告。 + 您应该添加缺少的声明。

      +

      可能的解决方案: +

      
      +my_fahrenheit_to_celsius  <- function(f_temp) {
      +  return((f_temp - 32) * 5 / 9)
      +}
      +
      +my_fahrenheit_to_celsius(40)
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RUnsafeSequenceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RUnsafeSequenceInspection.html new file mode 100644 index 000000000..1ba9b6580 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RUnsafeSequenceInspection.html @@ -0,0 +1,17 @@ + + +

      报告由冒号 (:) 生成的不安全序列,并建议将其替换为安全调用。

      +

      示例:

      +
      
      +    a <- 1:length(c)
      +    b <- 1:nrow(data.frame())
      +
      +

      + 当您应用快速修复时,代码变为: +

      +
      
      +    a <- seq_along(c)
      +    b <- seq_len(nrow(data.frame()))
      +  
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RUnusedParameter.html b/original-plugin-raw/zh/inspectionDescriptions/RUnusedParameter.html new file mode 100644 index 000000000..2ade07f2e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RUnusedParameter.html @@ -0,0 +1,18 @@ + + +

      报告函数体中未使用的函数形参。

      +

      示例:

      +
      
      +my_fahrenheit_to_celsius  <- function(f_temp) {
      +  return((temp - 32) * 5 / 9)
      +}
      +
      +

      修改高亮显示的代码段以确保使用或删除该形参。

      +

      可能的解决方案:

      +
      
      +my_fahrenheit_to_celsius  <- function(f_temp) {
      +  return((f_temp - 32) * 5 / 9)
      +}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RUnusedVariable.html b/original-plugin-raw/zh/inspectionDescriptions/RUnusedVariable.html new file mode 100644 index 000000000..f70708e6b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RUnusedVariable.html @@ -0,0 +1,19 @@ + + +

      报告当前范围内未使用的变量。 + 这些变量非必要,可以移除。

      +

      示例:

      +
      
      +my_func  <- function(a) {
      +  x  <- 3
      +  return (a^2)
      +}
      +
      +

      x 变量未使用,可以移除:

      +
      
      +my_func  <- function(a) {
      +  return (a^2)
      +}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RailsActionMailboxMissingProcess.html b/original-plugin-raw/zh/inspectionDescriptions/RailsActionMailboxMissingProcess.html new file mode 100644 index 000000000..ac9a4b781 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RailsActionMailboxMissingProcess.html @@ -0,0 +1,5 @@ + + +报告缺少 process 方法的邮箱。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RailsActionMailboxMissingRoutes.html b/original-plugin-raw/zh/inspectionDescriptions/RailsActionMailboxMissingRoutes.html new file mode 100644 index 000000000..399cc17dc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RailsActionMailboxMissingRoutes.html @@ -0,0 +1,5 @@ + + +报告没有路由指向它们的邮箱。 可以通过 ActionMailbox::Routing#routing 调用添加路由。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RailsChecklist05.html b/original-plugin-raw/zh/inspectionDescriptions/RailsChecklist05.html new file mode 100644 index 000000000..4763b8caa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RailsChecklist05.html @@ -0,0 +1,6 @@ + + +报告 findfind_by 在视图或视图帮助程序中的用法。 数据库交互应由控制器执行,并存储在变量中供视图访问。 +

      'Ruby on Rails Code Quality Checklist' 启发

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RailsI18nInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RailsI18nInspection.html new file mode 100644 index 000000000..8ae2d4384 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RailsI18nInspection.html @@ -0,0 +1,5 @@ + + +报告缺少翻译的 i18n 属性键的用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RailsParamDefResolve.html b/original-plugin-raw/zh/inspectionDescriptions/RailsParamDefResolve.html new file mode 100644 index 000000000..fca096557 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RailsParamDefResolve.html @@ -0,0 +1,6 @@ + + +报告方法调用中的意外形参值。 有些方法调用需要特定的符号、字符串或其他常量作为实参。 +例如,Object#send 将表示方法名称的符号作为第一个实参。 如果将其他内容作为第一个实参传递,则会发出警告。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RandomDoubleForRandomInteger.html b/original-plugin-raw/zh/inspectionDescriptions/RandomDoubleForRandomInteger.html new file mode 100644 index 000000000..49a136b88 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RandomDoubleForRandomInteger.html @@ -0,0 +1,23 @@ + + +报告对 java.util.Random.nextDouble() 的调用,这些调用用于通过将调用乘以一个系数并转换为整数来创建正整数。 +

      + 对于在一定范围内生成随机正整数,java.util.Random.nextInt(int) 更加简单和高效。 +

      +

      示例:

      +
      
      +  int getRandomInt() {
      +    return (int) ((new Random()).nextDouble() * SIZE);
      +  }
      +  
      +
      +

      在应用快速修复后:

      +
      
      +  int getRandomInt() {
      +    return (new Random()).nextInt(SIZE);
      +  }
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RangeToIndices.html b/original-plugin-raw/zh/inspectionDescriptions/RangeToIndices.html new file mode 100644 index 000000000..cff96ae1f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RangeToIndices.html @@ -0,0 +1,19 @@ + + +

      报告手动构建集合索引的范围,而不是使用 .indices

      + +

      示例:

      +
      
      +  var x: Seq[Int]
      +  Range(0, x.size)
      +  0 until x.size
      +  0.to(x.size - 1)
      +
      +

      在应用快速修复后:

      +
      
      +  var x: Seq[Int]
      +  x.indices
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RawUseOfParameterizedType.html b/original-plugin-raw/zh/inspectionDescriptions/RawUseOfParameterizedType.html new file mode 100644 index 000000000..84ec7d5d1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RawUseOfParameterizedType.html @@ -0,0 +1,26 @@ + + +报告类型形参被忽略的泛型类。 这种对泛型类型的原始使用在 Java 中虽然有效,但它违背了类型形参的用途,并且可能掩盖错误。 此检查反映出 javacrawtypes 警告。 +

      示例:

      +
      
      +//警告:形参化类 'List' 的原始使用
      +List list = new ArrayList<String>();
      +//创建了字符串列表,但也接受整数
      +list.add(1);
      +
      +
      
      +//无警告,因为在数组创建期间不可能提供类型实参
      +IntFunction<List<?>[]> fun = List[]::new;
      +
      + +

      配置检查:

      +
        +
      • 使用忽略新对象的构造选项,可忽略对象构造中使用的原始类型。
      • +
      • 使用忽略类型转换选项,可忽略类型转换中使用的原始类型。
      • +
      • 使用忽略类型形参无法编译的位置选项,可忽略类型形参编译失败的情况(例如创建数组或重写库方法的情况)。
      • +
      • 使用忽略重写方法的形参类型选项,可忽略重写方法的形参中使用的类型形参。
      • +
      • 使用在自动快速修复不可用时忽略选项,可忽略快速修复不可用的情况。
      • +
      +仅当项目或模块的语言级别为 5 或更高时,此检查才会报告。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RbenvGemsetsConfig.html b/original-plugin-raw/zh/inspectionDescriptions/RbenvGemsetsConfig.html new file mode 100644 index 000000000..fb3562ef6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RbenvGemsetsConfig.html @@ -0,0 +1,5 @@ + + +报告在项目 SDK 中找不到的 '.rbenv-gemsets' 中的 Gemset 以及在此项目根目录中找不到的局部 Gemset。 提供用于创建缺失的 Gemset 的快速修复。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RbsDuplicateDeclarations.html b/original-plugin-raw/zh/inspectionDescriptions/RbsDuplicateDeclarations.html new file mode 100644 index 000000000..5b9026d96 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RbsDuplicateDeclarations.html @@ -0,0 +1,11 @@ + + +报告类、模块、接口、常量、全局变量、类型别名和方法的重复声明。 + +
        +
      • 重复声明会生成 DuplicatedDeclarationError
      • +
      • 重复方法定义会生成 DuplicatedMethodDefinitionError
      • +
      • 重复接口方法定义会生成 DuplicatedInterfaceMethodDefinitionError
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RbsDuplicateParameter.html b/original-plugin-raw/zh/inspectionDescriptions/RbsDuplicateParameter.html new file mode 100644 index 000000000..ae43793ee --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RbsDuplicateParameter.html @@ -0,0 +1,6 @@ + + +报告方法、块和 proc 类型中的重复关键字参数。 +

      只识别每个关键字参数的第一个声明;忽略所有其他声明。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RbsDynamicTypeUsedInStaticContext.html b/original-plugin-raw/zh/inspectionDescriptions/RbsDynamicTypeUsedInStaticContext.html new file mode 100644 index 000000000..1d97eb683 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RbsDynamicTypeUsedInStaticContext.html @@ -0,0 +1,6 @@ + + +报告动态类型(instanceclassself)在静态上下文中的用法。 +

      在静态上下文中使用动态类型可能会令人混淆,因为该类型永远不会改变。 对于给定的上下文,最好使用静态等效项。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RbsIncorrectClassInclusionStatement.html b/original-plugin-raw/zh/inspectionDescriptions/RbsIncorrectClassInclusionStatement.html new file mode 100644 index 000000000..050ed1c25 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RbsIncorrectClassInclusionStatement.html @@ -0,0 +1,6 @@ + + +报告引用类的包含调用(includeprependextend)。 +

      包含调用仅允许引用模块或接口。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RbsIncorrectTypeArgumentCount.html b/original-plugin-raw/zh/inspectionDescriptions/RbsIncorrectTypeArgumentCount.html new file mode 100644 index 000000000..d68c0e423 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RbsIncorrectTypeArgumentCount.html @@ -0,0 +1,6 @@ + + +报告对类型参数数量不正确的泛型类型的引用。 +

      在没有传递正确数量的类型参数的情况下使用泛型类型是错误的,可以通过添加适当数量的类型参数或移除多余的类型参数来修复。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RbsIncorrectTypeVariableCount.html b/original-plugin-raw/zh/inspectionDescriptions/RbsIncorrectTypeVariableCount.html new file mode 100644 index 000000000..0b8b98a33 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RbsIncorrectTypeVariableCount.html @@ -0,0 +1,6 @@ + + +报告由于类型变量数量不匹配而导致的部分容器声明冲突。 +

      声明具有不同数量的类型变量的部分容器是错误的,可以通过添加适当数量的类型变量或移除多余的类型变量来修复。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RbsInvalidMethodOverload.html b/original-plugin-raw/zh/inspectionDescriptions/RbsInvalidMethodOverload.html new file mode 100644 index 000000000..f32d12f05 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RbsInvalidMethodOverload.html @@ -0,0 +1,6 @@ + + +报告无效的方法重载 (...)。 +

      方法重载只有在该方法恰好有一个其他非重载定义时才有效。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RbsLiteralClassReferenced.html b/original-plugin-raw/zh/inspectionDescriptions/RbsLiteralClassReferenced.html new file mode 100644 index 000000000..3f88a9d09 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RbsLiteralClassReferenced.html @@ -0,0 +1,6 @@ + + +报告对类型签名中的类 NilClassTrueClassFalseClass 的引用。 +

      这些类的用法非常冗长,可以替换为它们各自的文字:niltruefalse

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RbsModuleUsedAsSuperclass.html b/original-plugin-raw/zh/inspectionDescriptions/RbsModuleUsedAsSuperclass.html new file mode 100644 index 000000000..3f5e7973b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RbsModuleUsedAsSuperclass.html @@ -0,0 +1,6 @@ + + +报告超类子句中使用的模块。 +

      超类子句只允许引用类。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RbsSimplifiableBooleanUnion.html b/original-plugin-raw/zh/inspectionDescriptions/RbsSimplifiableBooleanUnion.html new file mode 100644 index 000000000..3dd530dcb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RbsSimplifiableBooleanUnion.html @@ -0,0 +1,6 @@ + + +报告可替换为 booltrue | false 用法。 +

      bool 关键字是 true | false 的简写形式,有助于提高可读性。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RbsUnnecessaryParentheses.html b/original-plugin-raw/zh/inspectionDescriptions/RbsUnnecessaryParentheses.html new file mode 100644 index 000000000..23e35d377 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RbsUnnecessaryParentheses.html @@ -0,0 +1,6 @@ + + +报告函数类型中不必要的圆括号(例如,def method: () -> untyped^() -> untyped)。 +

      无参数的函数不需要圆括号,可以安全地移除圆括号。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RbsUnresolvedReference.html b/original-plugin-raw/zh/inspectionDescriptions/RbsUnresolvedReference.html new file mode 100644 index 000000000..1df481687 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RbsUnresolvedReference.html @@ -0,0 +1,8 @@ + + +报告无法解析为任何声明的引用(例如,方法引用或常量引用)。 +

      由于拼写错误,经常会出现无法解析的引用,并且可能导致 +UnknownMethodAlias 和 + UnknownTypeName 等错误。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RbsUnusedInterface.html b/original-plugin-raw/zh/inspectionDescriptions/RbsUnusedInterface.html new file mode 100644 index 000000000..75dad0073 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RbsUnusedInterface.html @@ -0,0 +1,6 @@ + + +报告项目中未使用的接口。 +

      可以安全地移除未使用的接口。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RbsUnusedTypeAlias.html b/original-plugin-raw/zh/inspectionDescriptions/RbsUnusedTypeAlias.html new file mode 100644 index 000000000..0b77eb51b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RbsUnusedTypeAlias.html @@ -0,0 +1,6 @@ + + +报告项目中未使用的类型别名。 +

      可以安全地移除未使用的类型别名。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RbsUnusedTypeVariable.html b/original-plugin-raw/zh/inspectionDescriptions/RbsUnusedTypeVariable.html new file mode 100644 index 000000000..24ced7dd3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RbsUnusedTypeVariable.html @@ -0,0 +1,7 @@ + + +报告项目中未使用的容器和方法类型变量。 +

      可以安全地移除未使用的类型变量。

      +

      仅当容器恰好有一个声明时,才会检查容器类型变量。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReDoS.html b/original-plugin-raw/zh/inspectionDescriptions/ReDoS.html new file mode 100644 index 000000000..2811f48c1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReDoS.html @@ -0,0 +1,16 @@ + + + + +报告正则表达式中的指数回溯(可能导致匹配速度极慢)。 +如果能够以多种方式匹配单个字符串,则会发生指数回溯,导致出现指数运行时。 +指数回溯也称为正则表达式拒绝服务 (ReDoS)、灾难性回溯、爆炸性量词和指数匹配。 +此检查仅会检测有限形式的指数回溯,因此,没有出现警告并不能保证模式不包含指数回溯问题。 + + +

      + 2017.1 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsNullableInLambdaInTransform.html b/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsNullableInLambdaInTransform.html new file mode 100644 index 000000000..a2f32a3e5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsNullableInLambdaInTransform.html @@ -0,0 +1,24 @@ + + +

      报告可能在 Reactive Streams 链中返回 null 的转换操作。

      + +

      + Reactive Streams 不支持可 null 值,因为这些值会导致此类代码失败。 + 该快速修复会建议将 map() 替换为 mapNotNull,从而忽略异常。 +

      + +

      示例:

      +
      repository.findWithTailableCursorBy()
      +    .map(e -> (Person)null)
      +    .doOnNext(System.out::println)
      +
      + +

      在应用快速修复后:

      +
      repository.findWithTailableCursorBy()
      +    .mapNotNull(e -> (Person)null)
      +    .doOnNext(System.out::println)
      +
      + +

      2019.3 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsPublisherImplementation.html b/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsPublisherImplementation.html new file mode 100644 index 000000000..066c1afb2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsPublisherImplementation.html @@ -0,0 +1,12 @@ + + +

      报告直接实现 Publisher 接口的类。

      +

      考虑使用来自 RxJava 或 Reactor 的静态生成器,例如:

      +
        +
      • Flux.just()Flux.create()Flux.generate()Flux.from()
      • +
      • Mono.create()Mono.from()Mono.just()
      • +
      • Flowable.just()Flowable.from()
      • +
      • Maybe.just()Maybe.from()
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsSubscriberImplementation.html b/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsSubscriberImplementation.html new file mode 100644 index 000000000..fefd83782 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsSubscriberImplementation.html @@ -0,0 +1,12 @@ + + +

      报告直接实现 Subscriber 接口的类。

      +

      考虑使用来自 RxJava 或 Reactor 的静态生成器,例如:

      +
        +
      • Flux.just()Flux.create()Flux.generate()Flux.from()
      • +
      • Mono.create()Mono.from()Mono.just()
      • +
      • Flowable.just()Flowable.from()
      • +
      • Maybe.just()Maybe.from()
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsThrowInOperator.html b/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsThrowInOperator.html new file mode 100644 index 000000000..041a131d8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsThrowInOperator.html @@ -0,0 +1,24 @@ + + +

      报告 Reactor/RxJava 运算符代码中的 throw 表达式。

      +

      从 Reactor/RxJava 运算符抛出异常表明可能存在问题,因为您可以返回“类似于 Reactive”的错误:从 flatMap()Mono.error()Flowable.error(),或者从 Reactor 的 handle() 运算符调用 sink.error()。 +

      +

      +此外,Reactor 工厂方法允许在没有任何错误的情况下返回已检查的异常,而在没有 Exceptions 类的情况下抛出此类异常会导致编译错误。 +

      +

      示例:

      +
      
      +Flux.just(1, 2, 3).flatMap(i -> {
      +            throw new RuntimeException();
      +        })
      +
      +

      在应用快速修复后:

      +
      
      +Flux.just(1, 2, 3).flatMap(i -> {
      +            return Flux.error(new RuntimeException());
      +        })
      +
      + +

      2019.3 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsTooLongSameOperatorsChain.html b/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsTooLongSameOperatorsChain.html new file mode 100644 index 000000000..45e4d4d27 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsTooLongSameOperatorsChain.html @@ -0,0 +1,23 @@ + + +

      报告长的 Reactive Streams 转换链。

      +

      每个运算符方法调用,例如 map()filter(),都会为这些运算符创建一些对象。 + 在每个订阅上对每个流元素调用长运算符链可能会导致性能开销。 + 为避免这种情况,请尽可能将长运算符链合并为一个运算符调用。 +

      +

      示例:

      +
      
      +Flux.just(1, 2, 3)
      +        .map(it -> it + 1)
      +        .map(it -> it + 2)
      +        .map(it -> it + 3)
      +
      +

      在应用快速修复后:

      +
      
      +Flux.just(1, 2, 3)
      +        .map(it -> it + 1 + 2 + 3)
      +
      + +

      2019.3 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsUnusedPublisher.html b/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsUnusedPublisher.html new file mode 100644 index 000000000..54bc6bc49 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReactiveStreamsUnusedPublisher.html @@ -0,0 +1,26 @@ + + +

      报告未使用的 Publisher 实例。

      +

      + 要使用生成新的 Publisher 实例的运算符(返回 Mono/Flux/Flowable 的 Mono/Flux/Flowable 对象的方法),您必须通过 subscribe() 订阅创建的 Publisher。 +

      +

      + 使用工厂(例如,Mono.just())而不订阅返回的 Publisher,会创建一个从未使用的对象,并被视为不必要的内存分配。 +

      +

      + 例如,Mono.just(1, 2, 3).map(i -> i + 3) 不会被执行,除非您订阅了此 Publisher,或者除非您通过应用运算符生成新的 Publisher 并订阅它。 +

      +

      示例:

      +

      未使用的 Flux 实例:

      +
      
      +Flux.just(1, 2, 3);
      +
      +

      使用者使用的 Flux 实例:

      +
      
      +Flux.just(1, 2, 3).subscribe(System.out::println);
      +
      +

      不会报告对使用 Error Prone 或 AssertJ 的 @CanIgnoreReturnValue 注解进行注解的方法的调用。 + +

      2019.3 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReactorAutomaticDebugger.html b/original-plugin-raw/zh/inspectionDescriptions/ReactorAutomaticDebugger.html new file mode 100644 index 000000000..229713607 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReactorAutomaticDebugger.html @@ -0,0 +1,11 @@ + + +

      报告冗余的 ReactorDebugAgent.init() 调用。

      +

      + IDE 可以自动初始化 Reactor Debug 模式,因此用户不需要显式调用 ReactorDebugAgent.init()Hooks.onOperatorDebug()。 +

      + +

      此外,同时调用 ReactorDebugAgent.init()Hooks.onOperatorDebug() 会导致 Reactor 生成双倍的调试堆栈帧。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReadObjectAndWriteObjectPrivate.html b/original-plugin-raw/zh/inspectionDescriptions/ReadObjectAndWriteObjectPrivate.html new file mode 100644 index 000000000..b5244371c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReadObjectAndWriteObjectPrivate.html @@ -0,0 +1,26 @@ + + +报告 readObjectwriteObject 方法未被声明为 private 的 Serializable 类。 +这些方法的可见性没有理由比 private 更高。 +

      + 建议通过快速修复将相应的方法设为 private。 +

      +

      示例:

      +
      
      +  public class Test implements Serializable {
      +    public void readObject(ObjectInputStream stream) {
      +      /* ... */
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  public class Test implements Serializable {
      +    private void readObject(ObjectInputStream stream) {
      +      /* ... */
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReadObjectInitialization.html b/original-plugin-raw/zh/inspectionDescriptions/ReadObjectInitialization.html new file mode 100644 index 000000000..ce55655c9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReadObjectInitialization.html @@ -0,0 +1,22 @@ + + +报告在 readObject() 方法反序列化对象后不保证被初始化的字段。 +

      该检查不报告 transient 字段。

      +

      + 注意:此检查使用非常保守的控制流算法,可能会将字段误报告为未初始化。 +

      +

      示例:

      +
      
      +class DataObject implements Serializable {
      +  String s; // s 在 readObject 中未初始化
      +  int i;
      +
      +  private void readObject(ObjectInputStream stream) throws IOException {
      +    i = stream.readInt();
      +  }
      +}
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReadResolveAndWriteReplaceProtected.html b/original-plugin-raw/zh/inspectionDescriptions/ReadResolveAndWriteReplaceProtected.html new file mode 100644 index 000000000..ba2960394 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReadResolveAndWriteReplaceProtected.html @@ -0,0 +1,22 @@ + + +报告实现 java.io.Serializable 且其中的 readResolve()writeReplace() 方法未被声明为 protected 的类。 +

      + 将 readResolve()writeReplace() 方法声明为 private 可以强制子类无提示地忽略它们,而声明为 public 则允许不受信任的代码调用它们。 +

      +

      + 如果包含类被声明为 final,这些方法就可以被声明为 private。 +

      +

      示例:

      +
      
      +  class ClassWithSerialization implements Serializable {
      +    public Object writeReplace() { // 警告:'writeReplace()' 未被声明为 protected
      +        ...
      +    }
      +  }
      +  
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReadScopeContext.html b/original-plugin-raw/zh/inspectionDescriptions/ReadScopeContext.html new file mode 100644 index 000000000..a8df6993d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReadScopeContext.html @@ -0,0 +1,20 @@ + + +报告来自挂起或操作上下文的无效 ReadScope 调用。 +

      + 不能从协同程序或操作调用 ReadScope 函数。 + 否则,可能会导致运行时异常。 +

      +

      示例:

      +
      
      +  fun ReadScope.kernel(/*...*/) { /*...*/ }
      +
      +  fun ReadScope.foo() {
      +      readEditorAction { ac ->
      +          kernel() // 这不正确
      +      }
      +  }
      +
      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReadWriteStringCanBeUsed.html b/original-plugin-raw/zh/inspectionDescriptions/ReadWriteStringCanBeUsed.html new file mode 100644 index 000000000..d3f836881 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReadWriteStringCanBeUsed.html @@ -0,0 +1,20 @@ + + +报告使用 java.nio.file.Files 以字节形式读取或写入 String 的代码段。 +

      这些代码段可以替换为对 Java 11 中引入的 Files.readString()Files.writeString() 方法的调用。

      +

      示例:

      +
      
      +  String s = "example";
      +  Files.write(Paths.get("out.txt"), s.getBytes(StandardCharsets.UTF_8), StandardOpenOption.WRITE);
      +  s = new String(Files.readAllBytes(Paths.get("in.txt")), StandardCharsets.ISO_8859_1);
      +
      +

      在应用快速修复后:

      +
      
      +  String s = "example";
      +  Files.writeString(Paths.get("out.txt"), s, StandardOpenOption.WRITE);
      +  s = Files.readString(Paths.get("in.txt"), StandardCharsets.ISO_8859_1);
      +
      + +

      2018.3 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RecordCanBeClass.html b/original-plugin-raw/zh/inspectionDescriptions/RecordCanBeClass.html new file mode 100644 index 000000000..2ebeceea0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RecordCanBeClass.html @@ -0,0 +1,60 @@ + + +报告记录类并建议将它们转换为普通类。 +

      通过将快速修复应用到此记录,此检查可以将 Java 记录移动到使用早期 Java 版本的代码库。

      +

      + 请注意,生成的类并不完全等同于原始记录: +

      +
        +
      • 结果的类不再扩展 java.lang.Record,因此 instanceof Record 返回 false
      • +
      • Class.isRecord()Class.getRecordComponents() 等反射方法会产生不同的结果。
      • +
      • 生成的 hashCode() 实现可能会产生不同的结果,因为故意没有指定计算记录 hashCode 的公式。
      • +
      • 记录序列化机制不同于普通类。 + 有关详细信息,请参阅 Java 对象序列化规范
      • +
      + +

      示例:

      +
      
      +  record Point(int x, int y) {}
      +
      +

      在应用快速修复后:

      +
      
      +  final class Point {
      +    private final int x;
      +    private final int y;
      +
      +    Point(int x, int y) {
      +      this.x = x;
      +      this.y = y;
      +    }
      +
      +    public int x() { return x; }
      +
      +    public int y() { return y; }
      +
      +    @Override
      +    public boolean equals(Object obj) {
      +      if (obj == this) return true;
      +      if (obj == null || obj.getClass() != this.getClass()) return false;
      +      var that = (Point)obj;
      +      return this.x == that.x &&
      +             this.y == that.y;
      +    }
      +
      +    @Override
      +    public int hashCode() {
      +      return Objects.hash(x, y);
      +    }
      +
      +    @Override
      +    public String toString() {
      +      return "Point[" +
      +             "x=" + x + ", " +
      +             "y=" + y + ']';
      +    }
      +  }
      +
      +

      仅当项目或模块的语言级别为 15(预览)或更高时,此检查才会报告。

      +

      2020.3 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RecordStoreResource.html b/original-plugin-raw/zh/inspectionDescriptions/RecordStoreResource.html new file mode 100644 index 000000000..5d1e0ceb5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RecordStoreResource.html @@ -0,0 +1,25 @@ + + +报告未在 try 块前打开并在相应的 finally 块中关闭的 Java ME javax.microedition.rms.RecordStore 资源。 +

      如果在资源关闭之前抛出异常,此类资源可能会被无意泄漏。

      +

      + 此检查适用于 Java ME 和其他资源高度受限的环境。 + 不加考虑地应用此检查的结果可能会对代码清晰度和设计产生负面影响。 +

      +

      示例:

      +
      
      +  void foo1() throws RecordStoreException {
      +      RecordStore rs = RecordStore.openRecordStore("bar", true); // 警告
      +  }
      +  void foo2() throws RecordStoreException {
      +      RecordStore rs = RecordStore.openRecordStore("bar", true); // 无警告
      +      try {
      +          /* ... */
      +      } finally {
      +          rs.closeRecordStore();
      +      }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RecursiveEqualsCall.html b/original-plugin-raw/zh/inspectionDescriptions/RecursiveEqualsCall.html new file mode 100644 index 000000000..d2740aaae --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RecursiveEqualsCall.html @@ -0,0 +1,31 @@ + + +

      报告递归 equals(==) 调用。

      +

      + 在 Kotlin 中,== 会通过在后台调用 equals 方法来比较对象值。 + 另一方面,=== 则通过引用来比较对象。 +

      +

      + === 通常用于 equals 方法实现。 + 但 === 可能会错误地与 == 混淆,从而导致无限递归。 +

      +

      示例:

      +
      
      +  class X {
      +      override fun equals(other: Any?): Boolean {
      +          if (this == other) return true
      +          return false
      +      }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class X {
      +      override fun equals(other: Any?): Boolean {
      +          if (this === other) return true
      +          return false
      +      }
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RecursivePropertyAccessor.html b/original-plugin-raw/zh/inspectionDescriptions/RecursivePropertyAccessor.html new file mode 100644 index 000000000..679f9ee1d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RecursivePropertyAccessor.html @@ -0,0 +1,22 @@ + + +

      + 报告能够以 StackOverflowError 结束的递归属性访问器调用。 + 此类调用经常与支持字段访问混淆。 +

      +

      示例:

      +
      
      +  var counter: Int = 0
      +      set(value) {
      +          counter = if (value < 0) 0 else value
      +      }
      +
      +

      在应用快速修复后:

      +
      
      +  var counter: Int = 0
      +      set(value) {
      +          field = if (value < 0) 0 else value
      +      }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantArrayCreation.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantArrayCreation.html new file mode 100644 index 000000000..f33d60fbe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantArrayCreation.html @@ -0,0 +1,9 @@ + + +报告专门创建以作为 vararg 形参传递的数组。 +

      示例:

      +

      Arrays.asList(new String[]{"Hello", "world"})

      +

      该快速修复会将数组初始值设定项替换为单个实参:

      +

      Arrays.asList("Hello", "world")

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantAsSequence.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantAsSequence.html new file mode 100644 index 000000000..b0751f0bd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantAsSequence.html @@ -0,0 +1,23 @@ + + +

      报告永远不会产生积极的性能影响的冗余 asSequence() 调用。

      +

      + asSequence() 会加速包含多个运算的集合处理,因为它会延迟执行运算并且不会创建中间集合。 +

      +

      + 但是,如果在 asSequence() 之后立即使用终端运算(例如 toList()),则不会带来任何积极的性能效果。 +

      +

      示例:

      +
      
      +  fun test(list: List<String>) {
      +      list.asSequence().last()
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun test(list: List<String>) {
      +      list.last()
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantAsync.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantAsync.html new file mode 100644 index 000000000..2bca3a1b3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantAsync.html @@ -0,0 +1,20 @@ + + +

      + 报告后面紧跟 awaitasync 调用。 + 此类调用可以替换为块调用。 +

      +

      示例:

      +
      
      +  suspend fun test(ctx: CoroutineContext, scope: CoroutineScope) {
      +      scope.async(ctx) { doSomeJob() }.await()
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  suspend fun test(ctx: CoroutineContext, scope: CoroutineScope) {
      +      withContext(scope.coroutineContext + ctx) { doSomeJob() }
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantBlock.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantBlock.html new file mode 100644 index 000000000..b6f20bd47 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantBlock.html @@ -0,0 +1,16 @@ + + +

      报告插值字符串中的冗余封闭块。

      +

      示例:

      +
      
      +  val name = "Andy"
      +  s"Do you know ${name}?"
      +
      +

      在应用快速修复后:

      +
      
      +  val name = "Andy"
      +  s"Do you know $name?"
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantCast.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantCast.html new file mode 100644 index 000000000..3136350e4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantCast.html @@ -0,0 +1,5 @@ + + +报告不必要的转换表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantClassCall.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantClassCall.html new file mode 100644 index 000000000..9f8b56a2f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantClassCall.html @@ -0,0 +1,9 @@ + + +报告 java.lang.Class 方法的冗余调用。 +

      例如,Xyz.class.isInstance(object) 可以替换为 object instanceof Xyz。 +首选 instanceof 检查:尽管性能与这些方法可能并无本质区别,但它们更好地指示了静态检查。

      + +

      2018.2 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantCollectionConversion.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantCollectionConversion.html new file mode 100644 index 000000000..bb4310733 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantCollectionConversion.html @@ -0,0 +1,17 @@ + + +

      报告冗余集合转换。

      + +

      该快速修复将移除冗余转换。

      + +

      示例:

      +
      
      +  List(1, 2).toList
      +
      +

      在应用快速修复后:

      +
      
      +  List(1, 2)
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantCollectionOperation.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantCollectionOperation.html new file mode 100644 index 000000000..eaa90050a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantCollectionOperation.html @@ -0,0 +1,22 @@ + + +报告有更简单的替代方案的过于复杂的集合操作。 +

      示例:

      +
      
      +  void f(String[] array, Collection<String> collection) {
      +    String[] strings = Arrays.asList(array).subList(0, 10).toArray(new String[0]);
      +    boolean contains = collection.containsAll(Collections.singletonList("x"));
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  void f(String[] array, Collection<String> collection) {
      +    String[] strings = Arrays.copyOf(array, 10);
      +    boolean contains = collection.contains("x");
      +  }
      +
      + + +

      2018.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantCompanionReference.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantCompanionReference.html new file mode 100644 index 000000000..8f8937017 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantCompanionReference.html @@ -0,0 +1,27 @@ + + +

      报告冗余的 Companion 引用。

      +

      示例:

      +
      
      +  class A {
      +      companion object {
      +          fun create() = A()
      +      }
      +  }
      +  fun test() {
      +      val s = A.Companion.create()
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class A {
      +      companion object {
      +          fun create() = A()
      +      }
      +  }
      +  fun test() {
      +      val s = A.create()
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantComparatorComparing.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantComparatorComparing.html new file mode 100644 index 000000000..37ba5df55 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantComparatorComparing.html @@ -0,0 +1,23 @@ + + +报告可简化的冗余 Comparator 连结符结构。 +

      示例:

      +
      
      +  c.thenComparing(Comparator.comparing(function));
      +
      +  Comparator.comparing(Map.Entry::getKey);
      +
      +  Collections.max(list, Comparator.reverseOrder());
      +
      +

      在应用快速修复后:

      +
      
      +  c.thenComparing(function)
      +
      +  Map.Entry.comparingByKey()
      +
      +  Collections.min(list, Comparator.naturalOrder());
      +
      + +

      2018.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantCompareCall.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantCompareCall.html new file mode 100644 index 000000000..9bf1cdd60 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantCompareCall.html @@ -0,0 +1,15 @@ + + +报告其中的 compare 方法多余的比较。 +

      示例:

      +
      
      +  boolean result = Integer.compare(a, b) == 0;
      +
      +

      在应用快速修复后:

      +
      
      +  boolean result = a == b;
      +
      + +

      2018.2 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantDefaultArgument.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantDefaultArgument.html new file mode 100644 index 000000000..d2bb0a7b9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantDefaultArgument.html @@ -0,0 +1,19 @@ + + +

      报告与默认值具有相同值的实参。

      + +

      该快速修复将移除冗余转换。

      + +

      示例:

      +
      
      +  def f(x: Int, y: Int = 0, z: Int) {}
      +  f(1, y = 0, z = 1)
      +
      +

      在应用快速修复后:

      +
      
      +  def f(x: Int, y: Int = 0, z: Int) {}
      +  f(1, z = 1)
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantElseInIf.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantElseInIf.html new file mode 100644 index 000000000..5104ae259 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantElseInIf.html @@ -0,0 +1,21 @@ + + +

      报告 if 中具有 return 的冗余 if

      +

      示例:

      +
      
      +  fun foo(arg: Boolean): Int {
      +      if (arg) return 0
      +      else { // 此 else 冗余,大括号中的代码正好可以向左移动
      +          someCode()
      +      }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo(arg: Boolean): Int {
      +      if (arg) return 0
      +      someCode()
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantElvisReturnNull.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantElvisReturnNull.html new file mode 100644 index 000000000..b8ab09779 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantElvisReturnNull.html @@ -0,0 +1,25 @@ + + +

      报告冗余的 ?: return null

      +

      示例:

      +
      
      +  fun foo(): Int? {
      +      ...
      +  }
      +
      +  fun test() : Int? {
      +      return foo() ?: return null
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo(): Int? {
      +      ...
      +  }
      +
      +  fun test() : Int? {
      +      return foo()
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantEmptyInitializerBlock.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantEmptyInitializerBlock.html new file mode 100644 index 000000000..4d661ded4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantEmptyInitializerBlock.html @@ -0,0 +1,18 @@ + + +

      报告冗余的空初始值设定项块。

      +

      示例:

      +
      
      +  class Foo {
      +      init {
      +          // 空 init 块
      +      }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Foo {
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantEnumConstructorInvocation.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantEnumConstructorInvocation.html new file mode 100644 index 000000000..1a8625bd9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantEnumConstructorInvocation.html @@ -0,0 +1,21 @@ + + +

      报告枚举条目上的冗余构造函数调用。

      +

      示例:

      +
      
      +  enum class Baz(i: Int = 0) {
      +      A(1),
      +      B(),
      +      C(),
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  enum class Baz(i: Int = 0) {
      +      A(1),
      +      B,
      +      C,
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantExplicitClose.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantExplicitClose.html new file mode 100644 index 000000000..d2237c93d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantExplicitClose.html @@ -0,0 +1,20 @@ + + +报告在 try-with-resources 块的末尾对 close() 的不必要调用,并建议移除它们。 +

      示例

      +
      
      +  try(MyAutoCloseable ac = new MyAutoCloseable()) {
      +    foo();
      +    ac.close();
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  try(MyAutoCloseable ac = new MyAutoCloseable()) {
      +    foo();
      +  }
      +
      + +

      2018.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantExplicitType.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantExplicitType.html new file mode 100644 index 000000000..9de8f126e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantExplicitType.html @@ -0,0 +1,25 @@ + + +

      报告局部变量的显式给定类型,这些类型显而易见且冗余,例如 val f: Foo = Foo()

      +

      示例:

      +
      
      +  class Point(val x: Int, val y: Int)
      +
      +  fun foo() {
      +      val t: Boolean = true
      +      val p: Point = Point(1, 2)
      +      val i: Int = 42
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Point(val x: Int, val y: Int)
      +
      +  fun foo() {
      +      val t = true
      +      val p = Point(1, 2)
      +      val i = 42
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantExplicitVariableType.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantExplicitVariableType.html new file mode 100644 index 000000000..70f5fd8f9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantExplicitVariableType.html @@ -0,0 +1,21 @@ + + +报告冗余局部变量类型。 +

      这些类型可以从上下文中推断出来,因此替换为 var

      +

      示例:

      +
      
      +  void test(InputStream s) {
      +    try (InputStream in = s) {}
      +  }
      +
      +

      应用修正后:

      +
      
      +  void test(InputStream s) {
      +    try (var in = s) {}
      +  }
      +
      + +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantFieldInitialization.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantFieldInitialization.html new file mode 100644 index 000000000..d03491123 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantFieldInitialization.html @@ -0,0 +1,29 @@ + + +报告显式初始化为其默认值的字段。 +

      示例:

      +
      
      +  class Foo {
      +    int foo = 0;
      +    List bar = null;
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Foo {
      +    int foo;
      +    List bar;
      +  }
      +
      + +

      + 使用检查设置可以仅报告显式 null 初始化,例如: +

      +
      
      +  class Foo {
      +    int foo = 0;     // 无警告
      +    List bar = null; // 冗余字段初始化警告
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantFileCreation.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantFileCreation.html new file mode 100644 index 000000000..0ded71ba6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantFileCreation.html @@ -0,0 +1,15 @@ + + +在只能使用 String 路径的情况下,报告在下面的一种构造函数中创建的冗余 FileFileInputStreamFileOutputStreamFileReaderFileWriterPrintStreamPrintWriterFormatter。 +

      示例:

      +
      
      +InputStream is = new FileInputStream(new File("in.txt"));
      +
      +

      在应用快速修复后:

      +
      
      +InputStream is = new FileInputStream("in.txt");
      +
      + +

      2020.3 最新变化

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantFinalOnToplevelObject.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantFinalOnToplevelObject.html new file mode 100644 index 000000000..5ae7407cd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantFinalOnToplevelObject.html @@ -0,0 +1,18 @@ + + +

      报告顶级对象上的 final 修饰符。

      +

      根据 Scala 规范,它们是冗余的。

      + +

      该快速修复会移除 final 修饰符。

      + +

      示例:

      +
      
      +  final object Test
      +
      +

      在应用快速修复后:

      +
      
      +  object Test
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantGetter.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantGetter.html new file mode 100644 index 000000000..bfcea61dc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantGetter.html @@ -0,0 +1,21 @@ + + +

      报告冗余属性 getter。

      +

      示例:

      +
      
      +  class Test {
      +      val a = 1
      +          get
      +      val b = 1
      +          get() = field
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Test {
      +      val a = 1
      +      val b = 1
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantHeadOrLastOption.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantHeadOrLastOption.html new file mode 100644 index 000000000..a027a4548 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantHeadOrLastOption.html @@ -0,0 +1,17 @@ + + +

      Option 的实例上报告 headOptionlastOption

      + +

      该快速修复会移除此类冗余调用。

      + +

      示例:

      +
      
      +  Option(1).lastOption
      +
      +

      在应用快速修复后:

      +
      
      +  Option(1)
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantIf.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantIf.html new file mode 100644 index 000000000..b3de65cd8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantIf.html @@ -0,0 +1,21 @@ + + +

      报告可以简化为单个语句的 if 语句。

      +

      示例:

      +
      
      +  fun test() {
      +      if (foo()) {
      +         return true
      +      } else {
      +         return false
      +      }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun test() {
      +      return foo()
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantImplements.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantImplements.html new file mode 100644 index 000000000..fe16dcc8b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantImplements.html @@ -0,0 +1,8 @@ + + +当接口已被超类声明为 implemented 或由该类的另一个接口扩展时,报告声明它们实现或扩展接口的类。 此类声明不必要,并且可以安全移除。 + +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantInnerClassModifier.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantInnerClassModifier.html new file mode 100644 index 000000000..bb25c60b6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantInnerClassModifier.html @@ -0,0 +1,45 @@ + + +如果类没有引用其外部类的成员,则将类上的 inner 修饰符报告为冗余。 +

      示例:

      +
      
      +  class Foo {
      +      inner class InnerClass { // 冗余 `inner` 修饰符
      +          fun hello() {
      +              println("Hi!")
      +          }
      +      }
      +  }
      +
      +  class List {
      +      val objects = Array<Any>(42) { Any() }
      +
      +      inner class Iterator { // 非冗余 `inner` 修饰符
      +          fun next(): Any {
      +              return objects[0]
      +          }
      +      }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Foo {
      +      class InnerClass { // 冗余 `inner` 修饰符
      +          fun hello() {
      +              println("Hi!")
      +          }
      +      }
      +  }
      +
      +  class List {
      +      val objects = Array<Any>(42) { Any() }
      +
      +      inner class Iterator { // 非冗余 `inner` 修饰符
      +          fun next(): Any {
      +              return objects[0]
      +          }
      +      }
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantLabelMigration.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantLabelMigration.html new file mode 100644 index 000000000..3f4c4399a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantLabelMigration.html @@ -0,0 +1,19 @@ + + +

      从 Kotlin 1.4 开始,报告导致编译错误的冗余标签。

      +

      从 Kotlin 1.0 开始,可以用标签标记任何语句:

      +
      
      +  fun foo() {
      +    L1@ val x = L2@bar()
      +  }
      +
      +但是,这些标签仅能以有限的几种方式引用: +
        +
      • 中断/继续循环
      • +
      • 从内联 lambda 或内联匿名函数的非本地返回
      • sssss +
      +

      从 Kotlin 1.4 开始禁止使用此类标签。

      + +

      仅当项目或模块的 Kotlin 语言级别为 1.4 或更高时,此检查才会报告。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantLabeledSwitchRuleCodeBlock.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantLabeledSwitchRuleCodeBlock.html new file mode 100644 index 000000000..297ec0559 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantLabeledSwitchRuleCodeBlock.html @@ -0,0 +1,22 @@ + + +报告带有冗余代码块的 switch 语句或 switch 表达式的标记规则。 +

      示例:

      +
      
      +  String s = switch (n) {
      +    case 1 -> { yield Integer.toString(n); }
      +    default -> "default";
      +  };
      +
      +

      在应用快速修复后:

      +
      
      +  String s = switch (n) {
      +    case 1 -> Integer.toString(n);
      +    default -> "default";
      +  };
      +
      + +

      仅当项目或模块的语言级别为 14 或更高时,此检查才会报告。

      +

      2019.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantLambdaArrow.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantLambdaArrow.html new file mode 100644 index 000000000..b09bf09e0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantLambdaArrow.html @@ -0,0 +1,21 @@ + + +

      报告没有形参的 lambda 中的冗余 lambda 箭头。

      +

      示例:

      +
      
      +  fun foo(f: () -> Unit) = f()
      +
      +  fun bar() {
      +      foo { -> println("Hi!") }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo(f: () -> Unit) = f()
      +
      +  fun bar() {
      +      foo { println("Hi!") }
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantLambdaOrAnonymousFunction.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantLambdaOrAnonymousFunction.html new file mode 100644 index 000000000..03815f2c0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantLambdaOrAnonymousFunction.html @@ -0,0 +1,12 @@ + + +

      报告立即创建和使用的 lambda 或匿名函数。

      + +
      
      +  fun test() {
      +      ({ println() })() // 冗余
      +      (fun() { println() })() // 冗余
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantLambdaParameterType.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantLambdaParameterType.html new file mode 100644 index 000000000..cd142d014 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantLambdaParameterType.html @@ -0,0 +1,15 @@ + + +报告由于可以从上下文中推断而冗余的 lambda 形参类型。 +

      示例:

      +
      
      +  Map<String, Integer> map = ...
      +  map.forEach((String s, Integer i) -> log.info(s + "=" + i));
      +
      +

      该快速修复会从 lambda 中移除这些形参类型。

      +
      
      +  Map<String, Integer> map = ...
      +  map.forEach((s, i) -> log.info(s + "=" + i));
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantMethodOverride.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantMethodOverride.html new file mode 100644 index 000000000..0f9e4a9e4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantMethodOverride.html @@ -0,0 +1,10 @@ + + +报告与其 super 方法相同的方法。 此类方法与其 super 方法的签名相同,并且要么方法体相同,要么其主体仅包含对 super 方法的调用。 +这些方法冗余,可以移除。 + +

      + 使用下面的复选框,对重写库方法的方法进行检查。 + 检查库方法可能会减慢检查速度。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantModalityModifier.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantModalityModifier.html new file mode 100644 index 000000000..cb3405781 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantModalityModifier.html @@ -0,0 +1,21 @@ + + +报告与元素的默认模态匹配的模态修饰符(对于大多数元素来说是 final,对于具有 override 的成员来说是 open)。 +

      示例:

      +
      
      +  final class Foo
      +
      +  open class Bar : Comparable<Bar> {
      +      open override fun compareTo(other: Bar): Int = 0
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Foo
      +
      +  open class Bar : Comparable<Bar> {
      +      open override fun compareTo(other: Bar): Int = 0
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantModifiersUtilityClassLombok.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantModifiersUtilityClassLombok.html new file mode 100644 index 000000000..1004e9eab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantModifiersUtilityClassLombok.html @@ -0,0 +1,5 @@ + + +报告使用 @UtilityClass 注解的类中不需要的修饰符。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantModifiersValLombok.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantModifiersValLombok.html new file mode 100644 index 000000000..b80c142a2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantModifiersValLombok.html @@ -0,0 +1,5 @@ + + +报告在 val 之前的不需要 final 修饰符。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantModifiersValueLombok.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantModifiersValueLombok.html new file mode 100644 index 000000000..76395c02d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantModifiersValueLombok.html @@ -0,0 +1,5 @@ + + +报告使用 @Value 注解的类中不需要的修饰符。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantNewCaseClass.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantNewCaseClass.html new file mode 100644 index 000000000..85194f3ef --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantNewCaseClass.html @@ -0,0 +1,19 @@ + + +

      报告用于实例化 case 类的 new 并建议将其删除。

      + +

      会自动为 case 类提供 apply 方法。

      + +

      示例:

      +
      
      +  case class Book(isbn: String)
      +  val guide = new Book("978-0345391803")
      +
      +

      在应用快速修复后:

      +
      
      +  case class Book(isbn: String)
      +  val guide = Book("978-0345391803")
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantNotNullExtensionReceiverOfInline.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantNotNullExtensionReceiverOfInline.html new file mode 100644 index 000000000..885779b43 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantNotNullExtensionReceiverOfInline.html @@ -0,0 +1,37 @@ + + +

      报告带有不可为 null 的扩展接收器的内联函数,这些函数不使用扩展接收器不可为 null 的事实。

      +

      + 在 Kotlin 1.2 之前,使用灵活的可 null 扩展接收器(具有未知可 null 性的平台类型)对 inline fun 的调用不包括字节码中的可 null 性检查。 自 Kotlin 1.2 起,字节码中包含可 null 性检查(请参阅 KT-12899)。 +

      +

      + 因此,在 Kotlin 1.2 之前的版本中,不使用扩展接收器不可为 null 这一事实的函数是危险的,建议使此类函数具有可为 null 的接收器。 +

      +

      示例:

      +
      
      +  inline fun String.greet() {
      +      println("Hello, $this!")
      +  }
      +
      +  fun main() {
      +      // `System.getProperty` 返回不可表示的 `String!` 类型
      +      val user = System.getProperty("user.name")
      +      user.greet()
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  inline fun String.greet() {
      +      println("Hello, $this!")
      +  }
      +
      +  fun main() {
      +      // `System.getProperty` 返回不可表示的 `String!` 类型
      +      val user = System.getProperty("user.name")
      +      user.greet()
      +  }
      +
      + +

      仅当项目或模块的 Kotlin 语言级别低于 1.2 时,此检查才会报告。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantNullableReturnType.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantNullableReturnType.html new file mode 100644 index 000000000..d01243179 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantNullableReturnType.html @@ -0,0 +1,13 @@ + + +报告具有可为 null 的返回类型的函数和变量,这些函数和变量永远不会返回或变为 null。 +

      示例:

      +
      
      +  fun greeting(user: String): String? = "Hello, $user!"
      +
      +

      在应用快速修复后:

      +
      
      +  fun greeting(user: String): String = "Hello, $user!"
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantObjectTypeCheck.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantObjectTypeCheck.html new file mode 100644 index 000000000..e49522fcd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantObjectTypeCheck.html @@ -0,0 +1,24 @@ + + +

      报告对象的非惯用 is 类型检查。

      +

      建议将此类检查替换为引用比较。

      +

      示例:

      +
      
      +  object Foo
      +
      +  fun foo(arg: Any) = when {
      +      arg is Foo -> ...
      +      arg !is Foo -> ...
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  object Foo
      +
      +  fun foo(arg: Any) = when {
      +      arg === Foo -> ...
      +      arg !== Foo -> ...
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantOperationOnEmptyContainer.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantOperationOnEmptyContainer.html new file mode 100644 index 000000000..d7f021d54 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantOperationOnEmptyContainer.html @@ -0,0 +1,17 @@ + + +报告对空集合、映射或数组的冗余操作。 +

      + 在空集合上迭代、移除元素、排序和某些其他操作没有任何效果,可以移除。 此外,它们可能表明存在错误。

      +

      示例:

      +
      
      +  if (numbers.isEmpty()){
      +    //由于缺少否定,因此出现错误
      +    int max = numbers.stream().max(Comparator.naturalOrder()).get();
      +    ...
      +  }
      +
      + +

      2019.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantParameters.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantParameters.html new file mode 100644 index 000000000..224cd8ab5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantParameters.html @@ -0,0 +1,5 @@ + + +报告块中不必要的形参,如 (void)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantRecordConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantRecordConstructor.html new file mode 100644 index 000000000..882cb5dcd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantRecordConstructor.html @@ -0,0 +1,34 @@ + + +报告在 Java 记录中声明的冗余构造函数。 +

      示例 1:

      +
      
      +  record Point(int x, int y) {
      +    public Point {} // 可以移除
      +  }
      +  
      +  record Point(int x, int y) {
      +    public Point(int x, int y) { // 可以移除
      +      this.x = x;
      +      this.y = y;
      +    }
      +  }
      +
      +

      该快速修复会移除冗余的构造函数。

      +

      示例 2:

      +
      
      +   // 可以转换为压缩构造函数
      +  record Range(int from, int to) {
      +    public Range(int from, int to) {
      +      if (from > to) throw new IllegalArgumentException();
      +      this.from = from;
      +      this.to = to;
      +    }
      +  }
      +
      +

      该快速修复会将此代码转换为紧凑构造函数。

      + +

      仅当配置的语言级别为 14 预览版或 15 预览版时,此检查才会报告。

      +

      2020.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantRequireNotNullCall.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantRequireNotNullCall.html new file mode 100644 index 000000000..90ad8beb7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantRequireNotNullCall.html @@ -0,0 +1,18 @@ + + +

      报告对不可为 null 表达式的冗余 requireNotNullcheckNotNull 调用。

      +

      示例:

      +
      
      +  fun foo(i: Int) {
      +      requireNotNull(i) //此 'i' 始终不为 null,因此该 'requireNotNull' 为冗余调用。
      +      ...
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo(i: Int) {
      +      ...
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantReturnLabel.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantReturnLabel.html new file mode 100644 index 000000000..5aa09f175 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantReturnLabel.html @@ -0,0 +1,17 @@ + + +

      报告 lambda 表达式之外的冗余返回标签。

      +

      示例:

      +
      
      +  fun test() {
      +      return@test
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun test() {
      +      return
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantRunCatching.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantRunCatching.html new file mode 100644 index 000000000..654ae589a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantRunCatching.html @@ -0,0 +1,14 @@ + + +报告后面紧跟 getOrThrowrunCatching 调用。 +此类调用可以仅替换为 run。 +

      示例:

      +
      
      +  fun foo() = runCatching { doSomething() }.getOrThrow()
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo() = run { doSomething() }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantSamConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantSamConstructor.html new file mode 100644 index 000000000..e872546c0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantSamConstructor.html @@ -0,0 +1,21 @@ + + +报告可以替换为 lambda 的 SAM(单一抽象方法)构造函数用法。 +

      示例:

      +
      
      +  fun main() {
      +      foo(Runnable { println("Hi!") })
      +  }
      +
      +  fun foo(other: Runnable) {}
      +
      +

      在应用快速修复后:

      +
      
      +  fun main() {
      +      foo( { println("Hi!") })
      +  }
      +
      +  fun foo(other: Runnable) {}
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantScopeBinding.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantScopeBinding.html new file mode 100644 index 000000000..c42ff110f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantScopeBinding.html @@ -0,0 +1,6 @@ + + +

      报告显式绑定的范围限制,相当于绑定类上的范围注解。 + 此类范围限制是冗余的,可能会随着程序的发展而引起混淆。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantSemicolon.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantSemicolon.html new file mode 100644 index 000000000..abe6ee7f6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantSemicolon.html @@ -0,0 +1,39 @@ + + + 报告可以安全移除的冗余分号 (;)。 +

      + Kotlin 不要求在每个语句或表达式的末尾使用分号。 + 建议使用快速修复移除冗余的分号。 +

      +

      示例:

      +
      
      +  val myMap = mapOf("one" to 1, "two" to 2);
      +  myMap.forEach { (key, value) ->  print("$key -> $value")};
      +
      +

      在应用快速修复后:

      +
      
      +  val myMap = mapOf("one" to 1, "two" to 2)
      +  myMap.forEach { (key, value) ->  print("$key -> $value")}
      +
      + +

      有两种情况需要使用分号:

      +
        +
      1. + 放在一个行里的多个语句需要用分号隔开: +
        
        +  map.forEach { val (key, value) = it; println("$key -> $value") }
        +
        +
      2. +
      3. + 同时声明了属性或函数的 enum 类要求在枚举常量列表后加一个分号: +
        
        +  enum class Mode {
        +      SILENT, VERBOSE;
        +
        +      fun isSilent(): Boolean = this == SILENT
        +  }
        +        
        +
      4. +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantSetter.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantSetter.html new file mode 100644 index 000000000..3c6e7bacc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantSetter.html @@ -0,0 +1,36 @@ + + +报告冗余属性 setter。 +

      +在以下情况之一中,setter 被认为是冗余的: +

      +
        +
      1. + setter 没有主体。 访问器可见性未更改,声明不是 external 并且没有注解。 +
        
        +  var myPropWithRedundantSetter: Int = 0
        +      set // redundant
        +
        +  var myPropA: Int = 0
        +      private set // 可以 - 属性可见性被更改为 private
        +
        +  var myPropB: Int = 0
        +      external set // 可以 - 未在 Kotlin 中实现(外部)
        +
        +  var myPropC: Int = 0
        +      @Inject set // 可以 - 访问器被注解
        +        
        +
      2. +
      3. + setter 主体是一个具有单语句的块,其将形参分配给支持字段。 +
        
        +  var prop: Int = 0
        +      set(value) { // 冗余
        +          field = value
        +      }
        +       
        +
      4. +
      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantSlf4jDefinition.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantSlf4jDefinition.html new file mode 100644 index 000000000..6cd26f961 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantSlf4jDefinition.html @@ -0,0 +1,5 @@ + + +报告明确定义的 Slf4j 记录器。 可以改用 @Slf4j 注解。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantStreamOptionalCall.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantStreamOptionalCall.html new file mode 100644 index 000000000..ca614d17d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantStreamOptionalCall.html @@ -0,0 +1,10 @@ + + +报告冗余的 Stream 或 Optional 调用,例如 map(x -> x)filter(x -> true)、冗余的 sorteddistinct。 + +

      请注意,streamOfIntegers.map(Integer::valueOf) 之类代码中的映射操作效果与 requireNonNull 检查相同: +如果该流包含 null,它将抛出 NullPointerException,因此并非绝对冗余。 + 如果不希望报告此类情况,请禁用报告 Stream.map 中冗余的装箱选项。

      +

      仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantStringFormatCall.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantStringFormatCall.html new file mode 100644 index 000000000..d30a2af40 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantStringFormatCall.html @@ -0,0 +1,14 @@ + + +报告对 format()printf() 等可以安全移除或简化的方法的调用。 +

      示例:

      +
      
      +  System.out.println(String.format("Total count: %d", 42));
      +
      +

      在应用快速修复后:

      +
      
      +  System.out.printf("Total count: %d%n", 42);
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantSuppression.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantSuppression.html new file mode 100644 index 000000000..7c7b0bf80 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantSuppression.html @@ -0,0 +1,24 @@ + + +报告由于它们所影响的检查在此上下文中不再适用而可以安全移除的下列元素: +
        +
      • @SuppressWarning 注解或
      • +
      • // noinspection 行注释,或
      • +
      • /** noinspection */ JavaDoc 注释
      • +
      +

      示例:

      +
      
      +public class C {
      + // 符号已经为 private,
      + // 但周围仍有注解
      +  @SuppressWarnings({"WeakerAccess"})
      + private boolean CONST = true;
      + void f() {
      +    CONST = false;
      +  }
      +}
      +
      + + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantSuspendModifier.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantSuspendModifier.html new file mode 100644 index 000000000..810c8d9ce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantSuspendModifier.html @@ -0,0 +1,5 @@ + + +如果内部没有调用其他挂起函数,报告 suspend 修饰符为冗余。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantThrows.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantThrows.html new file mode 100644 index 000000000..022c0968f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantThrows.html @@ -0,0 +1,26 @@ + + +报告在方法签名中声明但方法本身或其实现和派生从未抛出的异常。 +

      该检查会忽略与序列化相关的方法,例如方法 readObject()writeObject()

      +

      示例:

      +
      
      +  void method() throws InterruptedException {
      +    System.out.println();
      +  }
      +
      +

      该快速修复会移除声明中不必要的异常,并规范化冗余的 try-catch 语句:

      +
      
      +  void method() {
      +    System.out.println();
      +  }
      +
      +

      + 注意:在编辑器中高亮显示时可能不会报告某些异常。 + 由于性能原因,仅当非 private 方法的名称很少出现在项目中时,才会对其进行检查。 + 要查看所有结果,请从主菜单中选择代码 | 检查代码代码 | 分析代码 | 按名称运行检查来运行检查。 +

      + +

      使用忽略由入口点方法抛出的异常选项可以忽略由入口点方法抛出的异常。 + 入口点方法在以下检查中配置:编辑器 | 检查 | Java | 声明冗余 | 未使用的声明

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantToBinding.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantToBinding.html new file mode 100644 index 000000000..849cc546c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantToBinding.html @@ -0,0 +1,6 @@ + + +

      报告显式绑定,相当于绑定类上的 @ImplementedBy 注解。 + 此类绑定是冗余的,可能会随着程序的发展而引起混淆。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantToProviderBinding.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantToProviderBinding.html new file mode 100644 index 000000000..3c7d99f9f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantToProviderBinding.html @@ -0,0 +1,6 @@ + + +

      报告显式提供程序绑定,相当于绑定类上的 @ProvidedBy 注解。 + 此类提供程序绑定是冗余的,可能会随着程序的发展而引起混淆。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantTypeArguments.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantTypeArguments.html new file mode 100644 index 000000000..46b74b83a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantTypeArguments.html @@ -0,0 +1,16 @@ + + +报告对形参化方法的所有调用,其中的显式实参类型可以忽略,因为编译器将明确推断出这些实参类型。 +

      + 使用冗余类型实参会使代码变得多余,因而可读性较差。 +

      +

      示例:

      +
      
      +  List<String> list = Arrays.<String>asList("Hello", "World");
      +
      +

      通过快速修复可以移除冗余类型实参:

      +
      
      +  List<String> list = Arrays.asList("Hello", "World");
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantTypeConversion.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantTypeConversion.html new file mode 100644 index 000000000..b00057ea5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantTypeConversion.html @@ -0,0 +1,10 @@ + + +报告不必要的类型转换。 +当 string()number() 或 +boolean() 函数的实参类型已经与函数的返回类型相同时,或者如果 +预期表达式类型为 any,无需类型转换。 建议移除不必要的转换。 + +

      由 XPathView + XSLT-Support 提供技术支持

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantUncheckedSuppress.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantUncheckedSuppress.html new file mode 100644 index 000000000..d931e6dc4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantUncheckedSuppress.html @@ -0,0 +1,6 @@ + + +报告所有禁止的未检查的警告,由于在相应的方法声明中使用了 @SafeVarargs 注解,可以移除。 +@SafeVarargs 注解(自 Java 1.7 起)禁止有关在调用点创建形参化数组的未检查的警告。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantUnitExpression.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantUnitExpression.html new file mode 100644 index 000000000..d46ed1a6d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantUnitExpression.html @@ -0,0 +1,35 @@ + + +报告冗余的 Unit 表达式。 +

      + Kotlin 中的 Unit 可以用作不返回任何有意义的函数的返回类型。 + Unit 类型只有一个可能的值,即 Unit 对象。 +

      +

      示例:

      +
      
      +  fun redundantA(): Unit {
      +      return Unit // 冗余,'Unit' 默认返回并与预期返回类型匹配
      +  }
      +
      +  fun requiredA(condition: Boolean): Any {
      +      if (condition) return "hello"
      +      return Unit // 显式 'Unit' 为必选项,因为预期类型为 'Any'
      +  }
      +
      +  fun redundantB(condition: Boolean): Any = if (condition) {
      +      fun ancillary(): Int = 1
      +      println("${ancillary()}")
      +      Unit // 冗余,因为上一个表达式已经为 'Unit' 类型
      +  } else {
      +      println("else")
      +  }
      +
      +  fun requiredB(condition: Boolean): Any = if (condition) {
      +      1024
      +      Unit // 必选项,否则 '1024' (Int) 将为返回值
      +  } else {
      +      println("else")
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantUnitReturnType.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantUnitReturnType.html new file mode 100644 index 000000000..0dda05de8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantUnitReturnType.html @@ -0,0 +1,5 @@ + + +报告可以省略的冗余 Unit 返回类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantUnmodifiable.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantUnmodifiable.html new file mode 100644 index 000000000..658ff0af2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantUnmodifiable.html @@ -0,0 +1,15 @@ + + +报告对 Collections 类中不可修改的集合包装器的冗余调用。 +

      如果传递给不可修改的集合包装器的实参已不可变,此类包装会变得冗余。

      +

      示例:

      +
      
      +  Collections.unmodifiableList(Collections.singletonList("abc"));
      +
      +

      为了检测返回不可修改集合的方法,该检查使用 org.jetbrains.annotations.Unmodifiable +和 org.jetbrains.annotations.UnmodifiableView 注解。 +使用它们将检查扩展为您自己的不可修改的集合包装器。

      + +

      2020.3 最新变化

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantVisibilityModifier.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantVisibilityModifier.html new file mode 100644 index 000000000..db0540d5a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantVisibilityModifier.html @@ -0,0 +1,5 @@ + + +报告与元素的默认可见性匹配的可见性修饰符(对于大多数元素来说是 public,对于重写受保护成员的成员来说是 protected)。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RedundantWith.html b/original-plugin-raw/zh/inspectionDescriptions/RedundantWith.html new file mode 100644 index 000000000..ae6cc0203 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RedundantWith.html @@ -0,0 +1,24 @@ + + +报告不从接收器访问任何内容的冗余 with 函数调用。 +

      示例:

      +
      
      +  class MyClass {
      +      fun f(): String = ""
      +  }
      +
      +  fun testRedundant() {
      +      with(c) { // <== 'with' 冗余,因为 'c' 未使用
      +          println("1")
      +      }
      +  }
      +
      +  fun testOk() {
      +      val c = MyClass()
      +      with(c) { // <== 可以,因为 'f()' 是有效的 'c.f()'
      +          println(f())
      +      }
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReferenceMustBePrefixed.html b/original-plugin-raw/zh/inspectionDescriptions/ReferenceMustBePrefixed.html new file mode 100644 index 000000000..176b5c0a7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReferenceMustBePrefixed.html @@ -0,0 +1,19 @@ + + +

      报告和修正隐藏常见 Scala 类(例如 List)的导入名称。

      +

      示例:

      +
      
      +  import java.util.List
      +
      +  val list: List[Int] = null
      +
      +

      在应用快速修复后:

      +
      
      +  import java.util
      +  import java.util.List
      +
      +  val list: util.List[Int] = null
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReferencePassedToNls.html b/original-plugin-raw/zh/inspectionDescriptions/ReferencePassedToNls.html new file mode 100644 index 000000000..060c28d04 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReferencePassedToNls.html @@ -0,0 +1,13 @@ + + +

      报告未使用 @Nls 注解并被传递给需要 @Nls 字符串的形参的表达式。

      +

      这意味着普通字符串被不必要地转换为自然语言字符串。

      +

      示例:

      +
      
      +  def setTitle(@Nls title: String) = ???
      +
      +  setTitle("Hardcoded title") // 这应该被提取到一个包中
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReferencesToClassesFromDefaultPackagesInJSPFile.html b/original-plugin-raw/zh/inspectionDescriptions/ReferencesToClassesFromDefaultPackagesInJSPFile.html new file mode 100644 index 000000000..9c63fc6fb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReferencesToClassesFromDefaultPackagesInJSPFile.html @@ -0,0 +1,25 @@ + + +报告 JSP 文件中对默认软件包中类的任何引用。 + +

      示例:

      +
      
      +  <%!
      +  Integer countSomeUsefulStuff() {
      +    ...
      +    new ClassFromDefaultPackage(...); // 错误
      +    new com.example.GoodClass(...); // OK
      +  }
      +  %>
      +  <html>
      +    <head>
      +      <title>Hello, JSP!</title>
      +    </head>
      +  </html>
      +

      + +

      + 注意:在 JSP 编译期间不会解析此类引用,因为 JSP 的编译类通常会放在非默认软件包(例如,Tomcat 的 "org.apache.jsp",WebSphere 的 "com.ibm._jsp")中,但在 Java 中不允许从默认软件包导入。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReflectionForUnavailableAnnotation.html b/original-plugin-raw/zh/inspectionDescriptions/ReflectionForUnavailableAnnotation.html new file mode 100644 index 000000000..5bcaaccaa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReflectionForUnavailableAnnotation.html @@ -0,0 +1,18 @@ + + +报告对非运行时注解的存在与否执行反射性检查的尝试。 +

      使用 Class.isAnnotationPresent() 测试保留策略设置为 SOURCECLASS(默认值)的注解是否始终得到否定结果。 此错误很容易被忽视。

      +

      示例:

      +
      
      +  {
      +    getClass().isAnnotationPresent(SourceAnnotation.class); //始终为 false
      +  }
      +
      +  @Retention(RetentionPolicy.SOURCE)
      +  @interface SourceAnnotation {}
      +
      + +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReflectionNotFound.html b/original-plugin-raw/zh/inspectionDescriptions/ReflectionNotFound.html new file mode 100644 index 000000000..b662274dc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReflectionNotFound.html @@ -0,0 +1,5 @@ + + +报告在不依赖于 kotlin-reflect.jar 的模块中使用反射功能的表达式。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/Reformat.html b/original-plugin-raw/zh/inspectionDescriptions/Reformat.html new file mode 100644 index 000000000..25f7a6738 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Reformat.html @@ -0,0 +1,6 @@ + + +报告未根据项目设置格式化的位置。 +

      使用“重新格式化代码”和“重新格式化文件…”快速修复可格式化高亮显示的代码块或相应的整个文件。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RefusedBequest.html b/original-plugin-raw/zh/inspectionDescriptions/RefusedBequest.html new file mode 100644 index 000000000..72cc91795 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RefusedBequest.html @@ -0,0 +1,43 @@ + + +报告重写特定方法而不调用 super 的方法。 +

      这也称作被拒绝的遗赠。 此类方法可能表明抽象失败,导致出现难以跟踪的错误。

      +

      该检查不报告默认方法和从 java.lang.Object 重写的方法,但对 clone() 除外。 + clone() 方法预计会调用其 super,从而自动返回正确类型的对象。

      +

      示例:

      +
        +
      • 
        +  class A {
        +    @Override
        +    public Object clone() { // 已报告,因为它不调用 'super.clone()'
        +      return new A();
        +    }
        +  }
        +  
      • +
      • 
        +  interface I {
        +    default void foo() {}
        +  }
        +
        +  class A implements I {
        +    // 禁用“忽略 'default' super 方法”和“忽略注解”选项时对方法发出警告
        +    @Override
        +    public void foo(){}
        +  }
        +    
      • +
      + +

      配置检查:

      +
        +
      • + 使用仅在通过以下方式注解 super 方法时报告选项,可忽略使用所提供列表中的注解标记的 super 方法。 您可以手动将注解添加到此列表中。 +
      • +
      • + 使用忽略空 super 方法选项,可忽略仅抛出异常或空的 super 方法。 +
      • +
      • + 使用忽略 'default' super 方法选项,可忽略包含 default 关键字的 super 方法。 +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RegExpAnonymousGroup.html b/original-plugin-raw/zh/inspectionDescriptions/RegExpAnonymousGroup.html new file mode 100644 index 000000000..03d3a131a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RegExpAnonymousGroup.html @@ -0,0 +1,18 @@ + + +报告正则表达式中的匿名捕获组和数字反向引用。 +只有正则表达式方言支持命名组和命名组引用,才支持这些用法。 +命名组和命名反向引用可改进代码可读性,建议改用。 +无需捕获时,使用非捕获组,即使用 (?:xxx) 而不是 (xxx),可以提高匹配效率和减少需要使用的内存。 +

      示例:

      +
      
      +  (\d\d\d\d)\1
      +
      +

      更好的正则表达式模式如下:

      +
      
      +  (?<quad>\d\d\d\d)\k<quad>
      +
      + +

      2017.2 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RegExpDuplicateAlternationBranch.html b/original-plugin-raw/zh/inspectionDescriptions/RegExpDuplicateAlternationBranch.html new file mode 100644 index 000000000..43a191bce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RegExpDuplicateAlternationBranch.html @@ -0,0 +1,16 @@ + + +报告正则表达式替换中的重复分支。 +重复分支会降低匹配速度并导致表达式意图不明。 +

      示例:

      +
      
      +  (alpha|bravo|charlie|alpha)
      +
      +

      在应用快速修复后:

      +
      
      +  (alpha|bravo|charlie)
      +
      + +

      2017.1 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RegExpDuplicateCharacterInClass.html b/original-plugin-raw/zh/inspectionDescriptions/RegExpDuplicateCharacterInClass.html new file mode 100644 index 000000000..be9525e4e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RegExpDuplicateCharacterInClass.html @@ -0,0 +1,15 @@ + + +报告正则表达式字符类中的重复字符。 +重复字符是多余的,可将其移除而不改变正则表达式的语义。 +

      示例:

      +
      
      +  [aabc]
      +
      +

      在应用快速修复后:

      +
      
      +  [abc]
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RegExpEmptyAlternationBranch.html b/original-plugin-raw/zh/inspectionDescriptions/RegExpEmptyAlternationBranch.html new file mode 100644 index 000000000..761a89439 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RegExpEmptyAlternationBranch.html @@ -0,0 +1,17 @@ + + +报告正则表达式替换中的空分支。 +空分支只能匹配空字符串,在大多数情况下,这并不是我们的目的。 +此检查不会报告位于替换开头或末尾的单个空分支。 +

      示例:

      +
      
      +  (alpha||bravo)
      +
      +

      在应用快速修复后:

      +
      
      +  (alpha|bravo)
      +
      + +

      2017.2 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RegExpEscapedMetaCharacter.html b/original-plugin-raw/zh/inspectionDescriptions/RegExpEscapedMetaCharacter.html new file mode 100644 index 000000000..ca0864f5c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RegExpEscapedMetaCharacter.html @@ -0,0 +1,17 @@ + + +报告转义元字符。 +某些正则表达式代码样式指定应将元字符放在字符类中,从而使正则表达式更易于理解。 +此检查不会警告元字符 [, ]^,因为这些字符可能需要在字符类中进行额外的转义。 +

      示例:

      +
      
      +  \d+\.\d+
      +
      +

      在应用快速修复后:

      +
      
      +  \d+[.]\d+
      +
      + +

      2017.1 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RegExpOctalEscape.html b/original-plugin-raw/zh/inspectionDescriptions/RegExpOctalEscape.html new file mode 100644 index 000000000..dbb6aa168 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RegExpOctalEscape.html @@ -0,0 +1,16 @@ + + +报告八进制转义(容易与反向引用混淆)。 +使用十六进制转义可避免混淆。 +

      示例:

      +
      
      +  \07
      +
      +

      在应用快速修复后:

      +
      
      +  \x07
      +
      + +

      2017.1 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RegExpRedundantEscape.html b/original-plugin-raw/zh/inspectionDescriptions/RegExpRedundantEscape.html new file mode 100644 index 000000000..49342a4fb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RegExpRedundantEscape.html @@ -0,0 +1,16 @@ + + +报告可以替换为非转义字符替换而不改变含义的字符转义。 +请注意,如果字符类放在方括号中,许多转义可能是非必要的,但是如果放在方括号外,转义可能是必要的。 +

      示例:

      +
      
      +  \-\;[\.]
      +
      +

      在应用快速修复后:

      +
      
      +  -;[.]
      +
      + +

      2017.3 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RegExpRedundantNestedCharacterClass.html b/original-plugin-raw/zh/inspectionDescriptions/RegExpRedundantNestedCharacterClass.html new file mode 100644 index 000000000..18f68d0b7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RegExpRedundantNestedCharacterClass.html @@ -0,0 +1,15 @@ + + +报告非必要的嵌套字符类。 +

      示例:

      +
      
      +  [a-c[x-z]]
      +
      +

      在应用快速修复后:

      +
      
      +  [a-cx-z]
      +
      + +

      2020.2 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RegExpRepeatedSpace.html b/original-plugin-raw/zh/inspectionDescriptions/RegExpRepeatedSpace.html new file mode 100644 index 000000000..11baeee83 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RegExpRepeatedSpace.html @@ -0,0 +1,18 @@ + + +报告正则表达式中的多个连续空格。 +由于空格默认不可见,因此,很难了解需要的空格数量。 +使用单个空格和计数量词来替换连续空格可以让正则表达式更清晰易懂。 +

      示例:

      +
      
      +  (     )
      +
      +

      在应用快速修复后:

      +
      
      +  ( {5})
      +
      + +

      +2017.1 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RegExpSingleCharAlternation.html b/original-plugin-raw/zh/inspectionDescriptions/RegExpSingleCharAlternation.html new file mode 100644 index 000000000..e696830a2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RegExpSingleCharAlternation.html @@ -0,0 +1,18 @@ + + +报告正则表达式中的单一字符替换。 +改用一个字符类更简单。 +这还可能提高匹配性能。 +

      示例:

      +
      
      +  a|b|c|d
      +
      +

      在应用快速修复后:

      +
      
      +  [abcd]
      +
      + +

      +2017.1 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RegExpUnexpectedAnchor.html b/original-plugin-raw/zh/inspectionDescriptions/RegExpUnexpectedAnchor.html new file mode 100644 index 000000000..cc7b1bb1b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RegExpUnexpectedAnchor.html @@ -0,0 +1,14 @@ + + +报告不在模式开头的 ^\A 定位标记以及不在模式末尾的 $\Z\z 定位标记。 +如果这些正则表达式定位标记位于错误的位置,则会阻止模式与任何对象匹配。 +对于 ^$ 定位标记,则很可能是指文字字符,并且忘记了转义。 +

      示例:

      +
      
      +  (Price $10)
      +
      + +

      +2018.1 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RegExpUnnecessaryNonCapturingGroup.html b/original-plugin-raw/zh/inspectionDescriptions/RegExpUnnecessaryNonCapturingGroup.html new file mode 100644 index 000000000..dcf0f04b7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RegExpUnnecessaryNonCapturingGroup.html @@ -0,0 +1,15 @@ + + +报告不必要的非捕获组(对匹配结果无影响)。 +

      示例:

      +
      
      +  Everybody be cool, (?:this) is a robbery!
      +
      +

      在应用快速修复后:

      +
      
      +  Everybody be cool, this is a robbery!
      +
      + +

      2021.1 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RelativeImport.html b/original-plugin-raw/zh/inspectionDescriptions/RelativeImport.html new file mode 100644 index 000000000..8d943d2c2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RelativeImport.html @@ -0,0 +1,18 @@ + + +

      报告不使用完全限定引用的 import 语句。

      +

      示例:

      +
      
      +  package org.something
      +
      +  import someInnerPackage
      +
      +

      在应用快速修复后:

      +
      
      +  package org.something
      +
      +  import org.something.someInnerPackage
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReleasingOfAssignProperties.html b/original-plugin-raw/zh/inspectionDescriptions/ReleasingOfAssignProperties.html new file mode 100644 index 000000000..265d967b5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReleasingOfAssignProperties.html @@ -0,0 +1,5 @@ + + +报告具有assign 特性并被释放的属性和实例变量。 只能释放具有 retaincopy 特性的属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveCurlyBracesFromTemplate.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveCurlyBracesFromTemplate.html new file mode 100644 index 000000000..467e65199 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveCurlyBracesFromTemplate.html @@ -0,0 +1,30 @@ + + +报告字符串模板中用于括简单标识符的大括号的用法。 +

      使用“移除大括号”快速修复可移除冗余的大括号。

      +

      示例:

      +
      
      +  fun redundant() {
      +     val x = 4
      +     val y = "${x}" // <== 冗余
      +  }
      +
      +  fun correctUsage() {
      +      val x = "x"
      +      val y = "${x.length}" // <== 可以
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun redundant() {
      +     val x = 4
      +     val y = "$x"
      +  }
      +
      +  fun correctUsage() {
      +      val x = "x" <== 已更新
      +      val y = "${x.length}"
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveEmptyClassBody.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveEmptyClassBody.html new file mode 100644 index 000000000..9f3152d88 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveEmptyClassBody.html @@ -0,0 +1,30 @@ + + +报告具有空主体的类和对象的声明。 +

      使用“移除冗余的空类主体”快速修复可清理代码。

      +

      示例:

      +
      
      +  class EmptyA() {} // <== 空主体
      +
      +  class EmptyB {
      +      companion object {} // <== 空主体
      +  }
      +
      +  fun emptyC() {
      +     object {} // <== 匿名对象,可以(未报告)
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class EmptyA()
      +
      +  class EmptyB {
      +      companion object
      +  }
      +
      +  fun emptyC() {
      +     object {}
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveEmptyParenthesesFromAnnotationEntry.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveEmptyParenthesesFromAnnotationEntry.html new file mode 100644 index 000000000..c7a92a2e9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveEmptyParenthesesFromAnnotationEntry.html @@ -0,0 +1,24 @@ + + +报告注解条目中的冗余空圆括号。 +

      使用“移除不必要的圆括号”快速修复可清理代码。

      +

      示例:

      +
      
      +  annotation class MyAnnotationA
      +  annotation class MyAnnotationB(val x: Int)
      +  annotation class MyAnnotationC(val x: Int = 10) // 存在默认值
      +
      +  @MyAnnotationA() // <== 圆括号冗余
      +  fun testA() {
      +  }
      +
      +  @MyAnnotationB() // <== 缺少实参,圆括号为必选项
      +  fun testB() {
      +  }
      +
      +  @MyAnnotationC() // <== 圆括号冗余
      +  fun testC() {
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveEmptyParenthesesFromLambdaCall.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveEmptyParenthesesFromLambdaCall.html new file mode 100644 index 000000000..5508d3d32 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveEmptyParenthesesFromLambdaCall.html @@ -0,0 +1,18 @@ + + +报告函数调用的冗余空圆括号,其中唯一的形参是圆括号外的 lambda。 +

      使用“从带 lambda 的函数调用中移除不必要的圆括号”快速修复可清理代码。

      +

      示例:

      +
      
      +  fun foo() {
      +      listOf(1).forEach() {  }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo() {
      +      listOf(1).forEach {  }
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveEmptyPrimaryConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveEmptyPrimaryConstructor.html new file mode 100644 index 000000000..77e361a7f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveEmptyPrimaryConstructor.html @@ -0,0 +1,18 @@ + + +当主构造函数隐式可用时,报告其中为空的主构造函数。 +

      + 主构造函数冗余,当其没有任何注解或可见性修饰符时可以安全地省略。 + 使用“移除空主构造函数”快速修复可清理代码。 +

      +

      示例:

      +
      
      +  class MyClassA constructor() //  冗余,可以替换为 'class MyClassA'
      +
      +  annotation class MyAnnotation
      +  class MyClassB @MyAnnotation constructor() //  由于注解而必选
      +
      +  class MyClassC private constructor() // 由于可见性修饰符而必选
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveEmptySecondaryConstructorBody.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveEmptySecondaryConstructorBody.html new file mode 100644 index 000000000..d29a1772c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveEmptySecondaryConstructorBody.html @@ -0,0 +1,5 @@ + + +报告辅助构造函数的空主体。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveExplicitSuperQualifier.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveExplicitSuperQualifier.html new file mode 100644 index 000000000..e49338411 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveExplicitSuperQualifier.html @@ -0,0 +1,54 @@ + + +报告具有冗余父类型限定的 super 成员调用。 +

      + 派生类中的代码可以使用 super 关键字调用其父类函数和属性访问器实现。 + 要指定从中获取继承实现的父类型,可以通过尖括号中的父类型名称来限定 super ,例如 super<Base>。 有时这种限定是冗余的,可以省略。 + 使用“移除显式父类型限定”快速修复可清理代码。 +

      +

      示例:

      +
      
      +  open class B {
      +      open fun foo(){}
      +  }
      +
      +  class A : B() {
      +      override fun foo() {
      +         super<B>.foo() // <== 冗余,因为 'B' 是唯一父类型
      +      }
      +  }
      +
      +  interface I {
      +      fun foo() {}
      +  }
      +
      +  class C : B(), I {
      +      override fun foo() {
      +          super<B>.foo() // <== 在这里,需要 <B> 限定符以将 'B.foo()' 与 'I.foo()' 区分
      +      }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  open class B {
      +      open fun foo(){}
      +  }
      +
      +  class A : B() {
      +      override fun foo() {
      +         super.foo() // <== 已更新
      +      }
      +  }
      +
      +  interface I {
      +      fun foo() {}
      +  }
      +
      +  class C : B(), I {
      +      override fun foo() {
      +          super<B>.foo()
      +      }
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveExplicitTypeArguments.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveExplicitTypeArguments.html new file mode 100644 index 000000000..2cf946763 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveExplicitTypeArguments.html @@ -0,0 +1,20 @@ + + +报告具有可自动推断的类型实参的函数调用。 这种类型实参是冗余的,可以安全地省略。 +

      使用“移除显式类型实参”快速修复可清理代码。

      +

      示例:

      +
      
      +  // 在这里可以推断 'String' 类型
      +  fun foo(): MutableList<String> = mutableListOf<String>()
      +
      +  // 在这里无法推断 'String',类型实参为必选项。
      +  fun bar() = mutableListOf<String>()
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo(): MutableList<String> = mutableListOf() <== 已更新
      +
      +  fun bar() = mutableListOf<String>()
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveForLoopIndices.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveForLoopIndices.html new file mode 100644 index 000000000..f53005e55 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveForLoopIndices.html @@ -0,0 +1,22 @@ + + +报告使用 withIndex() 函数而非索引变量迭代集合的 for 循环。 +

      使用“移除 'for' 循环中的索引”快速修复可清理代码。

      +

      示例:

      +
      
      +  fun foo(bar: List<String>) {
      +     for ((index : Int, value: String) in bar.withIndex()) { // <== 'index' 未使用
      +         println(value)
      +     }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo(bar: List<String>) {
      +      for (value: String in bar) { // <== '.withIndex()' 和 'index' 已被移除
      +          println(value)
      +      }
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveLiteralUnderscores.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveLiteralUnderscores.html new file mode 100644 index 000000000..4099bfbf7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveLiteralUnderscores.html @@ -0,0 +1,10 @@ + + +报告带下划线的数值文字,并建议通过快速修复将其移除。 +如果您需要降低语言级别,这可能会有用。 +

      该快速修复会移除数值文字中的下划线。 例如,1_000_000 将转换为 1000000

      + +

      仅当项目或模块的语言级别为 7 或更高时,此检查才会报告。

      +

      2020.2 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveRedundantBackticks.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveRedundantBackticks.html new file mode 100644 index 000000000..60ca5386c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveRedundantBackticks.html @@ -0,0 +1,21 @@ + + +报告引用中的冗余反引号。 +

      + 一些 Kotlin 关键字在 Java 中是有效的标识符,例如:inobjectis。 + 如果 Java 库将 Kotlin 关键字用于方法,您仍然可以调用该方法并使用反引号字符 (`) 对其进行转义,例如 foo.`is`(bar)。 + 有时这种转义是冗余的,可以安全地省略。 该检查会发现并报告此类情况,并与“移除冗余反引号”快速修复配对,允许您修改高亮显示的代码。 +

      +

      示例:

      +
      
      +  fun `is`(x: String) {}
      +  fun foo() {
      +      `is`("bar") // 'is' 是一个关键字,反引号为必选项
      +  }
      +
      +  fun `test that smth works as designed`() {} // 可以,复杂标识符有助于改进可读性
      +
      +  val `a` = 1  // 不需要反引号
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveRedundantCallsOfConversionMethods.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveRedundantCallsOfConversionMethods.html new file mode 100644 index 000000000..3f48a4b96 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveRedundantCallsOfConversionMethods.html @@ -0,0 +1,6 @@ + + +报告对转换方法的冗余调用(例如,String 上的 toString()Double 上的 toDouble())。 +

      使用“移除转换方法的冗余调用”快速修复可清理代码。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveRedundantQualifierName.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveRedundantQualifierName.html new file mode 100644 index 000000000..e96f3edd3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveRedundantQualifierName.html @@ -0,0 +1,35 @@ + + +报告关于类名、函数和属性的冗余限定符(或其部分)。 +

      + 完全限定名称是一种明确的标识符,用于指定调用所引用的对象、函数或属性。 + 在可以缩短名称的上下文中,检查会告知机会,关联的“移除冗余限定符名称”快速修复可以修改代码。 +

      +

      示例:

      +
      
      +  package my.simple.name
      +  import kotlin.Int.Companion.MAX_VALUE
      +
      +  class Foo
      +
      +  fun main() {
      +      val a = my.simple.name.Foo()    // 'Foo' 位于声明的 'my.simple.name' 软件包中,限定符冗余
      +      val b = kotlin.Int.MAX_VALUE    // 可以替换为 'MAX_VALUE',因为它已被导入
      +      val c = kotlin.Double.MAX_VALUE // 可以替换为 'Double.MAX_VALUE',因为内置类型会被自动导入
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  package my.simple.name
      +  import kotlin.Int.Companion.MAX_VALUE
      +
      +  class Foo
      +
      +  fun main() {
      +      val a = Foo()
      +      val b = MAX_VALUE
      +      val c = Double.MAX_VALUE
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveRedundantReturn.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveRedundantReturn.html new file mode 100644 index 000000000..397b32b83 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveRedundantReturn.html @@ -0,0 +1,20 @@ + + +

      报告冗余 return

      +

      方法中的最后一条语句会自动返回,在这种情况下使用 return 关键字是冗余的。

      + +

      示例:

      +
      
      +  def test: Int = {
      +    return 3
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  def test: Int = {
      +    3
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveRedundantSpreadOperator.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveRedundantSpreadOperator.html new file mode 100644 index 000000000..9d07c31f5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveRedundantSpreadOperator.html @@ -0,0 +1,24 @@ + + +报告针对一系列 arrayOf 函数调用而使用冗余展开运算符的情况。 +

      使用“移除冗余展开运算符”快速修复可清理代码。

      +

      示例:

      +
      
      +  fun foo(vararg s: String) { }
      +
      +  fun bar(ss: Array<String>) {
      +      foo(*arrayOf("abc"))       // 对于 'foo' 的两次调用,数组创建
      +      foo(*arrayOf(*ss, "zzz"))  // 及其后续分配均冗余
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo(vararg s: String) { }
      +
      +  fun bar(ss: Array<String>) {
      +      foo("abc")
      +      foo(*ss, "zzz")
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveSetterParameterType.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveSetterParameterType.html new file mode 100644 index 000000000..fab2a6372 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveSetterParameterType.html @@ -0,0 +1,23 @@ + + +报告在属性 setter 中明确指定的形参类型。 +

      + setter 形参类型始终与属性类型匹配,因此不要求为显式。 + “移除显式类型规范”快速修复允许相应地修改代码。 +

      +

      示例:

      +
      
      +  fun process(x: Int) {}
      +
      +  var x: Int = 0
      +      set(value: Int) = process(value) // <== 'Int' 规格可以安全忽略
      +
      +

      在应用快速修复后:

      +
      
      +  fun process(x: Int) {}
      +
      +  var x: Int = 0
      +      set(value) = process(value)
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveSingleExpressionStringTemplate.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveSingleExpressionStringTemplate.html new file mode 100644 index 000000000..9b78eb46a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveSingleExpressionStringTemplate.html @@ -0,0 +1,13 @@ + + +报告可以安全移除的单表达式字符串模板。 +

      示例:

      +
        val x = "Hello"
      +  val y = "$x"
      +
      +

      在应用快速修复后:

      +
        val x = "Hello"
      +  val y = x // <== 已更新
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RemoveToStringInStringTemplate.html b/original-plugin-raw/zh/inspectionDescriptions/RemoveToStringInStringTemplate.html new file mode 100644 index 000000000..760aa50dd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RemoveToStringInStringTemplate.html @@ -0,0 +1,19 @@ + + +报告对可以安全移除的字符串模板中的 toString() 的调用。 +

      示例:

      +
        fun foo(a: Int, b: Int) = a + b
      +
      +  fun test(): String {
      +      return "Foo: ${foo(0, 4).toString()}" // 'toString()' 冗余
      +  }
      +
      +

      在应用快速修复后:

      +
        fun foo(a: Int, b: Int) = a + b
      +
      +  fun test(): String {
      +      return "Foo: ${foo(0, 4)}"
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceAllDot.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceAllDot.html new file mode 100644 index 000000000..9566f1e05 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceAllDot.html @@ -0,0 +1,22 @@ + + +报告对其中第一个实参为单一正则表达式元字符实参的 String.replaceAll()String.split() 的调用。 +

      + 正则表达式元字符为 .$|()[{^?*+\ 之一。 它们在正则表达式中有特殊的含义。 + 例如,调用 "ab.cd".replaceAll(".", "-") 将生成 "-----",因为点匹配任意字符。 + 很可能本意是转义变体 "\\."。 +

      + +

      示例:

      +
      
      +  s.replaceAll(".", "-");
      +
      +

      在应用快速修复后:

      +
      
      +  s.replaceAll("\\.", "-");
      +
      + +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceArrayEqualityOpWithArraysEquals.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceArrayEqualityOpWithArraysEquals.html new file mode 100644 index 000000000..d0fbdbbf7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceArrayEqualityOpWithArraysEquals.html @@ -0,0 +1,22 @@ + + +报告 ==!= 运算符的用法,用于应替换为 contentEquals() 的数组。 +

      + ==!= 运算符比较数组引用而不是它们的内容。 +

      +

      示例:

      +
        fun test() {
      +      val a = arrayOf(1, 2, 3)
      +      val b = arrayOf(1, 2, 3)
      +      println(a == b) // 参考比较
      +  }
      +
      +

      在应用快速修复后:

      +
        fun test() {
      +      val a = arrayOf(1, 2, 3)
      +      val b = arrayOf(1, 2, 3)
      +      println(a.contentEquals(b))
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceArrayOfWithLiteral.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceArrayOfWithLiteral.html new file mode 100644 index 000000000..9c284c0e3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceArrayOfWithLiteral.html @@ -0,0 +1,17 @@ + + +报告可以替换为数组文字 [...]arrayOf 调用。 +

      示例:

      +
        annotation class MyAnnotation(val strings: Array<String>)
      +
      +  @MyAnnotation(arrayOf("alpha", "beta", "omega")) // 可替换的 'arrayOf()'
      +  class MyClass
      +
      +

      在应用快速修复后:

      +
        annotation class MyAnnotation(val strings: Array<String>)
      +
      +  @MyAnnotation(["alpha", "beta", "omega"])
      +  class MyClass
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceAssertBooleanWithAssertEquality.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceAssertBooleanWithAssertEquality.html new file mode 100644 index 000000000..6e4456e97 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceAssertBooleanWithAssertEquality.html @@ -0,0 +1,14 @@ + + +报告对可以替换为断言相等函数的 assertTrue()assertFalse() 的调用。 +

      + assertEquals()assertSame() 及其否定对应项 (-Not-) 可以提供有关失败的更多信息。 +

      +

      示例:

      +
        assertTrue(a == b)
      +
      +

      在应用快速修复后:

      +
        assertEquals(a, b)
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceAssignmentWithOperatorAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceAssignmentWithOperatorAssignment.html new file mode 100644 index 000000000..c20841168 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceAssignmentWithOperatorAssignment.html @@ -0,0 +1,21 @@ + + +报告可以替换为运算符赋值的赋值运算。 +

      使用运算符赋值的代码更短,可能更清晰。

      +

      示例:

      +
        x = x + 3;
      +  x = x / 3;
      +
      +

      在应用快速修复后:

      +
        x += 3;
      +  x /= 3;
      +
      + +

      +使用忽略条件运算符选项可忽略 &&||。 将条件运算符替换为运算符赋值将使惰性求值变为及早求值,从而可能改变表达式的语义。 +

      +

      +使用忽略模糊运算符选项可忽略不太为人所知的 ^%。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceAssignmentWithOperatorAssignmentJS.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceAssignmentWithOperatorAssignmentJS.html new file mode 100644 index 000000000..f2458a242 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceAssignmentWithOperatorAssignmentJS.html @@ -0,0 +1,17 @@ + + + +报告可由运算符赋值替换的赋值运算,以使代码更简洁、更清晰。 +

      + 示例: +

      +  x = x + 3;
      +  x = x / 3;
      +
      +

      应用快速修复后,结果如下所示: +

      +  x += 3;
      +  x /= 3;
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceAssociateFunction.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceAssociateFunction.html new file mode 100644 index 000000000..0da1f9b7e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceAssociateFunction.html @@ -0,0 +1,30 @@ + + +报告对可以替换为 associateBy()associateWith()associate()associateTo() 的调用。 +

      + 两个函数都接受应用于给定序列或集合(作为接收器)的元素的转换器函数。 + 然后该对函数被用于构建结果 Map。 +

      +

      + 鉴于转换器引用 itassociate[To]() 调用可以替换为性能更高的 associateBy()associateWith()。 +

      +

      示例:

      +
        fun getKey(i: Int) = 1L
      +  fun getValue(i: Int) = 1L
      +
      +  fun test() {
      +      arrayOf(1).associate { getKey(it) to it }  // 可替换的 'associate()'
      +      listOf(1).associate { it to getValue(it) } // 可替换的 'associate()'
      +  }
      +
      +

      在应用快速修复后:

      +
        fun getKey(i: Int) = 1L
      +  fun getValue(i: Int) = 1L
      +
      +  fun test() {
      +      arrayOf(1).associateBy { getKey(it) }
      +      listOf(1).associateWith { getValue(it) }
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceCallWithBinaryOperator.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceCallWithBinaryOperator.html new file mode 100644 index 000000000..1ce9528da --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceCallWithBinaryOperator.html @@ -0,0 +1,15 @@ + + +报告可以替换为二元运算符(特别是与比较相关的运算符)的函数调用。 +

      示例:

      +
        fun test(): Boolean {
      +      return 2.compareTo(1) > 0 // 可替换的 'compareTo()'
      +  }
      +
      +

      在应用快速修复后:

      +
        fun test(): Boolean {
      +      return 2 > 1
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceCollectionCountWithSize.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceCollectionCountWithSize.html new file mode 100644 index 000000000..f7fe0e050 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceCollectionCountWithSize.html @@ -0,0 +1,24 @@ + + +报告对 Collection<T>.count() 的调用。 +

      + 此函数调用可以替换为 .size。 +

      +

      + .size 形式可以确保运算是 O(1) 并且不会分配额外的对象,而 count() 可能与 Iterable<T>.count() 混淆,后者是 O(n) 和分配。 +
      +

      +

      示例:

      +
        fun foo() {
      +      var list = listOf(1,2,3)
      +      list.count() // 可替换的 'count()'
      +  }
      +
      +

      在应用快速修复后:

      +
        fun foo() {
      +      var list = listOf(1,2,3)
      +      list.size
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceEnableIf.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceEnableIf.html new file mode 100644 index 000000000..c7308b9a8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceEnableIf.html @@ -0,0 +1,5 @@ + + +报告可以转换为 requires 子句的 std::enable_if 结构。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceGetOrSet.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceGetOrSet.html new file mode 100644 index 000000000..4e291fee3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceGetOrSet.html @@ -0,0 +1,33 @@ + + +报告对可通过索引运算符 [] 替换的 getset 函数的显式调用。 +

      + Kotlin 允许对类型的预定义运算符集进行自定义实现。 + 要重载运算符,您可以使用 operator 修饰符标记相应的函数: +

      
      +  operator fun get(index: Int) {}
      +  operator fun set(index: Int, value: Int) {}
      +    
      + +以上函数对应于索引运算符。 + +

      示例:

      +
        class Test {
      +      operator fun get(i: Int): Int = 0
      +  }
      +
      +  fun test() {
      +      Test().get(0) // 可替换的 'get()'
      +  }
      +
      +

      在应用快速修复后:

      +
        class Test {
      +      operator fun get(i: Int): Int = 0
      +  }
      +
      +  fun test() {
      +      Test()[0]
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceGuardClauseWithFunctionCall.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceGuardClauseWithFunctionCall.html new file mode 100644 index 000000000..bcb6cab1b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceGuardClauseWithFunctionCall.html @@ -0,0 +1,15 @@ + + +报告可以替换为函数调用的临界子句。 +

      示例:

      +
        fun test(foo: Int?) {
      +      if (foo == null) throw IllegalArgumentException("foo") // 可替换的子句
      +  }
      +
      +

      在应用快速修复后:

      +
        fun test(foo: Int?) {
      +      checkNotNull(foo)
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceInefficientStreamCount.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceInefficientStreamCount.html new file mode 100644 index 000000000..f372b3192 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceInefficientStreamCount.html @@ -0,0 +1,18 @@ + + +报告可以优化并且以 count() 运算结束的 Stream API 调用链。 +

      + 以下调用链替换为此检查: +

      +
        +
      • Collection.stream().count()Collection.size(). 在 Java 8 中,Collection.stream().count() 实际上是通过迭代集合元素来进行计数,而 Collection.size() 对于大多数集合来说速度要快得多。
      • +
      • Stream.flatMap(Collection::stream).count()Stream.mapToLong(Collection::size).sum(). 同样,不需要遍历所有嵌套集合。 相反,它们的大小可以相加。
      • +
      • Stream.filter(o -> ...).count() > 0Stream.anyMatch(o -> ...). 与初始调用不同,一旦找到匹配元素后 anyMatch() 就可以立即停止计算。
      • +
      • Stream.filter(o -> ...).count() == 0Stream.noneMatch(o -> ...). 与以上相似。
      • +
      +

      + 请注意,如果替换涉及 anyMatch() 等短路操作,那么中间流操作产生副作用时,可能会出现明显的行为变化。 在 Stream API 调用中通常应避免副作用。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceIsEmptyWithIfEmpty.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceIsEmptyWithIfEmpty.html new file mode 100644 index 000000000..3434a4c97 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceIsEmptyWithIfEmpty.html @@ -0,0 +1,28 @@ + + +报告 if 语句中的 isEmptyisBlankisNotEmptyisNotBlank 调用以赋予默认值。 +

      该快速修复会将 if 条件替换为 ifEmptyifBlank 调用。

      +

      示例:

      +
      
      +  fun test(list: List<Int>): List<Int> {
      +      return if (list.isEmpty()) {
      +          println()
      +          foo()
      +      } else {
      +          list
      +      }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun test(list: List<Int>): List<Int> {
      +      return list.ifEmpty {
      +          println()
      +          foo()
      +      }
      +  }
      +
      + +

      此检查仅报告项目或模块的 Kotlin 语言版本是否为 1.3 或更高版本。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceJavaStaticMethodWithKotlinAnalog.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceJavaStaticMethodWithKotlinAnalog.html new file mode 100644 index 000000000..9ed1a2573 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceJavaStaticMethodWithKotlinAnalog.html @@ -0,0 +1,22 @@ + + +报告可以替换为 Kotlin 函数的 Java 方法调用,例如 System.out.println()。 +

      替换该代码会去除 Java 的依赖项并使 Kotlin 代码更地道。

      +

      该快速修复会替换相同 Kotlin 调用上的 Java 方法调用。

      +

      示例:

      +
      
      +  import java.util.Arrays
      +
      +  fun main() {
      +      val a = Arrays.asList(1, 3, null)
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun main() {
      +      val a = listOf(1, 3, null)
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceManualRangeWithIndicesCalls.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceManualRangeWithIndicesCalls.html new file mode 100644 index 000000000..841cdc029 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceManualRangeWithIndicesCalls.html @@ -0,0 +1,24 @@ + + +报告可以替换为 Collection.indicesfor 循环内集合迭代的 untilrangeTo 运算符。 +

      使用语法糖可使代码更简单。

      +

      该快速修复会将手动范围替换为相应的构造。

      +

      示例:

      +
      
      +  fun main(args: Array<String>) {
      +      for (index in 0..args.size - 1) {
      +          println(args[index])
      +      }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun main(args: Array<String>) {
      +      for (element in args) {
      +          println(element)
      +      }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceMapIndexedWithListGenerator.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceMapIndexedWithListGenerator.html new file mode 100644 index 000000000..496189f30 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceMapIndexedWithListGenerator.html @@ -0,0 +1,17 @@ + + +报告可以替换为 List 生成器的 mapIndexed 调用。 +

      示例:

      +
      
      +  val a = listOf(1, 2, 3).mapIndexed { i, _ ->
      +      i + 42
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  val a = List(listOf(1, 2, 3).size) { i ->
      +          i + 42
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceNegatedIsEmptyWithIsNotEmpty.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceNegatedIsEmptyWithIsNotEmpty.html new file mode 100644 index 000000000..fcd0dc521 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceNegatedIsEmptyWithIsNotEmpty.html @@ -0,0 +1,26 @@ + + +报告集合与 String 的否定 isEmpty()isNotEmpty(),或者 StringisBlank()isNotBlank()。 +

      使用相应函数可使代码更简单。

      +

      该快速修复会将否定调用替换为标准库中的相应调用。

      +

      示例:

      +
      
      +  fun main() {
      +      val list = listOf(1,2,3)
      +      if (!list.isEmpty()) {
      +          // 执行 smth
      +      }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun main() {
      +      val list = listOf(1,2,3)
      +      if (list.isNotEmpty()) {
      +          // 执行 smth
      +      }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceNotNullAssertionWithElvisReturn.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceNotNullAssertionWithElvisReturn.html new file mode 100644 index 000000000..abb8d4c6f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceNotNullAssertionWithElvisReturn.html @@ -0,0 +1,20 @@ + + +报告可以替换为 elvis 运算符和 return (?: return) 的非 null 断言 (!!) 调用。 +

      非 null 断言会产生非预期的 NPE (NullPointerException)。 比较好的做法是避免使用 !!

      +

      该快速修复会将非 null 断言替换为 returnreturn null

      +

      示例:

      +
      
      +  fun test(number: Int?) {
      +      val x = number!!
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun test(number: Int?) {
      +      val x = number ?: return
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceNullCheck.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceNullCheck.html new file mode 100644 index 000000000..81ec2d999 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceNullCheck.html @@ -0,0 +1,23 @@ + + +报告可以替换为 Objects/Stream static 方法的 null 检查。 +

      示例:

      +
      
      +if (message == null) {
      +  application.messageStorage().save(new EmptyMessage());
      +} else {
      +  application.messageStorage().save(message);
      +}
      +
      +

      在应用快速修复后:

      +
      
      +  application.messageStorage()
      +    .save(Objects.requireNonNullElseGet(message, () -> new EmptyMessage()));
      +
      + +

      + 使用替换长度大于原始长度时不发出警告选项,可以忽略替换长度超过原始代码的情况。 +

      +

      2017.3 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplacePutWithAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/ReplacePutWithAssignment.html new file mode 100644 index 000000000..03dec9f31 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplacePutWithAssignment.html @@ -0,0 +1,20 @@ + + +报告可以替换为索引运算符 ([]) 的 map.put 函数调用。 +

      使用语法糖可使代码更简单。

      +

      该快速修复会将 put 调用替换为赋值。

      +

      示例:

      +
      
      +  fun foo(map: MutableMap<Int, String>) {
      +      map.put(42, "foo")
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo(map: MutableMap<Int, String>) {
      +      map[42] = "foo"
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceRangeStartEndInclusiveWithFirstLast.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceRangeStartEndInclusiveWithFirstLast.html new file mode 100644 index 000000000..580978a5a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceRangeStartEndInclusiveWithFirstLast.html @@ -0,0 +1,20 @@ + + +报告装箱的 Range.startRange.endInclusive 属性。 +

      这些属性可替换为未装箱的 firstlast 属性以避免冗余调用。

      +

      该快速修复会将 startendInclusive 属性替换为相应的 firstlast

      +

      示例:

      +
      
      +  fun foo(range: CharRange) {
      +      val lastElement = range.endInclusive
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo(range: CharRange) {
      +      val lastElement = range.last
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceRangeToWithUntil.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceRangeToWithUntil.html new file mode 100644 index 000000000..c088e12dd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceRangeToWithUntil.html @@ -0,0 +1,24 @@ + + +报告对 rangeTo.. 运算符的调用,而非对 until 的调用。 +

      使用相应函数可使代码更简单。

      +

      该快速修复会将 rangeTo.. 调用替换为 until

      +

      示例:

      +
      
      +  fun foo(a: Int) {
      +      for (i in 0..a - 1) {
      +
      +      }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo(a: Int) {
      +      for (i in 0 until a) {
      +
      +      }
      +  }
      +
      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceSizeCheckWithIsNotEmpty.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceSizeCheckWithIsNotEmpty.html new file mode 100644 index 000000000..b6fce04f5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceSizeCheckWithIsNotEmpty.html @@ -0,0 +1,22 @@ + + +报告应替换为 isNotEmpty()Collections/Array/String 的大小检查。 +

      使用 isNotEmpty() 可使代码更简单。

      +

      该快速修复会将大小检查替换为 isNotEmpty()

      +

      示例:

      +
      
      +  fun foo() {
      +      val arrayOf = arrayOf(1, 2, 3)
      +      arrayOf.size > 0
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo() {
      +      val arrayOf = arrayOf(1, 2, 3)
      +      arrayOf.isNotEmpty()
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceSizeZeroCheckWithIsEmpty.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceSizeZeroCheckWithIsEmpty.html new file mode 100644 index 000000000..9a2e7ce43 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceSizeZeroCheckWithIsEmpty.html @@ -0,0 +1,22 @@ + + +报告应替换为 isEmpty()Collections/Array/Stringsize == 0 检查。 +

      使用 isEmpty() 可使代码更简单。

      +

      该快速修复会将大小检查替换为 isEmpty()

      +

      示例:

      +
      
      +  fun foo() {
      +      val arrayOf = arrayOf(1, 2, 3)
      +      arrayOf.size == 0
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo() {
      +      val arrayOf = arrayOf(1, 2, 3)
      +      arrayOf.isEmpty()
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceStringFormatWithLiteral.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceStringFormatWithLiteral.html new file mode 100644 index 000000000..97a69294f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceStringFormatWithLiteral.html @@ -0,0 +1,24 @@ + + +报告可以替换为字符串模板的 String.format 调用。 +

      使用字符串模板可使代码更简单。

      +

      该快速修复会将调用替换为字符串模板。

      +

      示例:

      +
      
      +  fun main() {
      +      val id = "abc"
      +      val date = "123"
      +      val s = String.format("%s_%s_%s", id, date, id)
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun main() {
      +      val id = "abc"
      +      val date = "123"
      +      val s = "${id}_${date}_$id"
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceSubstringWithDropLast.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceSubstringWithDropLast.html new file mode 100644 index 000000000..71769e932 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceSubstringWithDropLast.html @@ -0,0 +1,20 @@ + + +报告可以替换为 s.dropLast(x)s.substring(0, s.length - x) 等调用。 +

      使用相应函数可使代码更简单。

      +

      该快速修复会将 substring 调用替换为 dropLast

      +

      示例:

      +
      
      +  fun foo(s: String) {
      +      s.substring(0, s.length - 5)
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo(s: String) {
      +      s.dropLast(5)
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceSubstringWithIndexingOperation.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceSubstringWithIndexingOperation.html new file mode 100644 index 000000000..9d3a66b0d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceSubstringWithIndexingOperation.html @@ -0,0 +1,20 @@ + + +报告可以替换为 "abc"[0]"abc".substring(0, 1) 等调用。 +

      按索引获取元素可使代码更简单。

      +

      该快速修复会将 substring 调用替换为索引运算符。

      +

      示例:

      +
      
      +  fun foo() {
      +      "abc".substring(0, 1)
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo() {
      +      "abc"[0]
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceSubstringWithSubstringAfter.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceSubstringWithSubstringAfter.html new file mode 100644 index 000000000..de0ef182b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceSubstringWithSubstringAfter.html @@ -0,0 +1,20 @@ + + +报告可以替换为 s.substringAfter(x)s.substring(s.indexOf(x)) 等调用。 +

      使用 s.substringAfter(x) 可使代码更简单。

      +

      该快速修复会将 substring 调用替换为 substringAfter

      +

      示例:

      +
      
      +  fun foo(s: String) {
      +      s.substring(s.indexOf('x'))
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo(s: String) {
      +      s.substringAfter('x')
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceSubstringWithSubstringBefore.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceSubstringWithSubstringBefore.html new file mode 100644 index 000000000..a48a98ccf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceSubstringWithSubstringBefore.html @@ -0,0 +1,20 @@ + + +报告可以替换为 s.substringBefore(x)s.substring(0, s.indexOf(x)) 等调用。 +

      使用 substringBefore() 可使代码更简单。

      +

      该快速修复会将 substring 调用替换为 substringBefore

      +

      示例:

      +
      
      +  fun foo(s: String) {
      +      s.substring(0, s.indexOf('x'))
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo(s: String) {
      +      s.substringBefore('x')
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceSubstringWithTake.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceSubstringWithTake.html new file mode 100644 index 000000000..bfbe76b13 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceSubstringWithTake.html @@ -0,0 +1,20 @@ + + +报告可以替换为 s.take(x)s.substring(0, x) 等调用。 +

      使用 take() 可使代码更简单。

      +

      该快速修复会将 substring 调用替换为 take()

      +

      示例:

      +
      
      +  fun foo(s: String) {
      +      s.substring(0, 10)
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo(s: String) {
      +      s.take(10)
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceToStringWithStringTemplate.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceToStringWithStringTemplate.html new file mode 100644 index 000000000..8b251bcf1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceToStringWithStringTemplate.html @@ -0,0 +1,22 @@ + + +报告可以替换为字符串模板的 toString 函数调用。 +

      使用字符串模板可使代码更简单。

      +

      该快速修复会将 toString 替换为字符串模板。

      +

      示例:

      +
      
      +  fun test(): String {
      +      val x = 1
      +      return x.toString()
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun test(): String {
      +      val x = 1
      +      return "$x"
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceToWithInfixForm.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceToWithInfixForm.html new file mode 100644 index 000000000..244e130ad --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceToWithInfixForm.html @@ -0,0 +1,20 @@ + + +报告可以替换为中缀形式的 to 函数调用。 +

      使用中缀形式可使代码更简单。

      +

      该快速修复会将 to 替换为中缀形式。

      +

      示例:

      +
      
      +  fun foo(a: Int, b: Int) {
      +      val pair = a.to(b)
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo(a: Int, b: Int) {
      +      val pair = a to b
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceToWithUntil.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceToWithUntil.html new file mode 100644 index 000000000..b8e339220 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceToWithUntil.html @@ -0,0 +1,17 @@ + + +

      报告包含范围而不是独占范围。

      + +

      该快速修复会将包含范围转换为独占范围。

      + +

      示例:

      +
      
      +  0 to x - 1
      +
      +

      在应用快速修复后:

      +
      
      +  0 until x
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceWithEnumMap.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceWithEnumMap.html new file mode 100644 index 000000000..931459824 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceWithEnumMap.html @@ -0,0 +1,24 @@ + + +报告可以替换为 EnumMap 构造函数调用的 hashMapOf 函数或 HashMap 构造函数调用。 +

      使用 EnumMap 构造函数可使代码更简单。

      +

      该快速修复会将函数调用替换为 EnumMap 构造函数调用。

      +

      示例:

      +
      
      +  enum class E {
      +      A, B
      +  }
      +
      +  fun getMap(): Map<E, String> = hashMapOf()
      +
      +

      在应用快速修复后:

      +
      
      +  enum class E {
      +      A, B
      +  }
      +
      +  fun getMap(): Map<E, String> = EnumMap(E::class.java)
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceWithFlatten.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceWithFlatten.html new file mode 100644 index 000000000..9f9dfdb5b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceWithFlatten.html @@ -0,0 +1,27 @@ + + +

      报告在集合的集合上模拟 .flatten 的代码。

      + +

      示例: +

      
      +  Seq(seq1, seq2).flatMap(identity)
      +  Seq(seq1, seq2).flatMap(x => identity(x))
      +  Seq(seq1, seq2).flatMap(x => x)
      +
      +  val nestedOption = Option(Some(10))
      +  nestedOption.getOrElse(None)
      +  nestedOption.map(_.get)
      +
      +

      在应用快速修复后:

      +
      
      +  Seq(seq1, seq2).flatten
      +  Seq(seq1, seq2).flatten
      +  Seq(seq1, seq2).flatten
      +
      +  val nestedOption = Option(Some(10))
      +  nestedOption.flatten
      +  nestedOption.flatten
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceWithIgnoreCaseEquals.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceWithIgnoreCaseEquals.html new file mode 100644 index 000000000..04885f366 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceWithIgnoreCaseEquals.html @@ -0,0 +1,25 @@ + + +报告可以替换为 equals(..., ignoreCase = true) 的不区分大小写的比较。 +

      使用 equals(),无需分配具有 toLowerCase()toUpperCase() 的额外字符串即可比较字符串。

      +

      该快速修复会将使用 toLowerCase()toUpperCase() 的不区分大小写的比较替换为 equals(..., ignoreCase = true)

      +

      注意:可能会更改某些区域设置的语义。

      +

      示例:

      +
      
      +  fun main() {
      +      val a = "KoTliN"
      +      val b = "KOTLIN"
      +      println(a.toLowerCase() == b.toLowerCase())
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun main() {
      +      val a = "KoTliN"
      +      val b = "KOTLIN"
      +      println(a.equals(b, ignoreCase = true))
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceWithImportAlias.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceWithImportAlias.html new file mode 100644 index 000000000..33f491153 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceWithImportAlias.html @@ -0,0 +1,19 @@ + + +报告可以替换为现有导入别名的完全限定名称。 +

      示例:

      +
      
      +import foo.Foo as Bar
      +fun main() {
      +    foo.Foo()
      +}
      +
      +

      在应用快速修复后:

      +
      
      +import foo.Foo as Bar
      +fun main() {
      +    Bar()
      +}
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReplaceWithOperatorAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/ReplaceWithOperatorAssignment.html new file mode 100644 index 000000000..9305b3739 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReplaceWithOperatorAssignment.html @@ -0,0 +1,21 @@ + + +报告带简单赋值(例如 y = y + x)且可以替换为运算符赋值的变量的修改。 +

      该快速修复会将赋值替换为赋值运算符。

      +

      示例:

      +
      
      +  fun foo() {
      +      val list = mutableListOf(1, 2, 3)
      +      list = list + 4
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo() {
      +      val list = mutableListOf(1, 2, 3)
      +      list += 4
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RequiredArtifactTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RequiredArtifactTypeInspection.html new file mode 100644 index 000000000..206dc57f2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RequiredArtifactTypeInspection.html @@ -0,0 +1,5 @@ + + +

      报告批处理文件中不正确的工件类型。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RequiredAttributes.html b/original-plugin-raw/zh/inspectionDescriptions/RequiredAttributes.html new file mode 100644 index 000000000..bbc44f924 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RequiredAttributes.html @@ -0,0 +1,5 @@ + + +报告 XML/HTML 标记中缺少的强制特性。 建议配置不应报告的特性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RequiredBeanTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RequiredBeanTypeInspection.html new file mode 100644 index 000000000..560bfb2f9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RequiredBeanTypeInspection.html @@ -0,0 +1,19 @@ + + +

      报告在 XML 应用程序上下文中定义的自定义架构 Bean 注入的不正确类型。

      + +

      示例:

      +
      
      +  public class SimpleBean{}
      +
      +  <beans ...>
      +    <bean class="SimpleBean" id="simpleBean"/>
      +       <mvc:annotation-driven
      +         conversion-service="simpleBean"      <!-- reports "Bean must be of 'org.springframework.core.convert.ConversionService' type" -->
      +         message-codes-resolver="simpleBean"  <!-- 报告 "Bean 必须为 'org.springframework.validation.MessageCodesResolver' 类型" -->
      +         validator="simpleBean"               <!-- 报告 "Bean 必须为 'org.springframework.validation.Validator' 类型" -->
      +    />
      +  </beans>
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReservedWordUsedAsNameJS.html b/original-plugin-raw/zh/inspectionDescriptions/ReservedWordUsedAsNameJS.html new file mode 100644 index 000000000..20a5e21ad --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReservedWordUsedAsNameJS.html @@ -0,0 +1,7 @@ + + +报告用作名称的 JavaScript 保留字。 JavaScript 规范 +保留了许多当前未用作关键字的词语。 如果后续版本的 JavaScript 开始使用这些词语作为关键字, +使用这些词语作为标识符可能会破坏代码。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ResourceNotFound.html b/original-plugin-raw/zh/inspectionDescriptions/ResourceNotFound.html new file mode 100644 index 000000000..baa110afe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ResourceNotFound.html @@ -0,0 +1,5 @@ + + +报告对资源(NIB、图像等)的未解析引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ResourceType.html b/original-plugin-raw/zh/inspectionDescriptions/ResourceType.html new file mode 100644 index 000000000..ae9815f9c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ResourceType.html @@ -0,0 +1,17 @@ + + +此检查会查看使用各种支持的注解(如 RequiresPermission 或 UiThread)进行注解的 Android API 调用,并标记未按照注解指定的方式正确使用 API 的任何调用。 +

      +由此检查标记的错误示例: +
        +
      • 将错误类型的资源整数(如 R.string)传递给需要不同类型(如 R.dimen)的 API。
      • +
      • 忘记在需要它的方法中调用被覆盖的方法(通过 super)
      • +
      • 调用需要权限但未在清单中声明该权限的方法
      • +
      • 将资源颜色引用传递给需要 RGB 整数值的方法。
      • +
      +…以及更多。 +

      +有关详细信息,请参阅以下文档: +http://developer.android.com/tools/debugging/annotations.html + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RestParamTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RestParamTypeInspection.html new file mode 100644 index 000000000..fc4d8b31f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RestParamTypeInspection.html @@ -0,0 +1,15 @@ + + +

      报告具有不受支持类型的资源方法形参(使用 @PathParam@QueryParam 等注解)。

      +

      注解的形参、字段或属性的类型必须满足以下要求之一:

      +
        +
      1. 为基元类型
      2. +
      3. 有一个接受单个 String 实参的构造函数
      4. +
      5. 有一个名为 valueOf()fromString() 的 static 方法,它接受单个 String 实参,例如 Integer.valueOf(String)。 +
      6. +
      7. 拥有 ParamConverterProvider JAX-RS 扩展 SPI 的注册实现,它返回一个能够将字符串转换为特定类型的 ParamConverter 实例。 +
      8. +
      9. List<T>Set<T>SortedSet<T>,其中 T 为 2、3 或 4 以上。 生成的集合为只读。
      10. +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RestResourceMethodInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RestResourceMethodInspection.html new file mode 100644 index 000000000..d74005ca9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RestResourceMethodInspection.html @@ -0,0 +1,6 @@ + + +

      报告使用 @Path 注解的没有资源方法的类。 + 根资源类必须至少有一个使用 @Path 或任何 @HttpMethod@GET @POST等)注解的资源方法。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RestRoleInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RestRoleInspection.html new file mode 100644 index 000000000..0b3b85bb2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RestRoleInspection.html @@ -0,0 +1,17 @@ + + +

      报告 reStructuredText 文件中未定义的角色。

      +

      示例:

      +
      +.. role:: custom
      +.. role:: newcustom(emphasis)
      +
      +:custom:`interpreted text` 使用示例
      +:newcustom:`interpreted text` 使用示例
      +:emphasis:`interpreted text` 使用示例
      +
      +
      +某些文本使用未定义的角色 :undef:`interpreted text`
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RestWrongDefaultValueInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RestWrongDefaultValueInspection.html new file mode 100644 index 000000000..0ece5a5df --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RestWrongDefaultValueInspection.html @@ -0,0 +1,12 @@ + + +

      如果 @DefaultValue 的值无法转换为指定类型的形参,则报告该值。

      +

      示例:

      +
      
      +  @GET
      +  @Path("/{n}")
      +  public String get(@PathParam("n") @DefaultValue("III") int n) { // 错误:无法将 'III' 转换为 int
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RestrictReturnStatementTargetMigration.html b/original-plugin-raw/zh/inspectionDescriptions/RestrictReturnStatementTargetMigration.html new file mode 100644 index 000000000..982e20b49 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RestrictReturnStatementTargetMigration.html @@ -0,0 +1,23 @@ + + +报告未指向函数的标签。 +

      禁止声明不表示函数的目标标签。

      +

      该快速修复会移除标签。

      +

      示例:

      +
      
      +  fun testValLabelInReturn() {
      +      L@ val fn = { return@L }
      +      fn()
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun testValLabelInReturn() {
      +      L@ val fn = { return }
      +      fn()
      +  }
      +
      + +

      仅当项目或模块的语言级别为 1.4 或更高时,此检查才会报告。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Restricted_Python_calls.html b/original-plugin-raw/zh/inspectionDescriptions/Restricted_Python_calls.html new file mode 100644 index 000000000..2943c3a62 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Restricted_Python_calls.html @@ -0,0 +1,6 @@ + + +

      报告受到 Google App Engine 沙盒的限制,并会导致生产服务器上 +出现故障的 Python 功能的用法。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ResultOfObjectAllocationIgnored.html b/original-plugin-raw/zh/inspectionDescriptions/ResultOfObjectAllocationIgnored.html new file mode 100644 index 000000000..a2f5c81f8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ResultOfObjectAllocationIgnored.html @@ -0,0 +1,12 @@ + + +报告其中分配的对象被忽略,并且既不分配给变量,也不以其他方式使用的对象分配。 +

      + 此类分配表达式虽然在 Java 中合法,但通常要么是无意为之,要么表明存在非常奇怪的对象初始化策略。 +

      + +

      + 使用这些选项可列出此检查应忽略其分配的类。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ResultSetIndexZero.html b/original-plugin-raw/zh/inspectionDescriptions/ResultSetIndexZero.html new file mode 100644 index 000000000..dddedc438 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ResultSetIndexZero.html @@ -0,0 +1,13 @@ + + +报告访问 java.sql.ResultSetjava.sql.PreparedStatement 的第 0 列的尝试。 +由于历史原因,java.sql.ResultSetjava.sql.PreparedStatement 的列不是从 0 开始编号,而是从 1 开始编号,并且访问第 0 列是 JDBC 编程中的常见错误。 +

      示例:

      +
      
      +  String getName(ResultSet rs) {
      +    return rs.getString(0);
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReturnFromFinallyBlock.html b/original-plugin-raw/zh/inspectionDescriptions/ReturnFromFinallyBlock.html new file mode 100644 index 000000000..4babdfa5e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReturnFromFinallyBlock.html @@ -0,0 +1,15 @@ + + +报告 finally 块中的 return 语句。 +

      虽然偶尔是有意为之,但此类 return 语句可能会掩盖抛出的异常,并导致调试复杂化。

      + +

      示例:

      +
      
      +  try {
      +    foo();
      +  } finally {
      +    if (bar()) return;
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReturnFromFinallyBlockJS.html b/original-plugin-raw/zh/inspectionDescriptions/ReturnFromFinallyBlockJS.html new file mode 100644 index 000000000..ea0bb618d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReturnFromFinallyBlockJS.html @@ -0,0 +1,5 @@ + + +报告 finally 块中的 return 语句。 此类 return 语句可能会掩盖抛出的异常,并导致调试复杂化。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReturnNull.html b/original-plugin-raw/zh/inspectionDescriptions/ReturnNull.html new file mode 100644 index 000000000..6f47f92ca --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReturnNull.html @@ -0,0 +1,47 @@ + + +报告返回值为 nullreturn 语句。 +虽然偶尔有用,但此结构可能导致代码因更容易出现 NullPointerException 而失败。 +

      + 如果方法设计为返回 null,建议使用 @Nullable 注解来标记 - 此类方法将被此检查忽略。 +

      +

      示例:

      +
      
      +  class Person {
      +    public String getName () {
      +      return null;
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Person {
      +    @Nullable
      +    public String getName () {
      +      return null;
      +    }
      +  }
      +
      +

      + 如果返回类型为 java.util.Optional,建议使用另外的快速修复将 null 转换为 Optional.empty()。 +

      + +

      + 使用以下选项配置检查: +

      +
        +
      • + 是否忽略 private 方法。 + 这也将忽略从匿名类和 lambda 返回的 null。 +
      • +
      • + 应报告数组返回的 null 值、集合对象返回的值、普通对象返回的值还是三者的组合。 + 总是报告返回类型为 java.util.Optional 的方法中返回的 null。 +
      • +
      • + 点击配置注解以指定哪些注解应视为 'nullable'。 +
      • +
      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReturnOfInnerClass.html b/original-plugin-raw/zh/inspectionDescriptions/ReturnOfInnerClass.html new file mode 100644 index 000000000..ff2d0be14 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReturnOfInnerClass.html @@ -0,0 +1,16 @@ + + +报告返回匿名类、局部类或内部类实例的 return 语句。 +此类实例会保持对外部实例的隐式引用,这可以防止外部实例被垃圾回收。 +任何返回此类实例的方法的调用方都可能通过保留返回的实例而导致内存泄漏。 + +

      + 配置检查: +

      +
        +
      • 使用忽略非 public 方法的返回值选项可以忽略来自 protected 或 package-private 方法的返回值。 + 始终忽略来自 private 方法的返回。 +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReturnSeparatedFromComputation.html b/original-plugin-raw/zh/inspectionDescriptions/ReturnSeparatedFromComputation.html new file mode 100644 index 000000000..8a76e090d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReturnSeparatedFromComputation.html @@ -0,0 +1,28 @@ + + +报告返回局部变量的 return 语句,其中变量的值在同一方法中的其他位置计算。 +

      快速修复通过将 return 语句移动到计算变量值的位置来内联返回的变量。 + 当返回值无法内联到 return 语句中时,快速修复尝试将 return 语句移动到尽可能接近计算的返回值的位置。

      +

      示例:

      +
      
      +  int n = -1;
      +  for (int i = 0; i < a.length; i++) {
      +    if (a[i] == b) {
      +      n = i;
      +      break;
      +    }
      +  }
      +  return n;
      +
      +

      在应用快速修复后:

      +
      
      +  int n = -1;
      +  for (int i = 0; i < a.length; i++) {
      +    if (a[i] == b) {
      +      return i;
      +    }
      +  }
      +  return n;
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReturnThis.html b/original-plugin-raw/zh/inspectionDescriptions/ReturnThis.html new file mode 100644 index 000000000..a620abecb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReturnThis.html @@ -0,0 +1,17 @@ + + +报告返回 this 的方法。 +

      + 虽然此类返回是有效的,但很少有必要,并且通常表明该方法旨在被用作类似方法调用链的一部分(例如,buffer.append("foo").append( "bar").append("baz"))。 + 许多编码标准不赞成此类链。 +

      +

      示例:

      +
      
      +  public Builder append(String str) {
      +    // [...]
      +    return this;
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReuseOfLocalVariable.html b/original-plugin-raw/zh/inspectionDescriptions/ReuseOfLocalVariable.html new file mode 100644 index 000000000..2dc2d8b34 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReuseOfLocalVariable.html @@ -0,0 +1,17 @@ + + +报告使用与其原始用途无关的新值覆盖其值而进行“重用”的局部变量。 +

      此类局部变量重用可能令人困惑,因为局部变量的预期语义可能随每种用法而异。 如果由于代码变更,视为被覆盖的值实际看似处于活动状态,它也可能容易出现错误。 保持变量生命周期尽可能短不失为一种好做法,不要为了简洁而重用局部变量。

      + +

      示例:

      +
      
      +    void x() {
      +        String s = "one";
      +        System.out.println("s = " + s);
      +        s = "two"; //重用局部变量 's'
      +        System.out.println("s = " + s);
      +    }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReuseOfLocalVariableJS.html b/original-plugin-raw/zh/inspectionDescriptions/ReuseOfLocalVariableJS.html new file mode 100644 index 000000000..f639c2013 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReuseOfLocalVariableJS.html @@ -0,0 +1,7 @@ + + +报告重用局部变量并使用无关 +初始变量用法的新值覆盖其值的情况。 以这种方式重用局部变量可能会造成混淆, +因为局部变量的预期语义可能随每种用法而变化。 如果代码更改导致预期被覆盖的值任然存在,那么也可能导致错误。 优良的作法是保持变量生命周期尽可能短,而不要为了简洁重用局部变量。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReverseFind.html b/original-plugin-raw/zh/inspectionDescriptions/ReverseFind.html new file mode 100644 index 000000000..b53d39888 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReverseFind.html @@ -0,0 +1,16 @@ + + +

      报告在调用 find 之前显式反转集合的情况。

      + +

      该快速修复将使用 xs.findLast(f),这在某些情况下可能更有效。

      +

      示例:

      +
      
      +  Seq(1, 2).reverse.find(_ == 2)
      +
      +

      在应用快速修复后:

      +
      
      +  Seq(1, 2).findLast(_ == 2)
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReverseIterator.html b/original-plugin-raw/zh/inspectionDescriptions/ReverseIterator.html new file mode 100644 index 000000000..e3fa597c9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReverseIterator.html @@ -0,0 +1,19 @@ + + +

      报告何时显式反转集合以获取反向迭代器。

      + +

      该快速修复改用 reverseIterator

      + +

      示例:

      +
      
      +  var seq: Seq[Int]
      +  seq.reverse.iterator
      +
      +

      在应用快速修复后:

      +
      
      +  var seq: Seq[Int]
      +  seq.reverseIterator
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ReverseTakeReverse.html b/original-plugin-raw/zh/inspectionDescriptions/ReverseTakeReverse.html new file mode 100644 index 000000000..da80f111d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ReverseTakeReverse.html @@ -0,0 +1,15 @@ + + +

      报告 seq.reverse.take(n).reverse

      + +

      示例:

      +
      
      +  seq.reverse.take(n).reverse
      +
      +

      在应用快速修复后:

      +
      
      +  seq.reverse.take(1).reverse
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Rubocop.html b/original-plugin-raw/zh/inspectionDescriptions/Rubocop.html new file mode 100644 index 000000000..c524f72f7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Rubocop.html @@ -0,0 +1,8 @@ + + +报告来自 RuboCop linter 的问题。 需要在项目 SDK 中安装 +rubocop gem。 +

      使用使用 'standard' gem复选框以启用standard lint 分析。

      +

      使用 RuboCop 严重性映射字段自定义高亮显示级别。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyArgCount.html b/original-plugin-raw/zh/inspectionDescriptions/RubyArgCount.html new file mode 100644 index 000000000..50d70c3c3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyArgCount.html @@ -0,0 +1,9 @@ + + +报告以下情况下的方法调用: +
        +
      • 传递给此方法的实参数量与形参数量不匹配
      • +
      • 缺少一个必要的块
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyArgumentParentheses.html b/original-plugin-raw/zh/inspectionDescriptions/RubyArgumentParentheses.html new file mode 100644 index 000000000..6158ff6e8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyArgumentParentheses.html @@ -0,0 +1,13 @@ + + +报告圆括号前有空格的方法调用(包括 yield)。 +
      +# 不良做法
      +puts ('Hello world!')
      +
      +# 优良做法
      +puts('Hello world!')
      +
      +

      'RuboCop' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyAssignmentExpressionInConditionalInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyAssignmentExpressionInConditionalInspection.html new file mode 100644 index 000000000..96394bcf0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyAssignmentExpressionInConditionalInspection.html @@ -0,0 +1,7 @@ + + +报告赋值表达式在条件句中的用法。 +条件句中的赋值会增加代码阅读难度,而且通常是拼写错误(应为 =,而不是 ==)。 +

      使用报告圆括号中的赋值复选框高亮显示圆括号中的赋值。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyBlockToMethodReference.html b/original-plugin-raw/zh/inspectionDescriptions/RubyBlockToMethodReference.html new file mode 100644 index 000000000..cfcb73735 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyBlockToMethodReference.html @@ -0,0 +1,14 @@ + + +报告可以替换为方法引用的块。 +

      + 在某些情况下,替换在语义上可能有所不同。 建议在应用这项检查后检查代码行为。 +

      +

      使用忽略 &method(…) 引用复选框以忽略 static 方法替换。

      +

      + + 受 'Ruby Style Guide' 启发 + +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyBracketErrorInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyBracketErrorInspection.html new file mode 100644 index 000000000..ff112962f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyBracketErrorInspection.html @@ -0,0 +1,5 @@ + + +报告中括号不平衡的代码块。 可以通过快速修复来添加缺失的中括号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyCaseWithoutElseBlockInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyCaseWithoutElseBlockInspection.html new file mode 100644 index 000000000..e96cd43ca --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyCaseWithoutElseBlockInspection.html @@ -0,0 +1,27 @@ + + +报告不包含 else 块的 case 语句。 else 块应始终存在,以指定 +未找到匹配项时的默认结果。 +

      示例:

      +
      +# 不良做法
      +case status
      +when :active
      +  perform_action
      +end
      +
      + +可通过快速修复来插入 else 块。 应用快速修复后,结果如下所示: + +
      +# 优良做法
      +case status
      +when :active
      +  perform_action
      +else
      +  # 此处键入代码
      +end
      +
      +

      'Roodi' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyClassMethodNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/RubyClassMethodNamingConvention.html new file mode 100644 index 000000000..fea163126 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyClassMethodNamingConvention.html @@ -0,0 +1,8 @@ + + +报告名称太短、太长或不符合指定的正则表达式模式的类方法。 +

      使用模式字段指定用于验证类方法名称的正则表达式。

      +

      使用最小长度最大长度字段相应指定名称的最小长度和最大长度。

      +

      'Ruby Style Guide' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyClassModuleNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/RubyClassModuleNamingConvention.html new file mode 100644 index 000000000..9307c677a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyClassModuleNamingConvention.html @@ -0,0 +1,8 @@ + + +报告名称太短、太长或不符合指定的正则表达式模式的类和模块。 +

      使用模式字段指定用于验证类和模块名称的正则表达式。

      +

      使用最小长度最大长度字段相应指定名称的最小长度和最大长度。

      +

      'Ruby Style Guide' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyClassVariableNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/RubyClassVariableNamingConvention.html new file mode 100644 index 000000000..2a18c2f34 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyClassVariableNamingConvention.html @@ -0,0 +1,8 @@ + + +报告名称太短、太长或不符合指定的正则表达式模式的类变量。 +

      使用模式字段指定用于验证类方法名称的正则表达式。

      +

      使用最小长度最大长度字段相应指定名称的最小长度和最大长度。

      +

      'Ruby Style Guide' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyClassVariableUsageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyClassVariableUsageInspection.html new file mode 100644 index 000000000..0ffa7894c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyClassVariableUsageInspection.html @@ -0,0 +1,7 @@ + + +报告类变量的使用情况。 类变量构成全局运行时状态的一部分,因而很容易意外创建隐藏的 +依赖项。 这可能导致系统容易出错,因此建议避免使用类变量。 +

      'Reek Code Smells' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyConstReAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/RubyConstReAssignment.html new file mode 100644 index 000000000..541957a6c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyConstReAssignment.html @@ -0,0 +1,6 @@ + + +报告常量的重新赋值。 禁止此类重新赋值,并且 Ruby 解释程序会将其视为 +语法错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyConstant.html b/original-plugin-raw/zh/inspectionDescriptions/RubyConstant.html new file mode 100644 index 000000000..44c5e5038 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyConstant.html @@ -0,0 +1,5 @@ + + + 此检查就名称相同的范围中的类、模块和常量发出警告。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyConstantNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/RubyConstantNamingConvention.html new file mode 100644 index 000000000..7e461dc14 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyConstantNamingConvention.html @@ -0,0 +1,8 @@ + + +报告名称太短、太长或不符合指定正则表达式模式的任何常量。 +

      使用模式字段指定用于验证类方法名称的正则表达式。

      +

      使用最小长度最大长度字段相应指定名称的最小长度和最大长度。

      +

      'Ruby Style Guide' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyControlFlowConversionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyControlFlowConversionInspection.html new file mode 100644 index 000000000..e32e00b61 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyControlFlowConversionInspection.html @@ -0,0 +1,6 @@ + + +报告带有否定条件的控制流语句。 最好使用带有肯定条件的取反的控制流语句。 +

      'Ruby Style Guide' 启发

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyConvertAllHashesInFileInspections.html b/original-plugin-raw/zh/inspectionDescriptions/RubyConvertAllHashesInFileInspections.html new file mode 100644 index 000000000..493d38f17 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyConvertAllHashesInFileInspections.html @@ -0,0 +1,5 @@ + + +报告所使用的哈希火箭样式可以转换为 ruby 1.9+ 样式的哈希。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyDeadCode.html b/original-plugin-raw/zh/inspectionDescriptions/RubyDeadCode.html new file mode 100644 index 000000000..0d8924b66 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyDeadCode.html @@ -0,0 +1,16 @@ + + +报告决不会在任何控制流中执行并且可以安全移除的不可到达的代码。 +

      示例:

      +
      +def largest_number(x, y)
      +  if x > y
      +    return x
      +  else
      +    return y
      +  end
      +  puts 'The largest number is ' + x #不可到达的代码
      +end
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyDefParenthesesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyDefParenthesesInspection.html new file mode 100644 index 000000000..9accc6b7a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyDefParenthesesInspection.html @@ -0,0 +1,22 @@ + + +报告采用不正确圆括号样式的方法定义。 与没有形参的方法定义相反, +在带有形参的方法定义中应使用圆括号。 +

      示例:

      +
      +# 不良做法
      +def example_method(); end
      +def example_method_with_parameters param1, param2; end
      +
      + +可以通过快速修复分别移除或添加圆括号。 应用快速修复后,结果如下所示: + +
      +# 优良做法
      +def example_method; end
      +def example_method_with_parameters(param1, param2); end
      +
      +

      'RuboCop' 启发 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyDeprecatedSymbol.html b/original-plugin-raw/zh/inspectionDescriptions/RubyDeprecatedSymbol.html new file mode 100644 index 000000000..f69680523 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyDeprecatedSymbol.html @@ -0,0 +1,5 @@ + + +报告已弃用的方法和常量的用法。 在日后的版本中将会移除,建议您寻求替代方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyDeprecatedSyntaxInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyDeprecatedSyntaxInspection.html new file mode 100644 index 000000000..d620edc2a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyDeprecatedSyntaxInspection.html @@ -0,0 +1,17 @@ + + +报告自 Ruby 1.9 版本起弃用的语法的使用情况。 例如,对于单行 ifwhenunless, +使用 : 而不是 then。 +

      示例:

      +
      +condition = true
      +if condition: 1 else 0 # -> if condition then 1 else 0
      +unless condition: 0 else 1 # -> unless condition then 0 else 1
      +
      +value = 1
      +case value
      +when 1: true # -> when 1 then true
      +end
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyDuplicatedKeysInHashInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyDuplicatedKeysInHashInspection.html new file mode 100644 index 000000000..b9d351268 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyDuplicatedKeysInHashInspection.html @@ -0,0 +1,6 @@ + + +报告哈希、方法定义和调用中的重复键。 +重复的哈希键(最后一个除外)在运行时被无提示忽略,并且通常意味着存在拼写错误或错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyDynamicConstAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/RubyDynamicConstAssignment.html new file mode 100644 index 000000000..e3a5ff038 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyDynamicConstAssignment.html @@ -0,0 +1,5 @@ + + +报告动态常量赋值。 禁止动态常量赋值。 Ruby 解释器视之为语法错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyEmptyElseBlockInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyEmptyElseBlockInspection.html new file mode 100644 index 000000000..4900999b9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyEmptyElseBlockInspection.html @@ -0,0 +1,8 @@ + + +报告空的 else 块。 尽管偶尔是有意为之,但空 else 块通常表明有编码错误,并且 + 可能导致调试困难。 +

      使用忽略带有注释的 'else' 块复选框,来定义 else 块是否只包含注释计数。

      +

      'Ruby Style Guide' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyEmptyRescueBlockInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyEmptyRescueBlockInspection.html new file mode 100644 index 000000000..ca6c6a5d1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyEmptyRescueBlockInspection.html @@ -0,0 +1,8 @@ + + +报告空的 rescue 块。 尽管偶尔是有意为之,但空 rescue 块通常表明有编码错误,并且可能导致调试困难。 +

      使用忽略带有注释的 'rescue' 块复选框,来定义是否计入只包含注释的 rescue 块。

      +

      使用忽略名称为 '_' 的 'rescue' 形参复选框,可定义是否计入以 _ 为形参计数的 rescue 块。

      +

      'Roodi' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyExpressionInStringInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyExpressionInStringInspection.html new file mode 100644 index 000000000..4e5a61059 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyExpressionInStringInspection.html @@ -0,0 +1,6 @@ + + +报告单引号引用的字符串中的表达式替换 #{...}。 仅识别双引号引用的字符串中的表达式替换。 +受 'RuboCop' 启发。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyForLoopInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyForLoopInspection.html new file mode 100644 index 000000000..7e6e35495 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyForLoopInspection.html @@ -0,0 +1,23 @@ + + +报告 for 循环的用法。 最好使用 .each 而不是 for 循环。 +

      示例:

      +
      +# 不良做法
      +for i in 0..5
      +  puts "Value is #{i}"
      +end
      +
      + +可以通过快速修复将 for 循环转换为 .each 循环。 应用快速修复后,结果如下所示: + +
      +# 优良做法
      +(0..5).each do |i|
      +  puts "Value is #{i}"
      +end
      +
      +
      +

      'Roodi' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyGlobalVariableNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/RubyGlobalVariableNamingConvention.html new file mode 100644 index 000000000..265cf4e95 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyGlobalVariableNamingConvention.html @@ -0,0 +1,8 @@ + + +报告名称太短、太长或不符合指定的正则表达式模式的全局变量。 +

      使用模式字段指定用于验证类方法名称的正则表达式。

      +

      使用最小长度最大长度字段相应指定名称的最小长度和最大长度。

      +

      'Ruby Style Guide' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyHashKeysTypesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyHashKeysTypesInspection.html new file mode 100644 index 000000000..b5503288d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyHashKeysTypesInspection.html @@ -0,0 +1,12 @@ + + +报告结构不当的 Hash[...] 调用。 有 3 种使用 [...] 构造新哈希的正确方法: +
        +
      • Hash['a', 100, 'b', 200]
      • +
      • Hash[ [ ['a', 100], ['b', 200] ] ]
      • +
      • Hash['a' => 100, 'b' => 200]
      • +
      +

      'Ruby Style Guide' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyIfCanBeCaseInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyIfCanBeCaseInspection.html new file mode 100644 index 000000000..edd0f953f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyIfCanBeCaseInspection.html @@ -0,0 +1,21 @@ + + +报告可以替换为 case 语句的 if 语句。 +

      使用最小分支数字段为得到的 + case 语句指定最小 when 分支数。

      +

      示例:

      +
      +fruit = gets
      +
      +if fruit == 'apple' # Simplifiable 'if' statement
      +  puts 'This is apple!'
      +elsif fruit == 'peach'
      +  puts 'This is peach!'
      +elsif fruit == 'orange'
      +  puts 'This is orange!'
      +elsif fruit == 'banana'
      +  puts 'This is banana!'
      +end
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyInstanceMethodNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/RubyInstanceMethodNamingConvention.html new file mode 100644 index 000000000..4535c0fe4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyInstanceMethodNamingConvention.html @@ -0,0 +1,8 @@ + + +报告名称太短、太长或不符合指定的正则表达式模式的实例方法。 +

      使用模式字段指定用于验证类方法名称的正则表达式。

      +

      使用最小长度最大长度字段相应指定名称的最小长度和最大长度。

      +

      'Ruby Style Guide' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyInstanceVariableNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/RubyInstanceVariableNamingConvention.html new file mode 100644 index 000000000..3850e33ec --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyInstanceVariableNamingConvention.html @@ -0,0 +1,8 @@ + + +报告名称太短、太长或不符合指定的正则表达式模式的实例变量。 +

      使用模式字段指定用于验证类方法名称的正则表达式。

      +

      使用最小长度最大长度字段相应指定名称的最小长度和最大长度。

      +

      'Ruby Style Guide' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyInstanceVariableToStringInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyInstanceVariableToStringInspection.html new file mode 100644 index 000000000..c9f9e38e7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyInstanceVariableToStringInspection.html @@ -0,0 +1,19 @@ + + +报告表达式替换中没有大括号的插值变量(实例或全局)。 +

      示例:

      +
      +# 不良做法
      +@name = 'John Doe'
      +puts "Hi #@name"
      +
      + +可以通过快速修复来插入缺失的大括号。 应用快速修复后,结果如下所示: + +
      +# 优良做法
      +@name = 'John Doe'
      +puts "Hi #{@name}"
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyInterpreter.html b/original-plugin-raw/zh/inspectionDescriptions/RubyInterpreter.html new file mode 100644 index 000000000..e1e375276 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyInterpreter.html @@ -0,0 +1,5 @@ + + +报告当前项目未配置 Ruby 解释器或配置无效解释器的情况。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyJumpError.html b/original-plugin-raw/zh/inspectionDescriptions/RubyJumpError.html new file mode 100644 index 000000000..37884b7fe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyJumpError.html @@ -0,0 +1,18 @@ + + +报告控制流跳转语句的错误使用情况,例如 return、 +retry、 +redobreakcontinue。 +

      示例:

      +
      +i = 1
      +while true
      +  if i * 6 >= 30
      +    retry
      +  end
      +  puts i * 6
      +  i += 1
      +end
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyLiteralArrayInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyLiteralArrayInspection.html new file mode 100644 index 000000000..a3dece4a9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyLiteralArrayInspection.html @@ -0,0 +1,6 @@ + + +报告可替换为 %w 的字符串文字数组。 +

      'Ruby Style Guide' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyLocalVariableNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/RubyLocalVariableNamingConvention.html new file mode 100644 index 000000000..87ba150d7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyLocalVariableNamingConvention.html @@ -0,0 +1,8 @@ + + +报告名称太短、太长或不符合指定的正则表达式模式的局部变量。 +

      使用模式字段指定用于验证类方法名称的正则表达式。

      +

      使用最小长度最大长度字段相应指定名称的最小长度和最大长度。

      +

      'Ruby Style Guide' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedArgumentType.html b/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedArgumentType.html new file mode 100644 index 000000000..5bf1b5faa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedArgumentType.html @@ -0,0 +1,18 @@ + + +报告实参的推断类型与形参的预期类型不匹配的方法和 yield 调用。 预期的形参类型取自其中任意一种: +
        +
      • RBS 类型签名
      • +
      • Sorbet 类型签名
      • +
      • YARD @param 标记
      • +
      +

      示例:

      +
      +# @param [Integer] param
      +def method(param) end
      +
      +method([1, 2])
      +
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedConstantType.html b/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedConstantType.html new file mode 100644 index 000000000..9feec42ef --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedConstantType.html @@ -0,0 +1,5 @@ + + +报告推断类型与常量的预期类型不匹配的常量赋值。 预期的常量类型取自 RBS 类型签名。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedGlobalVariableType.html b/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedGlobalVariableType.html new file mode 100644 index 000000000..647a0dd04 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedGlobalVariableType.html @@ -0,0 +1,5 @@ + + +报告推断类型与全局变量的预期类型不匹配的全局变量赋值。 预期的常量类型取自 RBS 类型签名。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedParameterType.html b/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedParameterType.html new file mode 100644 index 000000000..8882b1757 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedParameterType.html @@ -0,0 +1,5 @@ + + +报告推断类型与形参的预期类型不匹配的默认方法和块形参赋值。 预期的形参类型取自 RBS 类型签名。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedReturnType.html b/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedReturnType.html new file mode 100644 index 000000000..373ad5b85 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedReturnType.html @@ -0,0 +1,17 @@ + + +报告推断类型与方法的预期返回类型不匹配的方法和块的返回值。 预期的返回类型取自其中任意一种: +
        +
      • RBS 类型签名
      • +
      • Sorbet 类型签名
      • +
      • YARD @return 标记
      • +
      +

      示例:

      +
      +# @return [Integer]
      +def method
      +  1.0
      +end
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedVariableType.html b/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedVariableType.html new file mode 100644 index 000000000..a6237327c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyMismatchedVariableType.html @@ -0,0 +1,5 @@ + + +报告推断类型与变量的预期类型不匹配的实例和类变量赋值。 预期的变量类型取自 RBS 类型签名。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyModifiedFrozenObject.html b/original-plugin-raw/zh/inspectionDescriptions/RubyModifiedFrozenObject.html new file mode 100644 index 000000000..c463b177a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyModifiedFrozenObject.html @@ -0,0 +1,6 @@ + + +报告试图修改冻结对象的方法调用。 +

      修改冻结对象将引发运行时错误。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyModuleAsSuperclassInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyModuleAsSuperclassInspection.html new file mode 100644 index 000000000..69b6dfea4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyModuleAsSuperclassInspection.html @@ -0,0 +1,16 @@ + + +报告超类子句中引用的模块。 +

      示例:

      +
      +module Engine
      +  def electric?
      +    true
      +  end
      +end
      +
      +class Cars < Engine #模块用作超类
      +end
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyNestedTernaryOperatorsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyNestedTernaryOperatorsInspection.html new file mode 100644 index 000000000..b17ca934c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyNestedTernaryOperatorsInspection.html @@ -0,0 +1,20 @@ + + +报告嵌套的三元运算符。 嵌套的三元运算符可能难以读取,通常最好改为使用至少一个 +if 语句。 +

      示例:

      +

      min = x < y ? (x < z ? x : z) : (y < z ? y : z)

      + +应用快速修复后,结果如下所示: + +
      +min = if x < y
      +  x < z ? x : z
      +else
      +  y < z ? y : z
      +end
      +
      +

      'Ruby Style Guide' 启发 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyNilAnalysis.html b/original-plugin-raw/zh/inspectionDescriptions/RubyNilAnalysis.html new file mode 100644 index 000000000..e2153574f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyNilAnalysis.html @@ -0,0 +1,14 @@ + + +报告可能的 nil 解引用。 解引用 nil 可能导致 NoMethodError。 +

      示例:

      +
      +def foo
      +  rand(2) == 1 ? nil : 1
      +end
      +
      +a = foo
      +a.nomethod # 方法调用可能产生 NoMethodError
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyParameterNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/RubyParameterNamingConvention.html new file mode 100644 index 000000000..286bfe8ac --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyParameterNamingConvention.html @@ -0,0 +1,8 @@ + + +报告名称太短或太长的形参。 +

      使用最小长度最大长度字段相应指定名称的最小长度和最大长度。

      +

      使用复选框可将该项检查配置为忽略 Blocklambdarescue 形参。

      +

      'Ruby Style Guide' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyParenthesesAfterMethodCallInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyParenthesesAfterMethodCallInspection.html new file mode 100644 index 000000000..114be6220 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyParenthesesAfterMethodCallInspection.html @@ -0,0 +1,18 @@ + + +报告包含圆括号的无实参方法调用。 +

      示例:

      +
      +# 不良做法
      +gets.chomp()
      +
      + +可以通过快速修复来移除冗余圆括号。 应用快速修复后,结果如下所示: + +
      +# 优良做法
      +gets.chomp
      +
      +

      'RuboCop' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyParenthesesAroundConditionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyParenthesesAroundConditionInspection.html new file mode 100644 index 000000000..3a81673f1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyParenthesesAroundConditionInspection.html @@ -0,0 +1,8 @@ + + +报告 ifelsifunlesswhile 和 +until 语句中带有圆括号的条件表达式。 +

      'Ruby Style Guide' 启发 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyQuotedStringsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyQuotedStringsInspection.html new file mode 100644 index 000000000..5dc5fcf89 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyQuotedStringsInspection.html @@ -0,0 +1,23 @@ + + +报告可以转换为单引号引用字符串的双引号引用字符串。 不包含任何表达式替换或特殊符号的任意字符串均可以被转换。 +

      示例:

      +
      +# 不良做法
      +"Hello world"
      +"Hello \"John Doe\""
      +
      + +可以通过快速修复来转换双引号引用的字符串。 应用快速修复后,结果如下所示: + +
      +# 优良做法
      +'Hello world'
      +'Hello "John Doe"'
      +"Hello 'John Doe'"
      +
      +

      使用忽略包含单引号的字符串复选框,可忽略需要转义的字符串。

      +

      'RuboCop' 启发 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyRedundantSafeNavigation.html b/original-plugin-raw/zh/inspectionDescriptions/RubyRedundantSafeNavigation.html new file mode 100644 index 000000000..3eeeca2ab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyRedundantSafeNavigation.html @@ -0,0 +1,12 @@ + + +报告安全导航运算符 (&.) 与可以忽略的非 nil 接收器的使用。 +

      示例:

      +
      +value = 1
      +if value&.even?
      +  # ...
      +end
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyResolve.html b/original-plugin-raw/zh/inspectionDescriptions/RubyResolve.html new file mode 100644 index 000000000..a6117f4f3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyResolve.html @@ -0,0 +1,10 @@ + + +报告代码中无法解析为任何声明(例如方法引用或常量引用)的引用。 +由于拼写错误,经常会出现无法解析的引用,并且可能导致运行时错误: +NoMethodErrorNameError 等。 +

      在查找声明时,首先检查接收器类型(显式或类型化解析)。 如果在接收器上找不到匹配的声明,则将接受项目中任何匹配的声明(隐式或基于文本的解析)。

      +

      在默认情况下,对任何接收器都没有匹配的声明时将发出警告,即隐式解析失败。

      +

      如果该接收器中没有匹配的声明,则使用对类型化的接收器报告未解析的引用复选框以显示警告。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyScope.html b/original-plugin-raw/zh/inspectionDescriptions/RubyScope.html new file mode 100644 index 000000000..424f33b96 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyScope.html @@ -0,0 +1,10 @@ + + +报告可能不安全的局部变量或形参的用法: +
        +
      • 隐藏外部变量或形参的隐式或显式变量或形参
      • +
      • 未初始化的变量或形参
      • +
      • 块内的变量声明冗余
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyShouldaUnsupportedTestFile.html b/original-plugin-raw/zh/inspectionDescriptions/RubyShouldaUnsupportedTestFile.html new file mode 100644 index 000000000..dfab255e5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyShouldaUnsupportedTestFile.html @@ -0,0 +1,5 @@ + + +报告文件名不正确的 Shoulda 测试。 Shoulda 测试文件名应以 '_test.rb' 结尾,否则可能会限制 IDE 支持。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubySimplifyBooleanInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubySimplifyBooleanInspection.html new file mode 100644 index 000000000..ec3059fda --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubySimplifyBooleanInspection.html @@ -0,0 +1,5 @@ + + +报告可以简化的布尔表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyStringKeysInHashInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyStringKeysInHashInspection.html new file mode 100644 index 000000000..829fd82f1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyStringKeysInHashInspection.html @@ -0,0 +1,19 @@ + + +报告字符串作为键的哈希。 最好使用符号而不是字符串作为哈希键。 +

      示例:

      +
      +# 不良做法
      +{ 'foo' => 1, 'bar' => 2 }
      +
      + +可通过快速修复将所有字符串键转换为符号。 应用快速修复后,结果如下所示: + +
      +# 优良做法
      +{ foo: 1, bar: 2 }
      +
      +

      'RuboCop' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubySuperCallWithoutSuperclassInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubySuperCallWithoutSuperclassInspection.html new file mode 100644 index 000000000..2df499a4e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubySuperCallWithoutSuperclassInspection.html @@ -0,0 +1,5 @@ + + +报告方法外部或未定义超类的类中的 super 调用。 这些调用是冗余调用,可以安全移除。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyThenInMultilineConditionalInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyThenInMultilineConditionalInspection.html new file mode 100644 index 000000000..71b82a191 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyThenInMultilineConditionalInspection.html @@ -0,0 +1,22 @@ + + +报告多行 if/unless 块中的冗余 then 关键字。 +

      示例:

      +
      +# 不良做法
      +if x > y then
      +  x = y
      +end
      +
      + +可以通过快速修复来移除 then 关键字。 + +
      +# 优良做法
      +if x > y
      +  x = y
      +end
      +
      +

      'RuboCop' 启发。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyTooManyInstanceVariablesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyTooManyInstanceVariablesInspection.html new file mode 100644 index 000000000..e46cf49b2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyTooManyInstanceVariablesInspection.html @@ -0,0 +1,8 @@ + + +报告实例变量太多的类/模块。 这通常意味着它们试图“进行太多处理”,并且可能需要重构为 +多个较小的组件。 +

      使用实例变量数字段指定类/模块允许具备的最大实例变量数。

      +

      'Reek Code Smells' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyTooManyMethodsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyTooManyMethodsInspection.html new file mode 100644 index 000000000..e0aa18ae1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyTooManyMethodsInspection.html @@ -0,0 +1,9 @@ + + +报告方法太多的类/模块。 这通常意味着它们试图“进行太多处理”,并且可能需要重构为 +多个较小的组件。 +

      使用方法数字段指定类/模块允许具备的最大方法数。

      +

      使用忽略测试类复选框以忽略测试类。

      +

      'Reek Code Smells' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyUnlessWithElseInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyUnlessWithElseInspection.html new file mode 100644 index 000000000..5f239484c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyUnlessWithElseInspection.html @@ -0,0 +1,28 @@ + + +报告与 else 一起使用的 unless 语句。 最好将肯定分支放在最前面。 +

      示例:

      +
      +# 不良做法
      +a = 1
      +unless a > 2
      +  puts 'a is 2 or less'
      +else
      +  puts 'a is greater than 2'
      +end
      +
      + +可以通过快速修复将 unless 转换为 if。 应用快速修复后,结果如下所示: + +
      +# 优良做法
      +a = 1
      +if a > 2
      +  puts 'a is greater than 2'
      +else
      +  puts 'a is 2 or less'
      +end
      +
      +

      'Ruby Style Guide' 启发

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyUnnecessaryReturnStatement.html b/original-plugin-raw/zh/inspectionDescriptions/RubyUnnecessaryReturnStatement.html new file mode 100644 index 000000000..8b203c90f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyUnnecessaryReturnStatement.html @@ -0,0 +1,8 @@ + + +报告冗余的 return 关键字和语句。 方法和控制流语句中的最后一个值不需要 + return 关键字。 +

      自 Ruby 1.8 起,赋值方法内部的 return 语句为冗余语句,因为返回值始终 +等于形参值。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyUnnecessaryReturnValue.html b/original-plugin-raw/zh/inspectionDescriptions/RubyUnnecessaryReturnValue.html new file mode 100644 index 000000000..7b6b0cfd5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyUnnecessaryReturnValue.html @@ -0,0 +1,23 @@ + + +报告用作返回值的变量。 +

      示例:

      + +
      +# 不良做法
      +def foo(bar)
      +  result = bar + 1
      +  result
      +end
      +
      + +可以通过快速修复来移除这些变量。 应用快速修复后,结果如下所示: + +
      +# 优良做法
      +def foo(bar)
      +  bar + 1
      +end
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyUnnecessarySemicolon.html b/original-plugin-raw/zh/inspectionDescriptions/RubyUnnecessarySemicolon.html new file mode 100644 index 000000000..00cb7eeb8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyUnnecessarySemicolon.html @@ -0,0 +1,6 @@ + + +报告代码中的冗余分号。 Ruby 中不必使用分号,但在将多行语句联接到 +单行时除外。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyUnusedLocalVariable.html b/original-plugin-raw/zh/inspectionDescriptions/RubyUnusedLocalVariable.html new file mode 100644 index 000000000..628e68ed9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyUnusedLocalVariable.html @@ -0,0 +1,6 @@ + + +报告未使用的局部变量或形参声明和赋值。 +

      可以安全移除未使用的声明或赋值。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RubyVersionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/RubyVersionInspection.html new file mode 100644 index 000000000..8d8b4aacc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RubyVersionInspection.html @@ -0,0 +1,5 @@ + + +该项检查检查的是 Gemfile 中设置的 Ruby 版本是否与 SDK 中当前的 Ruby 版本不匹配。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RuntimeExec.html b/original-plugin-raw/zh/inspectionDescriptions/RuntimeExec.html new file mode 100644 index 000000000..d82b22215 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RuntimeExec.html @@ -0,0 +1,7 @@ + + +报告对 Runtime.exec() 或其任何变体的调用。 +对 Runtime.exec() 的调用本质上不可移植。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/RuntimeExecWithNonConstantString.html b/original-plugin-raw/zh/inspectionDescriptions/RuntimeExecWithNonConstantString.html new file mode 100644 index 000000000..b6e4c3dcb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/RuntimeExecWithNonConstantString.html @@ -0,0 +1,23 @@ + + +报告对 java.lang.Runtime.exec() 的调用,该调用会将动态构造的字符串作为要执行的命令。 +

      + 构造的执行字符串是安全漏洞的常见来源。 + 默认情况下,此检查会忽略编译时常量。 +

      +

      示例:

      +
      
      +  String i = getUserInput();
      +  Runtime runtime = Runtime.getRuntime();
      +  runtime.exec("foo" + i); // 报告警告
      +
      + +

      +使用检查设置可以将任何 static final 字段视为常量。 +请小心,因为启用该选项时,像下面这样的字符串将被忽略: +

      
      +  static final String COMMAND = "ping " + getDomainFromUserInput() + "'";
      +
      +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SSBasedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SSBasedInspection.html new file mode 100644 index 000000000..b65662557 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SSBasedInspection.html @@ -0,0 +1,9 @@ + + +

      允许配置可以应用于您正在编辑的文件的结构搜索/结构替换模板。 +

      +

      所有匹配项都将高亮显示并使用您配置的模板名称标记。 +如果您还配置了结构替换模式,相应的替换选项将作为快速修复提供。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SafeCastWithReturn.html b/original-plugin-raw/zh/inspectionDescriptions/SafeCastWithReturn.html new file mode 100644 index 000000000..d7dbf70c0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SafeCastWithReturn.html @@ -0,0 +1,20 @@ + + +报告带 return 且可以替换为 if 类型检查的安全转换。 +

      使用相应函数可使代码更简单。

      +

      该快速修复会将安全转换替换为 if 类型检查。

      +

      示例:

      +
      
      +  fun test(x: Any) {
      +      x as? String ?: return
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun test(x: Any) {
      +      if (x !is String) return
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SafeLock.html b/original-plugin-raw/zh/inspectionDescriptions/SafeLock.html new file mode 100644 index 000000000..f65407a7f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SafeLock.html @@ -0,0 +1,16 @@ + + +报告没有在 try 块前面获取,或者没有在相应的 finally 块中解锁的 java.util.concurrent.locks.Lock 资源。 如果在资源关闭之前抛出异常,此类资源可能会被无意泄漏。 +

      示例:

      +
      
      +  lock.lock(); // 由于缺少 'finally' 块,因此会报告
      +  try {
      +    doSmthWithLock();
      +  } catch (IOException e) {
      +    throw new UncheckedIOException(e);
      +  }
      +  lock.unlock();
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SafeVarargsDetector.html b/original-plugin-raw/zh/inspectionDescriptions/SafeVarargsDetector.html new file mode 100644 index 000000000..f663dd592 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SafeVarargsDetector.html @@ -0,0 +1,31 @@ + + +报告所有包含可变 arity 且可以注解为 @SafeVarargs 的方法。 +@SafeVarargs 注解禁止有关在调用点创建形参化数组的未检查的警告。 +

      示例:

      +
      
      +  public class Foo<T> {
      +    private List<T> list = new ArrayList<>();
      +
      +    public final void safeVarargs(T... elements) {
      +      Collections.addAll(list, elements);
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  public class Foo<T> {
      +    private List<T> list = new ArrayList<>();
      +
      +    @SafeVarargs
      +    public final void safeVarargs(T... elements) {
      +      Collections.addAll(list, elements);
      +    }
      +  }
      +
      +

      + Java 1.6 或更早版本的 JVM 不支持此注解。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SameElementsToEquals.html b/original-plugin-raw/zh/inspectionDescriptions/SameElementsToEquals.html new file mode 100644 index 000000000..c00fa41b7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SameElementsToEquals.html @@ -0,0 +1,20 @@ + + +

      报告 sameElementscorresponds 的用法以比较相同种类的集合(Seq、Set 或 Map)。 +

      + +

      该快速修复改用相等。

      + +

      示例:

      +
      
      +  seq sameElements list
      +  hashSet sameElements treeSet
      +
      +

      在应用快速修复后:

      +
      
      +  seq == list
      +  hashSet == treeSet
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SamePackageImport.html b/original-plugin-raw/zh/inspectionDescriptions/SamePackageImport.html new file mode 100644 index 000000000..31f59b4cf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SamePackageImport.html @@ -0,0 +1,12 @@ + + +报告引用的软件包与包含文件相同的 import 语句。 +

      + 相同软件包的文件始终隐式导入,因此,此类 import 语句冗余,而且令人困惑。 +

      +

      + 由于 IntelliJ IDEA 可以通过优化导入命令自动检测并修正此类语句,对于不打算更改的代码库的脱机报告,此检查非常有用。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SameParameterValue.html b/original-plugin-raw/zh/inspectionDescriptions/SameParameterValue.html new file mode 100644 index 000000000..cc7f80495 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SameParameterValue.html @@ -0,0 +1,33 @@ + + +报告其中的形参似乎总是同一个常量的方法。 + +

      示例:

      +
      
      +  static void printPoint(int x, int y) { // x 始终为 0
      +    System.out.println(x + ", " + y);
      +  }
      +
      +  public static void main(String[] args) {
      +    printPoint(0, 1);
      +    printPoint(0, 2);
      +  }
      +
      +

      该快速修复会内联常量值。 这可能会简化方法实现。

      + +

      + 在以下情况下,使用内联形参初始值设定项不成功时忽略选项来禁止检查: +

      +
        +
      • 形参在方法内部被修改。
      • +
      • 传递的形参值引用了不可访问的字段(仅在 Java 中)。
      • +
      • 形参为 vararg(仅在 Java 中)。
      • +
      +

      + 使用报告方法最大可见性选项可以控制要报告的方法的最大可见性。 +

      +

      + 使用报告方法最小使用计数字段可以指定具有相同形参值的最小方法使用数。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SameReturnValue.html b/original-plugin-raw/zh/inspectionDescriptions/SameReturnValue.html new file mode 100644 index 000000000..7e376a573 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SameReturnValue.html @@ -0,0 +1,5 @@ + + +报告返回值始终显示为相同常量的方法和方法层次结构。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SassScssResolvedByNameOnly.html b/original-plugin-raw/zh/inspectionDescriptions/SassScssResolvedByNameOnly.html new file mode 100644 index 000000000..7f40bed77 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SassScssResolvedByNameOnly.html @@ -0,0 +1,12 @@ + + +报告对另一个文件(但该文件未在当前文件中显式导入)中声明的变量、mixin 或函数的引用。 +

      示例:

      +
      
      +* {
      +  margin: $var-in-other-file;
      +}
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SassScssUnresolvedMixin.html b/original-plugin-raw/zh/inspectionDescriptions/SassScssUnresolvedMixin.html new file mode 100644 index 000000000..0d23354e4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SassScssUnresolvedMixin.html @@ -0,0 +1,12 @@ + + +报告未解析的 Sass/SCSS mixin 引用。 +

      示例:

      +
      
      +* {
      +  @include unknown-mixin;
      +}
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SassScssUnresolvedPlaceholderSelector.html b/original-plugin-raw/zh/inspectionDescriptions/SassScssUnresolvedPlaceholderSelector.html new file mode 100644 index 000000000..f87c402f6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SassScssUnresolvedPlaceholderSelector.html @@ -0,0 +1,12 @@ + + +报告未解析的 Sass/SCSS 占位符选择器引用。 +

      示例:

      +
      
      +* {
      +  @extend %unknown-placeholder-selector;
      +}
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SassScssUnresolvedVariable.html b/original-plugin-raw/zh/inspectionDescriptions/SassScssUnresolvedVariable.html new file mode 100644 index 000000000..047f4e259 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SassScssUnresolvedVariable.html @@ -0,0 +1,12 @@ + + +报告未解析的 Sass/SCSS 变量引用。 +

      示例:

      +
      
      +* {
      +  margin: $unknown-var;
      +}
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SbtDependencyVersionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SbtDependencyVersionInspection.html new file mode 100644 index 000000000..bd2f6747a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SbtDependencyVersionInspection.html @@ -0,0 +1,14 @@ + + +

      报告使用旧的库依赖项版本的情况,并建议将其替换为较新的稳定版本。

      +

      示例:

      +
      
      +  libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.7"
      +
      +

      在应用快速修复后:

      +
      
      +  libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.8"
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SbtReplaceProjectWithProjectIn.html b/original-plugin-raw/zh/inspectionDescriptions/SbtReplaceProjectWithProjectIn.html new file mode 100644 index 000000000..be2394370 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SbtReplaceProjectWithProjectIn.html @@ -0,0 +1,14 @@ + + +

      报告 Project 的用法并建议将其替换为 project.in

      +

      示例:

      +
      
      +  val proj = Project("proj", path)
      +
      +

      在应用快速修复后:

      +
      
      +  val proj = project.in(path)
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaDeprecatedIdentifier.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaDeprecatedIdentifier.html new file mode 100644 index 000000000..4685a93b4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaDeprecatedIdentifier.html @@ -0,0 +1,12 @@ + + +

      报告 then 作为标识符的用法。

      +

      then 这个词在 Scala 3 中被保留为关键字。 它作为标识符的用法已被弃用。 + 查看 SIP-12

      +

      示例:

      +
      
      +  val then = "some text"
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaDeprecation.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaDeprecation.html new file mode 100644 index 000000000..b7f8a6e2c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaDeprecation.html @@ -0,0 +1,14 @@ + + +

      报告已弃用的符号的用法。

      + +

      示例:

      +
      
      +  @deprecated("don't use test")
      +  def test = ???
      +
      +  test // 使用 test 已被弃用
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaDocInlinedTag.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaDocInlinedTag.html new file mode 100644 index 000000000..1f66e1961 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaDocInlinedTag.html @@ -0,0 +1,19 @@ + + +

      报告 Scaladoc 中使用的内联标记。

      + +

      Scaladoc 将内联标记视为等宽文本。

      +

      示例:

      +
      
      +  /**
      +   * Text 1
      + * Text 2 {@code some text}
      + * Text 3 {@link java.lang.String}
      + * Text 4 {@qwewqe some text}
      + * @note text + */ + class A +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaDocMissingParameterDescription.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaDocMissingParameterDescription.html new file mode 100644 index 000000000..59627b9f0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaDocMissingParameterDescription.html @@ -0,0 +1,15 @@ + + +

      报告缺少的形参描述。

      + +

      示例:

      +
      
      +  /**
      +   * 形参 x 缺少描述
      +   * @param x
      +   */
      +  def test(x: Int): Int = x
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaDocParserErrorInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaDocParserErrorInspection.html new file mode 100644 index 000000000..ec0d45b07 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaDocParserErrorInspection.html @@ -0,0 +1,6 @@ + + +

      报告错误的 Scaladoc 元素。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaDocUnbalancedHeader.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaDocUnbalancedHeader.html new file mode 100644 index 000000000..67cadedb6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaDocUnbalancedHeader.html @@ -0,0 +1,24 @@ + + +

      报告不平衡的 wiki 语法标题和 Scaladocs 中此类标题后被忽略的文本。

      +

      在以下示例中,标记了 ====

      +
      
      +  /**
      +   * == I'm a wiki style header ====
      +   */
      +  def test(i: Int): Unit = {
      +
      +  }
      +
      +

      在以下示例中,标记了 Ignored text

      +
      
      +  /**
      +   * == I'm a wiki style header == Ignored text
      +   */
      +  def test(i: Int): Unit = {
      +
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaDocUnclosedTagWithoutParser.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaDocUnclosedTagWithoutParser.html new file mode 100644 index 000000000..0df4ceb8c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaDocUnclosedTagWithoutParser.html @@ -0,0 +1,28 @@ + + +

      在 Scaladoc 中报告未关闭的标记。

      +

      示例:

      +
      
      +  /**
      +   * ''
      +   *
      +   * [[
      +   *
      +   * `
      +   */
      +  class A
      +
      +

      在应用快速修复后:

      +
      
      +  /**
      +   * ''
      +   *
      +   * [[
      +   *
      +   * `
      +   */
      +  class A
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaDocUnknownParameter.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaDocUnknownParameter.html new file mode 100644 index 000000000..43b81de0d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaDocUnknownParameter.html @@ -0,0 +1,17 @@ + + +

      报告有关不存在的形参的 Scaladoc 文档。

      +

      + 在以下示例中,标记了 x

      +
      
      +  /**
      +   *
      +   * @param x 函数 `test` 上不存在此形参
      +   */
      +  def test(i: Int): Unit = {
      +
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaDocUnknownTag.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaDocUnknownTag.html new file mode 100644 index 000000000..678f43543 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaDocUnknownTag.html @@ -0,0 +1,14 @@ + + +

      报告 Scaladoc 文档中的未知标记并建议将其移除。

      +

      在以下示例中,标记了 blubquam

      +
      
      +  /**
      +   *
      +   * @blubquam 这是一个未知标记
      +   */
      +  def test(i: Int): Unit = ()
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaExtractStringToBundle.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaExtractStringToBundle.html new file mode 100644 index 000000000..2211a15c9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaExtractStringToBundle.html @@ -0,0 +1,6 @@ + + +

      字符串不应该被硬编码,它们应该被提取到一个包文件中,以便翻译。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaFileName.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaFileName.html new file mode 100644 index 000000000..1d32d471b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaFileName.html @@ -0,0 +1,8 @@ + + +

      报告没有具有相应名称的类型定义的文件。

      + +

      该快速修复会建议重命名文件以匹配类型定义的名称,或者重命名类型定义以匹配文件名。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaMalformedFormatString.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaMalformedFormatString.html new file mode 100644 index 000000000..739b96205 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaMalformedFormatString.html @@ -0,0 +1,15 @@ + + +

      报告格式字符串中的非法语法、与给定实参不兼容的格式指定符、为格式字符串提供的实参不足等。

      +

      该检查在以下地方运行:

      +
        +
      • "…".format(…)
      • +
      • value.formatted("…")
      • +
      • String.format("…", …)
      • +
      • printf("…", …)
      • +
      • System.out.printf("…", …)
      • +
      • 插值字符串
      • +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaPackageName.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaPackageName.html new file mode 100644 index 000000000..829196cb1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaPackageName.html @@ -0,0 +1,8 @@ + + +

      报告包含与目录结构不对应的软件包语句的文件。

      + +

      该快速修复建议调整软件包语句或将文件移动到正确的目录中。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaRedundantCast.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaRedundantCast.html new file mode 100644 index 000000000..118667f65 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaRedundantCast.html @@ -0,0 +1,15 @@ + +

      报告冗余的 asInstanceOf 转换并建议将其移除。

      +

      如果表达式的类型与转换类型相同,则转换是冗余的。

      + +

      示例:

      +
      
      +  "test".asInstanceOf[String]
      +
      +

      在应用快速修复后:

      +
      
      +  "test"
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaRedundantConversion.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaRedundantConversion.html new file mode 100644 index 000000000..c911a9342 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaRedundantConversion.html @@ -0,0 +1,17 @@ + +

      报告冗余转换方法调用(toInttoString 等)。

      + +

      如果转换不会更改集合的类型,则转换是冗余的。

      +

      示例:

      +
      
      +  "Test".toString
      +  Seq(1, 2).toSeq
      +
      +

      在应用快速修复后:

      +
      
      +  "Test".toString
      +  Seq(1, 2).toSeq
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaShouldBeTextContains.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaShouldBeTextContains.html new file mode 100644 index 000000000..a8a501ada --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaShouldBeTextContains.html @@ -0,0 +1,14 @@ + + +报告 PsiElement 或 ASTNode 上 .getText.contains(char) 的用法,并建议将其替换为 PsiElement.textContains(char)。 +

      示例:

      +
      
      +  psiElement.getText.contains('x')
      +
      +

      在应用快速修复后:

      +
      
      +  psiElement.textContains('x')
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaShouldBeTextMatches.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaShouldBeTextMatches.html new file mode 100644 index 000000000..4410abc59 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaShouldBeTextMatches.html @@ -0,0 +1,14 @@ + + +

      报告与字符串进行比较时使用 PsiElement.getText 的情况,并建议将其替换为 PsiElement.textMatches

      +

      示例:

      +
      
      +  psiElement.getText == "null"
      +
      +

      在应用快速修复后:

      +
      
      +  psiElement.textMatches("null")
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaStyle.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaStyle.html new file mode 100644 index 000000000..0e30ffeef --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaStyle.html @@ -0,0 +1,13 @@ + + +

      报告 Scalastyle 发现的问题。

      + +

      Scalastyle 可以检查您的 Scala 代码并指出它的潜在问题。

      + +

      将配置文件放在 <project-root><project-root>/.idea<project-root>/project 中。 +

      配置文件的名称可以是 scalastyle-config.xmlscalastyle_config.xml。 + 测试源的配置文件可以被 scalastyle-test-config.xmlscalastyle_test_config.xml 重写。

      + +

      Scalastyle 网站上提供了完整的文档。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaUnnecessaryParentheses.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaUnnecessaryParentheses.html new file mode 100644 index 000000000..0061dc99c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaUnnecessaryParentheses.html @@ -0,0 +1,19 @@ + + +

      报告表达式、类型和模式中不必要的圆括号。

      + +

      如果移除圆括号后程序的语义保持不变,则不需要圆括号。

      +

      使用下面的复选框可以自定义检查的行为。

      +

      如果圆括号将中缀表达式、类型元素或模式作为较大中缀元素的一部分分开,则被认为是澄清圆括号。

      + +

      示例:

      +
      
      +  val x = (3)
      +
      +

      在应用快速修复后:

      +
      
      +  val x = 3
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaUnnecessarySemicolon.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaUnnecessarySemicolon.html new file mode 100644 index 000000000..f3568a291 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaUnnecessarySemicolon.html @@ -0,0 +1,14 @@ + + +

      报告并移除不必要的分号。

      +

      示例: +

      
      +  val x = 2;
      +
      +

      在应用快速修复后:

      +
      
      +  val x = 2
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaUnreachableCode.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaUnreachableCode.html new file mode 100644 index 000000000..8f0594a13 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaUnreachableCode.html @@ -0,0 +1,19 @@ + + +

      报告不可到达的代。

      +

      示例:

      +
      
      +  def test(): Unit = {
      +    throw new Exception()
      +    println("this will never be reached")
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  def test(): Unit = {
      +    throw new Exception()
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaUnresolvedPropertyKey.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaUnresolvedPropertyKey.html new file mode 100644 index 000000000..64c80918c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaUnresolvedPropertyKey.html @@ -0,0 +1,8 @@ + + +

      报告未解析或错误使用的 I18n 属性键。

      +

      关联的 I18n 捆绑包 中不存在的属性键将导致运行时错误。 + 这同样适用于带实参的属性,这些实参不是由代码提供的。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaUnusedExpression.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaUnusedExpression.html new file mode 100644 index 000000000..ab26dd921 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaUnusedExpression.html @@ -0,0 +1,22 @@ + + +

      报告值未被使用的表达式。

      + +

      不会报告具有副作用或转移控制流的表达式。

      + +

      示例:

      +
      
      +  def test(): Int = {
      +    3 // 未使用
      +    3
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  def test(): Int = {
      +    3
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaUnusedSymbol.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaUnusedSymbol.html new file mode 100644 index 000000000..21f73b996 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaUnusedSymbol.html @@ -0,0 +1,22 @@ + + +

      报告未使用的本地符号。

      + +

      该快速修复会移除未使用的符号。

      + +

      示例:

      +
      
      +  def test(): Int = {
      +    val unused = 3
      +    3
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  def test(): Int = {
      +    3
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaWrongPlatformMethodsUsage.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaWrongPlatformMethodsUsage.html new file mode 100644 index 000000000..f986544b2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaWrongPlatformMethodsUsage.html @@ -0,0 +1,6 @@ + + +

      报告不应直接使用的 IntelliJ IDEA 平台方法。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalaXmlUnmatchedTag.html b/original-plugin-raw/zh/inspectionDescriptions/ScalaXmlUnmatchedTag.html new file mode 100644 index 000000000..fb912f10a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalaXmlUnmatchedTag.html @@ -0,0 +1,13 @@ + + +

      报告 Scala xml 表示法中未关闭或未打开的 xml 标记。

      +

      在以下示例中,open 被标记为未打开:

      +
      
      +  val someXml =
      +    <xml>
      +      </open>
      +    </xml>
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScalarTypeRequired.html b/original-plugin-raw/zh/inspectionDescriptions/ScalarTypeRequired.html new file mode 100644 index 000000000..0afb8d1c2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScalarTypeRequired.html @@ -0,0 +1,5 @@ + + +报告被要求具有标量类型但没有的表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScheduledMethodInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ScheduledMethodInspection.html new file mode 100644 index 000000000..1cbd1ad59 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScheduledMethodInspection.html @@ -0,0 +1,9 @@ + + +

      报告不正确的 @Scheduled 方法。

      + +

      根据 Spring 文档,待计划的方法必须返回 void 并且不能预期任何实参。 + 如果方法需要与来自应用程序上下文的其他对象进行交互,则应通过依赖项注入提供对象。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScheduledThreadPoolExecutorWithZeroCoreThreads.html b/original-plugin-raw/zh/inspectionDescriptions/ScheduledThreadPoolExecutorWithZeroCoreThreads.html new file mode 100644 index 000000000..f48078f2e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScheduledThreadPoolExecutorWithZeroCoreThreads.html @@ -0,0 +1,16 @@ + + +报告任何通过 setCorePoolSize 方法或对象构造函数将 corePoolSize 设置为零的 java.util.concurrent.ScheduledThreadPoolExecutor 实例。 +

      + 无核心线程的 ScheduledThreadPoolExecutor 不运行任何内容。 +

      +

      示例:

      +
      
      +  void foo(int corePoolSize) {
      +      if (corePoolSize != 0) return;
      +      ThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(corePoolSize); // 警告
      +      executor.setCorePoolSize(corePoolSize); // 警告
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ScopeFunctionConversion.html b/original-plugin-raw/zh/inspectionDescriptions/ScopeFunctionConversion.html new file mode 100644 index 000000000..33b809dbc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ScopeFunctionConversion.html @@ -0,0 +1,20 @@ + + +报告可彼此转换的范围函数(letrunapplyalso)。 +

      使用相应函数可使代码更简单。

      +

      该快速修复会在范围函数之间彼此替换。

      +

      示例:

      +
      
      +  val x = "".let {
      +      it.length
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  val x = "".run {
      +      length
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SeamAnnotationIncorrectSignatureInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SeamAnnotationIncorrectSignatureInspection.html new file mode 100644 index 000000000..f4942aa01 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SeamAnnotationIncorrectSignatureInspection.html @@ -0,0 +1,67 @@ + + +

      报告出现在具有无效签名或无效类型字段的类或方法上的 Seam 注解。

      + +
        +
      • +

        @Name 在接口和 abstract 类上无效。 在注解的类中要求一个无实参构造函数。

        +
      • +
      • +

        @In 必须出现在字段或 setter 方法上,例如 void setUser(User user)

        +
          +
        • void 返回类型
        • +
        • 一个实参
        • +
        • 非 static
        • +
        • 名称必须以 set 开头
        • +
        +
      • +
      • +

        @Out 必须出现在字段或 getter 方法上,例如 User getUser()

        +
          +
        • 非 void 返回类型
        • +
        • 无实参
        • +
        • 非 static
        • +
        • 名称必须以 get 开头,如果返回类型为 boolean,则可选 is
        • +
        +
      • +
      • +

        @DataModel 必须出现在字段或 getter 方法上(与 @Out 注解相同)。 + 字段类型或返回类型必须是以下之一:

        +
          +
        • java.util.List
        • +
        • java.util.Set
        • +
        • java.util.Map
        • +
        +
      • +
      • +

        @DataModelSelection 必须出现在 setter 方法上。

        +
      • +
      • +

        @DataModelSelectionIndex 必须出现在 setter 方法上。

        +
      • +
      • +

        @Factory@Unwrap 必须出现在具有以下签名的方法上:

        +
          +
        • 非 void 返回类型
        • +
        • 没有形参或单个 org.jboss.seam.Component 形参(或其超类型)
        • +
        • 非 static
        • +
        +
      • +
      • +

        @Create 必须出现在具有以下签名的方法上:

        +
          +
        • 没有形参或单个 org.jboss.seam.Component 形参(或其超类型)
        • +
        • 非 static
        • +
        +
      • +
      • +

        @Destroy 必须出现在具有以下签名的方法上:

        +
          +
        • void 返回类型
        • +
        • 无形参
        • +
        • 非 static
        • +
        +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SeamAnnotationsInconsistencyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SeamAnnotationsInconsistencyInspection.html new file mode 100644 index 000000000..9a032cb70 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SeamAnnotationsInconsistencyInspection.html @@ -0,0 +1,157 @@ + + +

      报告无效组件类型上的 Seam 注解用法。

      + +

      只有属于 Seam 组件的类才允许使用 Seam 注解 +(@Around@Within@DataBinderClass@DataSelectorClass 除外)。
      +此外,许多注解仅对特定组件类型有效,例如,实体 Bean 不支持双向注入、上下文划分或事务划分。

      + +

      Seam 注解允许使用以下组件类型:

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      类型注解无状态
      会话 Bean
      有状态
      会话 Bean
      实体 BeanJava Bean
      组件
      定义
      @NameXXXX
      @ScopeXXXX
      @RoleXXXX
      @RolesXXXX
      @InterceptXXXX
      @JndiNameXX  
      @StartupXXXX
      双向注入@InXX X
      @OutXX X
      @UnwrapXX X
      @FactoryXX X
      @LoggerXX X
      @RequestParameterXX X
      生命周期@Create X X
      @Destroy X X
      @ObserverXXXX
      上下文
      划分
      @BeginXX X
      @BeginTaskXX X
      @EndXX X
      @EndTaskXX X
      @StartTaskXX X
      @ResumeProcessXX X
      @CreateProcessXX X
      事务
      划分
      @Transactional   X
      @RollbackXX X
      验证@IfInvalidXX X
      远程处理@Remote本地接口上的
      X
      本地接口上的
      X
       X
      JSF 数据表@DataModelXX X
      @DataModelIndexXX X
      @DataModelSelectionXX X
      数据绑定@DataBinderClass   X
      @DataSelectorClass   X
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SeamBijectionIllegalScopeParameterInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SeamBijectionIllegalScopeParameterInspection.html new file mode 100644 index 000000000..494b8e682 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SeamBijectionIllegalScopeParameterInspection.html @@ -0,0 +1,18 @@ + + +

      当 Seam 始终使用组件本身定义的范围时,报告 @In@Out 注解中的 scope 形参。

      + +
        +
      • + 指定 @In(create=true) 时,上下文变量必须属于已声明的 Seam 组件。 + 否则,Seam 将不知道要实例化哪个类。 + 换句话说,对于 create=true,您不能注入不是 Seam 组件的值。 + Seam 始终使用组件声明中定义的范围(组件类型的默认范围或 @Scope@Role 中定义的范围)。 +
      • +
      • + 当您使用 @Out 弹出已声明的 Seam 组件的值时,范围始终从该组件中获取。 + 只有不弹出 Seam 组件时,才可以使用 @Out(scope=...)。 +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SeamBijectionTypeMismatchInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SeamBijectionTypeMismatchInspection.html new file mode 100644 index 000000000..70cc91dda --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SeamBijectionTypeMismatchInspection.html @@ -0,0 +1,16 @@ + + +

      报告 JBoss Seam 依赖项双向注入注解,其中属性的类型(字段或访问器形参)与上下文变量的类型不匹配。

      + + +

      示例:

      + +
      
      +   @In("loggedInUser")
      +   private User user;
      +
      +
      + +

      loggedInUser 变量必须可分配给 User 或其子类。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SeamBijectionUndefinedContextVariableInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SeamBijectionUndefinedContextVariableInspection.html new file mode 100644 index 000000000..b045cbfdc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SeamBijectionUndefinedContextVariableInspection.html @@ -0,0 +1,7 @@ + + +

      报告上下文变量名称与任何定义的上下文变量不对应的 JBoss Seam 依赖项双向注入注解。

      + +

      未检测到使用 org.jboss.seam.contexts.Context.set() 添加的上下文变量,可能会导致误警告。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SeamDomModelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SeamDomModelInspection.html new file mode 100644 index 000000000..3548808b1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SeamDomModelInspection.html @@ -0,0 +1,16 @@ + + +

      报告 Seam components.xml 文件中的不正确元素:

      + +
        +
      • 对不可实例化类的引用
      • +
      • 对不扩展所需类的类的引用
      • +
      • 对范围不适当的类的引用
      • +
      • 空标记和特性值
      • +
      • 与所需模式不匹配的标记和特性值(例如,Java 标识符)
      • +
      • 不包含必需子标记或特性的标记
      • +
      • 定义具有重复名称的对象的标记
      • +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SeamDuplicateComponentsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SeamDuplicateComponentsInspection.html new file mode 100644 index 000000000..4d7a5c74a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SeamDuplicateComponentsInspection.html @@ -0,0 +1,6 @@ + + +报告 Seam 类中的重复组件定义。 + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SeamIllegalComponentScopeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SeamIllegalComponentScopeInspection.html new file mode 100644 index 000000000..151ba63a7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SeamIllegalComponentScopeInspection.html @@ -0,0 +1,78 @@ + + + + + +

      报告 @Scope@Role@DataModel 注解,为特定组件指定不受支持的范围。

      + +

      下表列出了每种组件类型的支持范围(粗体为默认范围):

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      无状态
      会话 Bean
      有状态
      会话 Bean
      实体 BeanJava Bean
      STATELESSX  x
      EVENT xxx
      PAGE  xx
      CONVERSATION XXX
      SESSION xxx
      BUSINESS_PROCESS xxx
      APPLICATION xxx
      + +

      @DataModel 上下文变量对其范围有不同的限制:如果未指定范围,则范围与封闭组件的范围相同(如果组件在 STATELESS 范围内,则为 EVENT)。 +或者,为 @DataModel 上下文变量指定 PAGE 范围。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SeamJamComponentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SeamJamComponentInspection.html new file mode 100644 index 000000000..cce768648 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SeamJamComponentInspection.html @@ -0,0 +1,25 @@ + + +

      报告注解的 Seam 类的配置问题

      + +

      示例:

      +
      
      +@Name("authenticator")
      +class SeanComponent {
      +  @Create // 不允许使用 static 方法
      +  private static void create() {...}
      +
      +   @Destroy // 不允许使用 static 方法
      +   private static void destroy() {...}
      +
      +   @DataModel // 非 getter
      +   private Map method() {...}
      +
      +   @Factory // 应为 public
      +   private Map getUniverse2() {...}
      +
      +   @Unwrap // 必须没有形参
      +   private static Map createUniverse(int days) { ... }
      +}
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SecondUnsafeCall.html b/original-plugin-raw/zh/inspectionDescriptions/SecondUnsafeCall.html new file mode 100644 index 000000000..c86293185 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SecondUnsafeCall.html @@ -0,0 +1,13 @@ + + +

      报告链方法或属性调用过程中可能产生的 NullPointerException

      +

      示例:

      +
      
      +  domain?.getZone().getName()
      +
      +

      在应用快速修复后:

      +
      
      +  domain?.getZone()?.getName()
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SecurityRoles.html b/original-plugin-raw/zh/inspectionDescriptions/SecurityRoles.html new file mode 100644 index 000000000..a566a5641 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SecurityRoles.html @@ -0,0 +1,17 @@ + + +报告无效的安全角色名称。 + +

      示例:

      +
      
      +  <web-app>
      +    <security-role>
      +      <role-name>custom#role</role-name> // 错误:名称无效
      +    </security-role>
      +    <security-role>
      +      <role-name>customRole</role-name> // 好名称
      +    </security-role>
      +  </web-app>
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SelenideEmptyMatchText.html b/original-plugin-raw/zh/inspectionDescriptions/SelenideEmptyMatchText.html new file mode 100644 index 000000000..ce78390b3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SelenideEmptyMatchText.html @@ -0,0 +1,9 @@ + + +

      报告传递给 Selenide 的 text()matchText() 条件的空字符串:

      +

      示例:

      +
      
      +  $("#code").shouldHave(text("")) // 错误:text() 的参数不能为空字符串。
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SelfAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/SelfAssignment.html new file mode 100644 index 000000000..7b529f8f2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SelfAssignment.html @@ -0,0 +1,20 @@ + + +报告变量对自身的赋值。 +

      该快速修复会移除冗余赋值。

      +

      示例:

      +
      
      +  fun test() {
      +      var bar = 1
      +      bar = bar
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun test() {
      +      var bar = 1
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SelfIncludingJspFiles.html b/original-plugin-raw/zh/inspectionDescriptions/SelfIncludingJspFiles.html new file mode 100644 index 000000000..bc767c569 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SelfIncludingJspFiles.html @@ -0,0 +1,17 @@ + + +报告 JSP 文件中引用包含 JSP 文件的任何 include 指令。
      + +

      名为 main.jsp 的示例 JSP 文件:

      +
      
      +  <jsp:include page="./main.jsp" /> // 错误:尝试包含包含的文件
      +  ...
      +

      + + +

      + 注意:此类自包含会导致无限递归,因此无法编译 JSP 文件。 +

      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SelfReferenceConstructorParameter.html b/original-plugin-raw/zh/inspectionDescriptions/SelfReferenceConstructorParameter.html new file mode 100644 index 000000000..69b62a17e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SelfReferenceConstructorParameter.html @@ -0,0 +1,16 @@ + + +报告具有非 null 自引用形参的构造函数。 +

      此类构造函数从不实例化类。

      +

      该快速修复会将形参类型转换为可 null。

      +

      示例:

      +
      
      +  class SelfRef(val ref: SelfRef)
      +
      +

      在应用快速修复后:

      +
      
      +  class SelfRef(val ref: SelfRef?)
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SerialAnnotationUsedOnWrongMember.html b/original-plugin-raw/zh/inspectionDescriptions/SerialAnnotationUsedOnWrongMember.html new file mode 100644 index 000000000..5bdf41dab --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SerialAnnotationUsedOnWrongMember.html @@ -0,0 +1,27 @@ + + +报告 SerializableExternalizable 类中不适合使用 java.io.Serial 注解进行注解的方法和字段。 +

      示例:

      +
      
      +class Test implements Serializable {
      +  @Serial // 注解的字段不是序列化机制的一部分,因为它并非 final
      +  private static long serialVersionUID = 7874493593505141603L;
      +
      +  @Serial // 注解的方法不是序列化机制的一部分,因为它并非 private
      +  void writeObject(ObjectOutputStream out) throws IOException {
      +  }
      +}
      +
      +
      
      +class Test implements Externalizable {
      +  @Serial // 该注解方法不是序列化机制的一部分,因为它在 Externalizable 类内部
      +  private void writeObject(ObjectOutputStream out) throws IOException {
      +  }
      +}
      +
      +

      有关所有有效情况的信息,请参阅 java.io.Serial 的文档。

      + +

      仅当项目或模块的语言级别为 14 或更高时,此检查才会报告。 +

      2020.3 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SerialPersistentFieldsWithWrongSignature.html b/original-plugin-raw/zh/inspectionDescriptions/SerialPersistentFieldsWithWrongSignature.html new file mode 100644 index 000000000..502d878d5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SerialPersistentFieldsWithWrongSignature.html @@ -0,0 +1,19 @@ + + +报告 serialPersistentFields 字段未被声明为 private static final ObjectStreamField[]Serializable 类。 +

      + 如果 serialPersistentFields 字段未使用这些修饰符进行声明,序列化行为将与根本未声明该字段如出一辙。 +

      +

      示例:

      +
      
      +  class List implements Serializable {
      +    private List next;
      +
      +    ObjectStreamField[] serialPersistentFields = {new ObjectStreamField("next", List.class)};
      +
      +  }
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SerialVersionUIDNotStaticFinal.html b/original-plugin-raw/zh/inspectionDescriptions/SerialVersionUIDNotStaticFinal.html new file mode 100644 index 000000000..b071fd5d7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SerialVersionUIDNotStaticFinal.html @@ -0,0 +1,17 @@ + + +报告 serialVersionUID 字段未被声明为 private static final longSerializable 类。 +

      示例:

      +
      
      +  class SampleClass implements Serializable {
      +    private long serialVersionUID = 1; // Serializable 类的字段未声明为 'private static final long'
      +
      +    public SampleClass() {
      +        System.out.println(serialVersionUID);
      +    }
      +  }
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SerializableCanHaveDefaultSerialUID.html b/original-plugin-raw/zh/inspectionDescriptions/SerializableCanHaveDefaultSerialUID.html new file mode 100644 index 000000000..52f543085 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SerializableCanHaveDefaultSerialUID.html @@ -0,0 +1,7 @@ + + +报告 serialVersionUID 与默认生成值不同的 Serializable 的继承者。 +当您为 serialVersionUID 使用自定义方案时,或者类中的某些内容自上次修改 serialVersionUID 后发生变化时,可能会发生这种情况,这可能会导致反序列化期间出现问题。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SerializableCtor.html b/original-plugin-raw/zh/inspectionDescriptions/SerializableCtor.html new file mode 100644 index 000000000..2af31281a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SerializableCtor.html @@ -0,0 +1,11 @@ + + +报告可序列化类中的非默认构造函数。 +

      + 平台的 IonObjectSerializer 要求显式指定 @PropertyMapping。 +

      +

      + 快速修复将为构造函数生成必要的 @PropertyMapping 注解。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SerializableDeserializableClassInSecureContext.html b/original-plugin-raw/zh/inspectionDescriptions/SerializableDeserializableClassInSecureContext.html new file mode 100644 index 000000000..310b417ff --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SerializableDeserializableClassInSecureContext.html @@ -0,0 +1,46 @@ + + +报告可以被序列化或反序列化的类。 +

      + 如果一个类支持 Serializable 接口,并且它的 readObject()writeObject() 方法未被定义为总是抛出异常,那么就可以被序列化。 在供安全使用的代码中,可序列化的类可能比较危险。 +

      +

      示例:

      +
      
      +  class DeserializableClass implements Serializable { // 该类不包含抛出异常的 'writeObject()' 方法
      +    private int sensitive = 736326;
      +
      +    private void readObject(ObjectInputStream in) {
      +        throw new Error();
      +    }
      +}
      +
      +

      在应用快速修复后:

      +
      
      +  class DeserializableClass implements Serializable {
      +    private int sensitive = 736326;
      +
      +    private void readObject(ObjectInputStream in) {
      +        throw new Error();
      +    }
      +
      +    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      +        throw new java.io.NotSerializableException("DeserializableClass");
      +    }
      +  }
      +
      + +

      + 使用以下选项配置检查: +

      +
        +
      • + 列出此检查不应报告其继承者的类。 + 这适用于从超类继承 Serializable 但不用于序列化的类。 + 请注意,与其忽略这些类,添加始终抛出异常的 readObject()writeObject() 方法可能更安全。 +
      • +
      • + 是否忽略可序列化的匿名类。 +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SerializableHasSerialVersionUIDField.html b/original-plugin-raw/zh/inspectionDescriptions/SerializableHasSerialVersionUIDField.html new file mode 100644 index 000000000..572677a94 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SerializableHasSerialVersionUIDField.html @@ -0,0 +1,31 @@ + + +报告实现 Serializable 且不声明 serialVersionUID 字段的类。 +

      + 如果没有 serialVersionUID 字段,对该类做出的任何更改都将导致以前序列化的版本不可读。 +

      +

      示例:

      +
      
      +  class Main implements Serializable {
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Main implements Serializable {
      +      private static final long serialVersionUID = -1446398935944895849L;
      +  }
      +
      +当使用 JDK 14 或更高的语言级别时,快速修复还将添加 java.io.Serial 注解。 + +

      使用以下选项配置检查:

      +
        +
      • + 列出此检查不应报告其继承者的类。 + 这适用于从超类继承 Serializable 但不用于序列化的类。 +
      • +
      • + 是否忽略 Serializable 匿名类。 +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SerializableHasSerializationMethods.html b/original-plugin-raw/zh/inspectionDescriptions/SerializableHasSerializationMethods.html new file mode 100644 index 000000000..d1c55c43e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SerializableHasSerializationMethods.html @@ -0,0 +1,24 @@ + + +报告不实现 readObject()writeObject() 方法的 Serializable 类。 +

      + 如果没有实现 readObject()writeObject() 方法,将使用默认的序列化算法,在许多环境中,这对于性能和兼容性而言或许是次优选择。 +

      + +

      + 使用以下选项配置检查: +

      +
        +
      • + 列出此检查不应报告其继承者的类。 + 这适用于从超类继承 Serializable 但不用于序列化的类。 +
      • +
      • + 是否忽略没有非 static 字段的 Serializable 类。 +
      • +
      • + 是否忽略 Serializable 匿名类。 +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SerializableInnerClassHasSerialVersionUIDField.html b/original-plugin-raw/zh/inspectionDescriptions/SerializableInnerClassHasSerialVersionUIDField.html new file mode 100644 index 000000000..de2737f26 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SerializableInnerClassHasSerialVersionUIDField.html @@ -0,0 +1,36 @@ + + +报告实现 java.io.Serializable 但不定义 serialVersionUID 字段的非 static 内部类。 +

      + 如果没有 serialVersionUID 字段,对该类做出的任何更改都将导致以前序列化的版本不可读。 强烈建议 Serializable 非 static 内部类包含 serialVersionUID 字段,否则由于合成访问器方法的差异,默认序列化算法可能导致编译器之间的序列化版本不兼容。 +

      +

      + 建议通过快速修复添加缺失的 serialVersionUID 字段。 +

      +

      示例:

      +
      
      +  class Outer {
      +      class Inner implements Serializable {}
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Outer {
      +      class Inner implements Serializable {
      +          private static final long serialVersionUID = -7004458730436243902L;
      +      }
      +  }
      +
      + +

      使用以下选项配置检查:

      +
        +
      • + 列出此检查不应报告其继承者的类。 + 这适用于从超类继承 Serializable 但不用于序列化的类。 +
      • +
      • + 是否忽略 Serializable 匿名类。 +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SerializableInnerClassWithNonSerializableOuterClass.html b/original-plugin-raw/zh/inspectionDescriptions/SerializableInnerClassWithNonSerializableOuterClass.html new file mode 100644 index 000000000..2f8effa1c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SerializableInnerClassWithNonSerializableOuterClass.html @@ -0,0 +1,26 @@ + + +报告实现 Serializable 并在未实现 Serializable 的类中声明的非 static 内部类。 +

      + 由于对外部类的隐式引用,这种类不太可能正确序列化。 +

      +

      示例:

      +
      
      +  class A {
      +      class Main implements Serializable {
      +    }
      +  }
      +
      + +

      使用以下选项配置检查:

      +
        +
      • + 列出此检查不应报告其继承者的类。 + 这适用于从超类继承 Serializable 但不用于序列化的类。 +
      • +
      • + 是否忽略 Serializable 匿名类。 +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SerializableRecordContainsIgnoredMembers.html b/original-plugin-raw/zh/inspectionDescriptions/SerializableRecordContainsIgnoredMembers.html new file mode 100644 index 000000000..8e6e42906 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SerializableRecordContainsIgnoredMembers.html @@ -0,0 +1,36 @@ + + +报告在 record 类中定义的序列化方法或字段。 +序列化方法包括 writeObject()readObject()readObjectNoData()writeExternal()readExternal(),以及字段 serialPersistentFields。 + 这些成员不用于记录的序列化或反序列化,因此不必要使用。 +

      示例:

      +
      
      +  record R1() implements Serializable {
      +    // 该字段在记录序列化期间被忽略
      +    @Serial
      +    private static final ObjectStreamField[] serialPersistentFields = new ObjectStreamField[0];
      +
      +    // 该方法在记录序列化期间被忽略
      +    @Serial
      +    private void writeObject(ObjectOutputStream out) throws IOException {
      +    }
      +  }
      +
      +
      
      +  record R2() implements Externalizable {
      +    // 该方法在记录序列化期间被忽略
      +    @Override
      +    public void writeExternal(ObjectOutput out) throws IOException {
      +    }
      +
      +    // 该方法在记录序列化期间被忽略
      +    @Override
      +    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
      +    }
      +  }
      +
      + +

      此检查仅适用于 14 或更高的语言级别。

      +

      2020.3 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SerializableStoresNonSerializable.html b/original-plugin-raw/zh/inspectionDescriptions/SerializableStoresNonSerializable.html new file mode 100644 index 000000000..e83bc7231 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SerializableStoresNonSerializable.html @@ -0,0 +1,28 @@ + + +报告任何对 Serializable lambda、局部类和匿名类外部的非 Serializable 局部变量的引用。 +

      + 从匿名类引用局部变量时,它的值存储在该类的隐式字段中。 对于局部类和 lambda 也是如此。 如果变量类型为非 Serializable,序列化将失败。 +

      +

      示例:

      +
      
      +  interface A extends Serializable {
      +      abstract void foo();
      +  }
      +  class B {}
      +  class C {
      +      void foo() {
      +          B b = new B();
      +          A a = new A() {
      +              @Override
      +              public void foo() {
      +                  System.out.println(b); // 警告
      +              }
      +          };
      +      }
      +  }
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SerializableWithUnconstructableAncestor.html b/original-plugin-raw/zh/inspectionDescriptions/SerializableWithUnconstructableAncestor.html new file mode 100644 index 000000000..f003d1dc5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SerializableWithUnconstructableAncestor.html @@ -0,0 +1,23 @@ + + +报告最近的不可序列化祖先没有无实参构造函数的 Serializable 类。 这种类无法反序列化,将失败并抛出 InvalidClassException。 +

      示例:

      +
      
      +  class Ancestor {
      +    private String name;
      +    Ancestor(String name) {
      +      this.name = name;
      +    }
      +  }
      +
      +  //对此类发出警告,因为超类并非
      +//可序列化,并且其构造函数接受实参
      +  class Descendant extends Ancestor implements Serializable {
      +    Descendant() {
      +      super("Bob");
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ServerEndpointInconsistencyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ServerEndpointInconsistencyInspection.html new file mode 100644 index 000000000..346c4a5fb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ServerEndpointInconsistencyInspection.html @@ -0,0 +1,19 @@ + + +

      报告 WebSocket 端点声明错误。

      +

      + 根据 JSR 356 规范,WebSocket 端点对于每种消息类型必须只有一个 @OnMessage 方法:text、message 和 pong +

      +

      + 使用 javax.websocket.server.ServerEndpoint 注解的端点类只能具有一个带有以下三种生命周期注解之一的方法: +

      +
        +
      • @OnOpen
      • +
      • @OnClose
      • +
      • @OnError
      • +
      +

      + 从 javax.websocket.Endpoint 扩展的端点类必须实现相应的生命周期方法,而不是使用注解。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ServletWithoutMappingInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ServletWithoutMappingInspection.html new file mode 100644 index 000000000..f4103529b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ServletWithoutMappingInspection.html @@ -0,0 +1,20 @@ + + +报告没有关联映射的 servlet。 + +

      示例:

      +
      
      +  <web-app>
      +    <servlet>
      +      <servlet-name>foo</servlet-name> // 错误:servlet 应该有一个映射
      +      <servlet-class>javax.servlet.Servlet</servlet-class>
      +    </servlet>
      +  
      +    <filter>
      +      <filter-name>bar</filter-name> // 错误:筛选器应该有一个映射
      +      <filter-class>java.lang.String</filter-class>
      +    </filter>
      +  </web-app>
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SessionScopedInjectsRequestScoped.html b/original-plugin-raw/zh/inspectionDescriptions/SessionScopedInjectsRequestScoped.html new file mode 100644 index 000000000..fd5119ae7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SessionScopedInjectsRequestScoped.html @@ -0,0 +1,6 @@ + + +

      报告使用 com.google.inject.servlet.SessionScoped 注解的类,这些类注入了 com.google.inject.servlet.RequestScoped 类。 + 此类范围反转具有不确定的语义,很可能是无意为之。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SetReplaceableByEnumSet.html b/original-plugin-raw/zh/inspectionDescriptions/SetReplaceableByEnumSet.html new file mode 100644 index 000000000..0deae2115 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SetReplaceableByEnumSet.html @@ -0,0 +1,21 @@ + + +报告内容类型为枚举类的 java.util.Set 对象的实例化。 此类 Set 对象可以替换为 java.util.EnumSet 对象。 +

      + 与其他集合相比,EnumSet 实现的效率更高,因为底层数据结构是位向量。 使用该快速修复可以将初始值设定项替换为 EnumSet.noneOf() 调用。 当变量类型是 Set 的子类时,此快速修复不可用。 +

      +

      示例:

      +
      
      +  enum MyEnum { FOO, BAR; }
      +
      +  Set<MyEnum> enums = new HashSet<MyEnum>();
      +
      +

      在应用快速修复后:

      +
      
      +  enum MyEnum { FOO, BAR; }
      +
      +  Set<MyEnum> enums = EnumSet.noneOf(MyEnum.class);
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SetterBackingFieldAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/SetterBackingFieldAssignment.html new file mode 100644 index 000000000..8deb1f195 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SetterBackingFieldAssignment.html @@ -0,0 +1,24 @@ + + +报告不更新支持字段的属性 setter。 +

      该快速修复会向支持字段中添加赋值。

      +

      示例:

      +
      
      +  class Test {
      +      var foo: Int = 1
      +          set(value) {
      +          }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Test {
      +      var foo: Int = 1
      +          set(value) {
      +              field = value
      +          }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SetterForReadonlyProperty.html b/original-plugin-raw/zh/inspectionDescriptions/SetterForReadonlyProperty.html new file mode 100644 index 000000000..483a89523 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SetterForReadonlyProperty.html @@ -0,0 +1,5 @@ + + + 报告具有 readonly 特性的属性的 setter 方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SeveralTargetsMessage.html b/original-plugin-raw/zh/inspectionDescriptions/SeveralTargetsMessage.html new file mode 100644 index 000000000..32f86a407 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SeveralTargetsMessage.html @@ -0,0 +1,5 @@ + + + 报告可以解析为多个目标方法的发送消息表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SharedThreadLocalRandom.html b/original-plugin-raw/zh/inspectionDescriptions/SharedThreadLocalRandom.html new file mode 100644 index 000000000..da0efcdd8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SharedThreadLocalRandom.html @@ -0,0 +1,32 @@ + + +报告可能在线程之间共享的 java.util.concurrent.ThreadLocalRandom 实例。 +

      + ThreadLocalRandom 不应在线程之间共享,因为不具备线程安全。 + 该检查可以报告分配给用作方法实参的字段,或分配给局部变量并在匿名类或嵌套类中使用的实例,因为它们可能在线程之间共享。 +

      +

      + ThreadLocalRandom 的用法通常应类似于ThreadLocalRandom.current().nextInt(...)(或 nextDouble(...) 等)。 + 当所有用法都采取这种形式时,ThreadLocalRandom 实例就不会被多个线程误用。 +

      +

      示例:

      +
      
      +    class Main {
      +      void printRandomNumbersAsync() {
      +        ThreadLocalRandom random = ThreadLocalRandom.current();
      +        CompletableFuture.supplyAsync(() -> generateNumbers(random))
      +          .thenAccept(numbers -> System.out.println(Arrays.toString(numbers)));
      +      }
      +
      +      private int[] generateNumbers(Random random) {
      +        return random.ints(1000, 0, 100).toArray();
      +      }
      +    }
      +  
      + +

      + 使用这些选项可以列出能够作为实参传递给 ThreadLocalRandom 实例的方法。 + 可以将正则表达式用于方法名称。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ShellCheck.html b/original-plugin-raw/zh/inspectionDescriptions/ShellCheck.html new file mode 100644 index 000000000..073a1b461 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ShellCheck.html @@ -0,0 +1,5 @@ + + +报告由集成的 ShellCheck 静态分析工具检测到的 shell 脚本错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ShiftOutOfRange.html b/original-plugin-raw/zh/inspectionDescriptions/ShiftOutOfRange.html new file mode 100644 index 000000000..336f43e42 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ShiftOutOfRange.html @@ -0,0 +1,14 @@ + + +报告移位值为超出合理范围的常量的移位运算。 +

      报告 0..31 范围以外的整数移位运算以及 0..63 范围以外的长移位运算。 负值或过大值移位几乎肯定表明存在编码错误。 +

      +

      示例:

      +
      
      +  int shiftSize = 32;
      +  // 警告:移动 32 位相当于移动 0 位,所以根本没有移位。
      +  int mask = (1 << shiftSize) - 1;
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ShiftOutOfRangeJS.html b/original-plugin-raw/zh/inspectionDescriptions/ShiftOutOfRangeJS.html new file mode 100644 index 000000000..5263d8813 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ShiftOutOfRangeJS.html @@ -0,0 +1,6 @@ + + + +报告此类情况下的移位运算,即第二个操作数是合理范围外的常量,例如 0..31 范围外的整数移位运算,移位的值为负值或过大的值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ShrinkerArrayType.html b/original-plugin-raw/zh/inspectionDescriptions/ShrinkerArrayType.html new file mode 100644 index 000000000..eb71649df --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ShrinkerArrayType.html @@ -0,0 +1,12 @@ + + +

      + 报告数组类型表示法的不正确用法。 +
      + type[] 应用于数组类型,不包含任何空格。 +
      +
      + 示例:java.lang.Object[]。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ShrinkerInnerClassSeparator.html b/original-plugin-raw/zh/inspectionDescriptions/ShrinkerInnerClassSeparator.html new file mode 100644 index 000000000..26138f8da --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ShrinkerInnerClassSeparator.html @@ -0,0 +1,5 @@ + + +报告 Shrinker 配置文件中类和内部类之间的无效分隔符。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ShrinkerInvalidFlags.html b/original-plugin-raw/zh/inspectionDescriptions/ShrinkerInvalidFlags.html new file mode 100644 index 000000000..e0ea4c122 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ShrinkerInvalidFlags.html @@ -0,0 +1,5 @@ + + +报告 Shrinker 配置中无效的的标志。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ShrinkerUnresolvedReference.html b/original-plugin-raw/zh/inspectionDescriptions/ShrinkerUnresolvedReference.html new file mode 100644 index 000000000..5f31d4e2e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ShrinkerUnresolvedReference.html @@ -0,0 +1,5 @@ + + +报告对 Shrinker 配置中的类成员的未解析引用。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SideEffectsInMonadicTransformation.html b/original-plugin-raw/zh/inspectionDescriptions/SideEffectsInMonadicTransformation.html new file mode 100644 index 000000000..f7acf2ded --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SideEffectsInMonadicTransformation.html @@ -0,0 +1,13 @@ + + +

      报告在单体转换(mapflatMapfilter)中有副作用的表达式。

      +

      考虑将单体转换移动到单独的 foreach 通道。

      + +

      示例:

      +
      
      +  var a = 0
      +  Seq(1, 2).map(a += _)
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SignalWithoutCorrespondingAwait.html b/original-plugin-raw/zh/inspectionDescriptions/SignalWithoutCorrespondingAwait.html new file mode 100644 index 000000000..8444afd0b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SignalWithoutCorrespondingAwait.html @@ -0,0 +1,26 @@ + + +报告对无法为之找到相应 Condition.await() 调用的 Condition.signal()Condition.signalAll() 的调用。 +

      此检查仅报告以当前类的目标字段为目标的调用。

      +

      示例:

      +
      
      +  class Queue {
      +    private final Condition isEmpty = ...;
      +
      +    void add(Object elem) {
      +      // ...
      +      isEmpty.signal(); // 警告:在没有相应 'await()' 的情况下调用 'signal()'
      +      // ...
      +    }
      +
      +    void remove(Object elem) throws InterruptedException {
      +      // ...
      +      //      isEmpty.await();
      +      // ...
      +    }
      +  }
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SignednessMismatch.html b/original-plugin-raw/zh/inspectionDescriptions/SignednessMismatch.html new file mode 100644 index 000000000..40731b104 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SignednessMismatch.html @@ -0,0 +1,5 @@ + + + 报告在无符号类型 B 的上下文中使用有符号类型 A 的表达式(赋值,转换,作为形参传递,从方法、函数或块返回等)的情况。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SillyAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/SillyAssignment.html new file mode 100644 index 000000000..9b7ce4381 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SillyAssignment.html @@ -0,0 +1,10 @@ + + +报告变量对自身的赋值。 +

      示例:

      +
      
      +  a = a;
      +
      +

      该快速修复会移除赋值。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SillyAssignmentJS.html b/original-plugin-raw/zh/inspectionDescriptions/SillyAssignmentJS.html new file mode 100644 index 000000000..0df23b8d6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SillyAssignmentJS.html @@ -0,0 +1,5 @@ + + +报告 x = x 形式的赋值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimpleDateFormatWithoutLocale.html b/original-plugin-raw/zh/inspectionDescriptions/SimpleDateFormatWithoutLocale.html new file mode 100644 index 000000000..bce1bd78e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimpleDateFormatWithoutLocale.html @@ -0,0 +1,9 @@ + + +报告未指定 java.util.Localejava.util.SimpleDateFormat 的实例化。 +在国际化环境中,这些调用可能是不正确的。 +

      示例:

      +
      new SimpleDateFormat("yyyy");
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimpleRedundantLet.html b/original-plugin-raw/zh/inspectionDescriptions/SimpleRedundantLet.html new file mode 100644 index 000000000..0a6a25c21 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimpleRedundantLet.html @@ -0,0 +1,15 @@ + + +报告基于接收器的冗余 let 调用。 +

      该快速修复会移除冗余 let 调用。

      +

      示例:

      +
      
      +  fun test(s: String?): Int? = s?.let { it.length }
      +
      +

      在应用快速修复后:

      +
      
      +  fun test(s: String?): Int? = s?.length
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifiableAnnotation.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableAnnotation.html new file mode 100644 index 000000000..dfaa0f925 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableAnnotation.html @@ -0,0 +1,21 @@ + + +报告可以简化为其“单个元素”或“标记”速记形式的注解。 +

      还会报告在 @ 符号和注解名称之间包含空格的注解。

      +

      示例:

      +
      
      +  @interface Foo { String[] value(); }
      +
      +  @ Foo({"foo"})
      +  public String name;
      +
      +

      在应用快速修复后:

      +
      
      +  @interface Foo { String[] value(); }
      +
      +  @Foo("foo")
      +  public String name;
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifiableAssertion.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableAssertion.html new file mode 100644 index 000000000..bda069783 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableAssertion.html @@ -0,0 +1,35 @@ + + +报告任何可以替换为更简单的等效调用的 assert 调用。 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      示例替换
      assertEquals(true, x());assertTrue(x());
      assertTrue(y() != null);assertNotNull(y());
      assertTrue(z == z());assertSame(z, z());
      assertTrue(a.equals(a()));assertEquals(a, a());
      assertTrue(false);fail();
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifiableBooleanExpression.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableBooleanExpression.html new file mode 100644 index 000000000..5501106f0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableBooleanExpression.html @@ -0,0 +1,32 @@ + + +报告可以简化的布尔表达式。 +

      示例:

      +
      
      +  void f(boolean foo, boolean bar) {
      +    boolean b = !(foo ^ bar);
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  void f(boolean foo, boolean bar) {
      +    boolean b = foo == bar;
      +  }
      +
      + +

      示例:

      +
      
      +  void f(boolean foo, boolean bar) {
      +    boolean b = (foo && bar) || !foo;
      +  }
      +  
      +

      在应用快速修复后:

      +
      
      +  void f(boolean foo, boolean bar) {
      +    boolean b = !foo || bar;
      +  }
      +  
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifiableCall.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableCall.html new file mode 100644 index 000000000..65a24c643 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableCall.html @@ -0,0 +1,20 @@ + + +报告可替换为简化形式的库函数调用。 +

      使用相应函数可使代码更简单。

      +

      该快速修复会在函数调用之间彼此替换。

      +

      示例:

      +
      
      +  fun test(list: List<Any>) {
      +      list.filter { it is String }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun test(list: List<Any>) {
      +      list.filterIsInstance<String>()
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifiableCallChain.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableCallChain.html new file mode 100644 index 000000000..8786deef1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableCallChain.html @@ -0,0 +1,20 @@ + + +报告可由单个调用替换的双调用链。 +

      它可以帮助您避免冗余代码执行。

      +

      该快速修复会将调用链替换为单个调用。

      +

      示例:

      +
      
      +  fun main() {
      +      listOf(1, 2, 3).filter { it > 1 }.count()
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun main() {
      +      listOf(1, 2, 3).count { it > 1 }
      +  }
      +
      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifiableConditionalExpression.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableConditionalExpression.html new file mode 100644 index 000000000..ba36d2b3f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableConditionalExpression.html @@ -0,0 +1,12 @@ + + +报告并建议简化条件表达式。 +

      示例:

      +
      condition ? true : foo → condition || foo
      +
      condition ? false : foo → !condition && foo
      +
      condition ? foo : !foo → condition == foo
      +
      condition ? true : false → condition
      +
      a == b ? b : a → a
      +
      result != null ? result : null → result
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifiableEqualsExpression.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableEqualsExpression.html new file mode 100644 index 000000000..b6c00ed9b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableEqualsExpression.html @@ -0,0 +1,18 @@ + + +报告与后接使用常量实参调用 equals()null 的比较。 + +

      示例:

      +
      
      +  if (s != null && s.equals("literal")) {}
      +
      +

      在应用快速修复后:

      +
      
      +  if ("literal".equals(s)) {}
      +
      + +

      + 当 equals() 的实参被证明不是 null 时,使用检查设置可以报告带有非常量实参的 equals() 调用。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifiableFoldOrReduce.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableFoldOrReduce.html new file mode 100644 index 000000000..96c8684e1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableFoldOrReduce.html @@ -0,0 +1,22 @@ + + +

      报告可以替换为 sumproductmaxminfoldreduce 方法。

      +

      示例:

      +
      
      +  List(1, 2, 3).foldLeft(1){(x,y) => x * y}
      +  List(1, 2, 3).fold(0)(_ + _)
      +  List(1, 2, 3).reduce(_ + _)
      +  List(1, 2, 3).reduceLeft(_ min _)
      +  List(1, 2, 3).reduce((x, y) => math.max(x, y))
      +
      +

      在应用快速修复后:

      +
      
      +  List(1, 2, 3).product
      +  List(1, 2, 3).sum
      +  List(1, 2, 3).sum
      +  List(1, 2, 3).min
      +  List(1, 2, 3).max
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifiableIfStatement.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableIfStatement.html new file mode 100644 index 000000000..620471644 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifiableIfStatement.html @@ -0,0 +1,25 @@ + + +报告可以替换为使用 &&||==!=?: 运算符的条件的 if 语句 。 +

      结果通常更短,但并不总是更清晰,因此不建议在每种情况下都应用此修复程序。

      +

      示例:

      +
      
      +  if (condition) return true; else return foo;
      +
      +

      在应用快速修复后:

      +
      
      +  return condition || foo;
      +
      + +

      配置检查:

      +
        +
      • + 当建议使用 ?: 运算符时,请使用 不建议使用 '?:' 运算符 选项禁用警告。 在这种情况下,只会突出显示 &&||==!= 建议。 快速修复仍将在编辑器中可用。 +
      • +
      • + 使用 忽略链式 'if' 语句 选项禁用 if-else 链的警告 快速修复仍将在编辑器中可用。 +
      • +
      +

      2018.2 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Simplify.html b/original-plugin-raw/zh/inspectionDescriptions/Simplify.html new file mode 100644 index 000000000..26f18f4c7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Simplify.html @@ -0,0 +1,12 @@ + + +报告可以简化的语句,例如常量条件、相同的 if 分支、冗余布尔表达式等。 +使用下面的复选框可以控制分析选项: +
        +
      • 简化 "if (true)", "while(false)":建议将 if/while 语句替换为布尔文字。
      • +
      • 简化 "condition == true":建议将相等语句替换为布尔文字。
      • +
      • 简化 "condition1 ? true : condition2;":建议简化其中一个表达式是布尔文字的三元运算符。
      • +
      • 简化 "if (condition1) return true; return condition2;":建议简化符合以下条件的 if:如果条件为 true 则返回布尔文字,否则返回另一个条件。
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifyAssertNotNull.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifyAssertNotNull.html new file mode 100644 index 000000000..6f09927bb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifyAssertNotNull.html @@ -0,0 +1,21 @@ + + +报告检查已声明变量非 null 值的 assert 调用。 +

      使用 !! or ?: 可使代码更简单。

      +

      该快速修复会将变量初始值设定项中的 assert 替换为 !!?: 运算符。

      +

      示例:

      +
      
      +  fun foo(p: Array<String?>) {
      +      val v = p[0]
      +      assert(v != null, { "Should be not null" })
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo(p: Array<String?>) {
      +      val v = p[0] ?: error("Should be not null")
      +  }
      +
      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifyBoolean.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifyBoolean.html new file mode 100644 index 000000000..f93e12f31 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifyBoolean.html @@ -0,0 +1,14 @@ + + +

      报告可以简化的布尔表达式。

      +

      示例:

      +
      
      +  true || false
      +
      +

      在应用快速修复后:

      +
      
      +  true
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifyBooleanMatch.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifyBooleanMatch.html new file mode 100644 index 000000000..492fad355 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifyBooleanMatch.html @@ -0,0 +1,23 @@ + + +

      报告可以由条件语句替换的布尔表达式上的普通模式匹配。

      +

      示例:

      +
      
      +  val bool: Boolean
      +  bool match {
      +    case true => ???
      +    case false => ???
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  val bool: Boolean
      +  if (bool) {
      +    ???
      +  } else {
      +    ???
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifyBooleanWithConstants.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifyBooleanWithConstants.html new file mode 100644 index 000000000..cbacd38ed --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifyBooleanWithConstants.html @@ -0,0 +1,23 @@ + + +报告能够缩减为常量的布尔表达式。 +

      该快速修复会简化条件。

      +

      示例:

      +
      
      +  fun use(arg: Boolean) {
      +      if (false == arg) {
      +
      +      }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun use(arg: Boolean) {
      +      if (!arg) {
      +
      +      }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifyCollector.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifyCollector.html new file mode 100644 index 000000000..406c85b52 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifyCollector.html @@ -0,0 +1,17 @@ + + +报告可以简化的收集器。 +

      特别是,一些级联的 groupingBy 收集器可以使用更简单的 toMap 收集器来表示,这也可能会提高性能。

      +

      示例:

      +
      
      +  Collectors.groupingByConcurrent(String::length, Collectors.collectingAndThen(Collectors.maxBy(String::compareTo), Optional::get));
      +
      +

      在应用快速修复后:

      +
      
      +  Collectors.toConcurrentMap(String::length, Function.identity(), BinaryOperator.maxBy(String::compareTo));
      +
      + +

      仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。

      +

      2017.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifyFactoryMethod.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifyFactoryMethod.html new file mode 100644 index 000000000..a369fabc5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifyFactoryMethod.html @@ -0,0 +1,30 @@ + + +

      报告可将动态调用替换为构造函数调用的情况。

      +

      示例:

      +
      
      +  import akka.actor._
      +  
      +  class Foo(foo: String, bar: Int) extends AbstractActor
      +  
      +  object Foo {
      +    def props(foo: String, bar: Int): Props = Props(classOf[Foo], foo, bar)
      +  }
      +  
      +  Foo.props("foo", 42)
      +
      +

      在应用快速修复后:

      +
      
      +  import akka.actor._
      +  
      +  class Foo(foo: String, bar: Int) extends AbstractActor
      +  
      +  object Foo {
      +    def props(foo: String, bar: Int): Props = Props(new Foo(foo, bar))
      +  }
      +  
      +  Foo.props("foo", 42)
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifyForEach.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifyForEach.html new file mode 100644 index 000000000..e3e4a65c0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifyForEach.html @@ -0,0 +1,27 @@ + + +报告可以替换为更简洁的方法或可以从中提取中间步骤的 forEach() 调用。 +

      示例:

      +
      
      +  List<String> findNStrings(List<String> list, int n) {
      +    List<String> other = new ArrayList<>();
      +    list.forEach(s -> {
      +      if(s.length() > n) other.add(s);
      +    });
      +    return other;
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  List<String> findNStrings(List<String> list, int n) {
      +    List<String> other = list.stream()
      +      .filter(s -> s.length() > n)
      +      .collect(Collectors.toList());
      +    return other;
      +  }
      +
      + +

      仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。

      +

      2017.3 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifyNegatedBinaryExpression.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifyNegatedBinaryExpression.html new file mode 100644 index 000000000..5fd9e003f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifyNegatedBinaryExpression.html @@ -0,0 +1,19 @@ + + +报告可以简化的否定二进制表达式。 +

      该快速修复会简化二进制表达式。

      +

      示例:

      +
      
      +  fun test(n: Int) {
      +      !(0 == 1)
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun test(n: Int) {
      +      0 != 1
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifyNestedEachInScopeFunction.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifyNestedEachInScopeFunction.html new file mode 100644 index 000000000..6b07ecc94 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifyNestedEachInScopeFunction.html @@ -0,0 +1,20 @@ + + +报告 alsoapply 等范围函数中可以简化的 forEach 函数。 +

      将 forEach 调用转换为 onEach 快速修复可用于自动修正代码。

      +

      示例:

      +
      
      +  fun test(list: List<Int>) {
      +      val x = list.also { it.forEach { it + 4 } }.toString()
      +      val y = list.apply { forEach { println(it) } }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun test(list: List<Int>) {
      +      val x = list.onEach { it + 4 }.toString()
      +      val y = list.onEach { println(it) }
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifyOptionalCallChains.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifyOptionalCallChains.html new file mode 100644 index 000000000..fe815e43a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifyOptionalCallChains.html @@ -0,0 +1,15 @@ + + +报告可以简化的 Optional 调用链。 下面是一些简化的例子: +
        +
      • optional.map(x -> true).orElse(false)optional.isPresent()
      • +
      • optional.map(x -> Optional.of(x.trim())).orElseGet(Optional::empty)optional.map(String::trim)
      • +
      • optional.map(x -> (String)x).orElse(null)(String) optional.orElse(null)
      • +
      • Optional.ofNullable(optional.orElse(null))optional
      • +
      • val = optional.orElse(null); val != null ? val : defaultExpr optional.orElse(defaultExpr)
      • +
      • val = optional.orElse(null); if(val != null) expr(val) optional.ifPresent(val -> expr(val))
      • +
      + +

      2017.2 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifyStreamApiCallChains.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifyStreamApiCallChains.html new file mode 100644 index 000000000..d7cf714bd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifyStreamApiCallChains.html @@ -0,0 +1,38 @@ + + +报告可以简化的流 API 调用链。 +简化通常会在集合遍历期间避免一些临时对象创建操作。 +

      + 该检查将替换以下调用链: +

      +
        +
      • collection.stream().forEach()collection.forEach()
      • +
      • collection.stream().collect(toList/toSet/toCollection())new CollectionType<>(collection)
      • +
      • collection.stream().toArray()collection.toArray()
      • +
      • Arrays.asList().stream()Arrays.stream() or Stream.of()
      • +
      • IntStream.range(0, array.length).mapToObj(idx -> array[idx])Arrays.stream(array)
      • +
      • IntStream.range(0, list.size()).mapToObj(idx -> list.get(idx))list.stream()
      • +
      • Collections.singleton().stream()Stream.of()
      • +
      • Collections.emptyList().stream()Stream.empty()
      • +
      • stream.filter().findFirst().isPresent()stream.anyMatch()
      • +
      • stream.collect(counting())stream.count()
      • +
      • stream.collect(maxBy())stream.max()
      • +
      • stream.collect(mapping())stream.map().collect()
      • +
      • stream.collect(reducing())stream.reduce()
      • +
      • stream.collect(summingInt())stream.mapToInt().sum()
      • +
      • stream.mapToObj(x -> x)stream.boxed()
      • +
      • stream.map(x -> {...; return x;})stream.peek(x -> ...)
      • +
      • !stream.anyMatch()stream.noneMatch()
      • +
      • !stream.anyMatch(x -> !(...))stream.allMatch()
      • +
      • stream.map().anyMatch(Boolean::booleanValue)stream.anyMatch()
      • +
      • IntStream.range(expr1, expr2).mapToObj(x -> array[x])Arrays.stream(array, expr1, expr2)
      • +
      • Collection.nCopies(count, ...)Stream.generate().limit(count)
      • +
      • stream.sorted(comparator).findFirst()Stream.min(comparator)
      • +
      • optional.orElseGet(() -> { throw new ...; })optional.orElseThrow()
      • +
      +

      + 请注意,在某些情况下,替换语义可能略有差异。 例如,Collections.synchronizedList(...).stream().forEach() 不同步,而 Collections.synchronizedList(...).forEach() 同步。 + 另外,如果得到的元素为 null,而 Stream.max() 在本例中抛出 NullPointerException,则 collect(Collectors.maxBy()) 返回空的 Optional。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SimplifyWhenWithBooleanConstantCondition.html b/original-plugin-raw/zh/inspectionDescriptions/SimplifyWhenWithBooleanConstantCondition.html new file mode 100644 index 000000000..b0a7d0c79 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SimplifyWhenWithBooleanConstantCondition.html @@ -0,0 +1,15 @@ + + +报告带有常量 truefalse 分支的 when 表达式。 +

      简化 "when" 快速修复可用于自动修正代码。

      +

      示例:

      +
      
      +  fun redundant() {
      +      when { // <== 冗余,快速修复会将 when 表达式简化为 "println("true")"
      +          true -> println("true")
      +          else -> println("false")
      +      }
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/Since15.html b/original-plugin-raw/zh/inspectionDescriptions/Since15.html new file mode 100644 index 000000000..c342f4a84 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Since15.html @@ -0,0 +1,11 @@ + + +报告在所配置的语言级别不可用的 API 的用法。 +

      API 可用性由文档中的 @since 标记中指定的版本定义。 这可能会有用,因为此语言级别可能与您的项目 SDK 不同,并且运行该代码所使用的 JDK 中可能没有此类 API。

      + +

      + 使用禁止使用 API 选项,禁止在项目或自定义语言级别使用 API。 +

      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SingleCharacterStartsWith.html b/original-plugin-raw/zh/inspectionDescriptions/SingleCharacterStartsWith.html new file mode 100644 index 000000000..671460243 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SingleCharacterStartsWith.html @@ -0,0 +1,28 @@ + + +报告对 String.startsWith()String.endsWith() 的调用,其中单字符字符串文字会作为实参传递。 +

      + 建议通过快速修复,使用更高效实现的 String.charAt() 替换此类调用。 +

      +

      + 然而,由于额外的非零长度检查,此类更改的性能增益很小并且会降低代码的可读性,建议仅在紧密循环内应用该快速修复。 +

      +

      + 此检查适用于 Java ME 和其他资源高度受限的环境。 + 不加考虑地应用此检查的结果可能会对代码清晰度和设计产生负面影响。 +

      +

      示例:

      +
      
      +  boolean startsWithX(String s) {
      +    return s.startsWith("x");
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  boolean startsWithX(String s) {
      +    return !s.isEmpty() && s.charAt(0) == 'x';
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SingleClassImport.html b/original-plugin-raw/zh/inspectionDescriptions/SingleClassImport.html new file mode 100644 index 000000000..b68c24152 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SingleClassImport.html @@ -0,0 +1,10 @@ + + +报告导入单个类(而不是整个软件包)的 import 语句。 +

      某些编码标准禁止此类 import 语句。

      +

      + 您可以将 IntelliJ IDEA 配置为使用优化 import 命令检测和修正此类语句。 转到设置 | 编辑器 | 代码样式 | Java | 导入,并清除使用单个类导入复选框。 因此,对于不打算更改的代码库的脱机报告,此检查非常有用。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SingleElementAnnotation.html b/original-plugin-raw/zh/inspectionDescriptions/SingleElementAnnotation.html new file mode 100644 index 000000000..e939b68b2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SingleElementAnnotation.html @@ -0,0 +1,13 @@ + + +报告速记形式的注解并建议以具有特性名称的正常形式重写它们。 +

      示例:

      +
      
      +  @SuppressWarnings("foo")
      +
      +

      在应用快速修复后:

      +
      
      +  @SuppressWarnings(value = "foo")
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SingleImport.html b/original-plugin-raw/zh/inspectionDescriptions/SingleImport.html new file mode 100644 index 000000000..5d6812b02 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SingleImport.html @@ -0,0 +1,14 @@ + + +

      报告 import 表达式中不必要的大括号。

      +

      示例:

      +
      
      +  import scala.math.{max}
      +
      +

      在应用快速修复后:

      +
      
      +  import scala.math.max
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SingleStatementInBlock.html b/original-plugin-raw/zh/inspectionDescriptions/SingleStatementInBlock.html new file mode 100644 index 000000000..1db66c612 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SingleStatementInBlock.html @@ -0,0 +1,15 @@ + + +报告代码块中仅有一条语句的控制流语句,并建议移除控制流语句体中的大括号。 +

      示例:

      +
      
      +  if (x > 0) {
      +    System.out.println("x is positive");
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  if (x > 0) System.out.println("x is positive");
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/Singleton.html b/original-plugin-raw/zh/inspectionDescriptions/Singleton.html new file mode 100644 index 000000000..428fd98c8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Singleton.html @@ -0,0 +1,20 @@ + + +报告单例类。 +

      单例类按照只能实例化该类一个实例的方式进行声明。 单例类导致测试复杂化,存在这种情况可能表明欠缺面向对象的设计。

      +

      示例:

      +
      
      +  class Singleton {
      +    private static final Singleton ourInstance = new Singleton();
      +
      +    private Singleton() {
      +    }
      +
      +    public Singleton getInstance() {
      +        return ourInstance;
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SingletonConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/SingletonConstructor.html new file mode 100644 index 000000000..7feb714f0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SingletonConstructor.html @@ -0,0 +1,28 @@ + + +

      除非被声明为非 strict,否则报告使用 @Singleton 注解的类的构造函数。

      +

      示例:

      +
      
      +  @Singleton
      +  class Foo{
      +      Foo(){
      +      }
      +  }
      +
      +

      有两种可能的快速修复方法:移除该构造函数,或者将 @Singleton 声明为非 strict。

      +

      在应用快速修复后:

      +
      
      +  @Singleton
      +  class Foo{
      +  }
      +
      +

      或:

      +
      
      +  @Singleton(strict = false)
      +  class Foo{
      +      Foo(){
      +      }
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SingletonInjectsScoped.html b/original-plugin-raw/zh/inspectionDescriptions/SingletonInjectsScoped.html new file mode 100644 index 000000000..127ad034d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SingletonInjectsScoped.html @@ -0,0 +1,6 @@ + + +

      报告使用 com.google.inject.Singleton 注解的类,这些类会注入 com.google.inject.servlet.RequestScopedcom.google.inject.servlet.SessionScoped 类。 + 此类范围反转具有不确定的语义,很可能是无意为之。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SizeReplaceableByIsEmpty.html b/original-plugin-raw/zh/inspectionDescriptions/SizeReplaceableByIsEmpty.html new file mode 100644 index 000000000..e60a31875 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SizeReplaceableByIsEmpty.html @@ -0,0 +1,19 @@ + + +报告 0 文字可以替换为对 .isEmpty() 的调用的 .size().length() 比较。 +

      示例:

      +
      
      +  boolean emptyList = list.size() == 0;
      +
      +

      在应用快速修复后:

      +
      
      +  boolean emptyList = list.isEmpty();
      +  
      + +

      + 使用忽略类表可以添加不应为之替换任何 .size().length() 比较的类。 +

      +

      使用忽略将替换为 '!isEmpty()' 的表达式选项可以忽略任何将替换为 !isEmpty() 的表达式。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SizeToLength.html b/original-plugin-raw/zh/inspectionDescriptions/SizeToLength.html new file mode 100644 index 000000000..37f56e5c3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SizeToLength.html @@ -0,0 +1,18 @@ + + +

      报告 array.sizestring.size 调用。

      +

      虽然此类调用是合法的,但它们需要额外的隐式转换为 SeqLike。 + 对数组和字符串调用 length 可能会提供显著优势。

      +

      示例:

      +
      
      +  Array(1, 2, 3, 4).size
      +  "this is a string".size
      +
      +

      在应用快速修复后:

      +
      
      +  Array(1, 2, 3, 4).length
      +  "this is a string".length
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SleepWhileHoldingLock.html b/original-plugin-raw/zh/inspectionDescriptions/SleepWhileHoldingLock.html new file mode 100644 index 000000000..5ee91e676 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SleepWhileHoldingLock.html @@ -0,0 +1,15 @@ + + +报告对发生在 synchronized 块或方法中的java.lang.Thread.sleep() 方法的调用。 +

      + synchronized 块中的 sleep() 可能导致性能下降,可扩展性变差,甚至可能导致死锁。 不妨改用 wait(),因为它将释放持有的锁定。 +

      +

      示例:

      +
      
      +  synchronized (lock) {
      +    Thread.sleep(100);
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SlowAbstractSetRemoveAll.html b/original-plugin-raw/zh/inspectionDescriptions/SlowAbstractSetRemoveAll.html new file mode 100644 index 000000000..ad36ddbdf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SlowAbstractSetRemoveAll.html @@ -0,0 +1,23 @@ + + +报告对包含 java.util.List 实参的 java.util.Set.removeAll() 的调用。 +

      + 当实参大小大于或等于集合大小,并且集合是 java.util.AbstractSet 的子类时,此类调用可能会很慢。 + 在本例中,对集合中的每个元素调用了 List.contains(),将执行线性搜索。 +

      +

      示例:

      +
        public void check(String... ss) {
      +    // 可能的 O(n^2) 复杂度
      +    mySet.removeAll(List.of(ss));
      +  }
      +
      +

      在应用快速修复后:

      +
        public void check(String... ss) {
      +    // O(n) 复杂度
      +    List.of(ss).forEach(mySet::remove);
      +  }
      +
      + +

      2020.3 最新变化

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SmallRyeConfigMappingMissingPrefixInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SmallRyeConfigMappingMissingPrefixInspection.html new file mode 100644 index 000000000..f70e0a668 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SmallRyeConfigMappingMissingPrefixInspection.html @@ -0,0 +1,6 @@ + + +

      报告 @io.smallrye.config.ConfigMapping 注解中的缺失或空 prefix 特性值。

      +

      IDE 需要正确指定的前缀才能查找配置属性。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SocketResource.html b/original-plugin-raw/zh/inspectionDescriptions/SocketResource.html new file mode 100644 index 000000000..943666f93 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SocketResource.html @@ -0,0 +1,28 @@ + + +报告未安全关闭的套接字资源。 此检查报告的套接字资源包括 java.net.Socketjava.net.DatagramSocketjava.net.ServerSocket。 +

      + 默认情况下,该检查假定资源可以由名称中带有 'close' 或 'cleanup' 的任何方法关闭。 +

      +

      示例:

      +
      
      +  byte[] getMessage(ServerSocket socket) throws IOException {
      +    Socket client = socket.accept(); //套接字未关闭
      +    return client.getInputStream().readAllBytes();
      +  }
      +
      + +

      + 使用以下选项配置检查: +

      +
        +
      • + 是否允许在 try 块内打开套接字。 + 这种样式不太合意,因为它比在 try 块前面打开资源更冗长。 +
      • +
      • + 资源能否通过任何将资源作为实参传递的方法调用来关闭。 +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SomeToOption.html b/original-plugin-raw/zh/inspectionDescriptions/SomeToOption.html new file mode 100644 index 000000000..f66b3dd44 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SomeToOption.html @@ -0,0 +1,17 @@ + + +

      报告并将 Some(a) 替换为 Option(a)

      + +

      Option 将额外检查 a 是否为 null,如果是,则结果为 None

      + +

      示例:

      +
      
      +  Some(a)
      +
      +

      在应用快速修复后:

      +
      
      +  Option(a)
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SortFilter.html b/original-plugin-raw/zh/inspectionDescriptions/SortFilter.html new file mode 100644 index 000000000..06d93ae83 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SortFilter.html @@ -0,0 +1,18 @@ + + +

      报告可以通过交换 sortfilter 来提高性能的情况。

      +

      示例:

      +
      
      +  var seq: Seq[Int]
      +  seq.sortWith(lessThan).filter(p)
      +  seq.sortBy(f).filter(p)
      +
      +

      在应用快速修复后:

      +
      
      +  var seq: Seq[Int]
      +  seq.filter(p).sortWith(lessThan)
      +  seq.filter(p).sortBy(f)
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SortModifiers.html b/original-plugin-raw/zh/inspectionDescriptions/SortModifiers.html new file mode 100644 index 000000000..3958f429d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SortModifiers.html @@ -0,0 +1,12 @@ + + +报告未遵循样式指南中所建议顺序的修饰符。 +

      对修饰符排序快速修复可用于自动修正代码。

      +

      示例:

      +
      
      +  private inline fun correctOrder(f: () -> Unit) {} // <== Ok
      +
      +  infix private fun Int.wrongOrder(expr: Int) {} // <== 顺序错误,快速修复会将修饰符修正为 "private infix"
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SortedCollectionWithNonComparableKeys.html b/original-plugin-raw/zh/inspectionDescriptions/SortedCollectionWithNonComparableKeys.html new file mode 100644 index 000000000..864de84c0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SortedCollectionWithNonComparableKeys.html @@ -0,0 +1,17 @@ + + +报告排序集合的结构,例如 TreeSet,它依赖于自然排序,其元素类型不实现 Comparable 接口。 +

      此类集合不太可能正常工作。

      +

      + 如果集合元素类型是不可比较的父类型,但集合只打算保存可比较的子类型,则可能出现误报。 即便这样,也最好缩小集合元素类型的范围或将父类型声明为 Comparable ,因为上述方法容易出错。 +

      + +

      + 该检查还会报告集合元素是未声明为 extends Comparable 的类型形参的情况。 + 您可以使用所提供的选项禁止对类型形参发出警告(例如,为了保持 API 兼容性)。 +

      +

      + 2018.3 最新变化 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SortedHeadLast.html b/original-plugin-raw/zh/inspectionDescriptions/SortedHeadLast.html new file mode 100644 index 000000000..c6376432b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SortedHeadLast.html @@ -0,0 +1,16 @@ + + +

      报告排序和使用 headlast 并建议将其替换为 maxmin

      +

      示例:

      +
      
      +  Seq("abc", "defg", "h").sorted.head
      +  Seq("abc", "defg", "h").sortBy(_.length).last
      +
      +

      在应用快速修复后:

      +
      
      +  Seq("abc", "defg", "h").min
      +  Seq("abc", "defg", "h").maxBy(_.length)
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SourceNotClosed.html b/original-plugin-raw/zh/inspectionDescriptions/SourceNotClosed.html new file mode 100644 index 000000000..9aa966677 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SourceNotClosed.html @@ -0,0 +1,15 @@ + + +

      报告未关闭的 scala.io.Source

      + +

      直接在由 fromFilefromURLfromURI 打开的 Source 上使用 .mkString.getLines 之类的函数将泄漏底层文件句柄。

      + +

      考虑使用 .close()try/finally 来管理资源的生命周期或使用 Scala 2.13 的 Using

      + +

      示例:

      +
      
      +  Source.fromFile("file.txt").getLines()
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SourceToSinkFlow.html b/original-plugin-raw/zh/inspectionDescriptions/SourceToSinkFlow.html new file mode 100644 index 000000000..675d2378c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SourceToSinkFlow.html @@ -0,0 +1,45 @@ + +报告将非安全字符串传递给带有使用注解 org.checkerframework.checker.tainting.qual.Untainted 标记的形参的方法的情况。 +

      + 安全字符串为: +

        +
      • 标记为 @Untainted 的方法调用
      • +
      • 未调用非安全方法的局部变量或方法形参
      • +
      • 标记为 @Untainted 且没有分配非安全方法调用的字段、局部变量或形参
      • +
      +

      +示例: +

      +
      +  void doSmth(boolean b) {
      +    String s = safe();
      +    String s1 = "other";
      +    if (b) s1 = s;
      +    sink(s);
      +  }
      +  
      +  String sink(@Untainted String s) {}
      +
      +
      +

      +此处没有将非安全字符串赋值给 s,因此没有产生警告。 另一方面: +

      +
      +  void doSmth(boolean b) {
      +    String s = safe();
      +    String s1 = "other";
      +    s1 = foo();
      +    if (b) s1 = s;
      +    sink(s);        // 此处为警告
      +  }
      +  
      +  String foo();
      +
      +  String sink(@Untainted String s) {}
      +
      +
      +

      +这里有一条警告,因为 s1foo 调用结果赋值后具有未知状态。 + +

      2021.2 最新变化

      + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Specs2Matchers.html b/original-plugin-raw/zh/inspectionDescriptions/Specs2Matchers.html new file mode 100644 index 000000000..469d04692 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Specs2Matchers.html @@ -0,0 +1,36 @@ + + +

      报告可以使用 specs2 中的内置匹配器。

      +

      示例:

      +
      
      +  class TestSpec extends Specification { def is = s2"""
      +    This is a spec
      +    opt
      +      should contain 1                                  $e1
      +                                                        """
      +    def e1 = {
      +
      +      val opt = Some(1)
      +
      +      opt must equalTo (Some(1))
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class TestSpec extends Specification { def is = s2"""
      +    This is a spec
      +    opt
      +      should contain 1                                  $e1
      +                                                        """
      +    def e1 = {
      +
      +      val opt = Some(1)
      +
      +      opt must beSome(1)
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpellCheckingInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpellCheckingInspection.html new file mode 100644 index 000000000..f94a58c9e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpellCheckingInspection.html @@ -0,0 +1 @@ +报告代码、注释和文字中的拼写错误并一键修正。 diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringAopErrorsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringAopErrorsInspection.html new file mode 100644 index 000000000..2eeff2954 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringAopErrorsInspection.html @@ -0,0 +1,21 @@ + + +

      如果没有 pointcutpointcut-ref 特性,则报告不正确的建议和顾问元素。

      + +

      示例:

      +
      
      +<beans >
      +    <aop:config>
      +      <aop:pointcut id="zzz" expression="args()"/>
      +        <aop:aspect ref="xxx">
      +            <aop:before method="writeArg1" pointcut="execution(* *(String))"/>
      +            <aop:after method="aaa" pointcut-ref="zzz"/>
      +            <aop:after-throwing method="aaa"/> <!--应定义 'pointcut' 或 'pointcut-ref' 特性 -->
      +       </aop:aspect>
      +    </aop:config>
      +</beans>
      +
      +
      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringAopPointcutExpressionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringAopPointcutExpressionInspection.html new file mode 100644 index 000000000..abe62fbba --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringAopPointcutExpressionInspection.html @@ -0,0 +1,16 @@ + + +

      报告 Spring 不支持的 AspectJ 切入点指示符。

      + +

      示例:

      +
      
      +<beans >
      +  <aop:config >
      +      <aop:pointcut expression="@this(Anno)  <!-- '@this' pointcut designator isn't supported by Spring -->
      +                  and adviceexecution()"/> <!--  Spring 不支持 'adviceexecution' 切入点指示符 -->
      +      <aop:pointcut expression="!@annotation(Anno)"/>
      +    </aop:config>
      +</beans>
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringAopWarningsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringAopWarningsInspection.html new file mode 100644 index 000000000..d95ffae44 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringAopWarningsInspection.html @@ -0,0 +1,29 @@ + + +

      报告不正确的切面和切入点。 +当某些 AOP 建议与切面 Bean 匹配时,可能会导致运行时错误。

      + +

      示例: +

      
      +<beans >
      +  <aop:config>
      +    <aop:pointcut expression="args()"/> <!-- 切入点应具有 ID -->
      +    <aop:aspect/> <!-- 应定义 'ref' 特性 -->
      +  </aop:config>
      +</beans>
      +
      +<beans>
      +  <bean id="aspect1" class="Aspect1"/>
      +  <bean id="aspect2" class="Aspect2"/>
      +  <aop:config>
      +    <aop:aspect ref="aspect1"> <!-- 某些建议与此 Bean 匹配 -->
      +    <aop:before method="xxx" pointcut="execution(* foo())"/>
      +    </aop:aspect>
      +    <aop:aspect ref="aspect2">
      +      <aop:before method="xxx" pointcut="execution(* foo())"/>
      +    </aop:aspect>
      +  </aop:config>
      +</beans>
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringBatchModel.html b/original-plugin-raw/zh/inspectionDescriptions/SpringBatchModel.html new file mode 100644 index 000000000..46a335c1d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringBatchModel.html @@ -0,0 +1,39 @@ + + +报告 Spring Batch 基于 XML 的应用程序上下文的问题: +
        +
      • 未解析的 Bean 引用
      • +
      • 缺少标记和特性
      • +
      • 属性类型不正确
      • +
      • enum 属性不一致
      • +
      • 引用 Bean 的类型不正确
      • +
      + + + +

      示例:

      +
      
      +  <beans ... >
      +  <batch:job id="" <!-- Value must not be empty -->
      +    incrementer="dummyBean"  <!-- Bean 必须为 'org.springframework.batch.core.JobParametersIncrementer' 类型 -->
      +    job-repository="transactionManager"  <!-- Bean 必须为 'org.springframework.batch.core.repository.JobRepository' 类型 -->
      +    parent="INVALID_VALUE" <!-- 无法解析作业 INVALID_VALUE -->
      +    restartable="INVALID_VALUE"> <!-- 无法解析符号 INVALID_VALUE -->
      +    <batch:validator
      +      ref="dataSource">  <!-- Bean 必须为 'org.springframework.batch.core.JobParametersValidator' 类型 -->
      +    </batch:validator>
      +  </batch:job>
      +  <batch:job-repository/>
      +
      +  <bean id="dataSource" class="org.springframework.jdbc.datasource.DelegatingDataSource"/>
      +  <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"/>
      +
      +  <bean id="dummyBean" class="java.lang.String"/>
      +</beans>
      +
      + + + + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringBeanAttributesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringBeanAttributesInspection.html new file mode 100644 index 000000000..f6c1f5ad1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringBeanAttributesInspection.html @@ -0,0 +1,29 @@ + + +

      报告 <bean> 特性的配置冲突。

      + +

      示例:

      +
      
      +  <beans>
      +    <bean class="java.lang.String" factory-bean="factoryBean"/>
      +    <!-- 仅需 'class' 或 'factory-bean' -->
      +    <bean factory-bean="factoryBean" id="missingFactoryMethod"/> //当 factory-bean 存在时,需要 factory-method
      +
      +    <bean abstract="false" id="superfluousDefaultAttributeAbstract"/>
      +
      +    <!-- 具有默认值 'false' 的特性 abstract 是多余的 -->/
      +    <bean id="superfluousDefaultAttributeScope" scope="singleton"/>
      +
      +    <!-- 具有默认值 'singleton' 的特性范围是多余的 -->/
      +    <bean class="java.lang.StringBuilder">
      +      <property name="length">
      +         <bean id="beanId" // Attribute id is superfluous
      +              name="beanName"   // Attribute name is superfluous
      +              scope="prototype" // Attribute scope is superfluous
      +         />
      +      </property>
      +    </bean>
      +  </beans>
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringBeanConstructorArgInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringBeanConstructorArgInspection.html new file mode 100644 index 000000000..6eac35559 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringBeanConstructorArgInspection.html @@ -0,0 +1,27 @@ + + +

      报告使用基于构造函数的依赖项注入的 Spring <bean>

      + +

      当使用配置的 <constructor-arg> 标记和定义的 autowire 策略找不到 <bean> 的合适构造函数或工厂方法时,将触发检查。

      + +

      示例:

      +
      
      +    public class MyComponent {
      +    // constructor
      +    public MyComponent(MyBean bean) {}
      +    // factory method
      +    public static MyComponent getInstance(String name, int port) {
      +    }
      +    <beans>
      +      <bean class="beans.MyComponent" id="foo"> // 报告 "在类 'MyComponent' 中找不到匹配的构造函数"
      +         <constructor-arg ref="myBean"/>
      +         <constructor-arg value="123"/>
      +      </bean>
      +
      +      <bean class="beans.MyComponent" factory-method="getInstance"> // 报告 "在类中找不到匹配的工厂方法"
      +         <constructor-arg value="123"/>
      +      </bean>
      +    </beans>
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringBeanInstantiationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringBeanInstantiationInspection.html new file mode 100644 index 000000000..7ef9b12ec --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringBeanInstantiationInspection.html @@ -0,0 +1,14 @@ + + +

      报告接口/ abstract 类 <bean> 声明的实例化错误。

      + +

      示例:

      +
      
      +  <beans>
      +    <bean class="java.util.List"/>
      +    // 报告 '非抽象 Bean 不允许接口'
      +  </beans>
      +
      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringBeanLookupMethodInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringBeanLookupMethodInspection.html new file mode 100644 index 000000000..4b03806a9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringBeanLookupMethodInspection.html @@ -0,0 +1,35 @@ + + +

      报告 XML 应用程序上下文中 Bean 的不正确 <lookup-method>

      + +

      示例:

      +
      
      +  public abstract class FooLookupBean {
      +    protected abstract FooBean createCommand();
      +    private FooBean createCommand() {...}
      +    protected static FooBean createCommandStatic() {...}
      +    protected abstract FooBean createWithArgs(String foo);
      +    protected abstract OtherBean createOtherBean();
      +  }
      +
      +  <beans>
      +    <bean class="FooLookupBean" id="lookupTest">
      +      <lookup-method bean="fooBean" name="createCommand"/>
      +      <!-- private -->
      +      <lookup-method bean="fooBean" name="createCommand"/>// "方法必须为 public 或 protected"
      +      <!-- static -->
      +      <lookup-method bean="fooBean" name="createCommandStatic"/> // 此处不允许使用 static 方法
      +      <!-- 有实参 -->
      +      <lookup-method bean="fooBean" name="createWithArgs"/>// 方法必须没有形参
      +      <!-- 不存在 -->
      +      <lookup-method bean="fooBean" name="unknown"/>  // 未知方法
      +      <!-- 不匹配 -->
      +      <lookup-method bean="fooBean" name="createOtherBean"/> // 查找方法返回类型与 'FooBean' Bean 类不匹配
      +    </bean>
      +
      +    <bean class="FooBean" id="fooBean"/>
      +    <bean class="OtherBean" id="otherBean"/>
      +  </beans>
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringBeanNameConventionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringBeanNameConventionInspection.html new file mode 100644 index 000000000..bfe46e53c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringBeanNameConventionInspection.html @@ -0,0 +1,13 @@ + + +

      报告不遵循 Bean 命名惯例的 <bean> 名称。

      + +

      + 惯例是在命名 Bean 时对实例字段名称使用标准 Java 惯例。 + 也就是说,Bean 名称以小写字母开头,并从那里开始使用驼峰式大小写。 + 此类名称的示例包括 accountManageraccountServiceuserDaologinController 等。 + 一致地命名 Bean 会使您的配置更易于阅读和理解。 + 此外,如果您使用的是 Spring AOP,那么在将建议应用于一组按名称相关的 Bean 时,会很有用。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringBootAdditionalConfig.html b/original-plugin-raw/zh/inspectionDescriptions/SpringBootAdditionalConfig.html new file mode 100644 index 000000000..59738ec1d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringBootAdditionalConfig.html @@ -0,0 +1,37 @@ + + +

      + 报告 additional-spring-configuration-metadata.json 配置文件中缺失和弃用的属性、未解析的引用和无效值。

      + +

      示例:

      +
      
      +  {
      +    "properties": [
      +      {
      +        "name": "old.key",
      +        "type": "com.Unknown", // 报告 '无法解析 'Unknown' 类'
      +        "description": "Description for old.key", // 报告 '文本应以 '.' 结尾'
      +        "deprecation": {
      +          "replacement": "new.key", // 报告 '无法解析配置键引用 'new.key''
      +          "reason": "Reason", // 报告 '文本应以 '.' 结尾'
      +          "level": "warning"
      +         }
      +      },
      +      {
      +        "name": "duplicate", // 报告 'duplicate' 的重复条目'
      +        "type": "java.lang.String"
      +      },
      +      {
      +        "name": "duplicate", // 报告 'duplicate' 的重复条目'
      +        "type": "java.lang.String"
      +      },
      +      {
      +        // 报告 '缺少必要的 'name''
      +        "type": "java.lang.String"
      +      }
      +    ]
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringBootApplicationProperties.html b/original-plugin-raw/zh/inspectionDescriptions/SpringBootApplicationProperties.html new file mode 100644 index 000000000..4fee02340 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringBootApplicationProperties.html @@ -0,0 +1,61 @@ + + +

      + 报告 Spring Boot 应用程序 .properties 配置文件中未解析和弃用的配置键和无效值,这可能导致运行时错误。 +

      + +

      示例:

      +
      
      +server.port=invalid # 报告 '无法将 'invalid' 转换为 java.lang.Integer'
      +
      + +

      如果已弃用的配置键有替换键,您可以应用 '使用替换键' 快速修复。

      + +

      示例:

      +
      
      +logging.path=${path} # 报告 '已弃用的配置属性 'logging.path''
      +
      + +

      在应用快速修复后:

      +
      
      +logging.file.path=${path}
      +
      + +

      + 如果 spring-configuration-metadata.json 中未定义配置键,您可以应用创建 META-INF/spring-additional-configuration-metadata.json 文件并定义必要键的 '定义配置键' 快速修复。

      + +

      示例:

      +
      
      +new.key=value #报告 '无法解析配置属性 'new.key''
      +
      + +

      应用快速修复后,以下内容将添加到 META-INF/spring-additional-configuration-metadata.json

      +
      
      +{
      +  "properties": [
      +    {
      +      "name": "new.key",
      +      "type": "java.lang.String",
      +      "description": "Description for new.key."
      +  }
      +] }
      +
      + +

      该检查还会高亮显示列表和映射配置键中的索引表示法错误。

      +

      示例:

      +
      
      +spring.datasource.schema[]=${schema} #报告 '缺少索引值'
      +
      + + +

      + 使用替换令牌选项定义用于配置文件中值占位符的令牌。 + 这些令牌以 beginToken*endToken 的形式指定。 + 如果没有 *,则假定开始和结束的令牌相同。 +

      +

      + 例如,开始和结束令牌的默认值都是 @,这使您可以定义占位符,例如 some.property=@another.property@。 +

      +

      替换令牌 (@property.key@) 内的值不会高亮显示。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringBootApplicationSetup.html b/original-plugin-raw/zh/inspectionDescriptions/SpringBootApplicationSetup.html new file mode 100644 index 000000000..75eca95ba --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringBootApplicationSetup.html @@ -0,0 +1,28 @@ + + +

      报告默认软件包中的@SpringBootApplication 和冗余的@EnableAutoConfiguration@ComponentScan 注解。

      +

      该快速修复会移除冗余注解。

      + +

      示例:

      +
      
      +@SpringBootApplication
      +@ComponentScan // 报告 '冗余声明: @SpringBootApplication 已暗示 @ComponentScan'
      +public class DemoApplication {
      +    public static void main(String[] args) {
      +        SpringApplication.run(DemoApplication.class, args);
      +    }
      +}
      +
      +

      在应用快速修复后:

      +
      
      +  @SpringBootApplication
      +  public class DemoApplication {
      +    public static void main(String[] args) {
      +        SpringApplication.run(DemoApplication.class, args);
      +    }
      +  }
      +
      + +

      2018.2 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringBootApplicationYaml.html b/original-plugin-raw/zh/inspectionDescriptions/SpringBootApplicationYaml.html new file mode 100644 index 000000000..52bf68739 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringBootApplicationYaml.html @@ -0,0 +1,59 @@ + + +

      + 报告 Spring Boot 应用程序 .yaml 配置文件中未解析和弃用的配置键和无效值,它们可能导致运行时错误。 +

      + +

      示例:

      +
      
      +server:
      +  port: invalid # 报告 '无法将 'invalid' 转换为 java.lang.Integer'
      +
      + +

      如果已弃用的配置键有替换键,您可以应用 '使用替换键' 快速修复。

      + +

      示例:

      +
      
      +logging:
      +  path: ${path} # 报告 '已弃用的配置属性 'logging.path''
      +
      + +

      在应用快速修复后:

      +
      
      +logging:
      +  file:
      +    path: ${path}
      +
      + +

      + 如果 spring-configuration-metadata.json 中未定义配置键,您可以应用创建 META-INF/spring-additional-configuration-metadata.json 文件并定义必要键的 '定义配置键' 快速修复。

      + +

      示例:

      +
      
      +new:
      +  key: value # 报告 '无法解析配置属性 'new.key''
      +
      + +

      应用快速修复后,以下内容将添加到 META-INF/spring-additional-configuration-metadata.json

      +
      
      +{
      +  "properties": [
      +    {
      +      "name": "new.key",
      +      "type": "java.lang.String",
      +      "description": "Description for new.key."
      +  }
      +] }
      +
      + +

      + 使用替换令牌选项定义用于配置文件中值占位符的令牌。 + 这些令牌以 beginToken*endToken 的形式指定。 + 如果没有 *,则假定开始和结束的令牌相同。 +

      +

      + 例如,开始和结束令牌的默认值都是 @,这使您可以定义占位符,例如 some.property=@another.property@。 +

      +

      替换令牌 (@property.key@) 内的值不会高亮显示。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringBootBootstrapConfigurationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringBootBootstrapConfigurationInspection.html new file mode 100644 index 000000000..adf4e0358 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringBootBootstrapConfigurationInspection.html @@ -0,0 +1,7 @@ + + +

      报告通过组件扫描包含在 Spring Boot 应用程序的上下文中但在该上下文中可能不需要的 BootstrapConfiguration

      +

      有关详细信息,请参阅 Spring Cloud Commons 文档

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringBootReactorHooksOnDebug.html b/original-plugin-raw/zh/inspectionDescriptions/SpringBootReactorHooksOnDebug.html new file mode 100644 index 000000000..8e6a1ec5e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringBootReactorHooksOnDebug.html @@ -0,0 +1,25 @@ + + +

      报告调用 ReactorDebugAgent.init()Hooks.onOperatorDebug() 的用法。

      +

      + 如果 ReactorDebugAgent 在类路径中,并且 spring.reactor.debug-agent.enabledtrue(默认值),启动时自动调用 ReactorDebugAgent.init()。 + 同时使用 Hooks.onOperatorDebug()ReactorDebugAgent.init() 会导致 Reactor 生成双倍的调试堆栈帧。 + 此外,Hooks.onOperatorDebug() 会导致性能开销。 +

      + +

      该快速修复会移除对 Hooks.onOperatorDebug() 的调用。

      +

      示例:

      +
      
      +  public void hook() {
      +    Hooks.onOperatorDebug(); // 报告 '初始化 ReactorDebugAgent 时调用 Hooks.onOperatorDebug()'
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  public void hook() {
      +  }
      +
      + +

      此检查仅在项目或模块的 Spring Boot 版本为 2.2.0 或更高时触发。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringCacheAnnotationsOnInterfaceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringCacheAnnotationsOnInterfaceInspection.html new file mode 100644 index 000000000..b038bbf2b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringCacheAnnotationsOnInterfaceInspection.html @@ -0,0 +1,10 @@ + + +

      报告接口上的 @Cache* 注解。

      + +

      您应该只使用 @Cache* 注解具体类(和具体类的方法)。 +使用 @Cache* 注解接口(或接口方法)需要使用基于接口的代理。 +由于 Java 注解不是从接口继承的,当使用基于类的代理 (proxy-target-class="true") 或基于编织的切面 (mode="aspectj") 时,代理和编织基础架构将无法识别缓存设置 。 +因此,该对象将不会被包装在缓存代理中。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringCacheNamesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringCacheNamesInspection.html new file mode 100644 index 000000000..2e951952e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringCacheNamesInspection.html @@ -0,0 +1,9 @@ + + +

      报告不正确的 @Cache* 注解名称。

      + +

      每个缓存操作至少应提供一个缓存名称:@Cacheable("cache_name")@Cacheable(cacheNames ="cache_name")。 +@CacheConfig#cacheNames() 可用于在类级别共享常见的缓存相关设置。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringCacheableAndCachePutInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringCacheableAndCachePutInspection.html new file mode 100644 index 000000000..f3c8316ee --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringCacheableAndCachePutInspection.html @@ -0,0 +1,9 @@ + + +

      报告在同一方法上声明的 @CachePut@Cacheable 注解。

      + +@Cacheable 导致方法跳过使用缓存的执行,@CachePut 强制执行以更新缓存。 +这会导致意外行为,应该避免,除非在非常特殊的情况下注解中的条件将它们排除在外。 +请注意,此类条件不应依赖于结果对象(#result 变量),因为这些条件已预先验证以确认排除。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringCacheableComponentsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringCacheableComponentsInspection.html new file mode 100644 index 000000000..b814e66dc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringCacheableComponentsInspection.html @@ -0,0 +1,21 @@ + + +报告错误的“缓存”注解:@Cacheable@CacheEvict@CachePut@CacheConfig 等。 + +

      示例:

      +
      
      +@org.springframework.stereotype.Component
      +public class MyCacheManager implements CacheManager{... }
      +
      +public class MyConfiguration {
      +   @Cacheable(value = "a",
      +       cacheResolver ="myCacheManager") // 报告 "Bean 必须为 'org.springframework.cache.interceptor.CacheResolver' 类型"
      +   public String getCache(String isbn) { ...}
      +
      +   @Cacheable(value = "abc",
      +   private String getAbc() // 报告 "应在 public 方法上定义缓存注解"
      +   {...}
      +}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringCloudStreamInconsistencyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringCloudStreamInconsistencyInspection.html new file mode 100644 index 000000000..9c6bb6c36 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringCloudStreamInconsistencyInspection.html @@ -0,0 +1,20 @@ + + +

      报告流处理程序方法中的不一致错误。

      +

      + 使用 @StreamListener@StreamEmitter 注解的输入和输出流处理程序方法具有各种约束。 + 违反约束会导致运行时出错。 +

      +

      示例:

      +
        +
      • + @StreamListener value 特性中定义的通道永远不能与使用 @Input@Output 注解的方法形参组合 +
      • +
      • 必须为使用 @StreamListener 注解的方法指定输入通道
      • +
      • 必须为可以返回值的方法指定输出通道
      • +
      • 不能为不返回值的方法指定输出通道
      • +
      • @StreamListener condition 不能为返回值的方法设置特性
      • +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringCloudStreamMessageChannelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringCloudStreamMessageChannelInspection.html new file mode 100644 index 000000000..1a6b17145 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringCloudStreamMessageChannelInspection.html @@ -0,0 +1,20 @@ + + +

      报告 @StreamListener@SendTo@Output@Input 注解中未解析的通道特性。

      +

      使用无效的绑定名称会在运行时导致 '找不到 Bean' 错误。

      +

      示例:

      +
      
      +  @EnableBinding(Sink.class)
      +  public class LogSource {
      +    @StreamListener(Sink.class)
      +	  public void log1() {
      +    }
      +
      +    @StreamListener("invalid")  // 报告 '找不到通道'
      +	  public void log2() {
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringComponentScan.html b/original-plugin-raw/zh/inspectionDescriptions/SpringComponentScan.html new file mode 100644 index 000000000..0cb0c2e57 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringComponentScan.html @@ -0,0 +1,14 @@ + + +

      报告 @ComponentScan 注解和 @ComponentScan 元注解的相应别名特性中的未解析软件包。

      + +

      示例:

      +
      
      +  @ComponentScan(basePackages = {
      +     "com.my.company",
      +     "com.unknown" // 报告 "无法解析软件包 'unknown'"
      +  }) +
      +  @Configuration +
      +  public class MyConfiguration {}
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringConfigurationProxyMethods.html b/original-plugin-raw/zh/inspectionDescriptions/SpringConfigurationProxyMethods.html new file mode 100644 index 000000000..d40bca270 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringConfigurationProxyMethods.html @@ -0,0 +1,68 @@ + + +报告有关不正确使用的代理方法的警告。 + +Spring Framework 5.2 引入了对 @Configuration 类处理的优化,可以通过 @Configuration(proxyBeanMethods = false) 特性启用该优化。 +

      +如果您禁用 +
      proxyBeanMethods
      +将不再创建代理实例,调用该方法可以重新启动(每次返回一个新实例)。 +因此,您无法保证您确实在上下文中注入相应的 Bean。 + +

      +不正确的 Bean 方法调用示例

      +
      +@Configuration(proxyBeanMethods = false)
      +class TestConfiguration {
      +  @Bean
      +  public FirstBean firstBean() {
      +    return new FirstBean();
      +  }
      +
      +  @Bean
      +  public SecondBean secondBean() {
      +    return new SecondBean(firstBean()); // -> 不正确的调用
      +  }
      +}
      +
      +
      + +
      +您可以将 +
      proxyBeanMethods
      + 设置为 true 或按如下所示重写代码


      +
      +@Configuration(proxyBeanMethods = false)
      +class TestConfiguration {
      +  @Bean
      +  public FirstBean firstBean() {
      +    return new FirstBean();
      +  }
      +
      +  @Bean
      +  public SecondBean secondBean(FirstBean someBean) { // -> 正确的注入实例
      +    return new SecondBean(someBean);
      +  }
      +}
      +
      +
      + +
      +此外,该检查还会检查没有 @Configuration 构造型的类中的 @Bean 方法调用(在 "Bean lite mode" 下)

      +
      +@Component
      +class TestComponent {
      +  @Bean
      +  public FirstBean firstBean() {
      +    return new FirstBean();
      +  }
      +
      +  @Bean
      +  public SecondBean secondBean() {
      +    return new SecondBean(firstBean()); // -> 不正确的调用
      +  }
      +}
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringContextConfigurationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringContextConfigurationInspection.html new file mode 100644 index 000000000..7c76e7fce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringContextConfigurationInspection.html @@ -0,0 +1,18 @@ + + +

      报告不正确的 Spring 上下文配置。

      +
        +
      • locations 特性和 @ContextConfiguration 元注解的相应别名特性中的未解析文件和目录 +
      • +
      • 缺少默认应用程序上下文文件
      • +
      + +

      有关详细信息,请参阅 @ContextConfiguration

      + +

      示例:

      +
      
      +  @ContextConfiguration(locations = "classpath:META-INF/unknown-context.xml") // 报告 "无法解析文件'unknown-context.xml'"
      +  class MyTests {...}
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringDataMethodInconsistencyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringDataMethodInconsistencyInspection.html new file mode 100644 index 000000000..baea0b17f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringDataMethodInconsistencyInspection.html @@ -0,0 +1,25 @@ + + +

      + 报告 Spring Data Query 构建器无法为其生成相应查询的 Spring Data CRUD 仓库方法。 +

      + +

      示例:

      +
      
      +interface PersonRepository extends Repository<Person, Long> {
      +  List<Person> findByEmailAddressAndLastname(EmailAddress emailAddress, String lastname);
      +  List<Person> findByEmailUnknownAndLastname(EmailAddress emailAddress, String lastname); // 无法解析 'Unknown' 属性
      +  List<Person> findByAndLastname(EmailAddress emailAddress, String lastname); // 缺少属性名称
      +
      +  List<Person> findDistinctPeopleByLastnameOrFirstname(String lastname, String firstname);
      +  List<Person> findPeopleDistinctByUnknownOrFirstname(String lastname, String firstname); // 无法解析 'Unknown' 属性
      +
      +  List<Person> findByLastnameOrderByFirstnameAsc(String lastname);
      +  List<Person> findByLastnameOrderByUnknownDesc(String lastname);  // 无法解析 'Unknown' 属性
      +}
      +
      + + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringDataRepositoryMethodParametersInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringDataRepositoryMethodParametersInspection.html new file mode 100644 index 000000000..30941d83a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringDataRepositoryMethodParametersInspection.html @@ -0,0 +1,23 @@ + + +

      报告类型不正确的 Spring Data CRUD 仓库方法形参。

      + +

      示例:

      +
      
      +  public class Person {
      +    private int id;
      +    private String lastname;
      +    private Address address;
      +  }
      +
      +  public class Address {
      +    private int zipCode;
      +  }
      +
      +  public interface CustomerRepository extends CrudRepository<Person, Integer> {
      +    List<Person> findByAddress(String lastname);  // 应为 'Address' 类型
      +    List<Person> findByAddressZipCode(String str);   // 应为 'int' 类型
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringDataRepositoryMethodReturnTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringDataRepositoryMethodReturnTypeInspection.html new file mode 100644 index 000000000..563c529a9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringDataRepositoryMethodReturnTypeInspection.html @@ -0,0 +1,22 @@ + + +

      报告返回类型不正确的 Spring Data CRUD 仓库方法。

      +

      支持以下返回类型:

      + +
    • void
    • +
    • 基元类型
    • +
    • 包装器类型
    • +
    • T(当查询方法应最多返回一个结果时)。 如果没有结果,则返回 null,如果有多个结果,则抛出 IncorrectResultSizeDataAccessException。 +
    • +
    • java.util.List 或任何常见的 Iterable 类型
    • +
    • java.util.stream.Stream
    • +
    • java.util.Optionalscala.Option(当查询方法应最多返回一个结果时)。 如果没有结果,则返回 Optional.empty()Optional.absent(),如果有多个结果,则抛出 IncorrectResultSizeDataAccessException。 +
    • +
    • io.micronaut.data.model.Page
    • +
    • io.micronaut.data.model.Slice
    • +
    • java.util.concurrent.Futurejava.util.concurrent.CompletableFutureListenableFuture(如果该方法使用 @Async 进行注解并启用 Spring 异步方法执行) +
    • +
    • GeoResults<T>GeoResult<T>GeoPage<T>
    • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringDependsOnUnresolvedBeanInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringDependsOnUnresolvedBeanInspection.html new file mode 100644 index 000000000..34d42a4b3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringDependsOnUnresolvedBeanInspection.html @@ -0,0 +1,13 @@ + + +

      报告 @DependsOn 注解的 value 参数中不正确的 bean 引用。

      + +

      示例:

      +
      
      +  @Component
      +  @DependsOn("unknown")  // 报告 "无法解析 bean 'unknown'"
      +  public class MyComponent {
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringElInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringElInspection.html new file mode 100644 index 000000000..fff98a075 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringElInspection.html @@ -0,0 +1,14 @@ + + +

      报告 Spring Expression Language (SpEL) 代码中的语法错误,例如未解析的引用和无效位置。

      + +

      示例:

      +
      
      +@Controller
      +public class MyController {
      +    @Value("#{T(java.lang.Math).unknown()}") // 无法解析属性或 'unknown' 方法
      +    public void setValue(String s) {}
      +}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringElStaticFieldInjectionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringElStaticFieldInjectionInspection.html new file mode 100644 index 000000000..2e901c97a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringElStaticFieldInjectionInspection.html @@ -0,0 +1,14 @@ + + +

      报告将 Spring Expression Language (SpEL) 注入静态字段(注入 'null' 值)的尝试。

      + +

      示例:

      +
      
      +@Controller
      +public class MyController {
      +    @Value("#{systemProperties['some.key']}")  //  不允许注入到 static 字段
      +    static String spelWithDefaultValue;
      +}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringEventListenerInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringEventListenerInspection.html new file mode 100644 index 000000000..188193031 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringEventListenerInspection.html @@ -0,0 +1,23 @@ + + +

      报告不正确的 @EventListener 方法。

      + +

      示例:

      +
      
      +  @Configuration @ComponentScan
      +  open class Config
      +
      +  data class MyEvent(val string: String)
      +
      +  @Component
      +  class LogComponent {
      +    @EventListener // 使用 @EventListener 注解的方法必须为 public
      +    private fun logCommands(commandName: MyEvent) {}
      +
      +    @EventListener // 方法必须最多只有一个形参
      +    fun processCommand(commandName: MyEvent, text: String) {}
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringFacetCodeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringFacetCodeInspection.html new file mode 100644 index 000000000..ff51874d0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringFacetCodeInspection.html @@ -0,0 +1,8 @@ + + +

      报告在 Spring facet 中未配置的 @Configuration 类。

      + +

      @Configuration 类被扫描(使用@ComponentScan 或 <component-scan .../>)、导入(@Import)或者在 Spring facet 中定义的应用程序上下文中以任何其他方式使用(例如,在 spring.factories 文件中配置)时,不会触发检查。

      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringFacetInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringFacetInspection.html new file mode 100644 index 000000000..6e9f3ab54 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringFacetInspection.html @@ -0,0 +1,6 @@ + + +报告未在 Spring facet 中配置且未使用 @ImportResource(locations="...") +或 <import .../> 从 Spring facet 中定义的其他应用程序上下文导入的 XML 应用程序上下文。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringFacetProgrammaticInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringFacetProgrammaticInspection.html new file mode 100644 index 000000000..367aebab9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringFacetProgrammaticInspection.html @@ -0,0 +1 @@ +检查 Spring facet 中的编程 Spring 上下文代码设置。 \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringFactoryMethodInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringFactoryMethodInspection.html new file mode 100644 index 000000000..2b08d2594 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringFactoryMethodInspection.html @@ -0,0 +1,16 @@ + + +

      报告 <bean> 元素的 factory-method特性中不正确的方法引用。

      + +

      示例:

      +
      
      +public class MyFactory {
      +public static FooBean createBean() {}
      +}
      +<beans>
      +  <bean class="MyFactory" id="factory"/>
      +  <bean factory-bean="factory" factory-method="createBean"/> // 工厂方法 'createBean' 不得为 static
      +</beans>
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringHandlersSchemasHighlighting.html b/original-plugin-raw/zh/inspectionDescriptions/SpringHandlersSchemasHighlighting.html new file mode 100644 index 000000000..37e0c0da6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringHandlersSchemasHighlighting.html @@ -0,0 +1,11 @@ + + +

      报告 spring.handlersspring.schemas 文件中未解析的类和文件引用。

      + +

      示例 spring.handlers 文件:

      +
      
      +   a=my.company.MyHandler
      +   b=my.company.UnknownHandler // 报告 "无法解析类 'my.company.UnknownHandler'"
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringImportResource.html b/original-plugin-raw/zh/inspectionDescriptions/SpringImportResource.html new file mode 100644 index 000000000..90b46f110 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringImportResource.html @@ -0,0 +1,12 @@ + + +

      报告 @ImportResource 注解的 locations 特性和 @ImportResource 元注解的相应别名特性中的未解析文件和目录。

      + +

      示例:

      +
      
      +  @Configuration
      +  @ImportResource(locations = "classpath:META-INF/unknown-context.xml") // 报告 "无法解析文件 'unknown-context.xml'"
      +  public class MyConfiguration {...}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringInactiveProfileHighlightingInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringInactiveProfileHighlightingInspection.html new file mode 100644 index 000000000..6d1c93094 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringInactiveProfileHighlightingInspection.html @@ -0,0 +1,19 @@ + + +

      报告 Spring XML 应用程序上下文中的停用配置文件。

      + +

      示例:

      +
      
      +  <!-- 为此应用程序上下文选择有效配置文件 'DEV' -->
      +  <beans profile="DEV">
      +    <bean class="MyFactory" factory-method="createBean"/>
      +  </beans>
      +  <!--  此标记的内容高亮显示为 'unused' -->
      +  <beans profile="TESTS">
      +    <bean class="MyTestFactory" factory-method="createBean"/>
      +  </beans>
      +  <!--  'unused' 部分的结尾 -->
      +  </beans>
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringIncorrectResourceTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringIncorrectResourceTypeInspection.html new file mode 100644 index 000000000..393a94edd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringIncorrectResourceTypeInspection.html @@ -0,0 +1,13 @@ + + +

      报告 XML 应用程序上下文中引用的不正确文件。

      + +

      示例:

      +
      
      +  <beans>
      +    <import resource="imported-app-context.xml"/>
      +    <import resource="banner.txt"/>// 报告 '不正确的资源类型',因为此处应为 Spring XML 应用程序上下文
      +  </beans>
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringInjectionValueConsistencyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringInjectionValueConsistencyInspection.html new file mode 100644 index 000000000..227ae29fb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringInjectionValueConsistencyInspection.html @@ -0,0 +1,45 @@ + + +

      报告 XML 应用程序上下文中注入点的不一致标记和特性。

      + +
        +
      • <property><constructor-arg> 必须指定 refvalue 或子元素
      • +
      • <property><constructor-arg> 不能包含多个子元素
      • +
      • <ref> 可以包含 bean 特性、local 特性或 parent 特性
      • +
      • <ref> 必须指定一个 Bean
      • +
      • <idref> 可以包含 bean 特性或 local 特性
      • +
      • <idref> 必须指定一个 Bean
      • +
      • <map> 必须指定一个键
      • +
      • <idref> 可以包含 key 特性、key-ref 特性或 <key> 子元素
      • +
      + +

      示例:

      +
      
      +  <beans>
      +
      +  <!-- 1.  属性只允许包含 "ref" 特性或 "value" 特性或子元素 -->
      +  <bean class="MyClass">
      +    <property name="bean" ref="myBean" value="foo"/>
      +    // 属性只允许包含 "ref" 特性或 "value" 特性或子元素
      +  </bean>
      +
      +  <!--  2.  属性不得包含多个子元素 -->
      +  <bean class="MyFactory">
      +    <property name="bean">
      +    <ref>bean</ref> // 属性不得包含多个子元素
      +     <value>foo</value> // 属性不得包含多个子元素
      +     </property>
      +  </bean>
      +
      +  <!-- 3. 映射条目必须指定一个键  -->
      +  <bean class="MyBean">
      +     <property name="map">
      +        <map>
      +           <entry value="foo"/>  // 映射条目必须指定一个键
      +        </map>
      +     </property>
      +  </bean>
      +  </beans>
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringInjectionValueStyleInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringInjectionValueStyleInspection.html new file mode 100644 index 000000000..7e7046c3e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringInjectionValueStyleInspection.html @@ -0,0 +1,29 @@ + + +

      报告通过 <value><ref> 子元素配置的属性,并建议将其替换为相应的特性。

      + +

      示例:

      +
      
      +  <beans>
      +    <bean class="MyBean" id="myBean"/>
      +
      +    <bean class="MyFactory">
      +      <property name="bean">
      +        <ref bean="myBean"/> // 报告 "使用了显式 <ref> 元素"
      +      </property>
      +    </bean>
      +  </beans>
      +
      + +

      应用快速修复后:

      + +
      
      +  <beans>
      +    <bean class="MyBean" id="myBean"/>
      +    <bean class="MyFactory">
      +      <property name="bean" ref="myBean"/>
      +    </bean>
      +  </beans>
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringIntegrationDeprecations21.html b/original-plugin-raw/zh/inspectionDescriptions/SpringIntegrationDeprecations21.html new file mode 100644 index 000000000..69714cd08 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringIntegrationDeprecations21.html @@ -0,0 +1,22 @@ + + +

      报告当前版本的 Spring Integration 基于 XML 的应用程序上下文中已弃用的 XML 元素。

      + +

      有关详细信息,请参阅 迁移指南

      + +

      示例:

      +
      
      +<beans ... >
      +   <int:channel id="failChannel"
      +                dispatcher="failover"/> <!-- 此特性已被弃用,请改用调度程序子元素 -->
      +   <int:poller default="true">
      +     <int:cron-trigger  expression="5"/>  <!-- 此元素在 Spring Integration 2.1 中已被移除,请改用 'cron' 特性 -->
      +     <int:interval-trigger interval="3"/> <!--  此元素在 Spring Integration 2.1 中已被移除,请改用 interval-trigger 特性 -->
      +  </int:poller>
      +  <ftp:inbound-channel-adapter session-factory="ftpSessionFactory"
      +                               cache-sessions="false" <!--  This attribute is deprecated, use CachingSessionFactory instead -->
      +                               channel="channel"/>
      +</beans>
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringIntegrationMethodEndpointInconsistency.html b/original-plugin-raw/zh/inspectionDescriptions/SpringIntegrationMethodEndpointInconsistency.html new file mode 100644 index 000000000..0b75377bd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringIntegrationMethodEndpointInconsistency.html @@ -0,0 +1,34 @@ + + +报告不正确的 Spring Integration 端点方法声明。 + +

      示例:

      +
      
      +class MyEndpoints {
      +  @InboundChannelAdapter("channel")
      +  public void cannotBeVoid() {...} // 使用 @InboundChannelAdapter 注解的方法必须具有返回类型
      +
      +  @InboundChannelAdapter("channel")
      +  public String cannotHaveParams(String s) {..} // 使用 @InboundChannelAdapter 注解的方法不能有实参
      +
      +  @Filter(inputChannel = "channel", // 端点只能具有一个轮询器
      +    outputChannel = "channel2",
      +    poller = {@Poller(fixedDelay = "100"), @Poller(fixedRate = "100")})
      +  public void testMultiplePollers() {
      +  }
      +
      +  @Filter(inputChannel = "channel",
      +  outputChannel = "channel2",
      +  poller = @Poller(value = "poller", maxMessagesPerPoll = "100"))
      +  public void testValue() {
      +  }
      +
      +  @Filter(inputChannel = "channel",
      +    outputChannel = "channel2",
      +    poller = @Poller(trigger = "trigger", cron = "0 */10 * * * *")) // 'trigger' 特性与其他特性互斥
      +  public void testTrigger() {
      +  }
      +}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringIntegrationModel.html b/original-plugin-raw/zh/inspectionDescriptions/SpringIntegrationModel.html new file mode 100644 index 000000000..e508498c7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringIntegrationModel.html @@ -0,0 +1,46 @@ + + +

      报告 Spring Integration 基于 XML 的应用程序上下文的问题:

      +
        +
      • 未解析的 Bean 引用
      • +
      • 缺少必需的标记或特性
      • +
      • 属性类型不正确
      • +
      • enum 属性不一致
      • +
      • 引用 Bean 的类型不正确
      • +
      + +

      示例:

      +
      
      +  <beans ... >
      +  <int:channel id="channel"> <!-- 'dispatcher' 和 'queue' 不能一起使用  -->
      +    <int:dispatcher failover="true"/>
      +    <int:priority-queue capacity="4"/>
      +  </int:channel>
      +  
      +  <int:channel id="another" >
      +    <int:queue <!--Exactly one of 'message-store' or 'ref' is required  -->
      +              capacity="4" message-store="myMessageStore" ref="myQueue"/>
      +  </int:channel>
      +  
      +   <int:gateway id="asyncGatewayError"
      +                async-executor="dummyBean"/> <!--Bean 必须为 'java.util.concurrent.Executor' 类型  -->
      +
      +   <int:delayer default-delay="3"
      +              message-store="myMessageStore"
      +              scheduler="scheduler"
      +              wait-for-tasks-to-complete-on-shutdown="false"/>
      +  <!--Bean 必须为 'java.util.concurrent.Executor' 类型  -->
      +  <int:delayer
      +    default-delay="INVALID_VALUE"  <!--Cannot convert string 'INVALID_VALUE' to target class 'java.lang.Integer' -->
      +               message-store="dummyBean" <!-- Bean 必须为 'org.springframework.integration.store.MessageStore' 类型-->
      +               scheduler="dummyBean" <!-- Bean 必须为以下一种类型:java.util.concurrent.ScheduledExecutorService,org.springframework.scheduling.TaskScheduler-->
      +               wait-for-tasks-to-complete-on-shutdown="INVALID_VALUE"/> <!-- 无法解析符号 'INVALID_VALUE' -->
      +
      +  <bean id="dummyBean" class="java.lang.String"/>
      +  <bean id="myMessageStore" class="org.springframework.integration.store.SimpleMessageStore"/>
      +  <task:scheduler id="scheduler"/>
      +</beans>
      +
      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringJavaAutowiredFieldsWarningInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringJavaAutowiredFieldsWarningInspection.html new file mode 100644 index 000000000..a19cba92f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringJavaAutowiredFieldsWarningInspection.html @@ -0,0 +1,38 @@ + + +

      报告 Spring 组件中注入或自动装配的字段。

      + +

      该快速修复会在 Bean 和断言中为强制字段建议基于构造函数的推荐依赖项注入。

      + +

      示例:

      +
      
      +class MyComponent {
      +  @Inject MyCollaborator collaborator; // 注入字段
      +
      +  public void myBusinessMethod() {
      +    collaborator.doSomething(); // 抛出 NullPointerException
      +  }
      +}
      +
      +
      + +

      应用快速修复后:

      +
      
      +class MyComponent {
      +
      +  private final MyCollaborator collaborator;
      +
      +  @Inject
      +  public MyComponent(MyCollaborator collaborator) {
      +    Assert.notNull(collaborator, "MyCollaborator must not be null!");
      +    this.collaborator = collaborator;
      +  }
      +
      +  public void myBusinessMethod() {
      +    collaborator.doSomething(); // 现在这个调用是安全的
      +  }
      +}
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringJavaAutowiredMembersInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringJavaAutowiredMembersInspection.html new file mode 100644 index 000000000..2f2e1ba14 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringJavaAutowiredMembersInspection.html @@ -0,0 +1,14 @@ + + +

      报告在无效 Spring Bean 的类中注入或自动装配的字段/方法: +@Component@Service 等。

      + +

      示例:

      +
      
      +public class FooBeanClass {
      +  @Autowired   // 报告 '必须在有效 Spring Bean 中定义自动装配成员:@Component、@Service 等'
      +  ServiceBean bean;
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringJavaConstructorAutowiringInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringJavaConstructorAutowiringInspection.html new file mode 100644 index 000000000..c6176d477 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringJavaConstructorAutowiringInspection.html @@ -0,0 +1,23 @@ + + +

      报告 Spring Bean 构造函数上不正确的 @Autowired 用法:多个 @Autowired 构造函数、没有匹配的 @Autowired 构造函数,等等。

      + +

      示例:

      +
      
      +@Component
      +public class MyComponent {
      +	@Autowired
      +	public MyComponent(BarBean bean) {...} // 报告 '只允许一个 @Autowired 构造函数'
      +
      +	@Autowired
      +	public MyComponent(FooBean bean) {...} // 报告 '只允许一个 @Autowired 构造函数'
      +}
      +
      +@Component
      +public class MyFactory {  // 报告 '没有匹配的 @Autowired 构造函数'
      +	public MyFactory(String str) {...}
      +	public MyFactory(int count) {...}
      +}
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringJavaInjectionPointsAutowiringInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringJavaInjectionPointsAutowiringInspection.html new file mode 100644 index 000000000..9d6b56fb3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringJavaInjectionPointsAutowiringInspection.html @@ -0,0 +1,26 @@ + + +

      报告 Spring Bean 注入点的自动装配问题:

      + +
        +
      • 不止一种 'concrete' 类型的 Bean
      • +
      • 没有 'concrete' 类型的 Bean
      • +
      • 没有带限定符的 Bean
      • +
      • 没有形参的自动装配方法或构造函数
      • +
      + +

      示例:

      +
      +public interface FooInterface {...}
      +  @Component public class FooBean implements FooInterface {...}
      +  @Component public class OtherBean implements FooInterface {...}
      +
      +@Component
      +public class MyComponent {
      +	@Autowired
      +	FooInterface foo;  // 无法自动装配。 有不止一种 'FooInterface' 类型的 Bean。
      +                     // Beans: fooBean(FooBean.java), otherBean(OtherBean.java)"
      +}
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringJavaStaticMembersAutowiringInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringJavaStaticMembersAutowiringInspection.html new file mode 100644 index 000000000..c0bbdf525 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringJavaStaticMembersAutowiringInspection.html @@ -0,0 +1,14 @@ + + +

      报告 Spring 组件的自动装配和注入的 static 方法/字段。

      + +

      示例:

      +
      +@Component
      +public class MyComponent {
      +	@Autowired
      +	static FooInterface foo;  // 报告 "不自动装配 static 成员"
      +}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringLookupInjectionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringLookupInjectionInspection.html new file mode 100644 index 000000000..d2d806794 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringLookupInjectionInspection.html @@ -0,0 +1,22 @@ + + +

      报告 @Lookup 注解的 value 形参中不正确的 Bean 引用。

      + +

      示例:

      +
      
      +  @Component public class FooBean {...}
      +  @Component public class OtherBean {...}
      +
      +  @Component public class MyComponent {
      +  @Lookup("fooBean")
      +  public FooBean fooBean() {...}
      +
      +  @Lookup("fooBean") // 报告 "Bean 必须为 'OtherBean' 类型"
      +  public OtherBean otherBean() {...}
      +
      +  @Lookup("unknown") // 报告 "无法解析 Bean 'unknown'"
      +  public OtherBean fooBean() {...}
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringMVCInitBinder.html b/original-plugin-raw/zh/inspectionDescriptions/SpringMVCInitBinder.html new file mode 100644 index 000000000..fa1eb2a0f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringMVCInitBinder.html @@ -0,0 +1,6 @@ + + +

      报告使用 @InitBinder 注解但未被声明为 void 的 Spring MVC 控制器方法。

      +

      根据规范,init-binder 方法应被声明为 void

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringMVCViewInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringMVCViewInspection.html new file mode 100644 index 000000000..0c3213450 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringMVCViewInspection.html @@ -0,0 +1,12 @@ + + +

      报告未解析的 Spring MVC 视图参考。

      +

      示例

      +
      +  @RequestMapping
      +  public String viewHandler() {
      +    return "viewName"; // 如果找不到带有 "viewName" 的视图,将高亮显示
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringMessageDispatcherWebXmlInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringMessageDispatcherWebXmlInspection.html new file mode 100644 index 000000000..f770749fe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringMessageDispatcherWebXmlInspection.html @@ -0,0 +1,18 @@ + + +

      报告在 web.xml 中注册但在 Web 根目录中没有必需 XML 应用程序上下文的 MessageDispatcherServlet Servlet。

      + +

      web.xml 示例:

      +
      
      +<web-app>
      +  <servlet>
      +    <servlet-name>spring-ws</servlet-name>  <!-- 找不到应用程序上下文 WEB-INF/spring-ws-servlet.xml -->
      +    <servlet-class>org.springframework.ws.transport.http.MessageDispatcherServlet</servlet-class>
      +    <load-on-startup>1</load-on-startup>
      +  </servlet>
      +</web-app>
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringOsgiElementsInconsistencyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringOsgiElementsInconsistencyInspection.html new file mode 100644 index 000000000..a852af5bd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringOsgiElementsInconsistencyInspection.html @@ -0,0 +1,13 @@ + + +

      报告 Spring OSGi 基于 XML 的应用程序上下文的问题:

      + +
        +
      • 未解析的 Bean 引用
      • +
      • 缺少必需的标记或特性
      • +
      • 属性类型不正确
      • +
      • enum 属性不一致
      • +
      • 引用 Bean 的类型不正确
      • +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringOsgiListenerInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringOsgiListenerInspection.html new file mode 100644 index 000000000..c2a780d6a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringOsgiListenerInspection.html @@ -0,0 +1,5 @@ + + +

      报告基于 XML 的应用程序上下文中不正确的 Spring OSGi 生命周期侦听器。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringOsgiServiceCommonInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringOsgiServiceCommonInspection.html new file mode 100644 index 000000000..617d6b08d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringOsgiServiceCommonInspection.html @@ -0,0 +1,5 @@ + + +

      报告在基于 XML 的应用程序上下文中配置的不正确 Spring OSGi 服务。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringPlaceholdersInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringPlaceholdersInspection.html new file mode 100644 index 000000000..5234a3cb2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringPlaceholdersInspection.html @@ -0,0 +1,17 @@ + + +

      报告在 Spring XML 上下文中配置的未解析占位符。

      + +

      示例:

      +
      
      +  <beans>
      +    <ctx:property-placeholder location="application.properties"/>
      +
      +    <bean class="beans.ServerComponent">
      +      <property name="serverName" value="${server.name}}"/>
      +      <property name="port" value="${unknown.property}}"/> // 报告 "无法解析属性键"
      +    </bean>
      +  </beans>
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringProfileExpression.html b/original-plugin-raw/zh/inspectionDescriptions/SpringProfileExpression.html new file mode 100644 index 000000000..cc2baaae2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringProfileExpression.html @@ -0,0 +1,28 @@ + + +

      报告不正确的 @Profile 表达式:

      + +
        +
      • Spring 配置文件不得为空
      • +
      • 在 Spring 配置文件表达式中,'&' 和 '|' 运算符不得在没有圆括号的情况下混用
      • +
      + +

      示例:

      +
      
      +  
      +  @Configuration
      +  @Profile("a & (b | c)")
      +  public class MyConfiguration {...}
      +
      +  
      +  @Configuration
      +  @Profile() // 报告 "配置文件表达式必须包含文本"
      +  public class MyConfiguration {...}
      +
      +  
      +  @Configuration
      +  @Profile("a & b | c") // 报告 "格式不正确的配置文件表达式"
      +  public class MyConfiguration {...}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringPropertySource.html b/original-plugin-raw/zh/inspectionDescriptions/SpringPropertySource.html new file mode 100644 index 000000000..6d8c92335 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringPropertySource.html @@ -0,0 +1,12 @@ + + +

      报告 @PropertySource@TestPropertySource 注解中的未解析文件或目录。

      + +

      示例:

      +
      
      +  @Configuration
      +  @PropertySource("classpath:/com/mycompany/unknown.properties") // 报告 "无法解析文件 'unknown.properties'"
      +  public class AppConfig {...}
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringPublicFactoryMethodInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringPublicFactoryMethodInspection.html new file mode 100644 index 000000000..2847126ca --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringPublicFactoryMethodInspection.html @@ -0,0 +1,20 @@ + + +

      报告在 <bean> 元素的 factory-method 特性中引用的非 public 方法。

      + +

      示例:

      +
      
      +public class MyFactory {
      +  private static FooBean createBean() {...}
      +  }
      +}
      +
      +
      + +<beans> + <bean class="MyFactory" factory-method="createBean"/> + // 报告 "工厂方法 'createBean' 应为 public" +</beans> +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringQualifierCopyableLombok.html b/original-plugin-raw/zh/inspectionDescriptions/SpringQualifierCopyableLombok.html new file mode 100644 index 000000000..e0e67597b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringQualifierCopyableLombok.html @@ -0,0 +1,6 @@ + + +报告类字段上被相应的 Lombok @RequiredArgsConstructor@AllArgsConstructor 注解忽略的 Spring @Qualifier 注解。 +如果 lombok.config 文件中没有 lombok.copyableAnnotations 定义,生成的构造函数将不会收到 @Qualifier 注解。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringRequiredAnnotationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringRequiredAnnotationInspection.html new file mode 100644 index 000000000..687b4ab09 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringRequiredAnnotationInspection.html @@ -0,0 +1,21 @@ + + +

      报告未注入或自动装配的 @Required setter Bean 属性。

      + +

      示例:

      +
      
      +<beans>
      +  <bean class="beans.MyComponent" id="foo"/>
      +  // 报告 "缺少必需属性: 'port'"
      +</beans>
      +
      +
      + +public class MyComponent { + @Required + public void setPort(int port) // 报告 "未注入必需属性 'port'" + {...} +} +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringRequiredPropertyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringRequiredPropertyInspection.html new file mode 100644 index 000000000..687b4ab09 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringRequiredPropertyInspection.html @@ -0,0 +1,21 @@ + + +

      报告未注入或自动装配的 @Required setter Bean 属性。

      + +

      示例:

      +
      
      +<beans>
      +  <bean class="beans.MyComponent" id="foo"/>
      +  // 报告 "缺少必需属性: 'port'"
      +</beans>
      +
      +
      + +public class MyComponent { + @Required + public void setPort(int port) // 报告 "未注入必需属性 'port'" + {...} +} +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringScopesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringScopesInspection.html new file mode 100644 index 000000000..ff28a25b5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringScopesInspection.html @@ -0,0 +1,14 @@ + + +

      报告 <bean> 元素中 scope 特性的未知值。

      + +

      示例:

      +
      
      +  <beans>
      +    <bean class="beans.FooComponent" id="foo" scope="unknown"/>
      +    // 报告 "无法解析符号 'unknown'"
      +    <bean class="beans.BarComponent" id="bar" scope="prototype"/>
      +  </beans>
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringSecurityAnnotationBeanPointersResolveInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringSecurityAnnotationBeanPointersResolveInspection.html new file mode 100644 index 000000000..e92f4213f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringSecurityAnnotationBeanPointersResolveInspection.html @@ -0,0 +1,20 @@ + + +

      报告 Spring Security 注解中引用的未解析 Spring Bean。

      + +

      示例:

      +
        +
      • +
        @WithUserDetails(value = "admin", userDetailsServiceBeanName = "unknownUserDetailsService")
        +      // 如果 Spring 模型中没有定义 'unknownUserDetailsService',将报告 "无法解析 'unknownUserDetailsService' Bean"
        +    
        +
      • +
      • +
        @WithUserDetails(value = "admin", userDetailsServiceBeanName = "jpaUserDetailsService")
        +      //"Bean 必须为 'org.springframework.security.core.userdetails.UserDetailsService' 类型"
        +      // 如果 "jpaUserDetailsService" Bean 不是 'UserDetailsService' 类型,将报告
        +    
        +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringSecurityDebugActivatedInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringSecurityDebugActivatedInspection.html new file mode 100644 index 000000000..a2e8181b0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringSecurityDebugActivatedInspection.html @@ -0,0 +1,5 @@ + + +

      报告可能会公开敏感信息的激活的 <debug>

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringSecurityModelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringSecurityModelInspection.html new file mode 100644 index 000000000..00224feb8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringSecurityModelInspection.html @@ -0,0 +1,57 @@ + + +

      报告 Spring Security 基于 XML 的上下文的问题:

      + +
        +
      • 未解析的 Bean 引用
      • +
      • 缺少必需的标记或特性
      • +
      • 属性类型不正确
      • +
      • enum 属性不一致
      • +
      • 引用 Bean 的类型不正确
      • +
      + +

      也报告以下问题:

      + +
        +
      • <https> 配置错误 +
          +
        • 带 '/**' 模式的 <http> 必须位于最后
        • +
        • 不允许使用多个无 'pattern' 的 <http> 元素
        • +
        +
      • +
      • <http> 配置错误 +
          +
        • 如果 security='none',则为空标记
        • +
        +
      • +
      • <user-service> +
          +
        • 必须具有特性 'properties' 或 <user> 元素列表
        • +
        +
      • +
      • <ldap-server> +
          +
        • 使用 'manager-dn' 时需要 'manager-password'
        • +
        • 必须具有 'user-context-mapper-ref' 或 'user-details-class'
        • +
        +
      • +
      • <authentication-provider> +
          +
        • 仅允许使用一种用户服务
        • +
        +
      • +
      • <global-method-security> +
          +
        • 'pre-post-annotations' 的值必须为 'enabled' 才能使用 <pre-post-annotation-handling>
        • +
        • 无法为 <protect-pointcut> 和 <intercept-url> 使用值为 'aspectj' 的 'mode'
        • +
        • 仅对父 <http> 允许 'requires-channel' 特性
        • +
        +
      • +
      • <protect> +
          +
        • 不建议将 <protect> 与 <global-method-security> 混用
        • +
        +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringTestingDirtiesContextInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringTestingDirtiesContextInspection.html new file mode 100644 index 000000000..42bc09760 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringTestingDirtiesContextInspection.html @@ -0,0 +1,17 @@ + + +

      报告 @DirtiesContext 注解中不正确的 'mode' 配置。

      + +

      示例:

      +
      
      +  @ContextConfiguration
      +  @DirtiesContext(methodMode = MethodMode.AFTER_METHOD, // 在注解的测试类上设置方法模式没有意义。 对于类级别控制,请改用 classMode。
      +                  hierarchyMode = DirtiesContext.HierarchyMode.CURRENT_LEVEL) // 通过 @ContextHierarchy 将上下文配置为层次结构的一部分时,应使用 hierarchyMode
      +  public class MyTest {
      +    @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_CLASS, // 在注解的测试方法上设置类模式没有意义。 对于方法级别控制,请改用 methodMode。
      +                     hierarchyMode = DirtiesContext.HierarchyMode.CURRENT_LEVEL) // 通过 @ContextHierarchy 将上下文配置为层次结构的一部分时,应使用 hierarchyMode
      +    public void testFoo() {...}
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringTestingSqlInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringTestingSqlInspection.html new file mode 100644 index 000000000..a0878e07f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringTestingSqlInspection.html @@ -0,0 +1,14 @@ + + +

      报告 @Sql 注解的 scripts 特性和 @Sql 元注解的相应别名特性中未解析的文件引用。

      + +

      示例:

      +
      
      +  @SqlGroup({
      +     @Sql("not-found"), // 报告 "无法解析文件 'not-found""
      +     @Sql("found.sql")
      +  })
      +  public class MyTestWithSqlData {...}
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringTestingTransactionalInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringTestingTransactionalInspection.html new file mode 100644 index 000000000..9be578e75 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringTestingTransactionalInspection.html @@ -0,0 +1,20 @@ + + +

      报告在注解为 @Transactional 的测试类中使用 @BeforeTransaction@AfterTransaction 注解的无效事务生命周期方法声明。

      + +

      注解的方法必须没有实参和返回类型。

      + +

      示例:

      +
      
      +  @ContextConfiguration
      +  @Transactional
      +  public class AbstractShowcaseTest {
      +    @BeforeTransaction // 方法返回类型应为 'void'
      +    public boolean setupData() {...}
      +
      +    @AfterTransaction // 实参数量错误
      +    public void disposeData(boolean a) throws Exception {...}
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringTransactionalComponentInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringTransactionalComponentInspection.html new file mode 100644 index 000000000..f889ec6e7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringTransactionalComponentInspection.html @@ -0,0 +1,6 @@ + + +报告在当前 @Transactional 组件的应用程序上下文中未正确定义的 PlatformTransactionManager 类。 + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringWebServiceAnnotationsInconsistencyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringWebServiceAnnotationsInconsistencyInspection.html new file mode 100644 index 000000000..ccc80fa66 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringWebServiceAnnotationsInconsistencyInspection.html @@ -0,0 +1,23 @@ + + +

      报告不正确的 Spring Web Services 注解。

      + +

      示例:

      +
      
      +  // 1.  @PayloadRoot on non-endpoint classes
      +  public class HolidayEndpoint {
      +	@PayloadRoot(namespace = NAMESPACE_URI, localPart = "HolidayRequest") // @Endpoint 类支持 @PayloadRoot
      +	public void handleHolidayRequest(@RequestPayload Element holidayRequest) throws Exception {
      +     ...
      +  }
      +
      +  // 2.  @PayLoad 方法上的 @XPathParam
      +  @Endpoint
      +  public class AirlineEndpoint {
      +	  @Namespace(prefix = "m", uri = MESSAGES_NAMESPACE) @ResponsePayload
      +	  public GetFlightsResponse getFlights(@XPathParam("//m:sc") String serviceClassString) {..} //@PayLoad 方法支持 @XPathParam
      +  }
      +}
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringWebServicesConfigurationsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringWebServicesConfigurationsInspection.html new file mode 100644 index 000000000..28baa149c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringWebServicesConfigurationsInspection.html @@ -0,0 +1,20 @@ + + +

      报告不正确的 Spring Web Services 基于 XML 的配置。 +例如,如果 Spring 应用程序上下文中没有以下类型的配置 Bean:

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringWebSocketConfigurationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringWebSocketConfigurationInspection.html new file mode 100644 index 000000000..664efcf02 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringWebSocketConfigurationInspection.html @@ -0,0 +1,41 @@ + + +

      报告 Spring Websocket 基于 XML 的应用程序上下文的问题:

      + +
        +
      • 未解析的 Bean 引用
      • +
      • 缺少必需的标记或特性
      • +
      • 属性类型不正确
      • +
      • enum 属性不一致
      • +
      • 引用 Bean 的类型不正确
      • +
      + +

      示例:

      +
      
      +  <beans ... >
      +  
      +    <bean id="dummyBean" class="java.lang.String"/>
      +  
      +    <websocket:message-broker application-destination-prefix="/app"> <!-- 仅需 <simple-broker> 或 <stomp-broker-relay>  之一-->
      +        <websocket:stomp-endpoint path="/hello" >
      +            <websocket:sockjs>
      +                <websocket:transport-handlers>
      +                    <ref bean="dummyBean"/> <!-- Bean 必须为 'org.springframework.web.socket.sockjs.transport.TransportHandler' 类型 -->
      +                    <bean class="java.lang.String"/> <!-- java.lang.String' 未分配到 'org.springframework.web.socket.sockjs.transport.TransportHandler -->
      +                </websocket:transport-handlers>
      +            </websocket:sockjs>
      +        </websocket:stomp-endpoint>
      +        <websocket:stomp-broker-relay/>
      +        <websocket:simple-broker prefix="/topic"/>
      +        <websocket:broker-channel>
      +            <websocket:executor keep-alive-seconds="10"/>
      +            <websocket:interceptors>
      +              <ref bean="dummyBean"/>  <!-- Bean 必须为 'org.springframework.messaging.support.ChannelInterceptor' 类型 -->
      +              <bean class="java.lang.String"/> <!-- java.lang.String' 未分配到 'org.springframework.messaging.support.ChannelInterceptor' -->
      +            </websocket:interceptors>
      +        </websocket:broker-channel>
      +  </websocket:message-broker>
      +</beans>
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringXmlAutowireExplicitlyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringXmlAutowireExplicitlyInspection.html new file mode 100644 index 000000000..1d155f7e8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringXmlAutowireExplicitlyInspection.html @@ -0,0 +1,32 @@ + + +

      报告 <bean> 元素中的 autowire 特性,并建议在可能的情况下显式注入 Bean 属性。

      + +

      示例:

      +
      
      +  public class MyComponent {
      +    public void setOtherBean(OtherBean bean){...}
      +  }
      +
      +
      + + <beans> + <bean class="beans.OtherBean" id="bar"/> + <bean autowire="byType" class="beans.MyComponent"/> + // "不必要的自动装配的依赖项" + // 建议 "将自动装配的依赖项设为显式" + </beans> +
      + +

      应用快速修复后:

      + +
      
      +  <beans>
      +    <bean class="beans.OtherBean" id="bar"/>
      +    <bean class="beans.MyComponent" id="foo">
      +      <property name="otherBean" ref="otherBean"/>
      +    </bean>
      +  </beans>
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringXmlAutowiringInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringXmlAutowiringInspection.html new file mode 100644 index 000000000..a4a5fa3e6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringXmlAutowiringInspection.html @@ -0,0 +1,27 @@ + + +

      报告在 XML 应用程序上下文中配置的 Spring Bean 的不正确自动装配。

      + +

      示例:

      +
      +public interface FooInterface {...}
      +@Component public class FooBean implements FooInterface {...}
      +@Component public class OtherBean implements FooInterface {...}
      +
      +@Component
      +public class MyComponent {
      +	 public void setFooInterface(FooInterface foo) {...}
      +}
      +
      +
      + +<beans> + <bean class="beans.OtherBean" id="otherBean"/> + <bean class="beans.FooBean" id="fooBean"/> + + <bean autowire="byType" class="beans.MyComponent" id="foo"/> // 报告 "无法自动装配。 有不止一种 'FooInterface' 类型的 Bean。 + // Beans: otherBean,fooBean. Properties: 'fooInterface' " +</beans> +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SpringXmlModelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SpringXmlModelInspection.html new file mode 100644 index 000000000..ee8794830 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SpringXmlModelInspection.html @@ -0,0 +1,14 @@ + + +

      报告 Spring Framework 基于 XML 的应用程序上下文的问题:

      + +
        +
      • 未解析的 Bean 引用
      • +
      • 缺少必需的标记或特性
      • +
      • 属性类型不正确
      • +
      • enum 属性不一致
      • +
      • 引用 Bean 的类型不正确
      • +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlAddNotNullColumnInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlAddNotNullColumnInspection.html new file mode 100644 index 000000000..8944b63a7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlAddNotNullColumnInspection.html @@ -0,0 +1,14 @@ + + +报告创建没有 DEFAULT 值的 NOT NULL 列的尝试。 +

      示例(Microsoft SQL 服务器):

      +
      CREATE TABLE foo (a INT, b  INT)
      +
      +ALTER TABLE foo ADD c INT NOT NULL;
      +

      默认情况下,列包含 NULL 值。 在示例中,我们使用 NOT NULL 约束强制列不接受 NULL 值。 + 如果我们禁止使用 NULL 值,则必须设置 SQL 在创建新记录时可以使用的 DEFAULT 值。 +

      +
      ALTER TABLE foo ADD c INT NOT NULL DEFAULT 42;
      +

      您可以使用添加 DEFAULT 值快速修复快速添加 DEFAULT 值。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlAggregatesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlAggregatesInspection.html new file mode 100644 index 000000000..e9d44a339 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlAggregatesInspection.html @@ -0,0 +1,27 @@ + + +报告 SQL 聚合函数的无效用法。 +

      即以下情况:

      +
        +
      • 在 HAVING 和 ORDER BY 子句中使用但在 GROUP BY 子句中遗漏的列。

        +
        CREATE TABLE foo(id INT PRIMARY KEY, a INT, b INT);
        +SELECT a, MAX(b) FROM foo GROUP BY a HAVING b > 0;
        +SELECT * FROM foo GROUP BY a ORDER BY b;
        +

        当按主键进行分组时,此规则不适用。

        +
        SELECT * FROM foo GROUP BY id ORDER BY b;
        +
      • +
      • 在错误的上下文中聚合函数。 通常,您可以在以下上下文中使用聚合函数: SELECT 中的表达式列表; 在 HAVING 和 ORDER BY 部分; 和其他特定于方言的案例。 以下查询将显示错误。

        +
        SELECT a FROM foo WHERE MAX(b) > 0;
        +SELECT a FROM foo GROUP BY MAX(a);
        +
      • +
      • 聚合函数的嵌套调用。

        +
        SELECT MAX(SUM(a)) FROM foo GROUP BY a;
        +

        此规则不适用于解析函数。 以下查询有效且正确。

        +
        SELECT MAX(SUM(a) OVER ()) FROM foo;
        +
      • +
      • 没有聚合函数的 HAVING 的用法。 在这种情况下,请考虑使用 WHERE 部分重写您的代码。

        +
        SELECT a, MAX(b) FROM foo GROUP BY a HAVING a > 0;
        +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlAmbiguousColumnInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlAmbiguousColumnInspection.html new file mode 100644 index 000000000..7e099df96 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlAmbiguousColumnInspection.html @@ -0,0 +1,12 @@ + + +报告名称相同但属于不同表的列。 +

      示例(MySQL):

      +
      CREATE TABLE foo(id INT PRIMARY KEY);
      +CREATE TABLE bar(id INT PRIMARY KEY);
      +
      +SELECT foo.id, bar.id FROM foo, bar WHERE id > 0;
      +

      id 列出现在 foobar 表中。 您需要限定列名以使查询正确。

      +
      SELECT foo.id, bar.id FROM foo, bar WHERE foo.id > 0;
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlAutoIncrementDuplicateInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlAutoIncrementDuplicateInspection.html new file mode 100644 index 000000000..8373caeb1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlAutoIncrementDuplicateInspection.html @@ -0,0 +1,17 @@ + + +报告包含两个具有自动增量的列的表。 在 MySQL、Microsoft SQL Server 和 Db2 方言中,一个表只能有一个带有自动增量选项的字段,并且此字段必须是键。 +

      示例(MySQL):

      +
      CREATE TABLE my_table
      +(
      +    id INT AUTO_INCREMENT,
      +    c2 INT AUTO_INCREMENT,
      +);
      +

      c2 的 AUTO_INCREMENT 约束将被高亮显示,因为 c1 已经具有此约束。 要修正警告,您可以将 id 设为主键并删除 c2 的 AUTO_INCREMENT。

      +
      CREATE TABLE my_table
      +(
      +    id INT AUTO_INCREMENT PRIMARY KEY,
      +    c2 INT,
      +);
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlCallNotationInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlCallNotationInspection.html new file mode 100644 index 000000000..a542bdb40 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlCallNotationInspection.html @@ -0,0 +1,18 @@ + + +报告位置实参在命名实参之后的调用。 适用于 PostgreSQL、Oracle 和 Db2。 +

      示例(PostgreSQL 中):

      +
      CREATE FUNCTION foo(a int, b int, c int) RETURNS int
      +    LANGUAGE plpgsql AS
      +$$
      +BEGIN
      +    RETURN a + b + c;
      +END
      +$$;
      +SELECT foo(a => 1, b => 2, c => 3);
      +  -- `3` 在命名实参之后
      +SELECT foo(1, b => 2, 3);
      +  -- `1` 和 `3` 在命名实参之后
      +SELECT foo(b => 2, 1, 3);
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlCaseVsCoalesceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlCaseVsCoalesceInspection.html new file mode 100644 index 000000000..995d0ff3f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlCaseVsCoalesceInspection.html @@ -0,0 +1,15 @@ + + +报告 CASE 和 COALESCE 调用可以互换的情况。 此检查具有以下意图操作:替换为 'COALESCE' 调用和相反的 替换为 CASE 表达式。 +

      示例(MySQL):

      +
      SELECT
      +  -- this CASE may be replaced by COALESCE
      +	CASE
      +		WHEN C1 IS NOT NULL THEN C1
      +		ELSE 0
      +		END
      +FROM dual;
      +

      在该示例中,CASE 语句可以替换为 SELECT COALESCE(C1, 0),这会产生相同的结果。

      +

      如果您更喜欢使用 CASE 表达式,请在检查页面上选择 CASE 表达式优先于 COALESCE 函数选项。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlCaseVsIfInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlCaseVsIfInspection.html new file mode 100644 index 000000000..ab6b4de9c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlCaseVsIfInspection.html @@ -0,0 +1,15 @@ + + +报告 CASE 和 IF 可互换的情况。 +

      示例(MySQL):

      +
      SELECT CASE
      +WHEN C1 IS NULL THEN 1
      +ELSE 0
      +END
      +FROM dual;
      +

      您可以通过用 IF 替换 CASE 结构来缩短代码。 为此,请应用 替换为 'IF' 调用 意图操作。 示例代码如下所示:

      +
      SELECT IF(C1 IS NULL, 1, 0)
      +FROM dual;
      +

      要将 IF 恢复为 CASE,请点击 IF 并应用替换为 CASE 表达式 意图操作。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlCheckUsingColumnsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlCheckUsingColumnsInspection.html new file mode 100644 index 000000000..e2ad74a37 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlCheckUsingColumnsInspection.html @@ -0,0 +1,11 @@ + + +报告两个表中都不存在的 USING 子句中的列。 +

      示例(MySQL):

      +
      CREATE TABLE t1 (i INT, j INT);
      +CREATE TABLE t2 (k INT, l INT);
      +SELECT * FROM t1 JOIN t2 USING (j);
      +

      在 USING 子句中,列名必须存在于两个表中,SELECT 查询将使用给定的列名自动连接这些表。 由于我们在 t2 中没有 j 列,我们可以使用 ON 重写查询。 ON 子句可以连接两个表中列名不匹配的表。

      +
      SELECT * FROM t1 JOIN t2 ON t1.j = t2.l;
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlConstantConditionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlConstantConditionInspection.html new file mode 100644 index 000000000..d44961b41 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlConstantConditionInspection.html @@ -0,0 +1,9 @@ + + +报告 WHERE 或 JOIN 子句中始终为 TRUE 或始终为 FALSE 的条件。 +

      示例(MySQL):

      +
      CREATE TABLE t1 (a TEXT, b INT, c BOOLEAN);
      +SELECT a FROM t1 WHERE 'Cat' = 'Cat';
      +

      'Cat' = 'Cat' 始终为 true,将被报告。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlConstantExpressionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlConstantExpressionInspection.html new file mode 100644 index 000000000..ea5f8891d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlConstantExpressionInspection.html @@ -0,0 +1,11 @@ + + +报告始终为 true、false 或 null 的条件和表达式。 +

      示例(MySQL):

      +
      CREATE TABLE t1 (a TEXT, b INT, c BOOLEAN);
      +SELECT a FROM t1 WHERE 'Cat' = 'Cat';
      +SELECT a FROM t1 WHERE 'Cat' = null;
      +

      'Cat' = 'Cat' 始终为 true,将被报告。

      +

      'Cat' = null 始终为 null,将被报告。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlCurrentSchemaInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlCurrentSchemaInspection.html new file mode 100644 index 000000000..8a00f40d2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlCurrentSchemaInspection.html @@ -0,0 +1,7 @@ + + +报告当前会话中未自省的架构和数据库。 +

      例如,当您尝试在未内省的架构中创建表时,可能会出现此警告。

      +

      内省是一种检查数据源的方法。 执行内省时,将从数据库中检索结构信息以检测各种对象及其特性。例如,可能是表、列、函数和其他元素。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlDeprecateTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlDeprecateTypeInspection.html new file mode 100644 index 000000000..7027db9b7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlDeprecateTypeInspection.html @@ -0,0 +1,19 @@ + + +报告已弃用并且可能在 DBMS 的未来版本中消失的类型的用法。 +

      报告的类型:

      + +

      示例(Oracle):

      +
      CREATE TABLE ot.foo(
      +a NUMBER GENERATED BY DEFAULT AS IDENTITY,
      +b LONG NOT NULL
      +);
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlDerivedTableAliasInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlDerivedTableAliasInspection.html new file mode 100644 index 000000000..63929943d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlDerivedTableAliasInspection.html @@ -0,0 +1,19 @@ + + +报告没有别名的派生表。 +

      示例(MySQL):

      +
      CREATE TABLE table1 (id INT, name VARCHAR(20), cats FLOAT);
      +CREATE TABLE table2 (id INT, age INTEGER);
      +
      +SELECT id AS ID, name, cats, age
      +FROM (SELECT table1.id, name, cats, age
      +FROM table1
      +JOIN table2 ON table1.id = table2.id);
      +

      根据 dev.mysql.com 上的 Derived Tables 页面,别名是强制的。 您可以使用引入别名快速修复来添加别名。

      +

      在应用快速修复后:

      +
      SELECT id AS ID, name, cats, age
      +FROM (SELECT table1.id, name, cats, age
      +FROM table1
      +JOIN table2 ON table1.id = table2.id);
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlDialectInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlDialectInspection.html new file mode 100644 index 000000000..83293b6ef --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlDialectInspection.html @@ -0,0 +1,7 @@ + + +报告未将方言分配给 SQL 文件的情况。 +

      例如,当您打开一个新的 SQL 文件而没有为其分配方言时,您会看到一条通知,其中建议了最匹配的方言。 点击 使用<dialect> 链接以使用建议的方言。 或者,点击将方言更改为链接以选择其他方言。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlDropIndexedColumnInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlDropIndexedColumnInspection.html new file mode 100644 index 000000000..ea667cc4b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlDropIndexedColumnInspection.html @@ -0,0 +1,19 @@ + + +报告尝试从索引表中删除列的情况。 此检查在 Microsoft SQL Server 和 Sybase ASE 中可用。 +

      示例(Microsoft SQL 服务器):

      +
      CREATE TABLE test_index
      +(
      +col  INT NOT NULL,
      +col2 INT NOT NULL,
      +col3 INT NOT NULL UNIQUE,
      +col4 VARCHAR(200)
      +);
      +
      +CREATE UNIQUE INDEX aaaa ON test_index (col, col2);
      +
      +ALTER TABLE test_index
      +DROP COLUMN col;
      +

      您不能删除 col 列,因为它在索引表中。 要删除该列,您需要先删除 aaaa 索引(例如 DROP INDEX aaaa)。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlDtInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlDtInspection.html new file mode 100644 index 000000000..3d963bdf2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlDtInspection.html @@ -0,0 +1,24 @@ + + +报告日期和时间文字中的错误。 此检查在 MySQL、Oracle、Db2 和 H2 中可用。 +

      示例(MySQL):

      +
      SELECT TIME '10 -12:13:14' FROM dual;
      +SELECT TIME ' 12 : 13 : 14 ' FROM dual;
      +SELECT TIME '12 13 14' FROM dual;
      +SELECT TIME '12-13-14' FROM dual;
      +SELECT TIME '12.13.14' FROM dual;
      +SELECT TIME '12:13:' FROM dual;
      +SELECT TIME '12:13' FROM dual;
      +SELECT TIME '12:' FROM dual;
      +

      在此示例中,日期会忽略 MySQL 日期文字和时间文字标准。 因此,这些将高亮显示。 + 有关 MySQL 中日期和时间文字的详细信息,请参阅 dev.mysql.com 上的“日期和时间文字”页面。

      +

      以下日期和时间文字对 MySQL 有效。

      +
      SELECT TIME '12:13:14' FROM dual;
      +SELECT TIME '12:13:14.555' FROM dual;
      +SELECT TIME '12:13:14.' FROM dual;
      +SELECT TIME '-12:13:14' FROM dual;
      +SELECT TIME '10 12:13:14' FROM dual;
      +SELECT TIME '-10 12:13:14' FROM dual;
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlDuplicateColumnInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlDuplicateColumnInspection.html new file mode 100644 index 000000000..dfe83a5fc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlDuplicateColumnInspection.html @@ -0,0 +1,10 @@ + + +报告 SELECT 列表中列别名的重复名称。 +

      示例(Sybase ASE):

      +
      CREATE TABLE t1 (a TEXT, b INT, c INT);
      +
      +SELECT a AS x, b AS x FROM t1;
      +

      x 别名用于 ab 列。 这些分配高亮显示为错误,因为您不能对 Sybase ASE 中的列使用相同的别名。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlGotoInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlGotoInspection.html new file mode 100644 index 000000000..737e7cbde --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlGotoInspection.html @@ -0,0 +1,26 @@ + + +报告后向 GOTO 语句和用于退出循环的 GOTO 语句的用法。 +

      通常不推荐大量使用 GOTO 语句。 有关详细信息,请参阅 ibm.com 上的 GOTO statement in SQL procedures 页面。

      + +

      考虑使用循环而不是使用 GOTO 返回到上一条语句。

      +

      考虑使用另一个流控制语句,例如 RETURN 或 BREAK,而不是使用 GOTO 退出 WHILE 循环。

      +

      示例(Oracle):

      +
      CREATE PROCEDURE test(n INT) AS
      +DECLARE
      +    x INT;
      +BEGIN
      +    x := 0;
      +    GOTO a;
      +    <<a>> x := 1;
      +    IF (n = 0) THEN
      +        GOTO a;
      +    END IF;
      +    WHILE TRUE
      +        LOOP
      +            GOTO b;
      +        END LOOP;
      +    <<b>> x := 3;
      +END;
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlIdentifierInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlIdentifierInspection.html new file mode 100644 index 000000000..5175d1b39 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlIdentifierInspection.html @@ -0,0 +1,12 @@ + + +报告在查询中使用 SQL 预留关键字作为标识符名称时的情况。 +

      示例(Microsoft SQL 服务器):

      +
      CREATE TABLE select (identity INT IDENTITY NOT NULL, order INT NOT NULL);
      +

      我们使用 selectidentityorder 作为表名和列名。 + 但它们也是 Microsoft SQL Server 中的保留关键字。 + 因此,为了将它们用作查询中的对象名称,您必须用引号引用这些标识符。 要用引号引用它们,您可以使用为标识符加引号 快速修复。

      +

      在应用快速修复后:

      +
      CREATE TABLE [select] ([identity] INT IDENTITY NOT NULL, [order] INT NOT NULL);
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlIllegalCursorStateInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlIllegalCursorStateInspection.html new file mode 100644 index 000000000..1f7b31b55 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlIllegalCursorStateInspection.html @@ -0,0 +1,28 @@ + + +报告 SQL 例程中的非法光标状态。 +
        +
      • 例程具有 CLOSE 或 FETCH 语句,但光标可能已被关闭。
      • +
      • 例程具有 OPEN 语句,但光标可能已被打开。
      • +
      +

      示例(Microsoft SQL 服务器):

      +
      CREATE TABLE t(col INT);
      +
      +CREATE PROCEDURE foo() AS
      +BEGIN
      +DECLARE my_cursor CURSOR FOR SELECT * FROM t;
      +DECLARE a INT;
      +FETCH my_cursor INTO a;
      +CLOSE my_cursor;
      +END;
      +

      根据 docs.microsoft.com 上的 CLOSE (Transact-SQL) 页面,必须为打开的光标执行 CLOSE,并且不允许对仅声明或已经关闭的光标执行 CLOSE。 因此,我们需要打开光标来修正警告。

      +
      CREATE PROCEDURE foo() AS
      +BEGIN
      +DECLARE my_cursor CURSOR FOR SELECT * FROM t;
      +DECLARE a INT;
      +OPEN my_cursor;
      +FETCH my_cursor INTO a;
      +CLOSE my_cursor;
      +END;
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlInsertIntoGeneratedColumnInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlInsertIntoGeneratedColumnInspection.html new file mode 100644 index 000000000..75215aba0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlInsertIntoGeneratedColumnInspection.html @@ -0,0 +1,16 @@ + + +报告将值赋给生成的列的 INSERT 语句。 可以读取生成的列,但不能直接写入其值。 +

      示例(PostgreSQL):

      +
      CREATE TABLE foo
      +(
      +   col1 INT,
      +   col2 INT GENERATED ALWAYS AS (col1 + 1) STORED
      +);
      +INSERT INTO foo(col1, col2) VALUES (1, 2);
      +
      +

      您不能将 2 插入到 col2 列中,因为此列已生成。 + 要使此脚本正常工作,您可以将 2 更改为 DEFAULT。

      +INSERT INTO foo(col1, col2) VALUES (1, DEFAULT); + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlInsertNullIntoNotNullInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlInsertNullIntoNotNullInspection.html new file mode 100644 index 000000000..ff69cc897 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlInsertNullIntoNotNullInspection.html @@ -0,0 +1,17 @@ + + +报告将 NULL 值插入仅接受 NOT NULL 值的列的情况。 +

      示例(Microsoft SQL 服务器):

      +
      CREATE TABLE br2 (
      +id INT NOT NULL,
      +col1 NVARCHAR (20) NOT NULL,
      +col2 NVARCHAR (20) NOT NULL,
      +);
      +--
      +INSERT INTO br2 (id, col1, col2)
      +VALUES (1, NULL, NULL);
      +

      您不能在 col1col2 中插入 NULL 值,因为它们被定义为 NOT NULL。 如果按原样运行脚本,则会收到错误消息。 要修复此代码,请将 VALUES 部分中的 NULL 替换为值(例如,42'bird')。

      +
      INSERT INTO br2 (id, col1, col2)
      +VALUES (1, 42, 'bird');
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlInsertValuesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlInsertValuesInspection.html new file mode 100644 index 000000000..647347343 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlInsertValuesInspection.html @@ -0,0 +1,10 @@ + + +报告 VALUES 中的形参数目与目标表中的列数不匹配的情况。 +

      示例(MySQL):

      +
      CREATE TABLE foo(a INT, b INT, c INT);
      +
      +INSERT INTO foo VALUES (1,2,3,4)
      +

      foo 表有三列,但在 INSERT INTO 语句中我们传递了四列。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlJoinWithoutOnInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlJoinWithoutOnInspection.html new file mode 100644 index 000000000..ffaf5f418 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlJoinWithoutOnInspection.html @@ -0,0 +1,11 @@ + + +报告可能更改整个数据库的语句的缺失条件检查。 +

      例如,在没有 ON 或 WHERE 的 DELETE 语句中使用 JOIN 子句。 如果不对 JOIN 进行条件检查,DELETE 将删除整个表的内容。

      +

      示例(MySQL):

      +
      CREATE TABLE foo (a INT,b INT,c INT);
      +CREATE TABLE bar (a INT,b INT,c INT);
      +
      +DELETE table1 FROM foo table1  INNER JOIN bar table2;
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlMisleadingReferenceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlMisleadingReferenceInspection.html new file mode 100644 index 000000000..5a8ba337e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlMisleadingReferenceInspection.html @@ -0,0 +1,38 @@ + + +报告 SQL 代码中不明确的引用。 +

      例如,当名称同时引用表列和例程形参时。 由于违反直观的解析逻辑,此类代码的执行可能会导致错误或意外结果。 通常,范围更局部的名称具有更高的优先级。

      +

      示例(PostgreSQL):

      +
      CREATE TABLE foo
      +(
      +    id   INT,
      +    name VARCHAR(5)
      +);
      +CREATE FUNCTION func(name VARCHAR(5)) RETURNS INT AS
      +$$
      +DECLARE
      +    b INT;
      +BEGIN
      +      -- `name` 不明确,因为它被用作列名和形参
      +    SELECT COUNT(*) INTO b FROM foo t WHERE t.name = name;
      +    RETURN b;
      +END;
      +$$ LANGUAGE plpgsql;
      +

      在 PostgreSQL 中,您可以使用 #variable_conflict 指令来明确指定正确的引用。 例如,使用 #variable_conflict use_column 引用列名,或使用 #variable_conflict use_variable 引用形参。

      +
      CREATE TABLE foo
      +(
      +    id   INT,
      +    name VARCHAR(5)
      +);
      +CREATE FUNCTION func(name VARCHAR(5)) RETURNS INT AS
      +$$
      +    #variable_conflict use_column
      +DECLARE
      +    b INT;
      +BEGIN
      +    SELECT COUNT(*) INTO b FROM foo t WHERE t.name = name;
      +    RETURN b;
      +END;
      +$$ LANGUAGE plpgsql;
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlMissingColumnAliasesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlMissingColumnAliasesInspection.html new file mode 100644 index 000000000..fbe65aa18 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlMissingColumnAliasesInspection.html @@ -0,0 +1,10 @@ + + +报告在输出表达式中没有显式别名的查询(例如,在 SELECT 语句中)。 +

      示例(PostgreSQL):

      +
      CREATE TABLE foo(a INT, b INT);
      +
      +SELECT 1, a + 1 AS A2, MAX(b) AS M
      +FROM foo;
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlMissingReturnInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlMissingReturnInspection.html new file mode 100644 index 000000000..648bfe26e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlMissingReturnInspection.html @@ -0,0 +1,20 @@ + + +报告没有 RETURN 语句的函数。 + +

      示例(Oracle):

      + +
      +CREATE FUNCTION foo RETURN int AS
      +BEGIN
      +END;
      +
      + +

      foo 函数必须返回整数值,但函数体不返回任何内容。 要修正错误,请添加 RETURN 语句(例如,RETURN 1;)。

      + +
      CREATE FUNCTION foo RETURN int AS
      +BEGIN
      + RETURN 1;
      +END;
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlMultipleLimitClausesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlMultipleLimitClausesInspection.html new file mode 100644 index 000000000..d63b34e6d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlMultipleLimitClausesInspection.html @@ -0,0 +1,12 @@ + + +报告单个查询中多个行限制子句的使用情况。 + +

      示例(Microsoft SQL 服务器):

      +
      create table foo(a int);
      +select top 1 * from foo order by a offset 10 rows fetch next 20 rows only;
      + +

      SELECT TOP 子句用于指定必须只返回 1 条记录。 FETCH 子句指定在处理完 OFFSET 子句后要返回的行数。 但是因为我们已经有了 SELECT TOP 限制子句,所以 FETCH 子句可能是冗余的。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlNamedArgumentsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlNamedArgumentsInspection.html new file mode 100644 index 000000000..f1e5ff285 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlNamedArgumentsInspection.html @@ -0,0 +1,21 @@ + + +报告在例程调用中不带名称使用的实参。 默认情况下,此检查处于禁用状态。 +

      有关命名形参和未命名形参之间差异的详细信息,请参阅 docs.microsoft.com 上的 Binding Parameters by Name (Named Parameters) 页面。

      +

      示例(Microsoft SQL 服务器):

      +
      CREATE FUNCTION foo(n INT, m INT) RETURNS INT AS
      +BEGIN
      +    RETURN n + m;
      +END;
      +
      +CREATE PROCEDURE test AS
      +BEGIN
      +    foo n = 1, m = 2;
      +
      +--- 以下调用缺少形参名称,会被高亮显示
      +    foo 1, 2;
      +END;
      +

      foo 1, 2; 调用中的形参 1, 2 突出显示,因为它们缺少名称。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlNoDataSourceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlNoDataSourceInspection.html new file mode 100644 index 000000000..c2e804310 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlNoDataSourceInspection.html @@ -0,0 +1,5 @@ + + +报告数据库工具窗口中缺少数据源(视图 | 工具窗口 | 数据库)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlNullComparisonInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlNullComparisonInspection.html new file mode 100644 index 000000000..1473f4b58 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlNullComparisonInspection.html @@ -0,0 +1,13 @@ + + +报告与可以替换为 IS NULL 或 IS NOT NULL 运算符的 NULL 的比较。 +

      示例(Microsoft SQL 服务器):

      +
      CREATE TABLE foo ( id int );
      +
      +SELECT * FROM foo WHERE NULL = NULL;
      +SELECT * FROM foo WHERE NULL != NULL;
      +

      NULL = NULL 可以替换为 IS NULLNULL != NULL 比较可以替换为 IS NOT NULL。 要进行此替换,您可以使用使用 IS NULL 运算符使用 IS NOT NULL 运算符快速修复。

      +
      SELECT * FROM foo WHERE NULL IS NULL;
      +SELECT * FROM foo WHERE NULL IS NOT NULL;
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlRedundantAliasInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlRedundantAliasInspection.html new file mode 100644 index 000000000..36daa1295 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlRedundantAliasInspection.html @@ -0,0 +1,13 @@ + + +报告可能与表中的列名重叠并且可能是冗余的别名表达式。 +

      示例(PostgreSQL):

      +
      CREATE TABLE foo(a INT, b INT);
      +
      +SELECT * FROM foo foo(a, b);
      +SELECT * FROM foo foo(a);
      +SELECT * FROM foo foo(x);
      +SELECT * FROM foo foo(x, y);
      +

      前两个别名使用与 foo 表中相同的列名。 这些被认为是冗余的,因为列具有相同的名称。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlRedundantCodeInCoalesceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlRedundantCodeInCoalesceInspection.html new file mode 100644 index 000000000..1d3061d03 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlRedundantCodeInCoalesceInspection.html @@ -0,0 +1,8 @@ + + +报告除 COALESCE 函数中第一个不评估为 NULL 的表达式之外的所有实参。 +

      示例(MySQL):

      +
      SELECT COALESCE(NULL, NULL, NULL, 42, NULL, 'string') as a;
      +

      第一个 NOT NULL 实参是 42,所有其他实参将显示为灰色。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlRedundantElseNullInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlRedundantElseNullInspection.html new file mode 100644 index 000000000..7d4b3c11e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlRedundantElseNullInspection.html @@ -0,0 +1,8 @@ + + +报告冗余的 ELSE NULL 子句。 +

      示例(MySQL):

      +
      SELECT CASE WHEN 2 > 1 THEN 'OK' ELSE NULL END AS alias FROM foo;
      +

      ELSE NULL 部分永远不会被执行,可以省略。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlRedundantLimitInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlRedundantLimitInspection.html new file mode 100644 index 000000000..b258157a6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlRedundantLimitInspection.html @@ -0,0 +1,13 @@ + + +报告查询中限制行的冗余子句,例如 FETCH 和 LIMIT。 +

      示例(PostgreSQL):

      +
      CREATE TABLE foo(a INT);
      +
      +SELECT * FROM foo WHERE EXISTS(SELECT * FROM foo LIMIT 2);
      +SELECT * FROM foo WHERE EXISTS(SELECT * FROM foo FETCH FIRST 2 ROWS ONLY);
      +

      要修复警告,您可以将 OFFSET 添加到限制子句。 如果缺少 OFFSET,则 LIMIT 是多余的,因为 LIMIT 的用法不会影响 EXISTS 的运算结果。 在 OFFSET 的情况下,我们跳过前 N 行,这将影响输出。

      +
      SELECT * FROM foo WHERE EXISTS(SELECT * FROM foo OFFSET 1 ROW LIMIT 2);
      +SELECT * FROM foo WHERE EXISTS(SELECT * FROM foo OFFSET 1 ROW FETCH FIRST 2 ROWS ONLY);
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlRedundantOrderingDirectionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlRedundantOrderingDirectionInspection.html new file mode 100644 index 000000000..791d10758 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlRedundantOrderingDirectionInspection.html @@ -0,0 +1,9 @@ + + +在 ORDER BY 子句中报告冗余的排序方向,如 ASC 和 DESC。 +

      示例(MySQL):

      +
      CREATE TABLE foo(a INT, b INT, c INT);
      +SELECT * FROM foo ORDER BY a ASC, b DESC, c ASC;
      +

      ORDER BY 关键字默认按升序对记录进行排序。 因此,ac 列的 ASC 关键字是冗余的。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlResolveInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlResolveInspection.html new file mode 100644 index 000000000..7648496ba --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlResolveInspection.html @@ -0,0 +1,11 @@ + + +报告未解析的 SQL 引用。 +

      示例(MySQL):

      +
      CREATE TABLE users(id INT, name VARCHAR(40));
      +CREATE TABLE admins(id INT, col1 INT);
      +
      +SELECT users.id, admins.id FROM admins WHERE admins.id > 1;
      +

      users.id 列未解析,因为 FROM 子句中缺少 users 表。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlShadowingAliasInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlShadowingAliasInspection.html new file mode 100644 index 000000000..ab4db55a6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlShadowingAliasInspection.html @@ -0,0 +1,9 @@ + + +报告 SELECT 中别名名称与 FROM 子句中的列名称匹配。 +

      示例(MySQL):

      +
      CREATE TABLE foo (a INT, b INT, c INT);
      +SELECT a b, c FROM foo;
      +

      a 列使用 b 别名,但 b 名称也被 foo 表中的列使用。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlShouldBeInGroupByInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlShouldBeInGroupByInspection.html new file mode 100644 index 000000000..59977ecdf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlShouldBeInGroupByInspection.html @@ -0,0 +1,11 @@ + + +报告不在 GROUP BY 子句或聚合函数调用中的列。 +

      示例(Microsoft SQL 服务器):

      +
      CREATE TABLE t1 (a INT, b INT);
      +SELECT a, b FROM t1 GROUP BY a;
      +

      如果您运行 SELECT 查询,您将收到一个错误,因为 Microsoft SQL Server 需要 b 列在 GROUP BY 中或在聚合函数内使用。 以下两个示例将修复该错误。

      +
      SELECT a, b FROM t1 GROUP BY a, b;
      +SELECT a, max(b) max_b FROM t1 GROUP BY a;
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlSideEffectsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlSideEffectsInspection.html new file mode 100644 index 000000000..7d13d1fb6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlSideEffectsInspection.html @@ -0,0 +1,10 @@ + + +报告在只读连接期间可能会修改数据库的语句。

      要为连接启用只读模式,请在数据库工具窗口(视图 | 工具窗口 | 数据库)中右键点击数据源,然后选择属性。 + 在数据源和驱动程序对话框中,点击选项选项卡并选中只读复选框。

      +

      示例(MySQL):

      +
      CREATE TABLE foo(a INT);
      +INSERT INTO foo VALUES (1);
      +

      由于 CREATE TABLEINSERT INTO 语句会导致数据库修改,因此这些语句将在只读连接模式中高亮显示。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlSignatureInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlSignatureInspection.html new file mode 100644 index 000000000..932c9d9c5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlSignatureInspection.html @@ -0,0 +1,14 @@ + + +报告内置函数的签名问题。 +

      检查将报告错误数量的实参、无效的关键字、错误的数据类型和其他问题。

      +

      示例(MySQL):

      +
      CREATE TABLE foo (a INT, b INT, c INT)
      +
      +SELECT IFNULL() FROM foo; -- 错误
      +SELECT IFNULL(a) FROM foo; -- 错误
      +SELECT IFNULL(a, b) FROM foo; -- 正确
      +SELECT IFNULL(a, b, c) FROM foo; -- 错误
      +

      在 MySQL 中,IFNULL() 函数严格接受两个实参。 因此,只有 SELECT IFNULL(a, b) FROM foo; 查询是正确的。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlStorageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlStorageInspection.html new file mode 100644 index 000000000..4a376bb49 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlStorageInspection.html @@ -0,0 +1,16 @@ + + +报告数据库对象的源代码已更改的情况。 +

      执行数据库或对象内省时会触发检查。 当您打开对象的源代码、运行语句和执行代码重构时,就会运行内省。 + 此外,您可以通过右键点击对象并选择刷新来运行内省。

      + +

      检查包括以下几种情况:

      + +
        +
      • 数据库中的对象源代码已更改,但编辑器中的代码未更新。 适用于 PostgreSQL、Microsoft SQL Server、Oracle 和 Sybase ASE。
      • +
      • 您更改了对象源代码,内省了数据库,但源代码已被其他人更改。
      • +
      • IDE 中的数据库内省器已更新,您需要下载先前内省器版本中缺少的新对象属性。
      • +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlStringLengthExceededInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlStringLengthExceededInspection.html new file mode 100644 index 000000000..7bff75556 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlStringLengthExceededInspection.html @@ -0,0 +1,26 @@ + + +报告超过定义的字符长度的变量。 +

      示例(Microsoft SQL 服务器):

      +
      CREATE PROCEDURE test() AS
      +BEGIN
      +DECLARE myVarOk VARCHAR(5) = 'abcde';
      +DECLARE myVarExceeded VARCHAR(5) = 'abcde12345';
      +
      +SET myVarOk = 'xyz';
      +SET myVarExceeded = '123456789';
      +END;
      +

      myVarExceeded 变量被定义为 VARCHAR(5) 但两个分配的值('abcde12345''123456789') 都超出了此限制。 您可以截断指定的值或增加定义的长度。 + 要增加长度,请使用增加类型长度 快速修复。 +

      +

      在应用快速修复后:

      +
      CREATE PROCEDURE test() AS
      +BEGIN
      +DECLARE myVarOk VARCHAR(5) = 'abcde';
      +DECLARE myVarExceeded VARCHAR(10) = 'abcde12345';
      +
      +SET myVarOk = 'xyz';
      +SET myVarExceeded = '123456789';
      +END;
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlTransactionStatementInTriggerInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlTransactionStatementInTriggerInspection.html new file mode 100644 index 000000000..52a0ff4f7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlTransactionStatementInTriggerInspection.html @@ -0,0 +1,40 @@ + + +报告触发器主体中事务管理语句(如 COMMIT 或 ROLLBACK)的用法。 +

      在触发器主体中使用 COMMIT 或 ROLLBACK 语句时,触发器将不会编译。 + 发生错误是因为触发器在事务中间触发。 当触发器启动时,当前事务仍未完成。 因为 COMMIT 会终止事务,这两个语句(COMMIT 和 ROLLBACK)都会导致异常。 + 在触发器中执行的更改应该由启动触发器的所属事务提交(或回滚)。

      +

      示例(Oracle):

      +
      CREATE TABLE employee_audit
      +(
      +    id          INT  NOT NULL,
      +    update_date DATE NOT NULL,
      +    old_name    VARCHAR2(100),
      +    new_name    VARCHAR2(100)
      +);
      +
      +CREATE TABLE employees
      +(
      +    id   INT           NOT NULL,
      +    name VARCHAR2(100) NOT NULL
      +);
      +
      +CREATE OR REPLACE TRIGGER trig_commit
      +    AFTER UPDATE OF name
      +    ON employees
      +    FOR EACH ROW
      +BEGIN
      +    INSERT INTO employee_audit VALUES (:old.id, SYSDATE, :old.name, :new.name);
      +    COMMIT;
      +END;
      +
      +CREATE OR REPLACE TRIGGER trig_rollback
      +    AFTER UPDATE OF name
      +    ON employees
      +    FOR EACH ROW
      +BEGIN
      +    INSERT INTO employee_audit VALUES (:old.id, SYSDATE, :old.name, :new.name);
      +    ROLLBACK;
      +END;
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlTriggerTransitionInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlTriggerTransitionInspection.html new file mode 100644 index 000000000..f19862c48 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlTriggerTransitionInspection.html @@ -0,0 +1,19 @@ + + +报告触发器中转换表变量的不正确用法。 +

      示例 (HSQLDB):

      +
      CREATE TABLE foo(a INT);
      +
      +CREATE TRIGGER trg
      + AFTER DELETE ON foo
      +BEGIN
      +   SELECT * FROM NEW;
      +END;
      +
      +CREATE TRIGGER trig AFTER INSERT ON foo
      +   REFERENCING OLD ROW AS newrow
      +   FOR EACH ROW WHEN (a > 1)
      +   INSERT INTO foo VALUES (1)
      +

      在 HSQLDB 中,DELETE 触发器只能用于 OLD 状态,而 INSERT 触发器只能用于 NEW 状态。 因此,在前面的示例中,SELECT * FROM NEW; 中的 NEW 和 REFERENCING OLD ROW AS newrow 中的 OLD 将被高亮显示。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlTypeInspection.html new file mode 100644 index 000000000..8634ad503 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlTypeInspection.html @@ -0,0 +1,5 @@ + + +报告与类型相关的错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlUnicodeStringLiteralInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlUnicodeStringLiteralInspection.html new file mode 100644 index 000000000..19f8c061e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlUnicodeStringLiteralInspection.html @@ -0,0 +1,12 @@ + + +报告使用没有 N 前缀的国家字符的字符串文字。 +

      如果没有 N 前缀,字符串将被转换为数据库的默认代码页面。 此默认代码页面可能无法识别某些字符。 有关更多信息,请参阅 docs.microsoft.com 上的“nchar 和 nvarchar”(Transact-SQL) 页面。

      +

      示例(Microsoft SQL 服务器):

      +
      SELECT 'abcde' AS a;
      +SELECT N'abcde' AS b;
      +SELECT 'абвгд' AS c;
      +SELECT N'абвгд' AS d;
      +

      SELECT 'абвгд' AS c; 没有 N 前缀,'абвгд' 部分将被高亮显示。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlUnreachableCodeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlUnreachableCodeInspection.html new file mode 100644 index 000000000..0072894ba --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlUnreachableCodeInspection.html @@ -0,0 +1,12 @@ + + +报告 SQL 例程中不可到达的语句。 +

      示例(Microsoft SQL 服务器):

      +
      CREATE FUNCTION foo() RETURNS INT AS
      +BEGIN
      +    THROW;
      +    RETURN 1;
      +END;
      +

      在 Microsoft SQL Server 中,THROW 语句会引发异常并将执行转移到 TRY...CATCH 结构的 CATCH 块。 因此,RETURN 1; 部分将永远不会被执行。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlUnusedCteInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlUnusedCteInspection.html new file mode 100644 index 000000000..9f9bfef9c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlUnusedCteInspection.html @@ -0,0 +1,11 @@ + + +报告查询中未使用的通用表表达式 (CTE)。 +

      示例(PostgreSQL):

      +
      CREATE TABLE foo(a INT);
      +
      +WITH a AS (SELECT 1 AS x FROM foo)
      +SELECT 1 + 2 FROM foo;
      +

      通过使用 WITH,我们创建了一个名为 a 的临时命名结果集,也称为通用表表达式 (CTE)。 但是,我们稍后不会在代码中使用此 CTE。 未使用的 CTE 显示为灰色。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlUnusedSubqueryItemInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlUnusedSubqueryItemInspection.html new file mode 100644 index 000000000..d02829802 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlUnusedSubqueryItemInspection.html @@ -0,0 +1,10 @@ + + +报告外部查询表达式中未引用的列、别名和其他子查询项。 +

      示例(PostgreSQL):

      +
      CREATE TABLE for_subquery(id INT);
      +SELECT a, q FROM (SELECT 1 AS a, 10 AS b, 2 + 3 AS q, id
      +      FROM for_subquery) x;
      +

      我们引用子查询中的别名 aq。 但是 b 别名和 id 列在外部 SELECT 语句中没有被引用。 因此,bid 将显示为灰色。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlUnusedVariableInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlUnusedVariableInspection.html new file mode 100644 index 000000000..88986ffd1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlUnusedVariableInspection.html @@ -0,0 +1,13 @@ + + +报告未使用的实参、变量或形参。 +

      示例(PostgreSQL):

      +
      CREATE FUNCTION foo(PARAMUSED INT, PARAMUNUSED INT) RETURNS INT AS
      +$$
      +BEGIN
      +    RETURN PARAMUSED;
      +END
      +$$ LANGUAGE plpgsql;
      +

      PARAMUNUSED 形参未在函数中使用,可能会被删除。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SqlWithoutWhereInspection.html b/original-plugin-raw/zh/inspectionDescriptions/SqlWithoutWhereInspection.html new file mode 100644 index 000000000..6c031c5cd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SqlWithoutWhereInspection.html @@ -0,0 +1,10 @@ + + +报告不带 WHERE 子句的 DELETE 或 UPDATE 语句的用法。 +

      如果没有 WHERE 子句,DELETE 会删除表中的所有数据,而 UPDATE 会覆盖所有表行的值。

      +

      示例(MySQL):

      +
      CREATE TABLE t1 (a TEXT, b INT, c BOOLEAN);
      +update t1 set  a = 'Smith';
      +delete from t1;
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/StandardJS.html b/original-plugin-raw/zh/inspectionDescriptions/StandardJS.html new file mode 100644 index 000000000..8dbddfe69 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StandardJS.html @@ -0,0 +1,8 @@ + + +报告 JavaScript Standard Style linter 检测到的差异。 + +

      +编辑器中高亮显示的严重性基于 linter 报告的严重性级别。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StandardVariableNames.html b/original-plugin-raw/zh/inspectionDescriptions/StandardVariableNames.html new file mode 100644 index 000000000..f94b6cd48 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StandardVariableNames.html @@ -0,0 +1,20 @@ + + +报告具有与其类型不对应的“标准”名称的变量。 +此类名称可能令人困惑。 特定类型有以下标准名称: +
        +
      • i, j, k, m, n - int
      • +
      • f - float
      • +
      • d - double
      • +
      • b - byte
      • +
      • c, ch - char
      • +
      • l - long
      • +
      • s, str - String
      • +
      +

      仅在编辑器中建议重命名快速修复。

      + +

      + 使用该选项可以忽略与直接 super 方法中的形参名称相同的形参名称。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StatefulEp.html b/original-plugin-raw/zh/inspectionDescriptions/StatefulEp.html new file mode 100644 index 000000000..2677e7510 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StatefulEp.html @@ -0,0 +1,12 @@ + + +报告处于潜在泄漏状态的扩展和快速修复。 +

      + 保留对 PsiElementPsiReferenceProject 实例的引用可能导致内存泄漏。 +

      +

      + 理想情况下,它们应该是无状态的。 + 对于快速修复,可将 LocalQuickFixOnPsiElement 视为一个方便的基类。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StatementsPerFunctionJS.html b/original-plugin-raw/zh/inspectionDescriptions/StatementsPerFunctionJS.html new file mode 100644 index 000000000..635f72a03 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StatementsPerFunctionJS.html @@ -0,0 +1,11 @@ + + +报告过长的函数。 +函数长度通过函数中非空语句的数量来计算。 +太长的函数容易出错,而且难以测试。 + +

      + 使用下面的字段可指定函数中的可接受最大语句数量。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StaticCallOnSubclass.html b/original-plugin-raw/zh/inspectionDescriptions/StaticCallOnSubclass.html new file mode 100644 index 000000000..fe27b6b21 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StaticCallOnSubclass.html @@ -0,0 +1,23 @@ + + +报告其中的调用由声明类的子类而不是声明类本身限定的 static 方法调用。 +

      + Java 允许对类进行此类限定,但是此类调用可能表明继承和重写之间存在微妙的混淆。 +

      +

      示例:

      +
      
      +  class Parent {
      +    public static void print(String str) {}
      +  }
      +  class Child extends Parent {}
      +
      +  Child.print("Hello, world!");
      +
      +

      在应用快速修复后:

      +
      
      +  Parent.print("Hello, world!");
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StaticCollection.html b/original-plugin-raw/zh/inspectionDescriptions/StaticCollection.html new file mode 100644 index 000000000..ac28e20dc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StaticCollection.html @@ -0,0 +1,19 @@ + + +报告 Collection 类型的 static 字段。 虽然这不一定是问题,但静态集合通常会导致内存泄漏,因此会被某些编码标准禁止。 +

      示例:

      +
      
      +  public class Example {
      +    static List<String> list = new ArrayList<>();
      +
      +  }
      +
      + +

      + 配置检查: +

      +
        +
      • 使用忽略弱静态集合或映射选项可以忽略 java.util.WeakHashMap 类型的字段。
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StaticFieldCanBeMovedToUse.html b/original-plugin-raw/zh/inspectionDescriptions/StaticFieldCanBeMovedToUse.html new file mode 100644 index 000000000..741503aee --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StaticFieldCanBeMovedToUse.html @@ -0,0 +1,9 @@ + + +报告仅在与定义 static 字段的类不同的类中使用的所有 static 字段。 此类字段可以移动。 +

      仅适用于代码 | 检查代码代码 | 分析代码 | 通过名称运行检查,并且不会在编辑器中报告。

      + +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StaticFieldReferenceOnSubclass.html b/original-plugin-raw/zh/inspectionDescriptions/StaticFieldReferenceOnSubclass.html new file mode 100644 index 000000000..1900a8f3f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StaticFieldReferenceOnSubclass.html @@ -0,0 +1,33 @@ + + +报告对其中的调用由声明类的子类而不是由声明类本身限定的 static 字段的访问。 +

      + Java 允许此类限定,但是此类访问可能表明继承和重写之间存在难以捉摸的混淆。 +

      +

      示例:

      +
      
      +  class Parent {
      +    static int foo = 0;
      +  }
      +
      +  class Child extends Parent { }
      +
      +  void bar() {
      +    System.out.println(Child.foo);
      +  }
      +
      +

      应用快速修复后,结果如下所示:

      +
      
      +  class Parent {
      +    static int foo = 0;
      +  }
      +
      +  class Child extends Parent { }
      +
      +  void bar() {
      +    System.out.println(Parent.foo);
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StaticGuardedByInstance.html b/original-plugin-raw/zh/inspectionDescriptions/StaticGuardedByInstance.html new file mode 100644 index 000000000..6e9838e01 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StaticGuardedByInstance.html @@ -0,0 +1,25 @@ + + +报告其中的保护符为非 static 字段或 thisstatic 字段或方法上的 @GuardedBy 注解。 +

      使用非 static 元素保护 static 元素可能会导致过度并发,多个线程可能在不同的对象上下文中锁定,以同时访问保护字段。

      +

      示例:

      +
      
      +    private ReadWriteLock lock = new ReentrantReadWriteLock();
      +
      +    @GuardedBy("lock")
      +    public static void bar() {
      +        // ...
      +    }
      +
      + +

      支持的 @GuardedBy 注解是:

      +
        +
      • net.jcip.annotations.GuardedBy
      • +
      • javax.annotation.concurrent.GuardedBy
      • +
      • org.apache.http.annotation.GuardedBy
      • +
      • com.android.annotations.concurrency.GuardedBy
      • +
      • androidx.annotation.GuardedBy
      • +
      • com.google.errorprone.annotations.concurrent.GuardedBy
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StaticImport.html b/original-plugin-raw/zh/inspectionDescriptions/StaticImport.html new file mode 100644 index 000000000..f996764a5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StaticImport.html @@ -0,0 +1,13 @@ + + +报告 import static 语句。 +

      Java 1.4 或更早版本的 JVM 不支持此类 import 语句。

      + +

      配置检查:

      +
        +
      • 使用下表可以指定在 import static 语句中使用时该检查将忽略的类。
      • +
      • 使用忽略单字段 static import复选框可以忽略单字段 import static 语句。
      • +
      • 使用忽略单方法 static import 复选框可以忽略单方法 import static 语句。
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StaticInheritance.html b/original-plugin-raw/zh/inspectionDescriptions/StaticInheritance.html new file mode 100644 index 000000000..4f2236a9d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StaticInheritance.html @@ -0,0 +1,9 @@ + + +报告仅为提供对常量的访问而实现的接口。 +这种继承常常令人困惑,可能隐藏重要的依赖关系信息。 + +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StaticInitializerReferencesSubClass.html b/original-plugin-raw/zh/inspectionDescriptions/StaticInitializerReferencesSubClass.html new file mode 100644 index 000000000..e623e4d10 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StaticInitializerReferencesSubClass.html @@ -0,0 +1,13 @@ + + +报告在 static 初始值设定项或 static 字段中引用其子类的类。 +

      此类引用可能在多线程环境(即一个线程试图加载超类,另一个线程同时试图加载子类)中引起 JVM 级死锁。

      +

      示例:

      +
      
      +  class Parent {
      +    static final Child field = new Child();
      +  }
      +  class Child extends Parent { }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StaticMethodOnlyUsedInOneClass.html b/original-plugin-raw/zh/inspectionDescriptions/StaticMethodOnlyUsedInOneClass.html new file mode 100644 index 000000000..4f9d65501 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StaticMethodOnlyUsedInOneClass.html @@ -0,0 +1,16 @@ + + +报告仅从包含类以外的类使用的 static 方法和字段。 此类成员可以移动到所使用的类。 +此检查将忽略从成员的类内部的匿名类访问的工厂方法和成员。 +调用同一个类中名称相同但形参较少的方法的方便重载也会被忽略。 + +

      +仅在从测试类使用 static 成员时,可以使用第一个复选框来禁止此检查。 +

      +使用下面的第二个复选框可以忽略匿名类、本地类或非 static 内部类中的成员用法。 +

      +使用下面的第三个复选框,可以不对没有问题的情况下也无法移动的成员发出警告,例如,由于目标类中已存在签名相同的方法,或者由于移动此方法时将无法访问方法内部使用的字段或方法。 +

      +使用第四个复选框可以忽略位于实用程序类中的成员。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StaticNonFinalField.html b/original-plugin-raw/zh/inspectionDescriptions/StaticNonFinalField.html new file mode 100644 index 000000000..2a0f7d127 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StaticNonFinalField.html @@ -0,0 +1,10 @@ + + +报告非 final static 字段。 +

      可以通过快速修复将 final 修饰符添加到非 final static 字段中。

      +

      此检查不检查字段的可变性。 例如,将 final 修饰符添加到在某个位置设置了值的字段,将导致编译错误。

      + +

      + 使用仅报告 'public' 字段选项,使该检查只报告 public 字段。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StaticPseudoFunctionalStyleMethod.html b/original-plugin-raw/zh/inspectionDescriptions/StaticPseudoFunctionalStyleMethod.html new file mode 100644 index 000000000..50f751dbf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StaticPseudoFunctionalStyleMethod.html @@ -0,0 +1,22 @@ + + +如果 Java Stream API 可用,则报告伪函数代码的用法。 +

      虽然 guava Iterable API 提供类似于 Java Streams API 的功能,但它略有不同,可能会缺少某些功能。 + 特别是,IntStream 等基元专门化的流变体比一般变体的性能更好。

      +

      示例:

      +
      
      +List<String> transformedIterable = Iterables.transform(someList, someTransformFunction);//警告:伪函数样式代码
      +
      +

      在应用快速修复后:

      +
      List<String> transformedIterable = someList.stream().map(someTransformFunction).collect(Collectors.toList());
      +

      + 注意:代码语义可能改变:例如 guava 的 Iterable.transform 产生惰性求值的可迭代对象,但替换为及早求值。 +

      + +

      + 使用转换为 'Stream' API 的 static 方法调用选项,配置应转换为 stream API 的 static 方法调用。 +

      + +

      仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StaticSuite.html b/original-plugin-raw/zh/inspectionDescriptions/StaticSuite.html new file mode 100644 index 000000000..1da522a2f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StaticSuite.html @@ -0,0 +1,5 @@ + + +报告所包含的 suite() 方法未声明为 static 的 JUnit 测试用例类。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StaticVariableInitialization.html b/original-plugin-raw/zh/inspectionDescriptions/StaticVariableInitialization.html new file mode 100644 index 000000000..cda328e8f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StaticVariableInitialization.html @@ -0,0 +1,16 @@ + + +报告在类初始化时可能未被初始化的 static 变量。 +

      示例:

      +
      
      +  class Foo {
      +    public static int bar;
      +
      +    static { }
      +  }
      +
      +

      请注意,此检查使用非常保守的数据流算法,并且可能会将 static 变量错误地报告为未初始化。 报告为已初始化的变量将始终被初始化。

      + +

      使用忽略基元字段选项可以忽略未初始化的基元字段。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StaticVariableUninitializedUse.html b/original-plugin-raw/zh/inspectionDescriptions/StaticVariableUninitializedUse.html new file mode 100644 index 000000000..86363de80 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StaticVariableUninitializedUse.html @@ -0,0 +1,19 @@ + + +报告在初始化之前读取的 static 变量。 +

      该检查会忽略 null 的相等检查。

      +

      示例:

      +
      
      +  class Foo {
      +    public static int bar;
      +
      +    public static void main(String[] args) {
      +      System.out.println(bar);
      +    }
      +  }
      +
      +

      请注意,此检查使用非常保守的数据流算法,并且可能会将 static 变量错误地报告为未初始化。 报告为已初始化的变量将始终被初始化。

      + +

      使用忽略基元字段选项可以忽略未初始化的基元字段。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/StaticnessMismatch.html b/original-plugin-raw/zh/inspectionDescriptions/StaticnessMismatch.html new file mode 100644 index 000000000..49547c2f4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StaticnessMismatch.html @@ -0,0 +1,5 @@ + + +报告从类上下文访问的实例符号或者从实例符号访问的类上下文。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StatisticsCollectorNotRegistered.html b/original-plugin-raw/zh/inspectionDescriptions/StatisticsCollectorNotRegistered.html new file mode 100644 index 000000000..396022487 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StatisticsCollectorNotRegistered.html @@ -0,0 +1,11 @@ + + +报告 plugin.xml 描述符中未注册的统计信息收集器。 +

      + IntelliJ IDEA 项目的内部检查。 +

      +

      + 快速修复将添加必要的注册。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StreamToLoop.html b/original-plugin-raw/zh/inspectionDescriptions/StreamToLoop.html new file mode 100644 index 000000000..ed68142f8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StreamToLoop.html @@ -0,0 +1,47 @@ + + +报告可以自动转换为经典循环的 Stream API 链、Iterable.forEachMap.forEach 调用。 +

      示例:

      +
      
      +  String joinNonEmpty(List<String> list) {
      +    return list.stream() // 流可以转换为循环
      +      .filter(s -> !s.isEmpty())
      +      .map(String::trim)
      +      .collect(Collectors.joining(", "));
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  String joinNonEmpty(List<String> list) {
      +    StringJoiner joiner = new StringJoiner(", ");
      +    for (String s : list) {
      +      if (!s.isEmpty()) {
      +        String trim = s.trim();
      +        joiner.add(trim);
      +      }
      +    }
      +    return joiner.toString();
      +  }
      +
      +

      + 请注意,有时此检查可能会导致轻微的语义变化。 + 必须特别注意短路,因为流短路未指定读取的实际元素数。 +

      + +

      配置检查:

      +

      使用 通过 Stream.iterator() 迭代未知的流源 选项来建议转换来源无法识别的流。 + 在这种情况下,迭代器将从流中创建。 + 例如,选择复选框时,此处将建议转换:

      +
      
      +  List<ProcessHandle> handles = ProcessHandle.allProcesses().collect(Collectors.toList());
      +

      在这种情况下,结果如下:

      +
      
      +  List<ProcessHandle> handles = new ArrayList<>();
      +  for (Iterator<ProcessHandle> it = ProcessHandle.allProcesses().iterator(); it.hasNext(); ) {
      +    ProcessHandle allProcess = it.next();
      +    handles.add(allProcess);
      +  }
      +
      +

      2017.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringBufferField.html b/original-plugin-raw/zh/inspectionDescriptions/StringBufferField.html new file mode 100644 index 000000000..21c5be3f1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringBufferField.html @@ -0,0 +1,14 @@ + + +报告 java.lang.StringBufferjava.lang.StringBuilder 类型的字段。 +此类字段可以无限增长,并且通常会导致内存泄漏。 +

      示例:

      +
      
      +  public class Example {
      +    private StringBuilder builder = new StringBuilder();
      +
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringBufferMustHaveInitialCapacity.html b/original-plugin-raw/zh/inspectionDescriptions/StringBufferMustHaveInitialCapacity.html new file mode 100644 index 000000000..5ac1e98b7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringBufferMustHaveInitialCapacity.html @@ -0,0 +1,15 @@ + + +报告对新 StringBufferStringBuilder 对象进行实例化而不指定其初始容量的尝试。 +

      + 如果未指定初始容量,则使用默认容量,这很少是最佳选择。 + 如果在超出初始容量时需要重新分配空间并复制内存,则未指定 StringBuffer 的初始容量可能会导致性能问题。 +

      +

      示例:

      +
      
      +  // 未指定容量
      +  var sb = new StringBuilder();
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringBufferReplaceableByString.html b/original-plugin-raw/zh/inspectionDescriptions/StringBufferReplaceableByString.html new file mode 100644 index 000000000..70fcbc37c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringBufferReplaceableByString.html @@ -0,0 +1,23 @@ + + +报告可以用单个 String 串联替换的 StringBufferStringBuilderStringJoiner 的用法。 +

      使用 String 串联会使代码更短更简单。

      +

      +此检查仅在建议的替换不会导致现代 JVM 的性能显著下降时报告。 在许多情况下,String 串联可能执行效果更好。 +

      +

      示例:

      +
      
      +  StringBuilder result = new StringBuilder();
      +  result.append("i = ");
      +  result.append(i);
      +  result.append(";");
      +  return result.toString();
      +
      +

      在应用快速修复后:

      +
      
      +  String result = "i = " + i + ";";
      +  return result;
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringBufferReplaceableByStringBuilder.html b/original-plugin-raw/zh/inspectionDescriptions/StringBufferReplaceableByStringBuilder.html new file mode 100644 index 000000000..39050c0af --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringBufferReplaceableByStringBuilder.html @@ -0,0 +1,8 @@ + + +报告声明为 StringBuffer 的变量,并建议将它们替换为 StringBuilder。 +StringBuilderStringBuffer 的非线程安全替换。 + +

      仅当项目或模块的语言级别为 5 或更高时,此检查才会报告。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringBufferToStringInConcatenation.html b/original-plugin-raw/zh/inspectionDescriptions/StringBufferToStringInConcatenation.html new file mode 100644 index 000000000..6f1263a2d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringBufferToStringInConcatenation.html @@ -0,0 +1,7 @@ + + +报告字符串串联中的 StringBuffer.toString()StringBuilder.toString() 调用。 +此类调用在串联时不必要且可以移除,从而节省方法调用和对象分配,这样可以提高性能。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringConcatenation.html b/original-plugin-raw/zh/inspectionDescriptions/StringConcatenation.html new file mode 100644 index 000000000..ac8a2e834 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringConcatenation.html @@ -0,0 +1,6 @@ + + +报告 String 串联。 在国际化环境中,串联可能不正确,可以替换为 java.text.MessageFormat 或类似的类的用法。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationArgumentToLogCall.html b/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationArgumentToLogCall.html new file mode 100644 index 000000000..b51673e75 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationArgumentToLogCall.html @@ -0,0 +1,38 @@ + + +报告用作 SLF4JLog4j 2 日志记录方法实参的非常量字符串串联。 +即使未记录日志消息,也会在运行时评估非常量串联;这会对性能产生负面影响。 +建议改用形参化日志消息,禁用日志记录时不会对其进行评估。 +

      示例:

      +
      
      +  public class Vital {
      +    private static final Logger LOG = LoggerFactory.getLogger(Vital.class);
      +
      +    public void saveTheWorld(int i, String s, boolean b) {
      +      LOG.info("saveTheWorld(" + i + ", " + s + ", "  + b + ")");
      +      // todo
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  public class Vital {
      +    private static final Logger LOG = LoggerFactory.getLogger(Vital.class);
      +
      +    public void saveTheWorld(int i, String s, boolean b) {
      +      LOG.info("saveTheWorld({}, {}, {})", i, s, b);
      +      // todo
      +    }
      +  }
      +
      + +

      + 配置检查: +

      +
        +
      • + 使用警告对象列表可以忽略某些更高的日志记录级别。 即使在生产中也可以启用更高的日志记录级别,并且始终会评估实参。 +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationInFormatCall.html b/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationInFormatCall.html new file mode 100644 index 000000000..ad5aa85fe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationInFormatCall.html @@ -0,0 +1,25 @@ + + +报告用作格式字符串实参的非常量字符串串联。 +

      + 虽然偶尔是有意为之,但这通常是误用格式化方法,串联的字符串中使用的变量包含 % 等特殊字符时,甚至可能导致安全问题。 +

      +

      + 此外,有时这可能是在本应键入 , 时键入了 + 而错误串联字符串格式实参所致。 +

      +

      示例:

      +
      
      +  static String formatGreeting(String userName) {
      +    return String.format("Hello, " + userName);
      +  }
      +
      +

      + 这里的 userName 将解释为格式字符串的一部分,从而可能导致 IllegalFormatException(例如,如果 userName"%")或使用大量内存(例如,如果 userName"%2000000000%")。 + 该调用可能应替换为 String.format("Hello, %s", userName);。 +

      +

      + 此检查将检查对 java.util.Formatterjava.lang.Stringjava.io.PrintWriterjava.io.PrintStream 的格式化方法的调用。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationInLoops.html b/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationInLoops.html new file mode 100644 index 000000000..e1bc9c7a2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationInLoops.html @@ -0,0 +1,28 @@ + + +报告循环中的 String 串联。 +

      + 由于每个 String 串联都会复制整个字符串,因此通常最好将其替换为对 StringBuilder.append()StringBuffer.append() 的显式调用。 +

      +

      示例:

      +
      
      +  String str = "";
      +  for(int i=0; i<10; i++) {
      +    str += i;
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  String str = "";
      +  StringBuilder strBuilder = new StringBuilder(str);
      +  for(int i = 0; i<10; i++) {
      +    strBuilder.append(i);
      +  }
      +  str = strBuilder.toString();
      +
      + +

      + 有时,通过该快速修复可将 String 变量转换为 StringBuilder 或引入新的 StringBuilder。 原始代码专门处理 null 值时应小心,因为替换可能会改变语义。 如果可能为 null,建议进行 null 安全修正,生成必要的 null 检查。 此外,也不能保证自动替换总是性能更好。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationInMessageFormatCall.html b/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationInMessageFormatCall.html new file mode 100644 index 000000000..4d96ceee9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationInMessageFormatCall.html @@ -0,0 +1,23 @@ + + +报告用作对 MessageFormat.format() 的调用实参的非常量字符串串联。 +

      + 虽然偶尔是有意为之,但这通常是误用格式化方法,串联的字符串中包含 { 等特殊字符时,甚至可能导致异常。 +

      +

      + 此外,有时这可能是在本应键入 , 时键入了 + 而错误串联字符串格式实参所致。 +

      +

      示例:

      +
      
      +  String formatGreeting(String userName, int balance) {
      +    return MessageFormat.format("Hello, " + userName + "! Your balance is {0}.", balance);
      +  }
      +
      +

      + 这里的 userName 解读为格式字符串的一部分,这可能导致 IllegalArgumentException(例如,如果 userName"{")。 + 此调用或许应当替换为 MessageFormat.format("Hello, {0}! Your balance is {1}.", userName, balance)。 +

      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationInsideStringBufferAppend.html b/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationInsideStringBufferAppend.html new file mode 100644 index 000000000..c4d666641 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationInsideStringBufferAppend.html @@ -0,0 +1,19 @@ + + +报告用作 StringBuffer.append()StringBuilder.append()Appendable.append() 的实参的 String 串联。 +

      + 此类调用可以有利地转变为现有 StringBuffer/Builder/Appendable 中的链式追加调用,从而节省额外的 StringBuffer/Builder 分配成本。 + 此检查将忽略编译时求值的 String 串联,在这种情况下,转换只会降低性能。 +

      +

      示例:

      +
      
      +  void bar(StringBuilder builder, String name) {
      +    builder.append("Hello," + name);    //警告
      +    builder.append("Hello," + "world"); //无警告
      +  }
      +
      + +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationMissingWhitespace.html b/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationMissingWhitespace.html new file mode 100644 index 000000000..b5bcec7bb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringConcatenationMissingWhitespace.html @@ -0,0 +1,14 @@ + + +报告缺少空格的字符串串联,即左侧以 Unicode 字母或数字结束,右侧以 Unicode 字母或数字开始。 +

      示例:

      +
      
      +  String sql = "SELECT column" +
      +               "FROM table";
      +
      + +

      + 使用忽略具有变量字符串的串联选项,只在串联的左右两侧都为文字时报告。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringEquality.html b/original-plugin-raw/zh/inspectionDescriptions/StringEquality.html new file mode 100644 index 000000000..da5428a17 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringEquality.html @@ -0,0 +1,24 @@ + + +报告使用 ==!= 比较字符串的代码。 +

      + 这些运算符确定引用相等,而不是比较内容。 + 在大多数情况下,应使用 equals() 对字符串进行比较,当字符串为不同的对象时,会逐字符进行比较。

      +

      示例:

      +
      
      +  void foo(String s, String t) {
      +    final boolean b = t == s;
      +  }
      +
      +

      如果已知 t 为非 null 值,则可以安全地应用“不安全”的快速修复,并获得类似于以下的结果:

      +
      
      +  void foo(String s, String t) {
      +    final boolean b = t.equals(s);
      +  }
      +
      + + +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringEqualsCharSequence.html b/original-plugin-raw/zh/inspectionDescriptions/StringEqualsCharSequence.html new file mode 100644 index 000000000..5c7458aca --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringEqualsCharSequence.html @@ -0,0 +1,23 @@ + + +报告对 CharSequence 作为实参的 String.equals() 的调用。 +

      + 对于 String 实参,String.equals() 只能返回 true。 + 要比较包含非 String CharSequence 实参的 String 的内容,请使用 contentEquals() 方法。

      +

      示例:

      +
      
      +  boolean equals(String s, CharSequence ch) {
      +    return s.equals(ch);
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  boolean equals(String s, CharSequence ch) {
      +    return s.contentEquals(ch);
      +  }
      +
      + +

      +2017.3 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringEqualsEmptyString.html b/original-plugin-raw/zh/inspectionDescriptions/StringEqualsEmptyString.html new file mode 100644 index 000000000..d34424e0c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringEqualsEmptyString.html @@ -0,0 +1,22 @@ + + +报告 equals() 被调用以将 String 与空字符串进行比较的情况。 +在这种情况下,使用 .isEmpty() 更好,因为它可以准确显示您正在检查的内容。 +

      示例:

      +
      
      +  void checkString(String s){
      +    if ("".equals(s)) throw new IllegalArgumentException();
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  void checkString(String s){
      +    if (s != null && s.isEmpty()) throw new IllegalArgumentException();
      +  }
      +
      + +

      + "".equals(str)str 为空时返回 false。 为了安全起见,当 equals() 实参可以为空时,此检查的快速修复会插入一个显式 null 检查。 使用该选项可使检查忽略此类情况。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringLiteralBreaksHTMLJS.html b/original-plugin-raw/zh/inspectionDescriptions/StringLiteralBreaksHTMLJS.html new file mode 100644 index 000000000..f555a7b82 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringLiteralBreaksHTMLJS.html @@ -0,0 +1,5 @@ + + +报告包含 </ 序列的字符串文字。 此类字符串可能会导致错误解析在其中嵌入 JavaScript 代码的任何 HTML。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringLocalization.html b/original-plugin-raw/zh/inspectionDescriptions/StringLocalization.html new file mode 100644 index 000000000..e8641fb07 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringLocalization.html @@ -0,0 +1,6 @@ + + +报告 NSLocalizedString 中使用的未在相应 .strings 文件中定义的字符串。
      +如果该字符串在某些本地化中被定义,而在其他本地化中没有被定义,此检查也将被触发。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringOperationCanBeSimplified.html b/original-plugin-raw/zh/inspectionDescriptions/StringOperationCanBeSimplified.html new file mode 100644 index 000000000..b9df185ba --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringOperationCanBeSimplified.html @@ -0,0 +1,21 @@ + + +报告冗余的 String 构造函数和对可以替换为简化表达式的 toString()substring() 等方法的调用。 +

      例如,在 "string".substring(0)"string".toString() 或 +new StringBuilder().toString().substring(1,3) 等情况下,可以安全移除对这些方法的调用。

      +

      示例:

      +
      
      +  System.out.println(new String("message"));
      +
      +

      在应用快速修复后:

      +
      
      +  System.out.println("message");
      +
      +

      + 请注意,该快速修复会移除冗余构造函数,这可能会影响 String 引用相等。 + 即使被认为是一种不好的做法,如果您仍需要保留,请禁止警告或将设置配置为忽略冗余的 String 构造函数。 +

      + +

      2018.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringRepeatCanBeUsed.html b/original-plugin-raw/zh/inspectionDescriptions/StringRepeatCanBeUsed.html new file mode 100644 index 000000000..ebd02a407 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringRepeatCanBeUsed.html @@ -0,0 +1,27 @@ + + +报告可以替换为单一 String.repeat() 方法的循环(自 Java 11 起提供)。 +

      示例:

      +
      
      +  void append(StringBuilder sb, int count, Object obj) {
      +    for (int i = 0; i < count; i++) {
      +      sb.append(obj);
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  void append(StringBuilder sb, int count, Object obj) {
      +    sb.append(String.valueOf(obj).repeat(Math.max(0, count)));
      +  }
      +
      + +

      + 默认情况下,如果不能静态地证明 count 非负,则该检查可以使用 Math.max(0, count) 来包装 count。 这样做的目的是防止可能发生的语义更改,因为 String.repeat() 拒绝负数。 + 必要时,可使用添加 Math.max(0, count) 以避免可能的语义变更选项禁用此行为。

      +

      同样,如果不知道要重复的字符串能否为 null,可将其包装在 String.valueOf 中,以防止可能发生的 NullPointerException。 +

      +

      仅当项目或模块的语言级别为 11 或更高时,此检查才会报告。

      +

      2019.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringReplaceableByStringBuffer.html b/original-plugin-raw/zh/inspectionDescriptions/StringReplaceableByStringBuffer.html new file mode 100644 index 000000000..db0072ddb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringReplaceableByStringBuffer.html @@ -0,0 +1,29 @@ + + +报告被声明为 java.lang.String 且重复追加的变量。 此类变量可以更有效地被声明为 java.lang.StringBufferjava.lang.StringBuilder。 +

      示例:

      +
      
      +  String s = "";
      +  for (int i = 0; i < names.length; i++) {
      +    String name = names[i] + (i == names.length - 1 ? "" : " ");
      +    s = s + name;
      +  }
      +
      +

      此类循环可以替换为:

      +
      
      +  StringBuilder s = new StringBuilder();
      +  for (int i = 0; i < names.length; i++) {
      +    String name = names[i] + (i == names.length - 1 ? "" : " ");
      +    s.append(name);
      +  }
      +
      +

      或者甚至可以替换为:

      +
      
      +  String s = String.join(" ", names);
      +
      + +

      + 使用该选项可使此检查仅在变量被附加到循环中时报告。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringToUpperWithoutLocale.html b/original-plugin-raw/zh/inspectionDescriptions/StringToUpperWithoutLocale.html new file mode 100644 index 000000000..e394b1b7f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringToUpperWithoutLocale.html @@ -0,0 +1,9 @@ + + +报告未指定 java.util.LocaleString 对象上的 toUpperCase()toLowerCase() 调用。 这些情况下使用默认的系统区域设置,可能会在国际化环境中导致问题。 +

      + 例如,代码 "i".toUpperCase().equals("I") 在土耳其语和阿塞拜疆语区域设置中返回 false,其中带点和无点的 'i' 是单独的字母。 在土耳其语区域设置中运行时,对包含 'i' 的英文字符串调用 toUpperCase() 将返回不正确的结果。 或者,在处理应被视为与区域设置无关的字符串(如 HTML 标记)时,可能会导致错误。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringToUpperWithoutLocale2.html b/original-plugin-raw/zh/inspectionDescriptions/StringToUpperWithoutLocale2.html new file mode 100644 index 000000000..d0dec7d09 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringToUpperWithoutLocale2.html @@ -0,0 +1,10 @@ + + +检查不完整且当前对用户不可见 + +报告未指定 java.util.Locale 的 +String 对象上的任何 toUpperCase() 或 +toLowerCase() 调用。 +在国际化环境中,此类调用通常是不正确的。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringTokenizer.html b/original-plugin-raw/zh/inspectionDescriptions/StringTokenizer.html new file mode 100644 index 000000000..5b70b6e5c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringTokenizer.html @@ -0,0 +1,6 @@ + + +报告 StringTokenizer 类的用法。 在国际化环境中,过度使用 StringTokenizer 是不正确的。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/StringTokenizerDelimiter.html b/original-plugin-raw/zh/inspectionDescriptions/StringTokenizerDelimiter.html new file mode 100644 index 000000000..a10d18d65 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/StringTokenizerDelimiter.html @@ -0,0 +1,5 @@ + + +报告在分隔符实参中包含重复字符的 StringTokenizer 构造函数或 nextToken 方法调用,例如 tokenizer.nextToken("\n\n")。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Struts2ModelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/Struts2ModelInspection.html new file mode 100644 index 000000000..c1293b5c0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Struts2ModelInspection.html @@ -0,0 +1,5 @@ + + +验证 struts.xml 文件是否存在语法和引用错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/Stylelint.html b/original-plugin-raw/zh/inspectionDescriptions/Stylelint.html new file mode 100644 index 000000000..5d3518327 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Stylelint.html @@ -0,0 +1,8 @@ + + +报告 Stylelint linter 检测到的差异。 + +

      +高亮显示基于 Stylelint 配置文件中为每条规则指定的规则严重性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SubtractionInCompareTo.html b/original-plugin-raw/zh/inspectionDescriptions/SubtractionInCompareTo.html new file mode 100644 index 000000000..c9c062684 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SubtractionInCompareTo.html @@ -0,0 +1,44 @@ + + +报告 compareTo() 方法和实现 java.util.Comparator.compare() 的方法中的减法。 +

      + 虽然使用整数减法的结果作为 compareTo() 方法的结果是一种惯常做法,但在整数溢出的情况下,此结构可能会导致难以捉摸的错误。 + 在大多数情况下,更好的做法是直接比较整数值并返回 -101 。 +

      +

      + 四舍五入可能导致精度损失,因此也会报告直接转换为整型的浮点值减法。 +

      +

      + 在静态地确定值范围有限并且决不会发生溢出时,该检查不会报告。 + 此外,对 int 大于或等于 0 的数字执行减法绝不会溢出。 + 因此,在这样的情况下此检查不发出警告。 +

      +

      + 总是返回零或更大值的方法可以用 javax.annotation.Nonnegative 注解进行标记,或者在此检查的选项中指定。 +

      +

      示例:

      +
      
      +  class DoubleHolder implements Comparable<DoubleHolder> {
      +    double d;
      +    public int compareTo(DoubleHolder that) {
      +        return (int)(this.d - that.d);
      +    }
      + }
      +
      +

      这是一个无警告的示例,因为已知 String.length() 非负:

      +
      
      +  class A implements Comparable<A> {
      +    final String s = "";
      +    public int compareTo(A a) {
      +        return s.length() - a.s.length();
      +    }
      + }
      +
      + +

      + 使用这些选项可列出在减法中安全使用的方法。 + 方法返回始终大于或等于 0int 值时,表明方法就是安全的。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuperTearDownInFinally.html b/original-plugin-raw/zh/inspectionDescriptions/SuperTearDownInFinally.html new file mode 100644 index 000000000..a560d236f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuperTearDownInFinally.html @@ -0,0 +1,46 @@ + + +报告未在 finally 块内执行的 JUnit 3 的 super.tearDown() 方法的调用。 +如果 tearDown() 方法中还有可能会在 super.tearDown() 调用之前抛出异常的其他方法调用,这可能会导致不一致和泄漏。 +

      示例:

      +
      
      +  public class AnotherTest extends CompanyTestCase {
      +    private Path path;
      +
      +    @Override
      +    protected void setUp() throws Exception {
      +      super.setUp();
      +      path = Files.createTempFile("abcde", ".tmp");
      +    }
      +
      +    @Override
      +    protected void tearDown() throws Exception {
      +      Files.delete(path);
      +      super.tearDown();
      +    }
      +  }
      +
      +

      改进后的代码:

      +
      
      +  public class AnotherTest extends CompanyTestCase {
      +    private Path path;
      +
      +    @Override
      +    protected void setUp() throws Exception {
      +      super.setUp();
      +      path = Files.createTempFile("abcde", ".tmp");
      +    }
      +
      +    @Override
      +    protected void tearDown() throws Exception {
      +      try {
      +        Files.delete(path);
      +      } finally {
      +        super.tearDown();
      +      }
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuppressionAnnotation.html b/original-plugin-raw/zh/inspectionDescriptions/SuppressionAnnotation.html new file mode 100644 index 000000000..fab6cdc73 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuppressionAnnotation.html @@ -0,0 +1,14 @@ + + +报告禁止检查的注释或注解。 +

      当有意保留禁止以供进一步检查时,此检查可能有用。

      +

      示例:

      +
      
      +    @SuppressWarnings("unused")
      +    static Stream<String> stringProvider() {
      +        return Stream.of("foo", "bar");
      +    }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspendFunctionOnCoroutineScope.html b/original-plugin-raw/zh/inspectionDescriptions/SuspendFunctionOnCoroutineScope.html new file mode 100644 index 000000000..dc1e82f4f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspendFunctionOnCoroutineScope.html @@ -0,0 +1,9 @@ + + +报告带有 CoroutineScope 接收器的 suspend 函数内 CoroutineScope 扩展或成员的调用和访问。 +

      当函数为 suspend 且具有 CoroutineScope 接收器时,它通过 kotlin.coroutines.coroutineContextCoroutineScope.coroutineContext 访问 CoroutineContext 的权限不明确,而且这两个上下文通常不同。

      +

      +为了改善这种状况,可以将可疑的调用包装在 coroutineScope { ... } 中,或者去除 CoroutineScope 函数接收器。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousArrayCast.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousArrayCast.html new file mode 100644 index 000000000..d195a7f68 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousArrayCast.html @@ -0,0 +1,12 @@ + + +报告可疑的数组转换。 +当数组转换为更具体的数组类型时,数组转换被视为可疑。 虽然此类转换在编译时是合法的,但在运行时可能会因 ClassCastException 而失败。 +

      示例:

      +
      
      +  Number[] numbers = new Number[]{1L, 2L, 4L};
      +  Long[] longs = (Long[])numbers;
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousArrayMethodCall.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousArrayMethodCall.html new file mode 100644 index 000000000..d6701bdc0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousArrayMethodCall.html @@ -0,0 +1,14 @@ + + +报告对 Arrays.fill() 等实参类型不匹配的非泛型数组操作方法的调用。 +此类调用不会执行任何有用的工作,很可能是错误的。 +

      示例:

      +
      
      +  int foo(String[] strings) {
      +    return Arrays.binarySearch(strings, 1);
      +  }
      +
      + +

      2017.2 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousAsDynamic.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousAsDynamic.html new file mode 100644 index 000000000..45d9bfe9f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousAsDynamic.html @@ -0,0 +1,15 @@ + + +报告动态类型接收器上的 asDynamic 函数用法。 +

      asDynamic 函数对动态类型的表达式无影响。

      +

      动态类型接收器上的 asDynamic 函数会导致运行时问题,因为 asDynamic 将在 JavaScript 环境中执行,而且此类函数在运行时可能并不显示。 + 预期方式是在常用 Kotlin 类型上使用此函数。

      +

      移除 "asDynamic" 调用快速修复可用于自动修正代码。

      +

      示例:

      +
      
      +  fun wrongUsage(d: Dynamic) {
      +     d.asDynamic().foo() // <== 冗余,快速修复会将调用表达式简化为 "d.foo()"
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousCallableReferenceInLambda.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousCallableReferenceInLambda.html new file mode 100644 index 000000000..c91d06890 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousCallableReferenceInLambda.html @@ -0,0 +1,12 @@ + + +报告具有一个可调用引用的 lambda 表达式。 +

      将 lambda 替换为可调用引用而不将大括号更改为圆括号是常见错误。

      +

      示例:

      +
        listOf(1,2,3).map { it::toString }
      +
      +

      在应用快速修复后:

      +
        listOf(1,2,3).map(Int::toString)
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousCollectionReassignment.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousCollectionReassignment.html new file mode 100644 index 000000000..00bd766b5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousCollectionReassignment.html @@ -0,0 +1,21 @@ + + +报告只读 Collection 上的增强型赋值 (+=) 表达式。 +

      只读 Collection 上的增强型赋值 (+=) 表达式不会修改目标集合,它会在后台创建一个新集合,这可能有误导性并产生性能问题。

      +

      将类型更改为可变快速修复可用于自动修正代码。

      +

      示例:

      +
      
      +  fun test() {
      +      var list = listOf(0)
      +      list += 42 // 创建新列表,变量 'list' 仍仅包含 '0'
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun test() {
      +      val list = mutableListOf(0)
      +      list += 42
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousDateFormat.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousDateFormat.html new file mode 100644 index 000000000..434019551 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousDateFormat.html @@ -0,0 +1,21 @@ + + +报告可能错误使用的日期格式模式。 +

      报告的模式如下:

      +
        +
      • 大写的“Y”,除非“w”出现在附近。 它代表“周年”,几乎总是与正常的“年份”(小写的 "y" 模式)相同,但可能指向 12 月结束后的下一年。
      • +
      • 靠近 "H"、"K"、"h" 或 "k"(小时)的大写 "M"(月份)。 可能本意是使用小写的 "m"(分钟)。
      • +
      • 靠近 "y"(年份)或 "d"(一月中的某天)的小写 "m"(分钟)。 可能本意是使用大写的 "M"(分钟)。
      • +
      • 靠近 "M" 或 "L"(月份)的大写的 "D"(一年中的某天)。 可能本意是使用小写的 "d"(一月中的某天)。
      • +
      • 靠近 "m"(分钟)的大写的 "S"(毫秒)。 可能本意是使用小写的 "s"(秒)。
      • +
      +

      + 示例:
      + new SimpleDateFormat("YYYY-MM-dd"):可能本意是使用 "yyyy-MM-dd"
      + new SimpleDateFormat("yyyy-MM-DD"):可能本意是使用 "yyyy-MM-dd"
      + new SimpleDateFormat("HH:MM"):可能本意是使用 "HH:mm"。 +

      + +

      2020.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousEqualsCombination.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousEqualsCombination.html new file mode 100644 index 000000000..353b6a6cb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousEqualsCombination.html @@ -0,0 +1,11 @@ + + +报告在单个表达式内的同一变量上使用的 ===== 比较。 +

      由于相似性,===== 可能会在无通知的情况下混用,需要仔细检查使用的是 == 而非 ===

      +

      示例:

      +
      
      +  if (type === FIELD || type == METHOD || type == ANNOTATION_METHOD || // 请注意,"==" 使用错误
      +      type === LAMBDA_EXPRESSION) return
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousGetterSetter.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousGetterSetter.html new file mode 100644 index 000000000..7b5eb1cc7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousGetterSetter.html @@ -0,0 +1,24 @@ + + +报告所访问字段的名称不是其预期名称的 getter 或 setter 方法。 +例如,当 getY() 返回 x 字段时。 这通常可能表明复制粘贴错误。 +

      示例:

      +
      class Point {
      +    private int x;
      +    private int y;
      +
      +    public void setX(int x) { // 警告:setter 'setX()' 分配字段 'y'
      +      this.y = x;
      +    }
      +
      +    public int getY() { // 警告:getter 'getY()' 返回字段 'x'
      +      return x;
      +    }
      +  }
      +
      + +

      + 使用下面的复选框可报告类中字段的名称与 getter 或 setter 的名称相匹配的情况。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousIndentAfterControlStatement.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousIndentAfterControlStatement.html new file mode 100644 index 000000000..7ee24d640 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousIndentAfterControlStatement.html @@ -0,0 +1,25 @@ + + +报告不带大括号控制语句后面的语句的可疑缩进。 +

      + 进行此类缩进时,语句看似在控制语句内部,其实它将在控制语句后无条件地执行。 +

      +

      示例:

      +
      
      +  class Bar {
      +      void foo(int i) {
      +          if (i == 0)
      +              System.out.println("foo");
      +              System.out.println("bar"); // 警告
      +          if (i == 1);
      +              System.out.println("great"); // 警告
      +          if (i == 42)
      +              System.out.println("answer");
      +                  System.out.println("question"); // 警告
      +      }
      +  }
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousIntegerDivAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousIntegerDivAssignment.html new file mode 100644 index 000000000..d56bdd3b8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousIntegerDivAssignment.html @@ -0,0 +1,30 @@ + + +报告其右侧是不应截断为整数的除法的赋值。 +

      虽然偶尔是有意为之,但此结构通常表明有错误。

      +

      示例:

      +
      
      +  int x = 18;
      +  x *= 3/2; // 不会因为整数除法的结果而改变 x
      +
      +

      +此代码应替换为: +

      
      +  int x = 18;
      +  x *= 3.0/2;
      +
      + +

      + 在检查选项中,可以禁用对可疑但可能正确的除法的警告,例如不能静态计算被除数时。 +

      
      +  void calc(int d) {
      +     int x = 18;
      +     x *= d/2;
      +  }
      +
      + +

      + 2019.2 最新变化 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousInvocationHandlerImplementation.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousInvocationHandlerImplementation.html new file mode 100644 index 000000000..f1554180d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousInvocationHandlerImplementation.html @@ -0,0 +1,24 @@ + + +报告不代理 hashCode()equals()toString() 等标准 Object 方法的 InvocationHandler 的实现。 +

      未能处理这些方法可能会在代理实例上调用它们时导致意外问题。

      +

      示例:

      +
      
      +  InvocationHandler myHandler = (proxy, method, params) -> {
      +    System.out.println("Hello World!");
      +    return null;
      +  };
      +  Runnable myProxy = (Runnable) Proxy.newProxyInstance(
      +    Thread.currentThread().getContextClassLoader(),
      +    new Class[] {Runnable.class}, myHandler
      +  );
      +
      +

      + 此代码段的宗旨是仅代理 Runnable.run() 方法。 + 但是,也会代理对 hashCode() 等任何 Object 方法的调用。 + 这可能导致 NullPointerException 等问题,例如在将 myProxy 添加到 HashSet 时。 +

      + +

      2020.2 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousListRemoveInLoop.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousListRemoveInLoop.html new file mode 100644 index 000000000..bcf1efe9a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousListRemoveInLoop.html @@ -0,0 +1,29 @@ + + +报告升序计数循环中的 list.remove(index) 调用。 +

      + 这很可疑,因为移除后列表变短,下一个元素被跳过。 简单的修正方法是在移除后减小索引变量,但更稳健的做法可能是通过迭代器或使用 removeIf() 方法(Java 8 及更高版本)移除。 + 如果您不希望 remove() 在循环中被多次调用,不妨在它后面添加 break。 +

      + +

      示例:

      +
        public static void main(String[] args) {
      +    process(new ArrayList<>(
      +      Arrays.asList("1", "2", "|", "3", "4")));
      +  }
      +
      +  static void process(List<String> list) {
      +    for (int i = 0; i < list.size(); i++) {
      +      if (list.get(i).equals("|")) {
      +        list.remove(i);
      +        continue;
      +      }
      +      System.out.println(list.get(i));
      +    }
      +  }
      +
      +

      代码看起来像是会打印 1 2 3 4,但实则在输出中将跳过 3

      + +

      2018.2 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousLiteralUnderscore.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousLiteralUnderscore.html new file mode 100644 index 000000000..a5446d877 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousLiteralUnderscore.html @@ -0,0 +1,11 @@ + + +报告使用下划线数字分隔符且组的位数不为 3 的小数文字。 +此类文字可能包含拼写错误。 +

      此检查不会对包含两个连续下划线的文字发出警告。 +还可以忽略 doublefloat 文字的分数部分的下划线。 +

      示例int oneMillion = 1_000_0000;

      + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousLocalesLanguages.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousLocalesLanguages.html new file mode 100644 index 000000000..01be16f99 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousLocalesLanguages.html @@ -0,0 +1,5 @@ + + +报告语言代码不受 Java 支持的区域设置。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousMethodCalls.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousMethodCalls.html new file mode 100644 index 000000000..24378b011 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousMethodCalls.html @@ -0,0 +1,19 @@ + + +报告实际实参类型与集合的元素类型不一致的形参化集合的方法调用。 +

      示例:

      +
      
      +  List<Integer> list = getListOfElements();
      +  list.remove(""); //remove 被高亮显示
      +
      + +

      + 在检查设置中,可以禁用对可能正确的代码发出警告,如下所示: +

      +
      
      +  public boolean accept(Map<Integer, String> map, Object key) {
      +    return map.containsKey(key);
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousNameCombination.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousNameCombination.html new file mode 100644 index 000000000..0892d9266 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousNameCombination.html @@ -0,0 +1,21 @@ + + +报告目标变量或函数形参的名称与分配给它的值的名称不匹配的赋值和函数调用。 +

      示例 1:

      +
      
      +  int x = 0;
      +  int y = x; // x 用作 y 坐标
      +  
      +

      示例 2:

      +
      
      +  int x = 0, y = 0;
      +  // x 用作 y 坐标,y 用作 x 坐标
      +  Rectangle rc = new Rectangle(y, x, 20, 20);
      +
      + +

      配置检查:

      +

      使用名称组区域可以指定不应一起使用的名称:如果形参名称或赋值目标名称包含一个组中的字词,而赋值或传递的变量名称包含另一个组中的字词,就会报告错误。 +

      使用忽略方法区域可以指定不应检查但名称可能存疑的方法。 +例如,Integer.compare() 形参被命名为 xy,但与坐标无关。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousPackagePrivateAccess.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousPackagePrivateAccess.html new file mode 100644 index 000000000..17134e844 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousPackagePrivateAccess.html @@ -0,0 +1,8 @@ + + +报告在同一软件包但在不同模块中声明的 package-private 成员的用法。 +

      如果声明类由不同的加载器加载,则访问 package-private 成员的代码将在运行时失败,并显示 IllegalAccessError

      +

      如果某个方法重写了由不同加载器加载的类中的 package-private 方法,那么在实现类的实例上调用 super 方法时,它将不会被调用。

      +

      如果某个方法从由不同加载器加载的类中实现了 abstract package-private 方法,则在实现类的实例上调用 super 方法将失败并显示 AbstractMethodError

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousSystemArraycopy.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousSystemArraycopy.html new file mode 100644 index 000000000..c28840a7a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousSystemArraycopy.html @@ -0,0 +1,23 @@ + + +报告对 System.arraycopy() 的可疑调用。 +

      此类调用在以下情况下可疑:

      +
        +
      • 源或目标非数组类型 +
      • 源和目标的类型不同 +
      • 复制的块长度大于 src.length - srcPos +
      • 复制的块长度大于 dest.length - destPos +
      • 当源和目标为同一个数组时,范围始终相交 +
      +

      示例:

      +
      
      +  void foo() {
      +    int[] src = new int[] { 1, 2, 3, 4 };
      +    System.arraycopy(src, 0, src, 1, 2); // 警告:复制到具有相交范围的同一数组
      +  }
      +
      + +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousTernaryOperatorInVarargsCall.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousTernaryOperatorInVarargsCall.html new file mode 100644 index 000000000..36d3bc05a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousTernaryOperatorInVarargsCall.html @@ -0,0 +1,35 @@ + + +报告使用具有混合数组分支和非数组分支的三元运算符的 vararg 方法调用。 +

      +编译时,两个分支都被包装在数组中。 结果,数组分支变成了二维数组,这可能说明有问题。 +

      +

      +该快速修复会将非数组分支包装在数组中以防止编译器执行转换。 +

      + +

      示例:

      +
      
      +    static void bar(boolean flag) {
      +        Object[] a = {1, 2};
      +        Object b = "hello";
      +        foo(flag ? a : b);
      +    }
      +    static void foo(Object... obj) {
      +    }
      +
      + +

      应用该快速修复后:

      +
      
      +    static void bar(boolean flag) {
      +        Object[] a = {1, 2};
      +        Object b = "hello";
      +        foo(flag ? a : new Object[]{b});
      +    }
      +    static void foo(Object... obj) {
      +    }
      +
      + +

      2020.3 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousToArrayCall.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousToArrayCall.html new file mode 100644 index 000000000..96e9d5004 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousToArrayCall.html @@ -0,0 +1,26 @@ + + +报告对 Collection.toArray() 的可疑调用。 +

      以下类型的调用视为可疑:

      +
        +
      • + 数组实参的类型与结果被转换成的数组类型不相同。 +
      • +
      • + 数组实参的类型与集合声明中的类型形参不匹配。 +
      • +
      +

      示例:

      +
      
      +void m1(List list) {
      +  Number[] ns = (Number[]) list.toArray(new String[0]);
      +}
      +
      +void m2(List<Number> list) {
      +  Number[] ns = list.toArray(new String[0]);
      +}
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousTypeOfGuard.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousTypeOfGuard.html new file mode 100644 index 000000000..a8ee6e8b0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousTypeOfGuard.html @@ -0,0 +1,16 @@ + + +报告 typeofinstanceof 不健全的类型防护检查。 +在以下两种情况下,typeof x 类型防护可能不健全: +
        +
      • typeof x 不对应于指定的值(例如,当 x 为 'string | boolean' 类型时,typeof x === 'number'
      • +
      • typeof x 始终对应于指定的值(例如,当 x 为 'string' 类型时,typeof x === 'string'
      • +
      +
      +在以下两种情况下,x instanceof A 类型防护可能不健全: +
        +
      • x 的类型与 A 不相关
      • +
      • x 的类型是 AA 的子类型
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SuspiciousVarProperty.html b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousVarProperty.html new file mode 100644 index 000000000..84f63e419 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SuspiciousVarProperty.html @@ -0,0 +1,15 @@ + + +报告具有默认 setter 和 getter 且未引用支持字段的 var 属性。 +

      +此类属性不影响调用其 setter;因此,将此类属性更改为 val 并删除初始值设定项将会更加清晰易懂。 +

      +

      更改为 val 并删除初始值设定项快速修复可用于自动修正代码。

      +

      示例:

      +
      
      +  // 此属性始终返回 '1',属性为 'var' 并不重要
      +  var foo: Int = 0
      +      get() = 1
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SwiftMissingLocalization.html b/original-plugin-raw/zh/inspectionDescriptions/SwiftMissingLocalization.html new file mode 100644 index 000000000..139645bc4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SwiftMissingLocalization.html @@ -0,0 +1,26 @@ + + +

      + 报告未添加到字符串文件的本地化字符串的用法。 +

      +

      + 默认情况下,如果任何可用字符串文件中未定义本地化键,则触发该检查。 使用下面的复选框,只有在所有语言中都未定义此键时才发出警告。 +

      +

      + 建议将缺少的键值对添加到字符串文件中。 +

      + +

      + 示例: +

      +
      
      +  let presentation = "Do It"
      +
      +

      + 在应用快速修复后: +

      +
      
      +  let presentation = NSLocalizedString("Do It", comment: ""))
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SwiftRedundantAttribute.html b/original-plugin-raw/zh/inspectionDescriptions/SwiftRedundantAttribute.html new file mode 100644 index 000000000..7af750de9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SwiftRedundantAttribute.html @@ -0,0 +1,26 @@ + + +

      + 报告 @objc 特性在已具有推断的 @objc 特性的声明上的用法。 +

      +

      + 建议移除冗余的 @objc@nonobjc。 +

      + +

      + 示例: +

      +
      
      +  @objc
      +  class C : NSObject {
      +  }
      +
      +

      + 在应用快速修复后: +

      +
      
      +  class C : NSObject {
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SwiftRedundantReturn.html b/original-plugin-raw/zh/inspectionDescriptions/SwiftRedundantReturn.html new file mode 100644 index 000000000..8aebb6ab9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SwiftRedundantReturn.html @@ -0,0 +1,23 @@ + + +

      + 报告可以忽略 return 的用法,即在所有单表达式闭包、getter 和函数中的用法。 +

      +

      + 建议移除冗余的 return。 +

      + +

      + 示例: +

      +
      
      +  func thinkDeeply() { return 42 }
      +
      +

      + 在应用快速修复后: +

      +
      
      +  func thinkDeeply() { 42 }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SwiftSourceKit.html b/original-plugin-raw/zh/inspectionDescriptions/SwiftSourceKit.html new file mode 100644 index 000000000..54dede7df --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SwiftSourceKit.html @@ -0,0 +1,8 @@ + + +

      + 收集 Swift SourceKit 服务报告的问题。 它由编辑器高亮显示使用并在批处理模式下使用。 将其关闭以加速批处理分析。 +

      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SwiftUndocumentedParameter.html b/original-plugin-raw/zh/inspectionDescriptions/SwiftUndocumentedParameter.html new file mode 100644 index 000000000..dba05452d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SwiftUndocumentedParameter.html @@ -0,0 +1,25 @@ + + +

      + 报告文档注释中的参数与函数的实际参数不匹配的情况。 +

      + +

      + 示例: +

      +
      
      +  /// - Parameters:
      +  ///   - a:
      +  func foo(a: Int, b: Int) {}
      +
      +

      + 在应用快速修复后: +

      +
      
      +  /// - Parameters:
      +  ///   - a:
      +  ///   - b:
      +  func foo(a: Int, b: Int) {}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SwiftUnnecessaryArgumentList.html b/original-plugin-raw/zh/inspectionDescriptions/SwiftUnnecessaryArgumentList.html new file mode 100644 index 000000000..af0a59656 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SwiftUnnecessaryArgumentList.html @@ -0,0 +1,23 @@ + + +

      + 报告使用尾随闭包的函数调用后面的空圆括号。 +

      +

      + 建议移除空圆括号。 +

      + +

      + 示例: +

      +
      
      +  any() { $0 > 0 }
      +
      +

      + 在应用快速修复后: +

      +
      
      +  any { $0 > 0 }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SwiftUnnecessaryParentheses.html b/original-plugin-raw/zh/inspectionDescriptions/SwiftUnnecessaryParentheses.html new file mode 100644 index 000000000..c57ba0a7a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SwiftUnnecessaryParentheses.html @@ -0,0 +1,23 @@ + + +

      + 报告可以忽略圆括号的用法。 +

      +

      + 建议移除冗余的圆括号。 +

      + +

      + 示例: +

      +
      
      +  (a && b) || c
      +
      +

      + 在应用快速修复后: +

      +
      
      +  a && b || c
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SwiftUnnecessarySelfQualifier.html b/original-plugin-raw/zh/inspectionDescriptions/SwiftUnnecessarySelfQualifier.html new file mode 100644 index 000000000..406b7f754 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SwiftUnnecessarySelfQualifier.html @@ -0,0 +1,39 @@ + + +

      + 报告 self 作为限定符但转义闭包并无此要求的用法。 +

      +

      + 建议移除冗余的 self。 +

      + +

      + 示例: +

      +
      
      +  struct URL {
      +      func loadAsync() {
      +          print(self.path)
      +
      +          DispatchQueue.global().async {
      +              self.loadSync()
      +          }
      +      }
      +  }
      +
      +

      + 在应用快速修复后: +

      +
      
      +  struct URL {
      +      func loadAsync() {
      +          print(path)
      +
      +          DispatchQueue.global().async {
      +              loadSync()
      +          }
      +      }
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SwiftUnnecessaryTupleWrap.html b/original-plugin-raw/zh/inspectionDescriptions/SwiftUnnecessaryTupleWrap.html new file mode 100644 index 000000000..8881ec1fd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SwiftUnnecessaryTupleWrap.html @@ -0,0 +1,23 @@ + + +

      + 报告可以忽略元组类型的用法。 +

      +

      + 建议将单元素元组替换为类型。 +

      + +

      + 示例: +

      +
      
      +  func foo() -> (Int) {}
      +
      +

      + 在应用快速修复后: +

      +
      
      +  func foo() -> Int {}
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SwitchLabeledRuleCanBeCodeBlock.html b/original-plugin-raw/zh/inspectionDescriptions/SwitchLabeledRuleCanBeCodeBlock.html new file mode 100644 index 000000000..dc49e25b9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SwitchLabeledRuleCanBeCodeBlock.html @@ -0,0 +1,25 @@ + + +报告 switch 表达式或带有表达式体的增强 switch 语句的规则。 +这些可以转换为代码块。 +

      示例:

      +
      
      +  String message = switch (errorCode) {
      +    case 404 -> "Not found!";
      +    ...
      +  };
      +
      +

      在应用快速修复后:

      +
      
      +  String message = switch (errorCode) {
      +    case 404 -> {
      +                yield "Not found!";
      +            }
      +    ...
      +  };
      +
      + +

      仅当项目或模块的语言级别为 14 或更高时,此检查才会报告。

      +

      2019.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SwitchStatement.html b/original-plugin-raw/zh/inspectionDescriptions/SwitchStatement.html new file mode 100644 index 000000000..e1c97a57c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SwitchStatement.html @@ -0,0 +1,14 @@ + + +报告 switch 语句。 +

      switch 语句通常(但并非总是)表明面向对象的设计欠佳。

      +

      示例:

      +
      
      +  switch (i) {
      +    // 代码
      +  }
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SwitchStatementDensity.html b/original-plugin-raw/zh/inspectionDescriptions/SwitchStatementDensity.html new file mode 100644 index 000000000..cf02aa210 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SwitchStatementDensity.html @@ -0,0 +1,22 @@ + + +报告 switch 标签与可执行语句的比率太低的 switch 语句或表达式。 +

      此类 switch 语句可能令人困惑,或许应对其进行重构。

      + +

      示例:

      +
      
      +    switch (i) { // 1 个 case,5 个可执行语句 -> 20% 的密度
      +        case 1:
      +            System.out.println("1");
      +            System.out.println("2");
      +            System.out.println("3");
      +            System.out.println("4");
      +            System.out.println("5");
      +            break;
      +    }
      +
      + +

      +

      使用分支的最小密度字段可以指定 switch 标签与可执行语句的允许比率。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SwitchStatementWithConfusingDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/SwitchStatementWithConfusingDeclaration.html new file mode 100644 index 000000000..32a473122 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SwitchStatementWithConfusingDeclaration.html @@ -0,0 +1,20 @@ + + +报告在 switch 语句的一个分支中声明并在另一个分支中使用的局部变量。 此类声明可能格外令人困惑。 +

      示例:

      +
      
      +    switch(i) {
      +      case 2:
      +          int x = 0;
      +          break;
      +      case 3:
      +          x = 3;
      +          System.out.println(x);
      +          break;
      +    }
      +
      + + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SwitchStatementWithTooFewBranches.html b/original-plugin-raw/zh/inspectionDescriptions/SwitchStatementWithTooFewBranches.html new file mode 100644 index 000000000..4219a2cf7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SwitchStatementWithTooFewBranches.html @@ -0,0 +1,23 @@ + + +报告带有太少 case 标签的 switch 语句和表达式,并建议将它们重写为 ifelse if 语句。 +

      示例 (minimum branches == 3):

      +
      
      +  switch (expression) {
      +    case "foo" -> foo();
      +    case "bar" -> bar();
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  if ("foo".equals(expression)) {
      +    foo();
      +  } else if ("bar".equals(expression)) {
      +    bar();
      +  }
      +
      + +

      配置检查:

      +

      使用最小分支数 字段指定 case 标签的最小预期数量。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SwitchStatementWithTooManyBranches.html b/original-plugin-raw/zh/inspectionDescriptions/SwitchStatementWithTooManyBranches.html new file mode 100644 index 000000000..70c24fd33 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SwitchStatementWithTooManyBranches.html @@ -0,0 +1,27 @@ + + +报告 case 标签太多的 switch 语句或表达式。 +

      如此之长的 switch 语句可能令人困惑,或许应进行重构。 + 有时这并非问题(例如一个域非常复杂,并且有包含大量常量的枚举)。

      +

      示例:

      +
      
      +    switch (x) {
      +        case 1 -> {}
      +        case 2 -> {}
      +        case 3 -> {}
      +        case 4 -> {}
      +        case 5 -> {}
      +        case 6 -> {}
      +        case 7 -> {}
      +        case 8 -> {}
      +        case 9 -> {}
      +        case 10 -> {}
      +        case 11,12,13 -> {}
      +        default -> {}
      +    }
      +
      + +

      使用最大分支数字段可以指定 case 标签的预期最大数量。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SwitchStatementsWithoutDefault.html b/original-plugin-raw/zh/inspectionDescriptions/SwitchStatementsWithoutDefault.html new file mode 100644 index 000000000..3dacf8835 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SwitchStatementsWithoutDefault.html @@ -0,0 +1,12 @@ + + +报告不包含 default 标签的 switch 语句。 +

      添加 default 标签可确保涵盖所有可能的场景,从而更容易对程序的当前状态作出假设。

      +

      + + 请注意,默认情况下,如果用于枚举或 sealed 类的情况都被覆盖,则检查不会报告 switch 语句。 + 如果您想改变这种行为,请使用忽略详尽的 switch 语句选项。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SynchronizationOnGetClass.html b/original-plugin-raw/zh/inspectionDescriptions/SynchronizationOnGetClass.html new file mode 100644 index 000000000..7f6d75c34 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SynchronizationOnGetClass.html @@ -0,0 +1,12 @@ + + +报告对 getClass() 的调用上的同步。 +

      + 如果包含同步的类被子类化,子类将在不同的类对象上同步。 对 getClass() 的调用通常可以替换为类的文字表达式,例如 String.class。 一种更好的解决办法是在 private static final 锁对象上同步,从而完全控制对该对象的访问。 +

      +

      示例:

      +
       synchronized(getClass()) {}
      +
      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SynchronizationOnLocalVariableOrMethodParameter.html b/original-plugin-raw/zh/inspectionDescriptions/SynchronizationOnLocalVariableOrMethodParameter.html new file mode 100644 index 000000000..5e651dd74 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SynchronizationOnLocalVariableOrMethodParameter.html @@ -0,0 +1,15 @@ + + +报告局部变量或形参的同步。 +

      + 使用此类同步时,很难保证正确的运算。 + 可以改进此类代码,例如,通过使用 synchronized 包装器类控制访问或通过在字段上进行同步。

      +

      示例:

      +
      
      +  void bar() {
      +    final Object lock = new Object();
      +    synchronized (lock) { }
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SynchronizationOnStaticField.html b/original-plugin-raw/zh/inspectionDescriptions/SynchronizationOnStaticField.html new file mode 100644 index 000000000..f7d764e07 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SynchronizationOnStaticField.html @@ -0,0 +1,5 @@ + + +报告 static 字段的同步。 虽然并非完全不正确,但 static 字段上的同步可能会因争用而导致性能不佳。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/SynchronizeOnLock.html b/original-plugin-raw/zh/inspectionDescriptions/SynchronizeOnLock.html new file mode 100644 index 000000000..db4e16eb5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SynchronizeOnLock.html @@ -0,0 +1,15 @@ + + +报告锁定 java.util.concurrent.locks.Lock 实例的 synchronized 块。 +此类同步几乎肯定是无意为之,应当改用适当版本的 .lock().unlock()。 +

      示例:

      +
      
      +  final ReentrantLock lock = new ReentrantLock();
      +
      +  public void foo() {
      +    synchronized (lock) {}
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SynchronizeOnNonFinalField.html b/original-plugin-raw/zh/inspectionDescriptions/SynchronizeOnNonFinalField.html new file mode 100644 index 000000000..a34de37c8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SynchronizeOnNonFinalField.html @@ -0,0 +1,15 @@ + + +报告由非 final 字段引用组成的 synchronized 语句锁定表达式。 +此类语句不太可能包含有用的语义,因为不同的线程即便在对同一对象上操作时也可能获取不同的锁定。 + +

      示例:

      +
      
      +  private Object o;
      +  public void foo() {
      +    synchronized (o) // 在非 final 字段上同步
      +    { }
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SynchronizeOnThis.html b/original-plugin-raw/zh/inspectionDescriptions/SynchronizeOnThis.html new file mode 100644 index 000000000..3430f0d2e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SynchronizeOnThis.html @@ -0,0 +1,28 @@ + + +报告 thisclass 表达式的同步。 +报告的结构包括 synchronized 块以及对 wait()notify()notifyAll() 的调用。 +

      同步 thisclass 表达式可能并非好主意,原因有几点:

      +
        +
      1. + 它使同步成为类的外部接口的一部分,导致将来很难更改为其他锁定机制, +
      2. +
      3. + 难以跟踪究竟是谁锁定了给定对象, +
      4. +
      5. + 使得故意为之或在子类化时很容易意外发生的拒绝服务攻击成为可能。 +
      6. +
      +

      替代做法是考虑在 private final 锁定对象上同步,可以完全控制对该对象的访问。

      +

      示例:

      +
      
      +  public void print() {
      +    synchronized(this) { // 警告:对 'this' 的锁定操作可能会产生不可预见的副作用
      +      System.out.println("synchronized");
      +    }
      +  }
      +  
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SynchronizeOnValueBasedClass.html b/original-plugin-raw/zh/inspectionDescriptions/SynchronizeOnValueBasedClass.html new file mode 100644 index 000000000..fb89a8da7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SynchronizeOnValueBasedClass.html @@ -0,0 +1,14 @@ + + +报告尝试在基于值的类的实例上进行同步的情况,从 Java 16 开始,这些实例会生成编译时警告并引发运行时异常。 +

      + 例如,java.lang.Doublejdk.internal.ValueBased 注解,因此以下代码会产生编译时警告: +

      +
      
      +Double d = 20.0;
      +synchronized (d) { ... } // javac 警告
      +
      + +

      2021.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SynchronizedMethod.html b/original-plugin-raw/zh/inspectionDescriptions/SynchronizedMethod.html new file mode 100644 index 000000000..a0f39436d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SynchronizedMethod.html @@ -0,0 +1,50 @@ + + +报告方法上的 synchronized 修饰符。 +

      + 对方法使用 synchronized 修饰符可能并非好主意,原因有几点: +

      +
        +
      1. + 在锁定的情况下应尽可能少地执行工作。 因此,通常最好使用 synchronized 块,只保留共享状态的代码。 +
      2. +
      3. + 同步成为方法接口的一部分。 这导致难以转换到不同的锁定机制。 +
      4. +
      5. + 跟踪锁定特定对象的内容变得更加困难。 +
      6. +
      7. + 在继承方法的类时,无论是有意还是无意进行的 DoS(拒绝服务)攻击都变得可行。 +
      8. +
      +

      + 替代做法是考虑在 private final 锁定对象上同步,可以完全控制对该对象的访问。 +

      +

      可以通过快速修复使用 synchronized(this) 包装方法体。

      +

      示例:

      +
      
      +  class Main {
      +    public synchronized void fooBar() {
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Main {
      +    public void fooBar() {
      +      synchronized (this) {
      +      }
      +    }
      +  }
      +
      + + +

      您可以为此检查配置以下选项:

      +
        +
      1. 包括原生方法 - 将原生方法纳入检查范围。
      2. +
      3. 忽略重写 synchronized 方法的方法 - 不报告重写 synchronized 方法的方法。
      4. +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SynchronizedOnLiteralObject.html b/original-plugin-raw/zh/inspectionDescriptions/SynchronizedOnLiteralObject.html new file mode 100644 index 000000000..89d955986 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SynchronizedOnLiteralObject.html @@ -0,0 +1,23 @@ + + +报告在用文字初始化的对象上锁定的 synchronized 块。 +

      + 字符串文字是暂存的,CharacterBooleanNumber 文字可以从缓存中分配。 + 正因为如此,可能系统的其他某些部分(使用通过相同文字初始化的对象)实际上会包含对完全相同的对象的引用。 如果锁定对象被认为是 private 对象,这可能会产生意外的死锁情况。 +

      +

      示例:

      +
      
      +  class Main {
      +    final String mutex = "Mutex";
      +    void method() {
      +      synchronized (mutex) {
      +      }
      +    }
      +  }
      +
      + +

      + 使用警告所有可能的文字选项可以报告 StringCharacterBooleanNumber 对象的任何同步。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SyntaxError.html b/original-plugin-raw/zh/inspectionDescriptions/SyntaxError.html new file mode 100644 index 000000000..52f6f4616 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SyntaxError.html @@ -0,0 +1,5 @@ + + +报告批处理代码检查运行结果中发现的语法错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SystemExit.html b/original-plugin-raw/zh/inspectionDescriptions/SystemExit.html new file mode 100644 index 000000000..51eb2a022 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SystemExit.html @@ -0,0 +1,13 @@ + + +报告对 System.exit()Runtime.exit()Runtime.halt() 的调用。 +

      + 调用 System.exit()Runtime.exit() 会调用关闭挂钩并终止当前运行的 Java 虚拟机。 调用 Runtime.halt() 会强行终止 JVM,而不会导致启动关闭挂钩。 + 这些方法中的每一种都应极其谨慎地使用。 对这些方法的调用使得调用代码对于大多数应用程序服务器来说不可移植。 +

      + +

      + 使用该选项可以忽略主方法中的调用。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SystemGC.html b/original-plugin-raw/zh/inspectionDescriptions/SystemGC.html new file mode 100644 index 000000000..0664cf3e9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SystemGC.html @@ -0,0 +1,7 @@ + + +报告 System.gc()Runtime.gc() 调用。 +虽然在测试中偶尔有用,但在生产代码中几乎从不推荐通过 System.gc() 显式触发垃圾回收,这可能会导致严重的性能问题。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SystemGetenv.html b/original-plugin-raw/zh/inspectionDescriptions/SystemGetenv.html new file mode 100644 index 000000000..40c73d5b0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SystemGetenv.html @@ -0,0 +1,7 @@ + + +报告对 System.getenv() 的调用。 +对 System.getenv() 的调用本质上不可移植。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SystemOutErr.html b/original-plugin-raw/zh/inspectionDescriptions/SystemOutErr.html new file mode 100644 index 000000000..d94dcaded --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SystemOutErr.html @@ -0,0 +1,7 @@ + + +报告 System.outSystem.err 的用法。 +

      此类语句通常用于临时调试,应当从生产代码中移除,或者替换为更稳健的日志记录工具。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SystemProperties.html b/original-plugin-raw/zh/inspectionDescriptions/SystemProperties.html new file mode 100644 index 000000000..f2b6ec7fd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SystemProperties.html @@ -0,0 +1,19 @@ + + +报告使用以下其中一种方法访问系统属性的代码: +
        +
      • + System.getProperties()System.setProperty()System.setProperties()System.clearProperties() +
      • +
      • + Integer.getInteger() +
      • +
      • + Boolean.getBoolean() +
      • +
      +

      +虽然访问系统属性本身并不是安全风险,但它经常出现在恶意代码中。 +在任何安全审核中都应该仔细检查访问系统属性的代码。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SystemRunFinalizersOnExit.html b/original-plugin-raw/zh/inspectionDescriptions/SystemRunFinalizersOnExit.html new file mode 100644 index 000000000..5a1cb74d3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SystemRunFinalizersOnExit.html @@ -0,0 +1,11 @@ + + +报告对 System.runFinalizersOnExit() 的调用。 +

      + 此调用是 Java 语言中最危险的调用之一。 它本质上为非线程安全,可能导致数据损坏、死锁,并可能影响远离调用点的程序部分。 + 在 JDK 11 中已被弃用并移除,强烈建议不要使用。 +

      +

      仅当项目或模块的语言级别低于 11 时,此检查才会报告。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/SystemSetSecurityManager.html b/original-plugin-raw/zh/inspectionDescriptions/SystemSetSecurityManager.html new file mode 100644 index 000000000..da065afeb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/SystemSetSecurityManager.html @@ -0,0 +1,6 @@ + + +报告对 System.setSecurityManager() 的调用。 +

      虽然通常是良性的,但任何对 System.setSecurityManager() 的调用都应在每个安全审核中仔细检查。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TFBlockNameValidness.html b/original-plugin-raw/zh/inspectionDescriptions/TFBlockNameValidness.html new file mode 100644 index 000000000..d3c15260d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TFBlockNameValidness.html @@ -0,0 +1,5 @@ + + +

      根据架构报告无效的块标签或不正确的标签数量。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TFDuplicatedBlockProperty.html b/original-plugin-raw/zh/inspectionDescriptions/TFDuplicatedBlockProperty.html new file mode 100644 index 000000000..674191445 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TFDuplicatedBlockProperty.html @@ -0,0 +1,7 @@ + + +报告一个块内的重复属性

      + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TFDuplicatedOutput.html b/original-plugin-raw/zh/inspectionDescriptions/TFDuplicatedOutput.html new file mode 100644 index 000000000..33ad38fc2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TFDuplicatedOutput.html @@ -0,0 +1,7 @@ + + +

      报告重复的输出。

      + +

      输出名称在模块内必须独一无二。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TFDuplicatedProvider.html b/original-plugin-raw/zh/inspectionDescriptions/TFDuplicatedProvider.html new file mode 100644 index 000000000..fd09abd32 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TFDuplicatedProvider.html @@ -0,0 +1,8 @@ + + +

      报告重复的提供程序。

      + +

      如果需要多个配置,请设置替代配置的 alias 实参。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TFDuplicatedVariable.html b/original-plugin-raw/zh/inspectionDescriptions/TFDuplicatedVariable.html new file mode 100644 index 000000000..93fb907f6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TFDuplicatedVariable.html @@ -0,0 +1,7 @@ + + +

      报告重复的变量。

      + +

      变量名称在模块内必须独一无二。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TFIncorrectVariableType.html b/original-plugin-raw/zh/inspectionDescriptions/TFIncorrectVariableType.html new file mode 100644 index 000000000..74882f20d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TFIncorrectVariableType.html @@ -0,0 +1,8 @@ + + +报告不正确的变量类型。

      + + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TFMissingModule.html b/original-plugin-raw/zh/inspectionDescriptions/TFMissingModule.html new file mode 100644 index 000000000..797ac5f16 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TFMissingModule.html @@ -0,0 +1,8 @@ + + +报告未解析的模块并建议运行 terraform get 来更新模块。 +

      + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TFNoInterpolationsAllowed.html b/original-plugin-raw/zh/inspectionDescriptions/TFNoInterpolationsAllowed.html new file mode 100644 index 000000000..4a2489ba8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TFNoInterpolationsAllowed.html @@ -0,0 +1,16 @@ + + +报告非法插值。 +

      +不允许在以下情况使用插值: +

        +
      • 变量定义
      • +
      • 模块 source 属性
      • +
      • 在资源 depends_on 属性中
      • +
      +

      + + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TFVARSIncorrectElement.html b/original-plugin-raw/zh/inspectionDescriptions/TFVARSIncorrectElement.html new file mode 100644 index 000000000..04902400b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TFVARSIncorrectElement.html @@ -0,0 +1,15 @@ + + + 报告 vars 文件中的错误。 +

      + vars 文件格式有以下限制: +

        +
      • 请勿使用插值
      • +
      • 将属性键指定为字符串文字或标识符
      • +
      • 将属性值指定为数字、字符串、列表或对象
      • +
      +

      + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TaglibDomModelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/TaglibDomModelInspection.html new file mode 100644 index 000000000..3689d22f3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TaglibDomModelInspection.html @@ -0,0 +1,6 @@ + + +报告 JSP TLD 文件中的问题。 +

      TLD 文件应符合 JSP 标记库架构。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/TailRecursion.html b/original-plugin-raw/zh/inspectionDescriptions/TailRecursion.html new file mode 100644 index 000000000..7529b109a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TailRecursion.html @@ -0,0 +1,34 @@ + + +报告尾递归,即方法在返回前调用自身作为其最后一项操作。 +

      + 尾递归总是可以替换为循环,循环的速度快得多。 + 有些 JVM 执行尾调用优化,而其他一些 JVM 则不执行。 因此,尾递归解决方案在不同的虚拟机上可能有截然不同的性能特征。 +

      +

      示例:

      +
      
      +  int factorial(int val, int runningVal) {
      +    if (val == 1) {
      +      return runningVal;
      +    } else {
      +      return factorial(val - 1, runningVal * val);
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  int factorial(int val, int runningVal) {
      +    while (true) {
      +      if (val == 1) {
      +        return runningVal;
      +      } else {
      +        runningVal = runningVal * val;
      +        val = val - 1;
      +      }
      +    }
      +  }
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TailRecursionJS.html b/original-plugin-raw/zh/inspectionDescriptions/TailRecursionJS.html new file mode 100644 index 000000000..cfaa7f363 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TailRecursionJS.html @@ -0,0 +1,8 @@ + + +报告尾递归,即报告函数在返回之前 +调用自身作为最后操作的情况。 尾递归总是可以替换为循环,循环的速度快得多。 +一些 JavaScript 引擎执行这种优化,而另一些则不执行。 因此,尾递归解决方案在不同环境下 +可能具有截然不同的性能特点。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TaskProblemsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/TaskProblemsInspection.html new file mode 100644 index 000000000..d730ae5c2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TaskProblemsInspection.html @@ -0,0 +1,7 @@ + + +报告 File Watcher 中的输出筛选器检测到的错误。 +

      +File Watcher 跟踪文件中的更改,并在检测到更改时执行配置的命令。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TelReferencesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/TelReferencesInspection.html new file mode 100644 index 000000000..86c313dcb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TelReferencesInspection.html @@ -0,0 +1,5 @@ + + +报告无法正确解析的 Tapestry EL 引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TemplateArgumentsIssues.html b/original-plugin-raw/zh/inspectionDescriptions/TemplateArgumentsIssues.html new file mode 100644 index 000000000..71d2e4f59 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TemplateArgumentsIssues.html @@ -0,0 +1,5 @@ + + +报告具有不正确类型或值实参的类和函数模板专用化和实例化。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TestCaseInProductCode.html b/original-plugin-raw/zh/inspectionDescriptions/TestCaseInProductCode.html new file mode 100644 index 000000000..23401a0f7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TestCaseInProductCode.html @@ -0,0 +1,7 @@ + + +报告产品源树中的 JUnit 3 测试类。 +这很可能表明程序员出错,可能导致测试代码投入生产。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TestCaseWithConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/TestCaseWithConstructor.html new file mode 100644 index 000000000..404c694c6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TestCaseWithConstructor.html @@ -0,0 +1,20 @@ + + +报告 JUnit 测试用例及其构造函数中的初始化逻辑。 +如果构造函数失败,将不会调用 @After 注解方法或 tearDown() 方法。 +这可能导致测试环境部分初始化,因而对其他测试产生不利影响。 +相反,JUnit 测试用例初始化应在 setUp()@Before 注解方法中完成。 +

      不良示例:

      +
      
      +  public class ImportantTest {
      +    private File file;
      +    public ImportantTest() throws IOException {
      +      file = File.createTempFile("xyz", ".tmp");
      +    }
      +
      +    // ... 测试转到此处
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TestCaseWithNoTestMethods.html b/original-plugin-raw/zh/inspectionDescriptions/TestCaseWithNoTestMethods.html new file mode 100644 index 000000000..ee755d1cb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TestCaseWithNoTestMethods.html @@ -0,0 +1,18 @@ + + +报告没有任何测试方法的非 abstract 测试用例。 +

      此类测试用例通常表示未完成的代码,或者可能是应该移除的重构剩余部分。

      +

      示例:

      +
      
      +  public class CrucialTest {
      +    @Before
      +    public void setUp() {
      +      System.out.println("setting up");
      +    }
      +  }
      +
      + +

      使用忽略具有带测试方法的超类的测试用例选项可忽略具有带测试方法的超类的测试用例。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TestFailedLine.html b/original-plugin-raw/zh/inspectionDescriptions/TestFailedLine.html new file mode 100644 index 000000000..bac0acb23 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TestFailedLine.html @@ -0,0 +1,13 @@ + + +

      报告测试中失败的方法调用或断言。 它有助于更快地检测代码中失败的行,并立即开始调试。

      +

      示例:

      +
      
      +  @Test
      +  fun foo() {
      +    assertEquals(1, 0) // 高亮显示
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TestFunctionName.html b/original-plugin-raw/zh/inspectionDescriptions/TestFunctionName.html new file mode 100644 index 000000000..a789ab12f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TestFunctionName.html @@ -0,0 +1,5 @@ + + +报告未遵循建议的命名惯例的测试函数名称。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TestMethodInProductCode.html b/original-plugin-raw/zh/inspectionDescriptions/TestMethodInProductCode.html new file mode 100644 index 000000000..3fb715610 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TestMethodInProductCode.html @@ -0,0 +1,7 @@ + + +报告使用位于生产源树中的 JUnit 4 或 JUnit 5 @Test 注解进行注解的方法。 +这很可能表示有错误,并且可能导致测试代码被投入生产。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TestMethodIsPublicVoidNoArg.html b/original-plugin-raw/zh/inspectionDescriptions/TestMethodIsPublicVoidNoArg.html new file mode 100644 index 000000000..9caaae7f5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TestMethodIsPublicVoidNoArg.html @@ -0,0 +1,25 @@ + + +报告任何被声明为 static、未被声明为 public、不返回 void 或具有形参的 JUnit 测试方法。 +此类测试方法很容易无意间创建,但是 JUnit 测试运行程序不会执行这些方法。 +

      示例:

      +
      
      +  @Test
      +  void test() {
      +    assertEquals(1, 1);
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  @Test
      +  public void test() {
      +    assertEquals(1, 1);
      +  }
      +
      + + +

      使用检查选项可以指定注解。 + 不会报告任何使用其中一种注解进行注解的形参。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TestMethodWithoutAssertion.html b/original-plugin-raw/zh/inspectionDescriptions/TestMethodWithoutAssertion.html new file mode 100644 index 000000000..c60cf6014 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TestMethodWithoutAssertion.html @@ -0,0 +1,32 @@ + + +报告不包含任何断言的测试方法。 此类方法可能表示测试用例不完整或薄弱。 +

      示例:

      +
      
      +  public class ExtensiveTest {
      +
      +    @Test
      +    public void testAlive() {
      +      System.out.println("nothing");
      +    }
      +  }
      +
      + +

      + 配置检查: +

      +
        +
      • + 使用该表可以指定应作为断言的完全限定类名和方法名正则表达式的组合。 类名也匹配子类。 +
      • +
      • + 使用 'assert' 关键字被视为断言选项可以指定是否应将使用 assert 关键字的 Java assert 语句视为断言。 +
      • +
      • + 使用忽略声明异常的测试方法选项可以忽略声明异常的测试方法。 + 当您的测试会在失败时抛出异常并因此不需要任何断言时,这会很有用。 +
      • +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TestNGMethodNamingConvention.html b/original-plugin-raw/zh/inspectionDescriptions/TestNGMethodNamingConvention.html new file mode 100644 index 000000000..66c6e1c0d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TestNGMethodNamingConvention.html @@ -0,0 +1,11 @@ + + +报告名称太短、太长或不遵循指定正则表达式模式的 TestNG 测试方法。 +

      启用此检查后, 实例方法命名惯例检查会自动忽略 TestNG 测试方法。

      + +

      + 使用字段来指定TestNG 测试方法名称的最小长度、最大长度和预期的正则表达式。 + 指定 0 以便不检查名称的长度。 正则表达式以标准 java.util.regex 格式指定。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TestOnlyProblems.html b/original-plugin-raw/zh/inspectionDescriptions/TestOnlyProblems.html new file mode 100644 index 000000000..f6471b8a3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TestOnlyProblems.html @@ -0,0 +1,21 @@ + + +报告生产代码中使用的 @TestOnly@VisibleForTesting 注解的方法和类。 还报告将 @TestOnly @VisibleForTesting 应用于同一元素的用法。 + +

      如果引用了以下位置中的方法或类,则不报告这些问题:

      +
        +
      • Test Sources 文件夹下的代码 +
      • 测试类 (JUnit/TestNG) +
      • 另一个 @TestOnly 注解的方法 +
      +

      (生产代码中的)示例:

      +
      
      +  @TestOnly
      +  fun foo() { ... }
      +
      +  fun main () {
      +    foo()
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/TextBlockBackwardMigration.html b/original-plugin-raw/zh/inspectionDescriptions/TextBlockBackwardMigration.html new file mode 100644 index 000000000..17a81cc2f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TextBlockBackwardMigration.html @@ -0,0 +1,27 @@ + + +报告可以替换为常规字符串文字的文本块。 +

      在代码迁回 Java 15 以前的 Java 版本时,可能会出现此类文本块。

      +

      示例:

      +
      
      +  Object obj = engine.eval("""
      +                           function hello() {
      +                             print('"Hello, world"');
      +                           }
      +
      +                           hello();
      +                           """);
      +
      +

      在应用快速修复后:

      +
      
      +  Object obj = engine.eval("function hello() {\n" +
      +                           "  print('\"Hello, world\"');\n" +
      +                           "}\n" +
      +                           "\n" +
      +                           "hello();\n");
      +
      + +

      仅当配置的语言级别为 15 或更高时,此检查才会报告。

      +

      2019.3 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TextBlockMigration.html b/original-plugin-raw/zh/inspectionDescriptions/TextBlockMigration.html new file mode 100644 index 000000000..e6a427e64 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TextBlockMigration.html @@ -0,0 +1,34 @@ + + +报告 String 文字,并建议将其替换为文本块。 +

      要求:

      +
        +
      • \n 发生两次或多次。
      • +
      • 文本块未串联。
      • +
      +

      +使用应用于单字符串文字选项,可建议修正包含换行符的单一文字。 +

      +

      示例:

      +
      
      +  String html = "<html>\n" +
      +                "    <body>\n" +
      +                "        <p>Hello, world</p>\n" +
      +                "    </body>\n" +
      +                "</html>\n";
      +
      +

      在应用快速修复后:

      +
      
      +  String html = """
      +                <html>
      +                    <body>
      +                        <p>Hello, world</p>
      +                    </body>
      +                </html>
      +                """;
      +
      + +

      仅当项目或模块的语言级别为 15 或更高时,此检查才会报告。

      +

      2019.3 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TextLabelInSwitchStatement.html b/original-plugin-raw/zh/inspectionDescriptions/TextLabelInSwitchStatement.html new file mode 100644 index 000000000..ab9a0f646 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TextLabelInSwitchStatement.html @@ -0,0 +1,16 @@ + + +报告 switch 语句中的标签语句。 +虽然偶尔是有意为之,但此结构通常由拼写错误所致。 +

      示例:

      +
      
      +  switch (x) {
      +      case 1:
      +      case2:   // 警告:'switch' 语句中存在文本标签 'case2:'
      +      case 3:
      +          break;
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TextLabelInSwitchStatementJS.html b/original-plugin-raw/zh/inspectionDescriptions/TextLabelInSwitchStatementJS.html new file mode 100644 index 000000000..7c18814e1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TextLabelInSwitchStatementJS.html @@ -0,0 +1,16 @@ + + +报告 switch 语句内部的标签语句, +这通常是由于拼写错误所致。 +

      示例:

      +
      
      +    switch(x)
      +    {
      +        case 1:
      +        case2:   //拼写错误!
      +        case 3:
      +            break;
      +    }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThisEscapedInConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/ThisEscapedInConstructor.html new file mode 100644 index 000000000..fb13d7bf0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThisEscapedInConstructor.html @@ -0,0 +1,14 @@ + + +报告对象初始化期间可能的 this 转义。 当 this 用作构造函数或初始值设定项中的方法实参或赋值对象时,就会发生转义。 此类转义可能会导致难以捉摸的错误,因为现在该对象在不保证得到初始化的上下文中可用。 +

      示例:

      +
      
      +  class Foo {
      +    {
      +      System.out.println(this);
      +    }
      +  }
      +
      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThisExpressionReferencesGlobalObjectJS.html b/original-plugin-raw/zh/inspectionDescriptions/ThisExpressionReferencesGlobalObjectJS.html new file mode 100644 index 000000000..823b122d9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThisExpressionReferencesGlobalObjectJS.html @@ -0,0 +1,5 @@ + + +报告对象文字或构造函数体之外的 this 表达式。 此类 this 表达式引用顶级“全局”JavaScript 对象,但大多是无用的。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThreadDeathRethrown.html b/original-plugin-raw/zh/inspectionDescriptions/ThreadDeathRethrown.html new file mode 100644 index 000000000..3a78de9db --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThreadDeathRethrown.html @@ -0,0 +1,14 @@ + + +报告捕获 java.lang.ThreadDeath 并且不重新抛出异常的 try 语句。 +

      示例:

      +
      
      +  try {
      +    executeInParallel(request);
      +  } catch (ThreadDeath ex) { // warning: ThreadDeath 'ex' not rethrown
      +    return false;
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThreadDumpStack.html b/original-plugin-raw/zh/inspectionDescriptions/ThreadDumpStack.html new file mode 100644 index 000000000..0372a59cf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThreadDumpStack.html @@ -0,0 +1,7 @@ + + +报告 Thread.dumpStack() 的用法。 +

      此类语句通常用于临时调试,应当从生产代码中移除,或者替换为更稳健的日志记录工具。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThreadLocalNotStaticFinal.html b/original-plugin-raw/zh/inspectionDescriptions/ThreadLocalNotStaticFinal.html new file mode 100644 index 000000000..1b8d8b377 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThreadLocalNotStaticFinal.html @@ -0,0 +1,18 @@ + + +报告未被声明为 static finaljava.lang.ThreadLocal 类型的字段。 +

      + 在最常见的情况下,java.lang.ThreadLocal 实例会将状态与线程关联。 + 非 static、非 final java.lang.ThreadLocal 字段会将状态与实例线程组合关联。 + 这通常是不必要的,而且通常是可能导致内存泄漏和行为不正确的错误。 +

      +

      + 建议通过快速修复将该字段设为 static final。 +

      +

      示例:

      +
      
      +  private ThreadLocal tl = ThreadLocal.withInitial(() -> Boolean.TRUE);
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThreadPriority.html b/original-plugin-raw/zh/inspectionDescriptions/ThreadPriority.html new file mode 100644 index 000000000..fcaa3dfd0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThreadPriority.html @@ -0,0 +1,7 @@ + + +报告对 Thread.setPriority() 的调用。 +修改线程的优先级本质上是不可移植的操作,因为 Java 规范中没有保证如何在调度线程中使用优先级,甚至没有保证是否使用优先级。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThreadRun.html b/original-plugin-raw/zh/inspectionDescriptions/ThreadRun.html new file mode 100644 index 000000000..c0e5b17d0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThreadRun.html @@ -0,0 +1,10 @@ + + +

      报告对 java.lang.Thread 或其任何子类进行的 run() 调用。

      +

      + 虽然偶尔是有意为之,但这通常表明有错误,因为 run() 不会启动新线程。 + 要在单独的线程中执行代码,应使用 start()

      +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThreadStartInConstruction.html b/original-plugin-raw/zh/inspectionDescriptions/ThreadStartInConstruction.html new file mode 100644 index 000000000..219d559c7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThreadStartInConstruction.html @@ -0,0 +1,19 @@ + + +报告对象构造过程中在 java.lang.Thread 或其任何子类上对 start() 的调用。 +

      + 虽然此类结构偶尔有用,但由于继承问题,应避免使用。 + 在对象构造期间启动线程的类的子类在线程启动前不会完成自身的任何初始化逻辑。 +

      +

      如果启动线程的类被声明为 final,此检查不会报告。

      +

      示例:

      +
      
      +  class MyThread extends Thread {
      +    MyThread() {
      +      start();
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThreadStopSuspendResume.html b/original-plugin-raw/zh/inspectionDescriptions/ThreadStopSuspendResume.html new file mode 100644 index 000000000..f98dbdb3c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThreadStopSuspendResume.html @@ -0,0 +1,10 @@ + + +报告对 Thread.stop()Thread.suspend()Thread.resume() 的调用。 +

      + 这些调用本质上容易导致数据损坏和死锁,强烈建议不要使用。 + 最好使用合作取消代替 stop,使用中断代替直接调用 suspendresume。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThreadWithDefaultRunMethod.html b/original-plugin-raw/zh/inspectionDescriptions/ThreadWithDefaultRunMethod.html new file mode 100644 index 000000000..f09a43583 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThreadWithDefaultRunMethod.html @@ -0,0 +1,9 @@ + + +报告在不指定 Runnable 形参或重写 run() 方法的情况下实例化 Thread 的代码。 +

      + 此类线程没有任何用。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThreadYield.html b/original-plugin-raw/zh/inspectionDescriptions/ThreadYield.html new file mode 100644 index 000000000..cb6fccc0c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThreadYield.html @@ -0,0 +1,23 @@ + + +报告对 Thread.yield() 的调用。 +

      + yield() 的行为是不确定的并且依赖于平台,很少适合使用此方法。 + 它的使用应当与详细的分析和基准测试相结合,以确保真正达到预期效果。 +

      +

      示例:

      +
      
      +  public static void main(String[] args) {
      +    Runnable r = () -> {
      +      for (int i = 0; i < 10; i++) {
      +        System.out.println(i);
      +        Thread.yield();
      +      }
      +    };
      +    new Thread(r).start();
      +    new Thread(r).start();
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThreeNegationsPerFunctionJS.html b/original-plugin-raw/zh/inspectionDescriptions/ThreeNegationsPerFunctionJS.html new file mode 100644 index 000000000..5afca79ff --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThreeNegationsPerFunctionJS.html @@ -0,0 +1,6 @@ + + +报告具有三项或更多项否定运算(!!=)的函数。 +此类函数可能造成不必要的混淆。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThreeNegationsPerMethod.html b/original-plugin-raw/zh/inspectionDescriptions/ThreeNegationsPerMethod.html new file mode 100644 index 000000000..4f24c47e7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThreeNegationsPerMethod.html @@ -0,0 +1,29 @@ + + +报告有三个或更多否定的方法。 +此类方法可能令人困惑。 +

      示例:

      +
      
      +  void doSmth(int a, int b, boolean flag1, boolean flag2) {
      +    if (!flag && !flag2) {
      +      if (a != b) {
      +        doOther();
      +      }
      +    }
      +  }
      +
      +

      没有否定,该方法变得更容易理解:

      +
      
      +  void doSmth(int a, int b, boolean flag1, boolean flag2) {
      +    if (flag1 || flag2 || a == b) return;
      +    doOther();
      +  }
      +
      + +

      配置检查:

      +
        +
      • 使用忽略 'equals()' 方法中的否定选项可禁用 equals() 方法中的检查。
      • +
      • 使用忽略 'assert' 语句中的否定可禁用 assert 语句中的检查。
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThrowCaughtLocally.html b/original-plugin-raw/zh/inspectionDescriptions/ThrowCaughtLocally.html new file mode 100644 index 000000000..1d8ac1253 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThrowCaughtLocally.html @@ -0,0 +1,19 @@ + + +报告异常始终可以通过包含 try 语句捕获的 throw 语句。 +

      使用 throw 语句作为 "goto" 来更改局部控制流会令人困惑并导致性能不佳。 +

      示例:

      +
      
      +  try {
      +    if (!Files.isDirectory(PROJECTS)) {
      +        throw new IllegalStateException("Directory not found."); // 警告:'throw' 被所包含的 'try' 语句捕获
      +    }
      +    ...
      +  } catch (Exception e) {
      +      LOG.error("run failed");
      +  }
      +
      + +

      使用忽略重新抛出的异常选项可忽略重新抛出的异常。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThrowFromFinallyBlock.html b/original-plugin-raw/zh/inspectionDescriptions/ThrowFromFinallyBlock.html new file mode 100644 index 000000000..92f987eff --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThrowFromFinallyBlock.html @@ -0,0 +1,9 @@ + + +报告 finally 块内的 throw 语句。 +

      虽然偶尔是有意为之,但此类 throw 语句可能隐藏从 try-catch 抛出的异常,并因此导致调试变得极其复杂。

      + +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThrowFromFinallyBlockJS.html b/original-plugin-raw/zh/inspectionDescriptions/ThrowFromFinallyBlockJS.html new file mode 100644 index 000000000..781f3ec8d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThrowFromFinallyBlockJS.html @@ -0,0 +1,5 @@ + + +报告 finally 块中的 throw 语句。 此类 throw 语句可能会掩盖抛出的异常,并导致调试复杂化。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThrowableNotThrown.html b/original-plugin-raw/zh/inspectionDescriptions/ThrowableNotThrown.html new file mode 100644 index 000000000..14293a650 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThrowableNotThrown.html @@ -0,0 +1,15 @@ + + +当创建的 Throwable 从未真正抛出时,报告 Throwable 或其子类的实例化。 +此外,当方法调用的结果未抛出时,此检查会报告返回 Throwable 或其子类实例的方法调用。 +

      不会报告对使用 Error Prone 或 AssertJ 的 @CanIgnoreReturnValue 注解进行注解的方法的调用。

      +

      示例:

      +
      
      +    void leftBehind() throws Throwable {
      +        RuntimeException e = new RuntimeException("throw me");
      +        // ...
      +    }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThrowablePrintStackTrace.html b/original-plugin-raw/zh/inspectionDescriptions/ThrowablePrintStackTrace.html new file mode 100644 index 000000000..01c1d0778 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThrowablePrintStackTrace.html @@ -0,0 +1,7 @@ + + +报告对无实参的 Throwable.printStackTrace() 的调用。 +

      此类语句通常用于临时调试,应当从生产代码中移除,或者替换为更稳健的日志记录工具。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThrowablePrintedToSystemOut.html b/original-plugin-raw/zh/inspectionDescriptions/ThrowablePrintedToSystemOut.html new file mode 100644 index 000000000..09118ae03 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThrowablePrintedToSystemOut.html @@ -0,0 +1,26 @@ + + +报告以异常作为实参的 System.out.println() 调用。 +

      使用 print 语句记录异常会隐藏堆栈跟踪,这可能会使问题的调查变得复杂。 + 建议您改用记录器。

      +

      也会报告以异常作为实参的 System.out.print()System.err.println()System.err.print() 调用。 建议使用记录器来记录异常。

      + +

      例如,不建议使用:

      +
      
      +  try {
      +      foo();
      +  } catch (Exception e) {
      +      System.out.println(e);
      +  }
      +
      +

      用以下代码代替:

      +
      
      +  try {
      +      foo();
      +  } catch (Exception e) {
      +      logger.warn(e); // 记录器调用可能有所不同
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThrownExceptionsPerMethod.html b/original-plugin-raw/zh/inspectionDescriptions/ThrownExceptionsPerMethod.html new file mode 100644 index 000000000..1c82bdb5d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThrownExceptionsPerMethod.html @@ -0,0 +1,8 @@ + + +报告在 throws 列表中具有过多异常类型的方法。 +

      声明了太多异常的方法是错误处理代码变得过于复杂的标志。

      + +

      使用异常抛出限制字段可指定方法在其 throws 列表中允许的最大异常类型数。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThrowsRuntimeException.html b/original-plugin-raw/zh/inspectionDescriptions/ThrowsRuntimeException.html new file mode 100644 index 000000000..a7b786952 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThrowsRuntimeException.html @@ -0,0 +1,15 @@ + + +报告方法 throws 子句中未检查的异常的声明(java.lang.RuntimeException 或其子类之一)。 +

      未检查的异常的声明不是必需的,可以删除或移动到 Javadoc @throws 标记。

      +

      示例:

      +
      
      +  public class InvalidDataException extends RuntimeException {}
      +
      +  class TextEditor {
      +    void readSettings() throws InvalidDataException {} // 警告:在 'throws' 子句中声明了未检查的异常 'InvalidDataException'
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThymeleafDialectDomInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ThymeleafDialectDomInspection.html new file mode 100644 index 000000000..415949ea4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThymeleafDialectDomInspection.html @@ -0,0 +1,16 @@ + + +

      报告 Thymeleaf Dialect Extension <dialect> 文件中的不正确元素:

      + +
        +
      • 对不可实例化类的引用
      • +
      • 对不扩展所需类的类的引用
      • +
      • 对范围不适当的类的引用
      • +
      • 空标记和特性值
      • +
      • 与所需模式不匹配的标记和特性值(例如,Java 标识符)
      • +
      • 不包含必需子标记或特性的标记
      • +
      • 定义具有重复名称的对象的标记
      • +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThymeleafMessagesResolveInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ThymeleafMessagesResolveInspection.html new file mode 100644 index 000000000..ea4af0e7a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThymeleafMessagesResolveInspection.html @@ -0,0 +1,14 @@ + + +

      报告未解析的消息资源键。

      + +

      示例:

      +
      
      +<html xmlns:th="https://www.thymeleaf.org">
      + <body>
      +    <h1 th:text="#{welcome.unknown}">Hallo, World</h1> <!-- 无法解析属性键 -->
      + </body>
      +</html>
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ThymeleafVariablesResolveInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ThymeleafVariablesResolveInspection.html new file mode 100644 index 000000000..b0bef5a00 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ThymeleafVariablesResolveInspection.html @@ -0,0 +1,17 @@ + + +

      报告未解析的引用和无效的 Thymeleaf 表达式。

      + +

      示例:

      +
      
      +<html xmlns:th="https://www.thymeleaf.org">
      +<body>
      +  <form th:object="${unknownPet}"  <!-- Cannot resolve 'unknownPet'  -->
      +        class="form-horizontal" method="post">
      +    <input type="hidden" name="id" th:value="*{id}" /> <!-- 无法解析 'id'  -->
      +  </form>
      +</body>
      +</html>
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TimeToString.html b/original-plugin-raw/zh/inspectionDescriptions/TimeToString.html new file mode 100644 index 000000000..965dfe52b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TimeToString.html @@ -0,0 +1,6 @@ + + +报告 java.sql.Time 对象上的 toString() 调用。 在国际化环境中,此类调用通常是不正确的。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ToArrayCallWithZeroLengthArrayArgument.html b/original-plugin-raw/zh/inspectionDescriptions/ToArrayCallWithZeroLengthArrayArgument.html new file mode 100644 index 000000000..cc47e089b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ToArrayCallWithZeroLengthArrayArgument.html @@ -0,0 +1,14 @@ + + +报告非首选样式的 Collection.toArray() 调用,并建议应用首选样式。 +

      将集合转换为数组有两种样式:

      + +
    • 预先确定大小的数组,例如 c.toArray(new String[c.size()])
    • +
    • 空数组,例如 c.toArray(new String[0])
    • +
      +

      在旧的 Java 版本中,建议使用预先确定大小的数组,因为创建适当大小的数组所需的反射调用非常慢。

      +

      不过,自 OpenJDK 6 的最新更新以来,此调用已被添加,使得空数组版本的性能与预先确定大小的版本相同,有时甚至更高一筹。 此外,传递预先确定大小的数组对于并发集合或同步集合很危险,因为 sizetoArray 调用之间可能会发生数据竞争。 如果在操作过程中并发收缩该集合,可能导致数组末尾出现额外的 null。

      + +

      使用检查选项可以选择首选样式。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ToSetAndBack.html b/original-plugin-raw/zh/inspectionDescriptions/ToSetAndBack.html new file mode 100644 index 000000000..4646b4e3a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ToSetAndBack.html @@ -0,0 +1,16 @@ + + +

      报告序列到 Set 和反向的链式转换,并建议将其替换为 .distinct 调用。

      +

      示例:

      +
      
      +  Seq(1).toSet.toSeq
      +  List(1).toSet.toList
      +
      +

      在应用快速修复后:

      +
      
      +  Seq(1).distinct
      +  List(1).distinct
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TodoComment.html b/original-plugin-raw/zh/inspectionDescriptions/TodoComment.html new file mode 100644 index 000000000..1c23f1d7f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TodoComment.html @@ -0,0 +1,9 @@ + + +报告代码中的 TODO 注释。 +

      您可以在设置 | 编辑器 | TODO 中配置 TODO 注释的格式。 由于已经为 TODO 注释提供语法高亮显示,因此如果以批处理模式运行,则此检查是高效的。

      + +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TomlUnresolvedReference.html b/original-plugin-raw/zh/inspectionDescriptions/TomlUnresolvedReference.html new file mode 100644 index 000000000..93c2a3c3c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TomlUnresolvedReference.html @@ -0,0 +1,5 @@ + + +报告 TOML 文件中未解析的引用。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/TooBroadCatch.html b/original-plugin-raw/zh/inspectionDescriptions/TooBroadCatch.html new file mode 100644 index 000000000..09609a85c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TooBroadCatch.html @@ -0,0 +1,29 @@ + + +报告形参比相应的 try 块抛出的异常更通用的 catch 块。 +

      示例:

      +
      
      +  try  {
      +    File file = new File(pathToFile);
      +    return file.getAbsolutePath();
      +  } catch (Exception ex) { // warning: 'catch' of 'Exception' is too broad, masking exceptions 'RuntimeException'
      +    return defaultFilePath;
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  try  {
      +    File file = new File(pathToFile);
      +    return file.getAbsolutePath();
      +  } catch (RuntimeException ex) {
      +    return defaultFilePath;
      +  }
      +
      + +

      配置检查:

      +
        +
      • 使用仅对 RuntimeException、异常、错误或 Throwable 发出警告选项可使此检查仅对最常见的异常发出警告。
      • +
      • 使用忽略隐藏其他异常但自身被抛出的异常选项可忽略任何隐藏其他异常但仍可能被抛出的异常,因此在技术上不会过于宽泛。
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TooBroadScope.html b/original-plugin-raw/zh/inspectionDescriptions/TooBroadScope.html new file mode 100644 index 000000000..234cc0563 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TooBroadScope.html @@ -0,0 +1,48 @@ + + +报告任何可以移动到更小范围的变量声明。 +

      这种检查对于方法开头的 Pascal 样式声明特别有用。 此外,范围太广的变量在重构后也经常保留。

      +

      sb 移动的示例:

      +
      
      +  StringBuilder sb = new StringBuilder();
      +  System.out.println();
      +  sb.append(1);
      +
      +

      在应用快速修复后:

      +
      
      +  System.out.println();
      +  StringBuilder sb = new StringBuilder();
      +  sb.append(1);
      +
      + +

      配置检查:

      +
        +
      • 使用仅报告可移入内部块的变量选项可只报告那些可以移动到更深代码块中的变量。 + 例如,当启用该选项时,将建议对 sb 变量进行移动,但不建议对以下代码进行移动: +
        
        +  StringBuilder sb = new StringBuilder(a);
        +  if (flag) {
        +    sb.append(1);
        +  }
        +
      • +
      • 使用报告使用新表达式作为初始值设定项的变量(可能不安全) 选项可以报告使用新表达式初始化的变量。 这使得当构造函数具有非本地副作用时,检查可能会不安全。 例如,启用该选项时,将建议对 foo 变量进行移动: +
        
        +  class Foo {
        +    static List<Foo> fooList = new ArrayList<>();
        +    String bar;
        +
        +    Foo(String bar) {
        +        this.bar = bar;
        +        fooList.add(this);
        +    }
        +
        +    public static void main(String[] args) {
        +      Foo foo = new Foo("bar"); // 虽不安全,但也可以移动
        +      System.out.println(fooList.size());
        +      System.out.println(foo.bar);
        +    }
        +  }
        +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TooBroadThrows.html b/original-plugin-raw/zh/inspectionDescriptions/TooBroadThrows.html new file mode 100644 index 000000000..19eb48e55 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TooBroadThrows.html @@ -0,0 +1,26 @@ + + +报告异常比方法实际抛出的异常更通用的 throws 子句。 +

      示例:

      +
      
      +  public void createFile() throws Exception { // 警告:'throws Exception' 范围过广,屏蔽异常 'IOException'
      +    File file = new File("pathToFile");
      +    file.createNewFile();
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  public void createFile() throws IOException {
      +    File file = new File("pathToFile");
      +    file.createNewFile();
      +  }
      +
      + +

      配置检查:

      +
        +
      • 使用仅对 RuntimeException、异常、错误或 Throwable 发出警告选项可使此检查仅对最常见的异常发出警告。
      • +
      • 使用忽略在重写库方法的方法上声明的异常选项可忽略在重写库方法的方法中过于宽泛的 throws 子句。
      • +
      • 使用忽略隐藏其他异常但自身被抛出的异常选项可忽略任何隐藏其他异常但仍可能从方法体抛出的异常,因此在技术上不会过于宽泛。
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TrailingComma.html b/original-plugin-raw/zh/inspectionDescriptions/TrailingComma.html new file mode 100644 index 000000000..65b7afa94 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TrailingComma.html @@ -0,0 +1,5 @@ + + +报告未遵循建议的样式指南的尾随逗号。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/TrailingSpacesInProperty.html b/original-plugin-raw/zh/inspectionDescriptions/TrailingSpacesInProperty.html new file mode 100644 index 000000000..dedfb45b7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TrailingSpacesInProperty.html @@ -0,0 +1,5 @@ + + +报告其键或值以空格结尾的所有属性。
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/TrailingWhitespacesInTextBlock.html b/original-plugin-raw/zh/inspectionDescriptions/TrailingWhitespacesInTextBlock.html new file mode 100644 index 000000000..a12bf6358 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TrailingWhitespacesInTextBlock.html @@ -0,0 +1,9 @@ + + +报告带有尾随空格的文本块。 +

      尾随空格被视为附带性,已被 Java 编译器去除。

      + +

      仅当配置的语言级别为 15 或更高时,此检查才会报告。

      +

      2021.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TransientFieldInNonSerializableClass.html b/original-plugin-raw/zh/inspectionDescriptions/TransientFieldInNonSerializableClass.html new file mode 100644 index 000000000..15be5e815 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TransientFieldInNonSerializableClass.html @@ -0,0 +1,20 @@ + + +报告未实现 java.io.Serializable 的类中的 transient 字段。 +

      示例:

      +
      
      +  public class NonSerializableClass {
      +    private transient String password; // 警告:字段 'password' 被标记为 'transient',位于不可序列化类中
      +  }
      +  
      +
      +

      在应用快速修复后:

      +
      
      +  public class NonSerializableClass {
      +    private String password;
      +  }
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TransientFieldNotInitialized.html b/original-plugin-raw/zh/inspectionDescriptions/TransientFieldNotInitialized.html new file mode 100644 index 000000000..cf7cbaec3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TransientFieldNotInitialized.html @@ -0,0 +1,19 @@ + + +报告在正常对象构造过程中初始化,但其类没有 readObject 方法的 transient 字段。 +

      + transient 字段未被序列化,因此在反序列化期间,需要在 readObject() 方法中单独初始化。 +

      +

      + 任何在正常对象构造过程中未被初始化的 transient 字段都被视为使用默认初始化,并且不会被此检查报告。 +

      +

      示例:

      +
      
      +  class Person implements Serializable {
      +    transient String name = "Default"; //警告,反序列化后实际上可能为 null
      +    transient String surname; //null 被视为默认值,不予报告
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TransitionPropertiesLabel.html b/original-plugin-raw/zh/inspectionDescriptions/TransitionPropertiesLabel.html new file mode 100644 index 000000000..fe7a0c970 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TransitionPropertiesLabel.html @@ -0,0 +1,3 @@ + +检查是否为创建 Compose 传递属性的 animate*(例如 animateFloat、animateColor)调用设置了标签形参。 + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TrivialConditionalJS.html b/original-plugin-raw/zh/inspectionDescriptions/TrivialConditionalJS.html new file mode 100644 index 000000000..90590f2b3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TrivialConditionalJS.html @@ -0,0 +1,17 @@ + + +报告如下格式的条件表达式 +
      
      +condition ? true : false
      +condition ? false : true
      +
      +

      + 这些表达式可以安全地转换为 +

      +
      
      +condition
      +!condition
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TrivialFunctionalExpressionUsage.html b/original-plugin-raw/zh/inspectionDescriptions/TrivialFunctionalExpressionUsage.html new file mode 100644 index 000000000..63a5362bb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TrivialFunctionalExpressionUsage.html @@ -0,0 +1,21 @@ + + +报告在 lambda、方法引用或匿名类的定义中直接调用的函数接口方法调用。 +此类方法调用可以替换为函数接口实现体。 +

      示例:

      +
      
      +  boolean contains(List<String> names, String name) {
      +    return ((Predicate<String>)x -> {
      +      return names.contains(x);
      +    }).test(name);
      +  }
      +
      +

      应用快速修复后,方法调用变为:

      +
      
      +  boolean contains(List<String> names, String name) {
      +    return names.contains(name);
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TrivialIf.html b/original-plugin-raw/zh/inspectionDescriptions/TrivialIf.html new file mode 100644 index 000000000..ef3cdbbee --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TrivialIf.html @@ -0,0 +1,31 @@ + + +报告可以简化为单个赋值、returnassert 语句的 if 语句。 +

      示例:

      +
      
      +  if (foo()) {
      +    return true;
      +  } else {
      +    return false;
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  return foo();
      +
      + +

      配置检查:

      +

      如果要隐藏链式 if 语句的警告,请使用忽略链式 'if' 语句选项。

      +

      例如,在以下代码中,警告将被隐藏,但快速修复仍然可用:

      +
      
      +  if (condition1) return true;
      +  if (condition2) return false;
      +  return true;
      +
      +

      如果要隐藏 if 语句在其主体中仅包含 assert 语句的警告,请使用 忽略 'assert' 语句选项。

      +

      例如,在以下代码中,警告将被隐藏:

      +
      
      +  if (isTrue()) assert false;
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TrivialIfJS.html b/original-plugin-raw/zh/inspectionDescriptions/TrivialIfJS.html new file mode 100644 index 000000000..dc6599356 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TrivialIfJS.html @@ -0,0 +1,21 @@ + + +报告可以简化为单个赋值 +或 return 语句的 +if 语句。

      示例:

      +
      
      +if(foo())
      + {
      +  return true;
      + }
      + else
      + {
      +   return false;
      + }
      +
      +

      应用快速修复后,代码如下所示:

      +
      + return foo();
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TrivialStringConcatenation.html b/original-plugin-raw/zh/inspectionDescriptions/TrivialStringConcatenation.html new file mode 100644 index 000000000..10b9f205d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TrivialStringConcatenation.html @@ -0,0 +1,22 @@ + + +报告其中一个实参为空字符串的字符串串联。 +此类连接是不必要且低效的,特别是当用作将非 String 对象或基元格式化为 String 的习惯用法时。 +

      + 建议通过快速修复来简化串联。 +

      +

      示例:

      +
      
      +  void foo(int x, int y) {
      +    String s = "" + x + " ; " + y;
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  void foo(int x, int y) {
      +    String s = x + " ; " + y;
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TryFinallyCanBeTryWithResources.html b/original-plugin-raw/zh/inspectionDescriptions/TryFinallyCanBeTryWithResources.html new file mode 100644 index 000000000..e9292d46d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TryFinallyCanBeTryWithResources.html @@ -0,0 +1,23 @@ + + +报告可能使用 Java 7 Automatic Resource Management(这样不容易出错)的 try-finally 语句。 +

      可以通过快速修复将 try-finally 语句转换为 try-with-resources 语句。

      +

      示例:

      +
      
      +  PrintStream printStream = new PrintStream(fileName);
      +  try {
      +    printStream.print(true);
      +  } finally {
      +    printStream.close();
      +  }
      +
      +

      通过快速修复将原因传递给构造函数:

      +
      
      +  try (PrintStream printStream = new PrintStream(fileName)) {
      +    printStream.print(true);
      +  }
      +
      + +

      仅当项目或模块的语言级别为 7 或更高时,此检查才会报告。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TryStatementWithMultipleResources.html b/original-plugin-raw/zh/inspectionDescriptions/TryStatementWithMultipleResources.html new file mode 100644 index 000000000..0dabf0efd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TryStatementWithMultipleResources.html @@ -0,0 +1,21 @@ + + +报告带有多个资源的 try 语句,这些语句可以自动拆分为多条 try-with-resources 语句。 +

      这种转换对于进一步重构很有用 (例如,用于将嵌套的 try 语句提取到单独的方法中)。

      +

      示例:

      +
      
      +  try (FileInputStream in = new FileInputStream("in.txt");
      +     FileOutputStream out = new FileOutputStream("out.txt")) {
      +     /*读取和写入*/
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  try (FileInputStream in = new FileInputStream("in.txt")) {
      +    try (FileOutputStream out = new FileOutputStream("out.txt")) {
      +      /*读取和写入*/
      +    }
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/TryWithIdenticalCatches.html b/original-plugin-raw/zh/inspectionDescriptions/TryWithIdenticalCatches.html new file mode 100644 index 000000000..5b0c043b4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TryWithIdenticalCatches.html @@ -0,0 +1,29 @@ + + +报告单个 try 语句中相同的 catch 部分。 +

      将这些部分折叠成一个 multi-catch 块可以减少代码重复,并防止出现一个 catch 部分更新而另一个部分未更新的情况。

      +

      示例:

      +
      
      +    try {
      +        doSmth();
      +    }
      +    catch (IOException e) {
      +        LOG.error(e);
      +    }
      +    catch (URISyntaxException e) {
      +        LOG.error(e);
      +    }
      +
      +

      可通过快速修复使代码更加紧凑:

      +
      
      +    try {
      +        doSmth();
      +    }
      +    catch (IOException | URISyntaxException e) {
      +        LOG.error(e);
      +    }
      +
      + +

      仅当项目或模块的语言级别为 7 或更高时,此检查才会报告。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TsLint.html b/original-plugin-raw/zh/inspectionDescriptions/TsLint.html new file mode 100644 index 000000000..e4d4d4001 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TsLint.html @@ -0,0 +1,10 @@ + + +报告 TSLint linter 检测到的差异。 + +

      +高亮显示基于 TSLint 配置文件中为每条规则指定的规则严重性。 +

      +清除“使用配置文件中的规则严重性”复选框,对所有 TSLint 规则使用该项检查中配置的严重性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeAnnotation.html b/original-plugin-raw/zh/inspectionDescriptions/TypeAnnotation.html new file mode 100644 index 000000000..c3f6e7bc6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeAnnotation.html @@ -0,0 +1,7 @@ + + +

      报告没有根据配置的代码样式所需的显式类型注解的属性和方法。

      +

      请参见设置 | 编辑器 | 代码样式 | Scala | 类型注解

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeCheckCanBeMatch.html b/original-plugin-raw/zh/inspectionDescriptions/TypeCheckCanBeMatch.html new file mode 100644 index 000000000..2f29a2cd2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeCheckCanBeMatch.html @@ -0,0 +1,29 @@ + + +

      报告在一系列 if-else 语句中的类型检查和类型转换,并将其替换为模式匹配。

      +

      示例:

      +
      
      +  val value = 0
      +  if (value.isInstanceOf[Int]) {
      +    val x = value.asInstanceOf[Int] + 1
      +    val y = value.asInstanceOf[Int] + 2
      +  } else if (value.isInstanceOf[Long]) {
      +    val x = value.asInstanceOf[Long]
      +    println(x)
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  val value = 0
      +  value match {
      +    case i: Int =>
      +      val x = i + 1
      +      val y = i + 2
      +    case x: Long =>
      +      println(x)
      +    case _ =>
      +  }
      +
      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeCustomizer.html b/original-plugin-raw/zh/inspectionDescriptions/TypeCustomizer.html new file mode 100644 index 000000000..bbe55240e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeCustomizer.html @@ -0,0 +1,5 @@ + + +

      报告可作为自定义类型检查器且未添加到编译器资源的文件。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeMayBeWeakened.html b/original-plugin-raw/zh/inspectionDescriptions/TypeMayBeWeakened.html new file mode 100644 index 000000000..4a0361c41 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeMayBeWeakened.html @@ -0,0 +1,43 @@ + + +报告可以更改为更抽象(更弱)类型的变量和方法返回类型。 +这使代码更抽象,因此可重用性更高。 +

      示例:

      +
      
      +  // 形参类型可以削弱为 java.util.List
      +  void processList(ArrayList<String> list) {
      +    if (list.isEmpty()) return;
      +    System.out.println("Processing");
      +    for (String s : list) {
      +      System.out.println("String: " + s);
      +    }
      +  }
      +
      + +

      + 启用下面的使用右侧类型复选框可防止在右侧并非类型转换或新表达式时削弱赋值的左侧。 在变量中存储方法调用结果时,保留方法调用结果的类型不会不必要地削弱它,反而会很有用。 +

      +

      + 启用下面的使用形参化类型复选框可在求值的对象用作形参类型为 java.lang.Object 的集合方法的实参时,将集合的形参化类型用作最弱的类型。 + 在将对象传递给以下集合方法时,使用此选项可以防止削弱为 Object: + get()remove()contains()indexOf()lastIndexOf()containsKey()containsValue()。 +

      +

      + 启用下面的不削弱为 Object 复选框可以指定是否应将类型削弱为 java.lang.Object。 + 削弱为 java.lang.Object 很少有用。 +

      +

      + 启用下面的仅削弱为接口复选框,可仅在该类型可以削弱为接口类型时才报告问题。 +

      +

      + 启用下面的不削弱返回类型复选框,可防止在返回类型可能被削弱时报告问题。 + 只分析变量。 +

      +

      + 启用下面的不建议削弱声明为 'var' 的变量复选框,可防止报告使用 'var' 关键字声明的局部变量 (Java 10+) +

      +

      +停止类意在防止类削弱至低于停止类的程度,即便可能出现这种情况,也能予以防止。 +在某些情况下,这可能会提高可读性。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeParameterExtendsFinalClass.html b/original-plugin-raw/zh/inspectionDescriptions/TypeParameterExtendsFinalClass.html new file mode 100644 index 000000000..0543627e7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeParameterExtendsFinalClass.html @@ -0,0 +1,20 @@ + + +报告为扩展 final 类而声明的类型形参。 +

      由于无法扩展 final 类,建议将类型形参替换为指定的 final 类的类型。

      +

      示例:

      +
      
      +  void foo() {
      +    List<? extends Integer> list; // 警告:Integer 类为 final 类
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  void foo() {
      +    List<Integer> list;
      +  }
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeParameterExtendsObject.html b/original-plugin-raw/zh/inspectionDescriptions/TypeParameterExtendsObject.html new file mode 100644 index 000000000..e9792cdb6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeParameterExtendsObject.html @@ -0,0 +1,18 @@ + + +报告显式声明为扩展 java.lang.Object 的类型形参和通配符类型实参。 +

      此类 'extends' 子句是冗余的,因为 java.lang.Object 是所有类的父类型。

      +

      示例:

      +
        class ClassA<T extends Object> {}
      +
      + +

      + 如果由于注解而需保留 'extends Object' 子句,请禁用注解 java.lang.Object 时忽略选项。 + 这可能会有用,例如在您使用空值分析器并且 'extends Object' 子句包含 @Nullable/@NotNull 注解时。 +

      +

      示例:

      +
        class MyClass<T extends @NotNull Object> {}
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeParameterFindViewById.html b/original-plugin-raw/zh/inspectionDescriptions/TypeParameterFindViewById.html new file mode 100644 index 000000000..d22e2f0ba --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeParameterFindViewById.html @@ -0,0 +1,5 @@ + + +报告带类型转换并且自 Android 8.0(API 级别 26)起可以转换为带类型形参的 findViewByIdfindViewById 调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeParameterHidesVisibleType.html b/original-plugin-raw/zh/inspectionDescriptions/TypeParameterHidesVisibleType.html new file mode 100644 index 000000000..468004b6c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeParameterHidesVisibleType.html @@ -0,0 +1,16 @@ + + +报告与当前范围中的可见类型名称相同的类型形参。 此类形参名称可能令人困惑。 + +

      示例:

      +
      
      +  abstract class MyList<T> extends AbstractList<T> {
      +    private List<T> elements;
      +    // 类型形参 'T' 隐藏类型形参 'T'
      +    public <T> T[] toArray(T[] array) {
      +        return elements.toArray(array);
      +    }
      +}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeParameterShadow.html b/original-plugin-raw/zh/inspectionDescriptions/TypeParameterShadow.html new file mode 100644 index 000000000..7316840dd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeParameterShadow.html @@ -0,0 +1,12 @@ + + +

      报告隐藏在封闭范围内定义的其他类型形参的类型形参。

      +

      示例:

      +
      
      +  class Test[T] {
      +    def inner[T]: Int = ???
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptAbstractClassConstructorCanBeMadeProtected.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptAbstractClassConstructorCanBeMadeProtected.html new file mode 100644 index 000000000..617b8771a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptAbstractClassConstructorCanBeMadeProtected.html @@ -0,0 +1,5 @@ + + +报告 abstract 类的 public 构造函数,并建议将其设置为 protected(因为将其设置为 public 是无用的)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptCheckImport.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptCheckImport.html new file mode 100644 index 000000000..3e73de176 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptCheckImport.html @@ -0,0 +1,5 @@ + + +报告 TypeScript 代码的 import 声明中未解析的名称或绑定。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptConfig.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptConfig.html new file mode 100644 index 000000000..67ab6b271 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptConfig.html @@ -0,0 +1,10 @@ + + +报告 tsconfig.json 文件中的 pathscheckJsextends 属性不一致的情况。 +
      +checkJs 属性必须具备 allowJs。 +
      +extends 属性应为有效的文件引用。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptDuplicateUnionOrIntersectionType.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptDuplicateUnionOrIntersectionType.html new file mode 100644 index 000000000..d5bb3efc0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptDuplicateUnionOrIntersectionType.html @@ -0,0 +1,5 @@ + + +报告合集或交集中的重复类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptExplicitMemberType.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptExplicitMemberType.html new file mode 100644 index 000000000..d58d9af32 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptExplicitMemberType.html @@ -0,0 +1,15 @@ + + +报告与显式类型的当前代码样式不匹配的类型注解。 + +

      + 从上下文推断出的类型与类型注解完全匹配时,不需要类型声明,例如: +

      +

      + + var pi: number = 3.14 + +

      +

      在某些情况下,最好始终采用显式类型 - 这可以防止意外更改类型,并使代码更明确。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptFieldCanBeMadeReadonly.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptFieldCanBeMadeReadonly.html new file mode 100644 index 000000000..ac60aadf0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptFieldCanBeMadeReadonly.html @@ -0,0 +1,5 @@ + + +报告可设为 readonly 的 private 字段(例如,如果该字段仅在构造函数中赋值)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptLibrary.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptLibrary.html new file mode 100644 index 000000000..46513bcc6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptLibrary.html @@ -0,0 +1,5 @@ + + +报告符号必须具备但未在 tsconfig.json 中的 lib 编译器选项下列出的 TypeScript 库文件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptMissingAugmentationImport.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptMissingAugmentationImport.html new file mode 100644 index 000000000..a41d34e51 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptMissingAugmentationImport.html @@ -0,0 +1,6 @@ + + +报告没有显式 import 的 +增强模块的用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptMissingConfigOption.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptMissingConfigOption.html new file mode 100644 index 000000000..d7f03f189 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptMissingConfigOption.html @@ -0,0 +1,6 @@ + + +报告 tsconfig.json 中需要显式选项的用法。 +例如,要在 .tsx 文件中使用 JSX,tsconfig.json 必须包含 "jsx": "react"。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptRedundantGenericType.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptRedundantGenericType.html new file mode 100644 index 000000000..84d09ee28 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptRedundantGenericType.html @@ -0,0 +1,12 @@ + + +报告其值等于默认值并且可以移除的类型实参。 +

      +示例: +

      +type Foo<T=number> = T;
      +let z: Foo<number>;
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptSmartCast.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptSmartCast.html new file mode 100644 index 000000000..5502ffef2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptSmartCast.html @@ -0,0 +1,6 @@ + + +报告通过类型防护缩小变量类型范围时的变量用法。 +请注意,严重性级别不影响此检查。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptSuspiciousConstructorParameterAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptSuspiciousConstructorParameterAssignment.html new file mode 100644 index 000000000..f4517e5b4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptSuspiciousConstructorParameterAssignment.html @@ -0,0 +1,13 @@ + + +在类字段声明为构造函数形参,然后为此形参赋值时,报告 TypeScript 代码中的常见错误。
      +在这种情况下,不会赋值给相应的字段,而只是修改局部形参值。 +
      +class Foo {
      +  constructor(private p: number) {
      +    p = 1; //必须为 this.p = 1;
      +  }
      +}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptUMDGlobal.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptUMDGlobal.html new file mode 100644 index 000000000..712bfa44d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptUMDGlobal.html @@ -0,0 +1,6 @@ + + +如果当前文件是模块(EcmaScript 或 CommonJS),则报告 UMD 全局变量的用法。 +如果没有隐式包含此库,那么在没有显式 import 的情况下引用 UMD 变量可能会导致运行时错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptUnresolvedFunction.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptUnresolvedFunction.html new file mode 100644 index 000000000..31110a2c9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptUnresolvedFunction.html @@ -0,0 +1,5 @@ + + +报告未解析的函数调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptUnresolvedReactComponent.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptUnresolvedReactComponent.html new file mode 100644 index 000000000..b5a3874e1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptUnresolvedReactComponent.html @@ -0,0 +1,7 @@ + + +报告对 JSX (React) 组件的未解析的引用。 +如果引用的组件在此项目或其依赖项中定义,则建议添加 import 语句,或使用指定名称创建新组件。 +

      新组件的模板可以在“编辑器 | 文件和代码模板”中修改。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptUnresolvedVariable.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptUnresolvedVariable.html new file mode 100644 index 000000000..1bd905b17 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptUnresolvedVariable.html @@ -0,0 +1,5 @@ + + +报告对变量或字段的未解析引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptValidateGenericTypes.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptValidateGenericTypes.html new file mode 100644 index 000000000..ef58d0e66 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptValidateGenericTypes.html @@ -0,0 +1,5 @@ + + +报告函数、接口或类声明中的无效类型实参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptValidateJSTypes.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptValidateJSTypes.html new file mode 100644 index 000000000..a0a589431 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptValidateJSTypes.html @@ -0,0 +1,9 @@ + + +如果上下文符号可以隐式解析为 any 类型,则报告包含形参、返回值、赋值表达式或类型不正确的函数调用。 +
      +declare var test: any;
      +test.hasOwnProperty(true); //报告 'true'
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypeScriptValidateTypes.html b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptValidateTypes.html new file mode 100644 index 000000000..331be00bc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypeScriptValidateTypes.html @@ -0,0 +1,5 @@ + + +报告类型不正确的形参、返回值或赋值表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/TypedParameterWithoutParen.html b/original-plugin-raw/zh/inspectionDescriptions/TypedParameterWithoutParen.html new file mode 100644 index 000000000..6e8d5a9fb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/TypedParameterWithoutParen.html @@ -0,0 +1,17 @@ + + +

      报告未被圆括号包围的函数文字形参。

      + +

      在 Scala 3 中,只有一个形参的函数文字不能省略形参周围的圆括号。

      + +

      示例:

      +
      
      +  call { a: Int => a }
      +
      +

      在应用快速修复后:

      +
      
      +  call { (a: Int) => a }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UElementAsPsi.html b/original-plugin-raw/zh/inspectionDescriptions/UElementAsPsi.html new file mode 100644 index 000000000..3ebd959ee --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UElementAsPsi.html @@ -0,0 +1,16 @@ + + +报告将 UAST UElement 作为 PsiElement 的用法。 +

      + 以这种方式获取的 PsiElement 不明确。 +

      +

      + 要获取“物理”PsiElement,请使用 UElementKt.getSourcePsiElement(), + 对于“模拟”Java 元素(PsiClassPsiMethod 等)的行为的 PsiElement, + 请使用 UElementKt.getAsJavaPsiElement()。 +

      +

      + 请参阅 SDK 文档中的 UAST - 统一抽象语法树。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UNCHECKED_WARNING.html b/original-plugin-raw/zh/inspectionDescriptions/UNCHECKED_WARNING.html new file mode 100644 index 000000000..b6d0c6b04 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UNCHECKED_WARNING.html @@ -0,0 +1,16 @@ + + +报告 javac 编译器发出未检查的警告的代码。 +每个未检查的警告都可能在运行时触发 ClassCastException。 +

      示例:

      +
      
      +  List items = Arrays.asList("string", "string");
      +  List<Integer> numbers = Collections.unmodifiableList(items); // 未检查的赋值
      +
      +

      该快速修复会尝试泛化该包含文件,此举可能会揭示编辑器中以及编译期间以前仅在运行时出现的问题:

      +
      
      +  List<String> items = Arrays.asList("string", "string");
      +  List<Integer> numbers = Collections.unmodifiableList(items); // 不兼容的类型
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UNUSED_IMPORT.html b/original-plugin-raw/zh/inspectionDescriptions/UNUSED_IMPORT.html new file mode 100644 index 000000000..aa9a63d25 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UNUSED_IMPORT.html @@ -0,0 +1,24 @@ + + +报告冗余的 import 语句。 +

      如果不使用源文件中导入的类和软件包,则不必使用常规 import 语句。 +这同样适用于源文件中未使用但已导入的 static 字段和方法。

      +

      示例:

      +
      
      +  import java.util.ArrayList;
      +  public class Example {
      +    public static void main(String[] args) {
      +      System.out.println("Hello World!");
      +    }
      +  }
      +
      +

      在应用快速修复后: +

      
      +  public class Example {
      +    public static void main(String[] args) {
      +      System.out.println("Hello World!");
      +    }
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UastIncorrectHttpHeaderInspection.html b/original-plugin-raw/zh/inspectionDescriptions/UastIncorrectHttpHeaderInspection.html new file mode 100644 index 000000000..36e09cfc1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UastIncorrectHttpHeaderInspection.html @@ -0,0 +1,9 @@ + + +

      + 报告与任何公共已知标头不匹配的未知 HTTP 标头。 该快速修复会建议将标头添加到自定义标头列表中,以避免将来触发此检查。 +

      + +

      在 HTTP 客户端组中列出了具有相同名称的自定义 HTTP 标题以进行检查。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UastIncorrectMimeTypeInspection.html b/original-plugin-raw/zh/inspectionDescriptions/UastIncorrectMimeTypeInspection.html new file mode 100644 index 000000000..11cc292ce --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UastIncorrectMimeTypeInspection.html @@ -0,0 +1,5 @@ + + +

      报告 HTTP 服务器和客户端不正确的 MIME 类型(例如,在 Content-Type 字符串中)。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnaryPlus.html b/original-plugin-raw/zh/inspectionDescriptions/UnaryPlus.html new file mode 100644 index 000000000..aedccf496 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnaryPlus.html @@ -0,0 +1,33 @@ + + +报告使用 + 一元运算符的情况。 一元加号通常为 null 运算,它的存在可能代表编码错误。 例如,与递增运算符(如 +++ 中)或相等运算符(如 =+ 中)结合使用。 +

      示例:

      +
      
      +  void unaryPlus(int i) {
      +    int x = + +i;
      +  }
      +
      +

      建议使用以下快速修复:

      +
        +
      • 移除 i 变量前的 + 运算符:

        +
        
        +  void unaryPlus(int i) {
        +    int x = i;
        +  }
        +
        +
      • +
      • 使用前缀递增运算符替换 + 运算符:

        +
        
        +  void unaryPlus(int i) {
        +    int x = ++i;
        +  }
        +
        +
      • +
      + +

      +使用下面的复选框可以报告与二进制或另一个一元表达式一起使用的一元加号。 +这意味着检查将不会报告将一元加号表达式用于数组初始值设定项表达式或用作方法实参的情况。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnavailableInDeploymentTarget.html b/original-plugin-raw/zh/inspectionDescriptions/UnavailableInDeploymentTarget.html new file mode 100644 index 000000000..7999fa652 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnavailableInDeploymentTarget.html @@ -0,0 +1,5 @@ + + +报告对部署目标不可用的 API 用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UncheckedExceptionClass.html b/original-plugin-raw/zh/inspectionDescriptions/UncheckedExceptionClass.html new file mode 100644 index 000000000..e9a915ca9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UncheckedExceptionClass.html @@ -0,0 +1,11 @@ + + +报告 java.lang.RuntimeException 的子类。 +

      某些编码标准要求检查所有用户定义的异常类。

      +

      示例:

      +
      
      +  class EnigmaException extends RuntimeException {} // 警告:未检查的异常类 'EnigmaException'
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnclearBinaryExpression.html b/original-plugin-raw/zh/inspectionDescriptions/UnclearBinaryExpression.html new file mode 100644 index 000000000..9b8495f5a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnclearBinaryExpression.html @@ -0,0 +1,14 @@ + + +报告由不带圆括号的不同运算符组成的二元、条件或 instanceof 表达式。 由于运算符的优先级规则不同,此类表达式的可读性可能较低。 +

      示例:

      +
      
      +  int n = 3 + 9 * 8 + 1;
      +
      +

      在应用快速修复后:

      +
      
      +  int n = 3 + (9 * 8) + 1;
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnclearPrecedenceOfBinaryExpression.html b/original-plugin-raw/zh/inspectionDescriptions/UnclearPrecedenceOfBinaryExpression.html new file mode 100644 index 000000000..d402a7e51 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnclearPrecedenceOfBinaryExpression.html @@ -0,0 +1,13 @@ + + +报告包含不同运算符且无圆括号的二进制表达式。 +

      此类表达式可能由于不同的运算符优先级规则而可读性不佳。

      +

      示例:

      +
      +  fun foo(b: Boolean?, i: Int?) {
      +      val x = b ?: i == null // 评估为 `(b ?: i) == null`
      +      val y = i ?: 0 + 1 // 评估为 `i ?: (0 + 1)`
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnconditionalWait.html b/original-plugin-raw/zh/inspectionDescriptions/UnconditionalWait.html new file mode 100644 index 000000000..00b245290 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnconditionalWait.html @@ -0,0 +1,22 @@ + + +报告在同步上下文中无条件调用的 wait()。 +

      + wait() 通常用于在某个条件为 true 前阻塞线程。 如果是无条件调用 wait(),它通常表示在获取锁定之前检查了条件。 在这种情况下可能会发生数据竞争,条件在得到检查和获取锁定之间变为 true。 +

      +

      + 虽然此检查发现的结构未必不正确,但肯定值得检查。 +

      +

      示例:

      +
      
      +  class Bar {
      +      void foo() throws InterruptedException {
      +          synchronized (this) {
      +              wait(); // 警告
      +          }
      +      }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnconstrainedVariableType.html b/original-plugin-raw/zh/inspectionDescriptions/UnconstrainedVariableType.html new file mode 100644 index 000000000..f7a3e481c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnconstrainedVariableType.html @@ -0,0 +1,18 @@ + + +报告将受概念约束的表达式分配给被声明为 auto 的变量的情况,并建议添加类型约束。 +

      示例:

      +
      
      +  template
      +  concept Foo = true;
      +
      +  Foo auto func() { return true; }
      +
      +  void bar() {
      +      auto f = func(); //在此处警告需要添加约束 'Foo'
      +  }
      +
      + +

      2020.2 最新变化

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnconstructableTestCase.html b/original-plugin-raw/zh/inspectionDescriptions/UnconstructableTestCase.html new file mode 100644 index 000000000..72dbacdee --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnconstructableTestCase.html @@ -0,0 +1,19 @@ + + +报告不是 abstract 且不公开 public no-arg 构造函数或将单个字符串作为实参的 public 构造函数的 JUnit 测试用例。 +大多数 JUnit 测试运行程序都无法运行此类测试用例。 +

      示例:

      +
      
      +public class MyTest {
      +
      +  private MyTest() {} // no-arg 构造函数为 private
      +
      +  @Test
      +  public void testSomething() {
      +    assertEquals(1, 1);
      +  }
      +}
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UndeclaredTests.html b/original-plugin-raw/zh/inspectionDescriptions/UndeclaredTests.html new file mode 100644 index 000000000..98e6cb0ad --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UndeclaredTests.html @@ -0,0 +1,5 @@ + + +报告未在 testing.xml 中注册的测试类。 这通常是一个错误,因为此类测试不会被执行。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UndesirableClassUsage.html b/original-plugin-raw/zh/inspectionDescriptions/UndesirableClassUsage.html new file mode 100644 index 000000000..8eee03a3b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UndesirableClassUsage.html @@ -0,0 +1,8 @@ + + +报告不需要的类(主要是 Swing 组件)的用法。 +

      + 快速修复将使用建议的 IntelliJ 平台替代版本进行替换。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnfinishedStepVerifier.html b/original-plugin-raw/zh/inspectionDescriptions/UnfinishedStepVerifier.html new file mode 100644 index 000000000..7e01b35f2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnfinishedStepVerifier.html @@ -0,0 +1,16 @@ + + +

      报告缺失的 StepVerifier 终端调用。

      +

      + 启动 Publisher 订阅和断言需要调用终端验证方法,例如verify()verifyComplete() 等。 +

      +

      示例:

      +
      
      +StepVerifier.create(Flux.just(1,2,3)).expectNext(1);
      +
      +

      在应用快速修复后:

      +
      
      +StepVerifier.create(Flux.just(1,2,3)).expectNext(1).verifyComplete();
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnhandledExceptionInJSP.html b/original-plugin-raw/zh/inspectionDescriptions/UnhandledExceptionInJSP.html new file mode 100644 index 000000000..3096cd869 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnhandledExceptionInJSP.html @@ -0,0 +1,29 @@ + + +报告由顶级 JSP Scriptlet 抛出的异常。
      + +

      示例:

      +
      
      +  <%!
      +  String getFormattedDate() {
      +    ...
      +    throw new IllegalArgumentException(...); // 错误
      +  }
      +  %>
      +  <html>
      +  <head>
      +    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      +    <title>Hello, JSP!</title>
      +  </head>
      +  <body>
      +  <i>Today is <%= getFormattedDate() %></i>
      +  </body>
      +  </html>
      +

      + + +

      + 注意:此类 JSP 页面会编译,因为 servlet 容器将所有 JSP 代码包装在 try {} catch() {} 块中,但它们在服务器上部署时会产生运行时异常。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UninstantiableBinding.html b/original-plugin-raw/zh/inspectionDescriptions/UninstantiableBinding.html new file mode 100644 index 000000000..d9a1324dd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UninstantiableBinding.html @@ -0,0 +1,6 @@ + + +

      报告 Guice 无法实例化指定类的显式绑定。 + 例如,如果类是接口、为 abstract 或没有可注入的构造函数。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UninstantiableImplementedByClass.html b/original-plugin-raw/zh/inspectionDescriptions/UninstantiableImplementedByClass.html new file mode 100644 index 000000000..07d8b57fa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UninstantiableImplementedByClass.html @@ -0,0 +1,6 @@ + + +

      报告 Guice 无法实例化指定类的 com.google.inject.ImplementedBy 注解。 + 例如,如果类是接口、为 abstract 或没有可注入的构造函数。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UninstantiableProvidedByClass.html b/original-plugin-raw/zh/inspectionDescriptions/UninstantiableProvidedByClass.html new file mode 100644 index 000000000..770f54e73 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UninstantiableProvidedByClass.html @@ -0,0 +1,6 @@ + + +

      报告 Guice 无法实例化指定类的 com.google.inject.ProvidedBy 注解。 + 例如,如果类是接口、为 abstract 或没有可注入的构造函数。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnitInMap.html b/original-plugin-raw/zh/inspectionDescriptions/UnitInMap.html new file mode 100644 index 000000000..84770d95c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnitInMap.html @@ -0,0 +1,15 @@ + + +

      报告 map 与不产生结果的表达式的搭配使用。

      +

      如果可能,此检查会建议将此类 map 调用替换为 foreach 调用。

      +

      示例:

      +
      
      +  Seq(1, 2).map(println)
      +
      +

      在应用快速修复后:

      +
      
      +  Seq(1, 2).foreach(println)
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnitMethodIsParameterless.html b/original-plugin-raw/zh/inspectionDescriptions/UnitMethodIsParameterless.html new file mode 100644 index 000000000..e3c03b215 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnitMethodIsParameterless.html @@ -0,0 +1,17 @@ + + +

      报告结果类型为 Unit 且没有形参子句的方法。

      +

      结果类型为 Unit 的方法仅针对它们的副作用执行,并且按照惯例,具有副作用的方法至少有一个(空)形参子句。 +

      +

      该快速修复会添加一个空形参子句。

      +

      示例:

      +
      
      +  def test: Unit = ()
      +
      +

      在应用快速修复后:

      +
      
      +  def test(): Unit = ()
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnknownGuard.html b/original-plugin-raw/zh/inspectionDescriptions/UnknownGuard.html new file mode 100644 index 000000000..90830e8fe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnknownGuard.html @@ -0,0 +1,24 @@ + + +报告其中指定的保护字段未知的 @GuardedBy 注解。 +

      示例:

      +
      
      +    private Object state;
      +
      +    @GuardedBy("lock") //未知的保护引用
      +    public void bar() {
      +        state = new Object();
      +    }
      +
      + +

      支持的 @GuardedBy 注解是:

      +
        +
      • net.jcip.annotations.GuardedBy
      • +
      • javax.annotation.concurrent.GuardedBy
      • +
      • org.apache.http.annotation.GuardedBy
      • +
      • com.android.annotations.concurrency.GuardedBy
      • +
      • androidx.annotation.GuardedBy
      • +
      • com.google.errorprone.annotations.concurrent.GuardedBy
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnknownLanguage.html b/original-plugin-raw/zh/inspectionDescriptions/UnknownLanguage.html new file mode 100644 index 000000000..b5569a10b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnknownLanguage.html @@ -0,0 +1,9 @@ + + +报告 @Language 注解中使用的语言 ID 未知的情况。 +

      示例:

      +
      
      +  @Language("HMTL") String html;
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnlabeledReturnInsideLambda.html b/original-plugin-raw/zh/inspectionDescriptions/UnlabeledReturnInsideLambda.html new file mode 100644 index 000000000..1124f4270 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnlabeledReturnInsideLambda.html @@ -0,0 +1,25 @@ + + +报告内联 lambda 内未标记的 return 表达式。 +

      此类表达式可能令人困惑,因为可能不清楚哪个范围属于 return

      +

      更改为 return@… 快速修复可用于自动修正代码。

      +

      示例:

      +
      
      +  fun test(list: List<Int>) {
      +      list.forEach {
      +          // 此返回表达式从函数测试返回
      +          // 可以将其更改为 return@forEach 以更改范围
      +          if (it == 10) return
      +      }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun test(list: List<Int>) {
      +      list.forEach {
      +          if (it == 10) return@test
      +      }
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnmatchingR6ClassNameInspection.html b/original-plugin-raw/zh/inspectionDescriptions/UnmatchingR6ClassNameInspection.html new file mode 100644 index 000000000..b4bf21a13 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnmatchingR6ClassNameInspection.html @@ -0,0 +1,6 @@ + + +表达式 'UserClass <- R6Class("UserClass")' 中的变量和实参类名应匹配。 +并非严格需要,但它改进了错误消息并使 R6 对象与 S3 泛型一起使用成为可能 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessarilyQualifiedInnerClassAccess.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessarilyQualifiedInnerClassAccess.html new file mode 100644 index 000000000..132de9fb7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessarilyQualifiedInnerClassAccess.html @@ -0,0 +1,23 @@ + + +报告对不必要地用封闭类的名称进行了限定的内部类的任何引用。 +

      此类限定可以安全地移除,这有时会为内部类添加导入。

      +

      示例:

      +
      
      +  class X {
      +     X.Y foo;
      +     class Y{}
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class X {
      +     Y foo;
      +     class Y{}
      +  }
      +
      + +

      使用忽略需要导入的引用选项可忽略对内部类的引用,其中移除限定会添加导入。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessarilyQualifiedStaticUsage.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessarilyQualifiedStaticUsage.html new file mode 100644 index 000000000..87bf61cb2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessarilyQualifiedStaticUsage.html @@ -0,0 +1,52 @@ + + +报告用类名限定的 static 成员的用法。 +

      + 此类限定不必要,并且可以安全移除。 +

      +

      示例:

      +
      
      +  class Foo {
      +    static void foo() {}
      +    static int x;
      +
      +    void bar() {
      +      Foo.foo();
      +      System.out.println(Foo.x);
      +    }
      +
      +    static void baz() { Foo.foo(); }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Foo {
      +    static void foo() {}
      +    static int x;
      +
      +    void bar() {
      +      foo();
      +      System.out.println(x);
      +    }
      +
      +    static void baz() { foo(); }
      +  }
      +
      + +

      + 使用检查选项可以切换以下各项的报告: +

      +
        +
      • +

        static 字段访问:
        void bar() { System.out.println(Foo.x); }

        +
      • +
      • +

        对 static 方法的调用:
        void bar() { Foo.foo(); }

        +
      • +
      +

      + 此外,您可以将检查配置为仅报告 static 上下文中的 static 成员用法。 在这种情况下,只会报告 static void baz() { Foo.foo(); }。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessarilyQualifiedStaticallyImportedElement.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessarilyQualifiedStaticallyImportedElement.html new file mode 100644 index 000000000..785549fad --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessarilyQualifiedStaticallyImportedElement.html @@ -0,0 +1,27 @@ + + +报告用其包含类名限定的静态导入成员的用法。 +

      此类限定不必要且可移除,因为可以通过成员名称直接访问静态导入成员。

      +

      示例:

      +
      
      +  import static foo.Test.WIDTH;
      +
      +  class Bar {
      +    void bar() {
      +      System.out.println(Test.WIDTH);
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  import static foo.Test.WIDTH;
      +
      +  class Bar {
      +    void bar() {
      +      System.out.println(WIDTH);
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryBlockStatement.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryBlockStatement.html new file mode 100644 index 000000000..054589b52 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryBlockStatement.html @@ -0,0 +1,21 @@ + + +报告对程序的语义冗余的代码块,并且可以用其内容替换。 +

      作为 ifdowhilefor 语句主体的代码块将不会被此检查报告。

      +

      示例:

      +
      
      +  void foo() {
      +    { // 不必要
      +      int result = call();
      +      analyze(result);
      +    } // 不必要
      +  }
      +
      + +

      配置检查:

      +

      +使用 忽略 'switch' 语句的分支 选项来忽略用作 switch 语句分支的代码块。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryBoxing.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryBoxing.html new file mode 100644 index 000000000..f9e65b609 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryBoxing.html @@ -0,0 +1,17 @@ + + +报告显式装箱,即将基元值包装到对象中。 +

      对于 Java 5 和更高版本,不必要进行显式手动装箱,并且可以安全移除。

      +

      示例:

      +
        +
      • Integer i = new Integer(1);Integer i = Integer.valueOf(1);
      • +
      • int i = Integer.valueOf(1);int i = 1;
      • +
      + + +

      +使用仅报告真正多余的装箱表达式选项,可仅报告真正多余的装箱,其中的装箱值立即隐式或显式地拆箱。 +在本例中,可以移除整个装箱-拆箱步骤。 该检查不报告简单的显式装箱。 +

      仅当项目或模块的语言级别为 5 或更高时,此检查才会报告。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryBreak.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryBreak.html new file mode 100644 index 000000000..162bd0e74 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryBreak.html @@ -0,0 +1,20 @@ + + +报告任何不必要的 break 语句。 +

      如果 break 语句在被移除后没有执行其他语句,则该语句是不必要的语句。

      +

      示例:

      +
      
      +  switch (e) {
      +    case A -> {
      +        System.out.println("A");
      +        break; // 报告 'break' 为不必要的语句
      +    }
      +    default -> {
      +        System.out.println("Default");
      +        break; // 报告 'break' 为不必要的语句
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryCallToStringValueOf.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryCallToStringValueOf.html new file mode 100644 index 000000000..585074d86 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryCallToStringValueOf.html @@ -0,0 +1,32 @@ + + +报告在不需要显式字符串转换的字符串串联中使用或作为库方法实参使用的静态方法调用,例如 String.valueOf()Integer.toString()。 +

      示例:

      +
      
      +  System.out.println("Number: " + Integer.toString(count));
      +
      +

      在应用快速修复后:

      +
      
      +  System.out.println("Number: " + count);
      +
      + +

      其中显式字符串转换被认为是冗余的库方法:

      +
        +
      • + 类 java.io.PrintWriter, java.io.PrintStream +
        • print(), println()
        +
      • +
      • + 类 java.lang.StringBuilder, java.lang.StringBuffer +
        • append()
        +
      • + +
      • + 类 org.slf4j.Logger +
          +
        • trace(), debug(), info(), warn(), error()
        • +
        +
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryConstantArrayCreationExpression.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryConstantArrayCreationExpression.html new file mode 100644 index 000000000..e00e2333c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryConstantArrayCreationExpression.html @@ -0,0 +1,14 @@ + + +报告可以替换为数组初始值设定项的常量新数组表达式。 数组初始值设定项可以省略类型,因为它已在赋值的左侧指定。 +

      示例:

      +
      
      +  int[] foo = new int[] {42};
      +
      +

      在应用快速修复后:

      +
      
      +  int[] foo = {42};
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryConstructor.html new file mode 100644 index 000000000..d48c62e06 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryConstructor.html @@ -0,0 +1,23 @@ + + +报告不必要的构造函数。 +

      + 如果构造函数是类的唯一构造函数,没有形参,与其包含类具有相同的访问修饰符,并且除了显式或隐式调用不带实参的超类构造函数外,不执行任何初始化,则不需要构造函数。 + 此类构造函数可以安全地移除,因为即使没有指定,它也会由编译器生成。

      +

      示例:

      +
      
      +  public class Foo {
      +    public Foo() {}
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  public class Foo {}
      +
      + +

      +使用检查设置可以忽略具有注解的不必要的构造函数。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryContinue.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryContinue.html new file mode 100644 index 000000000..457dd5cf5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryContinue.html @@ -0,0 +1,34 @@ + + +报告循环中最后能够到达的 continue 语句。 +这些 continue 语句是不必要的语句,可以安全移除。 +

      示例:

      +
      
      +  for (String element: elements) {
      +    System.out.println();
      +    continue;
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  for (String element: elements) {
      +    System.out.println();
      +  }
      +
      +

      该检查不分析 JSP 文件。

      + +

      + 使用在具有 'else' 分支的 'if' 语句的 then 分支中忽略选项可以忽略位于完整 if-else 语句的 then 分支中的 continue语句。 +

      +

      示例:

      +
      
      +  for (String element: elements) {
      +    if(element.isEmpty()) {
      +      continue;
      +    } else {
      +      //...
      +    }
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryContinueJS.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryContinueJS.html new file mode 100644 index 000000000..198426db5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryContinueJS.html @@ -0,0 +1,5 @@ + + +报告循环末尾不必要的 continue 语句。 建议移除这些语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryDefault.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryDefault.html new file mode 100644 index 000000000..2e42dcccb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryDefault.html @@ -0,0 +1,34 @@ + + +报告由于所有可能的值都被 case 分支覆盖而导致其 default 分支绝不会被接受的枚举 switch 语句或表达式。 +

      此类元素冗余,对于 switch 表达式更是如此,因为当 case 分支没有覆盖所有枚举常量时,它们不会进行编译。

      +

      + 需要将语言级别配置为 14,才会报告 switch 表达式。 +

      +

      提供的快速修复可以移除 default 分支。

      +

      示例:

      +
      
      +  enum E { A, B }
      +  int foo(E e) {
      +    return switch (e) {
      +      case A -> 1;
      +      case B -> 2;
      +      default -> 3;
      +    };
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  enum E { A, B }
      +  int foo(E e) {
      +    return switch (e) {
      +      case A -> 1;
      +      case B -> 2;
      +    };
      +  }
      +
      + +

      使用仅报告 switch 表达式选项可以仅报告 switch 表达式中的冗余 default 分支。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryEmptyArrayUsage.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryEmptyArrayUsage.html new file mode 100644 index 000000000..91849e4bd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryEmptyArrayUsage.html @@ -0,0 +1,28 @@ + + +报告数组元素类型的类中有常量时已知长度为零的数组分配。 +由于零长度数组不可变,您可以重用相同的数组实例来节省内存。 +

      示例:

      +
      
      +  class Item {
      +    // 可重用的 public 零长度数组常量 
      +    public static final Item[] EMPTY_ARRAY = new Item[0];
      +  }
      +  class EmptyNode {
      +    Item[] getChildren() {
      +      // 不必要的零长度数组创建
      +      return new Item[0];
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class EmptyNode {
      +    Item[] getChildren() {
      +      return Item.EMPTY_ARRAY;
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryEnumModifier.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryEnumModifier.html new file mode 100644 index 000000000..16b5fa794 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryEnumModifier.html @@ -0,0 +1,17 @@ + + +报告枚举类或其组件上的任何冗余修饰符。 +

      示例:

      +
      
      +public enum UnnecessaryEnumModifier {
      +    Red, Green, Blue;
      +
      +    static enum Inner {
      +        A, B, C
      +    }
      +}
      +
      + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryExplicitNumericCast.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryExplicitNumericCast.html new file mode 100644 index 000000000..7c58503e3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryExplicitNumericCast.html @@ -0,0 +1,12 @@ + + +报告将由编译器隐式插入的基元数字类型转换。 +此外,报告编译器将移除的任何基元数值转换。 +

      示例:

      +
      int x = (short)5; // 该转换将被 javac 工具移除
      +

      在应用快速修复后:

      +int x = 5; + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryFinalOnLocalVariableOrParameter.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryFinalOnLocalVariableOrParameter.html new file mode 100644 index 000000000..cb4896512 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryFinalOnLocalVariableOrParameter.html @@ -0,0 +1,42 @@ + + +报告不必要地声明为 final 的局部变量或形参。 +

      出于简洁的原因,某些编码标准不赞成声明为 final 的变量。

      +

      示例:

      +
      
      +  class Foo {
      +    Foo(Object o) {}
      +
      +    void bar(final Object o) {
      +      new Foo(o);
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Foo {
      +    Foo(Object o) {}
      +
      +    void bar(Object o) {
      +      new Foo(o);
      +    }
      +  }
      +
      + +

      + 使用检查选项可以切换以下各项的报告: +

      +
        +
      • + 局部变量 +
      • +
      • + 形参(包括 catch 块的形参和增强型 for 语句) +
      • +
      +

      + 此外,您可以将检查配置为仅报告 abstract 或接口方法的 final 形参,这可能被认为是多余的,因为此类标记不会影响这些方法的实现。 +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryFullyQualifiedName.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryFullyQualifiedName.html new file mode 100644 index 000000000..2e86fd127 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryFullyQualifiedName.html @@ -0,0 +1,30 @@ + + +报告可以缩短的完全限定类名。 +

      快速修复会缩短完全限定名称并在必要时添加导入语句。

      +

      示例:

      +
      
      +  class ListWrapper {
      +    java.util.List<Integer> l;
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  import java.util.List;
      +  class ListWrapper {
      +    List<Integer> l;
      +  }
      +
      + +

      配置检查:

      + +

      + 使用 在 Java 9 模块语句中忽略 选项忽略 Java 9 providesuses 模块语句中的完全限定名称。 +

      + 在设置| 编辑器 | 代码样式 | Java | 导入 中,请使用以下选项配置检查:

      +
        +
      • 如果应使用外部类限定对内部类的引用,请使用 为内部类插入导入 选项。
      • +
      • 使用在 JavaDoc 中使用完全限定类名 选项允许在 Javadoc 中使用完全限定名称。
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryInheritDoc.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryInheritDoc.html new file mode 100644 index 000000000..ba13737b9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryInheritDoc.html @@ -0,0 +1,31 @@ + + +报告仅包含 {@inheritDoc} 标记的 Javadoc 注释。 由于 Javadoc 会在没有注释的情况下复制超类的注释,因此仅包含 {@inheritDoc} 的注释不会添加任何内容。 +

      此外,它还会报告无效位置(例如,字段)中的 {@inheritDoc} 用法。

      +

      建议移除不必要的 Javadoc 注释。

      +

      示例:

      +
      
      +  class Example implements Comparable<Example> {
      +    /**
      +     * {@inheritDoc}
      +     */
      +    @Override
      +    public int compareTo(Example o) {
      +      return 0;
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Example implements Comparable<Example> {
      +    @Override
      +    public int compareTo(Example o) {
      +      return 0;
      +    }
      +  }
      +
      + +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryInitCause.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryInitCause.html new file mode 100644 index 000000000..806b4ffc6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryInitCause.html @@ -0,0 +1,28 @@ + + +报告对 Throwable.initCause() 的调用,其中异常构造函数还包含 Throwable cause 实参。 +

      在本例中,可以移除 initCause() 调用,并将其实参添加到对异常构造函数的调用中。

      +

      示例:

      +
      
      +  try {
      +      process();
      +  }
      +  catch (RuntimeException ex) {
      +    RuntimeException wrapper = new RuntimeException("Error while processing");
      +    wrapper.initCause(ex); // 不必要调用 'Throwable.initCause()'
      +    throw wrapper;
      +  }
      +
      +

      可通过快速修复将 cause 实参传递给构造函数。 在应用快速修复后:

      +
      
      +  try {
      +      process();
      +  }
      +  catch (RuntimeException ex) {
      +    RuntimeException wrapper = new RuntimeException("Error while processing", ex);
      +    throw wrapper;
      +  }
      +  
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryInterfaceModifier.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryInterfaceModifier.html new file mode 100644 index 000000000..feff5295b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryInterfaceModifier.html @@ -0,0 +1,14 @@ + + +报告接口或接口组件上的任何冗余修饰符并建议删除它们。 +

      例如,abstractpublic 修饰符是冗余的,会被检查报告:

      +
      
      +  abstract interface Printer {
      +    public int size();
      +  }
      +
      + + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryJavaDocLink.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryJavaDocLink.html new file mode 100644 index 000000000..917a27f24 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryJavaDocLink.html @@ -0,0 +1,25 @@ + + +报告引用拥有注释的方法、拥有注释的方法的 super 方法或包含注释的类的 Javadoc @see{@link}{@linkplain} 标记。 +

      此类链接不必要,可以通过此检查的快速修复安全移除。 如果标记是唯一内容,快速修复将移除整个 Javadoc 注释。

      +

      示例:

      +
      
      +  class Example {
      +    /**
      +     * @see Example#method
      +     */
      +    public void method() { }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +class Example {
      +  public void method() { }
      +}
      +
      + +

      +使用下面的复选框可以忽略指向 super 方法的内联链接({@link}{@linkplain})。 尽管 Javadoc 工具会自动添加指向所有 super 方法的链接,但有时在 Javadoc 注释的文本中可能需要指向 super 方法的内联链接。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLabelJS.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLabelJS.html new file mode 100644 index 000000000..a5de648e5 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLabelJS.html @@ -0,0 +1,5 @@ + + +报告未使用的标签。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLabelOnBreakStatement.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLabelOnBreakStatement.html new file mode 100644 index 000000000..3215790dc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLabelOnBreakStatement.html @@ -0,0 +1,23 @@ + + +报告包含不必要标签的 break 语句。 此类标签不会改变控制流,但会导致难以跟随代码。 +

      示例:

      +
      
      +  label:
      +  for(int i = 0; i < 10; i++) {
      +    if (shouldBreak()) break label;
      +    //doSmth
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  label:
      +  for(int i = 0; i < 10; i++) {
      +    if (shouldBreak()) break;
      +    //doSmth
      +  }
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLabelOnBreakStatementJS.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLabelOnBreakStatementJS.html new file mode 100644 index 000000000..420b834ba --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLabelOnBreakStatementJS.html @@ -0,0 +1,5 @@ + + +报告可以在不更改控制流的情况下移除其标签的 break 标签语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLabelOnContinueStatement.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLabelOnContinueStatement.html new file mode 100644 index 000000000..595158802 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLabelOnContinueStatement.html @@ -0,0 +1,17 @@ + + +报告包含不必要标签的 continue 语句。 +

      示例:

      +
      
      +  LABEL:
      +  while (a > b) {
      +    System.out.println("Hello");
      +    //下面的代码是循环中的最后一条语句,
      +    //因此可以移除不必要的标签和 continue
      +    continue LABEL;
      +  }
      +
      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLabelOnContinueStatementJS.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLabelOnContinueStatementJS.html new file mode 100644 index 000000000..a878d3eb0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLabelOnContinueStatementJS.html @@ -0,0 +1,5 @@ + + +报告可以在不更改控制流的情况下移除其标签的 continue 标签语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLocalVariable.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLocalVariable.html new file mode 100644 index 000000000..6c390e900 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLocalVariable.html @@ -0,0 +1,30 @@ + + +报告不必要的、不会增加方法的可理解性的局部变量,包括: +
        +
      • 立即返回的局部变量。
      • +
      • 立刻赋值给另一个变量并且不再使用的局部变量。
      • +
      • 始终与另一个局部变量或形参具有相同值的局部变量。
      • +
      +

      示例:

      +
      
      +  boolean yes() {
      +    boolean b = true;
      +    return b;
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  boolean yes() {
      +    return true;
      +  }
      +  
      + +

      配置检查:

      +
        +
      • 使用忽略立即返回或抛出的变量选项可以忽略立即返回或抛出的变量。 + 为清晰起见和易于调试,某些编码样式建议使用此类变量。
      • +
      • 使用忽略具有注解的变量选项可以忽略注解的变量。
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLocalVariableJS.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLocalVariableJS.html new file mode 100644 index 000000000..a4f7c4abd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryLocalVariableJS.html @@ -0,0 +1,12 @@ + + +报告不会让函数更易于理解的不必要局部变量:
        +
      • 立刻返回的局部变量
      • +
      • 立刻赋值给另一个变量并且不再使用的局部变量
      • +
      • 总是与另一个局部变量或形参的值相同的局部变量。
      + +

      +使用下面的复选框以使该检查忽略立刻返回或抛出的变量。 为清晰起见和易于调试,某些编码样式建议使用此类变量。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryModuleDependencyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryModuleDependencyInspection.html new file mode 100644 index 000000000..e5e996fc3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryModuleDependencyInspection.html @@ -0,0 +1,5 @@ + + +报告对未使用的模块的依赖。 该快速修复可以安全移除这些未使用的依赖项。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryParentheses.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryParentheses.html new file mode 100644 index 000000000..64faad8f0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryParentheses.html @@ -0,0 +1,24 @@ + + +报告任何不必要的圆括号。 +

      如果移除圆括号后表达式的评估顺序保持不变,则不需要圆括号。

      +

      示例:

      +
      
      +  int n = 3 + (9 * 8);
      +
      +

      在应用快速修复后:

      +
      
      +  int n = 3 + 9 * 8;
      +
      + +

      配置检查:

      +
        +
      • 使用忽略澄清圆括号选项可忽略有助于明确二元表达式的圆括号。 圆括号澄清被括起来的表达式是一个 instanceof 更大表达式一部分的表达式或包含与父表达式不同运算符。
      • +
      • 使用忽略条件表达式条件周围的圆括号选项以忽略条件表达式条件周围的任何圆括号。 一些编码标准规定所有这些条件都必须用圆括号括起来。
      • +
      • + 使用忽略单个非正式类型 lambda 形参周围的圆括号选项可忽略 lambda 表达式中单个 lambda 形参周围的圆括号。 +
      • +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryPartialFunction.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryPartialFunction.html new file mode 100644 index 000000000..e4632eee0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryPartialFunction.html @@ -0,0 +1,16 @@ + + +

      报告可以替换为普通函数的部分函数。

      +

      示例:

      +
      
      +  Seq(1).foreach {
      +    case _ => 3
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  Seq(1).foreach(_ => 3)
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryQualifiedReference.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryQualifiedReference.html new file mode 100644 index 000000000..cf2dd7848 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryQualifiedReference.html @@ -0,0 +1,15 @@ + + +

      报告可以替换为 import 的完全限定引用。

      +

      示例:

      +
      
      +  def swingBuilder = new groovy.swing.SwingBuilder()
      +
      +

      在应用快速修复后:

      +
      
      +  import groovy.swing.SwingBuilder
      + 
      +  def swingBuilder = new SwingBuilder()
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryQualifierForThis.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryQualifierForThis.html new file mode 100644 index 000000000..6c5faa27b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryQualifierForThis.html @@ -0,0 +1,32 @@ + + +报告不必要的 thissuper 限定。 +

      + 在 thissuper 上使用限定符来消除代码引用的歧义可能很容易通过自动重构变得不必要,为了清楚起见应该删除。

      +

      示例:

      +
      
      +  class Foo {
      +    void foo() {}
      +  }
      +
      +  class Bar extends Foo {
      +    void bar() {
      +      Bar.super.foo();
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Foo {
      +    void foo() {}
      +  }
      +
      +  class Bar extends Foo {
      +    void bar() {
      +      super.foo();
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryRecordModifier.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryRecordModifier.html new file mode 100644 index 000000000..7dd70e2ff --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryRecordModifier.html @@ -0,0 +1,17 @@ + + +报告记录上冗余的 finalstatic 修饰符。 +

      示例:

      +
      
      +final record R() {
      +}
      +
      +class Test {
      +  static record R() {
      +  }
      +}
      +
      + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryReturn.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryReturn.html new file mode 100644 index 000000000..bbcfdb46d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryReturn.html @@ -0,0 +1,22 @@ + + +报告返回 void 的构造函数和方法结尾的 return 语句。 这些语句冗余,可以安全移除。 +

      此检查不会在 JSP 文件中报告。 +

      示例:

      +
      
      +  void message() {
      +    System.out.println("Hello World");
      +    return;
      +  }
      +
      +

      在应用快速修复后: +

      
      +  void message() {
      +    System.out.println("Hello World");
      +  }
      +
      + +

      +使用在具有 'else' 分支的 'if' 语句的 then 分支中忽略选项可以忽略也有 else 分支的 if 语句的 then 分支中的 return 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryReturnJS.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryReturnJS.html new file mode 100644 index 000000000..66ab46608 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryReturnJS.html @@ -0,0 +1,6 @@ + + +报告不必要的 return 语句,即不返回值并且刚好在函数'贯穿'底部之前发生的 return 语句。 +这些语句可以安全移除。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessarySemicolon.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessarySemicolon.html new file mode 100644 index 000000000..71cb71678 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessarySemicolon.html @@ -0,0 +1,30 @@ + + +报告任何不必要的分号,包括在类成员之间、块语句内部或类定义之后使用的分号。 +

      尽管这些分号在 Java 中有效,但它们是冗余的,可以被删除。

      +

      示例:

      +
      
      +  class C {
      +    ;
      +    void m() throws Exception {
      +        try (AutoCloseable r1 = createAutoCloseable();) {
      +          ;
      +        }
      +    }
      +    ;
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class C {
      +    void m() throws Exception {
      +      try (AutoCloseable r1 = createAutoCloseable()) {
      +      }
      +    }
      +  }
      +
      + +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryStaticInjection.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryStaticInjection.html new file mode 100644 index 000000000..70666fb8d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryStaticInjection.html @@ -0,0 +1,5 @@ + + +

      报告传递给 requestStaticInjection() 方法但没有使用 @Inject 注解的任何 static 成员或字段的类。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryStringEscape.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryStringEscape.html new file mode 100644 index 000000000..132b04620 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryStringEscape.html @@ -0,0 +1,22 @@ + + +报告 Stringchar 文字(可选)中不必要的转义字符。 +

      不会报告转义的制表符字符 \t,因为它原本不可见。

      +

      示例:

      +
      
      +  String s = "\'Scare\' quotes";
      +  String t = """
      +    All you need is\n\tLove\n""";
      +
      +

      在应用快速修复后:

      +
      
      +  String s = "'Scare' quotes";
      +  String t = """
      +    All you need is
      +    \tLove
      +  """;
      +
      + +

      2019.3 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessarySuperConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessarySuperConstructor.html new file mode 100644 index 000000000..cebc38390 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessarySuperConstructor.html @@ -0,0 +1,22 @@ + + +报告在对象构造期间对无实参超类构造函数的调用。 +

      此类调用不必要,可以移除。

      +

      示例:

      +
      
      +  class Foo {
      +    Foo() {
      +      super();
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Foo {
      +    Foo() {
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessarySuperQualifier.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessarySuperQualifier.html new file mode 100644 index 000000000..0ad8d1861 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessarySuperQualifier.html @@ -0,0 +1,43 @@ + + +报告方法调用和字段引用中不必要的 super 限定符。 +

      + 当超类的字段或方法在调用类中未被隐藏/重写时,不需要 super 限定符。 +

      +

      示例:

      +
      
      +  class Foo {
      +    void foo() {}
      +  }
      +
      +  class Bar extends Foo {
      +    void bar() {
      +      super.foo();
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Foo {
      +    void foo() {}
      +  }
      +
      +  class Bar extends Foo {
      +    void bar() {
      +      foo();
      +    }
      +  }
      +
      + +

      + 使用检查设置可以忽略有助于区分超类成员访问与外部类的同名成员的限定符。 +

      +

      + 另请参阅以下检查: +

      +
        +
      • Java | 可见性 | 继承字段的访问类似于访问周围代码中的元素
      • +
      • Java | 可见性 | 对继承方法的调用类似于对局部方法的调用
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryTemporaryOnConversionFromString.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryTemporaryOnConversionFromString.html new file mode 100644 index 000000000..e17370ee1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryTemporaryOnConversionFromString.html @@ -0,0 +1,16 @@ + + +报告从 String 转换为基元类型时创建的不必要的临时对象。 +

      示例:

      +
      
      +  new Integer("3").intValue()
      +
      +

      在应用快速修复后:

      +
      
      +  Integer.valueOf("3")
      +
      + +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryTemporaryOnConversionToString.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryTemporaryOnConversionToString.html new file mode 100644 index 000000000..b5879b279 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryTemporaryOnConversionToString.html @@ -0,0 +1,14 @@ + + +报告从基元类型转换为 String 时创建的不必要的临时对象。 +

      示例:

      +
      
      +  String foo = new Integer(3).toString();
      +
      +

      在应用快速修复后:

      +
      
      +  String foo = Integer.toString(3);
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryThis.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryThis.html new file mode 100644 index 000000000..60a16ff95 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryThis.html @@ -0,0 +1,31 @@ + + +报告不必要的 this 限定符。 +

      + 使用 this 来消除代码引用的歧义在许多编码样式中都不受鼓励,并且很容易通过自动重构变得不必要。 +

      +

      示例:

      +
      
      +  class Foo {
      +    int x;
      +    void foo() {
      +      this.x = 2;
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Foo {
      +    int x;
      +    void foo() {
      +      x = 2;
      +    }
      +  }
      +
      + +

      + 使用检查设置可以忽略对字段的赋值。 + 例如,this.x = 2; 不会被报告,但 int y = this.x; 会被报告。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryToStringCall.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryToStringCall.html new file mode 100644 index 000000000..548a3fa3f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryToStringCall.html @@ -0,0 +1,25 @@ + + +报告在以下情况下使用的 toString() 调用: +

        +
      • 在字符串串联中
      • +
      • java.lang.StringBuilder#append()java.lang.StringBuffer#append() 方法中
      • +
      • java.io.PrintWriterjava.io.PrintStream 的方法中
      • +
      • org.slf4j.Logger 的方法中
      • +
      +

      在这些情况下,转换为字符串将由底层库方法处理,不需要显式调用 toString()

      +

      示例:

      +
      
      +  System.out.println(this.toString())
      +
      +

      在应用快速修复后:

      +
      
      +  System.out.println(this)
      +
      + +

      + 请注意,没有 toString() 调用,代码语义可能会有所不同:如果表达式为 null,则将使用 null 字符串,而不是抛出 NullPointerException

      +

      使用 仅在已知限定符为非 null 时报告 选项以避免对可能为 null 的值发出警告。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryUnaryMinus.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryUnaryMinus.html new file mode 100644 index 000000000..30a94fdf1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryUnaryMinus.html @@ -0,0 +1,33 @@ + + +报告不必要的一元减号。 此类表达式可能难以理解并且可能包含错误。 +

      示例:

      +
      void unaryMinus(int i) {
      +    int x = - -i;
      +  }
      +

      此处建议使用以下快速修复:

      +
        +
      • 移除 i 变量前的 - 运算符:

        +
        void unaryMinus(int i) {
        +    int x = i;
        +  }
        +
      • +
      • +

        使用前缀递减运算符替换 - 运算符:

        +
        void unaryMinus(int i) {
        +    int x = --i;
        +  }
        +
      • +
      + +

      另一个示例:

      +
      void unaryMinus(int i) {
      +    i += - 8;
      +  }
      +

      在应用快速修复后:

      +
      void unaryMinus(int i) {
      +    i -= 8;
      +  }
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryUnboxing.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryUnboxing.html new file mode 100644 index 000000000..473507928 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryUnboxing.html @@ -0,0 +1,17 @@ + + +报告取消装箱,即显式解包已包装的基元值。 +

      对于 Java 5 和更高版本,不必要进行拆箱,并且可以安全移除。

      +

      示例:

      +
        +
      • Integer i = Integer.valueOf(42).intValue();Integer i = Integer.valueOf(42);
      • +
      • int k = Integer.valueOf(42).intValue();int k = Integer.valueOf(42); +

        (仅在未选中仅报告真正多余的拆箱表达式选项时报告)

      • +
      + +

      + 使用仅报告真正多余的拆箱表达式选项,可仅报告真正多余的拆箱,其中的拆箱值立即隐式或显式地装箱。 + 在本例中,可以移除整个拆箱-装箱步骤。 该检查不报告简单的显式拆箱。

      +

      仅当项目或模块的语言级别为 5 或更高时,此检查才会报告。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryUnicodeEscape.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryUnicodeEscape.html new file mode 100644 index 000000000..35aeec702 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryUnicodeEscape.html @@ -0,0 +1,9 @@ + + +报告不必要的 unicode 转义序列。 例如,当文件编码可以在不转义的情况下处理字符时。 +此检查不报告 Unicode 控制字符(换行符和制表符除外)。 +

      示例:

      +
      String s = "\u0062";
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryVariable.html b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryVariable.html new file mode 100644 index 000000000..f77c24641 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnnecessaryVariable.html @@ -0,0 +1,6 @@ + + +报告仅恰好在下一个 return 语句或其他变量的确切副本中使用的局部变量。 +

      可以安全地内联此类变量,以使代码更加清晰易懂。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnparsedCustomBeanInspection.html b/original-plugin-raw/zh/inspectionDescriptions/UnparsedCustomBeanInspection.html new file mode 100644 index 000000000..697ee4619 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnparsedCustomBeanInspection.html @@ -0,0 +1,5 @@ + + +

      报告尚未解析的未知 Spring Bean 类型,或者 Bean 是否对自定义命名空间使用了不受支持的标记。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnpredictableBigDecimalConstructorCall.html b/original-plugin-raw/zh/inspectionDescriptions/UnpredictableBigDecimalConstructorCall.html new file mode 100644 index 000000000..ea044ed22 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnpredictableBigDecimalConstructorCall.html @@ -0,0 +1,26 @@ + + +报告对接受 double 值的 BigDecimal 构造函数的调用。 +这些构造函数生成正好等于提供的 double 值的 BigDecimal。 +但是,由于 double 是以 IEEE 754 64 位双精度二进制浮点格式进行编码,确切值可能出乎意料。 +

      例如,new BigDecimal(0.1) 会生成一个 BigDecimal 对象。 它的值为 0.1000000000000000055511151231257827021181583404541015625,这是最接近 0.1 的数字,可以表示为 double。 + 要获取存储的值与源代码中编写的值相同的 BigDecimal,请使用 new BigDecimal("0.1")BigDecimal.valueOf(0.1)

      +

      示例:

      +
      
      +  class Constructor {
      +    void foo() {
      +      new BigDecimal(0.1);
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Constructor {
      +    void foo() {
      +      new BigDecimal("0.1");
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnqualifiedFieldAccess.html b/original-plugin-raw/zh/inspectionDescriptions/UnqualifiedFieldAccess.html new file mode 100644 index 000000000..bf516fedf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnqualifiedFieldAccess.html @@ -0,0 +1,29 @@ + + +报告未使用 this 或某些其他限定符限定的字段访问操作。 +

      + 某些编码样式要求对所有字段访问操作进行限定,以防止与局部变量或局部形参访问混淆。 +

      +

      示例:

      +
      
      +  class Foo {
      +    int foo;
      +
      +    void bar() {
      +      foo += 1;
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Foo {
      +    int foo;
      +
      +    void bar() {
      +      this.foo += 1;
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnqualifiedInnerClassAccess.html b/original-plugin-raw/zh/inspectionDescriptions/UnqualifiedInnerClassAccess.html new file mode 100644 index 000000000..c8b5ac62e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnqualifiedInnerClassAccess.html @@ -0,0 +1,31 @@ + + +报告对未使用封闭类名称限定的内部类的引用。 +

      示例:

      +
      
      +  import foo.Foo.Bar;
      +
      +  class Foo {
      +    class Bar {}
      +  }
      +
      +  class Baz {
      +    void f(Bar bar) {}
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Foo {
      +    class Bar {}
      +  }
      +
      +  class Baz {
      +    void f(Foo.Bar bar) {}
      +  }
      +
      + +

      + 使用检查设置可以忽略对同一类中的内部类的引用,因此这些类不需要导入。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnqualifiedMethodAccess.html b/original-plugin-raw/zh/inspectionDescriptions/UnqualifiedMethodAccess.html new file mode 100644 index 000000000..67f4dc62d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnqualifiedMethodAccess.html @@ -0,0 +1,26 @@ + + +报告对同一实例上未使用 this 限定的非 static 方法的调用。 +

      示例:

      +
      
      +  class Foo {
      +    void bar() {}
      +
      +    void foo() {
      +      bar();
      +    }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Foo {
      +    void bar() {}
      +
      +    void foo() {
      +      this.bar();
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnqualifiedStaticUsage.html b/original-plugin-raw/zh/inspectionDescriptions/UnqualifiedStaticUsage.html new file mode 100644 index 000000000..e6ac0322f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnqualifiedStaticUsage.html @@ -0,0 +1,57 @@ + + +报告未用类名称限定的 static 成员的用法。 +

      +如果 static 成员在同一个类中,是合法的,但可能令人困惑。 +

      +

      示例:

      +
      
      +  class Foo {
      +    static void foo() {}
      +    static int x;
      +
      +    void bar() {
      +      foo();
      +      System.out.println(x);
      +    }
      +
      +    static void baz() { foo(); }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Foo {
      +    static void foo() {}
      +    static int x;
      +
      +    void bar() {
      +      Foo.foo();
      +      System.out.println(Foo.x);
      +    }
      +
      +    static void baz() { Foo.foo(); }
      +  }
      +
      + +

      使用检查设置可以切换以下各项的报告:

      +
        +
      • +

        + static 字段访问
        + void bar() { System.out.println(x); } +

        +
      • +
      • +

        + 对 static 方法的调用
        + void bar() { foo(); }
        + static void baz() { foo(); } +

        +
      • +
      +

      + 您还可以将检查配置为仅报告来自非 static 上下文的 static 成员用法。 + 在上面的示例中,不会报告 static void baz() { foo(); }。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnreachableCallsOfFunction.html b/original-plugin-raw/zh/inspectionDescriptions/UnreachableCallsOfFunction.html new file mode 100644 index 000000000..235b59f35 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnreachableCallsOfFunction.html @@ -0,0 +1,6 @@ + + +报告其调用从未使用的函数。 此类函数也永远不会执行。 +

      2021.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnreachableCode.html b/original-plugin-raw/zh/inspectionDescriptions/UnreachableCode.html new file mode 100644 index 000000000..349a0cdc2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnreachableCode.html @@ -0,0 +1,5 @@ + + +报告从未在任何控制流中执行并且可以安全移除的代码段。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnreachableCodeJS.html b/original-plugin-raw/zh/inspectionDescriptions/UnreachableCodeJS.html new file mode 100644 index 000000000..91ef5b4a8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnreachableCodeJS.html @@ -0,0 +1,5 @@ + + +报告永远无法执行的代码,这几乎肯定表明有错误 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnregisteredActivator.html b/original-plugin-raw/zh/inspectionDescriptions/UnregisteredActivator.html new file mode 100644 index 000000000..08c733be6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnregisteredActivator.html @@ -0,0 +1,7 @@ + + +

      + 报告未在清单或 facet 配置中注册的实现 BundleActivator 的类。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnregisteredNamedColor.html b/original-plugin-raw/zh/inspectionDescriptions/UnregisteredNamedColor.html new file mode 100644 index 000000000..d4c21e6b6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnregisteredNamedColor.html @@ -0,0 +1,14 @@ + + +报告具有未注册键的 JBColor.namedColor() 的用法。 +

      + 所有键都必须使用 *.themeMetadata.json 中的相应元数据进行注册。 +

      +

      + 快速修复会提供对所有已知 *.themeMetadata.json 候选文件的导航,从而添加必要的条目。 +

      +

      + 有关更多信息,请参阅 SDK 文档中的公开主题元数据。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnresolvedCollectionMessage.html b/original-plugin-raw/zh/inspectionDescriptions/UnresolvedCollectionMessage.html new file mode 100644 index 000000000..0a608e6fb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnresolvedCollectionMessage.html @@ -0,0 +1,5 @@ + + + 报告在 for..in 循环中使用且不符合 NSFastEnumeration 协议的表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnresolvedMessage.html b/original-plugin-raw/zh/inspectionDescriptions/UnresolvedMessage.html new file mode 100644 index 000000000..7050b6a99 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnresolvedMessage.html @@ -0,0 +1,5 @@ + + + 报告在项目范围内没有目标方法的发送消息表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnresolvedMessageChannel.html b/original-plugin-raw/zh/inspectionDescriptions/UnresolvedMessageChannel.html new file mode 100644 index 000000000..4612072ca --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnresolvedMessageChannel.html @@ -0,0 +1,27 @@ + + +

      报告端点方法注解中不正确的通道特性: +@Gateway、 +@ServiceActivator、 +@Filter 等。

      + +

      示例:

      + +
      
      +  @Component
      +  public class MyComponent {}
      +     @Gateway(requestChannel = "requestChannel", replyChannel = "replyChannel")
      +     public void gateway() {...}
      +
      +     @Gateway(
      +        requestChannel ="simpleBean",   // Bean 必须为以下一种类型:org.springframework.integration.MessageChannel,org.springframework.messaging.MessageChannel
      +        replyChannel = "unknownChannel")   // 找不到通道
      +     public void errors() {...}
      +
      +     @Bean
      +     public MyBean simpleBean() {...}
      +  }
      +
      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnresolvedPluginConfigReference.html b/original-plugin-raw/zh/inspectionDescriptions/UnresolvedPluginConfigReference.html new file mode 100644 index 000000000..bdb45be57 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnresolvedPluginConfigReference.html @@ -0,0 +1,17 @@ + + +报告对插件配置元素的未解析引用。 +

      + 使用未知 id 引用扩展程序可能在运行时导致错误。 +

      +

      + 支持以下扩展点: +

        +
      • 资源包 advanced.setting.* 键中的 com.intellij.advancedSetting
      • +
      • Experiments.isFeatureEnabled()/setFeatureEnabled() 中的 com.intellij.experimentalFeature
      • +
      • Notification 构造函数和 NotificationGroupManager.getNotificationGroup() 中的 com.intellij.notificationGroup
      • +
      • Registry 方法 key 形参中的 com.intellij.registryKey
      • +
      • 资源包 toolwindow.stripe.* 键中的 com.intellij.toolWindow
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnresolvedPropertyKey.html b/original-plugin-raw/zh/inspectionDescriptions/UnresolvedPropertyKey.html new file mode 100644 index 000000000..76bfb5193 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnresolvedPropertyKey.html @@ -0,0 +1,14 @@ + + +报告传递给形参注解为 @PropertyKey 的方法的无效实参。 +

      这些实参应为相应属性文件中的有效属性键。 +此外,该检查还将验证 @PropertyKey 注解的 resourceBundle 实参是否为现有的资源包。

      +

      + 使用该快速修复可以创建新属性或选择现有属性。 +

      +

      示例:

      +
      
      +  @PropertyKey(resourceBundle = "myBundle") String value = "invalid.key";
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnresolvedReference.html b/original-plugin-raw/zh/inspectionDescriptions/UnresolvedReference.html new file mode 100644 index 000000000..3061c2d87 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnresolvedReference.html @@ -0,0 +1,6 @@ + + +报告使用 XML 语法的 RELAX-NG 文件中对命名模式 (define) 的未解析引用。 +建议创建引用的 define 元素。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnresolvedRestParam.html b/original-plugin-raw/zh/inspectionDescriptions/UnresolvedRestParam.html new file mode 100644 index 000000000..93d767f14 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnresolvedRestParam.html @@ -0,0 +1,12 @@ + + +

      报告在方法签名中声明但在 URL 路径中缺失或者在 URL 路径中声明但在方法签名中缺失的 @PathParam 形参。

      +

      示例:

      +
      
      +  @Get("/path/{myVariable}/")
      +  public String handler(@PathParam("name_is_not_equal_to_myVariable") String myVariable) { // 错误
      +    return "...";
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnsafeCastFromDynamic.html b/original-plugin-raw/zh/inspectionDescriptions/UnsafeCastFromDynamic.html new file mode 100644 index 000000000..41f764bc1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnsafeCastFromDynamic.html @@ -0,0 +1,5 @@ + + +报告指定检查范围内可隐式转换为其他类型的动态类型表达式。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnsafeReturnStatementVisitor.html b/original-plugin-raw/zh/inspectionDescriptions/UnsafeReturnStatementVisitor.html new file mode 100644 index 000000000..3e4be1567 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnsafeReturnStatementVisitor.html @@ -0,0 +1,11 @@ + + +报告 JavaRecursiveElementVisitor.visitReturnStatement() 的不安全用法。 +

      + 即使 PsiReturnStatement 属于另一个 PsiClass,也进行处理,否则在大多数情况下,PsiLambdaExpression 会成为错误。 +

      +

      + 该快速修复会插入必要的显式 visitClass()/visitLambdaExpression() 方法。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnsafeVfsRecursion.html b/original-plugin-raw/zh/inspectionDescriptions/UnsafeVfsRecursion.html new file mode 100644 index 000000000..fe5c98127 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnsafeVfsRecursion.html @@ -0,0 +1,9 @@ + + +报告递归方法中 VirtualFile.getChildren() 的用法。 +

      + 对循环符号链接迭代时,这可能导致无限循环。 + 请改用 VfsUtilCore.visitChildrenRecursively()。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnsatisfiedRange.html b/original-plugin-raw/zh/inspectionDescriptions/UnsatisfiedRange.html new file mode 100644 index 000000000..6befab91b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnsatisfiedRange.html @@ -0,0 +1,25 @@ + + +报告从不符合所声明方法返回范围的方法返回的数值。 +您可以使用许多注解声明方法的返回范围: +
        +
      • JetBrains 注解软件包中的 org.jetbrains.annotations.Range(指定 'from' 和 'to')
      • +
      • Checker Framework 注解软件包中的 org.checkerframework.common.value.qual.IntRange(指定 'from' 和 'to')
      • +
      • Checker Framework 注解软件包中的 org.checkerframework.checker.index.qual.GTENegativeOne(范围为 '>= -1')
      • +
      • Checker Framework 注解软件包中的 org.checkerframework.checker.index.qual.NonNegative(范围为 '>= 0')
      • +
      • Checker Framework 注解软件包中的 org.checkerframework.checker.index.qual.Positive(范围为 '> 0')
      • +
      • JSR 305 注解软件包中的 javax.annotation.Nonnegative(范围为 '>= 0')
      • +
      • javax.validation.constraints.Min(指定最小值)
      • +
      • javax.validation.constraints.Max(指定最大值)
      • +
      +

      示例:

      +
      
      +  @Range(from = 0, to = Integer.MAX_VALUE) int getValue() {
      +    // 警告:-1 超出声明的范围
      +    return -1;
      +  }
      +
      + +

      2021.2 最新变化

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnsecureRandomNumberGeneration.html b/original-plugin-raw/zh/inspectionDescriptions/UnsecureRandomNumberGeneration.html new file mode 100644 index 000000000..86868f58b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnsecureRandomNumberGeneration.html @@ -0,0 +1,13 @@ + + +报告任何使用 java.lang.Randomjava.lang.Math.random() 的情况。 +

      + 在安全环境中,java.secure.SecureRandom 是更好的选择,因为它提供加密安全的随机数生成。 +

      +

      示例:

      +
      
      +  long token = new Random().nextLong();
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnstableApiUsage.html b/original-plugin-raw/zh/inspectionDescriptions/UnstableApiUsage.html new file mode 100644 index 000000000..a06752ecd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnstableApiUsage.html @@ -0,0 +1,10 @@ + + +报告使用一个注解标记为不稳定的 API 的用法。 将来的版本中可能更改或移除此类 API,从而破坏使用这些 API 的代码。 + +

      用于标记不稳定 API 的注解显示在以下列表中。

      +

      默认情况下,如果不稳定 API 的声明位于同一项目源中,该检查会忽略这些 API 的用法。 在此类情况下,更改 API 时可以更新用法。 + 但是,如果项目很大,则可能不太方便,因此,您可以关闭忽略此项目中声明的 API 选项,从而报告在项目源和库中均已声明的不稳定 API。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnstableTypeUsedInSignature.html b/original-plugin-raw/zh/inspectionDescriptions/UnstableTypeUsedInSignature.html new file mode 100644 index 000000000..b6e9b76a9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnstableTypeUsedInSignature.html @@ -0,0 +1,12 @@ + + +报告在签名中引用不稳定 API 类型,但没有使用相同的不稳定注解进行标记的类、方法和字段的声明。 +

      + 此检查可以确保公共 API 的签名不会公开任何不稳定(内部、实验性)类型。 + 例如,如果方法返回实验性类,则会将该方法视为实验性方法, +因为对类型的不兼容变更(删除或移到另一个软件包)会导致不兼容的方法签名变更。 +

      + +

      使用下面的列表可以指定标记不稳定 API 的注解。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnterminatedStatementJS.html b/original-plugin-raw/zh/inspectionDescriptions/UnterminatedStatementJS.html new file mode 100644 index 000000000..e837cd75e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnterminatedStatementJS.html @@ -0,0 +1,8 @@ + + +报告结尾不带分号或换行符的语句。 +

      编辑器 | 代码样式 | JavaScript 或 TypeScript - 标点符号中选择“用分号结束语句”选项,报告任何不以分号结尾的语句,即使末尾使用了换行符时也报告。 +根据某些编码样式,为了与其他语言相一致,分号比换行符更可取。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedAssignment.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedAssignment.html new file mode 100644 index 000000000..1dce6d22d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedAssignment.html @@ -0,0 +1,42 @@ + + +报告赋值后未使用的赋值。 +如果不使用,最好移除该赋值,以缩短代码并避免冗余分配。 +

      报告的情况如下:

      +
        +
      • 该变量在赋值后从未被读取。
      • +
      • 该变量在被读取前始终被新值重写。
      • +
      • 变量初始值设定项冗余(出于以上两种原因之一)。
      • +
      + +

      配置检查:

      +

      +使用报告冗余初始值设定项选项可以报告冗余的初始值设定项: +

      +
      
      +  int getI() {
      +    int i = 0; // 冗余初始化
      +    i = 2;
      +    return i;
      +  }
      +
      +

      +使用在可以替换为(i + 1)时报告 ++i 选项,报告 ++i 表达式可以替换为 i + 1 的情况: +

      +
      
      +  int preInc(int i) {
      +    int res = i;
      +    return ++res;
      +  }
      +
      +

      +使用在变更后的值后续未使用时报告 i++ 选项可以报告后续不使用 i++ 表达式的结果的情况: +

      +
      
      +  int postInc(int i) {
      +    int res = i;
      +    return res++;
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedCatchParameterJS.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedCatchParameterJS.html new file mode 100644 index 000000000..f34689976 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedCatchParameterJS.html @@ -0,0 +1,10 @@ + + +报告未在相应的块中使用的 catch 形参。 将忽略名称为 ignoreignoredcatch 形参。 + +

      + 使用下面的复选框对包含注释的 +catch 块禁用此检查。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedDataClassCopyResult.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedDataClassCopyResult.html new file mode 100644 index 000000000..ee63f337f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedDataClassCopyResult.html @@ -0,0 +1,5 @@ + + +报告未使用其结果的数据类 copy 函数调用。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedDefine.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedDefine.html new file mode 100644 index 000000000..b253aaae3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedDefine.html @@ -0,0 +1,6 @@ + + +报告 RELAX-NG 文件 (XML 或 Compact 语法) 中未使用的命名模式 (define)。 +通过另一个文件中的 include 使用的 define 元素将被忽略。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedEquals.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedEquals.html new file mode 100644 index 000000000..5af18f46e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedEquals.html @@ -0,0 +1,5 @@ + + +报告未使用的 equals(==) 表达式。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedExpressionResult.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedExpressionResult.html new file mode 100644 index 000000000..aa8b196c2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedExpressionResult.html @@ -0,0 +1,5 @@ + + +报告具有未使用结果的表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedImportStatement.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedImportStatement.html new file mode 100644 index 000000000..27ae73ef8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedImportStatement.html @@ -0,0 +1,5 @@ + + +报告可以安全移除的未使用或不需要的 import。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedLabel.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedLabel.html new file mode 100644 index 000000000..0552017bb --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedLabel.html @@ -0,0 +1,22 @@ + + +报告不是任何 breakcontinue 语句目标的标签。 +

      示例:

      +
      
      +  label: for (int i = 0; i < 10; i++) {
      +    if (i == 3) {
      +      break;
      +    }
      +  }
      +
      +

      应用快速修复后,该标签将被移除:

      +
      
      +  for (int i = 0; i < 10; i++) {
      +    if (i == 3) {
      +      break;
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedLambdaExpressionBody.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedLambdaExpressionBody.html new file mode 100644 index 000000000..152e8d47e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedLambdaExpressionBody.html @@ -0,0 +1,25 @@ + + +报告调用的函数从表达式主体返回 lambda 时返回值并未使用的调用。 +

      +如果函数头和主体块之间存在 =,则不会评估函数中的代码,这可能导致不正确的行为。 +

      +

      从函数声明中移除 = 令牌可用于自动修正代码。

      +

      示例:

      +
      
      +  fun printHello() = { println("Hello") }
      +
      +  fun main() {
      +      printHello() // 此函数不打印任何内容
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun printHello() { println("Hello") }
      +
      +  fun main() {
      +      printHello()
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedLibrary.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedLibrary.html new file mode 100644 index 000000000..7b718678a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedLibrary.html @@ -0,0 +1,8 @@ + + +报告附加到指定检查范围但未直接在代码中使用的库。 + +

      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedLocalVariable.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedLocalVariable.html new file mode 100644 index 000000000..d02480bc4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedLocalVariable.html @@ -0,0 +1,6 @@ + + +报告已声明但从未访问以读取的局部变量。 +可以安全地移除此类声明和赋值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedLocalization.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedLocalization.html new file mode 100644 index 000000000..5183f934e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedLocalization.html @@ -0,0 +1,4 @@ + + +报告 .strings 文件中从未使用过的字符串本地化。 + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedMainParameter.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedMainParameter.html new file mode 100644 index 000000000..c8c82f3fc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedMainParameter.html @@ -0,0 +1,5 @@ + + +报告带有单个未使用形参的 main 函数。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedMessageFormatParameter.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedMessageFormatParameter.html new file mode 100644 index 000000000..0e868e9a3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedMessageFormatParameter.html @@ -0,0 +1,11 @@ + + +报告类似于 java.text.MessageFormat 格式字符串但不使用某些 {xx} 类型形参的属性值。 +

      示例:

      +
      
      +#未使用形参 {0}
      +error.message=第 {1} 行有问题
      +  
      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedParameter.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedParameter.html new file mode 100644 index 000000000..56bc37963 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedParameter.html @@ -0,0 +1,5 @@ + + +报告已声明但从未访问以读取并且可以安全移除的形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedProperty.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedProperty.html new file mode 100644 index 000000000..ffbc46fe7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedProperty.html @@ -0,0 +1,5 @@ + + +报告所有未从 .properties 文件外部引用的属性。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedReceiverParameter.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedReceiverParameter.html new file mode 100644 index 000000000..dec6dac58 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedReceiverParameter.html @@ -0,0 +1,6 @@ + + +报告扩展函数和属性的未使用接收器形参。 +

      移除冗余的接收器形参可用于自动修正代码。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedReturnValue.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedReturnValue.html new file mode 100644 index 000000000..fb7f54722 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedReturnValue.html @@ -0,0 +1,46 @@ + + +报告调用时从不使用其返回值的方法。 +此类方法的返回类型可以设置为 void。 +

      不会报告使用 Error Prone 或 AssertJ 的 @CanIgnoreReturnValue 注解进行注解的方法。 + 该快速修复会更新方法签名,并移除方法中的 return 语句。

      +

      示例:

      +
      
      +  // 可见性设置为 Protected 或 Public 时报告
      +  protected String myToUpperCase(String s) {
      +    return s.toUpperCase();
      +  }
      +
      +  // 简单的 setter,根据设置进行报告
      +  public String setStr(String str) {
      +    myStr = str;
      +    return myStr;
      +  }
      +
      +  void test() {
      +    setStr("value");          // 未使用返回值
      +    myToUpperCase("result");  // 未使用返回值
      +  }
      +
      +

      对这两种方法应用该快速修复后:

      +
      
      +    protected void myToUpperCase(String s) {
      +      // 完全移除了 'return'
      +      // 因为 's.toUpperCase()' 没有任何副作用
      +    }
      +
      +    public void setStr(String str) {
      +      myStr = str;
      +      // 移除了 'return'
      +    }
      +  ...
      +
      +

      + 注意:由于性能原因,在编辑器中高亮显示时可能不会报告某些方法。 + 要查看所有结果,请通过代码 | 检查代码代码 | 分析代码 | 按名称运行检查来运行检查> +

      + +

      使用忽略简单的 setter 选项可以忽略简单 setter 调用中未使用的返回值。

      +

      使用报告方法最大可见性选项可以控制要报告的方法的最大可见性。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedSymbol.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedSymbol.html new file mode 100644 index 000000000..da12b7cc8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedSymbol.html @@ -0,0 +1,5 @@ + + +报告入口点中未使用或不可到达的符号。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedUnaryOperator.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedUnaryOperator.html new file mode 100644 index 000000000..390a9d8af --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedUnaryOperator.html @@ -0,0 +1,15 @@ + + +报告表达式上的未使用的数字类型一元运算符。 +

      使用一元运算符时如果不带大括号,它们将会中断之前的表达式。 +因此,跨越多行的数学表达式可能会产生误导。

      +

      示例:

      +
      
      +  fun main() {
      +      val result = 1 + 2 * 3
      +                  + 3              // <== 请注意,'+ 3' 不属于 'result' 变量,它并未使用
      +      println("Result = $result")  // 结果为 '7',而非预期的 '10'
      +  }
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnusedValue.html b/original-plugin-raw/zh/inspectionDescriptions/UnusedValue.html new file mode 100644 index 000000000..9ff58ca8a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnusedValue.html @@ -0,0 +1,28 @@ + + +报告分配后从未使用的变量值。 这可能会在以下情况发生: +
        +
      • 变量在被赋值后从未读取
      • +
      • 值在被读取之前被另一个赋值重写
      • +
      • 变量初始值设定项冗余(由于以上两种原因之一)
      • +
      • 变量从未使用。
      • +
      +

      示例:

      +
      
      +  class C {
      +    int field;
      +
      +    void foo() {
      +      field = unused_value;
      +    }
      +
      +    void bar() {
      +      use(field);
      +      foo();
      +    }
      +  };
      +
      + +

      使用下面的复选框可以让此检查忽略变量初始值设定项。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UnzipSingleElement.html b/original-plugin-raw/zh/inspectionDescriptions/UnzipSingleElement.html new file mode 100644 index 000000000..b0ec36d73 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UnzipSingleElement.html @@ -0,0 +1,18 @@ + + +

      报告用于提取单个元素的 unzip

      + +

      该快速修复会将其替换为 map

      +

      示例:

      +
      
      +Seq((1, 11), (2, 22)).unzip._1
      +Seq((1, 11, 111), (2, 22, 222)).unzip3._1
      +
      +

      在应用快速修复后:

      +
      
      +Seq((1, 11), (2, 22)).map(_._1)
      +Seq((1, 11, 111), (2, 22, 222)).map(_._1)
      +
      + + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UpdateDependencyToLatestVersion.html b/original-plugin-raw/zh/inspectionDescriptions/UpdateDependencyToLatestVersion.html new file mode 100644 index 000000000..c92b08ace --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UpdateDependencyToLatestVersion.html @@ -0,0 +1,5 @@ + + +建议将 package.json 依赖项升级到最新版本,并忽略指定的版本。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UpdateTransitionLabel.html b/original-plugin-raw/zh/inspectionDescriptions/UpdateTransitionLabel.html new file mode 100644 index 000000000..3adbe4fdf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UpdateTransitionLabel.html @@ -0,0 +1,3 @@ + +检查是否为创建 Compose 传递动画的 updateTransition 调用设置了 `label` 形参。 + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UpperCaseFieldNameNotConstant.html b/original-plugin-raw/zh/inspectionDescriptions/UpperCaseFieldNameNotConstant.html new file mode 100644 index 000000000..7877a0f48 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UpperCaseFieldNameNotConstant.html @@ -0,0 +1,12 @@ + + +报告名称全部为大写的非 staticfinal 字段。 +

      此类字段可能会因违反通用命名惯例而引起混淆,并且经常被错误使用。

      +

      示例:

      
      +  public static int THE_ANSWER = 42; // 此处警告:final 修饰符缺失
      +
      +

      只能在编辑器中使用重命名此类字段的快速修复。

      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseBulkOperation.html b/original-plugin-raw/zh/inspectionDescriptions/UseBulkOperation.html new file mode 100644 index 000000000..645001383 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseBulkOperation.html @@ -0,0 +1,29 @@ + + +报告循环内部可以替换为批量方法的单一运算。 +

      + 批量方法不仅更短,而且有时性能也更好。 +

      +

      示例:

      +
        void test(Collection<Integer> numbers) {
      +    List<Integer> result = new ArrayList<>();
      +    for (Integer i : numbers) {
      +      result.add(i);
      +    }
      +  }
      +
      +

      应用修正后:

      +
      
      +  void test(Collection<Integer> numbers) {
      +    List<Integer> result = new ArrayList<>();
      +    result.addAll(numbers);
      +  }
      +
      + +

      + 即便批量方法需要集合,使用 Arrays.asList() 包装数组选项也使您能够报告数组。 + 在本例中,该快速修复会自动将数组包装在 Arrays.asList() 调用中。 +

      +

      2017.1 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseCompareMethod.html b/original-plugin-raw/zh/inspectionDescriptions/UseCompareMethod.html new file mode 100644 index 000000000..30f43f3cd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseCompareMethod.html @@ -0,0 +1,23 @@ + + +报告可以不使用更详细或效率较低的结构,而是使用 static Integer.compare() 方法或类似方法的情况。 +

      如果 xy 已是装箱的整数,则建议使用 x.compareTo(y)

      +

      示例:

      +
      
      +  public int compare(int x, int y) {
      +    return x > y ? 1 : x < y ? -1 : 0;
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  public int compare(int x, int y) {
      +    return Integer.compare(x, y);
      +  }
      +
      + +

      + Java 1.4 中引入了 Double.compare()Float.compare() 方法。 其他基元类型的方法自 Java 1.7 起即可使用。 +

      +

      2017.2 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseCouple.html b/original-plugin-raw/zh/inspectionDescriptions/UseCouple.html new file mode 100644 index 000000000..93ead9ae9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseCouple.html @@ -0,0 +1,8 @@ + + +报告可以替换为 Couple<T>Pair<T, T> 的用法。 +

      + 快速修复将执行替换。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseDPIAwareBorders.html b/original-plugin-raw/zh/inspectionDescriptions/UseDPIAwareBorders.html new file mode 100644 index 000000000..3b47c1e79 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseDPIAwareBorders.html @@ -0,0 +1,11 @@ + + +报告 javax.swing.border.EmptyBorder 的用法。 +

      + 这可能无法感知 DPI,并且可能导致 UI 布局问题。 +

      +

      + 快速修复将使用 JBUI.Borders.empty() 执行替换。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseDPIAwareInsets.html b/original-plugin-raw/zh/inspectionDescriptions/UseDPIAwareInsets.html new file mode 100644 index 000000000..e398c92b1 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseDPIAwareInsets.html @@ -0,0 +1,11 @@ + + +报告 java.awt.Insets 的用法。 +

      + 这可能无法感知 DPI,并且可能导致 UI 布局问题。 +

      +

      + 快速修复将使用 JBUI.insets() 执行替换。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseEllipsisInPropertyInspection.html b/original-plugin-raw/zh/inspectionDescriptions/UseEllipsisInPropertyInspection.html new file mode 100644 index 000000000..2d1afcec2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseEllipsisInPropertyInspection.html @@ -0,0 +1,5 @@ + + +报告用于代替省略号字符的三个“点”字符。
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseExpressionBody.html b/original-plugin-raw/zh/inspectionDescriptions/UseExpressionBody.html new file mode 100644 index 000000000..c9aeb6820 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseExpressionBody.html @@ -0,0 +1,25 @@ + + +返回可以替换为表达式主体语法的 return 表达式(一行代码或 when)。 +

      表达式主体语法建议在样式指南中给出。

      +

      转换为表达式主体快速修复可用于自动修正代码。

      +

      示例:

      +
      
      +  fun sign(x: Int): Int {
      +      return when { // <== 可以简化
      +          x < 0 -> -1
      +          x > 0 -> 1
      +          else -> 0
      +      }
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun sign(x: Int): Int = when {
      +      x < 0 -> -1
      +      x > 0 -> 1
      +      else -> 0
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseJBColor.html b/original-plugin-raw/zh/inspectionDescriptions/UseJBColor.html new file mode 100644 index 000000000..46d7e080f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseJBColor.html @@ -0,0 +1,11 @@ + + +报告 java.awt.Color 的用法。 +

      + 这可能无法检测到“深色”主题(例如,捆绑的“Darcula”),因而可能导致 UI 效果不佳。 +

      +

      + 快速修复会将用法替换为 JBColor,后者可以定义“深色”颜色变体。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseOfAWTPeerClass.html b/original-plugin-raw/zh/inspectionDescriptions/UseOfAWTPeerClass.html new file mode 100644 index 000000000..5d58728f9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseOfAWTPeerClass.html @@ -0,0 +1,16 @@ + + +报告使用 AWT 对等类的情况。 这些类代表原生窗口系统微件,并且不可在不同的窗口系统之间移植。 +

      示例:

      +
      
      +  import java.awt.peer.ButtonPeer;
      +
      +  abstract class Sample implements ButtonPeer {
      +    public void foo() {
      +        Sample sample;
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseOfAnotherObjectsPrivateField.html b/original-plugin-raw/zh/inspectionDescriptions/UseOfAnotherObjectsPrivateField.html new file mode 100644 index 000000000..f3f91f3dc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseOfAnotherObjectsPrivateField.html @@ -0,0 +1,26 @@ + + +报告对另一个对象的 privateprotected 字段的访问。 +Java 允许访问与当前对象属于同一类的对象的此类字段,但某些编码样式不鼓励这种用法。 此外,这种对 private 字段的直接访问在面向组件的架构(例如 Spring 或 Hibernate)中可能会失败,它们期望对其他对象的所有访问都通过方法调用进行,以便框架可以使用代理调解访问。 +

      示例:

      +
      
      +  public class Base {
      +    protected int bar;
      +
      +    void increment(Base base) {
      +      bar++;
      +      base.bar++; // warning: direct access to another object's non-public field
      +    }
      +  }
      +
      +可以通过快速修复封装该字段。 + +

      配置检查:

      +
        +
      • 使用忽略来自同一类的访问选项可忽略来自同一类的访问,只报告来自内部或外部类的访问。 +

        要忽略来自内部类的访问,请使用嵌套的忽略来自内部类的访问

        +
      • +
      • 使用忽略来自 'equals()' 方法的访问可忽略来自 equals() 方法的访问。
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseOfClone.html b/original-plugin-raw/zh/inspectionDescriptions/UseOfClone.html new file mode 100644 index 000000000..cde5dcbd3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseOfClone.html @@ -0,0 +1,8 @@ + + +报告 clone() 方法的实现和对它的调用以及 java.lang.Cloneable 的使用。 +

      某些编码标准禁止使用 clone(),建议改为使用复制构造函数或 static 工厂方法。

      +

      该检查会忽略在数组上对 clone() 的调用,因为这是一种正确而又紧凑的数组复制方式。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseOfConcreteClass.html b/original-plugin-raw/zh/inspectionDescriptions/UseOfConcreteClass.html new file mode 100644 index 000000000..12a7d558a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseOfConcreteClass.html @@ -0,0 +1,32 @@ + + +报告使用具体类而非接口的情况。 +此类声明可能代表抽象失败,并可能使测试更加困难。 +

      +此检查不会报告其类来自系统或第三方库的声明。 +equals() 方法实现中不会报告转换、instanceof 和局部变量。 +此外,clone() 方法实现中不会报告转换。 +

      +

      示例:

      +
      
      +  interface Entity {}
      +  class EntityImpl implements Entity {}
      +
      +  void processObject(Object obj) {
      +    // 警告:具体类的 instanceof
      +    if (obj instanceof EntityImpl) {
      +      // 警告:转换为具体类,
      +      // 而不是接口
      +      processEntity((EntityImpl)obj);
      +    }
      +  }
      +  // 警告:具体类的形参
      +  void processEntity(EntityImpl obj) {
      +  }
      +
      + +

      + 使用忽略抽象类类型选项可以忽略对抽象类的转换。

      +

      使用后续选项可控制报告问题的上下文。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseOfJDBCDriverClass.html b/original-plugin-raw/zh/inspectionDescriptions/UseOfJDBCDriverClass.html new file mode 100644 index 000000000..82480036d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseOfJDBCDriverClass.html @@ -0,0 +1,16 @@ + + +报告使用特定 JDBC 驱动程序类的情况。 使用这种类会将您的项目绑定到特定的数据库和驱动程序,从而违背了 JDBC 的目的并导致失去可移植性。 +

      示例:

      +
      
      +  import java.sql.Driver;
      +
      +  abstract class Sample implements Driver {
      +    public void foo() {
      +        Sample sample;
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseOfObsoleteAssert.html b/original-plugin-raw/zh/inspectionDescriptions/UseOfObsoleteAssert.html new file mode 100644 index 000000000..0c46acb8b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseOfObsoleteAssert.html @@ -0,0 +1,27 @@ + + +报告对 junit.framework.Assert 类中方法的任何调用。 此类已废弃,这些调用可以替换为对 org.junit.Assert 类中方法的调用。 +

      示例:

      +
      
      +  import org.junit.*;
      +  public class NecessaryTest {
      +    @Test
      +    public void testIt() {
      +      junit.framework.Assert.assertEquals("expected", "actual");
      +    }
      +  }
      +
      +

      应用快速修复后,结果如下所示:

      +
      
      +  import org.junit;
      +  public class NecessaryTest {
      +
      +    public void testIt() {
      +      Assert.assertEquals("expected", "actual");
      +    }
      +  }
      +
      + +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseOfObsoleteDateTimeApi.html b/original-plugin-raw/zh/inspectionDescriptions/UseOfObsoleteDateTimeApi.html new file mode 100644 index 000000000..82384077c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseOfObsoleteDateTimeApi.html @@ -0,0 +1,7 @@ + + +报告 java.util.Datejava.util.Calendarjava.util.GregorianCalendarjava.util.TimeZonejava.util.SimpleTimeZone 的用法。 +

      虽然仍受支持,但 JDK8 Date-Time API 中已废弃这些类,或许不宜在新开发中使用。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseOfObsoleteDateTimeApiInspection.html b/original-plugin-raw/zh/inspectionDescriptions/UseOfObsoleteDateTimeApiInspection.html new file mode 100644 index 000000000..f504f1a85 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseOfObsoleteDateTimeApiInspection.html @@ -0,0 +1,9 @@ + + +报告 java.util.Datejava.util.Calendarjava.util.GregorianCalendarjava.util.TimeZonejava.util.SimpleTimeZone 的用法。 +

      虽然仍受支持,但自从 JDK8 Date-Time API 以来,这些类已经过时,不应在新开发中使用。

      + +

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseOfProcessBuilder.html b/original-plugin-raw/zh/inspectionDescriptions/UseOfProcessBuilder.html new file mode 100644 index 000000000..6caacb6d0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseOfProcessBuilder.html @@ -0,0 +1,6 @@ + + +报告使用 java.lang.ProcessBuilder 的情况,由于可执行文件、环境变量、命令行实参及其转义的路径可能会因操作系统而异,可能无法在操作系统之间移植。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseOfPropertiesAsHashtable.html b/original-plugin-raw/zh/inspectionDescriptions/UseOfPropertiesAsHashtable.html new file mode 100644 index 000000000..1c538cec3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseOfPropertiesAsHashtable.html @@ -0,0 +1,36 @@ + + +报告对 java.util.Properties 对象上的以下方法的调用: +

        +
      • java.util.Hashtable#put
      • +
      • java.util.Hashtable#putIfAbsent
      • +
      • java.util.Hashtable#putAll
      • +
      • java.util.Hashtable#get
      • +
      +

      + 由于历史原因,java.util.Properties 继承 java.util.Hashtable,但为防止破坏 String 以外类型的属性值,不建议使用这些方法。 +

      +

      + 尽管 java.util.Properties#putAll 会重写 java.util.Hashtable#putAll,但当映射中的键值形参都为 String 类型时,就不会对它报告。 +

      +

      示例:

      +
      
      +  Object f(Properties props) {
      +    props.put("hello", "world");
      +    props.putIfAbsent("hello", "world");
      +    props.putAll(new HashMap<>());
      +    return props.get("Hello");
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  Object f(Properties props) {
      +    props.setProperty("hello", "world");
      +    props.putIfAbsent("hello", "world");
      +    props.putAll(new HashMap<>());
      +    return props.getProperty("hello");
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseOfSunClasses.html b/original-plugin-raw/zh/inspectionDescriptions/UseOfSunClasses.html new file mode 100644 index 000000000..4e327ef3d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseOfSunClasses.html @@ -0,0 +1,7 @@ + + +报告使用 sun.* 层次结构中的类的情况。 +这种类不可在不同的 JVM 之间移植。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UsePluginIdEquals.html b/original-plugin-raw/zh/inspectionDescriptions/UsePluginIdEquals.html new file mode 100644 index 000000000..08b815163 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UsePluginIdEquals.html @@ -0,0 +1,8 @@ + + +报告使用 == 比较 PluginId 实例。 +

      + 替换为 equals() 调用。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UsePrimitiveTypes.html b/original-plugin-raw/zh/inspectionDescriptions/UsePrimitiveTypes.html new file mode 100644 index 000000000..ee2bccae4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UsePrimitiveTypes.html @@ -0,0 +1,11 @@ + + +报告使用 == 比较 PsiPrimitiveType 实例。 +

      + 基元类型应使用 equals 进行比较,因为 Java 8 类型注解也对其适用。 +

      +

      + 替换为 equals() 调用。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UsePropertyAccessSyntax.html b/original-plugin-raw/zh/inspectionDescriptions/UsePropertyAccessSyntax.html new file mode 100644 index 000000000..c9a02f1ae --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UsePropertyAccessSyntax.html @@ -0,0 +1,26 @@ + + +报告可以替换为 Kotlin 合成属性的 Java getset 方法调用。 +

      使用属性访问语法快速修复可用于自动修正代码。

      +

      示例:

      +
      
      +  // Java:
      +  public class JavaClassWithGetter {
      +      private final String expr = "result";
      +
      +      // ...
      +
      +      public String getExpr() {
      +          return expr;
      +      }
      +  }
      +
      +
      
      +  // Kotlin:
      +  fun test(j: JavaClassWithGetter) {
      +      // ...
      +      j.getExpr() // <== 快速修复会将表达式简化为 'j.expr'
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseVirtualFileEquals.html b/original-plugin-raw/zh/inspectionDescriptions/UseVirtualFileEquals.html new file mode 100644 index 000000000..7df97865f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseVirtualFileEquals.html @@ -0,0 +1,8 @@ + + +报告使用 == 比较 VirtualFile 实例。 +

      + 替换为 equals() 调用。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UseWithIndex.html b/original-plugin-raw/zh/inspectionDescriptions/UseWithIndex.html new file mode 100644 index 000000000..e6e9d21ca --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UseWithIndex.html @@ -0,0 +1,29 @@ + + +报告带有手动递增索引变量的 for 循环。 +

      可以使用 withIndex() 函数简化带有手动递增索引变量的 for 循环。

      +

      使用 withIndex() 代替手动索引递增快速修复可用于自动修正代码。

      +

      示例:

      +
      
      +  fun foo(list: List<String>): Int? {
      +      var index = 0
      +      for (s in list) { <== can be simplified
      +          val x = s.length * index
      +          index++
      +          if (x > 0) return x
      +      }
      +      return null
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  fun foo(list: List<String>): Int? {
      +      for ((index, s) in list.withIndex()) {
      +          val x = s.length * index
      +          if (x > 0) return x
      +      }
      +      return null
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UselessCallOnCollection.html b/original-plugin-raw/zh/inspectionDescriptions/UselessCallOnCollection.html new file mode 100644 index 000000000..d2a35ea64 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UselessCallOnCollection.html @@ -0,0 +1,14 @@ + + +报告标准库中已筛选的集合上的 filter… 调用。 +

      只有在类型不同于结果类型的接收器上调用时,标准库中 filterNotNull()filterIsInstance 之类的几个函数才有意义。 在其他情况下,可以忽略此类调用,因为结果将相同。

      +

      移除冗余调用快速修复可用于自动修正代码。

      +

      示例:

      +
      
      +  fun test(list: List<String>) {
      +      val x = list.filterNotNull() // 快速修复会简化为 'list'
      +      val y = list.filterIsInstance<String>() // 快速修复会简化为 'list'
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UselessCallOnNotNull.html b/original-plugin-raw/zh/inspectionDescriptions/UselessCallOnNotNull.html new file mode 100644 index 000000000..7f4a82e56 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UselessCallOnNotNull.html @@ -0,0 +1,14 @@ + + +报告非 null 接收器上仅对可 null 接收器有意义的调用。 +

      只有在可 null 类型的接收器上调用时,标准库中 orEmpty()isNullOrEmpty 之类的几个函数才有意义。 在其他情况下,可以忽略它们,因为结果将相同。

      +

      移除冗余调用将调用更改为 … 快速修复可用于自动修正代码。

      +

      示例:

      +
      
      +  fun test(s: String) {
      +      val x = s.orEmpty() // 快速修复会简化为 's'
      +      val y = s.isNullOrEmpty() // 快速修复会简化为 's.isEmpty()'
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UsingZeroAsNil.html b/original-plugin-raw/zh/inspectionDescriptions/UsingZeroAsNil.html new file mode 100644 index 000000000..f511dc336 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UsingZeroAsNil.html @@ -0,0 +1,6 @@ + + +报告使用 0 而不是 nil 的情况。 +在某些情况下,例如 0 存储在数组中,这可能会出现问题。 您可能需要使用 0 而不是 nil 来存储 NSNumber。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UtilSchemaInspection.html b/original-plugin-raw/zh/inspectionDescriptions/UtilSchemaInspection.html new file mode 100644 index 000000000..bf37ca394 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UtilSchemaInspection.html @@ -0,0 +1,17 @@ + + +

      报告在 XML 应用程序上下文中定义的不正确架构 Bean

      + +
      
      +  <beans ... xmlns:util="https://www.springframework.org/schema/util">
      +    <bean class="MyBean" id="myBean"/>
      +    <bean class="ErrTypeBean" id="errTypeBean"/>
      +    <util:list list-class="java.lang.String"/> // 报告 "类必须为 'java.util.List' 的继承者"
      +    <util:set value-type="MyBean">
      +      <ref bean="fooBean"/>
      +      <ref bean="errTypeBean"/> // 报告 "无法添加到 'MyBean' 类型的集合中"
      +    </util:set>
      +  </beans>
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/UtilityClass.html b/original-plugin-raw/zh/inspectionDescriptions/UtilityClass.html new file mode 100644 index 000000000..5bea6d4de --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UtilityClass.html @@ -0,0 +1,10 @@ + + +报告实用程序类。 +

      实用程序类将所有字段和方法声明为 static,存在这样的情况可能表明欠缺面向对象的设计。

      + +

      +使用有注解时忽略选项可以指定特殊注解。 该检查将忽略使用其中一种注解进行注解的类。

      +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UtilityClassCanBeEnum.html b/original-plugin-raw/zh/inspectionDescriptions/UtilityClassCanBeEnum.html new file mode 100644 index 000000000..3d4cac808 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UtilityClassCanBeEnum.html @@ -0,0 +1,20 @@ + + +报告可转换为枚举的实用程序类。 +

      某些编码样式准则声明将实用程序类作为枚举实现,以避免 private 构造函数中的代码覆盖率问题。

      +

      示例:

      +
      
      +  class StringUtils {
      +    public static final String EMPTY = "";
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  enum StringUtils {
      +    ;
      +    public static final String EMPTY = "";
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UtilityClassWithPublicConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/UtilityClassWithPublicConstructor.html new file mode 100644 index 000000000..693927839 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UtilityClassWithPublicConstructor.html @@ -0,0 +1,7 @@ + + +报告包含 public 构造函数的实用程序类。 +

      实用程序类将所有字段和方法声明为 static。 在这种类中创建 public 构造函数令人困惑,并且可能导致类意外实例化。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/UtilityClassWithoutPrivateConstructor.html b/original-plugin-raw/zh/inspectionDescriptions/UtilityClassWithoutPrivateConstructor.html new file mode 100644 index 000000000..7e0149ac3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/UtilityClassWithoutPrivateConstructor.html @@ -0,0 +1,12 @@ + + +报告不包含 private 构造函数的实用程序类。 +

      实用程序类将所有字段和方法声明为 static。 在实用程序类中创建 private 构造函数可防止它们被意外实例化。 + +

      + 使用有注解时忽略选项可以指定特殊注解。 该检查将忽略使用其中一种注解进行标记的类。 +

      +使用忽略仅具有主方法的类选项,可以忽略除主方法外再无其他方法的类。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ValidExternallyBoundObject.html b/original-plugin-raw/zh/inspectionDescriptions/ValidExternallyBoundObject.html new file mode 100644 index 000000000..13c6c76fe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ValidExternallyBoundObject.html @@ -0,0 +1,16 @@ + + +

      报告不正确的 Java Web 服务类及其成员。

      + +

      一些可能存在的问题:

      + +
        +
      • 非 public 默认构造函数
      • +
      • 非 public web 方法
      • +
      • 缺少字段 setter
      • +
      + +

      有关要求的完整列表,请参阅使用 JAX-WS 创建简单的 Web 服务。 +

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ValidatorConfigModelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ValidatorConfigModelInspection.html new file mode 100644 index 000000000..b75b50168 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ValidatorConfigModelInspection.html @@ -0,0 +1,5 @@ + + + 验证验证器配置文件(classpath-root 中的 validators.xml)是否存在语法和引用错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ValidatorModelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/ValidatorModelInspection.html new file mode 100644 index 000000000..a59fd58e6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ValidatorModelInspection.html @@ -0,0 +1,5 @@ + + + 验证 validation.xml 文件是否存在语法和引用错误。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ValueMayNotFitIntoReceiver.html b/original-plugin-raw/zh/inspectionDescriptions/ValueMayNotFitIntoReceiver.html new file mode 100644 index 000000000..9b0086bcc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ValueMayNotFitIntoReceiver.html @@ -0,0 +1,5 @@ + + + 如果类型 B 的值范围不足以存储类型 A 的所有可能值,报告在类型 B 的上下文中使用类型 A 的表达式(赋值,转换,作为形参传递,从方法、函数或块返回等)的情况。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/VarCouldBeVal.html b/original-plugin-raw/zh/inspectionDescriptions/VarCouldBeVal.html new file mode 100644 index 000000000..93f49120d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/VarCouldBeVal.html @@ -0,0 +1,20 @@ + + +

      报告任何从未更新且可能是 val 的非 public var

      +

      示例:

      +
      
      +  class Foo {
      +    private var s = 0
      +    println(s)
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  class Foo {
      +    private val s = 0
      +    println(s)
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/VarargParameter.html b/original-plugin-raw/zh/inspectionDescriptions/VarargParameter.html new file mode 100644 index 000000000..6c7fc50d7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/VarargParameter.html @@ -0,0 +1,24 @@ + + +报告接受任意数量形参的方法(也称为 vararg 方法)。 +

      Java 1.4 或更早版本的 JVM 不支持此类方法。

      + +

      示例:

      +
      
      +  enum EnumConstants {
      +  A(null), B, C;
      +
      +  EnumConstants(String... ss) {}
      +}
      +
      +

      可通过快速修复将可变实参形参替换为等效的数组形参。 方法调用中的相关实参包装在数组初始值设定项表达式中。 + 在应用快速修复后:

      +
      
      +  enum EnumConstants {
      +  A(null), B(new String[]{}), C(new String[]{});
      +
      +  EnumConstants(String[] ss) {}
      +}
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/VariableNotUsedInsideIf.html b/original-plugin-raw/zh/inspectionDescriptions/VariableNotUsedInsideIf.html new file mode 100644 index 000000000..f49305492 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/VariableNotUsedInsideIf.html @@ -0,0 +1,17 @@ + + +报告对在 if 语句或条件表达式的条件中检查可 null 性但未在该 if 语句内部使用的变量的引用。 +

      + 这通常意味着不必要进行该检查,或者在 if 语句中没有错误引用变量。 +

      +

      示例:

      +
      
      +  void test(Integer i) {
      +    if (i != null) { // 这里的 'i' 没有在 'if' 语句内部使用
      +      System.out.println();
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/VariablePatternShadow.html b/original-plugin-raw/zh/inspectionDescriptions/VariablePatternShadow.html new file mode 100644 index 000000000..ca21985cf --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/VariablePatternShadow.html @@ -0,0 +1,21 @@ + + +

      报告隐藏在封闭范围内定义的稳定标识符的变量模式。

      +

      要对该值执行相等测试,请使用反引号。

      +

      示例:

      +
      
      +  val foo = 0
      +  0 match {
      +    case foo =>
      +  }
      +
      +

      在应用快速修复后:

      +
      
      +  val foo = 0
      +  0 match {
      +    case `foo` =>
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/VariableTypeCanBeExplicit.html b/original-plugin-raw/zh/inspectionDescriptions/VariableTypeCanBeExplicit.html new file mode 100644 index 000000000..632897400 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/VariableTypeCanBeExplicit.html @@ -0,0 +1,16 @@ + + +报告可以替换为显式类型的 var 类型的局部变量。 +

      在降级的情况下,该检查有助于发现和消除隐式类型的用法。

      + +

      示例:

      +
      
      +  var str = "Hello";
      +
      +

      在应用快速修复后:

      +
      
      +  String str = "Hello";
      +
      +

      仅当项目或模块的语言级别为 10 或更高时,此检查才会报告。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/VgoUnusedDependency.html b/original-plugin-raw/zh/inspectionDescriptions/VgoUnusedDependency.html new file mode 100644 index 000000000..0dfdbb6a0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/VgoUnusedDependency.html @@ -0,0 +1,15 @@ + + +

      报告未使用的依赖项。

      +

      对于当前 go.mod 文件中的每个依赖项,此检查会搜索所有 Go 文件中以依赖项名称开头的任何导入语句。 + 如果未找到此类导入,则该依赖项被视为未使用。 + 此检查等效于 go mod why 命令

      +

      该检查会处理 requirereplace 指令。 + 带有 // indirect 注释的 require 指令也会被处理。

      +

      在以下情况下,该检查可能无法准确确定是否未使用替换或间接要求的依赖项:

      +
        +
      • 已启用 vendoring 模式
      • +
      • 未下载某些依赖项
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/VirtualCallInCtorOrDtor.html b/original-plugin-raw/zh/inspectionDescriptions/VirtualCallInCtorOrDtor.html new file mode 100644 index 000000000..79d9318c2 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/VirtualCallInCtorOrDtor.html @@ -0,0 +1,20 @@ + + +报告来自构造函数或析构函数的虚拟成员函数调用。 +由于构造从基类开始并移动到派生类,派生类的资源尚未初始化。 +析构以相反的顺序执行,因此调用虚拟函数可能会导致访问已破坏的资源。 +

      示例:

      +
      
      +  class Test {
      +  public:
      +      void virtual setUp();
      +
      +      Test() {
      +          setUp();
      +      }
      +  };
      +
      + +

      2019.3 最新变化

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/VoidExpressionJS.html b/original-plugin-raw/zh/inspectionDescriptions/VoidExpressionJS.html new file mode 100644 index 000000000..0dda68c54 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/VoidExpressionJS.html @@ -0,0 +1,5 @@ + + +报告 void 表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/VoidMethodAnnotatedWithGET.html b/original-plugin-raw/zh/inspectionDescriptions/VoidMethodAnnotatedWithGET.html new file mode 100644 index 000000000..599bbc333 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/VoidMethodAnnotatedWithGET.html @@ -0,0 +1,6 @@ + + +

      报告使用 @GET 注解的不返回任何内容的方法。 + 使用 @GET 注解的方法必须具有非 void 返回类型。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/VolatileArrayField.html b/original-plugin-raw/zh/inspectionDescriptions/VolatileArrayField.html new file mode 100644 index 000000000..9e8890b69 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/VolatileArrayField.html @@ -0,0 +1,20 @@ + + +报告被声明为 volatile 的数组字段。 此类声明可能令人困惑,因为访问数组本身遵循 volatile 字段的规则,但访问数组的内容时并非如此。 +

      示例:

      +
      
      +  class Data {
      +    private volatile int[] idx = new int[0];
      +  }
      +
      +

      + 如果需要对数组内容进行此类可变访问,不妨改用 java.util.concurrent.atomic 类: +

      +
      
      +  class Data {
      +    private final AtomicIntegerArray idx = new AtomicIntegerArray(new int[0]);
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/VtlDirectiveArgsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/VtlDirectiveArgsInspection.html new file mode 100644 index 000000000..13bcef836 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/VtlDirectiveArgsInspection.html @@ -0,0 +1,5 @@ + + +报告 Velocity 指令的非法值或实参类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/VtlFileReferencesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/VtlFileReferencesInspection.html new file mode 100644 index 000000000..738f144fa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/VtlFileReferencesInspection.html @@ -0,0 +1,5 @@ + + +如果 #include#parse 指令中的 Velocity 文件引用被错误解析,则报告。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/VtlInterpolationsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/VtlInterpolationsInspection.html new file mode 100644 index 000000000..90ae3f054 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/VtlInterpolationsInspection.html @@ -0,0 +1,5 @@ + + +报告 #macro#set 指令中正式符号的非法用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/VtlReferencesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/VtlReferencesInspection.html new file mode 100644 index 000000000..f5cde9e35 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/VtlReferencesInspection.html @@ -0,0 +1,5 @@ + + +如果 Velocity 参考被错误解析,则报告。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/VtlTypesInspection.html b/original-plugin-raw/zh/inspectionDescriptions/VtlTypesInspection.html new file mode 100644 index 000000000..90db6ae02 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/VtlTypesInspection.html @@ -0,0 +1,5 @@ + + +如果二元和一元表达式具有类型不正确的操作数,则报告。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/VueDataFunction.html b/original-plugin-raw/zh/inspectionDescriptions/VueDataFunction.html new file mode 100644 index 000000000..364c1e9f4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/VueDataFunction.html @@ -0,0 +1,6 @@ + + +报告并非函数的 Vue 组件 data 属性。 建议用函数包装对象文字。 +

      在定义组件时,data 必须声明为返回初始数据对象的函数,因为将使用相同的定义创建多个实例。 如果 data 仍然使用普通对象,那么该对象将通过引用来在创建的所有实例中共享! 有了 data 函数,每次创建新实例时,都可以直接调用它以返回初始数据的新副本。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/VueDuplicateTag.html b/original-plugin-raw/zh/inspectionDescriptions/VueDuplicateTag.html new file mode 100644 index 000000000..8c65a59a0 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/VueDuplicateTag.html @@ -0,0 +1,6 @@ + + +报告 Vue 文件中 templatescript 标记的多次用法。 +

      Vue 组件规范指示每个 *.vue 文件一次最多只能包含一个 templatescript 块。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/W3CssValidation.html b/original-plugin-raw/zh/inspectionDescriptions/W3CssValidation.html new file mode 100644 index 000000000..7122a401b --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/W3CssValidation.html @@ -0,0 +1,5 @@ + + +报告 W3C CSS 验证器检测到的差异。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WSReferenceInspection.html b/original-plugin-raw/zh/inspectionDescriptions/WSReferenceInspection.html new file mode 100644 index 000000000..7a0e7ad2e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WSReferenceInspection.html @@ -0,0 +1,5 @@ + + +

      报告无法解析为字段和方法的 JAXB @XmlType 属性引用。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/WadlDomInspection.html b/original-plugin-raw/zh/inspectionDescriptions/WadlDomInspection.html new file mode 100644 index 000000000..52b88513e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WadlDomInspection.html @@ -0,0 +1,5 @@ + + +

      报告 WADL 文件中的配置错误。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WaitCalledOnCondition.html b/original-plugin-raw/zh/inspectionDescriptions/WaitCalledOnCondition.html new file mode 100644 index 000000000..ebbe452ae --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WaitCalledOnCondition.html @@ -0,0 +1,22 @@ + + +报告在 java.util.concurrent.locks.Condition 对象上进行的 wait() 调用。 这可能是编程错误,本应使用 await() 方法的某种变体。 +

      示例:

      +
      
      +  void acquire(Condition released) throws InterruptedException {
      +    while (acquired) {
      +      released.wait();
      +    }
      +  }
      +
      +

      优良的代码应类似于:

      +
      
      +  void acquire(Condition released) throws InterruptedException {
      +    while (acquired) {
      +      released.await();
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WaitNotInLoop.html b/original-plugin-raw/zh/inspectionDescriptions/WaitNotInLoop.html new file mode 100644 index 000000000..ebdf801de --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WaitNotInLoop.html @@ -0,0 +1,31 @@ + + +报告不是在循环中进行的 wait() 调用。 +

      + wait() 通常用于挂起线程,直到某个条件变为 true 为止。 + 线程可能出于不同的原因而被唤醒,因此在 wait() 调用返回后应检查条件。 + 使用循环很容易做到这一点。 +

      +

      示例:

      +
      
      +  class BoundedCounter {
      +    private int count;
      +    synchronized void inc() throws InterruptedException {
      +      if (count >= 10) wait();
      +      ++count;
      +    }
      +  }
      +
      +

      优良的代码应类似于:

      +
      
      +  class BoundedCounter {
      +    private int count;
      +    synchronized void inc() throws InterruptedException {
      +      while (count >= 10) wait();
      +      ++count;
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WaitNotifyNotInSynchronizedContext.html b/original-plugin-raw/zh/inspectionDescriptions/WaitNotifyNotInSynchronizedContext.html new file mode 100644 index 000000000..063042196 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WaitNotifyNotInSynchronizedContext.html @@ -0,0 +1,22 @@ + + +报告不是在相应的 synchronized 语句或 synchronized 方法进行中的 wait()notify()notifyAll() 调用。 +

      + 在没有持有锁定的对象上调用这些方法会导 IllegalMonitorStateException。 + 此类结构不一定错误,因为在调用该包含方法前可能已获取必要的锁定,但即便如此,还是要仔细查看。 +

      +

      示例:

      +
      
      +  class Sync {
      +    private final Object lock = new Object();
      +
      +    void test() throws InterruptedException {
      +      synchronized (this) {
      +        lock.wait(); // 'lock.wait()' 未在 'lock' 上同步
      +      }
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WaitOrAwaitWithoutTimeout.html b/original-plugin-raw/zh/inspectionDescriptions/WaitOrAwaitWithoutTimeout.html new file mode 100644 index 000000000..1c565ef23 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WaitOrAwaitWithoutTimeout.html @@ -0,0 +1,15 @@ + + +报告对未指定超时的 Object.wait()Condition.await() 的调用。 +

      + 在高可用性程序中,此类调用可能很危险,因为如果从未调用 notify()/notifyAll()signal()/signalAll(),那么一个组件中的故障可能会导致等待的组件发生阻塞。 +

      +

      示例:

      +
      
      +  void foo(Object bar) throws InterruptedException {
      +    bar.wait();
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WaitWhileHoldingTwoLocks.html b/original-plugin-raw/zh/inspectionDescriptions/WaitWhileHoldingTwoLocks.html new file mode 100644 index 000000000..58182ee1a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WaitWhileHoldingTwoLocks.html @@ -0,0 +1,22 @@ + + +报告在当前线程持有两个锁定时可能发生的对 wait() 方法的调用。 +

      + 调用 wait() 只会释放目标上的一个锁定,因此持有两个锁定时的等待很容易导致死锁。 +

      +

      示例:

      +
      
      +  synchronized (lockA) {
      +    synchronized (lockB) {
      +      lockB.wait(); //警告
      +      //线程 A 卡在这里,持有 lockA
      +    }
      +  }
      +
      +  synchronized (lockA) { //线程 B 无法进入此块和释放线程 A
      +    lockB.notify();
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WaitWithoutCorrespondingNotify.html b/original-plugin-raw/zh/inspectionDescriptions/WaitWithoutCorrespondingNotify.html new file mode 100644 index 000000000..564ef79d3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WaitWithoutCorrespondingNotify.html @@ -0,0 +1,17 @@ + + +报告对无法为之找到相应 Object.notify()Object.notifyAll() 调用的 Object.wait() 的调用。 +

      此检查仅报告包含引用当前类字段的限定符的调用。

      +

      示例:

      +
      
      +  public class Foo {
      +    public Object foo = new Object();
      +
      +    void bar() throws InterruptedException {
      +      this.foo.wait();
      +    }
      +  }
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WarningOnMainUnusedParameterMigration.html b/original-plugin-raw/zh/inspectionDescriptions/WarningOnMainUnusedParameterMigration.html new file mode 100644 index 000000000..a2434ac19 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WarningOnMainUnusedParameterMigration.html @@ -0,0 +1,7 @@ + + +报告带有单个未使用形参的 main 函数。 +

      从 Kotlin 1.4 开始,可以使用不带形参的 main 函数作为 Kotlin 程序的入口点。 +编译器会报告具有未使用形参的 main 函数的警告。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/WeakMatchIncorrectResolve.html b/original-plugin-raw/zh/inspectionDescriptions/WeakMatchIncorrectResolve.html new file mode 100644 index 000000000..45eab6068 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WeakMatchIncorrectResolve.html @@ -0,0 +1,7 @@ + + +检测弱正确解析(弱正确解析表示 RM 解析和运行时解析至少有一个公共元素)。 +本检查仅用于测试。 并且需要包含有关正确解析信息的特殊文件。 +对于该检查,此文件必须位于此处:/tmp/WeakMatchIncorrectResolve.txt + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WeakerAccess.html b/original-plugin-raw/zh/inspectionDescriptions/WeakerAccess.html new file mode 100644 index 000000000..db5a8359d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WeakerAccess.html @@ -0,0 +1,16 @@ + + +报告在可能已缩小其访问修饰符的指定检查范围中发现的所有字段、方法或类。 +

      示例:

      +
      
      +  class Sample {
      +    void foo() {
      +        bar("foo", "foo");
      +    }
      +    void bar(String x, String y) { } // 可以为 private
      +  }
      +
      + +

      使用检查选项可以定义修饰符更改建议的规则。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/WebProperties.html b/original-plugin-raw/zh/inspectionDescriptions/WebProperties.html new file mode 100644 index 000000000..10b877459 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WebProperties.html @@ -0,0 +1,27 @@ + + +报告用于将 Web 模块部署到服务器的描述符中的以下问题: +
        +
      • 对不可实例化类的引用
      • +
      • 对不扩展所需类的类的引用
      • +
      • 对范围不适当的类的引用
      • +
      • 空标记和特性值
      • +
      • 与所需模式不匹配的标记和特性值(例如,Java 标识符)
      • +
      • 不包含必需子标记或特性的标记
      • +
      • 定义具有重复名称的对象的标记
      • +
      + +

      示例:


      +
      
      +<web-app>
      +  <filter-mapping>
      +    <filter-name>CustomFilter</filter-name> // 错误:应定义 servlet-name 或 url-pattern 子标记
      +  </filter-mapping>
      +  <servlet-mapping>
      +    <servlet-name>CustomServletName</servlet-name>
      +    <url-pattern>/ baseUrl</url-pattern> // 错误:URI 模式不得包含空格
      +  </servlet-mapping>
      +</web-app>
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/WebWarnings.html b/original-plugin-raw/zh/inspectionDescriptions/WebWarnings.html new file mode 100644 index 000000000..b3d6e145e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WebWarnings.html @@ -0,0 +1,24 @@ + + +报告描述符中用于将 Web 模块部署到服务器的重复 welcome-file。 + +

      示例:


      +
      
      +  <?xml version="1.0" encoding="UTF-8"?>
      +  <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
      +  <web-app>
      +    <welcome-file-list>
      +      <welcome-file>
      +        Welcome1.jsp
      +      </welcome-file>
      +      <welcome-file>
      +        /Welcome1.jsp // 错误:重复的 welcome-file
      +      </welcome-file>
      +      <welcome-file>
      +        Welcome3.jsp
      +      </welcome-file>
      +    </welcome-file-list>
      +  </web-app>
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/WebflowConfigModelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/WebflowConfigModelInspection.html new file mode 100644 index 000000000..11cecb0fd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WebflowConfigModelInspection.html @@ -0,0 +1,38 @@ + + +

      报告 Spring Webflow 基于 XML 的上下文的问题:

      + +
        +
      • 未解析的 Bean 引用
      • +
      • 缺少必需的标记或特性
      • +
      • 属性类型不正确
      • +
      • enum 属性不一致
      • +
      • 引用 Bean 的类型不正确
      • +
      + +

      示例:

      +
      
      +  <beans ...
      +    xmlns:webflow="http://www.springframework.org/schema/webflow-config ...">
      +    
      +    <webflow:flow-executor id="flowExecutorWithoutFlowRegistryRef"/> <!-- 找不到默认 ID 为 'flowRegistry' 的 <flow-registry> -->
      +    <webflow:flow-executor
      +      id=""  <!--Value must not be empty-->
      +      flow-registry="INVALID_VALUE"  <!-- 无法解析 Bean INVALID_VALUE -->
      +           <webflow:flow-execution-repository
      +                   conversation-manager="dummyBean" <!-- Bean must be of 'org.springframework.webflow.conversation.ConversationManager' type"-->
      +                    max-executions="INVALID_VALUE" <!-- 值应为整数-->
      +                    max-execution-snapshots="INVALID_VALUE"/>  <!-- 值应为整数-->
      +           <webflow:flow-execution-listeners>
      +			<webflow:listener criteria="*"
      +                           ref="dummyBean" /> <!-- Bean 必须为 'org.springframework.webflow.execution.FlowExecutionListener' 类型 -->
      +           </webflow:flow-execution-listeners>
      +    </webflow:flow-executor>
      +    <webflow:flow-executor id="dummy"
      +      flow-registry="dummyBean"/> <!-- Bean 必须为 'org.springframework.webflow.definition.registry.FlowDefinitionRegistry' 类型 -->
      +
      +    <bean id="dummyBean" class="java.lang.String"/>
      +  </beans>
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WebflowModelInspection.html b/original-plugin-raw/zh/inspectionDescriptions/WebflowModelInspection.html new file mode 100644 index 000000000..9db4e4ebe --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WebflowModelInspection.html @@ -0,0 +1,32 @@ + + +

      报告 Spring Webflow 基于 XML 的 <flow> 定义中的配置错误。

      + +
        +
      • 未解析的 Bean 引用
      • +
      • 缺少必需的标记或特性
      • +
      • 属性类型不正确
      • +
      • enum 属性不一致
      • +
      • 引用 Bean 的类型不正确
      • +
      + +

      示例:

      +
      
      +  <flow
      +    start-state="unknown-state" <!-- Cannot resolve symbol 'unknown-state' ->
      +    parent="unknownParentFlow,another-flow" <!-- 找不到流 'unknownParentFlow' -->>
      +
      +    <input name="" // Value must not be empty
      +         type="foo.com.UnknownType" <!--Cannot resolve class 'UnknownType'-->
      +         value="42"/>
      +
      +    <exception-handler bean="dummyBean"; <!--Bean must be of'org.springframework.webflow.engine.FlowExecutionExceptionHandler' type -->
      +
      +    <view-state id="validFlowButInvalidState_forParent"
      +           parent="another-flow#unknownParentState"/> <!-- 无法解析父状态 'unknownParentState'-->
      +
      +    <bean-import resource="foo.xml" /> <!-- 无法解析文件 'foo.xml' -->
      +    <bean-import resource="highlighting-20-wrong-flow.xml"/> <!-- 不是有效的 spring.xml 文件 -->
      +  </flow>
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WebflowSetupInspection.html b/original-plugin-raw/zh/inspectionDescriptions/WebflowSetupInspection.html new file mode 100644 index 000000000..46e201f3c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WebflowSetupInspection.html @@ -0,0 +1,11 @@ + + +

      如果未在 Spring 应用程序上下文中配置 WebFlow 注册表 (FlowRegistration),则报告 <flow> 定义。

      + +

      示例:

      +
      
      +  <flow>  <!--"找不到流配置,请检查 Spring 设置" -->
      +     ...
      +  </flow>
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/Weblogic.html b/original-plugin-raw/zh/inspectionDescriptions/Weblogic.html new file mode 100644 index 000000000..1d031449f --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/Weblogic.html @@ -0,0 +1,15 @@ + + +

      报告不正确的 JBoss 特定的 XML 部署描述符。

      + +
        +
      • 对不可实例化类的引用
      • +
      • 对不扩展所需类的类的引用
      • +
      • 对范围不适当的类的引用
      • +
      • 空标记和特性值
      • +
      • 与所需模式不匹配的标记和特性值(例如,Java 标识符)
      • +
      • 不包含必需子标记或特性的标记
      • +
      • 定义具有重复名称的对象的标记
      • +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WebpackConfigHighlighting.html b/original-plugin-raw/zh/inspectionDescriptions/WebpackConfigHighlighting.html new file mode 100644 index 000000000..aa2fb15dc --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WebpackConfigHighlighting.html @@ -0,0 +1,7 @@ + + +根据 webpack 选项架构验证 webpack 配置文件中的选项(名称应以 `webpack` 开头,例如 `webpack.config.js`)。 +

      +禁用此检查以关闭配置对象内部的验证和代码补全。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WhenWithOnlyElse.html b/original-plugin-raw/zh/inspectionDescriptions/WhenWithOnlyElse.html new file mode 100644 index 000000000..b96c964a9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WhenWithOnlyElse.html @@ -0,0 +1,14 @@ + + +报告只有一个 else 分支且可以简化的 when 表达式。 +

      简化表达式快速修复可用于自动修正代码。

      +

      示例:

      +
      
      +  fun redundant() {
      +      val x = when { // <== 冗余,快速修复会将 when 表达式简化为 "val x = 1"
      +          else -> 1
      +      }
      +  }
      +
      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/WhileCanBeForeach.html b/original-plugin-raw/zh/inspectionDescriptions/WhileCanBeForeach.html new file mode 100644 index 000000000..a1364f711 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WhileCanBeForeach.html @@ -0,0 +1,23 @@ + + +报告迭代集合并且可以替换为增强型 for 循环(foreach 迭代语法)的 while 循环。 + +

      示例:

      +
      
      +  Iterator it = c.iterator();
      +  while(it.hasNext()) {
      +    Object obj = it.next();
      +    System.out.println(obj);
      +  }
      +
      +

      可以替换为:

      +
      
      +  for (Object obj : c) {
      +    System.out.println(obj);
      +  }
      +
      + +

      仅当项目或模块的语言级别为 5 或更高时,此检查才会报告。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WhileLoopSpinsOnField.html b/original-plugin-raw/zh/inspectionDescriptions/WhileLoopSpinsOnField.html new file mode 100644 index 000000000..bc410d386 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WhileLoopSpinsOnField.html @@ -0,0 +1,32 @@ + + +报告在非 volatile 字段值上自旋,等待它被另一个线程更改的 while 循环。 +

      +除了在循环内完成少量工作时可能会非常耗费 CPU 之外,此类循环很可能具有与预期不同的语义。 即便另一个线程改变了该字段的值,Java 内存模型也允许此类循环永不完成。 +

      +

      示例:

      +
      
      +  class SpinsOnField {
      +    boolean ready = false;
      +
      +    void run() {
      +      while (!ready) { // 即使在从另一个线程调用 markAsReady 之后,
      +                       // 该循环也可能永不完成
      +      }
      +      // 执行某些工作
      +    }
      +
      +    void markAsReady() {
      +      ready = true;
      +    }
      +  }
      +
      +

      +此外,自 Java 9 起,建议在 volatile 字段上的自旋循环中调用 Thread.onSpinWait(),这可能会显著提高某些硬件上的性能。 +

      + +

      +使用检查选项可仅报告空的 while 循环。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WithStatementJS.html b/original-plugin-raw/zh/inspectionDescriptions/WithStatementJS.html new file mode 100644 index 000000000..8f6133be6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WithStatementJS.html @@ -0,0 +1,5 @@ + + +报告 with 语句。 此类语句会导致可能令人困惑的隐式绑定,并且在设置新变量时可能会表现出奇怪的行为。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WorksheetPackageDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/WorksheetPackageDeclaration.html new file mode 100644 index 000000000..586ebb982 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WorksheetPackageDeclaration.html @@ -0,0 +1,7 @@ + + +

      报告工作表中使用的软件包声明。

      +

      REPL 模式下,软件包声明是无效语句。 在 Plain 模式下,编译时会自动添加所需的软件包声明。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WrapUnaryOperator.html b/original-plugin-raw/zh/inspectionDescriptions/WrapUnaryOperator.html new file mode 100644 index 000000000..16b6e5004 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WrapUnaryOperator.html @@ -0,0 +1,8 @@ + + +报告后跟 -1.inc() 等点限定符的一元运算符。 +

      -1.inc() 之类的代码可能会产生误导,因为 - 的优先级低于 .inc()。 + 因此,-1.inc() 计算结果为 -2,而非预期的 0

      +

      使用 () 包装一元运算符和值快速修复可用于自动修正代码。

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/WrapperTypeMayBePrimitive.html b/original-plugin-raw/zh/inspectionDescriptions/WrapperTypeMayBePrimitive.html new file mode 100644 index 000000000..51f5b31c6 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WrapperTypeMayBePrimitive.html @@ -0,0 +1,38 @@ + + +报告主要用作基元类型的包装器类型的局部变量。 +

      在某些情况下,装箱可能会导致严重的性能损失,尤其是在循环中。

      +

      采用启发估计装箱操作次数。 例如,循环内的转换数量视为更多。

      + +

      示例:

      +
        public void example() {
      +    Integer value = 12;
      +    needBox(value);
      +    for (int i = 0; i < 10; i++) {
      +      // 循环的用法正变得越来越频繁
      +      needPrimitive(value);
      +    }
      +  }
      +
      +  void needPrimitive(int value) {}
      +  void needBox(Integer value) {}
      +
      +

      在应用快速修复后:

      +
        public void example() {
      +    int value = 12;
      +    needBox(value);
      +    for (int i = 0; i < 10; i++) {
      +      // 循环的用法正变得越来越频繁
      +      needPrimitive(value);
      +    }
      +  }
      +
      +  void needPrimitive(int value) {}
      +  void needBox(Integer value) {}
      +
      + +

      + 2018.2 最新变化 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WriteOnlyObject.html b/original-plugin-raw/zh/inspectionDescriptions/WriteOnlyObject.html new file mode 100644 index 000000000..4b95f4eba --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WriteOnlyObject.html @@ -0,0 +1,18 @@ + + +报告已修改但从未查询的对象。 +

      该检查依赖于方法突变协定,对于某些库方法,可以推断或预先注解突变协定。 此检查不报告集合、映射和字符串构建器,因为其他更精准的检查会报告这些类型。 +

      +

      示例:

      +
      
      +  AtomicReference<String> ref = new AtomicReference<>();
      +  ref.set("hello"); // ref 不再使用
      +
      + +

      + 使用忽略不纯的构造函数选项可以控制是否处理由构造函数或纯度未知的方法创建的对象。 + 如果在构造过程中故意泄漏对象引用,取消选中该选项可能会引起某些误报。 +

      +2021.2 最新变化 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WrongImportPackage.html b/original-plugin-raw/zh/inspectionDescriptions/WrongImportPackage.html new file mode 100644 index 000000000..9e5fbd4e8 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WrongImportPackage.html @@ -0,0 +1,7 @@ + + +

      + 检查是否在 Import-Package 标头中指定了某些未导出的软件包(在任何模型依赖项中)。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WrongPackageStatement.html b/original-plugin-raw/zh/inspectionDescriptions/WrongPackageStatement.html new file mode 100644 index 000000000..24015eb85 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WrongPackageStatement.html @@ -0,0 +1,7 @@ + + +检测与项目目录结构不对应的 package 语句。 +此外,如果不包含 package 语句的类不是直接位于源根目录中,则报告这种类。 +

      虽然 Java 语言没有严格规定,但最好将软件包 com.example.myapp 中的类保存在源根下的 com/example/myapp 目录中。 如果不这样做,可能会导致代码读取器混淆,某些工具也无法正确工作。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WrongPropertyKeyValueDelimiter.html b/original-plugin-raw/zh/inspectionDescriptions/WrongPropertyKeyValueDelimiter.html new file mode 100644 index 000000000..27107219c --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WrongPropertyKeyValueDelimiter.html @@ -0,0 +1,5 @@ + + +报告键或值分隔符与代码样式设置不匹配的属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WrongTopLevelPackageInspection.html b/original-plugin-raw/zh/inspectionDescriptions/WrongTopLevelPackageInspection.html new file mode 100644 index 000000000..46440450d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WrongTopLevelPackageInspection.html @@ -0,0 +1,6 @@ + + +报告 Java 顶层软件包的不正确规范。 Ruby 代码中的 Java 软件包必须以 Java:: 为前缀, +它们以 javajavaxorgcom 开头的情况除外。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/WsdlHighlightingInspection.html b/original-plugin-raw/zh/inspectionDescriptions/WsdlHighlightingInspection.html new file mode 100644 index 000000000..0162a8f25 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/WsdlHighlightingInspection.html @@ -0,0 +1,6 @@ + + +

      报告一般 WSDL 解析错误,如缺少必需值、重复等。

      +

      有关要求的完整列表,请参阅 WSDL 规范

      + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/XHTMLIncompatabilitiesJS.html b/original-plugin-raw/zh/inspectionDescriptions/XHTMLIncompatabilitiesJS.html new file mode 100644 index 000000000..55daaf272 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/XHTMLIncompatabilitiesJS.html @@ -0,0 +1,15 @@ + + +报告可能会导致 XHTML 文档出现问题的 +常见 JavaScript DOM 模式。 特别是,根据文档是作为 XML 还是 HTML 加载, +所检测到的模式的行为将完全不同。 +这可能导致难以捉摸的错误,即脚本行为依赖于文档的 MIME 类型而不是依赖于其内容。 +检测到的模式包括 +document.body、 +document.images、 +document.applets、 +document.links、 +document.forms 和 +document.anchors。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/XmlDefaultAttributeValue.html b/original-plugin-raw/zh/inspectionDescriptions/XmlDefaultAttributeValue.html new file mode 100644 index 000000000..f19eb3322 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/XmlDefaultAttributeValue.html @@ -0,0 +1,5 @@ + + +报告对 XML 特性默认值的冗余赋值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/XmlDeprecatedElement.html b/original-plugin-raw/zh/inspectionDescriptions/XmlDeprecatedElement.html new file mode 100644 index 000000000..3babf8869 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/XmlDeprecatedElement.html @@ -0,0 +1,6 @@ + + +报告弃用的 XML 元素或特性。 +

      可以通过 XML 注释或带有 'deprecated' 文本的文档标记来标记符号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/XmlDuplicatedId.html b/original-plugin-raw/zh/inspectionDescriptions/XmlDuplicatedId.html new file mode 100644 index 000000000..9902efd36 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/XmlDuplicatedId.html @@ -0,0 +1,5 @@ + + +报告 XML 中重复的 id 特性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/XmlHighlighting.html b/original-plugin-raw/zh/inspectionDescriptions/XmlHighlighting.html new file mode 100644 index 000000000..39fcbd12a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/XmlHighlighting.html @@ -0,0 +1,5 @@ + + +报告批量代码检查结果中的 XML 验证问题。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/XmlInvalidId.html b/original-plugin-raw/zh/inspectionDescriptions/XmlInvalidId.html new file mode 100644 index 000000000..bef06820a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/XmlInvalidId.html @@ -0,0 +1,5 @@ + + +报告 XML 中未解析的 id 引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/XmlPathReference.html b/original-plugin-raw/zh/inspectionDescriptions/XmlPathReference.html new file mode 100644 index 000000000..aa47e1605 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/XmlPathReference.html @@ -0,0 +1,5 @@ + + +报告 XML 中未解析的文件引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/XmlUnboundNsPrefix.html b/original-plugin-raw/zh/inspectionDescriptions/XmlUnboundNsPrefix.html new file mode 100644 index 000000000..40f274b09 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/XmlUnboundNsPrefix.html @@ -0,0 +1,5 @@ + + +报告 XML 中未绑定的命名空间前缀。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/XmlUnusedNamespaceDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/XmlUnusedNamespaceDeclaration.html new file mode 100644 index 000000000..92c75a16d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/XmlUnusedNamespaceDeclaration.html @@ -0,0 +1,5 @@ + + +报告 XML 中未使用的命名空间声明或位置提示。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/XmlWrongFileType.html b/original-plugin-raw/zh/inspectionDescriptions/XmlWrongFileType.html new file mode 100644 index 000000000..5875ca708 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/XmlWrongFileType.html @@ -0,0 +1,5 @@ + + +此检查会检查 XML 资源是否存储在文档推荐的资源文件夹类型中 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/XmlWrongRootElement.html b/original-plugin-raw/zh/inspectionDescriptions/XmlWrongRootElement.html new file mode 100644 index 000000000..7cdae2fef --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/XmlWrongRootElement.html @@ -0,0 +1,5 @@ + + +报告与 <doctype> 标记中指定的名称不同的根标记名称。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/XsltDeclarations.html b/original-plugin-raw/zh/inspectionDescriptions/XsltDeclarations.html new file mode 100644 index 000000000..76da4730d --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/XsltDeclarations.html @@ -0,0 +1,7 @@ + + +报告 XSLT 变量、形参和命名模板中的重复声明和非法标识符: + +

      由 XPathView + XSLT-Support 提供技术支持

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/XsltTemplateInvocation.html b/original-plugin-raw/zh/inspectionDescriptions/XsltTemplateInvocation.html new file mode 100644 index 000000000..9e4ab2f92 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/XsltTemplateInvocation.html @@ -0,0 +1,11 @@ + + +报告缺少实参、传递未被声明的实参,以及在命名 XSLT 模板调用中多次传递形参的实参。 + +

      +使用默认值声明的形参是可选形参,不会被报告为缺失。 +

      + +

      由 XPathView + XSLT-Support 提供技术支持

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/XsltUnusedDeclaration.html b/original-plugin-raw/zh/inspectionDescriptions/XsltUnusedDeclaration.html new file mode 100644 index 000000000..4328d77a7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/XsltUnusedDeclaration.html @@ -0,0 +1,7 @@ + + +报告从未被使用的局部变量和形参。 + +

      由 XPathView + XSLT-Support 提供技术支持

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/XsltVariableShadowing.html b/original-plugin-raw/zh/inspectionDescriptions/XsltVariableShadowing.html new file mode 100644 index 000000000..615730f29 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/XsltVariableShadowing.html @@ -0,0 +1,7 @@ + + +报告隐藏的 XSLT 变量。 + +

      由 XPathView + XSLT-Support 提供技术支持

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/YAMLDuplicatedKeys.html b/original-plugin-raw/zh/inspectionDescriptions/YAMLDuplicatedKeys.html new file mode 100644 index 000000000..6b79b1a3a --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/YAMLDuplicatedKeys.html @@ -0,0 +1,10 @@ + + +报告 YAML 文件中的重复键。 +

      示例:

      +
      
      +  same_key: some value
      +  same_key: another value
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/YAMLRecursiveAlias.html b/original-plugin-raw/zh/inspectionDescriptions/YAMLRecursiveAlias.html new file mode 100644 index 000000000..b587dc1c9 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/YAMLRecursiveAlias.html @@ -0,0 +1,12 @@ + + +报告 YAML 别名中的递归。 +

      别名不能递归并在相应定位标记引用的数据中使用。

      +

      示例:

      +
      
      +  some_key: &some_anchor
      +    sub_key1: value1
      +    sub_key2: *some_anchor
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/YAMLSchemaDeprecation.html b/original-plugin-raw/zh/inspectionDescriptions/YAMLSchemaDeprecation.html new file mode 100644 index 000000000..a31a69c67 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/YAMLSchemaDeprecation.html @@ -0,0 +1,22 @@ + + +报告 YAML 文件中已弃用的键。 +

      仅当存在与相应 YAML 文件关联的 JSON 架构时,才会检查是否弃用。

      +

      请注意,JSON 架构规范中尚未定义弃用机制,并且此检查使用非标准的 deprecationMessage 扩展。

      +

      方案弃用示例:

      +
      
      +  {
      +    "properties": {
      +      "SomeDeprecatedProperty": {
      +        "deprecationMessage": "Baz",
      +        "description": "Foo bar"
      +      }
      +    }
      +  }
      +
      +

      以下是带有相应警告的示例:

      +
      
      +  SomeDeprecatedProperty: some value
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/YAMLSchemaValidation.html b/original-plugin-raw/zh/inspectionDescriptions/YAMLSchemaValidation.html new file mode 100644 index 000000000..2ff663889 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/YAMLSchemaValidation.html @@ -0,0 +1,19 @@ + + +如果指定了架构,则报告 YAML 文件和 JSON 架构之间的不一致。 +

      方案示例:

      +
      
      +  {
      +    "properties": {
      +      "SomeNumberProperty": {
      +        "type": "number"
      +      }
      +    }
      +  }
      +
      +

      以下是带有相应警告的示例:

      +
      
      +  SomeNumberProperty: hello world
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/YAMLUnresolvedAlias.html b/original-plugin-raw/zh/inspectionDescriptions/YAMLUnresolvedAlias.html new file mode 100644 index 000000000..17aeaee26 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/YAMLUnresolvedAlias.html @@ -0,0 +1,9 @@ + + +报告 YAML 文件中的未解析别名。 +

      示例:

      +
      
      +  some_key: *unknown_alias
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/YAMLUnusedAnchor.html b/original-plugin-raw/zh/inspectionDescriptions/YAMLUnusedAnchor.html new file mode 100644 index 000000000..a7d648c3e --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/YAMLUnusedAnchor.html @@ -0,0 +1,10 @@ + + +报告未使用的定位标记。 +

      示例:

      +
      
      +  some_key: &some_anchor
      +    key1: value1
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/YARDTagsInspection.html b/original-plugin-raw/zh/inspectionDescriptions/YARDTagsInspection.html new file mode 100644 index 000000000..d67e9f2dd --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/YARDTagsInspection.html @@ -0,0 +1,5 @@ + + +报告重复的 @param 标记和 @param YARD 标记中未定义的形参。 + + diff --git a/original-plugin-raw/zh/inspectionDescriptions/ZeroIndexToHead.html b/original-plugin-raw/zh/inspectionDescriptions/ZeroIndexToHead.html new file mode 100644 index 000000000..55e9b97fa --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ZeroIndexToHead.html @@ -0,0 +1,18 @@ + + +

      报告按索引而不是 head 访问集合的第一个元素。

      +

      示例:

      +
      
      +  var seq: Seq[Int]
      +  seq(0)
      +  seq.apply(0)
      +
      +

      在应用快速修复后:

      +
      
      +  var seq: Seq[Int]
      +  seq.head
      +  seq.head
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ZeroLengthArrayInitialization.html b/original-plugin-raw/zh/inspectionDescriptions/ZeroLengthArrayInitialization.html new file mode 100644 index 000000000..b6b77adee --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ZeroLengthArrayInitialization.html @@ -0,0 +1,13 @@ + + +报告已知长度为零的数组的分配。 +

      + 由于 Java 中的数组长度不可修改,几乎总是可以共享零长度数组,而不是重复分配新数组。 此类共享可以在程序运行时或占用空间中提供有用的优化。 +

      +

      + 请注意,检查不会报告分配为 static final 字段的零长度数组,因为会假设这些数组用于实现数组共享。 +

      + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/ZipWithIndex.html b/original-plugin-raw/zh/inspectionDescriptions/ZipWithIndex.html new file mode 100644 index 000000000..8b5c5ccf4 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/ZipWithIndex.html @@ -0,0 +1,16 @@ + + +

      报告索引的手动压缩,而不是使用 zipWithIndex

      +

      示例:

      +
      
      +  var seq: Seq[Int]
      +  seq.zip(seq.indices)
      +
      +

      在应用快速修复后:

      +
      
      +  var seq: Seq[Int]
      +  seq.zipWithIndex
      +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/dependsOnMethodTestNG.html b/original-plugin-raw/zh/inspectionDescriptions/dependsOnMethodTestNG.html new file mode 100644 index 000000000..42311d110 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/dependsOnMethodTestNG.html @@ -0,0 +1,13 @@ + +报告传递给 @Test 注解中的 dependsOnMethods 特性的非法方法名称。 +

      如果方法名称不能解析为当前类或其任何父类中的有效、可访问的 @Test 注解方法,则该方法名称被认为是非法的。

      +

      示例:

      +
      
      +  public class SampleTest {
      +    @Test(dependsOnMethods = "testSpellignError")
      +    public void testSample() {}
      +    @Test
      +    public void testSpellingError(){}
      +  }
      +
      + diff --git a/original-plugin-raw/zh/inspectionDescriptions/dmserverUnknownImportedPackage.html b/original-plugin-raw/zh/inspectionDescriptions/dmserverUnknownImportedPackage.html new file mode 100644 index 000000000..e272fc635 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/dmserverUnknownImportedPackage.html @@ -0,0 +1,6 @@ + + + +检查 DM 捆绑的 Import-Package OSGi 清单标头中是否有未解析的项。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/groupsTestNG.html b/original-plugin-raw/zh/inspectionDescriptions/groupsTestNG.html new file mode 100644 index 000000000..861bc1bc7 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/groupsTestNG.html @@ -0,0 +1,6 @@ + +报告传递给 @Test 注解中的 dependsOnGroupsgroups 特性的未定义组名称。 +

      快速修复将未定义的名称添加到已知组列表中。

      + +

      使用 定义的组 字段定义现有组的逗号分隔列表。

      + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/gwtRawAsyncCallback.html b/original-plugin-raw/zh/inspectionDescriptions/gwtRawAsyncCallback.html new file mode 100644 index 000000000..1cb363bc3 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/gwtRawAsyncCallback.html @@ -0,0 +1,7 @@ + + +报告使用 com.google.gwt.user.client.rpc.AsyncCallback 而不使用类型形参的服务方法的异步变体。 +

      自 GWT 1.5 版以来,此类代码是非法的。

      +

      快速修复添加了必要的泛型形参。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/scala2InSource3.html b/original-plugin-raw/zh/inspectionDescriptions/scala2InSource3.html new file mode 100644 index 000000000..1da7c6478 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/scala2InSource3.html @@ -0,0 +1,17 @@ + + +

      报告使用 -Xsource:3 时可以替换为 Scala 3 的 Scala 2 语法。

      + +

      在编译器标志 -Xsource:3 下,Scala 2.13.6 已支持以下 Scala 3 结构:

      +
        +
      • 使用 ? 代替 _ 作为通配符类型中的通配符标记
      • +
      • for 推导式的模式绑定中的 case
      • +
      • * 在 import 中使用 * 代替 _
      • +
      • 在 import 别名中使用 as 软关键字代替 =>
      • +
      • 允许使用 openinfix 修饰符
      • +
      • 新的 Scala 3 vararg 接合语法
      • +
      • 在复合类型中使用 & 代替 with
      • +
      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/inspectionDescriptions/unused.html b/original-plugin-raw/zh/inspectionDescriptions/unused.html new file mode 100644 index 000000000..cc75fbf04 --- /dev/null +++ b/original-plugin-raw/zh/inspectionDescriptions/unused.html @@ -0,0 +1,32 @@ + + +报告指定检查范围中未使用或无法从入口点到达的类、方法或字段。 +

      入口点可以是主方法、测试、指定范围外提及的类、可从 module-info.java 访问的类,等等。 还可以使用名称模式或注解来配置自定义入口点。 +

      示例:

      +
      
      +  public class Department {
      +    private Organization myOrganization;
      +  }
      +
      +

      在本例中,Department 显式引用 Organization,但如果 Department 类本身未使用,那么该检查将报告这两个类。

      +

      + 该检查还会报告其方法、所有方法实现和重写器未使用的形参,以及已声明但未使用的局部变量。 +

      +

      + 注意:在编辑器中高亮显示代码期间可能不会报告某些未使用的成员。 由于性能原因,仅当非 private 成员的名称很少出现在项目中时,才会对其进行检查。 + 要查看所有结果,请从主菜单中选择代码 | 检查代码代码 | 分析代码 | 按名称运行检查 来运行检查。 +

      + + +

      使用下面的可见性设置可以配置要报告的成员。 例如,配置报告 private 方法只表明将报告 private 内部类的 public 方法,顶层类的 protected 方法将被忽略。

      +

      + 使用入口点选项卡可以配置检查运行期间要考虑的入口点。

      +

      在检查结果准备就绪后,可以手动添加入口点。

      +

      如果您的代码使用不受支持的框架,可以选择以下几个选项:

      +
        +
      • 如果框架依赖于注解,使用注解…按钮可配置框架注解。
      • +
      • 如果框架不依赖于注解,可尝试配置框架应有的类名模式。
      • +
      +

      这样,框架内部项可访问的注解代码将被视为已使用。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AdapterToListenerIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AdapterToListenerIntention/description.html new file mode 100644 index 000000000..db64db8a6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AdapterToListenerIntention/description.html @@ -0,0 +1,5 @@ + + +将监听器的直接实现替换为适配器类的扩展。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/AddActivityToManifest/description.html b/original-plugin-raw/zh/intentionDescriptions/AddActivityToManifest/description.html new file mode 100644 index 000000000..1bedcb861 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddActivityToManifest/description.html @@ -0,0 +1,5 @@ + + +向 AndroidManifest.xml 添加一个活动类 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddAnnotationUseSiteTargetIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddAnnotationUseSiteTargetIntention/description.html new file mode 100644 index 000000000..4141876a4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddAnnotationUseSiteTargetIntention/description.html @@ -0,0 +1,5 @@ + + +将使用点目标添加到适用于多个注解目标的所选注解。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddAnnotationValueIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddAnnotationValueIntention/description.html new file mode 100644 index 000000000..ef6c64c11 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddAnnotationValueIntention/description.html @@ -0,0 +1,5 @@ + + +使用单个参数将显式 value 特性名称添加到注解。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/AddBracesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddBracesIntention/description.html new file mode 100644 index 000000000..c44afd215 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddBracesIntention/description.html @@ -0,0 +1,2 @@ + +

      在单行方法主体周围、值定义周围或 if/else 分支周围添加大括号。

      \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddBracesToAllBranchesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddBracesToAllBranchesIntention/description.html new file mode 100644 index 000000000..4bc712d63 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddBracesToAllBranchesIntention/description.html @@ -0,0 +1,5 @@ + + +为 ifwhen 的所有分支添加大括号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddBroadcastReceiverToManifest/description.html b/original-plugin-raw/zh/intentionDescriptions/AddBroadcastReceiverToManifest/description.html new file mode 100644 index 000000000..ce0b550cc --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddBroadcastReceiverToManifest/description.html @@ -0,0 +1,5 @@ + + +将 BroadcastReceiver 的子类添加到 AndroidManifest.xml + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddCatchClauseIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddCatchClauseIntention/description.html new file mode 100644 index 000000000..a4b26a435 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddCatchClauseIntention/description.html @@ -0,0 +1,5 @@ + + +为文本光标处的表达式抛出的特定错误添加 catch 子句 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/AddConstModifierIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddConstModifierIntention/description.html new file mode 100644 index 000000000..97e31a2a1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddConstModifierIntention/description.html @@ -0,0 +1,3 @@ + +将 const 修饰符添加到可以是有效编译时常量的属性。 + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddExplicitTypeArgumentsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddExplicitTypeArgumentsIntention/description.html new file mode 100644 index 000000000..7e2147da2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddExplicitTypeArgumentsIntention/description.html @@ -0,0 +1,5 @@ + + +向方法调用添加显式类型实参。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/AddForLoopIndicesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddForLoopIndicesIntention/description.html new file mode 100644 index 000000000..a2f8d4a0e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddForLoopIndicesIntention/description.html @@ -0,0 +1,5 @@ + + +向迭代集合的 for 循环添加索引变量。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/AddFullQualifierIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddFullQualifierIntention/description.html new file mode 100644 index 000000000..abb088345 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddFullQualifierIntention/description.html @@ -0,0 +1,5 @@ + + +向所选引用添加完整的限定符前缀。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddJavadocIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddJavadocIntention/description.html new file mode 100644 index 000000000..dbc3ab279 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddJavadocIntention/description.html @@ -0,0 +1,20 @@ + + + +为类、方法和字段创建文档注释。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/AddJvmOverloadsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddJvmOverloadsIntention/description.html new file mode 100644 index 000000000..7791dc03c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddJvmOverloadsIntention/description.html @@ -0,0 +1,5 @@ + + +向具有默认实参的函数和构造函数添加 @JvmOverloads 注解。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/AddJvmStaticIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddJvmStaticIntention/description.html new file mode 100644 index 000000000..889e3bd53 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddJvmStaticIntention/description.html @@ -0,0 +1,5 @@ + + +向对象声明的指定函数或属性添加 @JvmStatic 注解。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/AddLabeledReturnInLambdaIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddLabeledReturnInLambdaIntention/description.html new file mode 100644 index 000000000..a98682b85 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddLabeledReturnInLambdaIntention/description.html @@ -0,0 +1,5 @@ + + +将带标签的 return 添加到 lambda 中的最后一个表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/AddMissingClassKeywordIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddMissingClassKeywordIntention/description.html new file mode 100644 index 000000000..2b73565b4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddMissingClassKeywordIntention/description.html @@ -0,0 +1,5 @@ + + +为特殊的类种类添加缺少的 class 关键字,例如 enum。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/AddMissingDestructuringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddMissingDestructuringIntention/description.html new file mode 100644 index 000000000..7582569cd --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddMissingDestructuringIntention/description.html @@ -0,0 +1,5 @@ + + +在析构声明中添加缺失的组件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddNameToArgumentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddNameToArgumentIntention/description.html new file mode 100644 index 000000000..1546032cc --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddNameToArgumentIntention/description.html @@ -0,0 +1,2 @@ + +

      将命名实参用作当前和后续的实参。

      \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddNamesInCommentToJavaCallArgumentsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddNamesInCommentToJavaCallArgumentsIntention/description.html new file mode 100644 index 000000000..3c173ce2f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddNamesInCommentToJavaCallArgumentsIntention/description.html @@ -0,0 +1,5 @@ + + +在注释中为 Java 方法调用或构造函数调用的所有实参添加名称。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddNamesToCallArgumentsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddNamesToCallArgumentsIntention/description.html new file mode 100644 index 000000000..b84ec8bdd --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddNamesToCallArgumentsIntention/description.html @@ -0,0 +1,5 @@ + + +根据命名实参语法将名称添加到函数调用的所有位置实参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddNamesToFollowingArgumentsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddNamesToFollowingArgumentsIntention/description.html new file mode 100644 index 000000000..24930b739 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddNamesToFollowingArgumentsIntention/description.html @@ -0,0 +1,5 @@ + + +根据命名实参语法,从所选实参开始,将名称添加到函数调用的所有位置实参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddOnDemandStaticImportAction/description.html b/original-plugin-raw/zh/intentionDescriptions/AddOnDemandStaticImportAction/description.html new file mode 100644 index 000000000..50bcadc1b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddOnDemandStaticImportAction/description.html @@ -0,0 +1,5 @@ + + +将所选限定引用转换为简单引用,并为相应的类添加 static import 语句(Java 5.0 特性)。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/AddOpenModifierIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddOpenModifierIntention/description.html new file mode 100644 index 000000000..5fd33b7d2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddOpenModifierIntention/description.html @@ -0,0 +1,5 @@ + + +将 open 修饰符添加到 open 类中的非 private 方法或属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddOptionalArgumentsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddOptionalArgumentsIntention/description.html new file mode 100644 index 000000000..a06dc154d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddOptionalArgumentsIntention/description.html @@ -0,0 +1,9 @@ + + +为模板调用 (xsl:call-template) 添加缺少的实参。 + +

      + 由 XPathView + XSLT-Support 提供技术支持 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddPropertyAccessorsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddPropertyAccessorsIntention/description.html new file mode 100644 index 000000000..c906c5bf0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddPropertyAccessorsIntention/description.html @@ -0,0 +1,5 @@ + + +为属性添加显式访问器。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddPropertyGetterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddPropertyGetterIntention/description.html new file mode 100644 index 000000000..dd3d5d6d2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddPropertyGetterIntention/description.html @@ -0,0 +1,5 @@ + + +添加属性 getter。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddPropertySetterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddPropertySetterIntention/description.html new file mode 100644 index 000000000..060fe02b6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddPropertySetterIntention/description.html @@ -0,0 +1,5 @@ + + +添加属性 setter。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddReplaceSlashRToMLStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddReplaceSlashRToMLStringIntention/description.html new file mode 100644 index 000000000..c863209cb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddReplaceSlashRToMLStringIntention/description.html @@ -0,0 +1,5 @@ + + +

      .replace("\r", "") 添加到一个字符串。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddReturnTypeFix/description.html b/original-plugin-raw/zh/intentionDescriptions/AddReturnTypeFix/description.html new file mode 100644 index 000000000..7c97bf8e5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddReturnTypeFix/description.html @@ -0,0 +1,5 @@ + + +将显式返回类型添加到方法声明。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddRuntimeExceptionToThrowsAction/description.html b/original-plugin-raw/zh/intentionDescriptions/AddRuntimeExceptionToThrowsAction/description.html new file mode 100644 index 000000000..4b8cc8fc0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddRuntimeExceptionToThrowsAction/description.html @@ -0,0 +1,5 @@ + + +向当前方法签名添加运行时异常。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/AddSchemaPrefixIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddSchemaPrefixIntention/description.html new file mode 100644 index 000000000..d1b6073cb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddSchemaPrefixIntention/description.html @@ -0,0 +1,5 @@ + + +插入命名空间前缀。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddServiceToManifest/description.html b/original-plugin-raw/zh/intentionDescriptions/AddServiceToManifest/description.html new file mode 100644 index 000000000..14bd6ddb3 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddServiceToManifest/description.html @@ -0,0 +1,5 @@ + + +向 AndroidManifest.xml 添加服务子类 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddSingleMemberStaticImportAction/description.html b/original-plugin-raw/zh/intentionDescriptions/AddSingleMemberStaticImportAction/description.html new file mode 100644 index 000000000..839ae93ec --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddSingleMemberStaticImportAction/description.html @@ -0,0 +1,5 @@ + + +将所选限定引用转换为简单引用,并为该引用添加相应的 static import 语句(Java 5.0 特性)。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/AddStripMarginToMLStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddStripMarginToMLStringIntention/description.html new file mode 100644 index 000000000..8c9fb510a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddStripMarginToMLStringIntention/description.html @@ -0,0 +1,7 @@ + + +

      .stripMargin([marginChar]) 添加到一个字符串。 + 边距字符取自以下设置:文件|设置|编辑器|代码样式|Scala|多行字符串。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddTailRecursionAnnotationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddTailRecursionAnnotationIntention/description.html new file mode 100644 index 000000000..d4940aad8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddTailRecursionAnnotationIntention/description.html @@ -0,0 +1 @@ +

      在尾递归方法之前添加 @tailrec 注解。

      \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddThrowsAnnotationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddThrowsAnnotationIntention/description.html new file mode 100644 index 000000000..20743ef9e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddThrowsAnnotationIntention/description.html @@ -0,0 +1,5 @@ + + +为文本光标处的异常添加 @Throws 注解。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddUnderscoresToNumericLiteralIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddUnderscoresToNumericLiteralIntention/description.html new file mode 100644 index 000000000..08fa59dae --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddUnderscoresToNumericLiteralIntention/description.html @@ -0,0 +1,5 @@ + + +向数值文字添加下划线。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddUnitTypeAnnotationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddUnitTypeAnnotationIntention/description.html new file mode 100644 index 000000000..df4193fae --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddUnitTypeAnnotationIntention/description.html @@ -0,0 +1,5 @@ + + +

      将显式的 Unit 类型注解添加到使用已弃用过程语法的函数中。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddValVarToConstructorParameterActionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddValVarToConstructorParameterActionIntention/description.html new file mode 100644 index 000000000..edfa5564b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddValVarToConstructorParameterActionIntention/description.html @@ -0,0 +1,5 @@ + + +将 valvar 关键字添加到主构造函数形参,使其成为属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AddWhenRemainingBranchesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AddWhenRemainingBranchesIntention/description.html new file mode 100644 index 000000000..61aa5c37b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddWhenRemainingBranchesIntention/description.html @@ -0,0 +1,5 @@ + + +为所选 when 表达式添加剩余的分支。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/AddXsiSchemaLocationForExtResourceAction/description.html b/original-plugin-raw/zh/intentionDescriptions/AddXsiSchemaLocationForExtResourceAction/description.html new file mode 100644 index 000000000..71ce31e25 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AddXsiSchemaLocationForExtResourceAction/description.html @@ -0,0 +1,5 @@ + + +为外部资源添加 xsi:schemaLocation 特性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AdjustTypesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AdjustTypesIntention/description.html new file mode 100644 index 000000000..146e52eb7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AdjustTypesIntention/description.html @@ -0,0 +1 @@ +

      简化选定片段中类型元素中的限定引用。

      \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AllHashRocketToNewStyleIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AllHashRocketToNewStyleIntention/description.html new file mode 100644 index 000000000..27c481a2a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AllHashRocketToNewStyleIntention/description.html @@ -0,0 +1,5 @@ + + +将所有哈希键从哈希火箭语法转换为 Ruby 1.9 语法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AllNewHashStyleToRocketIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AllNewHashStyleToRocketIntention/description.html new file mode 100644 index 000000000..5b097fbb6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AllNewHashStyleToRocketIntention/description.html @@ -0,0 +1,5 @@ + + +将所有哈希键从 Ruby 1.9 语法转换为哈希火箭语法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AndroidAddLibraryDependencyAction/description.html b/original-plugin-raw/zh/intentionDescriptions/AndroidAddLibraryDependencyAction/description.html new file mode 100644 index 000000000..4a1a66009 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AndroidAddLibraryDependencyAction/description.html @@ -0,0 +1,5 @@ + + +此意图会将库依赖项添加到 build.gradle 文件 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AndroidAddStringResourceAction/description.html b/original-plugin-raw/zh/intentionDescriptions/AndroidAddStringResourceAction/description.html new file mode 100644 index 000000000..6ae99fe67 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AndroidAddStringResourceAction/description.html @@ -0,0 +1,5 @@ + + +此意图会将现有的 Java 或 XML 字符串提取到资源 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AndroidCreateOnClickHandlerAction/description.html b/original-plugin-raw/zh/intentionDescriptions/AndroidCreateOnClickHandlerAction/description.html new file mode 100644 index 000000000..40551c660 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AndroidCreateOnClickHandlerAction/description.html @@ -0,0 +1,5 @@ + + +此意图会将处理 onClick 事件的方法添加到 Activity 中 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AndroidExtractColorAction/description.html b/original-plugin-raw/zh/intentionDescriptions/AndroidExtractColorAction/description.html new file mode 100644 index 000000000..2a76f436c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AndroidExtractColorAction/description.html @@ -0,0 +1,5 @@ + + +此意图会将现有的 XML 颜色提取到资源 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AndroidExtractDimensionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/AndroidExtractDimensionAction/description.html new file mode 100644 index 000000000..0903d3dc6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AndroidExtractDimensionAction/description.html @@ -0,0 +1,5 @@ + + +此意图会将现有 Java 或 XML 维度提取到资源 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AnnotateCapitalizationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AnnotateCapitalizationIntention/description.html new file mode 100644 index 000000000..7e27a46be --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AnnotateCapitalizationIntention/description.html @@ -0,0 +1,5 @@ + + +使用大写类型注解。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AnnotateIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/AnnotateIntentionAction/description.html new file mode 100644 index 000000000..5121305cb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AnnotateIntentionAction/description.html @@ -0,0 +1,3 @@ + +向所选元素添加注解,例如 @Nullable/@NotNull。 如果代码属于库,则注解将存储在单独的文件中。 + diff --git a/original-plugin-raw/zh/intentionDescriptions/AnnotateOverriddenMethodsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AnnotateOverriddenMethodsIntention/description.html new file mode 100644 index 000000000..2b2cebebe --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AnnotateOverriddenMethodsIntention/description.html @@ -0,0 +1,5 @@ + + +将方法或形参上的注解复制到所有重写的方法。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/AnonymousFunctionToLambdaIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AnonymousFunctionToLambdaIntention/description.html new file mode 100644 index 000000000..8a72c6fc6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AnonymousFunctionToLambdaIntention/description.html @@ -0,0 +1,5 @@ + + +将作为实参传递的匿名函数转换为 lambda 表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ApplyCrdIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ApplyCrdIntentionAction/description.html new file mode 100644 index 000000000..c5da00d46 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ApplyCrdIntentionAction/description.html @@ -0,0 +1,5 @@ + + +如果当前文件包含 CustomResourceDefinition,则将其添加到外部架构规范中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ArgumentToBlockExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ArgumentToBlockExpressionIntention/description.html new file mode 100644 index 000000000..7ec9bcaf0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ArgumentToBlockExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +

      转换 final 实参列表以使用大括号。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/AssignFieldFromParameterAction/description.html b/original-plugin-raw/zh/intentionDescriptions/AssignFieldFromParameterAction/description.html new file mode 100644 index 000000000..8d524625a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AssignFieldFromParameterAction/description.html @@ -0,0 +1,5 @@ + + +插入语句,将形参分配给同名字段。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/AttributeToTagIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/AttributeToTagIntention/description.html new file mode 100644 index 000000000..1771f4825 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/AttributeToTagIntention/description.html @@ -0,0 +1,5 @@ + + +将一个标记的特性及其值转换为一个新的子元素。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/BindFieldsFromParametersAction/description.html b/original-plugin-raw/zh/intentionDescriptions/BindFieldsFromParametersAction/description.html new file mode 100644 index 000000000..b403415ec --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/BindFieldsFromParametersAction/description.html @@ -0,0 +1,5 @@ + + +允许从方法形参创建或分配多个字段。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/BlockExpressionToArgumentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/BlockExpressionToArgumentIntention/description.html new file mode 100644 index 000000000..32727c262 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/BlockExpressionToArgumentIntention/description.html @@ -0,0 +1,5 @@ + + +

      转换 final 实参列表以使用圆括号。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/BracesToDoIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/BracesToDoIntention/description.html new file mode 100644 index 000000000..231d329ae --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/BracesToDoIntention/description.html @@ -0,0 +1,5 @@ + + +将大括号内的块转换为 do 块。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/BreakStringOnLineBreaksIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/BreakStringOnLineBreaksIntentionAction/description.html new file mode 100644 index 000000000..3af45777a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/BreakStringOnLineBreaksIntentionAction/description.html @@ -0,0 +1,5 @@ + + +在 '\n' 和 '\n\r' 行分隔符处换行。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CDataToTextIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CDataToTextIntention/description.html new file mode 100644 index 000000000..aac4ce02e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CDataToTextIntention/description.html @@ -0,0 +1,5 @@ + + +从 CDATA 部分解包文本片段,并根据需要对字符进行转义。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ChangeAccessModifierIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ChangeAccessModifierIntention/description.html new file mode 100644 index 000000000..9f0261de9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ChangeAccessModifierIntention/description.html @@ -0,0 +1,5 @@ + + +更改类、方法或字段的访问修饰符。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ChangeClassParametersIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ChangeClassParametersIntention/description.html new file mode 100644 index 000000000..5e55e37b4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ChangeClassParametersIntention/description.html @@ -0,0 +1,5 @@ + + +更改实时模板中的匿名类类型形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ChangeMacroCallStyle/description.html b/original-plugin-raw/zh/intentionDescriptions/ChangeMacroCallStyle/description.html new file mode 100644 index 000000000..a27bd0d43 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ChangeMacroCallStyle/description.html @@ -0,0 +1,5 @@ + + +将宏调用从“位置形参样式”转换为“命名形参样式”,或者将宏调用从“命名形参样式”转换为“位置形参样式”。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ChangeModifierIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ChangeModifierIntention/description.html new file mode 100644 index 000000000..9f0261de9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ChangeModifierIntention/description.html @@ -0,0 +1,5 @@ + + +更改类、方法或字段的访问修饰符。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ChangePackageIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ChangePackageIntention/description.html new file mode 100644 index 000000000..0be738bef --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ChangePackageIntention/description.html @@ -0,0 +1,6 @@ + + +更改当前文件的限定软件包名称,无需移动文件本身。 +所有引用和导入指令都会相应地更新。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ChangeToCStyleCommentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ChangeToCStyleCommentIntention/description.html new file mode 100644 index 000000000..5ee5fc74d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ChangeToCStyleCommentIntention/description.html @@ -0,0 +1,5 @@ + + +将一条或多条行尾注释转换为块注释。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ChangeToEndOfLineCommentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ChangeToEndOfLineCommentIntention/description.html new file mode 100644 index 000000000..b28562364 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ChangeToEndOfLineCommentIntention/description.html @@ -0,0 +1,5 @@ + + +将 C 样式块注释替换为一个或多个行尾注释。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ChangeUIDAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ChangeUIDAction/description.html new file mode 100644 index 000000000..2161e78a8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ChangeUIDAction/description.html @@ -0,0 +1,5 @@ + + +将 serialVersionUID 字段的初始值设定项更改为随机生成的值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ChangeVariableTypeToRhsTypeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ChangeVariableTypeToRhsTypeIntention/description.html new file mode 100644 index 000000000..90965a14a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ChangeVariableTypeToRhsTypeIntention/description.html @@ -0,0 +1,5 @@ + + +如果将变量的类型更改为其初始值设定项的类型会更具体,则更改变量的类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ChangeVisibilityModifierIntentionInternal/description.html b/original-plugin-raw/zh/intentionDescriptions/ChangeVisibilityModifierIntentionInternal/description.html new file mode 100644 index 000000000..c392d24e2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ChangeVisibilityModifierIntentionInternal/description.html @@ -0,0 +1,5 @@ + + +将声明可见性修饰符更改为 internal。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ChangeVisibilityModifierIntentionPrivate/description.html b/original-plugin-raw/zh/intentionDescriptions/ChangeVisibilityModifierIntentionPrivate/description.html new file mode 100644 index 000000000..ff7c1ba74 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ChangeVisibilityModifierIntentionPrivate/description.html @@ -0,0 +1,5 @@ + + +将声明可见性修饰符更改为 private。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ChangeVisibilityModifierIntentionProtected/description.html b/original-plugin-raw/zh/intentionDescriptions/ChangeVisibilityModifierIntentionProtected/description.html new file mode 100644 index 000000000..370d0e5da --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ChangeVisibilityModifierIntentionProtected/description.html @@ -0,0 +1,5 @@ + + +将声明可见性修饰符更改为 protected。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ChangeVisibilityModifierIntentionPublic/description.html b/original-plugin-raw/zh/intentionDescriptions/ChangeVisibilityModifierIntentionPublic/description.html new file mode 100644 index 000000000..828114414 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ChangeVisibilityModifierIntentionPublic/description.html @@ -0,0 +1,5 @@ + + +将声明可见性修饰符更改为 public。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CharToStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CharToStringIntention/description.html new file mode 100644 index 000000000..720a34116 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CharToStringIntention/description.html @@ -0,0 +1,5 @@ + + +将字符文字替换为等效的单字符串文字。 只有在串联或其他类似上下文中使用的字符才能用此意图进行更改。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CheckRegExpIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/CheckRegExpIntentionAction/description.html new file mode 100644 index 000000000..7c10b9a7a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CheckRegExpIntentionAction/description.html @@ -0,0 +1,9 @@ + + + + +使您可以在专用对话框中检查正则表达式的有效性。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ChooseFileIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ChooseFileIntentionAction/description.html new file mode 100644 index 000000000..3bad91a67 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ChooseFileIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将路径添加到在 pom.xml 中声明为系统属性的 .jar 文件。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ChopArgumentListIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ChopArgumentListIntention/description.html new file mode 100644 index 000000000..790b680bb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ChopArgumentListIntention/description.html @@ -0,0 +1,5 @@ + + +格式化函数调用会将每个实参放在单独的行上。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ChopParameterListIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ChopParameterListIntention/description.html new file mode 100644 index 000000000..448198a6a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ChopParameterListIntention/description.html @@ -0,0 +1,5 @@ + + +格式化声明的形参会将每个形参放在单独的行上。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CoffeeScriptDoubleToSingleQuotedStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CoffeeScriptDoubleToSingleQuotedStringIntention/description.html new file mode 100644 index 000000000..10b04db44 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CoffeeScriptDoubleToSingleQuotedStringIntention/description.html @@ -0,0 +1,5 @@ + + +将双引号引用的字符串文字替换为等效的单引号引用的字符串文字,并确保单引号在字符串中被正确转义。
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CoffeeScriptSingleToDoubleQuotedStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CoffeeScriptSingleToDoubleQuotedStringIntention/description.html new file mode 100644 index 000000000..6a2a34eed --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CoffeeScriptSingleToDoubleQuotedStringIntention/description.html @@ -0,0 +1,5 @@ + + +将单引号引用的字符串文字替换为等效的双引号引用字符串文字,并确保双引号在字符串中被正确转义。
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CollapseIntoLoopAction/description.html b/original-plugin-raw/zh/intentionDescriptions/CollapseIntoLoopAction/description.html new file mode 100644 index 000000000..19a54c790 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CollapseIntoLoopAction/description.html @@ -0,0 +1,7 @@ + + +尽可能将所选语句折叠成一个循环。 +

      请注意,在初始化循环时会评估提取的元素。 +如果您的代码取决于评估顺序,则该快速修复可能会影响其语义。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CollapseTagIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CollapseTagIntention/description.html new file mode 100644 index 000000000..7b0161b2b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CollapseTagIntention/description.html @@ -0,0 +1,5 @@ + + +将起始标记和相应的结束标记替换为等效的自我结束标记。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ComparingLengthIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ComparingLengthIntention/description.html new file mode 100644 index 000000000..05f0aaab3 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ComparingLengthIntention/description.html @@ -0,0 +1,6 @@ + + +

      .length.size 的比较替换为 .sizeIs

      + + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ComposeCreatePreviewAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ComposeCreatePreviewAction/description.html new file mode 100644 index 000000000..60a2645cc --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ComposeCreatePreviewAction/description.html @@ -0,0 +1,22 @@ + + + +

      + 将 @Preview 注解添加到 @Composable 函数。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ComposeFunctionChainAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ComposeFunctionChainAction/description.html new file mode 100644 index 000000000..c7b2d59e5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ComposeFunctionChainAction/description.html @@ -0,0 +1,8 @@ + + +将 Function.applyBiFunction.apply 调用与外部调用组合在一起。 +

      +如有必要,可以使用此意图将组合函数恢复为原始代码。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ComposeSurroundWithWidgetActionGroup/description.html b/original-plugin-raw/zh/intentionDescriptions/ComposeSurroundWithWidgetActionGroup/description.html new file mode 100644 index 000000000..36d7bec9f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ComposeSurroundWithWidgetActionGroup/description.html @@ -0,0 +1,5 @@ + + +此意图会用微件包围选定的组合代码。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ComposeUnwrapAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ComposeUnwrapAction/description.html new file mode 100644 index 000000000..57c9f5336 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ComposeUnwrapAction/description.html @@ -0,0 +1,20 @@ + + + +此意图会移除行或列等 Composable 包装器 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ComposeWrapModifiersAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ComposeWrapModifiersAction/description.html new file mode 100644 index 000000000..6fa7417f3 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ComposeWrapModifiersAction/description.html @@ -0,0 +1,20 @@ + + + +将两个或更长修饰符的修饰符链包装在每行的同一个修饰符中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConcatenationToMessageFormatAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ConcatenationToMessageFormatAction/description.html new file mode 100644 index 000000000..26cf6d7e8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConcatenationToMessageFormatAction/description.html @@ -0,0 +1,5 @@ + + +将字符串串联表达式转换为 java.text.MessageFormat.format 方法调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConfigureCodeStyleOnSelectedFragment/description.html b/original-plugin-raw/zh/intentionDescriptions/ConfigureCodeStyleOnSelectedFragment/description.html new file mode 100644 index 000000000..8821dcb7c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConfigureCodeStyleOnSelectedFragment/description.html @@ -0,0 +1,5 @@ + + +显示当前在编辑器中选定的代码段的代码样式设置。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConstantSubexpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConstantSubexpressionIntention/description.html new file mode 100644 index 000000000..203aeaaba --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConstantSubexpressionIntention/description.html @@ -0,0 +1,6 @@ + + +计算编译时常量子表达式的值,并将其替换为等效的文字表达式。 +它适用于您不想替换整个常量表达式而只想替换其中一部分这种情况。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertAbsolutePathToRelativeIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertAbsolutePathToRelativeIntentionAction/description.html new file mode 100644 index 000000000..e53e89614 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertAbsolutePathToRelativeIntentionAction/description.html @@ -0,0 +1,5 @@ + + +如果适用,将绝对路径转换为相对路径。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertAnyToAllAndViceVersaIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertAnyToAllAndViceVersaIntention/description.html new file mode 100644 index 000000000..948c8bb39 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertAnyToAllAndViceVersaIntention/description.html @@ -0,0 +1,5 @@ + + +将 any 函数调用替换为 all,反之亦然。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertAnyToNoneAndViceVersaIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertAnyToNoneAndViceVersaIntention/description.html new file mode 100644 index 000000000..f6b6411bb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertAnyToNoneAndViceVersaIntention/description.html @@ -0,0 +1,5 @@ + + +将 any 函数调用替换为 none,反之亦然。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertArgumentToSetIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertArgumentToSetIntention/description.html new file mode 100644 index 000000000..cd64854bf --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertArgumentToSetIntention/description.html @@ -0,0 +1,5 @@ + + +如果可以提高性能,则将函数实参转换为 Set。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertArrayParameterToVarargIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertArrayParameterToVarargIntention/description.html new file mode 100644 index 000000000..4ee710c4a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertArrayParameterToVarargIntention/description.html @@ -0,0 +1,5 @@ + + +将数组形参转换为 vararg 形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertAtomicToLongAdderIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertAtomicToLongAdderIntention/description.html new file mode 100644 index 000000000..87948167d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertAtomicToLongAdderIntention/description.html @@ -0,0 +1,5 @@ + + +将 AtomicLong 或 AtomicInteger 变量的类型替换为 java.util.concurrent.atomic.LongAdder 类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertBinaryExpressionWithDemorgansLawIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertBinaryExpressionWithDemorgansLawIntention/description.html new file mode 100644 index 000000000..7d976cbfa --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertBinaryExpressionWithDemorgansLawIntention/description.html @@ -0,0 +1,6 @@ + + +使用德摩根定律将 boolean 表达式转换为等效表达式: +将 !a || !b 替换为 !(a && b) 或将 !a && !b 替换为 !(a || b) + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertBlockCommentToLineCommentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertBlockCommentToLineCommentIntention/description.html new file mode 100644 index 000000000..ecd4d2dff --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertBlockCommentToLineCommentIntention/description.html @@ -0,0 +1,5 @@ + + +使用一个或多个行尾 (// ...) 注释替换块注释 (/* ... */)。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertCallToOppositeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertCallToOppositeIntention/description.html new file mode 100644 index 000000000..d76c1b791 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertCallToOppositeIntention/description.html @@ -0,0 +1,5 @@ + + +将 all/none/filter/filterNot/filterTo/filterNotTo/takeIf/takeUnless 替换为相反的函数调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertCamelCaseTestFunctionToSpacedIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertCamelCaseTestFunctionToSpacedIntention/description.html new file mode 100644 index 000000000..44d7f27cb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertCamelCaseTestFunctionToSpacedIntention/description.html @@ -0,0 +1,5 @@ + + +将给定测试函数使用驼峰拼写法的名称更改为空格分隔的名称。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertCatchToThrowsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertCatchToThrowsIntention/description.html new file mode 100644 index 000000000..86f93e193 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertCatchToThrowsIntention/description.html @@ -0,0 +1,5 @@ + + +移除 try - catch 语句中的 catch 部分,并向包含的方法添加具有相同异常的 throws 声明。 如果 try 语句不包含其他 catch 部分,则将其完全移除。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertClosureToMethodIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertClosureToMethodIntention/description.html new file mode 100644 index 000000000..b1bb5bb3d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertClosureToMethodIntention/description.html @@ -0,0 +1,5 @@ + + +将具有闭包类型的属性转换为方法。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertCollectionConstructorToFunction/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertCollectionConstructorToFunction/description.html new file mode 100644 index 000000000..93158228e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertCollectionConstructorToFunction/description.html @@ -0,0 +1,5 @@ + + +报告集合构造函数的显式调用,这些构造函数可以被 stdlib 构建器函数的调用替换,例如 listOf()。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertColorRepresentationIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertColorRepresentationIntentionAction/description.html new file mode 100644 index 000000000..aa49398b1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertColorRepresentationIntentionAction/description.html @@ -0,0 +1,5 @@ + + +允许在 new Color(int rgb)new Color(int r, int g, int b) 构造函数变体之间进行转换。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertCompactConstructorToCanonicalAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertCompactConstructorToCanonicalAction/description.html new file mode 100644 index 000000000..21fe4f9e3 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertCompactConstructorToCanonicalAction/description.html @@ -0,0 +1,6 @@ + + +将 Java 记录压缩构造函数转换为显式规范构造函数。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertCompareToToEqualsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertCompareToToEqualsIntention/description.html new file mode 100644 index 000000000..6789d9e34 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertCompareToToEqualsIntention/description.html @@ -0,0 +1,20 @@ + + + +将 compareTo() 方法调用表达式转换为 equals() 调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertConcatenationToBuildStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertConcatenationToBuildStringIntention/description.html new file mode 100644 index 000000000..7fda8a87f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertConcatenationToBuildStringIntention/description.html @@ -0,0 +1,5 @@ + + +将使用 + 构建 String 的语句转换为使用 buildString 调用构建 String 的语句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertConcatenationToGstringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertConcatenationToGstringIntention/description.html new file mode 100644 index 000000000..e87df4a1f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertConcatenationToGstringIntention/description.html @@ -0,0 +1,5 @@ + + +将字符串串联转换为 GString。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertEntityIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertEntityIntention/description.html new file mode 100644 index 000000000..134d40ac1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertEntityIntention/description.html @@ -0,0 +1,5 @@ + + +将字符实体的数字形式替换为其命名形式,反之亦然。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertEnumToSealedClassIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertEnumToSealedClassIntention/description.html new file mode 100644 index 000000000..6982656d0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertEnumToSealedClassIntention/description.html @@ -0,0 +1,5 @@ + + +将 enum 类转换为 sealed 类层次结构,从而将 enum 条目转换为对象。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertFieldToAtomicIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertFieldToAtomicIntention/description.html new file mode 100644 index 000000000..6dd2c77f8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertFieldToAtomicIntention/description.html @@ -0,0 +1,5 @@ + + +将变量类型替换为相应的原子类型。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertFieldToThreadLocalIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertFieldToThreadLocalIntention/description.html new file mode 100644 index 000000000..53aad7182 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertFieldToThreadLocalIntention/description.html @@ -0,0 +1,5 @@ + + +将字段类型替换为相应的线程本地存储。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertForEachToForLoopIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertForEachToForLoopIntention/description.html new file mode 100644 index 000000000..9479164b9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertForEachToForLoopIntention/description.html @@ -0,0 +1,5 @@ + + +将 forEach 函数调用转换为 for 循环。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertFormatOperatorToMethodIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertFormatOperatorToMethodIntention/description.html new file mode 100644 index 000000000..e286b9d48 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertFormatOperatorToMethodIntention/description.html @@ -0,0 +1,8 @@ + + + + 将字符串格式运算符替换为等效的 format 方法调用。 +
      +参见 String format() 方法了解详细信息。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertFromGeeseBracesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertFromGeeseBracesIntention/description.html new file mode 100644 index 000000000..1a6cf9252 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertFromGeeseBracesIntention/description.html @@ -0,0 +1,8 @@ + + +将闭包的一系列结束大括号格式化到单独的行中。 +

      + 如果在编辑器 | 代码样式 | Groovy | 换行和大括号 | 大括号放置中选中使用雁形大括号,则此意图可以运行。 +

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertFromInfixExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertFromInfixExpressionIntention/description.html new file mode 100644 index 000000000..1cbf060cf --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertFromInfixExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +

      从中缀表达式转换为方法调用表达式。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertFromInfixIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertFromInfixIntention/description.html new file mode 100644 index 000000000..d4a2ff53d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertFromInfixIntention/description.html @@ -0,0 +1,5 @@ + + +

      对中缀二元类型应用程序使用前缀类型语法。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertFunctionToPropertyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertFunctionToPropertyIntention/description.html new file mode 100644 index 000000000..2fb16b990 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertFunctionToPropertyIntention/description.html @@ -0,0 +1,5 @@ + + +将函数转换为属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertFunctionTypeParameterToReceiverIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertFunctionTypeParameterToReceiverIntention/description.html new file mode 100644 index 000000000..423403f6c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertFunctionTypeParameterToReceiverIntention/description.html @@ -0,0 +1,5 @@ + + +将用作另一个函数中的形参的函数类型的给定形参转换为接收器。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertFunctionTypeReceiverToParameterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertFunctionTypeReceiverToParameterIntention/description.html new file mode 100644 index 000000000..858107cba --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertFunctionTypeReceiverToParameterIntention/description.html @@ -0,0 +1,5 @@ + + +将在另一个函数中用作形参的函数类型的接收器转换为其第一个形参。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertGStringToStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertGStringToStringIntention/description.html new file mode 100644 index 000000000..dd70dac7a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertGStringToStringIntention/description.html @@ -0,0 +1,5 @@ + + +将 GString 文字转换为等效的 String 文字。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertIfToChooseIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertIfToChooseIntention/description.html new file mode 100644 index 000000000..3bb0299bf --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertIfToChooseIntention/description.html @@ -0,0 +1,9 @@ + + +将一个简单的 xsl:if 转换为 xsl:choose 结构,该结构允许多个 xsl:when 分支和一个 xsl:otherwise 分支(也被称为 else 分支)。 + +

      + 由 XPathView + XSLT-Support 提供技术支持 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertImplicitBoundsToImplicitParameter/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertImplicitBoundsToImplicitParameter/description.html new file mode 100644 index 000000000..c891e51c0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertImplicitBoundsToImplicitParameter/description.html @@ -0,0 +1,5 @@ + + +

      将上下文边界转换为隐式形参。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertIntegerToBinaryIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertIntegerToBinaryIntention/description.html new file mode 100644 index 000000000..884c174e4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertIntegerToBinaryIntention/description.html @@ -0,0 +1,5 @@ + + +将整数文字(以十进制十六进制八进制表示法编写)转换为二进制表示法文字。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertIntegerToDecimalIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertIntegerToDecimalIntention/description.html new file mode 100644 index 000000000..25ffd6065 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertIntegerToDecimalIntention/description.html @@ -0,0 +1,5 @@ + + +将整数文字(以十六进制八进制二进制表示法编写)转换为十进制表示法文字。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertIntegerToHexIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertIntegerToHexIntention/description.html new file mode 100644 index 000000000..36dd1d7ea --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertIntegerToHexIntention/description.html @@ -0,0 +1,5 @@ + + +将整数文字(以十进制八进制二进制表示法编写)转换为十六进制表示法文字。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertIntegerToOctalIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertIntegerToOctalIntention/description.html new file mode 100644 index 000000000..a20cc6187 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertIntegerToOctalIntention/description.html @@ -0,0 +1,5 @@ + + +将整数文字(以十进制十六进制二进制表示法编写)转换为八进制表示法文字。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertInterfaceToClassIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertInterfaceToClassIntention/description.html new file mode 100644 index 000000000..4c46453a9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertInterfaceToClassIntention/description.html @@ -0,0 +1,5 @@ + + +将 interface 转换为 abstract class ,在继承类中用 extends 子句替换 implements 子句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertJavaStyleArrayIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertJavaStyleArrayIntention/description.html new file mode 100644 index 000000000..82fbc4a01 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertJavaStyleArrayIntention/description.html @@ -0,0 +1,5 @@ + + +将 Java 样式数组实例化转换为 Groovy 样式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertJavaToScalaCollectionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertJavaToScalaCollectionIntention/description.html new file mode 100644 index 000000000..5f0850967 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertJavaToScalaCollectionIntention/description.html @@ -0,0 +1,5 @@ + + +

      使用 scala.jdk.CollectionConverters 将 Java 集合转换为相应的 Scala 集合。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertJunitAssertionToAssertStatementIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertJunitAssertionToAssertStatementIntention/description.html new file mode 100644 index 000000000..80bc04db3 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertJunitAssertionToAssertStatementIntention/description.html @@ -0,0 +1,5 @@ + + +将 JUnit 断言转换为 Groovy assert 语句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertLambdaToMultiLineIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertLambdaToMultiLineIntention/description.html new file mode 100644 index 000000000..dc352f051 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertLambdaToMultiLineIntention/description.html @@ -0,0 +1,5 @@ + + +将单行 lambda 转换为多行 lambda。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertLambdaToReferenceIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertLambdaToReferenceIntention/description.html new file mode 100644 index 000000000..1e70f982c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertLambdaToReferenceIntention/description.html @@ -0,0 +1,5 @@ + + +将调用单个函数的 lambda(函数文字)表达式转换为函数引用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertLambdaToSingleLineIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertLambdaToSingleLineIntention/description.html new file mode 100644 index 000000000..18fd81974 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertLambdaToSingleLineIntention/description.html @@ -0,0 +1,5 @@ + + +将多行 lambda 转换为单行 lambda。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertLateinitPropertyToNullableIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertLateinitPropertyToNullableIntention/description.html new file mode 100644 index 000000000..ba0a9f670 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertLateinitPropertyToNullableIntention/description.html @@ -0,0 +1,5 @@ + + +将 lateinit var 属性或变量转换为可 null var 属性或变量。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertLayoutToDataBindingAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertLayoutToDataBindingAction/description.html new file mode 100644 index 000000000..1a0148e74 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertLayoutToDataBindingAction/description.html @@ -0,0 +1,5 @@ + + +此意图会将布局转换为启用了数据绑定的布局。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertLazyPropertyToOrdinaryIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertLazyPropertyToOrdinaryIntention/description.html new file mode 100644 index 000000000..0428cf1df --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertLazyPropertyToOrdinaryIntention/description.html @@ -0,0 +1,5 @@ + + +将 lazy 属性或变量转换为普通属性或变量会移除 lazy 修饰符。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertLineCommentToBlockCommentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertLineCommentToBlockCommentIntention/description.html new file mode 100644 index 000000000..78ca04d60 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertLineCommentToBlockCommentIntention/description.html @@ -0,0 +1,5 @@ + + +使用块注释 (/* ... */) 替换一个或多个行尾注释 (// ...)。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertListToMultiDocumentIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertListToMultiDocumentIntentionAction/description.html new file mode 100644 index 000000000..017b7b7cb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertListToMultiDocumentIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将具有 Kubernetes 资源定义的列表转换为多文档 YAML 文件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertMapToClassIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertMapToClassIntention/description.html new file mode 100644 index 000000000..378571033 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertMapToClassIntention/description.html @@ -0,0 +1,5 @@ + + +将映射文字转换为类。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertMemberToExtensionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertMemberToExtensionIntention/description.html new file mode 100644 index 000000000..b5342e644 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertMemberToExtensionIntention/description.html @@ -0,0 +1,5 @@ + + +将类或接口的成员转换为此类/接口的扩展。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertMethodToClosureIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertMethodToClosureIntention/description.html new file mode 100644 index 000000000..9ceb4e31f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertMethodToClosureIntention/description.html @@ -0,0 +1,5 @@ + + +将方法转换为具有闭包类型的属性。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertMultiDocumentToListIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertMultiDocumentToListIntentionAction/description.html new file mode 100644 index 000000000..0f08538d5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertMultiDocumentToListIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将多文档 YAML 文件中的 Kubernetes 资源定义转换为列表。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertMultilineStringToSingleLineIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertMultilineStringToSingleLineIntention/description.html new file mode 100644 index 000000000..eaf7770ba --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertMultilineStringToSingleLineIntention/description.html @@ -0,0 +1,5 @@ + + +将多行字符串转换为单行字符串。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertNullablePropertyToLateinitIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertNullablePropertyToLateinitIntention/description.html new file mode 100644 index 000000000..7ae9e87a7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertNullablePropertyToLateinitIntention/description.html @@ -0,0 +1,5 @@ + + +将可 null var 属性或变量转换为 lateinit var> 属性或变量。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertObjectLiteralToClassIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertObjectLiteralToClassIntention/description.html new file mode 100644 index 000000000..33b21cf3d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertObjectLiteralToClassIntention/description.html @@ -0,0 +1,5 @@ + + +将对象文字转换为类,并将对象文字表达式替换为构造函数调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertOrdinaryPropertyToLazyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertOrdinaryPropertyToLazyIntention/description.html new file mode 100644 index 000000000..19ce5aff5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertOrdinaryPropertyToLazyIntention/description.html @@ -0,0 +1,5 @@ + + +将普通属性或变量转换为 lazy 属性或变量。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertParameterToMapEntryIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertParameterToMapEntryIntention/description.html new file mode 100644 index 000000000..15e419989 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertParameterToMapEntryIntention/description.html @@ -0,0 +1,6 @@ + + +将方法或闭包的所有参数替换为映射。 +相应地,将形参匹配项替换为新映射实参的相应条目。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertParameterToReceiverIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertParameterToReceiverIntention/description.html new file mode 100644 index 000000000..358385b97 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertParameterToReceiverIntention/description.html @@ -0,0 +1,5 @@ + + +将函数形参转换为扩展接收器。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertParameterToUnderscoreIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertParameterToUnderscoreIntention/description.html new file mode 100644 index 000000000..19ab47857 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertParameterToUnderscoreIntention/description.html @@ -0,0 +1,5 @@ + + +

      将形参转换为下划线部分。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertPrimaryConstructorToSecondaryIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertPrimaryConstructorToSecondaryIntention/description.html new file mode 100644 index 000000000..c425b2bfa --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertPrimaryConstructorToSecondaryIntention/description.html @@ -0,0 +1,5 @@ + + +将主构造函数转换为辅助构造函数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertPropertyGetterToInitializerIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertPropertyGetterToInitializerIntention/description.html new file mode 100644 index 000000000..3268c86a4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertPropertyGetterToInitializerIntention/description.html @@ -0,0 +1,5 @@ + + +将属性 getter 转换为初始值设定项。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertPropertyInitializerToGetterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertPropertyInitializerToGetterIntention/description.html new file mode 100644 index 000000000..4663e8a7e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertPropertyInitializerToGetterIntention/description.html @@ -0,0 +1,5 @@ + + +将属性初始值设定项转换为 getter。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertPropertyToFunctionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertPropertyToFunctionIntention/description.html new file mode 100644 index 000000000..7bae2703c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertPropertyToFunctionIntention/description.html @@ -0,0 +1,5 @@ + + +将属性转换为函数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertRangeCheckToTwoComparisonsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertRangeCheckToTwoComparisonsIntention/description.html new file mode 100644 index 000000000..74bb1c762 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertRangeCheckToTwoComparisonsIntention/description.html @@ -0,0 +1,5 @@ + + +将范围检查 (in) 转换为两个连续比较。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertReceiverToParameterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertReceiverToParameterIntention/description.html new file mode 100644 index 000000000..910524745 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertReceiverToParameterIntention/description.html @@ -0,0 +1,5 @@ + + +将扩展函数的接收器转换为其形参。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertReferenceToLambdaIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertReferenceToLambdaIntention/description.html new file mode 100644 index 000000000..168a8944c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertReferenceToLambdaIntention/description.html @@ -0,0 +1,5 @@ + + +将可调用的函数引用转换为 lambda 表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertRelativePathToAbsoluteIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertRelativePathToAbsoluteIntentionAction/description.html new file mode 100644 index 000000000..1374285de --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertRelativePathToAbsoluteIntentionAction/description.html @@ -0,0 +1,5 @@ + + +如果适用,将相对路径转换为绝对路径。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertScalaToJavaCollectionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertScalaToJavaCollectionIntention/description.html new file mode 100644 index 000000000..5f0850967 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertScalaToJavaCollectionIntention/description.html @@ -0,0 +1,5 @@ + + +

      使用 scala.jdk.CollectionConverters 将 Java 集合转换为相应的 Scala 集合。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertSchemaPrefixToDefaultIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertSchemaPrefixToDefaultIntention/description.html new file mode 100644 index 000000000..1cd249dd0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertSchemaPrefixToDefaultIntention/description.html @@ -0,0 +1,5 @@ + + +移除选定的命名空间前缀。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertSealedClassToEnumIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertSealedClassToEnumIntention/description.html new file mode 100644 index 000000000..2348809ad --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertSealedClassToEnumIntention/description.html @@ -0,0 +1,5 @@ + + +将 sealed 类转换为 enum 类,并将其派生对象替换为 enum 条目。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertSecondaryConstructorToPrimaryIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertSecondaryConstructorToPrimaryIntention/description.html new file mode 100644 index 000000000..082ae0f68 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertSecondaryConstructorToPrimaryIntention/description.html @@ -0,0 +1,5 @@ + + +将辅助构造函数转换为主构造函数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertSimpleGetterToPropertyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertSimpleGetterToPropertyIntention/description.html new file mode 100644 index 000000000..295b9f7d0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertSimpleGetterToPropertyIntention/description.html @@ -0,0 +1,5 @@ + + +将简单的 getter 转换为 final 属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertSnakeCaseTestFunctionToSpacedIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertSnakeCaseTestFunctionToSpacedIntention/description.html new file mode 100644 index 000000000..b3e5b26d7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertSnakeCaseTestFunctionToSpacedIntention/description.html @@ -0,0 +1,5 @@ + + +将给定测试函数的蛇形拼写法名称更改为以空格分隔的名称。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertStringTemplateToBuildStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertStringTemplateToBuildStringIntention/description.html new file mode 100644 index 000000000..4ea5ecdac --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertStringTemplateToBuildStringIntention/description.html @@ -0,0 +1,5 @@ + + +将字符串模板转换为 buildString 调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertStringToMultilineIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertStringToMultilineIntention/description.html new file mode 100644 index 000000000..b167946d6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertStringToMultilineIntention/description.html @@ -0,0 +1,5 @@ + + +将单行字符串文字转换为多行。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToAlsoIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToAlsoIntention/description.html new file mode 100644 index 000000000..ba6dce005 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToAlsoIntention/description.html @@ -0,0 +1,5 @@ + + +将带有相同接收器的多个调用转换为单个 also 调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToApplyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToApplyIntention/description.html new file mode 100644 index 000000000..e54af4a61 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToApplyIntention/description.html @@ -0,0 +1,5 @@ + + +将带有相同接收器的多个调用转换为单个 apply 调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToBlockBodyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToBlockBodyIntention/description.html new file mode 100644 index 000000000..be0bf89aa --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToBlockBodyIntention/description.html @@ -0,0 +1,5 @@ + + +将表达式主体(= 符号后的单个表达式)转换为带 return 语句的块主体。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToConcatenatedStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToConcatenatedStringIntention/description.html new file mode 100644 index 000000000..4972c8f86 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToConcatenatedStringIntention/description.html @@ -0,0 +1,5 @@ + + +将使用字符串模板的 String 构建语句转换为使用字符串串联 (+) 的对应语句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToCurlyBracesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToCurlyBracesIntention/description.html new file mode 100644 index 000000000..d4d93efc2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToCurlyBracesIntention/description.html @@ -0,0 +1,5 @@ + + +

      在 for 推导式生成器周围使用大括号。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToDollarSlashRegexIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToDollarSlashRegexIntention/description.html new file mode 100644 index 000000000..89a5726b4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToDollarSlashRegexIntention/description.html @@ -0,0 +1,5 @@ + + +将字符串文字转换为 $/ 字符串。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToDynamicArgIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToDynamicArgIntention/description.html new file mode 100644 index 000000000..312269bb3 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToDynamicArgIntention/description.html @@ -0,0 +1,5 @@ + + +将一个步骤的静态形参转换为动态形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToExpressionBodyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToExpressionBodyIntention/description.html new file mode 100644 index 000000000..430ef868f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToExpressionBodyIntention/description.html @@ -0,0 +1,5 @@ + + +将块主体转换为表达式主体(= 符号后的单个表达式)。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToForEachFunctionCallIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToForEachFunctionCallIntention/description.html new file mode 100644 index 000000000..0c9665943 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToForEachFunctionCallIntention/description.html @@ -0,0 +1,5 @@ + + +将 for 循环转换为 forEach 函数调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToGeeseBracesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToGeeseBracesIntention/description.html new file mode 100644 index 000000000..669afbdbc --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToGeeseBracesIntention/description.html @@ -0,0 +1,8 @@ + + +将闭包的右大括号序列格式化到一行(“雁形”大括号样式)。 +

      + 如果在编辑器 | 代码样式 | Groovy | 换行和大括号 | 大括号放置中选中使用雁形大括号,则此意图可以运行。 +

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToIndexedFunctionCallIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToIndexedFunctionCallIntention/description.html new file mode 100644 index 000000000..c43622cd1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToIndexedFunctionCallIntention/description.html @@ -0,0 +1,5 @@ + + +将集合函数的调用转换为其 *Indexed 对应项的调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToInfixExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToInfixExpressionIntention/description.html new file mode 100644 index 000000000..4a4763005 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToInfixExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +

      从方法调用表达式转换为中缀表达式。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToInfixIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToInfixIntention/description.html new file mode 100644 index 000000000..ff8fd76c4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToInfixIntention/description.html @@ -0,0 +1,5 @@ + + +

      对二元类型应用程序使用中缀类型语法。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToNestedIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToNestedIfIntention/description.html new file mode 100644 index 000000000..942e2c41d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToNestedIfIntention/description.html @@ -0,0 +1,5 @@ + + +如果可能,将布尔 return 替换为等效的 if-then-else 语句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToParenthesesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToParenthesesIntention/description.html new file mode 100644 index 000000000..9050bec46 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToParenthesesIntention/description.html @@ -0,0 +1,5 @@ + + +

      在 for 推导式生成器周围使用圆括号。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToRawStringTemplateIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToRawStringTemplateIntention/description.html new file mode 100644 index 000000000..8f2141185 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToRawStringTemplateIntention/description.html @@ -0,0 +1,5 @@ + + +将使用串联 (+) 的 String 构建语句转换为使用原始字符串的对应语句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToRegexIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToRegexIntention/description.html new file mode 100644 index 000000000..f50926344 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToRegexIntention/description.html @@ -0,0 +1,5 @@ + + +将字符串文字转换为正则表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToRunIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToRunIntention/description.html new file mode 100644 index 000000000..6eee0b79d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToRunIntention/description.html @@ -0,0 +1,5 @@ + + +将带有相同接收器的多个调用转换为单个 run 调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToSingleReturnAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToSingleReturnAction/description.html new file mode 100644 index 000000000..dbc2fdf74 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToSingleReturnAction/description.html @@ -0,0 +1,5 @@ + + +将方法体转换为单个 return 形式。 应用此操作后,将移除所有中间 return 语句,并将控制流更改为通过最后一个方法体语句退出。 请注意,虽然可以随时转换,但生成的代码并不一定美观。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToStaticArgIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToStaticArgIntention/description.html new file mode 100644 index 000000000..5f4651af8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToStaticArgIntention/description.html @@ -0,0 +1,5 @@ + + +将一个步骤的动态形参转换为静态形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToStaticIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToStaticIntention/description.html new file mode 100644 index 000000000..da52e1b50 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToStaticIntention/description.html @@ -0,0 +1,6 @@ + + +修复 @CompileStatic 注解引入的编译错误。 +修复会应用于使用 @CompileStatic 注解的包含错误的整个类或方法。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToStringLiteralAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToStringLiteralAction/description.html new file mode 100644 index 000000000..84a133e5c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToStringLiteralAction/description.html @@ -0,0 +1,5 @@ + + +将包含过多字符的无效字符文字转换为字符串文字。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToStringTemplateIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToStringTemplateIntention/description.html new file mode 100644 index 000000000..fe21f9a70 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToStringTemplateIntention/description.html @@ -0,0 +1,5 @@ + + +将使用串联 (+) 的 String 构建语句转换为使用字符串模板的对应语句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToTypedPatternIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToTypedPatternIntention/description.html new file mode 100644 index 000000000..1307accb4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToTypedPatternIntention/description.html @@ -0,0 +1,5 @@ + + +

      用类型化模式替换构造函数模式。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertToWithIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertToWithIntention/description.html new file mode 100644 index 000000000..69675c705 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertToWithIntention/description.html @@ -0,0 +1,5 @@ + + +将带有相同接收器的多个调用转换为单个 with 调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertTryFinallyToUseCallIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertTryFinallyToUseCallIntention/description.html new file mode 100644 index 000000000..e64eb22cb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertTryFinallyToUseCallIntention/description.html @@ -0,0 +1,5 @@ + + +将 finally 中带有 resource.close()try-finally 块转换为 resource.use() 调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertUnderscoreToParameterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertUnderscoreToParameterIntention/description.html new file mode 100644 index 000000000..ee7940d83 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertUnderscoreToParameterIntention/description.html @@ -0,0 +1,5 @@ + + +

      将下划线部分转换为形参。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertUnsafeCastCallToUnsafeCastIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertUnsafeCastCallToUnsafeCastIntention/description.html new file mode 100644 index 000000000..87aa0f31d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertUnsafeCastCallToUnsafeCastIntention/description.html @@ -0,0 +1,5 @@ + + +将 unsafeCast() 调用转换为不安全转换 (as)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertUnsafeCastToUnsafeCastCallIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertUnsafeCastToUnsafeCastCallIntention/description.html new file mode 100644 index 000000000..17d919c2b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertUnsafeCastToUnsafeCastCallIntention/description.html @@ -0,0 +1,5 @@ + + +将不安全转换 (as) 转换为 unsafeCast() 调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertVarargParameterToArrayIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertVarargParameterToArrayIntention/description.html new file mode 100644 index 000000000..295497349 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertVarargParameterToArrayIntention/description.html @@ -0,0 +1,5 @@ + + +将 vararg 形参转换为数组形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertVariableAssignmentToExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertVariableAssignmentToExpressionIntention/description.html new file mode 100644 index 000000000..ee3dc8cde --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertVariableAssignmentToExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +将赋值语句转换为表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ConvertVariadicParamIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ConvertVariadicParamIntention/description.html new file mode 100644 index 000000000..8094f6d8f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ConvertVariadicParamIntention/description.html @@ -0,0 +1,5 @@ + + +可变形参替换为寻常形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CopyAbstractMethodImplementationAction/description.html b/original-plugin-raw/zh/intentionDescriptions/CopyAbstractMethodImplementationAction/description.html new file mode 100644 index 000000000..3048d6e6a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CopyAbstractMethodImplementationAction/description.html @@ -0,0 +1,6 @@ + + +将 abstract 方法的现有实现复制到需要该方法的实现但当前缺少的所有类。 + + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CopyConcatenatedStringToClipboardIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CopyConcatenatedStringToClipboardIntention/description.html new file mode 100644 index 000000000..1f6ff059d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CopyConcatenatedStringToClipboardIntention/description.html @@ -0,0 +1,5 @@ + + +将 String 串联的文本复制到系统剪贴板。 这可能很有用,例如,当您将代码中的多行 SQL 查询拆分为需要复制到外部应用程序的串联行时。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CopyPropertyKeyToClipboardIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CopyPropertyKeyToClipboardIntention/description.html new file mode 100644 index 000000000..dfdc44165 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CopyPropertyKeyToClipboardIntention/description.html @@ -0,0 +1,7 @@ + + +将属性键复制到剪贴板。 + +

      2021.2 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CopyPropertyValueToClipboardIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CopyPropertyValueToClipboardIntention/description.html new file mode 100644 index 000000000..e0c1b3c06 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CopyPropertyValueToClipboardIntention/description.html @@ -0,0 +1,7 @@ + + +将属性值复制到剪贴板。 + +

      2021.2 最新变化

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateAssertIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateAssertIntention/description.html new file mode 100644 index 000000000..744991a32 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateAssertIntention/description.html @@ -0,0 +1,5 @@ + + +从位于 JUnit 测试方法中的布尔表达式创建适当的 JUnit 断言调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateCastExpressionFromInstanceofAction/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateCastExpressionFromInstanceofAction/description.html new file mode 100644 index 000000000..b6922062d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateCastExpressionFromInstanceofAction/description.html @@ -0,0 +1,5 @@ + + +根据所选 instanceof 表达式插入转换表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateCompanionObjectIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateCompanionObjectIntention/description.html new file mode 100644 index 000000000..a4a66bd4c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateCompanionObjectIntention/description.html @@ -0,0 +1,5 @@ + + +

      为给定的类创建伴生对象。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateDeepLinkIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateDeepLinkIntentionAction/description.html new file mode 100644 index 000000000..78592e710 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateDeepLinkIntentionAction/description.html @@ -0,0 +1,20 @@ + + + +此意图会将新的 <intent-filter> 条目添加到活动的清单文件中,以支持 URL。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateDynamicMethodFix/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateDynamicMethodFix/description.html new file mode 100644 index 000000000..ba6db0db5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateDynamicMethodFix/description.html @@ -0,0 +1,5 @@ + + +让 IntelliJ IDEA 了解特定类型的对象在运行时将具有比 Java 类型中的声明更多的方法或特性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateEjbIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateEjbIntention/description.html new file mode 100644 index 000000000..a84fa1408 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateEjbIntention/description.html @@ -0,0 +1,5 @@ + + +如果 EJB 模块是空的,并且 Weblogic 部署描述符无效,则创建新的 EJB。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateEventHandlerIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateEventHandlerIntention/description.html new file mode 100644 index 000000000..8db87c0ca --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateEventHandlerIntention/description.html @@ -0,0 +1,5 @@ + + +创建事件处理程序。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateFieldFromParameterAction/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateFieldFromParameterAction/description.html new file mode 100644 index 000000000..aba2fb8e9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateFieldFromParameterAction/description.html @@ -0,0 +1,5 @@ + + +允许创建从方法形参初始化的字段。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateGetterAndSetterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateGetterAndSetterIntention/description.html new file mode 100644 index 000000000..47bc937de --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateGetterAndSetterIntention/description.html @@ -0,0 +1,5 @@ + + +为字段创建 getter 和 setter。 将该字段设为 private,并根据代码样式设置进行重命名(默认添加 '_' 前缀)。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateGetterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateGetterIntention/description.html new file mode 100644 index 000000000..df22f672f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateGetterIntention/description.html @@ -0,0 +1,5 @@ + + +为字段创建 getter。 将该字段设为 private,并根据代码样式设置进行重命名(默认添加 '_' 前缀)。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateJSSubclassIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateJSSubclassIntention/description.html new file mode 100644 index 000000000..95a79827b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateJSSubclassIntention/description.html @@ -0,0 +1,5 @@ + + +使用所有接口方法的默认实现创建类的子类或接口的实现。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateKotlinSubClassIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateKotlinSubClassIntention/description.html new file mode 100644 index 000000000..4518039b0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateKotlinSubClassIntention/description.html @@ -0,0 +1,5 @@ + + +为接口、abstract 类、open 类或 sealed 类创建默认实现。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateLocalVarFromInstanceofAction/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateLocalVarFromInstanceofAction/description.html new file mode 100644 index 000000000..6ef29aa9b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateLocalVarFromInstanceofAction/description.html @@ -0,0 +1,5 @@ + + +根据 instanceof 运算符用法创建局部变量声明。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateMissingSwitchBranchesAction/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateMissingSwitchBranchesAction/description.html new file mode 100644 index 000000000..bbb1939df --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateMissingSwitchBranchesAction/description.html @@ -0,0 +1,6 @@ + + +根据数据流分析信息或 MagicConstant 注解,创建缺失的 switch 分支。 +有关详细信息,请参阅 org.intellij.lang.annotations.MagicConstant 注解的 Javadoc。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateParameterForFieldIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateParameterForFieldIntention/description.html new file mode 100644 index 000000000..f3ce34f6e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateParameterForFieldIntention/description.html @@ -0,0 +1,5 @@ + + +向未初始化字段的构造函数添加参数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateRoutingLineByMethodIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateRoutingLineByMethodIntention/description.html new file mode 100644 index 000000000..09e9bd53b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateRoutingLineByMethodIntention/description.html @@ -0,0 +1,5 @@ + + +

      在路由文件中为控制器操作生成器方法添加一行。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateScalaDocStubIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateScalaDocStubIntentionAction/description.html new file mode 100644 index 000000000..fc73e14bf --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateScalaDocStubIntentionAction/description.html @@ -0,0 +1,5 @@ + + +

      如果尚未创建类、方法和字段,则为其创建文档注释。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateSelectorAction/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateSelectorAction/description.html new file mode 100644 index 000000000..503c3224a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateSelectorAction/description.html @@ -0,0 +1,5 @@ + + +为 HTML 文件中的 classid 特性值创建 CSS 选择器。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateSetterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateSetterIntention/description.html new file mode 100644 index 000000000..f1fd9967c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateSetterIntention/description.html @@ -0,0 +1,5 @@ + + +为字段创建 setter。 将该字段设为 private,并根据代码样式设置进行重命名(默认添加 '_' 前缀)。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateSignatureDirectiveFromUsageExplicit/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateSignatureDirectiveFromUsageExplicit/description.html new file mode 100644 index 000000000..fa193977e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateSignatureDirectiveFromUsageExplicit/description.html @@ -0,0 +1,5 @@ + + +创建不存在的宏或函数 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateSignatureDirectiveFromUsageImplicit/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateSignatureDirectiveFromUsageImplicit/description.html new file mode 100644 index 000000000..0ec15ec5a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateSignatureDirectiveFromUsageImplicit/description.html @@ -0,0 +1,5 @@ + + +创建不存在的宏或函数,并将其放在隐式导入的 FreeMarker 文件中,从而无需在源代码中声明,但可以正确解析和验证引用。 用于动态宏或函数 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateSubclassAction/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateSubclassAction/description.html new file mode 100644 index 000000000..2a2415f18 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateSubclassAction/description.html @@ -0,0 +1,6 @@ + + +为所选类或接口创建子类或实现类。 +

      生成的类包含基类或接口中所有抽象方法的默认实现。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateSwitchIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateSwitchIntention/description.html new file mode 100644 index 000000000..9b2d0bf8b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateSwitchIntention/description.html @@ -0,0 +1,5 @@ + + +为所选变量创建 switch 语句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateTestAction/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateTestAction/description.html new file mode 100644 index 000000000..ab97e4b93 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateTestAction/description.html @@ -0,0 +1,6 @@ + + +为所选类生成测试用例。 +

      生成的类包含所选 public 方法的框架测试方法。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateUiFieldIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateUiFieldIntention/description.html new file mode 100644 index 000000000..81f81ec7d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateUiFieldIntention/description.html @@ -0,0 +1,5 @@ + + +在 Java 类中使用 @UiField 注解创建对应 ui.xml 文件中的 XML 标签的字段。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateUiHandlerIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateUiHandlerIntention/description.html new file mode 100644 index 000000000..b8d29f342 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateUiHandlerIntention/description.html @@ -0,0 +1,5 @@ + + +使用 @UiField 注解在 Java 类中的 ui.xml 文件中创建对应 XML 标签的方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CreateValidationXmlIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CreateValidationXmlIntention/description.html new file mode 100644 index 000000000..8e907dc97 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CreateValidationXmlIntention/description.html @@ -0,0 +1,5 @@ + + +为操作类创建空的 validation.xml。 可以通过设置 -> 文件模板 -> Java EE -> Struts 2 编辑模板。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CssChooseColorIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CssChooseColorIntention/description.html new file mode 100644 index 000000000..680ed6d01 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CssChooseColorIntention/description.html @@ -0,0 +1,5 @@ + + +打开 CSS 属性值的颜色选择器。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CssConvertToGrayIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CssConvertToGrayIntention/description.html new file mode 100644 index 000000000..5e3d41f18 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CssConvertToGrayIntention/description.html @@ -0,0 +1,5 @@ + + +将 CSS 颜色值(#-hex、rgb()hsl())替换为等效的函数 gray()(如果可能)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CssConvertToHexIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CssConvertToHexIntention/description.html new file mode 100644 index 000000000..666d5bc25 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CssConvertToHexIntention/description.html @@ -0,0 +1,5 @@ + + +将 rgb()hsl() 或其他颜色函数替换为等效的十六进制表示法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CssConvertToHslIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CssConvertToHslIntention/description.html new file mode 100644 index 000000000..143417dba --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CssConvertToHslIntention/description.html @@ -0,0 +1,5 @@ + + +将 CSS 颜色值(#-hex、rgb()hwb())替换为等效的颜色函数 hsl()hsla()。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CssConvertToHwbIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CssConvertToHwbIntention/description.html new file mode 100644 index 000000000..1becec629 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CssConvertToHwbIntention/description.html @@ -0,0 +1,5 @@ + + +将 CSS 颜色值(#-hex、rgb()hsl())替换为等效的颜色函数 hwb()。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CssConvertToRgbIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CssConvertToRgbIntention/description.html new file mode 100644 index 000000000..44fc4f260 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CssConvertToRgbIntention/description.html @@ -0,0 +1,5 @@ + + +将 CSS 颜色值(#-hex、hsl()hwb())替换为等效的颜色函数 rgb()rgba()。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CssExpandShorthandPropertyAction/description.html b/original-plugin-raw/zh/intentionDescriptions/CssExpandShorthandPropertyAction/description.html new file mode 100644 index 000000000..dd25285eb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CssExpandShorthandPropertyAction/description.html @@ -0,0 +1,5 @@ + + +将 CSS 速记属性替换为一组等效的 CSS 常规属性。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CssExtractImageFromDataUriIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CssExtractImageFromDataUriIntention/description.html new file mode 100644 index 000000000..30d7a37f4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CssExtractImageFromDataUriIntention/description.html @@ -0,0 +1,5 @@ + + +将编码为 url(data:image/...) 的图像提取到一个单独的图像文件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CssExtractRulesetIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/CssExtractRulesetIntentionAction/description.html new file mode 100644 index 000000000..20fe80332 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CssExtractRulesetIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将选定的声明提取到同一样式表文件中的单独规则集中。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/CssReplaceQuotesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CssReplaceQuotesIntention/description.html new file mode 100644 index 000000000..128a2334d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CssReplaceQuotesIntention/description.html @@ -0,0 +1,5 @@ + + +将样式表中的双引号引用字符串替换为单引号引用字符串,反之亦然。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CssReplaceVarWithFallbackValueIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CssReplaceVarWithFallbackValueIntention/description.html new file mode 100644 index 000000000..1c80aab60 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CssReplaceVarWithFallbackValueIntention/description.html @@ -0,0 +1,5 @@ + + +将 var() CSS 函数的调用替换为其回退值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CssReplaceWithColorNameIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CssReplaceWithColorNameIntention/description.html new file mode 100644 index 000000000..6879efca4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CssReplaceWithColorNameIntention/description.html @@ -0,0 +1,5 @@ + + +将 CSS 颜色值(#-hex、rgb()hsl())替换为等效的颜色名称(如果可能)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/CssUpdateBackgroundImageSizeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/CssUpdateBackgroundImageSizeIntention/description.html new file mode 100644 index 000000000..6a203c459 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/CssUpdateBackgroundImageSizeIntention/description.html @@ -0,0 +1,5 @@ + + +根据background-image属性所声明的图像大小,更新 widthheight CSS 属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DartQuickAssistIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/DartQuickAssistIntention/description.html new file mode 100644 index 000000000..1ec0f675e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DartQuickAssistIntention/description.html @@ -0,0 +1,5 @@ + + +Dart Analysis Server 根据文本光标的位置建议使用不同在当前上下文中有用的源代码更改。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/DataPointHolderConversionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/DataPointHolderConversionIntention/description.html new file mode 100644 index 000000000..5e83997f4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DataPointHolderConversionIntention/description.html @@ -0,0 +1,5 @@ + + +将用 @DataPoint 注解的字段替换为等效方法,反之亦然。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/DeMorganLawIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/DeMorganLawIntention/description.html new file mode 100644 index 000000000..de6b251c3 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DeMorganLawIntention/description.html @@ -0,0 +1,5 @@ + + +

      将布尔表达式中的 a || b 替换为 !(!a && !b) 或将 a && b 替换为 !(!a || !b)

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DeannotateIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/DeannotateIntentionAction/description.html new file mode 100644 index 000000000..4f658cbc1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DeannotateIntentionAction/description.html @@ -0,0 +1,5 @@ + + +移除所选代码元素的外部注解。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DefineFtlRootIntentionLocal/description.html b/original-plugin-raw/zh/intentionDescriptions/DefineFtlRootIntentionLocal/description.html new file mode 100644 index 000000000..99fb05b86 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DefineFtlRootIntentionLocal/description.html @@ -0,0 +1,7 @@ + + +在当前文件的注释中定义模板根的路径。 +模板根是相对于指定了 #include#import 指令的 FreeMarker 中 + 所有绝对路径的路径。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DefineFtlRootIntentionModuleWide/description.html b/original-plugin-raw/zh/intentionDescriptions/DefineFtlRootIntentionModuleWide/description.html new file mode 100644 index 000000000..71494b7ee --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DefineFtlRootIntentionModuleWide/description.html @@ -0,0 +1,7 @@ + + +在显式导入文件的注释中定义模板根的路径。 +模板根是相对于指定了 #include#import 指令的 FreeMarker 中 + 所有绝对路径的路径。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DefineImplicitToplevelVariableIntentionLocal/description.html b/original-plugin-raw/zh/intentionDescriptions/DefineImplicitToplevelVariableIntentionLocal/description.html new file mode 100644 index 000000000..e7b00e48e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DefineImplicitToplevelVariableIntentionLocal/description.html @@ -0,0 +1,6 @@ + + +在当前文件中的注释中定义空命名隐式变量。 +允许将某些类的所有字段和方法作为顶层 FreeMarker 变量和函数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DefineImplicitToplevelVariableIntentionLocalExternal/description.html b/original-plugin-raw/zh/intentionDescriptions/DefineImplicitToplevelVariableIntentionLocalExternal/description.html new file mode 100644 index 000000000..59843640b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DefineImplicitToplevelVariableIntentionLocalExternal/description.html @@ -0,0 +1,6 @@ + + +在 IntelliJ IDEA 隐式包含的文件的注释中定义空命名隐式变量。 +允许将某些类的所有字段和方法作为顶层 FreeMarker 变量和函数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DefineImplicitVariableIntentionLocal/description.html b/original-plugin-raw/zh/intentionDescriptions/DefineImplicitVariableIntentionLocal/description.html new file mode 100644 index 000000000..ac95bb10a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DefineImplicitVariableIntentionLocal/description.html @@ -0,0 +1 @@ +在当前模板文件的注释中声明隐式 Velocity 变量。 \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DefineImplicitVariableIntentionLocalExternal/description.html b/original-plugin-raw/zh/intentionDescriptions/DefineImplicitVariableIntentionLocalExternal/description.html new file mode 100644 index 000000000..c7944f2ab --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DefineImplicitVariableIntentionLocalExternal/description.html @@ -0,0 +1 @@ +在外部文件中声明隐式 Velocity 变量,以避免源文件与 IntelliJ IDEA 特定的注释混淆。 \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DefineImplicitVariableIntentionModuleWide/description.html b/original-plugin-raw/zh/intentionDescriptions/DefineImplicitVariableIntentionModuleWide/description.html new file mode 100644 index 000000000..033bfda8b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DefineImplicitVariableIntentionModuleWide/description.html @@ -0,0 +1 @@ +在外部文件中声明隐式 Velocity 变量。 该变量将在当前模块的每个 Velocity 模板中可用。 \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DefineMacroLibraryRefIntentionLocal/description.html b/original-plugin-raw/zh/intentionDescriptions/DefineMacroLibraryRefIntentionLocal/description.html new file mode 100644 index 000000000..b728be05e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DefineMacroLibraryRefIntentionLocal/description.html @@ -0,0 +1 @@ +在当前模板文件的注释中声明对 Velocity 宏库的引用。 \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DefineMacroLibraryRefIntentionLocalExternal/description.html b/original-plugin-raw/zh/intentionDescriptions/DefineMacroLibraryRefIntentionLocalExternal/description.html new file mode 100644 index 000000000..0499fd92d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DefineMacroLibraryRefIntentionLocalExternal/description.html @@ -0,0 +1 @@ +在外部文件中声明对 Velocity 宏库的引用,以避免源文件与 IntelliJ IDEA 特定的注释混淆。 diff --git a/original-plugin-raw/zh/intentionDescriptions/DefineMacroLibraryRefIntentionModuleWide/description.html b/original-plugin-raw/zh/intentionDescriptions/DefineMacroLibraryRefIntentionModuleWide/description.html new file mode 100644 index 000000000..d8358389b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DefineMacroLibraryRefIntentionModuleWide/description.html @@ -0,0 +1 @@ +在外部文件中声明对 Velocity 宏库的引用。 库中的宏将在当前模块的每个 Velocity 模板中可用。 \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DefineParamsDefaultValueAction/description.html b/original-plugin-raw/zh/intentionDescriptions/DefineParamsDefaultValueAction/description.html new file mode 100644 index 000000000..92c9f2535 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DefineParamsDefaultValueAction/description.html @@ -0,0 +1,5 @@ + + +生成委托给当前方法的重载方法并为所选形参设置默认值。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefForFilesIntentionLocal/description.html b/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefForFilesIntentionLocal/description.html new file mode 100644 index 000000000..7458c81ef --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefForFilesIntentionLocal/description.html @@ -0,0 +1 @@ +在当前模板文件的注释中声明对 velocity.properties 文件的引用。 \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefForFilesIntentionLocalExternal/description.html b/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefForFilesIntentionLocalExternal/description.html new file mode 100644 index 000000000..52a662838 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefForFilesIntentionLocalExternal/description.html @@ -0,0 +1 @@ +在外部文件中声明对 velocity.properties 文件的引用,以避免源文件与 IntelliJ IDEA 特定的注释混淆。 \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefForFilesIntentionModuleWide/description.html b/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefForFilesIntentionModuleWide/description.html new file mode 100644 index 000000000..d12fa524f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefForFilesIntentionModuleWide/description.html @@ -0,0 +1 @@ +在外部文件中声明对 velocity.properties 文件的引用。 可以通过 file.resource.loader.path 属性访问的文件将在当前模块的每个 Velocity 模板中可用。 diff --git a/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefIntentionLocal/description.html b/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefIntentionLocal/description.html new file mode 100644 index 000000000..7458c81ef --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefIntentionLocal/description.html @@ -0,0 +1 @@ +在当前模板文件的注释中声明对 velocity.properties 文件的引用。 \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefIntentionLocalExternal/description.html b/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefIntentionLocalExternal/description.html new file mode 100644 index 000000000..52a662838 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefIntentionLocalExternal/description.html @@ -0,0 +1 @@ +在外部文件中声明对 velocity.properties 文件的引用,以避免源文件与 IntelliJ IDEA 特定的注释混淆。 \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefIntentionModuleWide/description.html b/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefIntentionModuleWide/description.html new file mode 100644 index 000000000..9f79f3fbf --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DefineVelocityPropertiesRefIntentionModuleWide/description.html @@ -0,0 +1 @@ +在外部文件中声明对 velocity.properties 文件的引用。 默认库列表中的宏将在当前模块的每个 Velocity 模板中可用。 diff --git a/original-plugin-raw/zh/intentionDescriptions/DemorgansIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/DemorgansIntention/description.html new file mode 100644 index 000000000..94d9e54e4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DemorgansIntention/description.html @@ -0,0 +1,7 @@ + + +遵循德摩根定律将把合取或析取运算替换为取反的对应运算。 +

      如果布尔运算在 ifunless 语句内部,则可以翻转语句修饰符 + 以简化最终结果。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/DemorgansLawIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/DemorgansLawIntention/description.html new file mode 100644 index 000000000..4e6904559 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DemorgansLawIntention/description.html @@ -0,0 +1,5 @@ + + +将布尔表达式中的 a || b 替换为 !(!a && !b) ,或将 a && b 替换为 !(!a || !b)。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/DestructureIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/DestructureIntention/description.html new file mode 100644 index 000000000..5ae15be52 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DestructureIntention/description.html @@ -0,0 +1,5 @@ + + +将声明(形参,或数据类或映射条目类型的变量)分解为多个变量。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/DesugarForIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/DesugarForIntention/description.html new file mode 100644 index 000000000..a5095bd3d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DesugarForIntention/description.html @@ -0,0 +1,6 @@ + + +

      用对 flatMapmapwithFilter 和 + foreach 的等效调用替换 for 推导式。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DetailExceptionsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/DetailExceptionsIntention/description.html new file mode 100644 index 000000000..85723010c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DetailExceptionsIntention/description.html @@ -0,0 +1,5 @@ + + +将 catch 子句中过于宽泛的异常替换为更具体的异常。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/DjangoClassViewMigrationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/DjangoClassViewMigrationIntention/description.html new file mode 100644 index 000000000..52b72362d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DjangoClassViewMigrationIntention/description.html @@ -0,0 +1,5 @@ + + +将 Django 基于函数的通用视图转换为基于类的通用视图。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DoToBracesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/DoToBracesIntention/description.html new file mode 100644 index 000000000..b072036ad --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DoToBracesIntention/description.html @@ -0,0 +1,5 @@ + + +将 do 块转换为大括号内的块。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/DoubleBangToIfThenIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/DoubleBangToIfThenIntention/description.html new file mode 100644 index 000000000..da3dbfaf2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/DoubleBangToIfThenIntention/description.html @@ -0,0 +1,5 @@ + + +将使用 !! 运算符的表达式转换为 if-then 表达式,如果该表达式为 null,则抛出 NullPointerException。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/EJBAddInterceptorAction/description.html b/original-plugin-raw/zh/intentionDescriptions/EJBAddInterceptorAction/description.html new file mode 100644 index 000000000..6c9c4cb7f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/EJBAddInterceptorAction/description.html @@ -0,0 +1,5 @@ + + +将新的类级别或方法级别侦听器添加到 EJB 类。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/EJBDeclarationAction/description.html b/original-plugin-raw/zh/intentionDescriptions/EJBDeclarationAction/description.html new file mode 100644 index 000000000..6456491be --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/EJBDeclarationAction/description.html @@ -0,0 +1,5 @@ + + +将 EJB business、create 或 finder 方法的声明添加到 EJB 接口或主接口。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/EJBImplementationAction/description.html b/original-plugin-raw/zh/intentionDescriptions/EJBImplementationAction/description.html new file mode 100644 index 000000000..38e7fe1b8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/EJBImplementationAction/description.html @@ -0,0 +1,5 @@ + + +创建 EJB business、create 或 finder 方法的默认实现,并将其添加到 EJB 类。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/EJBInterceptorBindingAction/description.html b/original-plugin-raw/zh/intentionDescriptions/EJBInterceptorBindingAction/description.html new file mode 100644 index 000000000..149e9f2c1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/EJBInterceptorBindingAction/description.html @@ -0,0 +1,5 @@ + + +显示侦听器绑定对话框,以便查看和修改侦听器绑定。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ES6AddExportDefaultIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ES6AddExportDefaultIntention/description.html new file mode 100644 index 000000000..c84e6b2c0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ES6AddExportDefaultIntention/description.html @@ -0,0 +1,5 @@ + + +在顶层类、变量或函数中添加一个 export default 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ES6AddExportModifierIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ES6AddExportModifierIntention/description.html new file mode 100644 index 000000000..f5bf3263a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ES6AddExportModifierIntention/description.html @@ -0,0 +1,5 @@ + + +在顶层类、变量或函数中添加一个 export 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ES6ChangeImportIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ES6ChangeImportIntention/description.html new file mode 100644 index 000000000..ef4dd2914 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ES6ChangeImportIntention/description.html @@ -0,0 +1,5 @@ + + +建议将 从...导入 语句中的路径替换为可用的等效路径之一。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ES6ConvertMapToForOfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ES6ConvertMapToForOfIntention/description.html new file mode 100644 index 000000000..edd4fb815 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ES6ConvertMapToForOfIntention/description.html @@ -0,0 +1,5 @@ + + +将数组的 map() 方法调用替换为 for..of 循环的单独变量声明。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ES6InsertTemplateStringArgumentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ES6InsertTemplateStringArgumentIntention/description.html new file mode 100644 index 000000000..df256a6ce --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ES6InsertTemplateStringArgumentIntention/description.html @@ -0,0 +1,5 @@ + + +在一个模板字符串中插入一个新的模板字符串参数,并将文本光标置于新的参数内。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ES6RemoveExportIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ES6RemoveExportIntention/description.html new file mode 100644 index 000000000..795379222 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ES6RemoveExportIntention/description.html @@ -0,0 +1,5 @@ + + +将导出的模块成员设为不导出。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/EachToForIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/EachToForIntention/description.html new file mode 100644 index 000000000..5c4fec862 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/EachToForIntention/description.html @@ -0,0 +1,5 @@ + + +将 .each 迭代器和关联的闭包替换为 for..in 语句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/EditContractIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/EditContractIntention/description.html new file mode 100644 index 000000000..3f7126727 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/EditContractIntention/description.html @@ -0,0 +1,30 @@ + +这个意图改变了一个库方法契约。 + +方法约定的语法如下:
      + contract ::= (clause ';')* clause
      + clause ::= args '->' effect
      + args ::= ((arg ',')* arg )?
      + arg ::= value-constraint
      + value-constraint ::= '_' | 'null' | '!null' | 'false' | 'true'
      + effect ::= value-constraint | 'fail' | 'new' | 'this' | 'param' number
      + number ::= [1-9] [0-9]*

      + +约束意味着:
      +

        +
      • _ - 任意值 +
      • null - null 值 +
      • !null - 静态证明非 null 的值 +
      • true - 布尔值 true +
      • false - 布尔值 false +
      • fail - 如果实参满足实参约束,则该方法抛出异常 +
      • new - 每次执行该方法时,它都会返回一个新的非 null 对象,该对象与执行前存在于堆中的其他对象不同。 如果方法是纯方法,则新对象不会存储在字段或数组中,如果不使用方法的返回值,则新对象将丢失。 +
      • this - 该方法返回非 null 的 this 引用 +
      • param1(param2、param3 等) - 该方法返回其第一个(第二个、第三个等)实参 +
      +示例:

      +@Contract("_, null -> null") - 方法的第二个实参为 null,则返回 null
      +@Contract("_, null -> null; _, !null -> !null") - 方法的第二个实参为 null,则返回 null,否则返回非 null。
      +@Contract("true -> fail") - 一个典型的 assertFalse 方法,如果 true 被传递给它,它会抛出一个异常。
      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/EditInjectionSettingsAction/description.html b/original-plugin-raw/zh/intentionDescriptions/EditInjectionSettingsAction/description.html new file mode 100644 index 000000000..6e1b6958c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/EditInjectionSettingsAction/description.html @@ -0,0 +1,5 @@ + + +打开语言注入设置(如果可用)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/EditRangeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/EditRangeIntention/description.html new file mode 100644 index 000000000..962436450 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/EditRangeIntention/description.html @@ -0,0 +1,6 @@ + + +改变库方法形参、字段或返回值的值范围。 +

      可以为 longintshortcharbyte 类型的值指定范围。 通过指定下限 from(包含)和上限 to(包含)来定义范围。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/EditorConfigAddDeclarationPartIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/EditorConfigAddDeclarationPartIntention/description.html new file mode 100644 index 000000000..d55423247 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/EditorConfigAddDeclarationPartIntention/description.html @@ -0,0 +1,6 @@ + + + +将缺少的 propertyName 添加到相应的符号组。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/EditorConfigInvertValueIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/EditorConfigInvertValueIntention/description.html new file mode 100644 index 000000000..dfdd5c470 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/EditorConfigInvertValueIntention/description.html @@ -0,0 +1,6 @@ + + + +将包含两种可能值的选项中的值更改为相反的值。 该意图只修改一个匹配项。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/EliminateParenthesesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/EliminateParenthesesIntention/description.html new file mode 100644 index 000000000..53cbde2fb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/EliminateParenthesesIntention/description.html @@ -0,0 +1,6 @@ + + +使用代数变换消除圆括号。 +此操作不会改变表达式的语义。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/EliminateWhenSubjectIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/EliminateWhenSubjectIntention/description.html new file mode 100644 index 000000000..0500848be --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/EliminateWhenSubjectIntention/description.html @@ -0,0 +1,5 @@ + + +将 when 实参内联到内部条件条目中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ElvisToIfThenIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ElvisToIfThenIntention/description.html new file mode 100644 index 000000000..258a025dd --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ElvisToIfThenIntention/description.html @@ -0,0 +1,5 @@ + + +将 elvis 表达式 ?: 转换为 if-then 表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/EncapsulateFieldAction/description.html b/original-plugin-raw/zh/intentionDescriptions/EncapsulateFieldAction/description.html new file mode 100644 index 000000000..af79146a0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/EncapsulateFieldAction/description.html @@ -0,0 +1,5 @@ + + +使用访问器方法替换对字段的直接访问。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ErbCommentConvertIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ErbCommentConvertIntention/description.html new file mode 100644 index 000000000..1597ee56e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ErbCommentConvertIntention/description.html @@ -0,0 +1,5 @@ + + +将 Ruby 注入中的注释转换为 ERB 注释。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/EvaluateCompileTimeExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/EvaluateCompileTimeExpressionIntention/description.html new file mode 100644 index 000000000..972ab85c7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/EvaluateCompileTimeExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +将编译时常量表达式替换为其实际值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ExpandBooleanExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ExpandBooleanExpressionIntention/description.html new file mode 100644 index 000000000..41854b63f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ExpandBooleanExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +将 Boolean 表达式替换为等效的 if-else 表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ExpandBooleanIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ExpandBooleanIntention/description.html new file mode 100644 index 000000000..fb0492b7e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ExpandBooleanIntention/description.html @@ -0,0 +1,5 @@ + + +

      用等效的 if-then-else 语句替换使用布尔表达式的 return 语句。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ExpandEmptyTagIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ExpandEmptyTagIntention/description.html new file mode 100644 index 000000000..ff1c04a3f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ExpandEmptyTagIntention/description.html @@ -0,0 +1,5 @@ + + +将自我结束标记替换为等效的起始标记和结束标记对。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ExpandPatternIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ExpandPatternIntention/description.html new file mode 100644 index 000000000..1f8a32ead --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ExpandPatternIntention/description.html @@ -0,0 +1,5 @@ + + +

      将通配符模式或绑定模式扩展为构造函数模式。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ExpandStaticImportAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ExpandStaticImportAction/description.html new file mode 100644 index 000000000..127ca86a3 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ExpandStaticImportAction/description.html @@ -0,0 +1,6 @@ + + +将静态导入的方法调用扩展到显式类限定。 +

      当多个调用使用相应的 static import 时,可以替换所有调用或仅更改当前调用。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ExtractChainedMapAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ExtractChainedMapAction/description.html new file mode 100644 index 000000000..a65bbe66c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ExtractChainedMapAction/description.html @@ -0,0 +1,5 @@ + + +使用 Stream.map()CompletableFuture.thenApply() 或类似运算将在 lambda 运算中声明的变量提取到单独的映射步骤。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ExtractDeclarationFromCurrentFileIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ExtractDeclarationFromCurrentFileIntention/description.html new file mode 100644 index 000000000..e17306f6b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ExtractDeclarationFromCurrentFileIntention/description.html @@ -0,0 +1,5 @@ + + +从当前文件中提取顶级类或对象,并将其放置在同一软件包和目录中的单独文件中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ExtractIfConditionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ExtractIfConditionAction/description.html new file mode 100644 index 000000000..ce5e65a35 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ExtractIfConditionAction/description.html @@ -0,0 +1,5 @@ + + +从 if 条件中提取操作数表达式,并将该表达式作为条件来创建新的 If 语句,保持原始控制流。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ExtractIncrementIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ExtractIncrementIntention/description.html new file mode 100644 index 000000000..107b1bab1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ExtractIncrementIntention/description.html @@ -0,0 +1,5 @@ + + +将在另一个语句中使用的递增或递减运算提取到单独的语句中。 由于此操作中固有的副作用可能性,此意图可能会改变修改后语句的语义。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ExtractInlineCssAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ExtractInlineCssAction/description.html new file mode 100644 index 000000000..8ef098c23 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ExtractInlineCssAction/description.html @@ -0,0 +1,5 @@ + + +提取内联 CSS(style 特性值)到当前 HTML 文件的 <style> 标签或单独的样式表文件中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ExtractMethodIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ExtractMethodIntentionAction/description.html new file mode 100644 index 000000000..ce69dee0e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ExtractMethodIntentionAction/description.html @@ -0,0 +1,5 @@ + + +从所选代码中提取方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ExtractSetFromComparisonChainAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ExtractSetFromComparisonChainAction/description.html new file mode 100644 index 000000000..8a4af3fcd --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ExtractSetFromComparisonChainAction/description.html @@ -0,0 +1,6 @@ + + +从一系列比较中提取 Set<String>,例如: "a".equals(str) || "b".equals(str) || "c".equals(str)。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ExtractToMethodReferenceIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ExtractToMethodReferenceIntention/description.html new file mode 100644 index 000000000..2b59ddf71 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ExtractToMethodReferenceIntention/description.html @@ -0,0 +1,5 @@ + + +将 lambda 体提取到方法并将 lambda 转换为方法引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ExtractWhileLoopConditionToIfStatementIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ExtractWhileLoopConditionToIfStatementIntention/description.html new file mode 100644 index 000000000..889c4d1e5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ExtractWhileLoopConditionToIfStatementIntention/description.html @@ -0,0 +1,5 @@ + + +提取 while 语句的条件并将否定条件放置在 while 循环内的 if 语句中。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/FetchExtResourceAction/description.html b/original-plugin-raw/zh/intentionDescriptions/FetchExtResourceAction/description.html new file mode 100644 index 000000000..e8455988e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FetchExtResourceAction/description.html @@ -0,0 +1,5 @@ + + +从互联网上下载一个指定 URL 的资源。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/FilterSetContainsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/FilterSetContainsIntention/description.html new file mode 100644 index 000000000..4f4724f1d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FilterSetContainsIntention/description.html @@ -0,0 +1,6 @@ + + +

      移除 filter 中有冗余的 contains

      + + + diff --git a/original-plugin-raw/zh/intentionDescriptions/FlattenWhenIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/FlattenWhenIntention/description.html new file mode 100644 index 000000000..f228998f4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FlattenWhenIntention/description.html @@ -0,0 +1,5 @@ + + +将嵌套的 when 表达式平展到封闭的 when 表达式中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/FlipAssertLiteralIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/FlipAssertLiteralIntention/description.html new file mode 100644 index 000000000..4b42f9d53 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FlipAssertLiteralIntention/description.html @@ -0,0 +1,5 @@ + + +将 JUnit assertTrue() 方法调用替换为 assertFalse(),反之亦然。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/FlipCommaIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/FlipCommaIntention/description.html new file mode 100644 index 000000000..981c43937 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FlipCommaIntention/description.html @@ -0,0 +1,5 @@ + + +交换用逗号分隔的两个元素。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/FlipCommutativeMethodCallIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/FlipCommutativeMethodCallIntention/description.html new file mode 100644 index 000000000..032fb87c0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FlipCommutativeMethodCallIntention/description.html @@ -0,0 +1,5 @@ + + +如果可能,将 caller.method(object) 调用替换为 object.method(caller) 调用(即交换限定符和实参)。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/FlipComparisonInInfixExprIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/FlipComparisonInInfixExprIntention/description.html new file mode 100644 index 000000000..b15944344 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FlipComparisonInInfixExprIntention/description.html @@ -0,0 +1,5 @@ + + +

      在中缀表达式中交换比较表达式的操作数。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/FlipComparisonInMethodCallExprIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/FlipComparisonInMethodCallExprIntention/description.html new file mode 100644 index 000000000..38d8b78ca --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FlipComparisonInMethodCallExprIntention/description.html @@ -0,0 +1,5 @@ + + +

      交换方法调用表达式中比较表达式的操作数。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/FlipComparisonIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/FlipComparisonIntention/description.html new file mode 100644 index 000000000..3175d0d50 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FlipComparisonIntention/description.html @@ -0,0 +1,5 @@ + + +翻转比较表达式中的符号。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/FlipConditionalIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/FlipConditionalIntention/description.html new file mode 100644 index 000000000..59b54fef2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FlipConditionalIntention/description.html @@ -0,0 +1,5 @@ + + +翻转条件运算符的分支。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/FlipConjunctionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/FlipConjunctionIntention/description.html new file mode 100644 index 000000000..3fc241c92 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FlipConjunctionIntention/description.html @@ -0,0 +1,5 @@ + + +反转 && or || 表达式中的求值顺序。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/FlipExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/FlipExpressionIntention/description.html new file mode 100644 index 000000000..58e47df0f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FlipExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +交换二进制表达式的操作数。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/FlipIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/FlipIfIntention/description.html new file mode 100644 index 000000000..2f7048283 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FlipIfIntention/description.html @@ -0,0 +1,5 @@ + + +翻转 if-else-if 链中 if 语句的顺序。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/FlipSetterCallIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/FlipSetterCallIntention/description.html new file mode 100644 index 000000000..b30575c46 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FlipSetterCallIntention/description.html @@ -0,0 +1,5 @@ + + +翻转 setter 调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/FlowJSTypeExplicitlyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/FlowJSTypeExplicitlyIntention/description.html new file mode 100644 index 000000000..24f83c1a0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FlowJSTypeExplicitlyIntention/description.html @@ -0,0 +1,5 @@ + + +将类型声明添加到变量或另一个元素。 类型由 Flow 服务提供。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/FoldIfToFunctionCallIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/FoldIfToFunctionCallIntention/description.html new file mode 100644 index 000000000..f4775fb7c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FoldIfToFunctionCallIntention/description.html @@ -0,0 +1,5 @@ + + +将函数调用移出 if 表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/FoldIfToReturnAsymmetricallyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/FoldIfToReturnAsymmetricallyIntention/description.html new file mode 100644 index 000000000..0533bb2d2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FoldIfToReturnAsymmetricallyIntention/description.html @@ -0,0 +1,5 @@ + + +将后面紧跟 return 的单分支 if 表达式转换为以 if 表达式为实参的单个 return。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ForToEachIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ForToEachIntention/description.html new file mode 100644 index 000000000..0eef82ea7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ForToEachIntention/description.html @@ -0,0 +1,5 @@ + + +将 for..in 语句替换为 .each 迭代器和关联的闭包。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionFormattedToInterpolated/description.html b/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionFormattedToInterpolated/description.html new file mode 100644 index 000000000..0225be4c1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionFormattedToInterpolated/description.html @@ -0,0 +1,5 @@ + + +

      将格式化字符串转换为插值字符串。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionFormattedToStringConcatenation/description.html b/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionFormattedToStringConcatenation/description.html new file mode 100644 index 000000000..4c84d0f90 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionFormattedToStringConcatenation/description.html @@ -0,0 +1,5 @@ + + +

      将格式化字符串转换为字符串串联。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionInterpolatedToFormatted/description.html b/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionInterpolatedToFormatted/description.html new file mode 100644 index 000000000..cf3373d15 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionInterpolatedToFormatted/description.html @@ -0,0 +1,5 @@ + + +

      将插值字符串转换为格式化字符串。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionInterpolatedToStringConcatenation/description.html b/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionInterpolatedToStringConcatenation/description.html new file mode 100644 index 000000000..0d94e21e2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionInterpolatedToStringConcatenation/description.html @@ -0,0 +1,5 @@ + + +

      将插值字符串转换为字符串串联。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionStringConcatenationToFormatted/description.html b/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionStringConcatenationToFormatted/description.html new file mode 100644 index 000000000..68c0e7134 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionStringConcatenationToFormatted/description.html @@ -0,0 +1,5 @@ + + +将字符串串联转换为格式化字符串。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionStringConcatenationToInterpolated/description.html b/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionStringConcatenationToInterpolated/description.html new file mode 100644 index 000000000..9eccdf715 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/FormatConversionIntentionStringConcatenationToInterpolated/description.html @@ -0,0 +1,5 @@ + + +将字符串串联转换为插值字符串。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GenerateMissedTestsAction/description.html b/original-plugin-raw/zh/intentionDescriptions/GenerateMissedTestsAction/description.html new file mode 100644 index 000000000..adcdb094e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GenerateMissedTestsAction/description.html @@ -0,0 +1,6 @@ + + +为所选类生成缺少的测试。 +

      为所选 public 方法生成的框架测试方法附加到现有测试类。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GeneratePropsFactoryIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GeneratePropsFactoryIntention/description.html new file mode 100644 index 000000000..1f63980e3 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GeneratePropsFactoryIntention/description.html @@ -0,0 +1,5 @@ + + +

      创建工厂方法

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GenerateViewIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GenerateViewIntention/description.html new file mode 100644 index 000000000..34a1855f8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GenerateViewIntention/description.html @@ -0,0 +1,5 @@ + + +通过 Grails 操作使用 Groovy Server Page 文件模板创建 Grails 视图。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GoAddDeclarationParensIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoAddDeclarationParensIntention/description.html new file mode 100644 index 000000000..86e812030 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoAddDeclarationParensIntention/description.html @@ -0,0 +1,6 @@ + + +将括号添加到单个声明。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoAddDotImportAliasIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoAddDotImportAliasIntention/description.html new file mode 100644 index 000000000..1f5344e22 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoAddDotImportAliasIntention/description.html @@ -0,0 +1,5 @@ + + +将点别名添加到所选的导入语句。 点别名使所有软件包中的导出的符号可用,而无需限定符。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoAddFmtStringArgumentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoAddFmtStringArgumentIntention/description.html new file mode 100644 index 000000000..8d1fc289f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoAddFmtStringArgumentIntention/description.html @@ -0,0 +1,6 @@ + + +生成表达式的格式化动词。 您需要在弹出窗口中输入表达式。 然后意图操作将格式化动词插入到格式字符串中,并将表达式作为此格式化动词的实参传递。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoAddImportAliasIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoAddImportAliasIntention/description.html new file mode 100644 index 000000000..5811a6f95 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoAddImportAliasIntention/description.html @@ -0,0 +1,21 @@ + + + + +将别名添加到所选的导入语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoAddTemplateTypeHintIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoAddTemplateTypeHintIntention/description.html new file mode 100644 index 000000000..c6e06420b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoAddTemplateTypeHintIntention/description.html @@ -0,0 +1,5 @@ + + +添加 Go 模板点类型提示注释。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoAssociateFileWithGoTemplateIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoAssociateFileWithGoTemplateIntention/description.html new file mode 100644 index 000000000..9b51d6832 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoAssociateFileWithGoTemplateIntention/description.html @@ -0,0 +1,6 @@ + + +将当前文件的文件扩展名与 Go 模板相关联。 +此意图操作为所有具有给定扩展名的文件自动启用 Go 模板集成。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoConvertToShortVarDeclarationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoConvertToShortVarDeclarationIntention/description.html new file mode 100644 index 000000000..6186879ff --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoConvertToShortVarDeclarationIntention/description.html @@ -0,0 +1,5 @@ + + +将普通变量声明转换为较短的版本。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoConvertToVarDeclarationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoConvertToVarDeclarationIntention/description.html new file mode 100644 index 000000000..aeb3169d0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoConvertToVarDeclarationIntention/description.html @@ -0,0 +1,5 @@ + + +将简短的变量声明转换为普通的声明。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoCreateFieldGetterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoCreateFieldGetterIntention/description.html new file mode 100644 index 000000000..94d1b10d6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoCreateFieldGetterIntention/description.html @@ -0,0 +1,5 @@ + + +为选定的结构字段创建一个 getter 方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoCreateFieldGetterSetterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoCreateFieldGetterSetterIntention/description.html new file mode 100644 index 000000000..1a2674407 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoCreateFieldGetterSetterIntention/description.html @@ -0,0 +1,5 @@ + + +为选定的结构字段创建 getter 和 setter 方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoCreateFieldSetterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoCreateFieldSetterIntention/description.html new file mode 100644 index 000000000..f3e05129d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoCreateFieldSetterIntention/description.html @@ -0,0 +1,5 @@ + + +为选定的结构字段创建一个 setter 方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoExpandSignatureTypesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoExpandSignatureTypesIntention/description.html new file mode 100644 index 000000000..b4da3c3ce --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoExpandSignatureTypesIntention/description.html @@ -0,0 +1,5 @@ + + +更新签名以定义每个形参的类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoExportIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoExportIntention/description.html new file mode 100644 index 000000000..938edb2ca --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoExportIntention/description.html @@ -0,0 +1,21 @@ + + + + +导出 private 函数、类型或字段。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoFillAllFieldsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoFillAllFieldsIntention/description.html new file mode 100644 index 000000000..5d7cf74dd --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoFillAllFieldsIntention/description.html @@ -0,0 +1,5 @@ + + +用 field-name: zero-value 对填充结构文字中的所有字段。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoFillAllFieldsRecursivelyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoFillAllFieldsRecursivelyIntention/description.html new file mode 100644 index 000000000..be0834375 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoFillAllFieldsRecursivelyIntention/description.html @@ -0,0 +1,6 @@ + + +用 field-name: zero-value 对填充结构文字中的所有字段。 +递归填充结构的字段或结构类型的指针。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoFillFieldsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoFillFieldsIntention/description.html new file mode 100644 index 000000000..18576c835 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoFillFieldsIntention/description.html @@ -0,0 +1,5 @@ + + +用 field-name: zero-value 对来填充结构文字中的选定字段。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoFillParagraphIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoFillParagraphIntention/description.html new file mode 100644 index 000000000..1d891478d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoFillParagraphIntention/description.html @@ -0,0 +1,5 @@ + + +将一条长行分成多行,组成一个段落。 每行的长度大致相同。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoFlipBinaryOperatorIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoFlipBinaryOperatorIntention/description.html new file mode 100644 index 000000000..5ce31d7f0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoFlipBinaryOperatorIntention/description.html @@ -0,0 +1,5 @@ + + +交换二元运算符的操作数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoGenerateConstructorIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoGenerateConstructorIntention/description.html new file mode 100644 index 000000000..60efd95b0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoGenerateConstructorIntention/description.html @@ -0,0 +1,7 @@ + + +生成为结构类型创建值的函数。 + +

      有关构造函数和复合文字的更多信息,请参阅 golang.org 上的 Constructors and composite literals 页面。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoGenerateStructFieldsFromJsonIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoGenerateStructFieldsFromJsonIntention/description.html new file mode 100644 index 000000000..f16f38d3e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoGenerateStructFieldsFromJsonIntention/description.html @@ -0,0 +1,5 @@ + + +从 JSON 生成结构字段。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoGenerateTypeFromJsonIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoGenerateTypeFromJsonIntention/description.html new file mode 100644 index 000000000..e6c4420b4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoGenerateTypeFromJsonIntention/description.html @@ -0,0 +1,5 @@ + + +从 JSON 生成 Go 类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoGotoImplementationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoGotoImplementationIntention/description.html new file mode 100644 index 000000000..4abff68be --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoGotoImplementationIntention/description.html @@ -0,0 +1,21 @@ + + + + +导航到接口或其方法的实现。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoGotoSuperIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoGotoSuperIntention/description.html new file mode 100644 index 000000000..39eb762b6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoGotoSuperIntention/description.html @@ -0,0 +1,21 @@ + + + + +从类型导航到此类型实现的接口。 此外,对方法也适用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoImplementInterfaceIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoImplementInterfaceIntention/description.html new file mode 100644 index 000000000..607f19df8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoImplementInterfaceIntention/description.html @@ -0,0 +1,21 @@ + + + + +生成接口的存根实现。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoInvertIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoInvertIfIntention/description.html new file mode 100644 index 000000000..f3eedb1b1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoInvertIfIntention/description.html @@ -0,0 +1,5 @@ + + +将 if-else 语句替换为具有否定条件和交换分支的等效语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoMergeAllDeclarationsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoMergeAllDeclarationsIntention/description.html new file mode 100644 index 000000000..e5ea2cf28 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoMergeAllDeclarationsIntention/description.html @@ -0,0 +1,7 @@ + + +用包装在圆括号中的单个声明替换由空行与其余代码分隔的一组声明。 +该组必须包含至少 3 个声明。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoMergeDeclarationUpIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoMergeDeclarationUpIntention/description.html new file mode 100644 index 000000000..27efbddf7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoMergeDeclarationUpIntention/description.html @@ -0,0 +1,6 @@ + + +用包装在括号中的单个声明替换两个连续的声明。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoMergeDeclarationsByCommaIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoMergeDeclarationsByCommaIntention/description.html new file mode 100644 index 000000000..df010bf76 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoMergeDeclarationsByCommaIntention/description.html @@ -0,0 +1,6 @@ + + +用一个逗号分隔的声明替换两个连续的声明。 可用于 varconst 和短 var 声明。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoMoveToStructInitializationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoMoveToStructInitializationIntention/description.html new file mode 100644 index 000000000..8d342d5af --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoMoveToStructInitializationIntention/description.html @@ -0,0 +1,21 @@ + + + + +将结构字段赋值移动到结构初始化块。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoNegateExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoNegateExpressionIntention/description.html new file mode 100644 index 000000000..d350fac94 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoNegateExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +用等效的否定表达式替换当前的二元布尔表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoNegateExpressionRecursivelyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoNegateExpressionRecursivelyIntention/description.html new file mode 100644 index 000000000..06a83074b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoNegateExpressionRecursivelyIntention/description.html @@ -0,0 +1,5 @@ + + +用等效的否定表达式替换当前的二元布尔表达式及其子表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoNegateTopmostExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoNegateTopmostExpressionIntention/description.html new file mode 100644 index 000000000..4382db84e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoNegateTopmostExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +用等效的否定表达式替换最顶端的二元布尔表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoNegateTopmostExpressionRecursivelyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoNegateTopmostExpressionRecursivelyIntention/description.html new file mode 100644 index 000000000..aba21a0bf --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoNegateTopmostExpressionRecursivelyIntention/description.html @@ -0,0 +1,5 @@ + + +用等效的否定表达式替换最顶端的二元布尔表达式及其子表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoRemoveDeclarationParensIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoRemoveDeclarationParensIntention/description.html new file mode 100644 index 000000000..cd47b6e68 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoRemoveDeclarationParensIntention/description.html @@ -0,0 +1,6 @@ + + +从单个声明中删除括号。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoRemoveDotImportAliasIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoRemoveDotImportAliasIntention/description.html new file mode 100644 index 000000000..153c4dccb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoRemoveDotImportAliasIntention/description.html @@ -0,0 +1,5 @@ + + +从所选的导入语句中删除点别名。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoRemoveKeysFromStructLiteralValueIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoRemoveKeysFromStructLiteralValueIntention/description.html new file mode 100644 index 000000000..f358f7b44 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoRemoveKeysFromStructLiteralValueIntention/description.html @@ -0,0 +1,21 @@ + + + + +从文字值元素中删除键,然后插入省略的元素。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoReuseSignatureTypesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoReuseSignatureTypesIntention/description.html new file mode 100644 index 000000000..00538cd9d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoReuseSignatureTypesIntention/description.html @@ -0,0 +1,5 @@ + + +更新签名以便为共享公共类型的形参重用类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoRunGenerateCommentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoRunGenerateCommentIntention/description.html new file mode 100644 index 000000000..69d99ab0c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoRunGenerateCommentIntention/description.html @@ -0,0 +1,21 @@ + + + + +对 generate 注释运行 go generate。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoRunGenerateCommentOnFileIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoRunGenerateCommentOnFileIntention/description.html new file mode 100644 index 000000000..0b2548878 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoRunGenerateCommentOnFileIntention/description.html @@ -0,0 +1,21 @@ + + + + +在当前文件上运行 go generate。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoRunGenerateCommentOnPackageIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoRunGenerateCommentOnPackageIntention/description.html new file mode 100644 index 000000000..31645d983 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoRunGenerateCommentOnPackageIntention/description.html @@ -0,0 +1,21 @@ + + + + +在当前软件包上运行 go generate。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoSpecifyTypeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoSpecifyTypeIntention/description.html new file mode 100644 index 000000000..dabf83619 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoSpecifyTypeIntention/description.html @@ -0,0 +1,5 @@ + + +向变量和常量声明添加显式类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoSplitAllDeclarationsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoSplitAllDeclarationsIntention/description.html new file mode 100644 index 000000000..0676b2ad6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoSplitAllDeclarationsIntention/description.html @@ -0,0 +1,6 @@ + + +用单独的声明替换包装在圆括号中的一组声明。 该组必须包含至少 3 个声明。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoSplitDeclarationsByCommaIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoSplitDeclarationsByCommaIntention/description.html new file mode 100644 index 000000000..6ceed739a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoSplitDeclarationsByCommaIntention/description.html @@ -0,0 +1,6 @@ + + +用两个单独的声明替换一组由逗号分隔的声明。 可用于 varconst 和短 var 声明。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoSplitDeclarationsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoSplitDeclarationsIntention/description.html new file mode 100644 index 000000000..c1b4fbb1b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoSplitDeclarationsIntention/description.html @@ -0,0 +1,6 @@ + + +用两个单独的声明替换包装在括号中的一组声明。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoTagAddKeyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoTagAddKeyIntention/description.html new file mode 100644 index 000000000..a0a3429cb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoTagAddKeyIntention/description.html @@ -0,0 +1,5 @@ + + +将带有字段名称的键添加到结构中的每个字段。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoTagChangeNameStyleIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoTagChangeNameStyleIntention/description.html new file mode 100644 index 000000000..f20059371 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoTagChangeNameStyleIntention/description.html @@ -0,0 +1,5 @@ + + +更改结构标记中字段名称的样式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoTagUpdateValueIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoTagUpdateValueIntention/description.html new file mode 100644 index 000000000..34b70a090 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoTagUpdateValueIntention/description.html @@ -0,0 +1,5 @@ + + +在每个结构字段的键值内添加文本光标。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GoTypeParametersSupportIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GoTypeParametersSupportIntention/description.html new file mode 100644 index 000000000..86026f2ff --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GoTypeParametersSupportIntention/description.html @@ -0,0 +1,8 @@ + + +启用对泛型(也称为类型形参)的实验性支持。 + +

      当前实现基于 2020 年 6 月 16 日发布的 Ian Lance Taylor 和 Robert Griesemer 的类型形参 - 草稿设计。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GrAliasImportIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GrAliasImportIntention/description.html new file mode 100644 index 000000000..6d8db535b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrAliasImportIntention/description.html @@ -0,0 +1,5 @@ + + +为元素创建别名化的 导入,并为创建的别名提供建议的名称。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GrBreakStringOnLineBreaksIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GrBreakStringOnLineBreaksIntention/description.html new file mode 100644 index 000000000..1c6caf398 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrBreakStringOnLineBreaksIntention/description.html @@ -0,0 +1,5 @@ + + +将在 '\n' 和 '\n\r' 符号处换行的字符串文字转换为多行串联表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/GrConvertStringToCharIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GrConvertStringToCharIntention/description.html new file mode 100644 index 000000000..07406d5ec --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrConvertStringToCharIntention/description.html @@ -0,0 +1,5 @@ + + +将显式转换添加到字符文字。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GrConvertTypeCastToSafeCastIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GrConvertTypeCastToSafeCastIntention/description.html new file mode 100644 index 000000000..b8416ec1f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrConvertTypeCastToSafeCastIntention/description.html @@ -0,0 +1,5 @@ + + +将类型转换表达式转换为安全转换表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GrCopyStringConcatenationContentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GrCopyStringConcatenationContentIntention/description.html new file mode 100644 index 000000000..53178ba39 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrCopyStringConcatenationContentIntention/description.html @@ -0,0 +1,8 @@ + + +将 String 串联的文本复制到系统剪贴板。 +

      + 这可能很有用,例如,当您将代码中的多行 SQL 查询拆分为需要复制到外部应用程序的串联行时。 +

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GrCreateFieldForParameterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GrCreateFieldForParameterIntention/description.html new file mode 100644 index 000000000..dee45b0d3 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrCreateFieldForParameterIntention/description.html @@ -0,0 +1,5 @@ + + +为参数创建字段。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GrCreateMissingSwitchBranchesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GrCreateMissingSwitchBranchesIntention/description.html new file mode 100644 index 000000000..ea69cc828 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrCreateMissingSwitchBranchesIntention/description.html @@ -0,0 +1,5 @@ + + +在具有枚举类型的表达式上为 switch 语句生成缺失的 case 标签。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GrCreateSubclassAction/description.html b/original-plugin-raw/zh/intentionDescriptions/GrCreateSubclassAction/description.html new file mode 100644 index 000000000..e2a204cbc --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrCreateSubclassAction/description.html @@ -0,0 +1,8 @@ + + +为类或接口创建子类或实现类。 +

      + 生成的类包含基类或接口中所有抽象方法的默认实现。 +

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GrIntroduceLocalVariableIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GrIntroduceLocalVariableIntention/description.html new file mode 100644 index 000000000..7c9169176 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrIntroduceLocalVariableIntention/description.html @@ -0,0 +1,5 @@ + + +为表达式创建局部变量,并使用该表达式对其进行初始化。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GrMakeMemberPrivateIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GrMakeMemberPrivateIntention/description.html new file mode 100644 index 000000000..52d0fb771 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrMakeMemberPrivateIntention/description.html @@ -0,0 +1,5 @@ + + +将元素设置为 private。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GrMakeMemberProtectedIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GrMakeMemberProtectedIntention/description.html new file mode 100644 index 000000000..cb42e6283 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrMakeMemberProtectedIntention/description.html @@ -0,0 +1,5 @@ + + +将元素设置为 protected。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GrMakeMemberPublicIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GrMakeMemberPublicIntention/description.html new file mode 100644 index 000000000..4ec9a7706 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrMakeMemberPublicIntention/description.html @@ -0,0 +1,5 @@ + + +将元素设置为 public。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GrRedundantElseIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GrRedundantElseIntention/description.html new file mode 100644 index 000000000..e651132df --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrRedundantElseIntention/description.html @@ -0,0 +1,5 @@ + + +如果相应的 then 子句始终无法正常完成,则从 if 语句中分离 else 子句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GrRemoveExplicitTypeDeclarationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GrRemoveExplicitTypeDeclarationIntention/description.html new file mode 100644 index 000000000..2ace1684c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrRemoveExplicitTypeDeclarationIntention/description.html @@ -0,0 +1,5 @@ + + +从变量或方法中移除显式类型声明。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GrSetStrongTypeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GrSetStrongTypeIntention/description.html new file mode 100644 index 000000000..85beb7aff --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrSetStrongTypeIntention/description.html @@ -0,0 +1,5 @@ + + +为没有显式类型的变量插入类型声明。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GrSortMapKeysIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GrSortMapKeysIntention/description.html new file mode 100644 index 000000000..5f5051823 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrSortMapKeysIntention/description.html @@ -0,0 +1,5 @@ + + +按字母顺序对映射项排序。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GrSplitDeclarationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GrSplitDeclarationIntention/description.html new file mode 100644 index 000000000..f99af44c4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrSplitDeclarationIntention/description.html @@ -0,0 +1,8 @@ + + +使用初始值设定项将局部变量声明拆分为单独的声明语句和赋值语句。 +

      + 一条语句中的多个声明将被拆分为单独的声明。 +

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GrabDependencies/description.html b/original-plugin-raw/zh/intentionDescriptions/GrabDependencies/description.html new file mode 100644 index 000000000..510e55f35 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrabDependencies/description.html @@ -0,0 +1,6 @@ + + +向项目添加由 @Grab 注解定义的依赖项。 + + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GrailsCreateActionByUsageIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GrailsCreateActionByUsageIntention/description.html new file mode 100644 index 000000000..252e32585 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GrailsCreateActionByUsageIntention/description.html @@ -0,0 +1,5 @@ + + +通过引用创建缺少的 Grails 操作。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/GspI18nIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/GspI18nIntention/description.html new file mode 100644 index 000000000..7e3f827cf --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/GspI18nIntention/description.html @@ -0,0 +1,5 @@ + + +将所选文本从 GSP 文件提取到 message.properties。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/HardCodedStringToPlaceholderMoveIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/HardCodedStringToPlaceholderMoveIntention/description.html new file mode 100644 index 000000000..2a4b45ce1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/HardCodedStringToPlaceholderMoveIntention/description.html @@ -0,0 +1,5 @@ + + +将 Spring <bean> 定义中的硬编码 <property> 值提取到配置文件中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/HashRocketToNewStyleIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/HashRocketToNewStyleIntention/description.html new file mode 100644 index 000000000..158f7e3f4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/HashRocketToNewStyleIntention/description.html @@ -0,0 +1,5 @@ + + +将哈希键从哈希火箭语法转换为 Ruby 1.9 语法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/HelmConvertRepositoryAliasToUrlAction/description.html b/original-plugin-raw/zh/intentionDescriptions/HelmConvertRepositoryAliasToUrlAction/description.html new file mode 100644 index 000000000..aa0439cdc --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/HelmConvertRepositoryAliasToUrlAction/description.html @@ -0,0 +1,5 @@ + + +如果在本地添加仓库,则将 Helm 仓库别名转换为 URL 表示 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/HelmConvertRepositoryUrlToAliasAction/description.html b/original-plugin-raw/zh/intentionDescriptions/HelmConvertRepositoryUrlToAliasAction/description.html new file mode 100644 index 000000000..63c1da125 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/HelmConvertRepositoryUrlToAliasAction/description.html @@ -0,0 +1,5 @@ + + +如果在本地添加仓库,则将 Helm 仓库 URL 转换为别名表示 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/HelmUpdateDependenciesIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/HelmUpdateDependenciesIntentionAction/description.html new file mode 100644 index 000000000..6abf4fafa --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/HelmUpdateDependenciesIntentionAction/description.html @@ -0,0 +1,5 @@ + + +对当前 Helm 图表执行 helm dependency update + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/HelmUpdateRepositoryIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/HelmUpdateRepositoryIntentionAction/description.html new file mode 100644 index 000000000..7a32733d8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/HelmUpdateRepositoryIntentionAction/description.html @@ -0,0 +1,6 @@ + + +从仓库获取有关图表的最新信息。 +信息缓存在本地,供补全和检查使用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/HeredocToSquigglyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/HeredocToSquigglyIntention/description.html new file mode 100644 index 000000000..1ec9f8f98 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/HeredocToSquigglyIntention/description.html @@ -0,0 +1,6 @@ + + +将 <<<<- heredoc 转换为 squiggly heredoc (<<~)。 Squiggly heredoc +忽略每一行的起始空格,以便更好地设置格式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/HtmlUpdateImageSizeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/HtmlUpdateImageSizeIntention/description.html new file mode 100644 index 000000000..7cccc539f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/HtmlUpdateImageSizeIntention/description.html @@ -0,0 +1,5 @@ + + +根据 src 特性中声明的图像的实际大小,插入或更新 <img> 标签的 widthheight 特性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/HttpMoveRequestsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/HttpMoveRequestsIntention/description.html new file mode 100644 index 000000000..6da0a1648 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/HttpMoveRequestsIntention/description.html @@ -0,0 +1,5 @@ + + + 将 HTTP 请求移至另一个文件。 您还可以通过 .http 文件中的“移动重构”来执行此操作。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/HttpRequestConvertToCurlIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/HttpRequestConvertToCurlIntention/description.html new file mode 100644 index 000000000..fb4aabd80 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/HttpRequestConvertToCurlIntention/description.html @@ -0,0 +1,6 @@ + + +将 HTTP 请求转换为 cURL 命令,并将结果复制到剪贴板。 如果请求中包含变量, +则该意图建议在请求中提供替换该变量的环境。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/HttpRequestEnvironmentSetSecuredValueIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/HttpRequestEnvironmentSetSecuredValueIntention/description.html new file mode 100644 index 000000000..38fdab2ff --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/HttpRequestEnvironmentSetSecuredValueIntention/description.html @@ -0,0 +1,7 @@ + + +设置文本光标下的密钥值。 +意图显示密码输入提示,并将提供的密码保存到默认密码管理器。
      +它适用于 HTTP 客户端 SSL 配置密码短语。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/I18nizeStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/I18nizeStringIntention/description.html new file mode 100644 index 000000000..9b33928b8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/I18nizeStringIntention/description.html @@ -0,0 +1,5 @@ + + +将硬编码的字符串移至 i18n 区域设置文件,并调用 translate 方法替换其用法,来对硬编码的字符串实施国际化。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/IfToTernaryOperatorIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/IfToTernaryOperatorIntention/description.html new file mode 100644 index 000000000..c7d444001 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/IfToTernaryOperatorIntention/description.html @@ -0,0 +1,6 @@ + + +将 if 语句替换为三元语句。 在某些情况下,使用三元语句可能更简洁和更 +易读。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/IfToWhenIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/IfToWhenIntention/description.html new file mode 100644 index 000000000..e85100493 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/IfToWhenIntention/description.html @@ -0,0 +1,5 @@ + + +将 if 表达式转换为等效的 when 表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ImplementAbstractMemberAsConstructorParameterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ImplementAbstractMemberAsConstructorParameterIntention/description.html new file mode 100644 index 000000000..72aa55332 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ImplementAbstractMemberAsConstructorParameterIntention/description.html @@ -0,0 +1,5 @@ + + +在子类中将 abstract 属性实现为构造函数形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ImplementAbstractMemberIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ImplementAbstractMemberIntention/description.html new file mode 100644 index 000000000..127b9e26b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ImplementAbstractMemberIntention/description.html @@ -0,0 +1,5 @@ + + +在子类中实现 abstract 成员。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ImplementAbstractMethodAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ImplementAbstractMethodAction/description.html new file mode 100644 index 000000000..5e92431b5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ImplementAbstractMethodAction/description.html @@ -0,0 +1,6 @@ + + +搜索所有可以实现所选 abstract 方法的类,并在其中创建默认的方法实现。 + + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ImplementParcelableAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ImplementParcelableAction/description.html new file mode 100644 index 000000000..0601fdc7a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ImplementParcelableAction/description.html @@ -0,0 +1,5 @@ + + +此意图会使用字段持久性实现 Parcelable 所需的方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ImportAdditionalIdentifiersIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ImportAdditionalIdentifiersIntention/description.html new file mode 100644 index 000000000..4a9838105 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ImportAdditionalIdentifiersIntention/description.html @@ -0,0 +1,5 @@ + + +

      在导入表达式周围添加大括号,以便稍后在必要时导入其他成员。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ImportAllMembersIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ImportAllMembersIntention/description.html new file mode 100644 index 000000000..c70ccc390 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ImportAllMembersIntention/description.html @@ -0,0 +1,5 @@ + + +

      使用通配符语法导入软件包或类的所有内容,并用非限定的引用替换所有出现的内容。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ImportFromToImportIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ImportFromToImportIntention/description.html new file mode 100644 index 000000000..e3fcca90b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ImportFromToImportIntention/description.html @@ -0,0 +1,11 @@ + + + +将 from module_name import 转换为 import module_name +并通过模块名称限定从该模块导入的任何名称。 + +
      + +有了 import module_name 语句,无需更新任何 from module_name import 语句即可开始使用同一模块中的另一项。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ImportMemberIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ImportMemberIntention/description.html new file mode 100644 index 000000000..314846a7d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ImportMemberIntention/description.html @@ -0,0 +1,5 @@ + + +添加引用的所选成员的导入,并移除在文件中对该成员的引用的显式用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ImportOnDemandIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ImportOnDemandIntention/description.html new file mode 100644 index 000000000..ee2788dcd --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ImportOnDemandIntention/description.html @@ -0,0 +1,5 @@ + + +将限定引用转换为简单引用,并为相应类添加 static import。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ImportStableMemberIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ImportStableMemberIntention/description.html new file mode 100644 index 000000000..5256088ad --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ImportStableMemberIntention/description.html @@ -0,0 +1,5 @@ + + +

      引入成员,用非限定的引用替换所有的用法。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ImportStaticIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ImportStaticIntention/description.html new file mode 100644 index 000000000..7e9bcecdd --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ImportStaticIntention/description.html @@ -0,0 +1,5 @@ + + +将限定引用转换为简单引用,并为该引用添加相应的 static import。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ImportToImportFromIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ImportToImportFromIntention/description.html new file mode 100644 index 000000000..4a4a8a879 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ImportToImportFromIntention/description.html @@ -0,0 +1,12 @@ + + + +将 import module_name 替换为 from module_name import, +并在引用 module_name 中的名称时移除限定符。 + +
      + + 使用 from module_name import 确保更好地控制 module_name 的哪些项目可以访问。 + + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ImportToggleAliasIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ImportToggleAliasIntention/description.html new file mode 100644 index 000000000..5e6331821 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ImportToggleAliasIntention/description.html @@ -0,0 +1,12 @@ + + + +允许从 import 元素添加或移除别名,并相应地重命名引用。 +对 import ... as ...from ... import ... as 语句都适用。 + +
      + + 在您经常引用具有长名称的模块时,在 import 语句中使用别名很有帮助。 + + + diff --git a/original-plugin-raw/zh/intentionDescriptions/IndentRawStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/IndentRawStringIntention/description.html new file mode 100644 index 000000000..162d79fac --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/IndentRawStringIntention/description.html @@ -0,0 +1,5 @@ + + +缩进原始字符串。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/IndexedExpressionConversionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/IndexedExpressionConversionIntention/description.html new file mode 100644 index 000000000..951fb7940 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/IndexedExpressionConversionIntention/description.html @@ -0,0 +1,5 @@ + + +通过 [] 将对索引值的访问转换为等效的 .getAt().setAt() 调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/IndexingMethodConversionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/IndexingMethodConversionIntention/description.html new file mode 100644 index 000000000..0f8b4a770 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/IndexingMethodConversionIntention/description.html @@ -0,0 +1,5 @@ + + +将通过 .getAt().setAt() 调用对索引值的访问转换为等效的 [] 形式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/InferMethodParametersTypesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/InferMethodParametersTypesIntention/description.html new file mode 100644 index 000000000..480494227 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/InferMethodParametersTypesIntention/description.html @@ -0,0 +1,5 @@ + + +向方法的参数添加显式类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/InfixCallToOrdinaryIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/InfixCallToOrdinaryIntention/description.html new file mode 100644 index 000000000..196ac176b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/InfixCallToOrdinaryIntention/description.html @@ -0,0 +1,5 @@ + + +将中缀函数调用转换为点限定函数调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/InjectLanguageAction/description.html b/original-plugin-raw/zh/intentionDescriptions/InjectLanguageAction/description.html new file mode 100644 index 000000000..53701332e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/InjectLanguageAction/description.html @@ -0,0 +1,5 @@ + + +将语言注入到 可以保存文本的程序元素(字符串文字、XML 特性、标签主体等)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/InlineIncrementIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/InlineIncrementIntention/description.html new file mode 100644 index 000000000..0195b8756 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/InlineIncrementIntention/description.html @@ -0,0 +1,5 @@ + + +在使用相同变量的语句内移动递增或递减运算。 由于此操作中固有的副作用可能性,此意图可能会改变修改后语句的语义。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/InlineStreamMapAction/description.html b/original-plugin-raw/zh/intentionDescriptions/InlineStreamMapAction/description.html new file mode 100644 index 000000000..abde4bc55 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/InlineStreamMapAction/description.html @@ -0,0 +1,6 @@ + + +如果可能,将 Stream.map() 和类似的调用内联到下一个流操作中。 +

      就像在普通变量内联一样,如果映射结果被多次使用并且有副作用,则此意图可能会更改代码语义。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/InlineXslAttribute/description.html b/original-plugin-raw/zh/intentionDescriptions/InlineXslAttribute/description.html new file mode 100644 index 000000000..e1981a801 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/InlineXslAttribute/description.html @@ -0,0 +1,8 @@ + + +将一个 xsl:attributee 指令嵌入到一个特性值模板。 +

      + 由 XPathView + XSLT-Support 提供技术支持 +

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/InsertCurlyBracesToTemplateIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/InsertCurlyBracesToTemplateIntention/description.html new file mode 100644 index 000000000..998f099b7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/InsertCurlyBracesToTemplateIntention/description.html @@ -0,0 +1,5 @@ + + +在字符串模板中的表达式外侧插入大括号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/InsertExplicitTypeArgumentsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/InsertExplicitTypeArgumentsIntention/description.html new file mode 100644 index 000000000..1a02dda49 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/InsertExplicitTypeArgumentsIntention/description.html @@ -0,0 +1,5 @@ + + +在函数调用中插入显式类型实参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/InsertGapIntoStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/InsertGapIntoStringIntention/description.html new file mode 100644 index 000000000..c28206a98 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/InsertGapIntoStringIntention/description.html @@ -0,0 +1,5 @@ + + +在字符串文字中插入一个间隙。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/IntroduceBackingPropertyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/IntroduceBackingPropertyIntention/description.html new file mode 100644 index 000000000..02ad0b1b2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/IntroduceBackingPropertyIntention/description.html @@ -0,0 +1,5 @@ + + +为指定的属性创建支持属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/IntroduceImportAliasIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/IntroduceImportAliasIntention/description.html new file mode 100644 index 000000000..70b716522 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/IntroduceImportAliasIntention/description.html @@ -0,0 +1,5 @@ + + +为导入创建导入别名。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/IntroduceVariableIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/IntroduceVariableIntention/description.html new file mode 100644 index 000000000..f2c8d2302 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/IntroduceVariableIntention/description.html @@ -0,0 +1,5 @@ + + +将指定的表达式提取到变量中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/IntroduceVariableIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/IntroduceVariableIntentionAction/description.html new file mode 100644 index 000000000..354bcd75e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/IntroduceVariableIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将表达式的结果放入单独的变量中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/InvertIfConditionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/InvertIfConditionAction/description.html new file mode 100644 index 000000000..8f77d3498 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/InvertIfConditionAction/description.html @@ -0,0 +1,7 @@ + + +使用内部的反转条件将 if 语句替换为另一个 if 语句。 +

      +该意图可能有助于简化使用多个嵌套 if 语句的复杂代码。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/InvertIfConditionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/InvertIfConditionIntention/description.html new file mode 100644 index 000000000..435089438 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/InvertIfConditionIntention/description.html @@ -0,0 +1,7 @@ + + +

      使用内部条件倒置的 if 语句替换另一个 if 语句。 + 此意图对于例如简化使用多个嵌套 if 语句的复杂代码很有用。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/InvertIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/InvertIfIntention/description.html new file mode 100644 index 000000000..ee982f311 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/InvertIfIntention/description.html @@ -0,0 +1,5 @@ + + +将 if-else 语句替换为具有否定条件和交换的分支的等效语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/IterateExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/IterateExpressionIntention/description.html new file mode 100644 index 000000000..05b0df33f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/IterateExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +使用 for 循环对给定集合进行迭代。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/IterateOverIterableIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/IterateOverIterableIntention/description.html new file mode 100644 index 000000000..7789303a9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/IterateOverIterableIntention/description.html @@ -0,0 +1,6 @@ + + +选取编辑器选区,如果它具有数组或 java.lang.Iterable 类型,则对其进行迭代。 +如果编辑器中没有所选代码片段,将选取插入符号处的适当表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JRubyJavaToRubyCallStyleIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JRubyJavaToRubyCallStyleIntention/description.html new file mode 100644 index 000000000..445fbc1fa --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JRubyJavaToRubyCallStyleIntention/description.html @@ -0,0 +1,5 @@ + + +将方法调用中的点运算符 (.) 替换为引用运算符 (::)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JRubyQualifiedNameToImportIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JRubyQualifiedNameToImportIntention/description.html new file mode 100644 index 000000000..e54cf6e04 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JRubyQualifiedNameToImportIntention/description.html @@ -0,0 +1,5 @@ + + +将限定的 Java 类引用替换为其短名称和一条 import 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JRubyStringImportToCamelReferenceIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JRubyStringImportToCamelReferenceIntention/description.html new file mode 100644 index 000000000..1fd89e493 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JRubyStringImportToCamelReferenceIntention/description.html @@ -0,0 +1,5 @@ + + +将字符串 import 转换为限定常量 import。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/JRubyStringImportToDotReferenceIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JRubyStringImportToDotReferenceIntention/description.html new file mode 100644 index 000000000..e264d2d2e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JRubyStringImportToDotReferenceIntention/description.html @@ -0,0 +1,5 @@ + + +将字符串 import 转换为点引用 import。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSAddBracesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSAddBracesIntention/description.html new file mode 100644 index 000000000..79d74e499 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSAddBracesIntention/description.html @@ -0,0 +1,5 @@ + + +为没有大括号的控制流语句添加大括号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSAnnotateInjectionWithCommentIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/JSAnnotateInjectionWithCommentIntentionAction/description.html new file mode 100644 index 000000000..88edeaf1c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSAnnotateInjectionWithCommentIntentionAction/description.html @@ -0,0 +1,5 @@ + + +添加注释标记含注入语言的字符串文字。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSAnonymousToNamedFunctionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSAnonymousToNamedFunctionIntention/description.html new file mode 100644 index 000000000..ffdc7df1c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSAnonymousToNamedFunctionIntention/description.html @@ -0,0 +1,5 @@ + + +将匿名函数表达式转换为命名函数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSArrowFunctionToAnonymousIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSArrowFunctionToAnonymousIntention/description.html new file mode 100644 index 000000000..673187d89 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSArrowFunctionToAnonymousIntention/description.html @@ -0,0 +1,8 @@ + + +将箭头函数转换为匿名函数表达式。 +

      +请注意,不建议对使用 this 的箭头函数进行此转换,因为此值对匿名函数来说可能发生变化。
      +请参阅 https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/Arrow_functions#Lexical_this。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSCallChainToPipeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSCallChainToPipeIntention/description.html new file mode 100644 index 000000000..3af147dd5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSCallChainToPipeIntention/description.html @@ -0,0 +1,5 @@ + + +将带有单个形参的函数调用链转换为等效的管道表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/JSChangeToCStyleCommentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSChangeToCStyleCommentIntention/description.html new file mode 100644 index 000000000..9ea28a03e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSChangeToCStyleCommentIntention/description.html @@ -0,0 +1,5 @@ + + +将一个或多个单行注释替换为等效的多行注释。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/JSChangeToDocCommentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSChangeToDocCommentIntention/description.html new file mode 100644 index 000000000..24324e322 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSChangeToDocCommentIntention/description.html @@ -0,0 +1,5 @@ + + +将多行注释或多个单行注释替换为 JSDoc 注释。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/JSChangeToEndOfLineCommentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSChangeToEndOfLineCommentIntention/description.html new file mode 100644 index 000000000..3925cc85f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSChangeToEndOfLineCommentIntention/description.html @@ -0,0 +1,5 @@ + + +将多行注释替换为一个或多个单行注释。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/JSConstantExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSConstantExpressionIntention/description.html new file mode 100644 index 000000000..8cce947a9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSConstantExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +计算编译时常量表达式的值,并将其替换为等效的文字表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSConstantSubexpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSConstantSubexpressionIntention/description.html new file mode 100644 index 000000000..640fac22d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSConstantSubexpressionIntention/description.html @@ -0,0 +1,6 @@ + + +计算编译时常量子表达式的值,并将其替换为等效的文字表达式。 +这对于如果要部分替换表达式而不是全部替换有帮助。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSConvertIndexedToForEachIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSConvertIndexedToForEachIntention/description.html new file mode 100644 index 000000000..793309147 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSConvertIndexedToForEachIntention/description.html @@ -0,0 +1,5 @@ + + +将对数组的索引 for 循环转换为 forEach 方法的调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSConvertIntegerToBinaryIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSConvertIntegerToBinaryIntention/description.html new file mode 100644 index 000000000..225393271 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSConvertIntegerToBinaryIntention/description.html @@ -0,0 +1,5 @@ + + +将整数文本从非二进制表示法转换为二进制表示法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSConvertIntegerToDecimalIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSConvertIntegerToDecimalIntention/description.html new file mode 100644 index 000000000..00ab40b67 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSConvertIntegerToDecimalIntention/description.html @@ -0,0 +1,5 @@ + + +将整数文字从非十进制表示法转换为十进制表示法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSConvertIntegerToHexIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSConvertIntegerToHexIntention/description.html new file mode 100644 index 000000000..14c160b94 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSConvertIntegerToHexIntention/description.html @@ -0,0 +1,5 @@ + + +将整数文本从非十六进制表示法转换为十六进制表示法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSConvertIntegerToOctalIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSConvertIntegerToOctalIntention/description.html new file mode 100644 index 000000000..bc459f5e6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSConvertIntegerToOctalIntention/description.html @@ -0,0 +1,5 @@ + + +将整数文本从非八进制表示法转换为八进制表示法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSConvertParametersToObjectAndIntroduceInterfaceIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSConvertParametersToObjectAndIntroduceInterfaceIntention/description.html new file mode 100644 index 000000000..be0dca490 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSConvertParametersToObjectAndIntroduceInterfaceIntention/description.html @@ -0,0 +1,7 @@ + + +将函数的形参转换为单个对象,为该对象创建接口,并将所有调用的实参替换为构建的对象文字。 +

      +该意图只适用于支持类型的语言(TypeScript、Flow)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSConvertParametersToObjectIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSConvertParametersToObjectIntention/description.html new file mode 100644 index 000000000..69988ebe2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSConvertParametersToObjectIntention/description.html @@ -0,0 +1,5 @@ + + +将函数的形参转换为单个对象,并将函数所有调用的实参替换为生成的对象文字。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSConvertToForEachIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSConvertToForEachIntention/description.html new file mode 100644 index 000000000..e344d0bf4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSConvertToForEachIntention/description.html @@ -0,0 +1,5 @@ + + +将对数组的 for-in 循环转换为 forEach 方法的调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSCreateGetterAndSetterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSCreateGetterAndSetterIntention/description.html new file mode 100644 index 000000000..fa4e13054 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSCreateGetterAndSetterIntention/description.html @@ -0,0 +1,6 @@ + + +为字段创建 getter 和 setter。 该字段成为私有的,并根据代码风格设置重新命名(默认情况下, +添加 _ 前缀)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSCreateGetterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSCreateGetterIntention/description.html new file mode 100644 index 000000000..cee57c5b9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSCreateGetterIntention/description.html @@ -0,0 +1,5 @@ + + +为字段创建 getter。 该字段成为私有的,并根据代码风格设置重新命名(默认情况下,添加 _ 前缀)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSCreateSetterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSCreateSetterIntention/description.html new file mode 100644 index 000000000..0637fc2ae --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSCreateSetterIntention/description.html @@ -0,0 +1,5 @@ + + +为字段创建 setter。 该字段成为私有的,并根据代码风格设置重新命名(默认情况下,添加 _ 前缀)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSCreateSubclassIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSCreateSubclassIntention/description.html new file mode 100644 index 000000000..d27eaddf6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSCreateSubclassIntention/description.html @@ -0,0 +1,5 @@ + + +创建新的类,该类继承文本光标所在处的类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSDeMorgansLawIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSDeMorgansLawIntention/description.html new file mode 100644 index 000000000..f0410862a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSDeMorgansLawIntention/description.html @@ -0,0 +1,5 @@ + + +将布尔表达式中的 a || b 替换为 !(!a && !b) 或将 a && b 替换为 !(!a || !b) + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSDestructuringToReferencesAndIndexersIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSDestructuringToReferencesAndIndexersIntention/description.html new file mode 100644 index 000000000..ecd6560ff --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSDestructuringToReferencesAndIndexersIntention/description.html @@ -0,0 +1,11 @@ + + +在访问端将解构模式转换为一系列的引用或索引器表达式。 +在以下可能产生副作用的情况下,将为每个解构项都引入新的变量。 +
      • 该模式有默认值
      • +
      • 有写入用法
      • +
      • 右侧的表达有副作用
      • +
      • 右侧的表达式不是引用
      +这个操作与 "传播到解构声明 "是相反的。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSDontFormatInjectionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/JSDontFormatInjectionAction/description.html new file mode 100644 index 000000000..cf8ba1605 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSDontFormatInjectionAction/description.html @@ -0,0 +1,5 @@ + + +标记被注入语言的代码片段,使其不被格式化。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSDoubleToSingleQuotedStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSDoubleToSingleQuotedStringIntention/description.html new file mode 100644 index 000000000..05c52bf43 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSDoubleToSingleQuotedStringIntention/description.html @@ -0,0 +1,5 @@ + + +将双引号引用的字符串文字替换为等效的单引号引用字符串文字,并确保引号在字符串中被正确转义。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSEditObjectLiteralPropertiesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSEditObjectLiteralPropertiesIntention/description.html new file mode 100644 index 000000000..386a87a6e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSEditObjectLiteralPropertiesIntention/description.html @@ -0,0 +1,5 @@ + + +调用实时模板,用于编辑一个对象文字的属性值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSExpandNullPropagationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSExpandNullPropagationIntention/description.html new file mode 100644 index 000000000..71a0cdf93 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSExpandNullPropagationIntention/description.html @@ -0,0 +1,5 @@ + + +将可选链或空值合并表达式扩展为显式检查。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSExplicifyFieldsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSExplicifyFieldsIntention/description.html new file mode 100644 index 000000000..caa6cfdf5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSExplicifyFieldsIntention/description.html @@ -0,0 +1,5 @@ + + +为通过构造函数中的 this.xxx = ... 初始化声明的类字段引入新的显式类字段。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSExtractIncrementIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSExtractIncrementIntention/description.html new file mode 100644 index 000000000..55733aab6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSExtractIncrementIntention/description.html @@ -0,0 +1,5 @@ + + +提取在另一个语句中使用为单独语句的增量或减量操作。 由于可能的副作用,这种意图可能会改变已更改的语句的语义。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSFlipArithmeticOperationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSFlipArithmeticOperationIntention/description.html new file mode 100644 index 000000000..80b17d9bd --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSFlipArithmeticOperationIntention/description.html @@ -0,0 +1,5 @@ + + +交换算术运算的操作数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSFlipComparisonIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSFlipComparisonIntention/description.html new file mode 100644 index 000000000..95cf88946 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSFlipComparisonIntention/description.html @@ -0,0 +1,5 @@ + + +交换一个比较表达式的操作数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSFlipConditionalIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSFlipConditionalIntention/description.html new file mode 100644 index 000000000..5371e18c7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSFlipConditionalIntention/description.html @@ -0,0 +1,5 @@ + + +翻转条件运算符的分支顺序。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSFlipConjunctionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSFlipConjunctionIntention/description.html new file mode 100644 index 000000000..69e75db3e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSFlipConjunctionIntention/description.html @@ -0,0 +1,5 @@ + + +交换 &&|| 表达式的操作数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSFlipIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSFlipIfIntention/description.html new file mode 100644 index 000000000..618c306e8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSFlipIfIntention/description.html @@ -0,0 +1,5 @@ + + +反转 if...else 语句分支的顺序。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSFunctionToES6ClassIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSFunctionToES6ClassIntention/description.html new file mode 100644 index 000000000..188d45861 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSFunctionToES6ClassIntention/description.html @@ -0,0 +1,5 @@ + + +将函数及其成员声明转换为 ES6 类。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSGenerateDestructuringPatternIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSGenerateDestructuringPatternIntention/description.html new file mode 100644 index 000000000..8c7449d79 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSGenerateDestructuringPatternIntention/description.html @@ -0,0 +1,6 @@ + + +将具有对象或数组初始化器的变量转换为解构对象或数组。 +变量的使用情况也相应地被更新。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSIndexerToPropertyAccessIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSIndexerToPropertyAccessIntention/description.html new file mode 100644 index 000000000..509ef541b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSIndexerToPropertyAccessIntention/description.html @@ -0,0 +1,5 @@ + + +将索引访问表达式转换为属性访问表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSInferParametersIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSInferParametersIntention/description.html new file mode 100644 index 000000000..5d21858dc --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSInferParametersIntention/description.html @@ -0,0 +1,5 @@ + + +从函数调用中推断出形参类型注解或 JSDoc 类型。如有必要,添加通用形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSInitializeFieldsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSInitializeFieldsIntention/description.html new file mode 100644 index 000000000..dea82414f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSInitializeFieldsIntention/description.html @@ -0,0 +1,5 @@ + + +为一个未使用的构造函数形参引入新字段,并在构造函数中初始化该新字段。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSIntroduceDestructuringVariablesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSIntroduceDestructuringVariablesIntention/description.html new file mode 100644 index 000000000..596d93a63 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSIntroduceDestructuringVariablesIntention/description.html @@ -0,0 +1,5 @@ + + +调用提取解构变量重构。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSIntroduceParameterPropertiesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSIntroduceParameterPropertiesIntention/description.html new file mode 100644 index 000000000..6eb814094 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSIntroduceParameterPropertiesIntention/description.html @@ -0,0 +1,5 @@ + + +将构造函数的未使用的形参转换为形参属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSIntroduceVariableIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSIntroduceVariableIntention/description.html new file mode 100644 index 000000000..c4fcc1ca5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSIntroduceVariableIntention/description.html @@ -0,0 +1,5 @@ + + +为具有当前未使用的结果值的表达式创建局部变量。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSIterateIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSIterateIntention/description.html new file mode 100644 index 000000000..2b3980c76 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSIterateIntention/description.html @@ -0,0 +1,6 @@ + + +将可迭代类型的表达式包含在 for-of 循环中。 +可迭代类型可以是数组,也可以是具有 Symbol.iterator 属性的类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSJoinVariableStatementsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSJoinVariableStatementsIntention/description.html new file mode 100644 index 000000000..c69249502 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSJoinVariableStatementsIntention/description.html @@ -0,0 +1,7 @@ + + +将一系列连续的同类变量声明语句连接成为单个语句。 +例如,var a; var b; 变成 var a, b;。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSMergeElseIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSMergeElseIfIntention/description.html new file mode 100644 index 000000000..543696b39 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSMergeElseIfIntention/description.html @@ -0,0 +1,5 @@ + + +合并 if...else 语句的 else 分支,如果这个 else 分支只包含一个嵌套的 if...else 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSMergeIfAndIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSMergeIfAndIntention/description.html new file mode 100644 index 000000000..5970e84bc --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSMergeIfAndIntention/description.html @@ -0,0 +1,6 @@ + + +将 if...else 语句与 true 分支内嵌套的 if...else 语句合并。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSMergeIfOrIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSMergeIfOrIntention/description.html new file mode 100644 index 000000000..045bd3e52 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSMergeIfOrIntention/description.html @@ -0,0 +1,5 @@ + + +将主体相同的 if...else 语句的分支合并为一条 if 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSMergeParallelIfsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSMergeParallelIfsIntention/description.html new file mode 100644 index 000000000..0cadbc693 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSMergeParallelIfsIntention/description.html @@ -0,0 +1,5 @@ + + +合并具有相同条件的连续 if 语句。 请注意,这可能会改变执行顺序。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSMoveCommentToSeparateLineIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSMoveCommentToSeparateLineIntention/description.html new file mode 100644 index 000000000..6a5293b00 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSMoveCommentToSeparateLineIntention/description.html @@ -0,0 +1,6 @@ + + +将注释从有代码的一行移作上方单独一行。 +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSMoveTypeToFileIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSMoveTypeToFileIntention/description.html new file mode 100644 index 000000000..ab489b13e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSMoveTypeToFileIntention/description.html @@ -0,0 +1,6 @@ + + +将 ECMAScript 类或 TypeScript 类、接口或枚举移到新的或现有的文件中,文件名称与类型名称相匹配。

      +文件名匹配可以是框架特定的。 例如,对于 Angular 组件,适用相应的样式指南。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSNamedToFunctionExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSNamedToFunctionExpressionIntention/description.html new file mode 100644 index 000000000..07915ab26 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSNamedToFunctionExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +将命名的函数转换为持有箭头函数或函数表达式的变量。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSNegateComparisonIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSNegateComparisonIntention/description.html new file mode 100644 index 000000000..f4c4396f7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSNegateComparisonIntention/description.html @@ -0,0 +1,7 @@ + + +将一个布尔比较表达式 a op b 转换为 +!( a negop b )。
      +其中 opnegop 是互为反向的比较运算符,如 ==!=。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSNullPropagationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSNullPropagationIntention/description.html new file mode 100644 index 000000000..3cb48ecbe --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSNullPropagationIntention/description.html @@ -0,0 +1,5 @@ + + +用可选链代替可 null 检查。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSObjectLiteralIndexingToArrayDestructuringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSObjectLiteralIndexingToArrayDestructuringIntention/description.html new file mode 100644 index 000000000..43b154100 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSObjectLiteralIndexingToArrayDestructuringIntention/description.html @@ -0,0 +1,5 @@ + + +如果同一条目在对象属性的值中被索引(例如,var x = {a: r[0], b: r[1]}),这些属性可以使用析构进行初步分配,然后以速记形式使用,除非检测到任何名称冲突。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSPipeToCallChainIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSPipeToCallChainIntention/description.html new file mode 100644 index 000000000..981f3a624 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSPipeToCallChainIntention/description.html @@ -0,0 +1,5 @@ + + +将管道表达式转换为具有单个形参的函数的等效的调用链。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/JSPromiseToAsyncIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSPromiseToAsyncIntention/description.html new file mode 100644 index 000000000..edaa52d1b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSPromiseToAsyncIntention/description.html @@ -0,0 +1,5 @@ + + +将在 return 语句中带有 Promise 链的函数转换为一个带有 await 表达式和 catch 处理的 async 函数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSPropagateToDestructuringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSPropagateToDestructuringIntention/description.html new file mode 100644 index 000000000..28359096d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSPropagateToDestructuringIntention/description.html @@ -0,0 +1,5 @@ + + +如果使用该变量访问解构变量的属性或数组元素,请将相应属性的访问或索引表达式传播到解构中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSPropertyAccessToIndexerIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSPropertyAccessToIndexerIntention/description.html new file mode 100644 index 000000000..d10c55d3c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSPropertyAccessToIndexerIntention/description.html @@ -0,0 +1,5 @@ + + +将属性访问表达式转换为索引访问表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSPublicModifierIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSPublicModifierIntention/description.html new file mode 100644 index 000000000..10cd7dd3b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSPublicModifierIntention/description.html @@ -0,0 +1,5 @@ + + +将此类成员设为 public。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSQuoteLiteralPropertiesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSQuoteLiteralPropertiesIntention/description.html new file mode 100644 index 000000000..e1fe2a8a5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSQuoteLiteralPropertiesIntention/description.html @@ -0,0 +1,5 @@ + + +用引号包裹对象文字的所有属性的名称。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSRemoveBooleanEqualityIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSRemoveBooleanEqualityIntention/description.html new file mode 100644 index 000000000..f265bc17e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSRemoveBooleanEqualityIntention/description.html @@ -0,0 +1,5 @@ + + +简化布尔表达式与布尔文字 truefalse 的比较。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSRemoveBracesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSRemoveBracesIntention/description.html new file mode 100644 index 000000000..29af1ee15 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSRemoveBracesIntention/description.html @@ -0,0 +1,5 @@ + + +从代码块中只有一条语句的控制流语句中移除大括号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSRemoveDigitSeparatorsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSRemoveDigitSeparatorsIntention/description.html new file mode 100644 index 000000000..3490dabea --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSRemoveDigitSeparatorsIntention/description.html @@ -0,0 +1,5 @@ + + +移除数值文字的分隔符。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSRemoveRedundantElseIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSRemoveRedundantElseIntention/description.html new file mode 100644 index 000000000..ec24e22b1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSRemoveRedundantElseIntention/description.html @@ -0,0 +1,5 @@ + + +简化 if...else 语句,其中 else 分支是多余的,如果 if 分支的最后一条语句无条件地转移控制。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSRenameFileToMatchTypeNameIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSRenameFileToMatchTypeNameIntention/description.html new file mode 100644 index 000000000..7dc94317c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSRenameFileToMatchTypeNameIntention/description.html @@ -0,0 +1,6 @@ + + +重命名文件以匹配所选类型的名称(ECMAScript 类或 TypeScript 类、接口、枚举)。

      +文件名称匹配可以是特定于框架的。 例如,对于 Angular 组件,适用相应的样式指南。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSReplaceConditionalWithIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSReplaceConditionalWithIfIntention/description.html new file mode 100644 index 000000000..87974fb00 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSReplaceConditionalWithIfIntention/description.html @@ -0,0 +1,5 @@ + + +将一个条件运算符转换为 if...else 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSReplaceForEachWithForOfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSReplaceForEachWithForOfIntention/description.html new file mode 100644 index 000000000..dd6625aff --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSReplaceForEachWithForOfIntention/description.html @@ -0,0 +1,6 @@ + + +将 array.forEach() 转换为 for...of 循环。 +虽然这些代码结构相似,但 for...of 循环允许使用 continuebreak 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSReplaceForEachWithIndexedIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSReplaceForEachWithIndexedIntention/description.html new file mode 100644 index 000000000..7b7c0c9d8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSReplaceForEachWithIndexedIntention/description.html @@ -0,0 +1,5 @@ + + +将迭代数组的 forEach 循环转换为使用索引迭代数组的等效的 for 循环。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSReplaceForOfWithIndexedIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSReplaceForOfWithIndexedIntention/description.html new file mode 100644 index 000000000..080bf9cb2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSReplaceForOfWithIndexedIntention/description.html @@ -0,0 +1,5 @@ + + +将迭代数组的 for..of 循环转换为使用索引迭代数组的等效的 for 循环。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSReplaceIfWithConditionalIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSReplaceIfWithConditionalIntention/description.html new file mode 100644 index 000000000..d0d9ea237 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSReplaceIfWithConditionalIntention/description.html @@ -0,0 +1,5 @@ + + +将 if...else 语句转换为具有条件表达式的等效语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSReplaceIfWithSwitchIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSReplaceIfWithSwitchIntention/description.html new file mode 100644 index 000000000..c4bbcf59c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSReplaceIfWithSwitchIntention/description.html @@ -0,0 +1,5 @@ + + +将一系列 if...else 语句替换为同等的 switch 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSReplaceMultiplyWithShiftIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSReplaceMultiplyWithShiftIntention/description.html new file mode 100644 index 000000000..daff4d54e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSReplaceMultiplyWithShiftIntention/description.html @@ -0,0 +1,5 @@ + + +用整数移位运算符 << 替换乘法运算符。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSReplaceShiftWithMultiplyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSReplaceShiftWithMultiplyIntention/description.html new file mode 100644 index 000000000..907e82bbb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSReplaceShiftWithMultiplyIntention/description.html @@ -0,0 +1,5 @@ + + +用乘法运算符替换整数移位运算符 <<。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSReplaceSwitchWithIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSReplaceSwitchWithIfIntention/description.html new file mode 100644 index 000000000..467b52f04 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSReplaceSwitchWithIfIntention/description.html @@ -0,0 +1,5 @@ + + +用一系列的 if-else 语句替换 switch 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSReplaceWithOperatorAssignmentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSReplaceWithOperatorAssignmentIntention/description.html new file mode 100644 index 000000000..cf5e4319f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSReplaceWithOperatorAssignmentIntention/description.html @@ -0,0 +1,5 @@ + + +将变量赋值语句转换为赋值运算符。
      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/JSSeparateDigitsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSSeparateDigitsIntention/description.html new file mode 100644 index 000000000..6eec6e0eb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSSeparateDigitsIntention/description.html @@ -0,0 +1,5 @@ + + +为数值文字上添加数字分隔符以提高代码的可读性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSSharpPrivateModifierIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSSharpPrivateModifierIntention/description.html new file mode 100644 index 000000000..c5aed6d4b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSSharpPrivateModifierIntention/description.html @@ -0,0 +1,5 @@ + + +使用 ECMAScript 的 private #-语法来使一个类成员为 private。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSSingleToDoubleQuotedStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSSingleToDoubleQuotedStringIntention/description.html new file mode 100644 index 000000000..6a2a34eed --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSSingleToDoubleQuotedStringIntention/description.html @@ -0,0 +1,5 @@ + + +将单引号引用的字符串文字替换为等效的双引号引用字符串文字,并确保双引号在字符串中被正确转义。
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSSplitDeclarationAndInitializationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSSplitDeclarationAndInitializationIntention/description.html new file mode 100644 index 000000000..e0e198b39 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSSplitDeclarationAndInitializationIntention/description.html @@ -0,0 +1,5 @@ + + +将包含变量声明和初始化的语句拆分为包含变量声明和赋值语句的语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSSplitDeclarationAndMoveToScopeStartIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSSplitDeclarationAndMoveToScopeStartIntention/description.html new file mode 100644 index 000000000..7bd819243 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSSplitDeclarationAndMoveToScopeStartIntention/description.html @@ -0,0 +1,5 @@ + + +将包含变量声明和初始化的语句拆分为包含变量声明和赋值语句的语句,然后将新创建的 var 语句移到当前范围的顶部。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSSplitDeclarationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSSplitDeclarationIntention/description.html new file mode 100644 index 000000000..63ff4a5ed --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSSplitDeclarationIntention/description.html @@ -0,0 +1,5 @@ + + +将复合声明转换为多个变量声明。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSSplitElseIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSSplitElseIfIntention/description.html new file mode 100644 index 000000000..d7819016b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSSplitElseIfIntention/description.html @@ -0,0 +1,5 @@ + + +拆分 if... else 语句的 else 分支。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSSplitIfAndIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSSplitIfAndIntention/description.html new file mode 100644 index 000000000..3060ccce2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSSplitIfAndIntention/description.html @@ -0,0 +1,5 @@ + + +将 if 语句与作为一系列嵌套 if 语句条件的 AND 表达式分离。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSSplitIfOrIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSSplitIfOrIntention/description.html new file mode 100644 index 000000000..00b4e1964 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSSplitIfOrIntention/description.html @@ -0,0 +1,5 @@ + + +将一个以 OR 表达式为条件的 if 语句拆分为一系列具有相同主体的 if...else 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSStringTemplateConvertToMultiLineIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSStringTemplateConvertToMultiLineIntention/description.html new file mode 100644 index 000000000..d95db06c5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSStringTemplateConvertToMultiLineIntention/description.html @@ -0,0 +1,5 @@ + + +将带有可见行分隔符(\n)的字符串模板转换为多行模板字符串。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSStringTemplateConvertToVisibleSeparatorsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSStringTemplateConvertToVisibleSeparatorsIntention/description.html new file mode 100644 index 000000000..155a1f21b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSStringTemplateConvertToVisibleSeparatorsIntention/description.html @@ -0,0 +1,5 @@ + + +将多行模板字符串转换为单行模板字符串,并带有可见行分隔符(\n)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSSubsequentIndexingToDestructuringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSSubsequentIndexingToDestructuringIntention/description.html new file mode 100644 index 000000000..3081d3677 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSSubsequentIndexingToDestructuringIntention/description.html @@ -0,0 +1,5 @@ + + +如果在变量声明和/或赋值中某项的索引是连续的(例如,var x = r[0]; y = r[1]; z = r[55]),将这些变量和/或赋值转换为解构声明或赋值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSSubsequentPromiseAwaitToPromiseAllDestructuringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSSubsequentPromiseAwaitToPromiseAllDestructuringIntention/description.html new file mode 100644 index 000000000..09ee254e0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSSubsequentPromiseAwaitToPromiseAllDestructuringIntention/description.html @@ -0,0 +1,5 @@ + + +用 Promise.all 和解构代替一系列连续的分配给变量的 await 表达式,以获得更好的性能。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSSubsequentPropertyAccessToDestructuringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSSubsequentPropertyAccessToDestructuringIntention/description.html new file mode 100644 index 000000000..0382d84f6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSSubsequentPropertyAccessToDestructuringIntention/description.html @@ -0,0 +1,6 @@ + + +如果项目在变量声明和/或赋值中用相同的限定符被连续访问的话(例如,var x = obj.x; y = obj.y; z = obj.z), +将这些变量和/或赋值转换为解构声明或赋值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSUnquoteLiteralPropertiesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSUnquoteLiteralPropertiesIntention/description.html new file mode 100644 index 000000000..fe34f8b24 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSUnquoteLiteralPropertiesIntention/description.html @@ -0,0 +1,5 @@ + + +为对象文字中所有属性的带引号的名称去除引号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSXChangeAttributeQuotesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSXChangeAttributeQuotesIntention/description.html new file mode 100644 index 000000000..3f7e46a96 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSXChangeAttributeQuotesIntention/description.html @@ -0,0 +1,5 @@ + + +用大括号包裹特性值({})。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JSXRemoveAttributeBracesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JSXRemoveAttributeBracesIntention/description.html new file mode 100644 index 000000000..d14223d41 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JSXRemoveAttributeBracesIntention/description.html @@ -0,0 +1,5 @@ + + +移除特性值周围不必要的大括号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JavaExtractStringToBundleInspection/description.html b/original-plugin-raw/zh/intentionDescriptions/JavaExtractStringToBundleInspection/description.html new file mode 100644 index 000000000..523751892 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JavaExtractStringToBundleInspection/description.html @@ -0,0 +1,4 @@ + +

      从 Scala IntelliJ 插件 Java 文件中将字符串提取到相应的包中(仅在 IntelliJ 插件源中才有可能)。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JavaFxCollapseSubTagToAttributeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JavaFxCollapseSubTagToAttributeIntention/description.html new file mode 100644 index 000000000..091ae751d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JavaFxCollapseSubTagToAttributeIntention/description.html @@ -0,0 +1,6 @@ + + +将属性子标签移到父类标签特性。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JavaFxConvertCssToBinaryIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JavaFxConvertCssToBinaryIntention/description.html new file mode 100644 index 000000000..21a18937a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JavaFxConvertCssToBinaryIntention/description.html @@ -0,0 +1,6 @@ + + +将样式表调用转换为二进制格式。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JavaFxCss2ClassicIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JavaFxCss2ClassicIntention/description.html new file mode 100644 index 000000000..1447eb478 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JavaFxCss2ClassicIntention/description.html @@ -0,0 +1,5 @@ + + +将当前 CSS 文件的方言更改为经典 CSS。 要切换回 JavaFX 方言,请修改映射(设置/偏好设置 | 语言和框架 | 样式表 | 方言)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JavaFxExpandAttributeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JavaFxExpandAttributeIntention/description.html new file mode 100644 index 000000000..5fa80bdfb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JavaFxExpandAttributeIntention/description.html @@ -0,0 +1,6 @@ + + +将属性特性提取到单独的子标签。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JavaFxFieldToPropertyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JavaFxFieldToPropertyIntention/description.html new file mode 100644 index 000000000..c3e472049 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JavaFxFieldToPropertyIntention/description.html @@ -0,0 +1,5 @@ + + +将字段转换为 JavaFX 属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JavaNumberConversionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JavaNumberConversionIntention/description.html new file mode 100644 index 000000000..b51cadeb7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JavaNumberConversionIntention/description.html @@ -0,0 +1,5 @@ + + +将数字转换为不同的基数或表示法(例如,十进制转为十六进制或科学记数法转为普通记数法)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JoinArgumentListIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JoinArgumentListIntention/description.html new file mode 100644 index 000000000..73cc97f61 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JoinArgumentListIntention/description.html @@ -0,0 +1,5 @@ + + +格式化函数调用,将所有实参放在一行中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JoinConcatenatedStringLiteralsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JoinConcatenatedStringLiteralsIntention/description.html new file mode 100644 index 000000000..419ab078e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JoinConcatenatedStringLiteralsIntention/description.html @@ -0,0 +1,5 @@ + + +将相邻的串联字符串文字联接成单个文字。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/JoinDeclarationAndAssignmentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JoinDeclarationAndAssignmentIntention/description.html new file mode 100644 index 000000000..e8f4c4720 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JoinDeclarationAndAssignmentIntention/description.html @@ -0,0 +1,5 @@ + + +将属性或变量的声明与其第一个赋值联接。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/JoinLinesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JoinLinesIntention/description.html new file mode 100644 index 000000000..faee20fdf --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JoinLinesIntention/description.html @@ -0,0 +1,5 @@ + + +将元素放在同一行中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JoinParameterListIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JoinParameterListIntention/description.html new file mode 100644 index 000000000..3193f1321 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JoinParameterListIntention/description.html @@ -0,0 +1,5 @@ + + +格式化声明的形参,将所有形参放在一行中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JpaAddEntityListenerAction/description.html b/original-plugin-raw/zh/intentionDescriptions/JpaAddEntityListenerAction/description.html new file mode 100644 index 000000000..6e7d7d13e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JpaAddEntityListenerAction/description.html @@ -0,0 +1,5 @@ + + +将新实体侦听器添加到实体类。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/JpaAddInverseAttributeAction/description.html b/original-plugin-raw/zh/intentionDescriptions/JpaAddInverseAttributeAction/description.html new file mode 100644 index 000000000..a91fe21ca --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JpaAddInverseAttributeAction/description.html @@ -0,0 +1,5 @@ + + +通过生成链接到所选特性的另一侧特性,将单向关系转换为双向关系。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/JpaEntityListenerBindingsAction/description.html b/original-plugin-raw/zh/intentionDescriptions/JpaEntityListenerBindingsAction/description.html new file mode 100644 index 000000000..d4270a2ea --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JpaEntityListenerBindingsAction/description.html @@ -0,0 +1,6 @@ + + +显示实体侦听器绑定对话框,以便查看和修改实体侦听器绑定。 + + + diff --git a/original-plugin-raw/zh/intentionDescriptions/JsonPathEvaluateIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/JsonPathEvaluateIntentionAction/description.html new file mode 100644 index 000000000..fbb6b996e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JsonPathEvaluateIntentionAction/description.html @@ -0,0 +1,5 @@ + + +打开 JSONPath Evaluate 工具窗口以评估表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JsonSortPropertiesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JsonSortPropertiesIntention/description.html new file mode 100644 index 000000000..5b3a8ce29 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JsonSortPropertiesIntention/description.html @@ -0,0 +1,5 @@ + + +按字母顺序排列 JSON 对象的属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/JspCommentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/JspCommentIntention/description.html new file mode 100644 index 000000000..b9444438d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/JspCommentIntention/description.html @@ -0,0 +1,5 @@ + + +将 XML 注释替换为 JSP 注释。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/KotlinAndroidAddStringResource/description.html b/original-plugin-raw/zh/intentionDescriptions/KotlinAndroidAddStringResource/description.html new file mode 100644 index 000000000..263b5fdce --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/KotlinAndroidAddStringResource/description.html @@ -0,0 +1,5 @@ + + +将字符串文字提取到 Android 资源中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/KotlinCreateTestIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/KotlinCreateTestIntention/description.html new file mode 100644 index 000000000..bc8a1c287 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/KotlinCreateTestIntention/description.html @@ -0,0 +1,5 @@ + + +为指定的类生成测试案例。 生成的类将包含所选 public 函数的骨架测试函数。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/KtorModuleTestIntentionImpl/description.html b/original-plugin-raw/zh/intentionDescriptions/KtorModuleTestIntentionImpl/description.html new file mode 100644 index 000000000..40854d728 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/KtorModuleTestIntentionImpl/description.html @@ -0,0 +1,5 @@ + + +创建一个测试类,其中包含针对当前应用程序模块中所有路由的测试。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/KtorRouteExtensionTestIntentionImpl/description.html b/original-plugin-raw/zh/intentionDescriptions/KtorRouteExtensionTestIntentionImpl/description.html new file mode 100644 index 000000000..a20547c09 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/KtorRouteExtensionTestIntentionImpl/description.html @@ -0,0 +1,5 @@ + + +创建一个测试类,其中包含针对当前路由扩展程序中所有路由的测试。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/KtorRouteTestIntentionImpl/description.html b/original-plugin-raw/zh/intentionDescriptions/KtorRouteTestIntentionImpl/description.html new file mode 100644 index 000000000..e0e287418 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/KtorRouteTestIntentionImpl/description.html @@ -0,0 +1,5 @@ + + +为所选 Ktor 路由创建测试. + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/LambdaToAnonymousFunctionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/LambdaToAnonymousFunctionIntention/description.html new file mode 100644 index 000000000..c10d9638f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/LambdaToAnonymousFunctionIntention/description.html @@ -0,0 +1,5 @@ + + +将 lambda 表达式转换为匿名函数的调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/LightEditOpenInProjectIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/LightEditOpenInProjectIntention/description.html new file mode 100644 index 000000000..4ffa9051f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/LightEditOpenInProjectIntention/description.html @@ -0,0 +1,5 @@ + + +在项目中打开当前文件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MakeAnnotationExternal/description.html b/original-plugin-raw/zh/intentionDescriptions/MakeAnnotationExternal/description.html new file mode 100644 index 000000000..7fedfeaf7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MakeAnnotationExternal/description.html @@ -0,0 +1,7 @@ + + +将注解放置到单独的 .xml 文件并将其从代码中移除。 +

      如果在您的代码样式设置中启用了外部注解,则此意图在编辑器中可用。

      + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MakeCallChainIntoCallSequenceIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MakeCallChainIntoCallSequenceIntention/description.html new file mode 100644 index 000000000..f60198b9c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MakeCallChainIntoCallSequenceIntention/description.html @@ -0,0 +1,5 @@ + + +将方法调用链扩展为等效的调用语句序列。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MakeClosureCallExplicitIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MakeClosureCallExplicitIntention/description.html new file mode 100644 index 000000000..4df008cf9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MakeClosureCallExplicitIntention/description.html @@ -0,0 +1,5 @@ + + +将对闭包的隐式调用转换为显式调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MakeClosureCallImplicitIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MakeClosureCallImplicitIntention/description.html new file mode 100644 index 000000000..cfda2d270 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MakeClosureCallImplicitIntention/description.html @@ -0,0 +1,5 @@ + + +将对闭包的显式调用转换为隐式调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MakeExternalAnnotationExplicit/description.html b/original-plugin-raw/zh/intentionDescriptions/MakeExternalAnnotationExplicit/description.html new file mode 100644 index 000000000..cd4fa09b0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MakeExternalAnnotationExplicit/description.html @@ -0,0 +1,6 @@ + + +将外部注解从单独的文件带到您的代码中。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MakeImplicitConversionExplicit/description.html b/original-plugin-raw/zh/intentionDescriptions/MakeImplicitConversionExplicit/description.html new file mode 100644 index 000000000..1e6d37857 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MakeImplicitConversionExplicit/description.html @@ -0,0 +1,5 @@ + + +

      令隐式转换变为显式转换。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MakeInferredAnnotationExplicit/description.html b/original-plugin-raw/zh/intentionDescriptions/MakeInferredAnnotationExplicit/description.html new file mode 100644 index 000000000..bffe109bd --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MakeInferredAnnotationExplicit/description.html @@ -0,0 +1,7 @@ + + +将 IDE 推断的注解(@Nullable@NotNull@Contract)显式添加到您的代码中。 +可能需要依赖 org.jetbrains:annotations 软件包。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MakeMethodDefaultIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MakeMethodDefaultIntention/description.html new file mode 100644 index 000000000..3bc152a26 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MakeMethodDefaultIntention/description.html @@ -0,0 +1,6 @@ + + +向接口中的方法添加默认修饰符和主体。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MakeNullableIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MakeNullableIntention/description.html new file mode 100644 index 000000000..aced6ab98 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MakeNullableIntention/description.html @@ -0,0 +1,5 @@ + + +为 Grails 域类的属性添加 nullable 约束。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MakeTypeMoreSpecificIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MakeTypeMoreSpecificIntention/description.html new file mode 100644 index 000000000..120841f55 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MakeTypeMoreSpecificIntention/description.html @@ -0,0 +1,5 @@ + + +

      如果可能,将类型注解更改为更具体的注解。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MakeUniqueIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MakeUniqueIntention/description.html new file mode 100644 index 000000000..9a01bbb58 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MakeUniqueIntention/description.html @@ -0,0 +1,5 @@ + + +为 Grails 域类的属性添加 unique 约束。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ManuallySetupExtResourceAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ManuallySetupExtResourceAction/description.html new file mode 100644 index 000000000..650ae9a4d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ManuallySetupExtResourceAction/description.html @@ -0,0 +1,5 @@ + + +将一个命名空间映射到一个 XML 架构文件(DTD 或 XSD)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MarkdownCodeFenceErrorHighlightingIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MarkdownCodeFenceErrorHighlightingIntention/description.html new file mode 100644 index 000000000..846ed062c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MarkdownCodeFenceErrorHighlightingIntention/description.html @@ -0,0 +1,5 @@ + + +允许在 Markdown 代码块中禁用错误高亮显示。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MarkdownConfigureImageIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MarkdownConfigureImageIntention/description.html new file mode 100644 index 000000000..edc792d1c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MarkdownConfigureImageIntention/description.html @@ -0,0 +1,5 @@ + + +打开一个对话框,用于 Markdown 图像的交互式配置。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MarkdownInsertTableColumnIntentionInsertAfter/description.html b/original-plugin-raw/zh/intentionDescriptions/MarkdownInsertTableColumnIntentionInsertAfter/description.html new file mode 100644 index 000000000..26e8b140e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MarkdownInsertTableColumnIntentionInsertAfter/description.html @@ -0,0 +1,5 @@ + + +在当前列的右侧插入新的空列。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MarkdownInsertTableColumnIntentionInsertBefore/description.html b/original-plugin-raw/zh/intentionDescriptions/MarkdownInsertTableColumnIntentionInsertBefore/description.html new file mode 100644 index 000000000..0b5680a63 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MarkdownInsertTableColumnIntentionInsertBefore/description.html @@ -0,0 +1,5 @@ + + +在当前列的左侧插入新的空列。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MarkdownRemoveColumnIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MarkdownRemoveColumnIntention/description.html new file mode 100644 index 000000000..f64b14a29 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MarkdownRemoveColumnIntention/description.html @@ -0,0 +1,5 @@ + + +移除当前列。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MarkdownRemoveRowIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MarkdownRemoveRowIntention/description.html new file mode 100644 index 000000000..9b83ba39c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MarkdownRemoveRowIntention/description.html @@ -0,0 +1,5 @@ + + +移除当前表格行。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MarkdownSetColumnAlignmentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MarkdownSetColumnAlignmentIntention/description.html new file mode 100644 index 000000000..49b4b5066 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MarkdownSetColumnAlignmentIntention/description.html @@ -0,0 +1,5 @@ + + +更新列对齐方式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MavenPluginSourcesMoveToBuild/description.html b/original-plugin-raw/zh/intentionDescriptions/MavenPluginSourcesMoveToBuild/description.html new file mode 100644 index 000000000..15646567c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MavenPluginSourcesMoveToBuild/description.html @@ -0,0 +1,5 @@ + + +将源目录从执行的配置移动到相应的构建源目录标记。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MavenPluginSourcesMoveToExecutionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MavenPluginSourcesMoveToExecutionIntention/description.html new file mode 100644 index 000000000..0ff476f30 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MavenPluginSourcesMoveToExecutionIntention/description.html @@ -0,0 +1,5 @@ + + +将源目录从构建源目录标记移动到相应的 kotlin-maven-plugin 执行的配置。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MergeCallSequenceToChainIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MergeCallSequenceToChainIntention/description.html new file mode 100644 index 000000000..f7a51972e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MergeCallSequenceToChainIntention/description.html @@ -0,0 +1,5 @@ + + +将两个连续方法调用语句与等效的方法调用链合并(可能会改变语义)。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MergeElseIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MergeElseIfIntention/description.html new file mode 100644 index 000000000..3a70b8913 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MergeElseIfIntention/description.html @@ -0,0 +1,5 @@ + + +

      如果 if-else 语句的 else 分支仅包含嵌套的 if-else 语句,则合并 else

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MergeFilterChainAction/description.html b/original-plugin-raw/zh/intentionDescriptions/MergeFilterChainAction/description.html new file mode 100644 index 000000000..bca640172 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MergeFilterChainAction/description.html @@ -0,0 +1,5 @@ + + +将 Stream.filter 调用链转换为一个带有合取条件的筛选器调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MergeIfAndIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MergeIfAndIntention/description.html new file mode 100644 index 000000000..b4b53c453 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MergeIfAndIntention/description.html @@ -0,0 +1,5 @@ + + +将另一个 if-else 的 then 分支中的 if-else 语句合并到一个 if-else 中。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MergeIfOrIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MergeIfOrIntention/description.html new file mode 100644 index 000000000..0b06d3566 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MergeIfOrIntention/description.html @@ -0,0 +1,5 @@ + + +将 if-else-if 语句合并为一个 if 语句(如果它们的主体相同)。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MergeIfToAndIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MergeIfToAndIntention/description.html new file mode 100644 index 000000000..0184dc812 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MergeIfToAndIntention/description.html @@ -0,0 +1,5 @@ + + +

      如果第二个语句位于第一个语句的 then 分支内,则将两个 if 语句合并为一个语句。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MergeIfToOrIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MergeIfToOrIntention/description.html new file mode 100644 index 000000000..746424cc0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MergeIfToOrIntention/description.html @@ -0,0 +1,5 @@ + + +

      if-else-if 语句合并为一个 if 语句,如果它们的主体相同。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MergeIfsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MergeIfsIntention/description.html new file mode 100644 index 000000000..3a0c98336 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MergeIfsIntention/description.html @@ -0,0 +1,5 @@ + + +将两个没有 else 分支的嵌套 if 语句合并为一个 if。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MergeNestedTryStatementsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MergeNestedTryStatementsIntention/description.html new file mode 100644 index 000000000..06c6135a8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MergeNestedTryStatementsIntention/description.html @@ -0,0 +1,5 @@ + + +如果第一个语句位于第二个内,则将两个 try-with-resources 语句合并为一个。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MergeParallelIfsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MergeParallelIfsIntention/description.html new file mode 100644 index 000000000..9b01cb11e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MergeParallelIfsIntention/description.html @@ -0,0 +1,6 @@ + + +如果条件相同,则合并连续的 if 语句。 +

      请注意,此意图可能会更改代码执行的顺序。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MergeTagsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MergeTagsIntention/description.html new file mode 100644 index 000000000..585dd3262 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MergeTagsIntention/description.html @@ -0,0 +1,5 @@ + + +将两个具有相同名称和特性的连续标记合并为一个标记。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ModifierToStatementIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ModifierToStatementIntention/description.html new file mode 100644 index 000000000..5c0676b57 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ModifierToStatementIntention/description.html @@ -0,0 +1,5 @@ + + +将 ifunless 单行修饰符替换为相应语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MoveBindingScopeToClassIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MoveBindingScopeToClassIntention/description.html new file mode 100644 index 000000000..1d78ecea6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MoveBindingScopeToClassIntention/description.html @@ -0,0 +1,5 @@ + + +将显式范围绑定移至绑定类。
      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MoveBindingToClassIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MoveBindingToClassIntention/description.html new file mode 100644 index 000000000..1a9412f36 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MoveBindingToClassIntention/description.html @@ -0,0 +1,5 @@ + + +将显式实现绑定移至绑定类。
      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MoveClassToNewFileIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MoveClassToNewFileIntention/description.html new file mode 100644 index 000000000..26c5cb746 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MoveClassToNewFileIntention/description.html @@ -0,0 +1,5 @@ + + +为同一目录中的 Groovy 类创建新文件并将类移至其中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MoveCommentToSeparateLineIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MoveCommentToSeparateLineIntention/description.html new file mode 100644 index 000000000..9e5fb3bc1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MoveCommentToSeparateLineIntention/description.html @@ -0,0 +1,5 @@ + + +将与代码位于同一行的注释上移为单独一行。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MoveInitializerToConstructorAction/description.html b/original-plugin-raw/zh/intentionDescriptions/MoveInitializerToConstructorAction/description.html new file mode 100644 index 000000000..d55f27869 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MoveInitializerToConstructorAction/description.html @@ -0,0 +1,5 @@ + + +将字段的初始化移动到合适的构造函数。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MoveInitializerToSetUpMethodAction/description.html b/original-plugin-raw/zh/intentionDescriptions/MoveInitializerToSetUpMethodAction/description.html new file mode 100644 index 000000000..68cb44597 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MoveInitializerToSetUpMethodAction/description.html @@ -0,0 +1,5 @@ + + +将字段初始化移动到合适的 setUp 方法。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/MoveIntoIfBranchesAction/description.html b/original-plugin-raw/zh/intentionDescriptions/MoveIntoIfBranchesAction/description.html new file mode 100644 index 000000000..543e2da7b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MoveIntoIfBranchesAction/description.html @@ -0,0 +1,6 @@ + + +将所选语句移动到前一个 if 语句的两个分支中。 +

      程序的语义被保留。 此操作可用作复杂重构的中间步骤。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MoveLambdaInsideParenthesesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MoveLambdaInsideParenthesesIntention/description.html new file mode 100644 index 000000000..fe6dd0625 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MoveLambdaInsideParenthesesIntention/description.html @@ -0,0 +1,5 @@ + + +将 lambda 表达式移到圆括号内。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MoveMemberOutOfCompanionObjectIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MoveMemberOutOfCompanionObjectIntention/description.html new file mode 100644 index 000000000..df4354bc1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MoveMemberOutOfCompanionObjectIntention/description.html @@ -0,0 +1,5 @@ + + +将伴生对象的成员移到相应的类。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MoveMemberToCompanionObjectIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MoveMemberToCompanionObjectIntention/description.html new file mode 100644 index 000000000..af1eccf6f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MoveMemberToCompanionObjectIntention/description.html @@ -0,0 +1,5 @@ + + +将类成员移到相应的伴生对象。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MoveMemberToTopLevelIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MoveMemberToTopLevelIntention/description.html new file mode 100644 index 000000000..6f6d42551 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MoveMemberToTopLevelIntention/description.html @@ -0,0 +1,5 @@ + + +将对象成员移到文件的顶层。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MovePropertyToClassBodyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MovePropertyToClassBodyIntention/description.html new file mode 100644 index 000000000..1b0281cb0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MovePropertyToClassBodyIntention/description.html @@ -0,0 +1,5 @@ + + +将属性从主构造函数移到类主体。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MovePropertyToConstructorIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MovePropertyToConstructorIntention/description.html new file mode 100644 index 000000000..3b5364818 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MovePropertyToConstructorIntention/description.html @@ -0,0 +1,5 @@ + + +将指定的属性移到主构造函数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/MoveProviderBindingToClassIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/MoveProviderBindingToClassIntention/description.html new file mode 100644 index 000000000..6da767f70 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/MoveProviderBindingToClassIntention/description.html @@ -0,0 +1,5 @@ + + +将显式提供程序绑定移至绑定类。
      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/NegateComparisonIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/NegateComparisonIntention/description.html new file mode 100644 index 000000000..9cdfb13bb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/NegateComparisonIntention/description.html @@ -0,0 +1,6 @@ + + +

      将布尔比较表达式 a op b 转换为 !( a negop b )。 + 其中 opnegop 是互逆的比较运算符,如 == 和 !=。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/NegateConditionalIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/NegateConditionalIntention/description.html new file mode 100644 index 000000000..411f37e57 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/NegateConditionalIntention/description.html @@ -0,0 +1,5 @@ + + +否定布尔条件表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/NewHashStyleToRocketIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/NewHashStyleToRocketIntention/description.html new file mode 100644 index 000000000..5ad07a31e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/NewHashStyleToRocketIntention/description.html @@ -0,0 +1,5 @@ + + +将哈希键从 Ruby1.9 语法转换为哈希火箭语法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/NullableBooleanEqualityCheckToElvisIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/NullableBooleanEqualityCheckToElvisIntention/description.html new file mode 100644 index 000000000..6a0274021 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/NullableBooleanEqualityCheckToElvisIntention/description.html @@ -0,0 +1,5 @@ + + +将可 null 布尔相等检查转换为 Elvis 运算符。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCAddParametersToConstructorIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCAddParametersToConstructorIntentionAction/description.html new file mode 100644 index 000000000..42cc6ca00 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCAddParametersToConstructorIntentionAction/description.html @@ -0,0 +1,5 @@ + + +向构造函数中添加形参和字段初始值设定项。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCAddParametersToInitWithIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCAddParametersToInitWithIntentionAction/description.html new file mode 100644 index 000000000..a51d8e85e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCAddParametersToInitWithIntentionAction/description.html @@ -0,0 +1,5 @@ + + +向实例变量的 initWith... 方法中添加形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCConvertIdToInstancetypeIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCConvertIdToInstancetypeIntentionAction/description.html new file mode 100644 index 000000000..fd9a3532a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCConvertIdToInstancetypeIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将 id 方法返回类型替换为类的实例类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCConvertIfToTernaryIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCConvertIfToTernaryIntentionAction/description.html new file mode 100644 index 000000000..1074ad38e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCConvertIfToTernaryIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将 if-else 语句替换为使用条件表达式的等效语句(如果可能)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCConvertTernaryToIfIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCConvertTernaryToIfIntentionAction/description.html new file mode 100644 index 000000000..166a6779a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCConvertTernaryToIfIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将条件表达式替换为等效 if-else 语句(如果可能)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCConvertToIvarIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCConvertToIvarIntentionAction/description.html new file mode 100644 index 000000000..0ea36f0b8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCConvertToIvarIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将属性及其所有用法转换为实例变量,并创建一个新实例变量(如果不存在)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCConvertToPropertyIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCConvertToPropertyIntentionAction/description.html new file mode 100644 index 000000000..0115a9d40 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCConvertToPropertyIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将实例变量及其所有用法转换为属性,并创建一个新属性(如果不存在)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCCreateMissingSwitchCasesIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCCreateMissingSwitchCasesIntentionAction/description.html new file mode 100644 index 000000000..bdd34fde7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCCreateMissingSwitchCasesIntentionAction/description.html @@ -0,0 +1,5 @@ + + +使用枚举类型作为 switch 表达式来生成 switch 语句缺失的 case 标签。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCDeMorganIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCDeMorganIntentionAction/description.html new file mode 100644 index 000000000..8e41b0a61 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCDeMorganIntentionAction/description.html @@ -0,0 +1,5 @@ + + +遵循德摩根定律将合取或析取运算替换为取反的对应运算。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/OCDeclareMethodInInterfaceIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCDeclareMethodInInterfaceIntentionAction/description.html new file mode 100644 index 000000000..93d91f8c9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCDeclareMethodInInterfaceIntentionAction/description.html @@ -0,0 +1,5 @@ + + +在类的接口部分中声明方法(如果尚未声明)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCDeclareMethodInPrivateCategoryIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCDeclareMethodInPrivateCategoryIntentionAction/description.html new file mode 100644 index 000000000..b82df8f4d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCDeclareMethodInPrivateCategoryIntentionAction/description.html @@ -0,0 +1,5 @@ + + +在实现的私有类别中声明方法(如果尚未声明)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCDeclarePropertyInPrivateCategoryIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCDeclarePropertyInPrivateCategoryIntentionAction/description.html new file mode 100644 index 000000000..453c10f22 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCDeclarePropertyInPrivateCategoryIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将属性拆分为两部分:第一部分 (readonly) 在接口中声明,第二部分 (readwrite) 在私有类别中声明。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCExtractCategoryIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCExtractCategoryIntentionAction/description.html new file mode 100644 index 000000000..2eb80363d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCExtractCategoryIntentionAction/description.html @@ -0,0 +1,5 @@ + + +为所选类创建一个新类别。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCExtractIfIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCExtractIfIntentionAction/description.html new file mode 100644 index 000000000..427914aef --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCExtractIfIntentionAction/description.html @@ -0,0 +1,5 @@ + + +从表达式中提取布尔条件,并将其放在 if 语句上。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCExtractPrivateCategoryIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCExtractPrivateCategoryIntentionAction/description.html new file mode 100644 index 000000000..68c44490f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCExtractPrivateCategoryIntentionAction/description.html @@ -0,0 +1,5 @@ + + +为所选类创建一个新私有类别。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCExtractProtocolIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCExtractProtocolIntentionAction/description.html new file mode 100644 index 000000000..9c8e84553 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCExtractProtocolIntentionAction/description.html @@ -0,0 +1,5 @@ + + +为所选接口或协议创建一个新协议。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCExtractSuperClassIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCExtractSuperClassIntentionAction/description.html new file mode 100644 index 000000000..c4eb96a35 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCExtractSuperClassIntentionAction/description.html @@ -0,0 +1,5 @@ + + +为所选接口创建一个新超类。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCFlipComparisonIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCFlipComparisonIntentionAction/description.html new file mode 100644 index 000000000..e4d4bf395 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCFlipComparisonIntentionAction/description.html @@ -0,0 +1,5 @@ + + +翻转比较表达式的操作数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCGenerateDefinitionsInlineIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCGenerateDefinitionsInlineIntentionAction/description.html new file mode 100644 index 000000000..3ea5d4074 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCGenerateDefinitionsInlineIntentionAction/description.html @@ -0,0 +1,5 @@ + + +生成函数声明的内联函数体(如果尚不存在)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCGenerateDefinitionsOutsideIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCGenerateDefinitionsOutsideIntentionAction/description.html new file mode 100644 index 000000000..4fe190c16 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCGenerateDefinitionsOutsideIntentionAction/description.html @@ -0,0 +1,5 @@ + + +生成函数声明的函数体(如果尚不存在)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCGeneratePropertyIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCGeneratePropertyIntentionAction/description.html new file mode 100644 index 000000000..5c1a1bcb7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCGeneratePropertyIntentionAction/description.html @@ -0,0 +1,5 @@ + + +生成实例变量的属性(如果尚不存在)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCImplementPropertyAccessorsIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCImplementPropertyAccessorsIntentionAction/description.html new file mode 100644 index 000000000..be91fe796 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCImplementPropertyAccessorsIntentionAction/description.html @@ -0,0 +1,5 @@ + + +生成属性的 getter 和 setter 方法(如果尚不存在)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCInlineMacroIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCInlineMacroIntentionAction/description.html new file mode 100644 index 000000000..6a8c94a02 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCInlineMacroIntentionAction/description.html @@ -0,0 +1,5 @@ + + +内联宏调用替换。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCIntroduceTypeDefIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCIntroduceTypeDefIntentionAction/description.html new file mode 100644 index 000000000..b4b3cebd1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCIntroduceTypeDefIntentionAction/description.html @@ -0,0 +1,5 @@ + + +引入 typedef 声明。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCInvertIfConditionIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCInvertIfConditionIntentionAction/description.html new file mode 100644 index 000000000..47b6397ab --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCInvertIfConditionIntentionAction/description.html @@ -0,0 +1,7 @@ + + +使用内部的反转条件将 if 语句替换为另一个 if 语句。 +
      +该意图对于简化使用多个嵌套 if 语句的复杂代码等操作可能很有用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCLocalizeStringIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCLocalizeStringIntentionAction/description.html new file mode 100644 index 000000000..34f7cb44c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCLocalizeStringIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将字符串文字替换为 NSLocalizedString,并为所有区域设置提供本地化。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCMergeElseIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/OCMergeElseIfIntention/description.html new file mode 100644 index 000000000..c6779c759 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCMergeElseIfIntention/description.html @@ -0,0 +1,5 @@ + + +如果 else 仅包含嵌套的 if-else 语句,则合并 if-else 语句的 else 分支。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCMergeIfAndIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/OCMergeIfAndIntention/description.html new file mode 100644 index 000000000..4fadbbc1d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCMergeIfAndIntention/description.html @@ -0,0 +1,5 @@ + + +将 if-else 语句与嵌套的 if-else 语句合并。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCMoveIvarsToImplementationIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCMoveIvarsToImplementationIntentionAction/description.html new file mode 100644 index 000000000..df4d5eab6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCMoveIvarsToImplementationIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将所有实例变量从接口移至实现。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCMoveToInterfaceIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCMoveToInterfaceIntentionAction/description.html new file mode 100644 index 000000000..8fbc94d68 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCMoveToInterfaceIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将方法和属性声明从私有类别移至接口。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCMoveToPrivateCategoryIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCMoveToPrivateCategoryIntentionAction/description.html new file mode 100644 index 000000000..4635d36f7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCMoveToPrivateCategoryIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将方法和属性声明从接口移至私有类别。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCRemoveSuppressionIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCRemoveSuppressionIntentionAction/description.html new file mode 100644 index 000000000..4c351279c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCRemoveSuppressionIntentionAction/description.html @@ -0,0 +1,5 @@ + + +移除用于禁止代码诊断的 #pragma 预处理程序语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCRemoveUnnecessaryParenthesesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/OCRemoveUnnecessaryParenthesesIntention/description.html new file mode 100644 index 000000000..daa598550 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCRemoveUnnecessaryParenthesesIntention/description.html @@ -0,0 +1,5 @@ + + +移除冗余圆括号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCReplaceTypeWithAutoIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCReplaceTypeWithAutoIntentionAction/description.html new file mode 100644 index 000000000..1a34c808c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCReplaceTypeWithAutoIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将显式指定的类型替换为 auto 关键字。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCSendToClingIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCSendToClingIntentionAction/description.html new file mode 100644 index 000000000..fd2dc887a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCSendToClingIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将当前行或所选代码段发送到 Cling。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCSingleStatementWithBracesIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCSingleStatementWithBracesIntentionAction/description.html new file mode 100644 index 000000000..151662350 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCSingleStatementWithBracesIntentionAction/description.html @@ -0,0 +1,5 @@ + + +从包含单条语句的 ifforwhiledo-while 语句中移除大括号。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/OCSplitDeclarationAndAssignmentIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCSplitDeclarationAndAssignmentIntentionAction/description.html new file mode 100644 index 000000000..153201f95 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCSplitDeclarationAndAssignmentIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将带初始值设定项的局部变量声明拆分成单独的变量声明和赋值语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCSplitFunctionIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCSplitFunctionIntentionAction/description.html new file mode 100644 index 000000000..746af62e4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCSplitFunctionIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将函数定义拆分成声明和定义,并将定义移至源文件(如果适用)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCSplitIntoSeparateDeclarationsIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCSplitIntoSeparateDeclarationsIntentionAction/description.html new file mode 100644 index 000000000..873de5a4e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCSplitIntoSeparateDeclarationsIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将声明或 @synthesize 语句拆分成单独的声明/语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCStatementWithoutBracesIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCStatementWithoutBracesIntentionAction/description.html new file mode 100644 index 000000000..8c52fc964 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCStatementWithoutBracesIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将 ifforwhiledo-while 语句的主体用大括号括起来。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/OCSurroundWithIfRespondsIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCSurroundWithIfRespondsIntentionAction/description.html new file mode 100644 index 000000000..b97959b2e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCSurroundWithIfRespondsIntentionAction/description.html @@ -0,0 +1,5 @@ + + +用 if 块环绕包含发送消息表达式的语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCSwitchPropertyDotMethodIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCSwitchPropertyDotMethodIntentionAction/description.html new file mode 100644 index 000000000..bd30286b1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCSwitchPropertyDotMethodIntentionAction/description.html @@ -0,0 +1,5 @@ + + +将属性用法的表示法从 '.' 切换到访问器方法,或者从访问器方法切换到 '.'。 它还可以处理未声明属性的类似于访问器的方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCSynthesizePropertyIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCSynthesizePropertyIntentionAction/description.html new file mode 100644 index 000000000..4b0fc602a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCSynthesizePropertyIntentionAction/description.html @@ -0,0 +1,5 @@ + + +为属性生成 @synthesize 语句和实例变量(如果尚不存在)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OCWrapStringIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OCWrapStringIntentionAction/description.html new file mode 100644 index 000000000..d3953dd2b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OCWrapStringIntentionAction/description.html @@ -0,0 +1,5 @@ + + +使用 stringWithFormat 消息包装字符串文字,以提供字符串的形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ObjectLiteralToLambdaIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ObjectLiteralToLambdaIntention/description.html new file mode 100644 index 000000000..fd222c8ff --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ObjectLiteralToLambdaIntention/description.html @@ -0,0 +1,5 @@ + + +将使用单一 abstract 方法实现 Java 接口的匿名对象文字转换为使用 lambda 表达式的调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ObjectsRequireNonNullIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ObjectsRequireNonNullIntention/description.html new file mode 100644 index 000000000..040e984e3 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ObjectsRequireNonNullIntention/description.html @@ -0,0 +1,5 @@ + + +转换变量读取访问,其中首先使用 @NonNull 注解、if 语句(抛出异常)或表达式(使用 java.util.Objects.requireNonNull() 调用)assert 语句检查变量是否为 null。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ObscureThrownExceptionsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ObscureThrownExceptionsIntention/description.html new file mode 100644 index 000000000..7467d5a0c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ObscureThrownExceptionsIntention/description.html @@ -0,0 +1,5 @@ + + +将 throws 子句中的几个异常替换为一个更通用的异常。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/OpenInHttpClientIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/OpenInHttpClientIntention/description.html new file mode 100644 index 000000000..cc2ad6fc9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OpenInHttpClientIntention/description.html @@ -0,0 +1,5 @@ + + + 打开 HTTP 客户端编辑器中文本光标处的 URL。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OpenInWebBrowserIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/OpenInWebBrowserIntention/description.html new file mode 100644 index 000000000..285cc0588 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OpenInWebBrowserIntention/description.html @@ -0,0 +1,5 @@ + + +在 Web 浏览器中打开完整 URL。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OpenSynFileIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/OpenSynFileIntention/description.html new file mode 100644 index 000000000..768a77b5c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OpenSynFileIntention/description.html @@ -0,0 +1,6 @@ + + +

      导航到扩展所有宏调用的相应文件。 仅适用于在编译文件。 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OperatorToFunctionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/OperatorToFunctionIntention/description.html new file mode 100644 index 000000000..219dd17bd --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OperatorToFunctionIntention/description.html @@ -0,0 +1,5 @@ + + +将重载运算符替换为函数调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OptionWithLiteralToSomeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/OptionWithLiteralToSomeIntention/description.html new file mode 100644 index 000000000..6de445f63 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OptionWithLiteralToSomeIntention/description.html @@ -0,0 +1,5 @@ + + +

      Option(Constant) 替换为 Some(Constant)

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/OverrideResourceAction/description.html b/original-plugin-raw/zh/intentionDescriptions/OverrideResourceAction/description.html new file mode 100644 index 000000000..351f24bc1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/OverrideResourceAction/description.html @@ -0,0 +1,5 @@ + + +此意图会将资源复制到一个新的资源文件夹,您可以使用更具体的限定符(如给定的区域设置、给定的屏幕方向等)来覆盖它。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PackageJsonInstallTypesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PackageJsonInstallTypesIntention/description.html new file mode 100644 index 000000000..8f41658d4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PackageJsonInstallTypesIntention/description.html @@ -0,0 +1,5 @@ + + +使用模块的 TypeScript 定义添加和安装依赖项。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ParseCustomBeanIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ParseCustomBeanIntention/description.html new file mode 100644 index 000000000..1027a8989 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ParseCustomBeanIntention/description.html @@ -0,0 +1,5 @@ + + +为所选标记运行 Spring XML 自定义 Bean 定义解析器以收集 Bean 定义,并用其提供更好的编码辅助。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PermuteArgumentsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PermuteArgumentsIntention/description.html new file mode 100644 index 000000000..0d182d02b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PermuteArgumentsIntention/description.html @@ -0,0 +1,5 @@ + + +

      重新排列实参以匹配声明方法形参的顺序。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpAddConstructorParametersIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpAddConstructorParametersIntention/description.html new file mode 100644 index 000000000..d25da7b5d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpAddConstructorParametersIntention/description.html @@ -0,0 +1,5 @@ + + +添加构造函数形参以初始化未初始化的属性。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpAddFluentSetterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpAddFluentSetterIntention/description.html new file mode 100644 index 000000000..d0faba011 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpAddFluentSetterIntention/description.html @@ -0,0 +1,5 @@ + + +为类属性生成 fluent setter 方法。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpAddGetterAndSetterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpAddGetterAndSetterIntention/description.html new file mode 100644 index 000000000..33d49019d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpAddGetterAndSetterIntention/description.html @@ -0,0 +1,5 @@ + + +为类属性生成 getter 和 setter 方法。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpAddGetterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpAddGetterIntention/description.html new file mode 100644 index 000000000..25e099290 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpAddGetterIntention/description.html @@ -0,0 +1,5 @@ + + +为类属性生成 getter 方法。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpAddNumberSeparatorsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpAddNumberSeparatorsIntention/description.html new file mode 100644 index 000000000..c9d2893bf --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpAddNumberSeparatorsIntention/description.html @@ -0,0 +1,7 @@ + + +向数值文字添加 PHP 7.4 数字分隔符 +对于十进制数字,每三位数字(千位)添加一个分隔符。 +否则,每四个数字加一个。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpAddSetterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpAddSetterIntention/description.html new file mode 100644 index 000000000..5a32fb9a0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpAddSetterIntention/description.html @@ -0,0 +1,5 @@ + + +为类属性生成 setter 方法。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpConvertConcatenationToInterpolationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpConvertConcatenationToInterpolationIntention/description.html new file mode 100644 index 000000000..045036e69 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpConvertConcatenationToInterpolationIntention/description.html @@ -0,0 +1,5 @@ + + +将字符串文字和简单表达式的串联转换为双引号引用的字符串插值。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpConvertConcatenationToSprintfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpConvertConcatenationToSprintfIntention/description.html new file mode 100644 index 000000000..c6df02e0c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpConvertConcatenationToSprintfIntention/description.html @@ -0,0 +1,5 @@ + + +将字符串文字和表达式的串联转换为 sprintf() 调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpConvertInterpolationToConcatenationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpConvertInterpolationToConcatenationIntention/description.html new file mode 100644 index 000000000..3936cf2a7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpConvertInterpolationToConcatenationIntention/description.html @@ -0,0 +1,5 @@ + + +将双引号引用的字符串插值转换为字符串文字和简单表达式的串联。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpConvertInterpolationToSprintfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpConvertInterpolationToSprintfIntention/description.html new file mode 100644 index 000000000..4816ea3ac --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpConvertInterpolationToSprintfIntention/description.html @@ -0,0 +1,5 @@ + + +将带双引号的字符串插值转换为对字符串文字和简单表达式的 sprintf() 调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpConvertShortArrowFunctionToClosureIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpConvertShortArrowFunctionToClosureIntention/description.html new file mode 100644 index 000000000..660b4689d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpConvertShortArrowFunctionToClosureIntention/description.html @@ -0,0 +1,5 @@ + + +将箭头函数转换为匿名函数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpConvertSprintfToConcatenationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpConvertSprintfToConcatenationIntention/description.html new file mode 100644 index 000000000..043c3e556 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpConvertSprintfToConcatenationIntention/description.html @@ -0,0 +1,5 @@ + + +将 sprintf() 调用转换为字符串文字和表达式的串联。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpConvertSprintfToInterpolationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpConvertSprintfToInterpolationIntention/description.html new file mode 100644 index 000000000..7b513eca1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpConvertSprintfToInterpolationIntention/description.html @@ -0,0 +1,5 @@ + + +将对字符串文字和简单表达式的 sprintf() 调用转换为带双引号的字符串插值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpConvertToShortArraySyntaxIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpConvertToShortArraySyntaxIntention/description.html new file mode 100644 index 000000000..9bae01116 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpConvertToShortArraySyntaxIntention/description.html @@ -0,0 +1,5 @@ + + +将传统数组定义语法(array())转换为短语([])。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpConvertToShortListSyntaxIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpConvertToShortListSyntaxIntention/description.html new file mode 100644 index 000000000..9dd5b0a79 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpConvertToShortListSyntaxIntention/description.html @@ -0,0 +1,5 @@ + + +将传统列表定义语法转换为短语。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpConvertToTraditionalArraySyntaxIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpConvertToTraditionalArraySyntaxIntention/description.html new file mode 100644 index 000000000..ca6ae475c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpConvertToTraditionalArraySyntaxIntention/description.html @@ -0,0 +1,5 @@ + + +将短数组定义语法([])转换为传统的(array())。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpConvertToTraditionalListSyntaxIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpConvertToTraditionalListSyntaxIntention/description.html new file mode 100644 index 000000000..0c72c24f8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpConvertToTraditionalListSyntaxIntention/description.html @@ -0,0 +1,5 @@ + + +将简短列表定义语法转换为传统语法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpCopyConcatenatedStringToClipboardIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpCopyConcatenatedStringToClipboardIntention/description.html new file mode 100644 index 000000000..07e7263d0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpCopyConcatenatedStringToClipboardIntention/description.html @@ -0,0 +1,5 @@ + + +将串联结果放入剪贴板。 动态表达式用 ? 代替。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpCopySwitchBranchIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpCopySwitchBranchIntention/description.html new file mode 100644 index 000000000..547aa10d1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpCopySwitchBranchIntention/description.html @@ -0,0 +1,5 @@ + + +将下一个 switch 分支的主体复制到当前分支。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpDeclareFieldIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpDeclareFieldIntention/description.html new file mode 100644 index 000000000..76e013842 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpDeclareFieldIntention/description.html @@ -0,0 +1,5 @@ + + +为在构造函数中动态声明的属性添加声明。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpDeclarePropertyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpDeclarePropertyIntention/description.html new file mode 100644 index 000000000..204940a5f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpDeclarePropertyIntention/description.html @@ -0,0 +1,5 @@ + + +在主题类的 PHPDoc 块中为在构造函数中动态声明的属性添加 @property 标签。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpExtractAttributeIntoSeparateListIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpExtractAttributeIntoSeparateListIntention/description.html new file mode 100644 index 000000000..cab7fe573 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpExtractAttributeIntoSeparateListIntention/description.html @@ -0,0 +1,5 @@ + + +将特性提取到单独的列表中。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpExtractConditionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpExtractConditionIntention/description.html new file mode 100644 index 000000000..6076fa2bd --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpExtractConditionIntention/description.html @@ -0,0 +1,5 @@ + + +将 if 条件表达式中的逻辑表达式的操作数提取到单独的外部条件表达式中。 因此,创建了两个嵌套的 if 条件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpExtractMatchConditionIntoSeparateArmIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpExtractMatchConditionIntoSeparateArmIntention/description.html new file mode 100644 index 000000000..78b1521e3 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpExtractMatchConditionIntoSeparateArmIntention/description.html @@ -0,0 +1,5 @@ + + +将条件提取到单独的 match arm 中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpExtractSelectedStringPartAsConcatenationOperandIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpExtractSelectedStringPartAsConcatenationOperandIntention/description.html new file mode 100644 index 000000000..9ef46e0fa --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpExtractSelectedStringPartAsConcatenationOperandIntention/description.html @@ -0,0 +1,5 @@ + + +将字符串文字替换为所选文本作为操作数的字符串串联。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpExtractSelectedStringPartAsFormatFunctionArgumentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpExtractSelectedStringPartAsFormatFunctionArgumentIntention/description.html new file mode 100644 index 000000000..f37a5b03d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpExtractSelectedStringPartAsFormatFunctionArgumentIntention/description.html @@ -0,0 +1,5 @@ + + +将所选的字符串部分替换为 %s,并将其移至新的格式函数实参中。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpFlipAttributesListsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpFlipAttributesListsIntention/description.html new file mode 100644 index 000000000..6c507244c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpFlipAttributesListsIntention/description.html @@ -0,0 +1,5 @@ + + +将特性列表与其后特性列表翻转。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpFlipBinaryExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpFlipBinaryExpressionIntention/description.html new file mode 100644 index 000000000..ce6b716a4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpFlipBinaryExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +翻转二进制表达式操作数。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpFlipTernaryExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpFlipTernaryExpressionIntention/description.html new file mode 100644 index 000000000..2381d2d72 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpFlipTernaryExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +反转 ?: 三元表达式,并添加/删除必要的分支。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpGenerateDocBlockIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpGenerateDocBlockIntention/description.html new file mode 100644 index 000000000..8f0275c0b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpGenerateDocBlockIntention/description.html @@ -0,0 +1,5 @@ + + +为函数、方法或属性生成 PHPDoc 块。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpGroupUseStatementsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpGroupUseStatementsIntention/description.html new file mode 100644 index 000000000..37306682f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpGroupUseStatementsIntention/description.html @@ -0,0 +1,5 @@ + + +将 use 语句按选定的前缀分组。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpHeredocToStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpHeredocToStringIntention/description.html new file mode 100644 index 000000000..62b487861 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpHeredocToStringIntention/description.html @@ -0,0 +1,5 @@ + + +用字符串文字替换 nowdoc/heredoc 文字。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpImplementInterfaceIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpImplementInterfaceIntention/description.html new file mode 100644 index 000000000..26db9bc60 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpImplementInterfaceIntention/description.html @@ -0,0 +1,5 @@ + + +创建一个实现接口的类。 在类中,它为接口中声明的方法生成存根。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpImplementMethodIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpImplementMethodIntention/description.html new file mode 100644 index 000000000..f5755d340 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpImplementMethodIntention/description.html @@ -0,0 +1,5 @@ + + +搜索所有可以实现所选接口方法的类,并在其中创建默认的方法实现。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpImportClassIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpImportClassIntention/description.html new file mode 100644 index 000000000..599471577 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpImportClassIntention/description.html @@ -0,0 +1,5 @@ + + +通过 use 运算符将类作为别名导入,并更新当前范围中所有现有完全合格的类引用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpInitializeFieldsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpInitializeFieldsIntention/description.html new file mode 100644 index 000000000..e4978abdf --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpInitializeFieldsIntention/description.html @@ -0,0 +1,5 @@ + + +在 __constructor() 中初始化所有的类属性。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpInjectLanguageIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpInjectLanguageIntention/description.html new file mode 100644 index 000000000..8ea03532c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpInjectLanguageIntention/description.html @@ -0,0 +1,5 @@ + + +添加一个带有 @lang 注解的 PHPDoc 块,以执行永久性语言注入。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpInlineAliasIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpInlineAliasIntention/description.html new file mode 100644 index 000000000..13701e4c9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpInlineAliasIntention/description.html @@ -0,0 +1,6 @@ + + +用初始名称替换别名的符号及其用法。 +在可能发生冲突的情况下,将删除导入并使用 FQN 代替。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpInlineMethodIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpInlineMethodIntention/description.html new file mode 100644 index 000000000..28229cb68 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpInlineMethodIntention/description.html @@ -0,0 +1,5 @@ + + +如果只有一种用法,则内联 private 方法。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpInvertIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpInvertIfIntention/description.html new file mode 100644 index 000000000..113b2fadd --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpInvertIfIntention/description.html @@ -0,0 +1,5 @@ + + +反转 if 条件,并添加/删除必要的分支。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpMakePrivateIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpMakePrivateIntention/description.html new file mode 100644 index 000000000..13cff0a0e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpMakePrivateIntention/description.html @@ -0,0 +1,5 @@ + + +将方法或属性设为 private。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpMakeProtectedIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpMakeProtectedIntention/description.html new file mode 100644 index 000000000..62d1a66b4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpMakeProtectedIntention/description.html @@ -0,0 +1,5 @@ + + +将方法或属性设为 protected。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpMakePublicIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpMakePublicIntention/description.html new file mode 100644 index 000000000..6c4222a4c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpMakePublicIntention/description.html @@ -0,0 +1,5 @@ + + +将方法或属性设为 public。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpMergeAttributeListsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpMergeAttributeListsIntention/description.html new file mode 100644 index 000000000..7af1a8dc6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpMergeAttributeListsIntention/description.html @@ -0,0 +1,5 @@ + + +将特性列表与其后特性列表合并。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpMergeElseIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpMergeElseIfIntention/description.html new file mode 100644 index 000000000..0a31ebaee --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpMergeElseIfIntention/description.html @@ -0,0 +1,5 @@ + + +将内部 if 条件表达式与父 else 合并,以创建新的 elseif 表达式。 内部条件的分支从 else 移到上层的 elseif。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpMergeNestedConditionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpMergeNestedConditionIntention/description.html new file mode 100644 index 000000000..fafaf727d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpMergeNestedConditionIntention/description.html @@ -0,0 +1,5 @@ + + +将两个嵌套的 if 条件合并为一个条件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpMergeWithOuterConditionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpMergeWithOuterConditionIntention/description.html new file mode 100644 index 000000000..5bb5ce8a6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpMergeWithOuterConditionIntention/description.html @@ -0,0 +1,5 @@ + + +将内部的 if 条件表达式与外部的条件表达式合并。 因此,创建了单个条件表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpNamespaceBracingIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpNamespaceBracingIntention/description.html new file mode 100644 index 000000000..53baf819e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpNamespaceBracingIntention/description.html @@ -0,0 +1,5 @@ + + +将名称空间定义从不带大括号(namespace \foo\bar;)转换为带大括号(namespace \foo\bar {})语法。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpNegateExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpNegateExpressionIntention/description.html new file mode 100644 index 000000000..219a29750 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpNegateExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +取反布尔和比较表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpNewTestIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpNewTestIntention/description.html new file mode 100644 index 000000000..781be71a1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpNewTestIntention/description.html @@ -0,0 +1,6 @@ + + +为选定的类生成测试用例。
      +生成的类包含所选公共方法的测试方法的存根。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpReplaceIfWithSwitchIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceIfWithSwitchIntention/description.html new file mode 100644 index 000000000..c3cdaf5f1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceIfWithSwitchIntention/description.html @@ -0,0 +1,5 @@ + + +将一系列 if-elseif-else 语句替换为同等的 switch 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpReplaceIfWithTernaryIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceIfWithTernaryIntention/description.html new file mode 100644 index 000000000..363637ccf --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceIfWithTernaryIntention/description.html @@ -0,0 +1,5 @@ + + +将 if 语句替换为三元表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpReplaceInArrayFunctionWithDisjunctionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceInArrayFunctionWithDisjunctionIntention/description.html new file mode 100644 index 000000000..b1d412318 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceInArrayFunctionWithDisjunctionIntention/description.html @@ -0,0 +1,12 @@ + + +将 in_array($needle, $haystack, $strict) 调用解开到相应的析取。 + +

      + 如果生成的析取是逻辑表达式的一部分,则会用圆括号括起来。 + 如果 $haystack 包含一个有副作用的元素,该元素将放入第一个等式表达式中。 + 如果 $haystack 包含多个有副作用的元素,则不建议采用此意图。 +

      + + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpReplaceNullableStandaloneTypeToUnionTypeWithNullIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceNullableStandaloneTypeToUnionTypeWithNullIntention/description.html new file mode 100644 index 000000000..3a9dee0df --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceNullableStandaloneTypeToUnionTypeWithNullIntention/description.html @@ -0,0 +1,6 @@ + + +此意图用作为联合类型一部分的 '|null' 代替了 '?'。
      +可为 null 的独立类型提示可以用联合类型提示来代替。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpReplaceQuotesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceQuotesIntention/description.html new file mode 100644 index 000000000..6b015565a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceQuotesIntention/description.html @@ -0,0 +1,5 @@ + + +在字符串文字中切换单引号和双引号。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpReplaceSwitchWithIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceSwitchWithIfIntention/description.html new file mode 100644 index 000000000..dbaa7c138 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceSwitchWithIfIntention/description.html @@ -0,0 +1,5 @@ + + +用等效的一系列 if-elseif-else 语句替换 switch 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpReplaceTernaryWithIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceTernaryWithIfIntention/description.html new file mode 100644 index 000000000..5de4aac96 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceTernaryWithIfIntention/description.html @@ -0,0 +1,5 @@ + + +将三元表达式替换为 if 语句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpReplaceUnionTypeWithNullToNullableStandaloneTypeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceUnionTypeWithNullToNullableStandaloneTypeIntention/description.html new file mode 100644 index 000000000..6c9985395 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceUnionTypeWithNullToNullableStandaloneTypeIntention/description.html @@ -0,0 +1,7 @@ + + +此意图用 '?' 代替了作为联合类型一部分的 '|null'。
      +联合类型提示由两个类型组成,其中一个是 'null', +可以用独立的可 null 类型提示来代替。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpReplaceWithAliasIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceWithAliasIntention/description.html new file mode 100644 index 000000000..50ede68e9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpReplaceWithAliasIntention/description.html @@ -0,0 +1,5 @@ + + +用您提供的别名替换文本光标处的符号及其用法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpSmartLineSplitIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpSmartLineSplitIntention/description.html new file mode 100644 index 000000000..d742efabe --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpSmartLineSplitIntention/description.html @@ -0,0 +1,5 @@ + + +将字符串文字拆分为两个串联的字符串文字。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpSplitElseIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpSplitElseIfIntention/description.html new file mode 100644 index 000000000..67392f5f4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpSplitElseIfIntention/description.html @@ -0,0 +1,5 @@ + + +将 elseif 分支拆分为等效的嵌套 else 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpSplitSelectedGroupUseStatementIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpSplitSelectedGroupUseStatementIntention/description.html new file mode 100644 index 000000000..ddaab8430 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpSplitSelectedGroupUseStatementIntention/description.html @@ -0,0 +1,5 @@ + + +拆分选定的成组 use 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpStringToHeredocIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpStringToHeredocIntention/description.html new file mode 100644 index 000000000..78f8017f6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpStringToHeredocIntention/description.html @@ -0,0 +1,5 @@ + + +字符串文字替换为 nowdoc/heredoc 文字。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpSurroundWithIssetIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpSurroundWithIssetIntention/description.html new file mode 100644 index 000000000..e6b1446e4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpSurroundWithIssetIntention/description.html @@ -0,0 +1,5 @@ + + +通过在变量使用之前插入 isset 来添加变量检查。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpSurroundWithNotEmptyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpSurroundWithNotEmptyIntention/description.html new file mode 100644 index 000000000..06a404f25 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpSurroundWithNotEmptyIntention/description.html @@ -0,0 +1,5 @@ + + +通过在变量使用之前插入 !empty 来添加变量检查。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpSwapCallArgumentsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpSwapCallArgumentsIntention/description.html new file mode 100644 index 000000000..b21d09e04 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpSwapCallArgumentsIntention/description.html @@ -0,0 +1,5 @@ + + +交换函数/方法调用的实参。 只有正好有两个形参的函数/方法的实参可以互换。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PhpVariableAddPhpDocCommentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PhpVariableAddPhpDocCommentIntention/description.html new file mode 100644 index 000000000..08ffa5d45 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PhpVariableAddPhpDocCommentIntention/description.html @@ -0,0 +1,5 @@ + + +将 PHPDoc 注释添加到变量。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PostfixPrefixIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PostfixPrefixIntention/description.html new file mode 100644 index 000000000..8e76c54d5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PostfixPrefixIntention/description.html @@ -0,0 +1,5 @@ + + +将后缀表达式替换为前缀表达式,反之亦然。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/PyAbsoluteToRelativeImportIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyAbsoluteToRelativeImportIntention/description.html new file mode 100644 index 000000000..77cb5e2ea --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyAbsoluteToRelativeImportIntention/description.html @@ -0,0 +1,11 @@ + + + +将绝对 from import 替换为相对 import。 + +
      + + 请注意,相对 import 仅适用于当前源根目录。 您无法相对导入另一个源根目录中的软件包。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyAnnotateTypesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyAnnotateTypesIntention/description.html new file mode 100644 index 000000000..c47a3ddc7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyAnnotateTypesIntention/description.html @@ -0,0 +1,15 @@ + + + + 指定函数的形参和返回类型的注解。 + +
      + + 如果有在运行时收集的类型信息,则使用此信息设置类型的默认值。 + +
      + + 参考 PEP-484 了解有关类型提示的详细信息。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyAnnotateVariableTypeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyAnnotateVariableTypeIntention/description.html new file mode 100644 index 000000000..ecb6bc843 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyAnnotateVariableTypeIntention/description.html @@ -0,0 +1,5 @@ + + +为变量添加 PEP 484 兼容格式的类型提示。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyConvertLambdaToFunctionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyConvertLambdaToFunctionIntention/description.html new file mode 100644 index 000000000..53b5dfcde --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyConvertLambdaToFunctionIntention/description.html @@ -0,0 +1,11 @@ + + + + 将 lambda 函数转换为函数定义语句。 + +
      + + 在您希望有包含名称的函数并为它指定一些 docstring 时,这项操作可能会有用。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyConvertLiteralToListIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyConvertLiteralToListIntention/description.html new file mode 100644 index 000000000..9c1303f09 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyConvertLiteralToListIntention/description.html @@ -0,0 +1,11 @@ + + + +将元组和集合文字设置为列表文字。 + +
      + +在检测到对元组的赋值时,IDE 建议执行此操作。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyConvertLiteralToSetIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyConvertLiteralToSetIntention/description.html new file mode 100644 index 000000000..191dc4862 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyConvertLiteralToSetIntention/description.html @@ -0,0 +1,7 @@ + + + + 将元组和列表文字转换为集合文字。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyConvertLiteralToTupleIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyConvertLiteralToTupleIntention/description.html new file mode 100644 index 000000000..61cabcfe0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyConvertLiteralToTupleIntention/description.html @@ -0,0 +1,7 @@ + + + + 将列表文字和集合文字转换为元组。 如果使用元组更符合应用程序的需要,则可以使用此意图操作。 例如在需要存储非同类值时。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyConvertMethodToPropertyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyConvertMethodToPropertyIntention/description.html new file mode 100644 index 000000000..96d05ccc2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyConvertMethodToPropertyIntention/description.html @@ -0,0 +1,5 @@ + + +将方法转换为属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyConvertStaticMethodToFunctionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyConvertStaticMethodToFunctionIntention/description.html new file mode 100644 index 000000000..47c6cbcf9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyConvertStaticMethodToFunctionIntention/description.html @@ -0,0 +1,7 @@ + + + +将 static 方法转换为函数。 如果方法无需访问类或其实例,则可以转换为函数。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyConvertToFStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyConvertToFStringIntention/description.html new file mode 100644 index 000000000..4f910ab97 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyConvertToFStringIntention/description.html @@ -0,0 +1,11 @@ + + + +此意图通过 format() 方法和格式运算符将字符串格式转换为 Python 3.6 f-string 文字。 + + + +F-string 提供了一种使用极少的语法将表达式嵌入字符串文字中的方式。 参见 PEP-498 中的详细信息。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyConvertTripleQuotedStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyConvertTripleQuotedStringIntention/description.html new file mode 100644 index 000000000..6a57aaabc --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyConvertTripleQuotedStringIntention/description.html @@ -0,0 +1,7 @@ + + + +将三引号引用的字符串转换为单引号引用的字符串。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyConvertTypeCommentToVariableAnnotationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyConvertTypeCommentToVariableAnnotationIntention/description.html new file mode 100644 index 000000000..41794aa6c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyConvertTypeCommentToVariableAnnotationIntention/description.html @@ -0,0 +1,7 @@ + + + +将 PEP-484 类型注释转换为 Python 3.6 变量注解。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyDemorganIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyDemorganIntention/description.html new file mode 100644 index 000000000..4a6669fb0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyDemorganIntention/description.html @@ -0,0 +1,14 @@ + + + +在布尔表达式中进行以下替换,来应用德摩根定律 +
      +a or b 替换为 not(not a and not b) 或者
      +a and b 替换为 not(not a or not b)
      +
      + + + + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyDictConstructorToLiteralFormIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyDictConstructorToLiteralFormIntention/description.html new file mode 100644 index 000000000..002022298 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyDictConstructorToLiteralFormIntention/description.html @@ -0,0 +1,7 @@ + + + + 将 dict 构造函数形式的翻译转换为 dict 文字形式。 在需要使用字典文字重写字典创建时,此意图可能很有用。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyDictLiteralFormToConstructorIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyDictLiteralFormToConstructorIntention/description.html new file mode 100644 index 000000000..1b151e751 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyDictLiteralFormToConstructorIntention/description.html @@ -0,0 +1,7 @@ + + + +将 dict 文字形式的翻译转换为 dict 构造函数。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyFlipComparisonIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyFlipComparisonIntention/description.html new file mode 100644 index 000000000..1e69abb7f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyFlipComparisonIntention/description.html @@ -0,0 +1,7 @@ + + + + 转置比较表达式的操作数。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyGenerateDocstringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyGenerateDocstringIntention/description.html new file mode 100644 index 000000000..73a0f43d8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyGenerateDocstringIntention/description.html @@ -0,0 +1,11 @@ + + + +生成 docstring 存根。 +
      + + 详细信息见 +使用意图操作为 Python 函数创建 docstring + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyInvertIfConditionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyInvertIfConditionIntention/description.html new file mode 100644 index 000000000..90154f8f7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyInvertIfConditionIntention/description.html @@ -0,0 +1,7 @@ + + + + 反转 if 条件分支。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyJoinIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyJoinIfIntention/description.html new file mode 100644 index 000000000..625176f9a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyJoinIfIntention/description.html @@ -0,0 +1,7 @@ + + + +将两个嵌套的 if 语句转换为一个包含合取运算的 if 语句。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyNegateComparisonIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyNegateComparisonIntention/description.html new file mode 100644 index 000000000..385401655 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyNegateComparisonIntention/description.html @@ -0,0 +1,8 @@ + + + + 此意图将布尔比较表达式 not(a negop b) 转换为 a op b。 + 其中 opnegop 为互逆比较运算符,如 ==!=。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyQuotedStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyQuotedStringIntention/description.html new file mode 100644 index 000000000..b46f90945 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyQuotedStringIntention/description.html @@ -0,0 +1,7 @@ + + + +将单引号引用的字符串转换为双引号引用的字符串,反之亦然。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyRelativeToAbsoluteImportIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyRelativeToAbsoluteImportIntention/description.html new file mode 100644 index 000000000..8648267d0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyRelativeToAbsoluteImportIntention/description.html @@ -0,0 +1,11 @@ + + + +此意图将相对的 from import 替换为绝对 import。 + +
      + + 请注意,相对 import 仅适用于当前源根目录。 您无法相对导入另一个源根目录中的软件包。 因此,如果 import 语句的当前位置可能更改,则首选绝对 import。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PySplitIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PySplitIfIntention/description.html new file mode 100644 index 000000000..c81c93291 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PySplitIfIntention/description.html @@ -0,0 +1,7 @@ + + + +将包含合取运算的 if 语句转换为两个包含简化条件的嵌套 if 语句。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyStringConcatenationToFormatIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyStringConcatenationToFormatIntention/description.html new file mode 100644 index 000000000..d373f6945 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyStringConcatenationToFormatIntention/description.html @@ -0,0 +1,7 @@ + + + +使用 str.format() 方法调用将字符串连接转换为等效的表达式。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyTransformConditionalExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyTransformConditionalExpressionIntention/description.html new file mode 100644 index 000000000..064477b04 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyTransformConditionalExpressionIntention/description.html @@ -0,0 +1,7 @@ + + + +将条件表达式转换为 if/else 语句。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/PyYieldFromIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/PyYieldFromIntention/description.html new file mode 100644 index 000000000..8f9ef630d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/PyYieldFromIntention/description.html @@ -0,0 +1,5 @@ + + +将带有 yield 的显式迭代转换为 yield from 表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/QuickEditAction/description.html b/original-plugin-raw/zh/intentionDescriptions/QuickEditAction/description.html new file mode 100644 index 000000000..d94bd2bd4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/QuickEditAction/description.html @@ -0,0 +1,5 @@ + + +在指定的编辑器中打开注入的片段,不进行外部语言转义和串联。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReactClassToFunctionComponentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReactClassToFunctionComponentIntention/description.html new file mode 100644 index 000000000..a99524b3a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReactClassToFunctionComponentIntention/description.html @@ -0,0 +1,6 @@ + + +将 React 类组件转换为无状态函数组件。 +要自定义生成的代码,请使用"编辑器 | 文件和代码模板" 中的 React 函数组件代码模板。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReactFunctionToClassComponentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReactFunctionToClassComponentIntention/description.html new file mode 100644 index 000000000..f3b178449 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReactFunctionToClassComponentIntention/description.html @@ -0,0 +1,6 @@ + + +将 React 的无状态函数组件转换为类组件。 +要自定义生成的代码,请使用"编辑器 | 文件和代码模板" 中的 React 类组件代码模板。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReactorFilterAndMapToHandleIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReactorFilterAndMapToHandleIntention/description.html new file mode 100644 index 000000000..9ccb95eef --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReactorFilterAndMapToHandleIntention/description.html @@ -0,0 +1,5 @@ + + +将 Publisher 中的 filter()map() 调用组合转换为单个 handle() 调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RearrangeAttributesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RearrangeAttributesIntention/description.html new file mode 100644 index 000000000..8b3143089 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RearrangeAttributesIntention/description.html @@ -0,0 +1,5 @@ + + +根据代码样式排列设置对标记特性重新排序。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReconstructTypeInCastOrIsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReconstructTypeInCastOrIsIntention/description.html new file mode 100644 index 000000000..358f6191a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReconstructTypeInCastOrIsIntention/description.html @@ -0,0 +1,5 @@ + + +将 as/as?/is/!is 右侧的缩短类型替换为其完整版本。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RedoParcelableAction/description.html b/original-plugin-raw/zh/intentionDescriptions/RedoParcelableAction/description.html new file mode 100644 index 000000000..0be4f8d76 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RedoParcelableAction/description.html @@ -0,0 +1,6 @@ + + +此意图会重新生成实现 Parcelable 所需的所有方法。
      +警告:您的自定义代码将被移除。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RegenerateTypeAnnotation/description.html b/original-plugin-raw/zh/intentionDescriptions/RegenerateTypeAnnotation/description.html new file mode 100644 index 000000000..238b69e0b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RegenerateTypeAnnotation/description.html @@ -0,0 +1,5 @@ + + +

      删除类型注解并添加新推断的类型注解。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/RelativePathToAbsolutePathIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RelativePathToAbsolutePathIntention/description.html new file mode 100644 index 000000000..f9578f9d0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RelativePathToAbsolutePathIntention/description.html @@ -0,0 +1,5 @@ + + +将 require 语句中的相对路径转换为绝对路径。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveApplyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveApplyIntention/description.html new file mode 100644 index 000000000..849c04560 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveApplyIntention/description.html @@ -0,0 +1,5 @@ + + +

      移除不必要的应用。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveArgumentNameIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveArgumentNameIntention/description.html new file mode 100644 index 000000000..cbece162d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveArgumentNameIntention/description.html @@ -0,0 +1,5 @@ + + +从命名实参中移除名称以使用位置实参语法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveAtFromAnnotationArgumentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveAtFromAnnotationArgumentIntention/description.html new file mode 100644 index 000000000..e8ddb5e63 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveAtFromAnnotationArgumentIntention/description.html @@ -0,0 +1,5 @@ + + +从本身就是注解实参的注解中移除不必要的 @。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveAttributeIntentionFix/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveAttributeIntentionFix/description.html new file mode 100644 index 000000000..ea73368c2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveAttributeIntentionFix/description.html @@ -0,0 +1,5 @@ + + +从标记中删除特性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveBracesFromAllBranchesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveBracesFromAllBranchesIntention/description.html new file mode 100644 index 000000000..5f50f3454 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveBracesFromAllBranchesIntention/description.html @@ -0,0 +1,5 @@ + + +从 if/when 的所有分支中移除大括号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveBracesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveBracesIntention/description.html new file mode 100644 index 000000000..63fa80fc7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveBracesIntention/description.html @@ -0,0 +1,2 @@ +

      删除 case 子句主体周围、单行方法主体周围、值定义周围或 if/else 分支周围的大括号。

      + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveConstructorKeywordIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveConstructorKeywordIntention/description.html new file mode 100644 index 000000000..7f8ed95cb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveConstructorKeywordIntention/description.html @@ -0,0 +1,5 @@ + + +移除主构造函数的冗余构造函数关键字。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveEmptyClassBodyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveEmptyClassBodyIntention/description.html new file mode 100644 index 000000000..30df71bcd --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveEmptyClassBodyIntention/description.html @@ -0,0 +1,5 @@ + + +移除空类主体。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveEmptyParenthesesFromLambdaCallIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveEmptyParenthesesFromLambdaCallIntention/description.html new file mode 100644 index 000000000..7352f8e7e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveEmptyParenthesesFromLambdaCallIntention/description.html @@ -0,0 +1,5 @@ + + +从函数调用中移除不必要的圆括号,其中唯一的形参是圆括号外的 lambda。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveEmptyPrimaryConstructorIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveEmptyPrimaryConstructorIntention/description.html new file mode 100644 index 000000000..2e6ca36ff --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveEmptyPrimaryConstructorIntention/description.html @@ -0,0 +1,5 @@ + + +当空主构造函数隐式可用时,将其移除。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveEmptySecondaryConstructorBodyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveEmptySecondaryConstructorBodyIntention/description.html new file mode 100644 index 000000000..6e47d3d8e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveEmptySecondaryConstructorBodyIntention/description.html @@ -0,0 +1,5 @@ + + +移除辅助构造函数的空体。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveExplicitLambdaParameterTypesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveExplicitLambdaParameterTypesIntention/description.html new file mode 100644 index 000000000..6a8961d75 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveExplicitLambdaParameterTypesIntention/description.html @@ -0,0 +1,5 @@ + + +移除 lambda 表达式中的显式形参类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveExplicitSuperQualifierIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveExplicitSuperQualifierIntention/description.html new file mode 100644 index 000000000..9bfb1b53d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveExplicitSuperQualifierIntention/description.html @@ -0,0 +1,5 @@ + + +从 super 表达式中移除冗余的父类型限定。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveExplicitTypeArgumentsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveExplicitTypeArgumentsIntention/description.html new file mode 100644 index 000000000..095c2ff9b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveExplicitTypeArgumentsIntention/description.html @@ -0,0 +1,5 @@ + + +当可以隐式推断时,从函数调用中移除类型实参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveExplicitTypeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveExplicitTypeIntention/description.html new file mode 100644 index 000000000..185788335 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveExplicitTypeIntention/description.html @@ -0,0 +1,5 @@ + + +移除局部值、变量、属性和函数的显式类型规范。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveForLoopIndicesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveForLoopIndicesIntention/description.html new file mode 100644 index 000000000..aced928fb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveForLoopIndicesIntention/description.html @@ -0,0 +1,5 @@ + + +从迭代集合的 for 循环中移除索引变量。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveLabeledReturnInLambdaIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveLabeledReturnInLambdaIntention/description.html new file mode 100644 index 000000000..c5ce618eb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveLabeledReturnInLambdaIntention/description.html @@ -0,0 +1,5 @@ + + +从 lambda 中的最后一个表达式中移除带标签的 return。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveParcelableAction/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveParcelableAction/description.html new file mode 100644 index 000000000..a457b71d7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveParcelableAction/description.html @@ -0,0 +1,6 @@ + + +移除实现 Parcelable 的方法和 CREATOR 对象。 +

      警告:您的自定义代码将被移除。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveParenthesesFromMethodCallIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveParenthesesFromMethodCallIntention/description.html new file mode 100644 index 000000000..73c2d28ba --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveParenthesesFromMethodCallIntention/description.html @@ -0,0 +1,5 @@ + + +将具有圆括号的方法调用转换为无圆括号的等效调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveRedundantCallsOfConversionMethodsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveRedundantCallsOfConversionMethodsIntention/description.html new file mode 100644 index 000000000..386c74740 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveRedundantCallsOfConversionMethodsIntention/description.html @@ -0,0 +1,5 @@ + + +移除转换方法的冗余调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveRedundantClassPropertyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveRedundantClassPropertyIntention/description.html new file mode 100644 index 000000000..2765262e2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveRedundantClassPropertyIntention/description.html @@ -0,0 +1,5 @@ + + +移除冗余的显式 .class 引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveRedundantElseIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveRedundantElseIntention/description.html new file mode 100644 index 000000000..fb768b11e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveRedundantElseIntention/description.html @@ -0,0 +1,5 @@ + + +

      对于 if 语句的 else 子句,如果相应的 then 子句从未成功完成,则该 <0>else 删除条款。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveSingleExpressionStringTemplateIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveSingleExpressionStringTemplateIntention/description.html new file mode 100644 index 000000000..50ea5a56f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveSingleExpressionStringTemplateIntention/description.html @@ -0,0 +1,5 @@ + + +将单表达式字符串模板替换为表达式本身,并在必要时添加 toString() 调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveTagAndPromoteChildrenIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveTagAndPromoteChildrenIntentionAction/description.html new file mode 100644 index 000000000..5af832683 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveTagAndPromoteChildrenIntentionAction/description.html @@ -0,0 +1,5 @@ + + +移除一个封闭的标签并提升其子项。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveUnderscoresFromNumericLiteralIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveUnderscoresFromNumericLiteralIntention/description.html new file mode 100644 index 000000000..396e6923d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveUnderscoresFromNumericLiteralIntention/description.html @@ -0,0 +1,5 @@ + + +从数值文字中移除下划线。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveUnnecessaryBracesInGStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveUnnecessaryBracesInGStringIntention/description.html new file mode 100644 index 000000000..e1dd0454b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveUnnecessaryBracesInGStringIntention/description.html @@ -0,0 +1,5 @@ + + +移除 GString 中不必要的大括号。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveUnnecessaryEscapeCharactersIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveUnnecessaryEscapeCharactersIntention/description.html new file mode 100644 index 000000000..993a4ae5f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveUnnecessaryEscapeCharactersIntention/description.html @@ -0,0 +1,5 @@ + + +从字符串移除不必要的转义字符。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveUnnecessaryParenthesesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveUnnecessaryParenthesesIntention/description.html new file mode 100644 index 000000000..53a947b63 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveUnnecessaryParenthesesIntention/description.html @@ -0,0 +1,6 @@ + + +

      从表达式中移除不必要的圆括号。 + 当禁用不必要的圆括号检查时,此功能可用。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RemoveUnnecessaryReturnIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RemoveUnnecessaryReturnIntention/description.html new file mode 100644 index 000000000..aaaffc43e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RemoveUnnecessaryReturnIntention/description.html @@ -0,0 +1,5 @@ + + +从返回语句移除不必要的 return 关键字。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RenameClassToContainingFileNameIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RenameClassToContainingFileNameIntention/description.html new file mode 100644 index 000000000..2b78323a3 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RenameClassToContainingFileNameIntention/description.html @@ -0,0 +1,5 @@ + + +将类的名称更改为包含文件的名称。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RenameClassToFileNameIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RenameClassToFileNameIntention/description.html new file mode 100644 index 000000000..66f1a7cb0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RenameClassToFileNameIntention/description.html @@ -0,0 +1,5 @@ + + +将类重命名为其包含文件的名称。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RenameFileToMatchClassIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RenameFileToMatchClassIntention/description.html new file mode 100644 index 000000000..ae5f81685 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RenameFileToMatchClassIntention/description.html @@ -0,0 +1,5 @@ + + +将文件的名称更改为顶级类的名称。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RenameFileWithClassIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RenameFileWithClassIntention/description.html new file mode 100644 index 000000000..d0af9d454 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RenameFileWithClassIntention/description.html @@ -0,0 +1,5 @@ + + +将文件重命名为其包含的类的名称。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceAbstractClassInstanceByMapIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceAbstractClassInstanceByMapIntention/description.html new file mode 100644 index 000000000..bb3f9051b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceAbstractClassInstanceByMapIntention/description.html @@ -0,0 +1,6 @@ + + +将匿名类转换为 Groovy 样式动态实例化。 + + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceAddWithPlusAssignIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceAddWithPlusAssignIntention/description.html new file mode 100644 index 000000000..6346c8a43 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceAddWithPlusAssignIntention/description.html @@ -0,0 +1,5 @@ + + +将可变集合中对 add()addAll() 的调用替换为 += 运算符。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceArmWithTryFinallyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceArmWithTryFinallyIntention/description.html new file mode 100644 index 000000000..835762606 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceArmWithTryFinallyIntention/description.html @@ -0,0 +1,6 @@ + + +将自动资源管理块替换为常规的 try finally 构造。 +

      如果 ARM 块没有 catch 部分,则替换整个块。 如果 ARM 确实有 catch 部分,则将其转换为普通的 try catch 块,并将 try finally 构造放在其中。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceAssertLiteralWithAssertEqualsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceAssertLiteralWithAssertEqualsIntention/description.html new file mode 100644 index 000000000..0ec593ab0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceAssertLiteralWithAssertEqualsIntention/description.html @@ -0,0 +1,5 @@ + + +将 JUnit assertTrue()assertFalse()assertNull() 方法调用替换为等效的 assertEquals()。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceAssignmentWithPostfixExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceAssignmentWithPostfixExpressionIntention/description.html new file mode 100644 index 000000000..f4699d83a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceAssignmentWithPostfixExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +将赋值表达式替换为等效的后缀增量或减量表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceCallWithUnaryOperatorIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceCallWithUnaryOperatorIntention/description.html new file mode 100644 index 000000000..640928425 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceCallWithUnaryOperatorIntention/description.html @@ -0,0 +1,5 @@ + + +将前缀成员调用(plusminusnot)替换为其各自的前缀运算符。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceCastWithVariableAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceCastWithVariableAction/description.html new file mode 100644 index 000000000..62b36a586 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceCastWithVariableAction/description.html @@ -0,0 +1,5 @@ + + +将类型转换表达式替换为具有相同值的现有局部变量。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceConcatenationWithFormatStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceConcatenationWithFormatStringIntention/description.html new file mode 100644 index 000000000..72ae897c0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceConcatenationWithFormatStringIntention/description.html @@ -0,0 +1,5 @@ + + +在适用的情况下,使用 java.lang.String.format()java.io.PrintStream.printf() 将字符串串联替换为等效的 Java 格式模式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceConcatenationWithStringBufferIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceConcatenationWithStringBufferIntention/description.html new file mode 100644 index 000000000..a493655d0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceConcatenationWithStringBufferIntention/description.html @@ -0,0 +1,5 @@ + + +将字符串 + 串联运算符替换为 StringBuilder.append()。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceConditionalWithBooleanExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceConditionalWithBooleanExpressionIntention/description.html new file mode 100644 index 000000000..edd7027c9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceConditionalWithBooleanExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +将条件表达式替换为等效的布尔表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceConstructorWithBuilderAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceConstructorWithBuilderAction/description.html new file mode 100644 index 000000000..16c95d824 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceConstructorWithBuilderAction/description.html @@ -0,0 +1,9 @@ + + +将构造函数调用替换为构建器模式。 +

      +类构造函数保持不变,但客户端能够逐步构造对象。 +

      +它对于具有一长串可选形参的构造函数特别有用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceConstructorWithFactoryAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceConstructorWithFactoryAction/description.html new file mode 100644 index 000000000..cda1b7125 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceConstructorWithFactoryAction/description.html @@ -0,0 +1,11 @@ + + +将构造函数调用替换为对工厂方法的调用。 +

      +由于工厂方法可以创建任何类型的对象,当不需要包含类的新实例时,此类替换尤其有用。 +

      +例如: +在当前类被扩展并应改为创建子类的对象时。 +或者当引入缓存并应返回现有对象时。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceContainsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceContainsIntention/description.html new file mode 100644 index 000000000..ecffd254a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceContainsIntention/description.html @@ -0,0 +1,5 @@ + + +将 contains 成员调用替换为 in 运算符。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceDoWhileLoopWithWhileLoopIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceDoWhileLoopWithWhileLoopIntention/description.html new file mode 100644 index 000000000..19985ebbd --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceDoWhileLoopWithWhileLoopIntention/description.html @@ -0,0 +1,5 @@ + + +将 do-while 循环替换为等效的 while 循环结构。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceDoWhileWithWhileIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceDoWhileWithWhileIntention/description.html new file mode 100644 index 000000000..c4dee9f50 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceDoWhileWithWhileIntention/description.html @@ -0,0 +1,5 @@ + + +

      用等效的 while 循环结构替换 do-while 循环。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceEqualsOrEqualityInInfixExprIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceEqualsOrEqualityInInfixExprIntention/description.html new file mode 100644 index 000000000..0775760f9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceEqualsOrEqualityInInfixExprIntention/description.html @@ -0,0 +1,5 @@ + + +

      在中缀表达式中用 equals 替换等式,反之亦然。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceEqualsOrEqualityInMethodCallExprIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceEqualsOrEqualityInMethodCallExprIntention/description.html new file mode 100644 index 000000000..5f078d650 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceEqualsOrEqualityInMethodCallExprIntention/description.html @@ -0,0 +1,5 @@ + + +

      在方法调用表达式中用等式替换 equals,反之亦然。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceExplicitFunctionLiteralParamWithItIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceExplicitFunctionLiteralParamWithItIntention/description.html new file mode 100644 index 000000000..039fe4618 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceExplicitFunctionLiteralParamWithItIntention/description.html @@ -0,0 +1,5 @@ + + +将单形参 lambda 表达式的显式形参替换为隐式 it 形参。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceExplicitTypeWithValIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceExplicitTypeWithValIntentionAction/description.html new file mode 100644 index 000000000..3aa63bfde --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceExplicitTypeWithValIntentionAction/description.html @@ -0,0 +1,6 @@ + + +报告具有可以改用 Lombok val 的显式类型的声明语句。 +

      适用于 Java<10。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceExplicitTypeWithVarIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceExplicitTypeWithVarIntentionAction/description.html new file mode 100644 index 000000000..3a03888d9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceExplicitTypeWithVarIntentionAction/description.html @@ -0,0 +1,6 @@ + + +报告具有可以改用 Lombok var 的显式类型的声明语句。 +

      适用于 Java<10。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceForEachLoopWithIndexedForLoopIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceForEachLoopWithIndexedForLoopIntention/description.html new file mode 100644 index 000000000..48f6da407 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceForEachLoopWithIndexedForLoopIntention/description.html @@ -0,0 +1,5 @@ + + +将迭代集合或数组的 for-each 循环替换为等效的 for 循环,该循环使用索引迭代集合或数组。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceForEachLoopWithIteratorForLoopIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceForEachLoopWithIteratorForLoopIntention/description.html new file mode 100644 index 000000000..75d8c38fe --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceForEachLoopWithIteratorForLoopIntention/description.html @@ -0,0 +1,5 @@ + + +将迭代集合的 for-each 循环替换为等效的 for 循环,该循环使用 java.util.Iterator 迭代集合。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceForEachLoopWithOptimizedIndexedForLoopIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceForEachLoopWithOptimizedIndexedForLoopIntention/description.html new file mode 100644 index 000000000..4ec9d2112 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceForEachLoopWithOptimizedIndexedForLoopIntention/description.html @@ -0,0 +1,5 @@ + + +将迭代集合或数组的 for-each 循环替换为等效的 for 循环,该循环使用索引迭代集合或数组并将大小或长度存储在局部变量里。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceFormatStringWithConcatenationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceFormatStringWithConcatenationIntention/description.html new file mode 100644 index 000000000..45d7209c5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceFormatStringWithConcatenationIntention/description.html @@ -0,0 +1,5 @@ + + +用字符串串联替换对 String.format() 的简单调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceIfWithTernaryIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceIfWithTernaryIntention/description.html new file mode 100644 index 000000000..19d5e9b3a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceIfWithTernaryIntention/description.html @@ -0,0 +1,5 @@ + + +将 if 语句替换为等效的三元运算。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceImplementsWithStaticImportAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceImplementsWithStaticImportAction/description.html new file mode 100644 index 000000000..f5704a85c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceImplementsWithStaticImportAction/description.html @@ -0,0 +1,5 @@ + + +从 implements (extends) 列表中移除一个类,其中包含从此类实现(重写)方法的所有方法。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceInvokeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceInvokeIntention/description.html new file mode 100644 index 000000000..70e6c5abe --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceInvokeIntention/description.html @@ -0,0 +1,5 @@ + + +将 invoke 成员调用替换为接收器调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceItWithExplicitFunctionLiteralParamIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceItWithExplicitFunctionLiteralParamIntention/description.html new file mode 100644 index 000000000..5529af340 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceItWithExplicitFunctionLiteralParamIntention/description.html @@ -0,0 +1,5 @@ + + +将 lambda 表达式中的隐式 it 形参替换为显式命名形参。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceListComprehensionWithForIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceListComprehensionWithForIntention/description.html new file mode 100644 index 000000000..f42f298a2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceListComprehensionWithForIntention/description.html @@ -0,0 +1,7 @@ + + + +将列表推导式替换为 for 循环。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceMapGetOrDefaultIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceMapGetOrDefaultIntention/description.html new file mode 100644 index 000000000..a4516fa75 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceMapGetOrDefaultIntention/description.html @@ -0,0 +1,5 @@ + + +将 map.getOrDefault(key, defaultValue) 函数调用替换为索引和 elvis 运算符 (map[key] ?: defaultValue)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceMultiplyWithShiftIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceMultiplyWithShiftIntention/description.html new file mode 100644 index 000000000..747524543 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceMultiplyWithShiftIntention/description.html @@ -0,0 +1,4 @@ + +将 2 的幂的乘法替换为整数移位运算符 <<。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceOctalEscapeWithUnicodeEscapeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceOctalEscapeWithUnicodeEscapeIntention/description.html new file mode 100644 index 000000000..8ad0525c3 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceOctalEscapeWithUnicodeEscapeIntention/description.html @@ -0,0 +1,5 @@ + + +将 Java 文件中的八进制转义序列替换为 Unicode 转义序列。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceOnDemandImportIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceOnDemandImportIntention/description.html new file mode 100644 index 000000000..0b5f865ee --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceOnDemandImportIntention/description.html @@ -0,0 +1,5 @@ + + +将按需 import 语句替换为等效的单类 import 语句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceOperatorAssignmentWithAssignmentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceOperatorAssignmentWithAssignmentIntention/description.html new file mode 100644 index 000000000..8a0c5bb8a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceOperatorAssignmentWithAssignmentIntention/description.html @@ -0,0 +1,5 @@ + + +将运算符赋值表达式替换为等效的普通赋值表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceOperatorAssignmentWithPostfixExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceOperatorAssignmentWithPostfixExpressionIntention/description.html new file mode 100644 index 000000000..7a537198e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceOperatorAssignmentWithPostfixExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +将递增或递减 intlong 的运算符赋值表达式替换为等效的后缀递增或递减表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplacePostfixExpressionWithAssignmentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplacePostfixExpressionWithAssignmentIntention/description.html new file mode 100644 index 000000000..a6ee81b3a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplacePostfixExpressionWithAssignmentIntention/description.html @@ -0,0 +1,5 @@ + + +将后缀增量或减量表达式替换为等效的赋值表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplacePostfixExpressionWithOperatorAssignmentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplacePostfixExpressionWithOperatorAssignmentIntention/description.html new file mode 100644 index 000000000..38bcd8d01 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplacePostfixExpressionWithOperatorAssignmentIntention/description.html @@ -0,0 +1,5 @@ + + +将后缀增量或减量表达式替换为等效的运算符赋值表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceShiftWithMultiplyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceShiftWithMultiplyIntention/description.html new file mode 100644 index 000000000..fcb133be2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceShiftWithMultiplyIntention/description.html @@ -0,0 +1,5 @@ + + +将整数移位运算符 << 替换为等效的乘法表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceSizeCheckWithIsNotEmptyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceSizeCheckWithIsNotEmptyIntention/description.html new file mode 100644 index 000000000..66cb0f367 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceSizeCheckWithIsNotEmptyIntention/description.html @@ -0,0 +1,5 @@ + + +将大小检查替换为 isNotEmpty() 调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceSizeZeroCheckWithIsEmptyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceSizeZeroCheckWithIsEmptyIntention/description.html new file mode 100644 index 000000000..23c86ee42 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceSizeZeroCheckWithIsEmptyIntention/description.html @@ -0,0 +1,5 @@ + + +将 size == 0 检查替换为 isEmpty() 调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceSwitchWithIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceSwitchWithIfIntention/description.html new file mode 100644 index 000000000..cfffa788a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceSwitchWithIfIntention/description.html @@ -0,0 +1,5 @@ + + +将 switch 语句替换为等效的一系列 if-else 语句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceTernaryWithIfElseIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceTernaryWithIfElseIntention/description.html new file mode 100644 index 000000000..b37d019c9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceTernaryWithIfElseIntention/description.html @@ -0,0 +1,5 @@ + + +用等效的 if-else 语句替换三元语句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceTypeCheckWithMatchIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceTypeCheckWithMatchIntention/description.html new file mode 100644 index 000000000..fc0b6c5db --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceTypeCheckWithMatchIntention/description.html @@ -0,0 +1,6 @@ + + +

      将一系列在条件中进行类型检查的 if-else 语句替换为模式匹配。 + 请注意,此操作可能会更改条件的执行顺序。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceUnderscoreWithParameterNameIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceUnderscoreWithParameterNameIntention/description.html new file mode 100644 index 000000000..a1021ca8a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceUnderscoreWithParameterNameIntention/description.html @@ -0,0 +1,5 @@ + + +为匿名形参命名。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceUntilWithRangeToIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceUntilWithRangeToIntention/description.html new file mode 100644 index 000000000..6f8bb0c36 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceUntilWithRangeToIntention/description.html @@ -0,0 +1,5 @@ + + +将对 until 的调用替换为 .. 运算符,并从上限中减去 1。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceValWithExplicitTypeIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceValWithExplicitTypeIntentionAction/description.html new file mode 100644 index 000000000..dc2545347 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceValWithExplicitTypeIntentionAction/description.html @@ -0,0 +1,5 @@ + + +报告具有可以改用显式类型的 val 的声明语句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceVarWithExplicitTypeIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceVarWithExplicitTypeIntentionAction/description.html new file mode 100644 index 000000000..4656a0c61 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceVarWithExplicitTypeIntentionAction/description.html @@ -0,0 +1,5 @@ + + +报告具有可以改用显式类型的 var 的声明语句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceWhileLoopWithDoWhileLoopIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceWhileLoopWithDoWhileLoopIntention/description.html new file mode 100644 index 000000000..65ed9938a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceWhileLoopWithDoWhileLoopIntention/description.html @@ -0,0 +1,5 @@ + + +将 -while 循环替换为等效的 do-while 循环结构。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceWhileWithDoWhileIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceWhileWithDoWhileIntention/description.html new file mode 100644 index 000000000..3445e5bd1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceWhileWithDoWhileIntention/description.html @@ -0,0 +1,5 @@ + + +

      用等效的 do-while 循环结构替换 -while 循环。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceWithArraysAsListIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceWithArraysAsListIntention/description.html new file mode 100644 index 000000000..268ad413e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceWithArraysAsListIntention/description.html @@ -0,0 +1,13 @@ + + +将 Collections.emptyList()Collections.singletonList() 调用替换为对 Arrays.asList() 的调用。 +

      当项目或模块使用语言级别 9 时:

      +
        +
      • 该意图将 Collections.emptyList()Collections.singletonList() 替换为对 java.util.List.of() 的调用。
      • +
      • Collections.emptySet()Collections.singleton() 调用替换为 java.util.Set.of()
      • +
      • Collections.emptyMap()Collections.singletonMap() 调用替换为 java.util.Map.of()
      • +
      +

      当项目或模块使用 Guava 库且语言级别为 9 或更低时,该意图会将 Collections.emptyList()Collections.singletonList() 调用替换为 com.google.common.collect.ImmutableListcom.google.common.collect.ImmutableSet 或 +com.google.common.collect.ImmutableMap

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceWithJavadocIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceWithJavadocIntention/description.html new file mode 100644 index 000000000..b4e3adfb5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceWithJavadocIntention/description.html @@ -0,0 +1,5 @@ + + +将属于字段、方法或类的常规注释转换为 Javadoc 注释。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceWithLombokAnnotationAction/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceWithLombokAnnotationAction/description.html new file mode 100644 index 000000000..838aafb98 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceWithLombokAnnotationAction/description.html @@ -0,0 +1,9 @@ + + +报告显式样板代码并建议用 Lombok 注解替换它。 +

      例如,它将显式方法访问器替换为 @Getter@Setter。 +

      + +

      目前,仅支持 @Getter@Setter 注解。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceWithMutableCollectionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceWithMutableCollectionIntention/description.html new file mode 100644 index 000000000..8da76a512 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceWithMutableCollectionIntention/description.html @@ -0,0 +1,5 @@ + + +将创建可变集合的方法替换为创建不可变集合的方法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceWithOrdinaryAssignmentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceWithOrdinaryAssignmentIntention/description.html new file mode 100644 index 000000000..28fa85983 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceWithOrdinaryAssignmentIntention/description.html @@ -0,0 +1,5 @@ + + +使用对分隔赋值和运算符的表达式的增强赋值来修改表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReplaceWithXslAttribute/description.html b/original-plugin-raw/zh/intentionDescriptions/ReplaceWithXslAttribute/description.html new file mode 100644 index 000000000..683b0a454 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReplaceWithXslAttribute/description.html @@ -0,0 +1,9 @@ + + +提取文字结果元素的特性并将其转换为 xsl:attributee 指令。 + +

      + 由 XPathView + XSLT-Support 提供技术支持 +

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ReverseForLoopDirectionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ReverseForLoopDirectionIntention/description.html new file mode 100644 index 000000000..8e0c44e8c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ReverseForLoopDirectionIntention/description.html @@ -0,0 +1,5 @@ + + +反转 for 循环的遍历顺序。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/RollbackCurrentLineIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RollbackCurrentLineIntention/description.html new file mode 100644 index 000000000..8addfc924 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RollbackCurrentLineIntention/description.html @@ -0,0 +1,7 @@ + + +回滚当前行中做出的本地未提交变更。 +此操作类似于编辑器间距中可以进行的回滚行操作。 +如果在编辑器中选择了片段,该操作将回滚所选片段内的所有变更。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyAddAttrAccessorIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyAddAttrAccessorIntention/description.html new file mode 100644 index 000000000..9b6f10101 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyAddAttrAccessorIntention/description.html @@ -0,0 +1,16 @@ + + +为实例变量创建 attr_accessor 声明。 attr_accessor 是定义读取器和写入器方法的语法糖,它相当于编写以下内容: +
      
      +class Foo
      +  def foo
      +    @foo
      +  end
      +
      +  def foo=(foo)
      +    @foo = foo
      +  end
      +end
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyAddAttrReaderIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyAddAttrReaderIntention/description.html new file mode 100644 index 000000000..217555401 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyAddAttrReaderIntention/description.html @@ -0,0 +1,12 @@ + + +为实例变量创建 attr_reader 声明。 attr_reader 是定义读取器方法的语法糖,它相当于编写以下内容: +
      
      +class Foo
      +  def foo
      +    @foo
      +  end
      +end
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyAddAttrWriterIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyAddAttrWriterIntention/description.html new file mode 100644 index 000000000..68ae39eb7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyAddAttrWriterIntention/description.html @@ -0,0 +1,12 @@ + + +为实例变量创建 attr_writer 声明。 attr_writer 是定义写入器方法的语法糖,它相当于编写以下内容: +
      
      +class Foo
      +  def foo=(foo)
      +    @foo = foo
      +  end
      +end
      +
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyAddClarifyingParenthesesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyAddClarifyingParenthesesIntention/description.html new file mode 100644 index 000000000..34d5a0e83 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyAddClarifyingParenthesesIntention/description.html @@ -0,0 +1,6 @@ + + +将圆括号添加到链接多个运算符的有可能不明确的表达式中。 +

      圆括号有助于提高代码可读性,因为并非每个开发人员都熟悉每个运算符的优先级。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyAddUnderscoresToNumberIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyAddUnderscoresToNumberIntention/description.html new file mode 100644 index 000000000..a6ac50d61 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyAddUnderscoresToNumberIntention/description.html @@ -0,0 +1,5 @@ + + +为数值文字添加下划线以提高可读性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyConvertNamedParametersToNumberedIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyConvertNamedParametersToNumberedIntention/description.html new file mode 100644 index 000000000..1bca87d66 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyConvertNamedParametersToNumberedIntention/description.html @@ -0,0 +1,5 @@ + + +将块内的命名形参转换为编号形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyConvertNumberedParametersToNamedIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyConvertNumberedParametersToNamedIntention/description.html new file mode 100644 index 000000000..2e986f941 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyConvertNumberedParametersToNamedIntention/description.html @@ -0,0 +1,5 @@ + + +将块内的编号形参转换为命名形参。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyExpandLazyI18nKeyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyExpandLazyI18nKeyIntention/description.html new file mode 100644 index 000000000..b9cde48a8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyExpandLazyI18nKeyIntention/description.html @@ -0,0 +1,5 @@ + + +将 lazy i18n 键(以 . 开头的键)扩展为其完全限定形式。 如果一个键有多种完全限定形式,则要求用户选择一种形式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyExpandNamespaceIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyExpandNamespaceIntention/description.html new file mode 100644 index 000000000..e1e698876 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyExpandNamespaceIntention/description.html @@ -0,0 +1,6 @@ + + +将限定的类/模块声明的限定符替换为模块,从而扩展其命名空间。 +

      请注意,将模块作为命名空间使用会改变内部的嵌套,也会改变常量查找的工作方式。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyExtractBlockToMethodIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyExtractBlockToMethodIntention/description.html new file mode 100644 index 000000000..571bce4d0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyExtractBlockToMethodIntention/description.html @@ -0,0 +1,5 @@ + + +将块提取到方法,并将其用法替换为方法引用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyFlattenNamespaceIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyFlattenNamespaceIntention/description.html new file mode 100644 index 000000000..8e3b2bdc8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyFlattenNamespaceIntention/description.html @@ -0,0 +1,6 @@ + + +通过将其外部模块替换为限定的常量名称,平展类/模块声明的命名空间。 +

      请注意,将模块作为命名空间移除会改变内部的嵌套,也会改变常量查找的工作方式。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyFlipExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyFlipExpressionIntention/description.html new file mode 100644 index 000000000..8af1352b9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyFlipExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +翻转二进制表达式,试图在可能的情况下维持语义。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyFlipTernaryIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyFlipTernaryIntention/description.html new file mode 100644 index 000000000..70f23caef --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyFlipTernaryIntention/description.html @@ -0,0 +1,7 @@ + + +翻转三元表达式 (?:) 否定条件并彼此切换分支。 +

      这对于提高代码可读性可能有用,例如,确保为肯定条件或重要分支 +优先。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyI18nChangePreviewLocaleIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyI18nChangePreviewLocaleIntention/description.html new file mode 100644 index 000000000..62e0b46d8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyI18nChangePreviewLocaleIntention/description.html @@ -0,0 +1,5 @@ + + +更改所有 i18n 翻译的预览区域设置。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyInlineLocalVariableIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyInlineLocalVariableIntention/description.html new file mode 100644 index 000000000..cbe4b6056 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyInlineLocalVariableIntention/description.html @@ -0,0 +1,5 @@ + + +内联只有一种用法的局部变量。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyIntroduceLocalVariableIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyIntroduceLocalVariableIntention/description.html new file mode 100644 index 000000000..7eb6d0806 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyIntroduceLocalVariableIntention/description.html @@ -0,0 +1,9 @@ + + +将当前表达式提取为新的局部变量。 如果当前表达式是语句,则将局部变量放在同一行, +如果是返回值,则放在前一行。 + +

      该意图仅适用于在文件或方法声明中用作语句的表达式,以及用作 +返回值的表达式。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyInvertIfElseIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyInvertIfElseIntention/description.html new file mode 100644 index 000000000..29ae9c19c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyInvertIfElseIntention/description.html @@ -0,0 +1,7 @@ + + +反转 if 语句否定条件并彼此切换分支。 +

      这对于提高代码可读性可能有用,例如,确保为肯定条件或重要分支 +优先。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyMergeElseIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyMergeElseIfIntention/description.html new file mode 100644 index 000000000..48a241d2c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyMergeElseIfIntention/description.html @@ -0,0 +1,5 @@ + + +当分支中包含单个嵌套的 if 语句时,将 if 语句的 else 分支合并为 elsif。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyMergeNestedIfsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyMergeNestedIfsIntention/description.html new file mode 100644 index 000000000..9b255b374 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyMergeNestedIfsIntention/description.html @@ -0,0 +1,7 @@ + + +将两个嵌套的 if 语句合并为一个, +前提是第一个 if 语句中没有 +elsifelse 分支。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyMergeSequentialIfsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyMergeSequentialIfsIntention/description.html new file mode 100644 index 000000000..b6ebc92e1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyMergeSequentialIfsIntention/description.html @@ -0,0 +1,5 @@ + + +使用析取将两个连续的 if 分支合并为一个,前提是它们的代码体相同。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyPrependCurrentDirToPathIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyPrependCurrentDirToPathIntention/description.html new file mode 100644 index 000000000..9aeeb64dc --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyPrependCurrentDirToPathIntention/description.html @@ -0,0 +1,5 @@ + + +将当前目录 (File.dirname(FILE)) 前置到 require 语句路径。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyRemoveUnderscoresFromNumberIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyRemoveUnderscoresFromNumberIntention/description.html new file mode 100644 index 000000000..5cacaecda --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyRemoveUnderscoresFromNumberIntention/description.html @@ -0,0 +1,5 @@ + + +移除数值文字中的下划线,使之恢复为正常形式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyRemoveUnnecessaryParenthesesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyRemoveUnnecessaryParenthesesIntention/description.html new file mode 100644 index 000000000..5b60c2073 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyRemoveUnnecessaryParenthesesIntention/description.html @@ -0,0 +1,6 @@ + + +移除表达式周围不必要的圆括号。 +

      如果移除圆括号不影响语义,则认为不必使用这些圆括号。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyReplaceWithBlockCommentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyReplaceWithBlockCommentIntention/description.html new file mode 100644 index 000000000..3deb557b5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyReplaceWithBlockCommentIntention/description.html @@ -0,0 +1,5 @@ + + +将连续的行注释替换为单个块注释。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubyReplaceWithLineCommentsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubyReplaceWithLineCommentsIntention/description.html new file mode 100644 index 000000000..9a2f1c882 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubyReplaceWithLineCommentsIntention/description.html @@ -0,0 +1,5 @@ + + +将单个块注释替换为连续行注释。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubySortHashByKeysIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubySortHashByKeysIntention/description.html new file mode 100644 index 000000000..3c8f75c07 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubySortHashByKeysIntention/description.html @@ -0,0 +1,5 @@ + + +按键对哈希条目进行排序。 字符串和符号按词典顺序排序,数字按降序排序。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubySplitConditionIntoMultipleIfsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubySplitConditionIntoMultipleIfsIntention/description.html new file mode 100644 index 000000000..0f7482633 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubySplitConditionIntoMultipleIfsIntention/description.html @@ -0,0 +1,9 @@ + + +将合取或析取条件拆分为多个 if 语句。 +

      合取条件拆分为两个嵌套的 if,析取条件拆分为两个包含重复块的序列 +if

      +

      将一个条件拆分为多个 if 语句可能对条件变得太大时改善可读性有用, +或者在需要更改条件时对编辑有用。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RubySplitElsifIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/RubySplitElsifIntention/description.html new file mode 100644 index 000000000..9104f7a8c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RubySplitElsifIntention/description.html @@ -0,0 +1,5 @@ + + +将 if 语句的 elsif 分支拆分为嵌套的 else if。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/RunQueryInConsoleIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/RunQueryInConsoleIntentionAction/description.html new file mode 100644 index 000000000..00ad47aba --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/RunQueryInConsoleIntentionAction/description.html @@ -0,0 +1,6 @@ + + +打开查询控制台并执行所选查询。 适用于 Hibernate、JPA 和其他持久性框架。 +

      此意图操作还会将当前编辑器附加到查询控制台。 因此,您可以使用执行操作直接从代码运行查询,而无需切换到查询控制台本身。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SafeAccessToIfThenIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SafeAccessToIfThenIntention/description.html new file mode 100644 index 000000000..f4c1ca7df --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SafeAccessToIfThenIntention/description.html @@ -0,0 +1,5 @@ + + +将使用安全访问运算符 (?.) 的表达式转换为 if 表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SafeNavigationToMultipleIfsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SafeNavigationToMultipleIfsIntention/description.html new file mode 100644 index 000000000..9759cafcb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SafeNavigationToMultipleIfsIntention/description.html @@ -0,0 +1,5 @@ + + +将安全导航运算符 (&.) 的用法替换为嵌套的 nil 检查。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SafeNavigationToOneChainedExprIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SafeNavigationToOneChainedExprIntention/description.html new file mode 100644 index 000000000..d93bd76b2 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SafeNavigationToOneChainedExprIntention/description.html @@ -0,0 +1,5 @@ + + +将安全导航运算符 (&.) 的用法替换为链式调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SamConversionToAnonymousObjectIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SamConversionToAnonymousObjectIntention/description.html new file mode 100644 index 000000000..93d66dc27 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SamConversionToAnonymousObjectIntention/description.html @@ -0,0 +1,5 @@ + + +将 SAM 转换转换为匿名对象。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ScenarioToOutlineIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ScenarioToOutlineIntention/description.html new file mode 100644 index 000000000..0c7487f8d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ScenarioToOutlineIntention/description.html @@ -0,0 +1,5 @@ + + +将 Cucumber Scenario 转换为 Scenario Outline。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ScratchFromSelectionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ScratchFromSelectionIntention/description.html new file mode 100644 index 000000000..bf14bf027 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ScratchFromSelectionIntention/description.html @@ -0,0 +1,5 @@ + + +从所选片段创建新的临时文件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SealClassAction/description.html b/original-plugin-raw/zh/intentionDescriptions/SealClassAction/description.html new file mode 100644 index 000000000..45fd75741 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SealClassAction/description.html @@ -0,0 +1,7 @@ + + +如果一个类没有子类,则使该类成为 final。 +

      如果有子类,则意图将类转换为 sealed 类,并在 permits 子句中提供其子类的列表(用于其他编译单元中的子类)。 + 如果子类没有标记为 sealed / non-sealed / finalnon-sealed 修饰符会自动应用于他们。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ShExplainShellIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ShExplainShellIntention/description.html new file mode 100644 index 000000000..6209cd4a5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ShExplainShellIntention/description.html @@ -0,0 +1,5 @@ + + +利用 ExplainShell.com 的帮助解释特定命令的含义 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ShRenameAllOccurrencesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ShRenameAllOccurrencesIntention/description.html new file mode 100644 index 000000000..0b6b19173 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ShRenameAllOccurrencesIntention/description.html @@ -0,0 +1,5 @@ + + +重命名整个文件中文本光标下的文本匹配项。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SimplifyBooleanExprWithLiteralIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SimplifyBooleanExprWithLiteralIntention/description.html new file mode 100644 index 000000000..d0f8e8a5c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SimplifyBooleanExprWithLiteralIntention/description.html @@ -0,0 +1,5 @@ + + +

      简化包含布尔文字 “true” 或 “false” 的布尔表达式。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SimplifyBooleanExpressionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/SimplifyBooleanExpressionAction/description.html new file mode 100644 index 000000000..f7e293f8c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SimplifyBooleanExpressionAction/description.html @@ -0,0 +1,5 @@ + + +使用布尔文字简化表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SimplifyBooleanWithConstantsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SimplifyBooleanWithConstantsIntention/description.html new file mode 100644 index 000000000..dac7978b6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SimplifyBooleanWithConstantsIntention/description.html @@ -0,0 +1,5 @@ + + +简化其部分内容能够缩减为常量的布尔表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SimplifyTernaryOperatorIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SimplifyTernaryOperatorIntention/description.html new file mode 100644 index 000000000..db2eee955 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SimplifyTernaryOperatorIntention/description.html @@ -0,0 +1,6 @@ + + +当分支之一为常量 true 或 false 时,简化条件运算符 ?:。 +

      因此,a ? b : false 将变成 a && b and a ? true : b 将变成 a || b

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SomeToOptionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SomeToOptionIntention/description.html new file mode 100644 index 000000000..618241786 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SomeToOptionIntention/description.html @@ -0,0 +1,5 @@ + + +

      Some(a) 替换为 Option(a)

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SortContentAction/description.html b/original-plugin-raw/zh/intentionDescriptions/SortContentAction/description.html new file mode 100644 index 000000000..b05cc4469 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SortContentAction/description.html @@ -0,0 +1,8 @@ + + +对数组和 vararg 的内容进行排序。 + +

      此意图对文字(int 和 string)和枚举常量进行排序。

      +

      它试图保留行上的表达式数量,但在注释的情况下并不总是可能的。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SpecifyExplicitLambdaSignatureIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SpecifyExplicitLambdaSignatureIntention/description.html new file mode 100644 index 000000000..ba8c4d715 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SpecifyExplicitLambdaSignatureIntention/description.html @@ -0,0 +1,5 @@ + + +显式指定 lambda 表达式中形参的类型、接收器和返回类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SpecifyTypeExplicitlyInDestructuringAssignmentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SpecifyTypeExplicitlyInDestructuringAssignmentIntention/description.html new file mode 100644 index 000000000..289a82a7c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SpecifyTypeExplicitlyInDestructuringAssignmentIntention/description.html @@ -0,0 +1,5 @@ + + +在析构声明中显式指定所有类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SpecifyTypeExplicitlyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SpecifyTypeExplicitlyIntention/description.html new file mode 100644 index 000000000..927c12faa --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SpecifyTypeExplicitlyIntention/description.html @@ -0,0 +1,5 @@ + + +显式指定局部值、变量、属性和函数的类型。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SpecifyTypeInDocstringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SpecifyTypeInDocstringIntention/description.html new file mode 100644 index 000000000..02fa420c7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SpecifyTypeInDocstringIntention/description.html @@ -0,0 +1,7 @@ + + + +指定 docstring 中表达式的类型。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SpecifyTypeInPy3AnnotationsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SpecifyTypeInPy3AnnotationsIntention/description.html new file mode 100644 index 000000000..ea55bea8b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SpecifyTypeInPy3AnnotationsIntention/description.html @@ -0,0 +1,7 @@ + + + +使用类型注解指定 Python 3 中表达式的类型。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SplitDeclarationAction/description.html b/original-plugin-raw/zh/intentionDescriptions/SplitDeclarationAction/description.html new file mode 100644 index 000000000..eb9c7fcf7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SplitDeclarationAction/description.html @@ -0,0 +1,5 @@ + + +将带初始值设定项的局部变量声明转换为单独的变量声明和赋值语句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SplitDeclarationAndInitializationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SplitDeclarationAndInitializationIntention/description.html new file mode 100644 index 000000000..a3fee4280 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SplitDeclarationAndInitializationIntention/description.html @@ -0,0 +1,5 @@ + + +将带有初始化的字段声明拆分为一个声明和一个初始化程序块。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SplitElseIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SplitElseIfIntention/description.html new file mode 100644 index 000000000..854022153 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SplitElseIfIntention/description.html @@ -0,0 +1,5 @@ + + +

      拆分 if-else 语句的 else 分支。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SplitFilterAction/description.html b/original-plugin-raw/zh/intentionDescriptions/SplitFilterAction/description.html new file mode 100644 index 000000000..8671a5dcf --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SplitFilterAction/description.html @@ -0,0 +1,5 @@ + + +将 stream.filter(s -> a && b) 表达式转换为两个链式筛选器调用。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SplitIfAction/description.html b/original-plugin-raw/zh/intentionDescriptions/SplitIfAction/description.html new file mode 100644 index 000000000..d403b5a96 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SplitIfAction/description.html @@ -0,0 +1,5 @@ + + +将带有 AND 条件 && 或 OR 条件 || 运算符的 if 语句拆分为两个条件简化的 if 语句。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SplitIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SplitIfIntention/description.html new file mode 100644 index 000000000..ff61aa30c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SplitIfIntention/description.html @@ -0,0 +1,5 @@ + + +

      将条件中包含合取运算的 if 语句转换为两个包含简化条件的嵌套 if 语句。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SplitLineIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SplitLineIntention/description.html new file mode 100644 index 000000000..038739101 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SplitLineIntention/description.html @@ -0,0 +1,5 @@ + + +将元素放在多行中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SplitPropertyDeclarationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SplitPropertyDeclarationIntention/description.html new file mode 100644 index 000000000..2c6d29cee --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SplitPropertyDeclarationIntention/description.html @@ -0,0 +1,5 @@ + + +使用初始值设定项拆分属性声明,并将初始值设定项转换为赋值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SplitSwitchBranchWithSeveralCaseValuesAction/description.html b/original-plugin-raw/zh/intentionDescriptions/SplitSwitchBranchWithSeveralCaseValuesAction/description.html new file mode 100644 index 000000000..dcf0f01cb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SplitSwitchBranchWithSeveralCaseValuesAction/description.html @@ -0,0 +1,5 @@ + + +将一个有多个 case 值的 switch 分支拆成单个 switch 分支,每个 case 值一个。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SpringIntroduceBeanIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SpringIntroduceBeanIntention/description.html new file mode 100644 index 000000000..97a22d89b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SpringIntroduceBeanIntention/description.html @@ -0,0 +1,5 @@ + + +将本地 Spring Bean XML 定义提取到顶层并为其分配一个 id。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SpringUpdateSchemaIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SpringUpdateSchemaIntention/description.html new file mode 100644 index 000000000..cc4d92906 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SpringUpdateSchemaIntention/description.html @@ -0,0 +1,5 @@ + + +将 Spring Bean XML Doctype 定义转换为 XML 架构。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlAddExternalRelationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlAddExternalRelationIntention/description.html new file mode 100644 index 000000000..590b63822 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlAddExternalRelationIntention/description.html @@ -0,0 +1,6 @@ + + +将表之间的关系保存为虚拟外键。 默认位置为 external-data.xml。 +

      有关虚拟外键的详细信息,请参阅 IDE 文档中的“外键”部分

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlAddGroupedColumnToSelectIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlAddGroupedColumnToSelectIntention/description.html new file mode 100644 index 000000000..00c5457d1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlAddGroupedColumnToSelectIntention/description.html @@ -0,0 +1,5 @@ + + +将 GROUP BY 子句中的列添加到查询 SELECT 列表 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlConvertBetweenToComparisonIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlConvertBetweenToComparisonIntention/description.html new file mode 100644 index 000000000..a099731bc --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlConvertBetweenToComparisonIntention/description.html @@ -0,0 +1,5 @@ + + +将 BETWEEN 运算符替换为比较表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlConvertComparisonToBetweenIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlConvertComparisonToBetweenIntention/description.html new file mode 100644 index 000000000..6ff2611ca --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlConvertComparisonToBetweenIntention/description.html @@ -0,0 +1,5 @@ + + +将比较表达式替换为 BETWEEN 运算符。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlConvertEqualityToInIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlConvertEqualityToInIntention/description.html new file mode 100644 index 000000000..08a1615c6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlConvertEqualityToInIntention/description.html @@ -0,0 +1,5 @@ + + +将多个相等检查替换为单个 IN 表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlConvertInToEqualityIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlConvertInToEqualityIntention/description.html new file mode 100644 index 000000000..c8fd38384 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlConvertInToEqualityIntention/description.html @@ -0,0 +1,5 @@ + + +将 IN 表达式替换为多个相等检查。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlConvertJoinOnToNaturalIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlConvertJoinOnToNaturalIntention/description.html new file mode 100644 index 000000000..6bbfe98cd --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlConvertJoinOnToNaturalIntention/description.html @@ -0,0 +1,5 @@ + + +将 JOIN-ON 构造替换为 NATURAL JOIN。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlConvertJoinOnToUsingIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlConvertJoinOnToUsingIntention/description.html new file mode 100644 index 000000000..fe4a23d8b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlConvertJoinOnToUsingIntention/description.html @@ -0,0 +1,5 @@ + + +将 JOIN-ON 构造替换为 JOIN-USING 构造。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlConvertJoinUsingToNaturalIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlConvertJoinUsingToNaturalIntention/description.html new file mode 100644 index 000000000..63769b397 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlConvertJoinUsingToNaturalIntention/description.html @@ -0,0 +1,5 @@ + + +将 JOIN-USING 构造替换为 NATURAL JOIN。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlConvertJoinUsingToOnIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlConvertJoinUsingToOnIntention/description.html new file mode 100644 index 000000000..270835ca8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlConvertJoinUsingToOnIntention/description.html @@ -0,0 +1,5 @@ + + +将 JOIN-USING 构造替换为JOIN-ON 条件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlConvertNaturalJoinToOnIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlConvertNaturalJoinToOnIntention/description.html new file mode 100644 index 000000000..af3b2d8d0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlConvertNaturalJoinToOnIntention/description.html @@ -0,0 +1,5 @@ + + +将 NATURAL JOIN 替换为 JOIN ON 条件。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlConvertNaturalJoinToUsingIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlConvertNaturalJoinToUsingIntention/description.html new file mode 100644 index 000000000..9a0a2aa43 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlConvertNaturalJoinToUsingIntention/description.html @@ -0,0 +1,5 @@ + + +将 NATURAL JOIN 替换为 JOIN-USING 构造。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlExpandColumnListIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlExpandColumnListIntention/description.html new file mode 100644 index 000000000..34a6391e1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlExpandColumnListIntention/description.html @@ -0,0 +1,6 @@ + + +将星号 (*) 替换为表中的列列表。 该意图在 SELECT 子句中运行。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlExtractNamedQueryIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlExtractNamedQueryIntention/description.html new file mode 100644 index 000000000..01efed510 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlExtractNamedQueryIntention/description.html @@ -0,0 +1,5 @@ + + +将子查询提取到通用表表达式 (CTE) 中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlFlipExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlFlipExpressionIntention/description.html new file mode 100644 index 000000000..ac7aeb689 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlFlipExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +切换表达式操作数的位置。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlInjectByTypeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlInjectByTypeIntention/description.html new file mode 100644 index 000000000..678679646 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlInjectByTypeIntention/description.html @@ -0,0 +1,8 @@ + + +注入方言并将其与所选 SQL 类型相关联。 +将此方言应用于相同类型的所有匹配项(例如,query)。 +

      Before 示例中,您可以对 'SELECT * FROM foo' 值调用按类型注入意图操作,然后注入此对象类型并将其与任何 SQL 方言关联。 此值的对象类型为 query(由 q query DEFAULT 'SELECT * FROM foo' 指定)。 + 因此,当您下次在代码中使用 query 类型时,将自动注入所选方言。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlInlineCteIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlInlineCteIntention/description.html new file mode 100644 index 000000000..ad795e109 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlInlineCteIntention/description.html @@ -0,0 +1,5 @@ + + +将通用表表达式 (CTE) 内联到查询中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlInlineTableAliasIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlInlineTableAliasIntention/description.html new file mode 100644 index 000000000..9798c78f0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlInlineTableAliasIntention/description.html @@ -0,0 +1,7 @@ + + +内联表别名并将所有别名引用替换为对源表的引用。 + +

      根据编辑器 | 常规 | 智能键 | SQL下的设置对先前由别名限定的引用进行重新限定。 有关对象限定的详细信息,请参阅 IDE 文档中的“智能键”主题

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlIntroduceTableAliasIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlIntroduceTableAliasIntention/description.html new file mode 100644 index 000000000..d8c220adc --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlIntroduceTableAliasIntention/description.html @@ -0,0 +1,7 @@ + + +引入表别名并将相应表引用替换为对新别名的引用。 + +

      根据编辑器 | 常规 | 智能键 | SQL下的设置对先前由别名限定的引用进行重新限定。 有关对象限定的详细信息,请参阅 IDE 文档中的“智能键”部分

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlMergeInsertStatementsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlMergeInsertStatementsIntention/description.html new file mode 100644 index 000000000..35daebe13 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlMergeInsertStatementsIntention/description.html @@ -0,0 +1,5 @@ + + +将多条 INSERT 语句合并为一条。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlPreviewDmlActionDelete/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlPreviewDmlActionDelete/description.html new file mode 100644 index 000000000..5382ae004 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlPreviewDmlActionDelete/description.html @@ -0,0 +1,5 @@ + + +生成将由 DELETE 语句删除的记录的预览。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlPreviewDmlActionUpdate/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlPreviewDmlActionUpdate/description.html new file mode 100644 index 000000000..214ea856c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlPreviewDmlActionUpdate/description.html @@ -0,0 +1,5 @@ + + +生成将由 UPDATE 语句更新的记录的预览。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlQualifyIdentifierIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlQualifyIdentifierIntention/description.html new file mode 100644 index 000000000..5f00bcb68 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlQualifyIdentifierIntention/description.html @@ -0,0 +1,7 @@ + + +限定标识符。 + +

      限定名称至少包括一个限定词以澄清上下文。 这可能很有用,例如,如果您有两个表,每个表具有相似的名称,但位于不同的架构中。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlQuoteIdentifierIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlQuoteIdentifierIntention/description.html new file mode 100644 index 000000000..6683b3771 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlQuoteIdentifierIntention/description.html @@ -0,0 +1,7 @@ + + +为标识符加引号。 + +

      用引号分隔的标识符可能是保留关键字,也可能包含标识符语法规则通常不允许的字符。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlReplaceColumnNameWithNumberIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlReplaceColumnNameWithNumberIntention/description.html new file mode 100644 index 000000000..f10096587 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlReplaceColumnNameWithNumberIntention/description.html @@ -0,0 +1,11 @@ + + +将列名替换为位置引用。 +

      某些 DBMS 可以通过序列号引用 ORDER BY 和 GROUP BY 中的列。 除了 Cassandra、ClickHouse、Hive、Spark 和 HSQLDB 之外,所有方言都支持 ORDER BY。 MySQL、Maria、PostgreSQL(及其子方言)、Exasol、SQLite 和 Snowflake 支持 GROUP BY。

      +

      示例(PostgreSQL):

      +
      CREATE TABLE tab(a INT, b INT);
      +SELECT * FROM tab ORDER BY 1;
      +

      您可以使用此意图操作将 SELECT 查询中的 1 替换为列名。 因此,在应用该意图操作后,查询将如下所示。

      +
      SELECT * FROM tab ORDER BY a;
      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlReplaceColumnNumberWithNameIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlReplaceColumnNumberWithNameIntention/description.html new file mode 100644 index 000000000..6d7c6d3c4 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlReplaceColumnNumberWithNameIntention/description.html @@ -0,0 +1,6 @@ + + +将列位置引用替换为其名称。 +

      某些 DBMS 可以通过序列号引用 ORDER BY 和 GROUP BY 中的列。 除了 Cassandra、ClickHouse、Hive、Spark 和 HSQLDB 之外,所有方言都支持 ORDER BY。 MySQL、Maria、PostgreSQL(及其子方言)、Exasol、SQLite 和 Snowflake 支持 GROUP BY。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlReplaceDistinctWithGroupByIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlReplaceDistinctWithGroupByIntention/description.html new file mode 100644 index 000000000..b15309596 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlReplaceDistinctWithGroupByIntention/description.html @@ -0,0 +1,5 @@ + + +将 DISTINCT 子句替换为 GROUP BY。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlReplaceGroupByWithDistinctIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlReplaceGroupByWithDistinctIntention/description.html new file mode 100644 index 000000000..3023ee4eb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlReplaceGroupByWithDistinctIntention/description.html @@ -0,0 +1,5 @@ + + +将 GROUP BY 子句替换为 DISTINCT。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlSplitInsertStatementIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlSplitInsertStatementIntention/description.html new file mode 100644 index 000000000..f0bfe682b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlSplitInsertStatementIntention/description.html @@ -0,0 +1,5 @@ + + +从 VALUES 部分的值列表生成多条 INSERT 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlSplitStringLiteralIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlSplitStringLiteralIntention/description.html new file mode 100644 index 000000000..5f01edb69 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlSplitStringLiteralIntention/description.html @@ -0,0 +1,5 @@ + + +拆分字符串文字。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlUnqualifyIdentifierIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlUnqualifyIdentifierIntention/description.html new file mode 100644 index 000000000..120c69c53 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlUnqualifyIdentifierIntention/description.html @@ -0,0 +1,8 @@ + + +取消限定标识符。 此意图操作与限定标识符相反。 + +

      限定名称至少包括一个限定词以澄清上下文。 + 这可能很有用,例如,如果您有两个表,每个表具有相似的名称,但位于不同的架构中。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SqlUnquoteIdentifierIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SqlUnquoteIdentifierIntention/description.html new file mode 100644 index 000000000..b8b0c7750 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SqlUnquoteIdentifierIntention/description.html @@ -0,0 +1,7 @@ + + +为标识符取消加引号。 此意图操作与为标识符加引号相反。 + +

      用引号分隔的标识符可能是保留关键字,也可能包含标识符语法规则通常不允许的字符。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/StatementToModifierIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/StatementToModifierIntention/description.html new file mode 100644 index 000000000..b5cc83c8a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/StatementToModifierIntention/description.html @@ -0,0 +1,5 @@ + + +将 ifunless 语句替换为相应的单行修饰符。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/StringSumToSubstitutionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/StringSumToSubstitutionIntention/description.html new file mode 100644 index 000000000..c254b595a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/StringSumToSubstitutionIntention/description.html @@ -0,0 +1,5 @@ + + +将字符串串联替换为表达式替换。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/StringToMultilineStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/StringToMultilineStringIntention/description.html new file mode 100644 index 000000000..f6e2d75af --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/StringToMultilineStringIntention/description.html @@ -0,0 +1,5 @@ + + +

      在常规字符串(“abc”)和多行字符串(“”“abc”“”)之间转换。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/StringToSymbolIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/StringToSymbolIntention/description.html new file mode 100644 index 000000000..eb78a9255 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/StringToSymbolIntention/description.html @@ -0,0 +1,5 @@ + + +将字符串转换为具有相同文本的符号。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SuppressLintIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/SuppressLintIntentionAction/description.html new file mode 100644 index 000000000..f7dfbab19 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SuppressLintIntentionAction/description.html @@ -0,0 +1,5 @@ + + +通过将 @SuppressLint注解添加到最近的父声明来禁止 Android Lint 警告。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SurroundAutoCloseableAction/description.html b/original-plugin-raw/zh/intentionDescriptions/SurroundAutoCloseableAction/description.html new file mode 100644 index 000000000..a72e077be --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SurroundAutoCloseableAction/description.html @@ -0,0 +1,5 @@ + + +在 try-with-resources 语句中包装 AutoCloseable 类型的局部变量。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SwExtractModelDeclarationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwExtractModelDeclarationIntention/description.html new file mode 100644 index 000000000..2e26c0aec --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwExtractModelDeclarationIntention/description.html @@ -0,0 +1 @@ +将模型声明提取到相应规范部分 \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SwapBinaryExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwapBinaryExpressionIntention/description.html new file mode 100644 index 000000000..a9266ad3c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwapBinaryExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +交换二进制表达式的操作数。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SwapIfStatementsIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/SwapIfStatementsIntentionAction/description.html new file mode 100644 index 000000000..8bb5757f7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwapIfStatementsIntentionAction/description.html @@ -0,0 +1,5 @@ + + +交换由 else 关键字连接的 if 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SwapStringEqualsIgnoreCaseIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwapStringEqualsIgnoreCaseIntention/description.html new file mode 100644 index 000000000..2101d4a23 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwapStringEqualsIgnoreCaseIntention/description.html @@ -0,0 +1,5 @@ + + +将 string1.equals(string2, ignoreCase) 替换为 string2.equals(string1, ignoreCase)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftAddDigitSeparatorsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftAddDigitSeparatorsIntention/description.html new file mode 100644 index 000000000..f832f45b1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftAddDigitSeparatorsIntention/description.html @@ -0,0 +1,5 @@ + + +将数字分隔符添加到整数文字 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftAddExplicitQualifierIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftAddExplicitQualifierIntention/description.html new file mode 100644 index 000000000..3221ffee0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftAddExplicitQualifierIntention/description.html @@ -0,0 +1,5 @@ + + +向隐式限定的引用添加显式限定符 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftAddExplicitTypeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftAddExplicitTypeIntention/description.html new file mode 100644 index 000000000..cc0d89cb6 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftAddExplicitTypeIntention/description.html @@ -0,0 +1,5 @@ + + +向变量添加显式类型注解 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToBinaryIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToBinaryIntention/description.html new file mode 100644 index 000000000..a9413885d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToBinaryIntention/description.html @@ -0,0 +1,5 @@ + + +将整数文字转换为其二进制表示 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToClosureArgumentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToClosureArgumentIntention/description.html new file mode 100644 index 000000000..6cd82cd51 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToClosureArgumentIntention/description.html @@ -0,0 +1,5 @@ + + +将尾随闭包转换为闭包参数 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToDecimalIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToDecimalIntention/description.html new file mode 100644 index 000000000..562cbb920 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToDecimalIntention/description.html @@ -0,0 +1,5 @@ + + +将整数文字转换为其十进制表示 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToHexIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToHexIntention/description.html new file mode 100644 index 000000000..c5e3cfaea --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToHexIntention/description.html @@ -0,0 +1,5 @@ + + +将整数文字转换为其十六进制表示 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToMultilineStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToMultilineStringIntention/description.html new file mode 100644 index 000000000..249b2359d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToMultilineStringIntention/description.html @@ -0,0 +1,5 @@ + + +将单行字符串文字转换为多行 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToOctalIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToOctalIntention/description.html new file mode 100644 index 000000000..eda8b85b3 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToOctalIntention/description.html @@ -0,0 +1,5 @@ + + +将整数文字转换为其八进制表示 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToStringIntention/description.html new file mode 100644 index 000000000..cc6771b74 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToStringIntention/description.html @@ -0,0 +1,5 @@ + + +将多行字符串文字转换为单行 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToTrailingClosureIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToTrailingClosureIntention/description.html new file mode 100644 index 000000000..4aa1238e9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftConvertToTrailingClosureIntention/description.html @@ -0,0 +1,5 @@ + + +将闭包参数转换为尾随闭包 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftDeMorgansLawIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftDeMorgansLawIntention/description.html new file mode 100644 index 000000000..b193223c8 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftDeMorgansLawIntention/description.html @@ -0,0 +1,5 @@ + + +将布尔表达式中的 a || b 替换为 !(!a && !b) 或将 a && b 替换为 !(!a || !b) + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftDecreaseStringEscapeLevelIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftDecreaseStringEscapeLevelIntention/description.html new file mode 100644 index 000000000..5433cc258 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftDecreaseStringEscapeLevelIntention/description.html @@ -0,0 +1,5 @@ + + +降低字符串文字中的转义级别 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftFlipBinaryExpressionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftFlipBinaryExpressionIntention/description.html new file mode 100644 index 000000000..790a1403e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftFlipBinaryExpressionIntention/description.html @@ -0,0 +1,5 @@ + + +翻转二进制表达式操作数 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftFlipComparisonIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftFlipComparisonIntention/description.html new file mode 100644 index 000000000..6758aa79d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftFlipComparisonIntention/description.html @@ -0,0 +1,5 @@ + + +翻转比较操作数和运算符 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftIncreaseStringEscapeLevelIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftIncreaseStringEscapeLevelIntention/description.html new file mode 100644 index 000000000..7e093532a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftIncreaseStringEscapeLevelIntention/description.html @@ -0,0 +1,5 @@ + + +增加字符串文字中的转义级别 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftInvertIfConditionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftInvertIfConditionIntention/description.html new file mode 100644 index 000000000..4cf57c5d7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftInvertIfConditionIntention/description.html @@ -0,0 +1,5 @@ + + +反转 if 语句下的条件并交换 ifelse 块 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftJoinAssignmentWithDeclarationIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftJoinAssignmentWithDeclarationIntention/description.html new file mode 100644 index 000000000..e79b78f03 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftJoinAssignmentWithDeclarationIntention/description.html @@ -0,0 +1,5 @@ + + +将变量初始化移至其声明 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftJoinDeclarationWithAssignmentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftJoinDeclarationWithAssignmentIntention/description.html new file mode 100644 index 000000000..e79b78f03 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftJoinDeclarationWithAssignmentIntention/description.html @@ -0,0 +1,5 @@ + + +将变量初始化移至其声明 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftLocalizeStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftLocalizeStringIntention/description.html new file mode 100644 index 000000000..57f79d2dc --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftLocalizeStringIntention/description.html @@ -0,0 +1,5 @@ + + +将字符串文字替换为 NSLocalizedString,并为所有区域设置提供本地化 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftMergeConditionsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftMergeConditionsIntention/description.html new file mode 100644 index 000000000..cfe02f7f5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftMergeConditionsIntention/description.html @@ -0,0 +1,5 @@ + + +使用 && 二元运算符合并由逗号分隔的条件 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftMergeElseIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftMergeElseIfIntention/description.html new file mode 100644 index 000000000..049e0956c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftMergeElseIfIntention/description.html @@ -0,0 +1,5 @@ + + +将嵌套在 else 块中的 if 语句合并到 else if 语句中 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftMergeNestedIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftMergeNestedIfIntention/description.html new file mode 100644 index 000000000..33e63781d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftMergeNestedIfIntention/description.html @@ -0,0 +1,5 @@ + + +将嵌套在另一个 if 语句中的 if 合并为一个 if 语句 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftNegateComparisonIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftNegateComparisonIntention/description.html new file mode 100644 index 000000000..1ac1f0825 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftNegateComparisonIntention/description.html @@ -0,0 +1,5 @@ + + +反转布尔表达式的含义 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftRemoveDigitSeparatorsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftRemoveDigitSeparatorsIntention/description.html new file mode 100644 index 000000000..1cc914099 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftRemoveDigitSeparatorsIntention/description.html @@ -0,0 +1,5 @@ + + +从数字文字中移除数字分隔符 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftRemoveExplicitTypeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftRemoveExplicitTypeIntention/description.html new file mode 100644 index 000000000..0f2a5fb09 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftRemoveExplicitTypeIntention/description.html @@ -0,0 +1,5 @@ + + +移除显式类型注解 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftReplaceGuardWithIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftReplaceGuardWithIfIntention/description.html new file mode 100644 index 000000000..1cc3a5630 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftReplaceGuardWithIfIntention/description.html @@ -0,0 +1,5 @@ + + +用 if 语句替换 guard 语句而不改变语义 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftReplaceIfWithGuardIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftReplaceIfWithGuardIntention/description.html new file mode 100644 index 000000000..6911fdeff --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftReplaceIfWithGuardIntention/description.html @@ -0,0 +1,5 @@ + + +在不改变语义的情况下用 guard 语句替换 if 语句 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftSplitConditionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftSplitConditionIntention/description.html new file mode 100644 index 000000000..1d22d4c99 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftSplitConditionIntention/description.html @@ -0,0 +1,5 @@ + + +将带有 && 二元运算符的条件拆分为两个单独的条件 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftSplitDeclarationAndAssignmentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftSplitDeclarationAndAssignmentIntention/description.html new file mode 100644 index 000000000..e7eadee1e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftSplitDeclarationAndAssignmentIntention/description.html @@ -0,0 +1,5 @@ + + +将变量初始化从其声明移至单独的语句 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftSplitElseIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftSplitElseIfIntention/description.html new file mode 100644 index 000000000..d708603bb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftSplitElseIfIntention/description.html @@ -0,0 +1,5 @@ + + +将 else if 拆分为嵌套在 else 块中的 if 语句 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftSplitIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftSplitIfIntention/description.html new file mode 100644 index 000000000..53d0463c1 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftSplitIfIntention/description.html @@ -0,0 +1,5 @@ + + +将 if 语句拆分为两个嵌套的 if 语句 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SwiftSplitIntoSeparateDeclarationsIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SwiftSplitIntoSeparateDeclarationsIntention/description.html new file mode 100644 index 000000000..76ee73025 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SwiftSplitIntoSeparateDeclarationsIntention/description.html @@ -0,0 +1,5 @@ + + +将具有多个变量的声明拆分为单独的声明 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/SymbolToStringIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/SymbolToStringIntention/description.html new file mode 100644 index 000000000..772a5901f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/SymbolToStringIntention/description.html @@ -0,0 +1,5 @@ + + +将符号转换为包含相同文本的字符串。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/TagToAttributeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TagToAttributeIntention/description.html new file mode 100644 index 000000000..fb77d436f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TagToAttributeIntention/description.html @@ -0,0 +1,5 @@ + + +将一个子元素转换为其父标记的特性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/TernaryOperatorToIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TernaryOperatorToIfIntention/description.html new file mode 100644 index 000000000..0d0ead5a3 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TernaryOperatorToIfIntention/description.html @@ -0,0 +1,5 @@ + + +将三元语句替换为 if 语句。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/TextToCDataIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TextToCDataIntention/description.html new file mode 100644 index 000000000..e64d35bd0 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TextToCDataIntention/description.html @@ -0,0 +1,5 @@ + + +在 CDATA 部分中包装文本片段,并根据需要删除字符的转义。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ToInfixCallIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ToInfixCallIntention/description.html new file mode 100644 index 000000000..01bed309d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ToInfixCallIntention/description.html @@ -0,0 +1,5 @@ + + +将点限定的方法调用转换为中缀函数调用。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ToOrdinaryStringLiteralIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ToOrdinaryStringLiteralIntention/description.html new file mode 100644 index 000000000..41b2423cc --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ToOrdinaryStringLiteralIntention/description.html @@ -0,0 +1,5 @@ + + +将原始字符串文字(使用三引号字符包围的字符串)转换为普通字符串文字(使用单引号字符包围的字符串)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ToRawStringLiteralIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ToRawStringLiteralIntention/description.html new file mode 100644 index 000000000..5442905bc --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ToRawStringLiteralIntention/description.html @@ -0,0 +1,5 @@ + + +将普通字符串文字转换为原始字符串文字(使用三引号字符包围的字符串)。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/ToggleInjectionRequiredIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ToggleInjectionRequiredIntention/description.html new file mode 100644 index 000000000..f1089bcdb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ToggleInjectionRequiredIntention/description.html @@ -0,0 +1,5 @@ + + +切换字段或方法 @Inject 注解的 'optional' 状态。
      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ToggleTypeAnnotation/description.html b/original-plugin-raw/zh/intentionDescriptions/ToggleTypeAnnotation/description.html new file mode 100644 index 000000000..420a5a8ec --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ToggleTypeAnnotation/description.html @@ -0,0 +1,5 @@ + + +

      添加/移除显式类型注解。

      + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/TomlExpandInlineTableIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TomlExpandInlineTableIntention/description.html new file mode 100644 index 000000000..26756eabc --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TomlExpandInlineTableIntention/description.html @@ -0,0 +1,5 @@ + + +将具有内联表的表属性扩展到单独的表中。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/TrailingCommaIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TrailingCommaIntention/description.html new file mode 100644 index 000000000..c49321124 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TrailingCommaIntention/description.html @@ -0,0 +1,5 @@ + + +在设置/偏好设置 | 编辑器 | 代码样式 | Kotlin | 其他 | 尾随逗号中更改使用尾随逗号设置。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/TtoTrueIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TtoTrueIntention/description.html new file mode 100644 index 000000000..f1f459217 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TtoTrueIntention/description.html @@ -0,0 +1,5 @@ + + +将 T/F 替换为 TRUEFALSE。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/TypeAssertionIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TypeAssertionIntention/description.html new file mode 100644 index 000000000..cfb1b8a24 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TypeAssertionIntention/description.html @@ -0,0 +1,7 @@ + + + +通过断言指定表达式的类型。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/TypeScriptAddEnumStringValuesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TypeScriptAddEnumStringValuesIntention/description.html new file mode 100644 index 000000000..d595c8413 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TypeScriptAddEnumStringValuesIntention/description.html @@ -0,0 +1,5 @@ + + +将显式枚举成员值添加为作为与字段名匹配的字符串。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/TypeScriptAddExplicitEnumValuesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TypeScriptAddExplicitEnumValuesIntention/description.html new file mode 100644 index 000000000..5d422c20c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TypeScriptAddExplicitEnumValuesIntention/description.html @@ -0,0 +1,5 @@ + + +添加显式枚举成员值。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/TypeScriptConvertAliasToEnumIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TypeScriptConvertAliasToEnumIntention/description.html new file mode 100644 index 000000000..e94492357 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TypeScriptConvertAliasToEnumIntention/description.html @@ -0,0 +1,5 @@ + + +将一组字符串文字的类型别名转换为具有对应于初始文字的字符串值的枚举。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/TypeScriptConvertAliasToInterfaceIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TypeScriptConvertAliasToInterfaceIntention/description.html new file mode 100644 index 000000000..98dd0f377 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TypeScriptConvertAliasToInterfaceIntention/description.html @@ -0,0 +1,5 @@ + + +将对象类型的类型别名转换为同名的接口。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/TypeScriptConvertImportRequireIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TypeScriptConvertImportRequireIntention/description.html new file mode 100644 index 000000000..e0c5ce69a --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TypeScriptConvertImportRequireIntention/description.html @@ -0,0 +1,5 @@ + + +将 TypeScript 导入语句从 import require('') 转换为 import from 语法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/TypeScriptDisableSmartCastIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TypeScriptDisableSmartCastIntention/description.html new file mode 100644 index 000000000..0e011dbf7 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TypeScriptDisableSmartCastIntention/description.html @@ -0,0 +1,5 @@ + + +禁用编辑器中 TypeScript 'Narrowed to' 类型防护的颜色指示。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/TypeScriptFieldToParameterPropertyIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TypeScriptFieldToParameterPropertyIntention/description.html new file mode 100644 index 000000000..b9a0b6f9e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TypeScriptFieldToParameterPropertyIntention/description.html @@ -0,0 +1,5 @@ + + +将 TypeScript 类字段转换为形参属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/TypeScriptGenerateReferencePathIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TypeScriptGenerateReferencePathIntention/description.html new file mode 100644 index 000000000..4afffe915 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TypeScriptGenerateReferencePathIntention/description.html @@ -0,0 +1,6 @@ + + +为文本光标所在处符号引用的文件生成一个引用路径注释。 这些注释是由 TypeScript 编译器使用的。 +通常,全局符号需要引用路径注释,否则应使用 EcmaScript 导入语法。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/TypeScriptImplementInDerivedTypesIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TypeScriptImplementInDerivedTypesIntention/description.html new file mode 100644 index 000000000..cda11be88 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TypeScriptImplementInDerivedTypesIntention/description.html @@ -0,0 +1,6 @@ + + +在派生类中实现一个接口或 abstract 类尚未实现的成员。 +如果该成员在多个类中缺失,则显示一个需要实现该成员的类的列表。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/TypeScriptParameterPropertyToFieldIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TypeScriptParameterPropertyToFieldIntention/description.html new file mode 100644 index 000000000..a84eb5582 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TypeScriptParameterPropertyToFieldIntention/description.html @@ -0,0 +1,5 @@ + + +将 TypeScript 形参属性转换为普通的类字段。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/TypeScriptPrivateModifierIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TypeScriptPrivateModifierIntention/description.html new file mode 100644 index 000000000..0b74bbbae --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TypeScriptPrivateModifierIntention/description.html @@ -0,0 +1,5 @@ + + +将 TypeScript 类成员设为私有,并添加 private 关键字。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/TypeScriptProtectedModifierIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/TypeScriptProtectedModifierIntention/description.html new file mode 100644 index 000000000..66ea3fd6d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/TypeScriptProtectedModifierIntention/description.html @@ -0,0 +1,5 @@ + + +将 TypeScript 类成员设为 protected。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/UnInjectLanguageAction/description.html b/original-plugin-raw/zh/intentionDescriptions/UnInjectLanguageAction/description.html new file mode 100644 index 000000000..41288950f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/UnInjectLanguageAction/description.html @@ -0,0 +1,5 @@ + + +如果可配置,则删除语言注入。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/UnfoldAssignmentToIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/UnfoldAssignmentToIfIntention/description.html new file mode 100644 index 000000000..e41dbfb7d --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/UnfoldAssignmentToIfIntention/description.html @@ -0,0 +1,5 @@ + + +将具有 if 右侧的赋值转换为每个分支都以赋值终止的 if 表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/UnfoldAssignmentToWhenIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/UnfoldAssignmentToWhenIntention/description.html new file mode 100644 index 000000000..ea59b5a80 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/UnfoldAssignmentToWhenIntention/description.html @@ -0,0 +1,5 @@ + + +将具有 when 右侧的赋值转换为每个分支都以赋值终止的 when 表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/UnfoldFunctionCallToIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/UnfoldFunctionCallToIfIntention/description.html new file mode 100644 index 000000000..4cdb6a2eb --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/UnfoldFunctionCallToIfIntention/description.html @@ -0,0 +1,5 @@ + + +将函数实参中的 if 表达式移动到函数调用外部。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/UnfoldPropertyToIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/UnfoldPropertyToIfIntention/description.html new file mode 100644 index 000000000..eeeb9f365 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/UnfoldPropertyToIfIntention/description.html @@ -0,0 +1,5 @@ + + +将具有 if 初始值设定项的属性转换为未初始化的属性,后跟 if 表达式,其中每个分支都以赋值结束。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/UnfoldPropertyToWhenIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/UnfoldPropertyToWhenIntention/description.html new file mode 100644 index 000000000..b79382a0b --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/UnfoldPropertyToWhenIntention/description.html @@ -0,0 +1,5 @@ + + +将具有 when 初始值设定项的属性转换为未初始化的属性,后跟 when 表达式,其中每个分支都以赋值结束。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/UnfoldReturnToIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/UnfoldReturnToIfIntention/description.html new file mode 100644 index 000000000..8880f6a46 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/UnfoldReturnToIfIntention/description.html @@ -0,0 +1,5 @@ + + +将以 if 表达式作为结果的 return 转换为每个分支都以单独的 return 终止的 if 表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/UnfoldReturnToWhenIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/UnfoldReturnToWhenIntention/description.html new file mode 100644 index 000000000..f2d2cd4cf --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/UnfoldReturnToWhenIntention/description.html @@ -0,0 +1,5 @@ + + +将以 when 表达式作为结果的 return 转换为每个分支都以单独的 return 终止的 when 表达式。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/UnicodeUnescapeIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/UnicodeUnescapeIntention/description.html new file mode 100644 index 000000000..b3036644c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/UnicodeUnescapeIntention/description.html @@ -0,0 +1,5 @@ + + +将 Java 文件中的 Unicode 转义序列替换为正则字符。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/UnimplementInterfaceAction/description.html b/original-plugin-raw/zh/intentionDescriptions/UnimplementInterfaceAction/description.html new file mode 100644 index 000000000..f582f5316 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/UnimplementInterfaceAction/description.html @@ -0,0 +1,5 @@ + + +从 implements (extends) 列表中移除一个类以及实现(重写)该类方法的所有方法。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/UnrollLoopAction/description.html b/original-plugin-raw/zh/intentionDescriptions/UnrollLoopAction/description.html new file mode 100644 index 000000000..85e311637 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/UnrollLoopAction/description.html @@ -0,0 +1,5 @@ + + +在显式值列表上展开循环。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/UnwrapElseBranchAction/description.html b/original-plugin-raw/zh/intentionDescriptions/UnwrapElseBranchAction/description.html new file mode 100644 index 000000000..42875e8f5 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/UnwrapElseBranchAction/description.html @@ -0,0 +1,6 @@ + + +将 else 分支的代码放在 if 语句之后。 +

      请注意,此意图更改了代码语义。

      + + diff --git a/original-plugin-raw/zh/intentionDescriptions/UsePNamespaceIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/UsePNamespaceIntention/description.html new file mode 100644 index 000000000..a73efd7af --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/UsePNamespaceIntention/description.html @@ -0,0 +1,5 @@ + + +将 Spring Bean XML 属性定义从 <property> 标记转换为 p:prefix 表示法 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/UsePropertyAccessSyntaxIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/UsePropertyAccessSyntaxIntention/description.html new file mode 100644 index 000000000..7eb086a2e --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/UsePropertyAccessSyntaxIntention/description.html @@ -0,0 +1,5 @@ + + +将 Java getset 方法调用替换为 Kotlin 合成属性。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/UseWithIndexIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/UseWithIndexIntention/description.html new file mode 100644 index 000000000..7aa8392d9 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/UseWithIndexIntention/description.html @@ -0,0 +1,5 @@ + + +将 for 循环中手动递增的索引变量替换为使用 withIndex() 函数。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/ValToObjectIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/ValToObjectIntention/description.html new file mode 100644 index 000000000..eb7bffb9f --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/ValToObjectIntention/description.html @@ -0,0 +1,5 @@ + + +将使用对象表达式初始化的顶级属性转换为对象声明。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/VueExpandVModelIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/VueExpandVModelIntention/description.html new file mode 100644 index 000000000..3c1c731ee --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/VueExpandVModelIntention/description.html @@ -0,0 +1,5 @@ + + +将 v-model 语法糖扩展为 propevent 对。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/VueExtractComponentIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/VueExtractComponentIntention/description.html new file mode 100644 index 000000000..b37e3dd69 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/VueExtractComponentIntention/description.html @@ -0,0 +1,5 @@ + + +将选定的模板部分或标签提取到新的单文件组件中。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/WhenToIfIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/WhenToIfIntention/description.html new file mode 100644 index 000000000..bc05e5160 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/WhenToIfIntention/description.html @@ -0,0 +1,5 @@ + + +将 when 表达式转换为一个或多个 if 表达式。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/WrapTransTagIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/WrapTransTagIntention/description.html new file mode 100644 index 000000000..d7b977498 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/WrapTransTagIntention/description.html @@ -0,0 +1,7 @@ + + + +使用 {% trans %} 标记包装选定的模板部分。 + + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/WrapVarargArgumentsWithExplicitArrayIntention/description.html b/original-plugin-raw/zh/intentionDescriptions/WrapVarargArgumentsWithExplicitArrayIntention/description.html new file mode 100644 index 000000000..356e7fe30 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/WrapVarargArgumentsWithExplicitArrayIntention/description.html @@ -0,0 +1,5 @@ + + +使用显式数组表达式将实参包装到可变 arity 形参。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/WrapWithUnmodifiableAction/description.html b/original-plugin-raw/zh/intentionDescriptions/WrapWithUnmodifiableAction/description.html new file mode 100644 index 000000000..280751be3 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/WrapWithUnmodifiableAction/description.html @@ -0,0 +1,5 @@ + + +在 Collections.unmodifiableList/Set/Map() 中包装列表、集合或映射。 + + diff --git a/original-plugin-raw/zh/intentionDescriptions/XmlChooseColorIntentionAction/description.html b/original-plugin-raw/zh/intentionDescriptions/XmlChooseColorIntentionAction/description.html new file mode 100644 index 000000000..ad7412f77 --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/XmlChooseColorIntentionAction/description.html @@ -0,0 +1,5 @@ + + +打开特性值的颜色选择器。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/intentionDescriptions/XmlSplitTagAction/description.html b/original-plugin-raw/zh/intentionDescriptions/XmlSplitTagAction/description.html new file mode 100644 index 000000000..9def5f66c --- /dev/null +++ b/original-plugin-raw/zh/intentionDescriptions/XmlSplitTagAction/description.html @@ -0,0 +1,5 @@ + + +将标签在文本光标处分割。 + + \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/ActionsBundle.properties b/original-plugin-raw/zh/messages/ActionsBundle.properties new file mode 100644 index 000000000..0e5a6edd5 --- /dev/null +++ b/original-plugin-raw/zh/messages/ActionsBundle.properties @@ -0,0 +1,2535 @@ +# IDEA core action texts and descriptions go here. +# The key patterns are "action." + id + ".text" and "action." + id + ".description" + +action.ContextHelp.text=上下文帮助(_X) +action.ContextHelp.description=显示上下文帮助 +action.RunConfiguration.text=选择运行/调试配置 +action.SwitchCoverage.text=显示代码覆盖率数据(_V) +action.GenerateCoverageReport.text=生成覆盖率报告(_G) +action.RunConfiguration.description=选择运行/调试配置 +action.ShowIntentionActions.text=显示上下文操作 +action.ToggleReadOnlyAttribute.text=切换只读特性 +action.ToggleReadOnlyAttribute.synonym=将文件设为可写 +action.ToggleReadOnlyAttribute.synonym2=将文件设为只读 +action.ToggleReadOnlyAttribute.description=切换当前文件的只读特性 +# suppress inspection "UnusedMessageFormatParameter" +action.ToggleReadOnlyAttribute.files=使{2,choice,1#文件|2#文件}{0,choice,0#只读|1#可写} +# suppress inspection "UnusedMessageFormatParameter" +action.ToggleReadOnlyAttribute.dirs=使{3,choice,1#目录|2#目录}{0,choice,0#只读|1#可写} +# suppress inspection "UnusedMessageFormatParameter" +action.ToggleReadOnlyAttribute.mixed=使文件/目录{0,choice,0#只读|1#可写} +action.TogglePopupHints.text=切换当前文件的弹出窗口提示 +action.ShowPopupMenu.text=显示上下文菜单 +action.Vcs.ShowMessageHistory.text=提交消息历史记录 +action.Vcs.ShowMessageHistory.description=显示提交消息历史记录 +action.Vcs.ShowHistoryForBlock.text=显示选择的历史记录(_F) +action.Vcs.ShowHistoryForBlock.description=显示编辑器选择的历史记录 +action.Vcs.ShowHistoryForRevision.text=迄今为止的历史记录 +action.Vcs.ShowHistoryForRevision.description=显示文件的历史记录,直到选定修订版本 +action.Vcs.ShowTabbedFileHistory.text=显示历史记录(_H) +action.Vcs.ShowTabbedFileHistory.description=显示文件的历史记录 +action.AddToFavoritesPopup.text=添加到收藏夹 +action.AddToFavoritesPopup.description=将所选节点添加到收藏夹 +group.AddToFavorites.text=添加到收藏夹(_A) +group.AddAllToFavorites.text=全部添加到收藏夹(_L) +action.AddNewFavoritesList.text=添加新收藏夹列表 +action.AddNewFavoritesList.description=添加新收藏夹列表 +action.EditFavorites.text=重命名收藏夹列表 +group.SendToFavoritesGroup.text=发送至收藏夹(_S) +action.ActivateNavBar.text=激活导航栏(_B) +action.ActivateNavBar.description=激活导航栏 +action.CreateRunConfiguration.text=创建运行配置 +action.CreateRunConfiguration.description=根据当前上下文创建运行配置 +group.RunContextPopupGroup.text=运行配置 +group.EditorActions.text=编辑器操作 +action.EditorChooseLookupItem.text=选择查询条目 +action.EditorChooseLookupItemReplace.text=选择查询条目替换 +action.EditorChooseLookupItemCompleteStatement.text=选择查询条目并调用语句补全 +action.EditorChooseLookupItemDot.text=选择查询条目并插入点 +action.NextTemplateVariable.text=下一个模板变量或完成就地重构 +action.SelectVirtualTemplateElement.text=显示用于就地重构的选项弹出窗口 +action.PreviousTemplateVariable.text=上一个模板变量 +action.NextParameter.text=下一个参数 +action.PrevParameter.text=上一个参数 +action.EditorPageUp.text=向上翻页 +action.EditorPageDown.text=向下翻页 +action.EditorPageUpWithSelection.text=在保持选区的情况下向上翻页 +action.EditorPageDownWithSelection.text=在保持选区的情况下向下翻页 +action.EditorCopy.text=复制 +action.EditorCut.text=剪切 +action.EditorPaste.text=粘贴 +action.EditorPasteSimple.text=粘贴为纯文本(_L) +action.EditorPasteSimple.description=粘贴,不进行格式化、自动导入、文字转义等。 +action.EditorPasteFromX11.text=从 X 剪贴板粘贴 +action.EditorDelete.text=删除 +action.EditorBackSpace.text=退格 +action.EditorHungryBackSpace.text=饥饿退格 +action.EditorHungryBackSpace.description=与退格键的作用相同,但也会移除文本光标前的所有空白符号(如有) +action.EditorMoveToPageTop.text=将文本光标移至页面顶部 +action.EditorMoveToPageBottom.text=将文本光标移至页面底部 +action.EditorMoveToPageTopWithSelection.text=在保持选区的情况下将文本光标移至页面顶部 +action.EditorMoveToPageBottomWithSelection.text=在保持选区的情况下将文本光标移至页面底部 +action.EditorEnter.text=Enter +action.EditorEscape.text=Esc +action.FocusEditor.text=聚焦编辑器 +action.EditorUp.text=上 +action.EditorDown.text=下 +action.EditorLeft.text=左 +action.EditorRight.text=右 +action.EditorUpWithSelection.text=在保持选区的情况下向上 +action.EditorDownWithSelection.text=在保持选区的情况下向下 +action.EditorLeftWithSelection.text=在保持选区的情况下向左 +action.EditorRightWithSelection.text=在保持选区的情况下向右 +action.EditorLookupUp.text=向上查找 +action.EditorLookupDown.text=向下查找 +action.EditorIndentSelection.text=缩进选区 +action.EditorUnindentSelection.text=取消缩进行或选区 +action.EditorIndentLineOrSelection.text=缩进行或选区 +action.EditorTab.text=选项卡 +action.EditorResetFontSize.text=重置字体大小 +action.EmacsStyleIndent.text=Emacs 选项卡 +action.EditorScrollUp.text=向上滚动 +action.EditorScrollDown.text=向下滚动 +action.EditorScrollUpAndMove.text=向上滚动并根据需要移动 +action.EditorScrollDownAndMove.text=向下滚动并根据需要移动 +action.EditorScrollLeft.text=向左滚动 +action.EditorScrollRight.text=向右滚动 +action.EditorScrollTop.text=滚动到顶部 +action.EditorScrollBottom.text=滚动到底部 +action.EditorMoveUpAndScroll.text=向上移动并滚动 +action.EditorMoveDownAndScroll.text=向下移动并滚动 +action.EditorMoveUpAndScrollWithSelection.text=在保持选区的情况下向上移动并滚动 +action.EditorMoveDownAndScrollWithSelection.text=在保持选区的情况下向下移动并滚动 +action.EditorAddOrRemoveCaret.text=添加或移除文本光标 +action.EditorAddOrRemoveCaret.description=在当前文件中设置多个光标,以同时编辑多行代码。 +action.EditorCreateRectangularSelection.text=创建矩形选区 +action.EditorAddRectangularSelectionOnMouseDrag.text=拖动鼠标时添加矩形选区 +action.EditorCreateRectangularSelectionOnMouseDrag.text=拖动鼠标创建矩形选区 +action.EditorCloneCaretBelow.text=在下方克隆文本光标 +action.EditorCloneCaretBelow.description=在下面的行中插入一个辅助光标,以同时编辑多行代码。 +action.EditorCloneCaretAbove.text=在上方克隆文本光标 +action.EditorCloneCaretAbove.description=在上面的行中插入一个辅助光标,以同时编辑多行代码。 +action.SelectNextOccurrence.text=将下一个匹配项添加到选择 +action.SelectNextOccurrence.description=通过将当前单词的下一个匹配项添加到选区来设置多个光标。 +action.SelectAllOccurrences.text=选择所有匹配项 +action.SelectAllOccurrences.description=通过将当前单词的所有匹配项添加到选区来设置多个光标。 +action.UnselectPreviousOccurrence.text=取消选择匹配项 +action.UnselectPreviousOccurrence.description=从选区中移除单词的当前匹配项。 +action.EditorAddCaretPerSelectedLine.text=在所选行的末尾添加文本光标 +action.EditorToggleStickySelection.text=切换粘性选区 +action.EditorSwapSelectionBoundaries.text=交换选区边界 +action.EditorLineStart.text=将文本光标移至行首 +action.EditorLineEnd.text=将文本光标移至行尾 +action.EditorDeleteToLineStart.text=删除到行首 +action.EditorDeleteToLineEnd.text=删除到行尾 +action.EditorCutLineBackward.text=反向剪切行 +action.EditorCutLineEnd.text=剪切到行尾 +action.EditorTextStart.text=将文本光标移至文本开始 +action.EditorTextEnd.text=将文本光标移至文本结束 +action.EditorForwardParagraph.text = 将文本光标前移一段 +action.EditorBackwardParagraph.text = 将文本光标后移一段 +action.EditorForwardParagraphWithSelection.text = 在保持选区的情况下将文本光标前移一段 +action.EditorBackwardParagraphWithSelection.text = 在保持选区的情况下将文本光标后移一段 +action.EditorLineStartWithSelection.text=在保持选区的情况下将文本光标移至行首 +action.EditorLineEndWithSelection.text=在保持选区的情况下将文本光标移至行尾 +action.EditorTextStartWithSelection.text=在保持选区的情况下将文本光标移至文本开始 +action.EditorTextEndWithSelection.text=在保持选区的情况下将文本光标移至文本结束 +action.EditorNextWord.text=将文本光标移至下一个单词 +action.EditorNextWordInDifferentHumpsMode.text=在不同的 "CamelHumps" 模式下将文本光标移至下一个单词 +action.EditorPreviousWord.text=将文本光标移至上一个单词 +action.EditorPreviousWordInDifferentHumpsMode.text=在不同的 "CamelHumps" 模式下将文本光标移至上一个单词 +action.EditorNextWordWithSelection.text=在保持选区的情况下将文本光标移至下一个单词 +action.EditorNextWordInDifferentHumpsModeWithSelection.text=在不同的 "CamelHumps" 模式下保持选区的情况下将文本光标移至下一个单词 +action.EditorPreviousWordWithSelection.text=在保持选区的情况下将文本光标移至上一个单词 +action.EditorPreviousWordInDifferentHumpsModeWithSelection.text=在不同的 "CamelHumps" 模式下保持选区的情况下将文本光标移至上一个单词 +action.EditorCodeBlockStart.text=将文本光标移至代码块开始 +action.EditorCodeBlockEnd.text=将文本光标移至代码块结束 +action.EditorCodeBlockStartWithSelection.text=在保持选区的情况下将文本光标移至代码块开始 +action.EditorCodeBlockEndWithSelection.text=在保持选区的情况下将文本光标移至代码块结束 +action.EditorMatchBrace.text=将文本光标移至匹配的大括号 +action.EditorDeleteToWordStart.text=删除到词首 +action.EditorDeleteToWordStartInDifferentHumpsMode.text=在不同的 "CamelHumps" 模式下删除到词首 +action.EditorDeleteToWordEnd.text=删除到词尾 +action.EditorDeleteToWordEndInDifferentHumpsMode.text=在不同的 "CamelHumps" 模式下删除到词尾 +action.EditorDeleteLine.text=删除行 +action.EditorKillToWordStart.text=终止至词首 +action.EditorKillToWordEnd.text=终止至词尾 +action.EditorKillRegion.text=终止所选区域 +action.EditorKillRingSave.text=保存至终止环 +action.EditorDuplicate.text=重复行或选区 +action.EditorDuplicateLines.text=重复整行 +action.EditorSortLines.text=排序行 +action.EditorReverseLines.text=反转行 +action.EditorSelectWord.text=扩展选区 +action.EditorUnSelectWord.text=收缩选区 +group.EditorBidiTextDirection.text=双向文本基础方向 +group.EditorBidiTextDirection.description=混合 LTR/RTL 文本的主要方向 +action.EditorSetContentBasedBidiTextDirection.text=基于内容 +action.EditorSetContentBasedBidiTextDirection.description=方向由初始字符决定 +action.EditorSetLtrBidiTextDirection.text=左到右 +action.EditorSetRtlBidiTextDirection.text=右到左 +action.EditorToggleInsertState.text=切换插入/覆盖 +action.EditorToggleColumnMode.text=列选择模式(_M) +action.EditorToggleColumnMode.description=在当前编辑器中切换列选择模式 +action.EditorToggleShowWhitespaces.text=显示空白(_O) +action.EditorToggleShowWhitespaces.description=在当前编辑器中切换显示空白 +action.EditorToggleShowIndentLines.text=显示缩进参考线(_O) +action.EditorToggleShowIndentLines.description=在当前编辑器中切换显示缩进参考线 +action.EditorToggleShowBreadcrumbs.text=显示路径导航 +action.EditorToggleShowBreadcrumbs.description=在当前编辑器中切换显示路径导航栏 +action.EditorToggleShowLineNumbers.text=显示行号(_I) +action.EditorToggleShowLineNumbers.description=在当前编辑器中切换显示行号 +action.EditorToggleShowGutterIcons.text=显示间距图标 (_O) +action.EditorToggleShowGutterIcons.description=在当前编辑器中切换显示间距图标 +action.EditorToggleUseSoftWraps.text=自动换行 +action.EditorToggleUseSoftWraps.description=在当前编辑器中切换使用自动换行 +action.EditorToggleUseSoftWrapsInPreview.text=自动换行预览编辑器 +action.EditorToggleUseSoftWrapsInPreview.description=在预览编辑器中切换使用自动换行 +action.RestoreFontPreviewTextAction.text=恢复预览文本 +action.fontEditorPreview.ToggleBoldFont.text=切换加粗的字体 +action.EditorConsoleScrollToTheEnd.text=滚动到结尾 +action.EditorIncreaseFontSize.text=增大字体大小 +action.EditorDecreaseFontSize.text=减小字体大小 +action.ViewImportPopups.text=显示导入弹出窗口 +action.ViewImportPopups.description=在当前文件中切换显示导入弹出窗口 +action.EditorScrollToCenter.text=滚动到中心 +action.EditorToggleCase.text=切换大小写 +action.EditorJoinLines.text=连接行 +action.EditorSelectLine.text=扩展行选区 +action.EditorSelectSingleLineAtCaret.text=选择文本光标处的一行 +action.EditorSplitLine.text=拆分行 +action.EditorStartNewLine.text=开始新行 +action.EditorStartNewLineBefore.text=在当前位置之前开始新行 +action.EditorCompleteStatement.text=补全当前语句 +action.ExpandAll.text=全部展开 +action.CollapseAll.text=全部收起 +action.ExportToTextFile.text=导出到文本文件 +action.ExpandTreeNode.text=展开树节点 +action.CollapseTreeNode.text=收起树节点 +action.FullyExpandTreeNode.text=完全展开树节点 +group.GenerateGroup.text=生成(_G) +action.GenerateTestMethod.text=测试方法 +action.GenerateSetUpMethod.text=SetUp 方法 +action.GenerateBeforeClassMethod.text=BeforeClass 方法 +action.GenerateTearDownMethod.text=TearDown 方法 +action.GenerateAfterClassMethod.text=AfterClass 方法 +action.GenerateDataMethod.text=形参方法 +action.GenerateConstructor.text=构造函数 +action.GenerateConstructor.description=生成构造函数 +action.GenerateCreateUI.text=createUI(...) +action.GenerateCreateUI.description=生成 createUI(...) +action.GenerateGetter.text=Getter +action.GenerateGetter.description=生成 getter +action.GenerateSetter.text=Setter +action.GenerateSetter.description=生成 setter +action.GenerateGetterAndSetter.text=Getter 和 Setter +action.GenerateGetterAndSetter.description=生成 getter 和 setter +action.GenerateEquals.text=equals() 和 hashCode() +action.GenerateEquals.description=生成 equals() 和 hashCode() +action.OverrideMethods.text=重写方法(_O)… +action.OverrideMethods.description=在当前类中重写基类方法 +action.ImplementMethods.text=实现方法(_I)… +action.ImplementMethods.description=在当前类中实现基接口/类方法 +action.DelegateMethods.text=委托方法…(_D) +action.DelegateMethods.description=为字段/getter 生成委托方法 +action.GenerateSuperMethodCall.text=super 方法调用 +action.GenerateSuperMethodCall.description=生成 super 方法调用 +action.NextDiff.text=下一个差异 +action.NextDiff.description=移至下一个差异 +action.PreviousDiff.text=上一个差异 +action.PreviousDiff.description=移至上一个差异 +action.Diff.NextConflict.text=下一个冲突 +action.Diff.NextConflict.description=移至下一个未解决的冲突 +action.Diff.PreviousConflict.text=上一个冲突 +action.Diff.PreviousConflict.description=移至上一个未解决的冲突 +action.GotoChangedFile.text=转到更改的文件… +action.GotoChangedFile.description=按名称快速导航到更改的文件 +action.Refresh.text=刷新(_E) +action.CheckinProject.text=提交(_I)… +action.CheckinFiles.text=提交文件(_I) +action.CheckinFiles.description=提交选中的文件或目录 +action.UpdateFiles.text=更新(_U) +action.CheckStatusForFiles.text=检查状态(_K) +action.Annotate.text=注解(_N) +action.Annotate.with.Blame.text=使用 Git 追溯注解(_N) +action.Annotate.synonym1=追溯 +action.Annotate.description=显示每行的最新修改日期和作者(也称为“追溯”) +action.Compare.SameVersion.text=与同一个仓库版本进行比较(_Y) +action.Compare.LastVersion.text=与最新的仓库版本进行比较(_V) +action.Compare.Selected.text=比较修订(_R)… +group.NewGroup.text=新建(_N) +group.NewElement.text=新建(_N) +group.NewElementMenu.text=新建(_N) +group.NewElementInMenuGroup.text=新建(_N) +group.WeighingNewGroup.text=新建(_N) +action.NewClass.text=Java 类 +action.NewFile.text=文件 +action.NewDir.text=目录/软件包 +action.NewFromTemplate.text=从模板 +action.ImportModule.text=来自现有源的模块… +action.ProjectFromVersionControl.text=来自版本控制的项目… +action.ImportProject.text=来自现有源的项目… +action.SaveAsNewFormat.text=另存为基于目录的格式… +action.JShell.Console.text=JShell 控制台… +action.JShell.Console.description=启动 JShell 控制台 +action.ChangesView.GroupBy.Module.text=模块 +action.Actions.ActionsPlugin.GenerateToString.text=to_String() +action.Actions.ActionsPlugin.GenerateToString.description=生成 toString() 方法 +action.DumpThreads.text=获取线程转储 +action.Debugger.ShowRelatedStack.text=显示相关堆栈… +action.Debugger.ShowTypes.text=显示类型 +action.Debugger.AddSteppingFilter.text=添加步进筛选器… +action.Debugger.StepOutOfBlock.text=单步跳出代码块 +action.Debugger.CreateRenderer.text=创建… +action.Debugger.CreateRenderer.XDebuggerTreeInlayPopup.text=创建呈现器 +action.Debugger.MuteRenderers.text=静默呈现器 +action.Debugger.AsyncStacks.text=异步堆栈跟踪 +action.Debugger.SwitchToTheNextContext.text=切换到下一个停止的断点 +action.Debugger.CallTracer.text=跟踪调用 +action.Debugger.ReloadFile.text=编译并重新加载文件 +action.MemoryView.ShowInstancesFromDebuggerTree.text=显示实例 +action.Memory.CalculateRetainedSize.text=计算保留大小… +action.MemoryView.ShowAllocationStackTrace.text=跳转到分配位置 +action.MemoryView.ShowOnlyWithInstances.text=仅显示实例 +action.MemoryView.ShowOnlyTracked.text=仅显示跟踪类 +action.MemoryView.EnableTrackingWithClosedWindow.text=启用具有隐藏内存视图的跟踪 +action.MemoryView.ShowInstances.text=显示实例 +action.MemoryView.ShowNewInstances.text=显示新实例 +action.MemoryView.JumpToTypeSource.text=跳转到类型源 +action.MemoryView.TrackingAction.NewInstancesTracking.text=跟踪新实例 +action.Diff.ShowDiff.text=显示差异 +action.Diff.ShowDiff.description=比较文件或修订。 +action.CompareTwoFiles.text=比较文件(_F) +action.CompareTwoFiles.description=比较两个所选文件或文件夹 +action.CompareFileWithEditor.text=与编辑器比较文件(_M) +action.CompareFileWithEditor.description=将所选文件与编辑器中的文件进行比较 +action.JumpToColorsAndFonts.text=跳转到颜色和字体 +action.JumpToColorsAndFonts.description=跳转到文本光标处的颜色和字体选项 +group.ViewAppearanceGroup.text=外观(_A) + +group.LocalHistory.text=本地历史记录(_H) +action.LocalHistory.ShowHistory.text=显示历史记录(_H) +action.LocalHistory.ShowHistory.GoToAction.text=显示本地历史记录 +action.LocalHistory.ShowSelectionHistory.text=显示选区的历史记录 +action.LocalHistory.ShowSelectionHistory.GoToAction.text=显示选中的本地历史记录 +action.LocalHistory.PutLabel.text=放置标签(_L)… + +group.VcsGroups.text=_Git +group.VcsGlobalGroup.text=VCS 组 +action.Vcs.UpdateProject.text=更新项目(_U) +group.VcsGroup.text=版本控制 +group.VcsFileGroupPopup.text=版本控制组 +group.FileMenu.text=文件(_F) +action.NewProject.text=项目(_P)… +action.NewProject.description=从头创建一个新项目 +action.NewModule.text=模块(_M)… +action.NewModule.description=从头创建新模块并将其添加到项目 +action.ImportProject.description=为包含现有源的目录创建项目结构或者转换现有项目模型 +action.ImportModule.description=从包含现有源的目录或者现有项目模型导入模块 +action.OpenFile.text=打开(_O)… +action.OpenFile.description=在编辑器中打开项目或文件 +group.reopen.win.text=重新打开项目(_R) +group.reopen.mac.text=打开最近(_R) +group.$LRU.text=打开最近(_R) +group.$LRU.GoToAction.text=打开最近的项目 +action.ManageRecentProjects.text=管理项目… +group.$LRU.description=最近打开项目的列表 +action.CloseProject.text=关闭项目(_J) +action.CloseProject.description=关闭当前项目 +action.CloseAllProjects.text=关闭所有项目 +action.CloseAllProjects.description=关闭所有项目 +action.CloseOtherProjects.text=关闭其他项目 +action.CloseOtherProjects.description=关闭其他项目 +action.ShowProjectStructureSettings.text=项目结构… +action.ShowProjectStructureSettings.description=配置项目结构 +action.SaveAll.text=全部保存(_S) +action.SaveAll.description=保存所有文件和设置 +action.ExportSettings.text=导出设置(_E)… +action.ExportSettings.description=导出全局设置 +action.ImportSettings.text=导入设置… +action.ImportSettings.description=导入全局设置 +action.RestoreDefaultSettings.text=恢复默认设置… +action.RestoreDefaultSettings.description=将所有设置重置为其默认值 +action.ExportToEclipse.text=导出到 Eclipse… +action.ExportToEclipse.description=为每个模块创建 Eclipse 项目 +action.Synchronize.text=从磁盘全部重新加载 +action.Synchronize.description=检测所有外部更改的文件,并从磁盘重新加载 +action.InvalidateCaches.text=清除缓存… +action.InvalidateCaches.description=在下次启动时强制重新构建所有缓存和索引 +action.RestartIde.text=重启 IDE… +action.ExportToHTML.text=将文件或选区导出到 HTML(_H)… +action.ExportToHTML.MainMenu.text=将文件或选区导出到 HTML(_H)… +action.ExportToHTML.description=以 HTML 格式保存文件内容,包括语法颜色 +action.Print.text=打印(_P)… +action.Print.description=打印文件 +action.Exit.text=退出(_X) +action.Exit.description=退出 IDE +group.EditMenu.text=编辑(_E) +group.FindMenuGroup.text=查找(_F) +action.undo.text=撤消{0}(_U) +action.undo.description=撤消{0} +action.undo.description.empty=最后操作 +action.redo.text=重做{0}(_R) +action.redo.description=重做{0} +action.redo.description.empty=最后的撤消操作 +action.$Cut.text=剪切(_T) +action.$Cut.description=剪切到剪贴板 +action.$Copy.text=复制(_C) +action.$Copy.description=复制到剪贴板 +action.$SearchWeb.text=使用 Google 搜索(_S) +action.$SearchWeb.description=使用 Google 搜索选区 +action.CopyUrl.text=复制 URL +action.CopyUrl.description=将文本光标下的 URL 复制到剪贴板 +action.CopyPaths.text=复制路径(_O) +action.CopyPaths.description=将与所选文件或目录对应的路径复制到剪贴板 +action.CopyReference.text=复制引用(_Y) +action.CopyReference.description=复制对所选类、方法、函数或所选文件的相对路径的引用 +action.CopySettingsPath.text=复制设置路径 +action.CopySettingsPath.mac.text=复制首选项路径 +action.CopySettingsPath.description=复制选定可配置选项的相对路径 +action.CopyAsRichText.text=复制为富文本 +action.CopyAsRichText.description=将选区复制到剪贴板作为富文本(以 RTF 和 HTML 格式) +action.CopyAsPlainText.text=复制为纯文本 +action.CopyAsPlainText.description=将选区复制到剪贴板作为纯文本 +group.Copy.Paste.Special.text=复制/粘贴特殊 +group.Copy.Paste.Special.description=复制/粘贴特殊编辑器操作 +action.$Paste.text=粘贴(_P) +action.$Paste.description=从剪贴板粘贴 +action.PasteMultiple.text=从历史记录粘贴(_E)… +action.PasteMultiple.description=从最近的剪贴板粘贴 +action.$SelectAll.text=全选(_A) +action.$SelectAll.description=全选 +action.NewElement.text=新建…(_N) +action.NewElement.description=创建新的类、接口、文件或目录 +action.NewElementSamePlace.text=在当前目录新建(_N)… +action.NewElementSamePlace.description=在此目录中创建新的类、接口、文件或目录 +action.$Delete.text=删除(_D) +action.$Delete.description=删除所选条目 +action.Find.text=查找(_F)… +action.Find.description=在活动编辑器中查找字符串 +action.Replace.text=替换(_R)… +action.Replace.description=使用另一个字符串替换活动编辑器中的字符串 +action.FindNext.text=查找下一个/移至下一个匹配项(_N) +action.FindNext.MainMenu.text=查找下一个匹配项(_N) +action.FindNext.description=重复上一次查找/替换操作,或移至所选文本的下一个匹配项 +action.FindPrevious.text=查找上一个/移至上一个匹配项(_V) +action.FindPrevious.MainMenu.text=查找上一个匹配项(_V) +action.FindPrevious.description=反方向重复上一次查找/替换操作,或移至所选文本的上一个匹配项 +action.FindWordAtCaret.text=查找文本光标处的字 +action.FindWordAtCaret.description=查找文本光标处单词的下一个匹配项 +action.ToggleFindInSelection.text=仅在选择范围内搜索 +action.IncrementalSearch.text=增量搜索(_L) +action.IncrementalSearch.description=启动增量搜索(输入时搜索字符串),IntelliJ IDEA 6.0 实现。 +action.FindUsages.text=查找用法(_U) +action.FindUsages.description=查找文本光标处符号的用法 +action.ShowUsages.text=显示用法(_S) +action.ShowUsages.description=显示文本光标处符号的用法 +action.ShowSettingsAndFindUsages.text=查找用法设置… +action.ShowSettingsAndFindUsages.description=为“查找用法”操作选择范围和编辑选项 +action.FindUsagesInFile.text=在文件中查找用法(_I) +action.FindUsagesInFile.description=在活动编辑器中查找文本光标处符号的用法 +action.HighlightUsagesInFile.text=高亮显示文件中的用法(_H) +action.HighlightUsagesInFile.description=在活动编辑器中高亮显示文本光标处符号的用法 +action.HighlightUsagesInFile.not.ready=此用法搜索需要索引,在索引构建之前无法执行 +action.FindInPath.text=在文件中查找… +action.FindInPath.description=在多个文件中查找字符串 +action.FindInPath.synonym1=在路径中查找 +action.ReplaceInPath.text=在文件中替换(_A)… +action.ReplaceInPath.synonym1=在路径中替换(_A) +action.ReplaceInPath.description=在多个文件中使用另一个字符串替换一个字符串 +group.ViewMenu.text=视图(_V) +action.ViewToolBar.text=工具栏(_T) +action.ViewObsoleteToolbarAction.text=工具栏经典 +action.ViewObsoleteNavBarAction.text=导航栏 +action.ViewNewToolbarAction.text=工具栏 +action.ViewToolBar.description=显示/隐藏主工具栏 +action.QuickPreview.text=快速预览 +action.ViewStatusBar.text=状态栏(_S) +action.ViewStatusBar.description=显示/隐藏状态栏 +group.ViewStatusBarWidgetsGroup.text=状态栏微件(_W) +group.ViewToolbarNewGroup.text=主工具栏 +group.ViewStatusBarWidgetsGroup.description=显示/隐藏状态栏微件 +action.ViewMainMenu.text=主菜单 +action.ViewMainMenu.description=显示/隐藏主菜单 +action.ViewToolButtons.text=工具窗口 +action.ViewToolButtons.description=显示/隐藏工具窗口按钮 +action.ViewNavigationBar.text=导航栏(_V) +action.ViewNavigationBar.description=显示/隐藏导航栏 +action.ViewNavigationBar.NavBar.text=显示导航栏 +action.ViewMembersInNavigationBar.text=导航栏中的成员 +action.ViewMembersInNavigationBar.description=在导航栏中显示/隐藏声明 +action.ViewMembersInNavigationBar.NavBar.text=在导航栏中显示成员 +action.ViewInplaceComments.text=树视图中的详细信息 +action.ViewInplaceComments.description=在树视图中显示/隐藏额外信息 +action.FileStructurePopup.text=文件结构(_I) +action.FileStructurePopup.description=当前文件的弹出窗口结构,用于快速导航 +action.ShowFilePath.text=文件路径(_P) +action.ShowFilePath.description=当前文件的弹出窗口路径,用于在外部文件管理器中打开 +action.ShowFilePath.file=文件路径(_P) +action.ShowFilePath.directory=目录路径(_P) +action.SelectIn.text=选择(_L)… +action.SelectIn.description=在任意视图下选择当前的类或方法 +action.FixDocComment.text=修正文档注释 +action.FixDocComment.description=生成或修正当前上下文的文档注释 +action.QuickJavaDoc.text=快速文档(_D) +action.QuickJavaDoc.description=显示包含文本光标处符号的文档的弹出窗口 +action.QuickImplementations.text=快速定义(_K) +action.QuickImplementations.description=显示包含符号(及其实现)内容的弹出窗口 +action.QuickTypeDefinition.text=快速类型定义 +action.QuickTypeDefinition.description=显示包含文本光标处符号的类型定义的弹出窗口 +action.ToggleRenderedDocPresentation.text=切换渲染视图 +action.ToggleRenderedDocPresentation.description=在查看源代码和文档注释的渲染表示之间切换 +action.ToggleRenderedDocPresentationForAll.text=渲染所有文档注释 +action.ToggleRenderedDocPresentationForAll.description=切换到所有文档注释的渲染视图 +action.ShowSiblings.text=显示同级 +action.ShowSiblings.description=显示包含符号同级内容的弹出窗口 +action.ParameterInfo.text=形参信息(_P) +action.ParameterInfo.description=显示文本光标处方法的参数 +action.ToggleInlineHintsAction.text=切换形参名称提示 +action.ToggleInlineHintsAction.description=切换形参名称提示 +action.ToggleCompletionHintsAction.text=补全时显示形参名称提示 +action.ShowParameterHintsSettings.text=提示设置… +action.ShowParameterHintsSettings.description=打开形参名称提示设置 +action.ExpressionTypeInfo.text=类型信息(_E) +action.ExpressionTypeInfo.description=显示所选表达式的类型 +action.EditorContextInfo.text=上下文信息(_C) +action.EditorContextInfo.description=不可见时,显示当前方法或类声明 +action.ShowErrorDescription.text=错误描述(_R) +action.ShowErrorDescription.description=显示文本光标处错误或警告的说明 +action.EditSource.text=跳转到源代码(_J) +action.EditSource.description=打开所选条目的编辑器并使之获得焦点 +action.EditSourceInNewWindow.text=在新窗口中打开源 +action.EditSourceInNewWindow.description=在新窗口打开所选条目的编辑器并使之获得焦点 +action.EditSourceInNewWindow.EditorTabPopup.text=将标签页移动到新窗口 +action.ViewSource.text=显示源(_W) +action.ViewSource.description=打开所选条目的编辑器 +action.ExternalJavaDoc.text=外部文档(_X) +action.ExternalJavaDoc.description=打开包含所选条目文档的浏览器 + +group.SwitcherAndRecentFiles.text=切换器(RecentFiles)操作 +action.Switcher.text=切换器 +action.SwitcherForward.text=选择下一行 +action.SwitcherBackward.text=选择上一行 +action.SwitcherRecentEditedChangedToggleCheckBox.text=切换仅更改的文件 +action.SwitcherIterateItems.text=迭代最近的文件 +action.SwitcherNextProblem.text=选择下一个问题文件 +action.SwitcherPreviousProblem.text=选择上一个问题文件 +action.RecentFiles.text=最近的文件(_N) +action.RecentFiles.description=显示最近查看文件的列表 +action.RecentChangedFiles.text=最近更改的文件 +action.RecentChangedFiles.description=显示最近更改文件的列表 +action.RecentLocations.text=最近的位置 +action.RecentLocations.description=显示最近查看/更改的位置列表 +action.QuickChangeScheme.text=快速切换方案(_Q)… +action.QuickChangeScheme.description=更改当前的代码样式方案、颜色与字体方案、键盘映射或外观 +action.TypeHierarchy.text=类型层次结构(_H) +action.TypeHierarchy.description=浏览所选类的层次结构 +action.MethodHierarchy.text=方法层次结构(_M) +action.MethodHierarchy.description=浏览所选方法的方法层次结构 +action.CallHierarchy.text=调用层次结构(_Y) +action.CallHierarchy.description=浏览所选方法的调用层次结构 +group.FoldingGroup.text=折叠 +group.ExpandToLevel.text=展开到级别(_E) +action.ExpandToLevel1.text=_1 +action.ExpandToLevel2.text=_2 +action.ExpandToLevel3.text=_3 +action.ExpandToLevel4.text=_4 +action.ExpandToLevel5.text=_5 +group.ExpandAllToLevel.text=全部展开到级别(_L) +action.ExpandAllToLevel1.text=_1 +action.ExpandAllToLevel2.text=_2 +action.ExpandAllToLevel3.text=_3 +action.ExpandAllToLevel4.text=_4 +action.ExpandAllToLevel5.text=_5 +action.ExpandRegion.text=展开(_X) +action.ExpandRegion.description=展开文本光标处的折叠区域 +action.ExpandRegionRecursively.text=递归展开(_R) +action.ExpandRegionRecursively.description=递归展开文本光标处的块 +action.CollapseRegion.text=收起(_C) +action.CollapseRegion.description=收起文本光标处的折叠区域 +action.CollapseRegionRecursively.text=递归折叠(_A) +action.CollapseRegionRecursively.description=递归收起文本光标处的块 +action.ExpandAllRegions.text=全部展开(_E) +action.ExpandAllRegions.description=展开所有折叠区域(选区中) +action.CollapseAllRegions.text=全部收起(_A) +action.CollapseAllRegions.description=收起所有折叠区域(选区中) +action.ExpandDocComments.text=展开文档注释(_D) +action.ExpandDocComments.description=展开所有文档注释 +action.CollapseDocComments.text=收起文档注释(_O) +action.CollapseDocComments.description=收起所有文档注释 +action.CollapseSelection.text=折叠选区/移除区域(_S) +action.CollapseSelection.description=折叠所选块 +action.CollapseBlock.text=折叠代码块(_B) +action.CollapseBlock.description=折叠当前代码块 +action.RecentChanges.text=最近的变更(_E) +group.GoToMenu.text=导航(_N) +action.SearchEverywhere.text=随处搜索 +action.SearchEverywhereToolbar.text=随处搜索 +action.SearchEverywhereToolbarHotKey.text=随处搜索 Shift+Shift +action.SearchEverywhere.description=搜索类、文件、工具窗口、操作和偏好设置 +action.SmartSelect.text=扩展选区 +action.SmartUnSelect.text=收缩选区 +action.GotoClass.text=类…(_C) +action.GotoClass.description=通过名称快速导航到类 +action.GotoFile.text=转到文件… +action.GotoFile.MainMenu.text=文件(_F)… +action.GotoFile.description=通过名称快速导航到文件 +action.GotoSymbol.text=转到符号… +action.GotoSymbol.MainMenu.text=符号(_S)… +action.GotoSymbol.description=通过名称快速导航到任意符号 +action.GotoCustomRegion.text=自定义折叠… +action.GotoAction.text=查找操作(_F)… +action.GotoAction.description=通过名称快速导航到操作 +action.GotoLine.text=转到行:列… +action.GotoLine.MainMenu.text=行:列(_L)… +action.GotoLine.description=通过编号在编辑器中导航到某一行(和/或列) +action.GotoDeclarationOnly.text=声明 +action.GotoDeclarationOnly.description=导航到文本光标处符号的声明 +action.GotoDeclaration.text=前往声明或用法 +action.GotoDeclaration.MainMenu.text=声明或用例(_D) +action.GotoDeclaration.description=导航到文本光标处符号的声明或显示其用法 +action.GotoImplementation.text=转到实现(_M) +action.GotoImplementation.MainMenu.text=实现(_M) +action.GotoImplementation.description=导航到所选类或方法的实现 +action.GotoNextElementUnderCaretUsage.text=下一个高亮显示用例 +action.GotoNextElementUnderCaretUsage.description=导航到下一个高亮的元素用法 +action.GotoPrevElementUnderCaretUsage.text=转到上一个高亮的元素用法 +action.GotoPrevElementUnderCaretUsage.description=导航到上一个高亮的元素用法 +action.GotoTypeDeclaration.text=转到类型声明 +action.GotoTypeDeclaration.MainMenu.text=类型声明(_T) +action.GotoTypeDeclaration.description=导航到文本光标处符号类型的声明 +action.GotoSuperMethod.text=转到 Super 方法 +action.GotoSuperMethod.MainMenu.text=super 方法(_U) +action.GotoSuperMethod.description=导航到当前方法重写或实现的方法的声明 +action.GotoTest.text=转到测试 +action.GotoTest.MainMenu.text=测试(_E) +action.GotoTest.description=导航到所选类的测试 +action.GotoTestSubject.text=转到测试主题(_E) +action.GotoTestSubject.MainMenu.text=测试对象(_E) +action.GotoTestSubject.description=导航到所选测试的对象 +action.GotoNextError.text=下一个高亮显示错误(_N) +action.GotoNextError.description=在活动编辑器中导航到下一个高亮显示的错误 +action.GotoPreviousError.text=上一个高亮显示错误(_P) +action.GotoPreviousError.description=在活动编辑器中导航到上一个高亮显示的错误 +action.GotoRelated.text=相关文件(_R)… +action.GotoRelated.description=导航到一个相关或链接的符号 +action.MethodDown.text=下一个方法(_E) +action.MethodDown.description=在活动编辑器中导航到下一个方法 +action.MethodUp.text=上一个方法(_I) +action.MethodUp.description=在活动编辑器中导航到上一个方法 +action.GotoNextBookmark.text=下一个书签(_X) +action.GotoNextBookmark.description=在活动编辑器中导航到下一个书签 +action.GotoPreviousBookmark.text=上一个书签(_R) +action.GotoPreviousBookmark.description=在活动编辑器中导航到上一个书签 +action.Back.text=后退(_B) +action.Back.description=撤消上次导航操作 +action.Forward.text=前进(_W) +action.Forward.description=恢复上次撤消的导航操作 +action.JumpToLastChange.text=最后编辑位置(_O) +action.JumpToLastChange.description=在最近的变更点中移动 +action.JumpToNextChange.text=下一个编辑位置 +action.JumpToNextChange.description=在最近的变更点中移动 +action.PreviousOccurence.text=上一个匹配项(_O) +action.PreviousOccurence.description=导航到上一个匹配项 +action.NextOccurence.text=下一个匹配项(_X) +action.NextOccurence.description=导航到下一个匹配项 +action.VcsShowCurrentChangeMarker.text=文本光标下的变更(_H) +action.VcsShowCurrentChangeMarker.description=显示当前所选变更的弹出窗口 +action.VcsShowNextChangeMarker.text=下一个变更(_H) +action.VcsShowNextChangeMarker.description=转到下一个变更 +action.VcsShowPrevChangeMarker.text=上一个变更(_A) +action.VcsShowPrevChangeMarker.description=转到上一个变更 +group.CodeMenu.text=代码(_C) +action.SurroundWith.text=环绕方式(_S)… +action.SurroundWith.description=使用 if/while/try-catch 或其他结构环绕所选代码段 +action.Generate.text=生成… +action.Generate.description=生成构造函数、getter 或 setter 方法等 +action.Unwrap.text=解开/移除(_W)… +action.Unwrap.description=安全地解开或移除所选范围 +group.CodeCompletionGroup.text=代码补全(_C) +group.EditorToggleActions.text=活动编辑器 +action.CodeCompletion.text=基本(_B) +action.CodeCompletion.description=补全代码 +action.HippieCompletion.text=循环扩展词(_E) +action.HippieCompletion.description=循环扩展词 +action.HippieBackwardCompletion.text=循环扩展词(向后)(_E) +action.HippieBackwardCompletion.description=循环扩展词(向后) +action.SmartTypeCompletion.text=类型匹配 +action.SmartTypeCompletion.description=基于预期类型补全代码 +action.SmartTypeCompletion.synonym=SmartType +action.ClassNameCompletion.text=第二基本补全 +action.ClassNameCompletion.description=与双击基本补全快捷键相同(可用于补全非导入类名) +action.InsertLiveTemplate.text=插入实时模板(_T)… +action.InsertLiveTemplate.description=显示以指定前缀开头的实时模板的弹出窗口列表 +action.ExpandLiveTemplateByTab.text=按 Tab 展开实时模板 +action.ExpandLiveTemplateCustom.text=展开实时模板/Emmet 缩写 +action.ExpandLiveTemplateCustom.description=使用在编辑器中键入的前缀调用绑定到 '自定义快捷键' 的实时模板 +action.SurroundWithLiveTemplate.text=使用实时模板环绕(_P)… +action.SurroundWithLiveTemplate.description=使用一个模板环绕选区 +action.CommentByLineComment.text=使用行注释进行注释(_L) +action.CommentByLineComment.description=使用行注释注释/取消注释当前行或所选块 +action.CommentByBlockComment.text=使用块注释进行注释(_B) +action.CommentByBlockComment.description=使用块注释注释/取消代码 +action.ReformatCode.text=重新格式化代码(_R) +action.ReformatCode.description=重新格式化代码 +action.ReformatCode.synonym1=格式代码 +action.AutoIndentLines.text=自动缩进行(_A) +action.AutoIndentLines.description=根据代码样式设置缩进当前行或所选块 +action.OptimizeImports.text=优化 import(_Z) +action.OptimizeImports.description=移除未使用的 import 并重新排列/重新组织 import +action.RearrangeCode.text=重新排列代码 +action.RearrangeCode.description=重新排列代码 +action.ShowReformatFileDialog.text=重新格式化文件… +action.ShowRecentTests.text=最近的测试 +action.MoveStatementDown.text=向下移动语句(_W) +action.MoveStatementDown.description=将所选语句向下移动一行 +action.MoveStatementUp.text=向上移动语句(_U) +action.MoveStatementUp.description=将所选语句向上移动一行 +action.MoveElementLeft.text=向左移动元素 +action.MoveElementLeft.description=将当前元素移至包含元素列表的上一个位置 +action.MoveElementRight.text=向右移动元素 +action.MoveElementRight.description=将当前元素移至包含元素列表的下一个位置 +action.MoveLineDown.text=下移行(_W) +action.MoveLineDown.description=将所选行向下移动一行 +action.MoveLineUp.text=上移行(_U) +action.MoveLineUp.description=将所选行向上移动一行 +group.AnalyzeMenu.text=分析(_Z) +action.CodeCleanup.text=代码清理(_C)… +action.CodeCleanup.description=运行清理检查并应用快速修复 +action.SilentCodeCleanup.text=静默代码清理 +action.SilentCodeCleanup.description=运行清理检查并使用当前检查配置文件应用快速修复 +action.InspectCode.text=检查代码(_I)… +action.InspectCode.description=检查代码 +action.InferNullity.text=推断可空性…(_N) +action.InferNullity.description=推断可空性 +action.ViewOfflineInspection.text=查看离线检查结果(_O)… +action.ViewOfflineInspection.description=加载离线检查结果 +action.ShowPackageDeps.text=分析依赖关系(_D)… +action.ShowPackageDeps.MainMenu.text=依赖项(_D)… +action.ShowPackageDeps.description=浏览所选分析项所依赖的代码 +action.ShowBackwardPackageDeps.text=分析反向依赖关系(_B)… +action.ShowBackwardPackageDeps.MainMenu.text=后向依赖项(_B)… +action.ShowBackwardPackageDeps.description=浏览使用的代码所选分析条目 +action.ShowPackageCycles.text=分析循环依赖关系(_C)… +action.ShowPackageCycles.MainMenu.text=循环依赖项(_C)… +action.ShowPackageCycles.description=浏览循环中使用的代码所选分析条目 +action.ShowModulesDependencies.text=分析模块依赖关系(_M)… +action.ShowModulesDependencies.MainMenu.text=模块依赖项(_M)… +action.ShowModulesDependencies.description=显示项目中模块之间的依赖关系 +action.ShowDependenciesOnTarget.text=分析指定目标上的依赖项 +action.ShowDependenciesOnTarget.MainMenu.text=指定目标上的依赖项 +action.GenerateModuleDescriptors.text=生成 module-info 描述符 +action.GenerateModuleDescriptors.description=为项目中的所有模块 module-info 文件 (适用于 Java 9 及更高版本) +action.Unscramble.text=分析堆栈跟踪或线程转储(_S)… +action.Unscramble.description=打开包含可导航堆栈跟踪或线程转储的控制台 +action.IdeScriptingConsole.text=IDE 脚本控制台 +action.IdeScriptingConsole.description=打开 IDE 脚本控制台 +action.NewScratchFile.text=临时文件 +action.NewScratchFile.text.with.new=新建临时文件 +action.NewScratchFile.description=与所选语言创建新的临时文件 +action.NewScratchBuffer.text=新建临时缓冲区 +action.NewScratchBuffer.description=创建新的临时缓冲区或重用现有的临时缓冲区 +action.Scratch.ChangeLanguage.text=更改文件语言 +action.Scratch.ChangeLanguage.description=更改临时文件语言 +group.RefactoringMenu.text=重构(_R) +action.RenameElement.text=重命名(_R)… +action.RenameElement.description=重命名所选符号并更正所有引用 +action.ChangeSignature.text=更改签名(_G)… +action.ChangeSignature.description=更改所选方法或类的签名,并更正所有引用 +action.ChangeTypeSignature.text=类型迁移(_Y)… +action.ChangeTypeSignature.description=更改方法、字段、形参、变量或类类型实参的返回类型的类型,并更正所有引用 +action.MakeStatic.text=设为 static(_T)… +action.MakeStatic.description=将方法或内部类转换为 static 并更正所有引用 +action.ConvertToInstanceMethod.text=转换为实例方法(_O)… +action.ConvertToInstanceMethod.description=将 static 方法转换为实例方法并更正所有引用 +action.Move.text=移动(_M)… +action.Move.description=将选中类、方法、包或 static 成员移动到另一个软件包或类,并更正所有引用 +action.CopyElement.text=复制(_O)… +action.CopyElement.description=创建所选类、文件或目录的副本 +action.SafeDelete.text=安全删除(_D)… +action.SafeDelete.description=删除所选类、方法或字段,并检查使用 +action.ExtractMethod.text=提取方法(_M)… +action.ExtractMethod.description=将所选代码段转换为一个方法 +action.MethodDuplicates.text=查找并替换代码重复项(_C)… +action.MethodDuplicates.field.text=查找字段重复项并替换为引用… +action.MethodDuplicates.method.text=查找方法重复项并替换为调用… +action.MethodDuplicates.description=查找所选范围内可以转换为所选方法/常量的调用的代码 +action.InvertBoolean.text=反转布尔值(_B)… +action.InvertBoolean.description=使方法返回值或变量包含相反的值并更正引用 +action.IntroduceParameterObject.text=引入形参对象(_J)… +action.IntroduceParameterObject.description=使用对象替换方法参数列表 +action.ExtractClass.text=提取委托(_D)… +action.ExtractClass.description=提取委托 +action.IntroduceVariable.text=引入变量(_V)… +action.IntroduceVariable.description=将所选表达式的结果放入变量中 +action.IntroduceField.text=引入字段(_F)… +action.IntroduceField.description=将所选表达式的结果放入字段中 +action.IntroduceConstant.text=引入常量(_C)… +action.IntroduceConstant.description=将所选表达式替换为常量 +action.IntroduceParameter.text=引入形参(_P)… +action.IntroduceParameter.description=将所选表达式转换为方法参数 +action.IntroduceFunctionalParameter.text=引入功能参数(_L)… +action.IntroduceFunctionalParameter.description=通过调用新的函数方法参数来替换所选的语句 +action.IntroduceFunctionalVariable.text=引入函数变量… +action.IntroduceFunctionalVariable.description=通过调用新的函数变量来替换所选的语句 +action.ExtractInterface.text=提取接口(_I)… +action.ExtractInterface.description=从所选类提取接口 +action.ExtractModule.text=提取模块…(_M) +action.ExtractModule.description=从所选类提取模块 +action.ExtractSuperclass.text=提取超类(_U)… +action.ExtractSuperclass.description=从所选类提取超类 +group.IntroduceActionsGroup.text=提取/引入(_X) +action.TurnRefsToSuper.text=尽可能使用接口(_W)… +action.TurnRefsToSuper.description=将类的用法更改为其超类或接口的用法 +action.MembersPullUp.text=向上拉取成员(_L)… +action.MembersPullUp.description=将类成员拉取至超类或实现的接口 +action.MemberPushDown.text=向下推送成员(_S)… +action.MemberPushDown.description=将类成员向下推送到直接继承子类 +action.InheritanceToDelegation.text=将继承替换为委托(_I)… +action.InheritanceToDelegation.description=将继承替换为委托 +action.RenameFile.text=重命名文件… +action.RenameFile.description=重命名所选文件 +action.Inline.text=内联(_N)… +action.Inline.description=内联所选方法或变量 +action.AnonymousToInner.text=将匿名转换成内部(_Y)… +action.AnonymousToInner.description=将匿名类转换为内部类 +action.EncapsulateFields.text=封装字段(_E)… +action.EncapsulateFields.description=使用访问器方法替换所选类中字段的直接访问 +action.ReplaceMethodWithMethodObject.text=用方法对象替换方法(_J)… +action.ReplaceMethodWithMethodObject.description=将方法转换为自己的对象,以便所有参数都成为该对象上的字段 +action.Generify.text=将原始类型转换为泛型… +action.Generify.description=转换代码以使用泛型类型 +action.Migrate.text=迁移… +action.Migrate.description=打开迁移对话框 +action.ExtractInclude.text=包含文件(_I)… +action.ExtractInclude.description=将所选代码段转换为包含的文件 +group.BuildMenu.text=构建(_B) +action.CompileProject.text=重新构建项目(_R) +action.CompileProject.description=重新编译项目中的所有文件 +action.CompileDirty.text=构建项目(_P) +action.CompileDirty.description=编译项目中的所有修改和依赖文件 +action.BuildArtifact.text=构建工件… +action.BuildArtifact.description=选择并构建项目中配置的工件 +action.MakeModule.text=构建模块(_M) +action.MakeModule.description=编译模块中的所有修改和依赖文件 +action.Compile.text=重新构建(_E) +action.CompileFile.text=重新编译(_E) +action.Compile.description=强制重新编译所选模块、文件或软件包 +action.DebugBuildProcess.text=调试构建过程 +action.DebugBuildProcess.description=如果启用,构建过程将在启动时等待调试连接 +group.BuildArtifactsGroup.text=构建工件 +group.RunMenu.text=运行(_U) +group.RunnerActions.text=运行/调试 +action.editRunConfigurations.text=编辑配置(_R)… +action.editRunConfigurations.description=打开“编辑运行/调试配置”对话框 +action.Stop.text=停止 +action.Stop.description=停止进程 +action.StopBackgroundProcesses.text=停止后台进程… +action.StopBackgroundProcesses.description=停止后台进程 +action.Hotswap.text=重新加载已更改的类(_A) +action.Hotswap.description=将所有更改的类重新加载到被调试的应用程序中 (热插拔) +action.StepOver.text=步过(_O) +action.StepOver.description=单步执行至此文件中的下一行 +action.StepInto.text=步入(_I) +action.StepInto.description=单步执行至已执行的下一行 +action.SmartStepInto.text=智能步入(_P) +action.SmartStepInto.description=单步进入特定方法 +action.StepOut.text=步出(_T) +action.StepOut.description=单步执行至从此方法返回后执行的第一行 +action.ForceStepOver.text=强制步过(_V) +action.ForceStepOver.description=步过,在步进前禁用所有断点。 +action.ForceStepInto.text=强制步入(_N) +action.ForceStepInto.description=步入,忽略库、构造函数等的步进筛选器。 +action.RunToCursor.text=运行到光标处(_C) +action.RunToCursor.description=跳转到文本光标所在的行 +action.ForceRunToCursor.text=强制运行到光标(_S) +action.ForceRunToCursor.description=运行到文本光标所在的行,忽略任何断点 +action.Debugger.PopFrame.text=丢帧(_F) +action.Debugger.PopFrame.description=将执行点移回方法调用,从堆栈中丢弃当前的方法帧 +action.Debugger.ForceEarlyReturn.text=强制返回 +action.Debugger.ForceEarlyReturn.description=强制方法在到达 return 语句之前返回 +action.Debugger.ThrowException.text=抛出异常 +action.Debugger.ThrowException.description=抛出一个异常 +action.Debugger.ShowLibraryFrames.text=显示/隐藏库框架 +action.XDebugger.PinToTop.text=固定至顶部 +action.MemoryView.SwitchUpdateMode.text=在调试器停止时更新已加载的类 +action.MemoryView.SwitchUpdateMode.description=在调试器暂停时加载类 (可能会增加调试器步进的开销) +action.MemoryView.ShowOnlyWithDiff.text=仅显示非零差异 +action.Pause.text=暂停程序(_P) +action.Pause.description=挂起程序执行并启用调试 +action.Resume.text=恢复程序(_G) +action.Resume.description=恢复程序执行 +action.EvaluateExpression.text=评估表达式(_X)… +action.EvaluateExpression.description=评估任意表达式 +action.QuickEvaluateExpression.text=快速评估表达式(_Q) +action.QuickEvaluateExpression.description=评估所选表达式 +action.ShowExecutionPoint.text=显示执行点(_X) +action.ShowExecutionPoint.description=显示当前程序执行点 +action.Debugger.RestoreBreakpoint.text=恢复断点 +action.Debugger.RestoreBreakpoint.description=恢复上次删除的断点 +action.ToggleLineBreakpoint.text=切换行断点(_L) +action.ToggleLineBreakpoint.description=切换文本光标处的行断点 +action.ToggleLineBreakpoint.MainMenu.text=行断点(_L) +action.ToggleMethodBreakpoint.text=切换方法断点(_M) +action.ToggleMethodBreakpoint.MainMenu.text=方法断点(_M) +action.ToggleMethodBreakpoint.description=为文本光标处的方法切换方法断点 +action.ToggleFieldBreakpoint.text=切换字段观察点(_F) +action.ToggleFieldBreakpoint.MainMenu.text= 字段观察点 +action.ToggleFieldBreakpoint.description=为文本光标处的字段切换字段观察点 +action.ToggleBreakpointEnabled.text=切换断点启用状态(_B) +action.ToggleBreakpointEnabled.description=启用/禁用当前行的断点 +action.ToggleTemporaryLineBreakpoint.text=切换临时行断点 +action.ToggleTemporaryLineBreakpoint.MainMenu.text=临时行断点 +action.ToggleTemporaryLineBreakpoint.description=切换文本光标处的临时行断点 +action.ViewBreakpoints.text=查看断点(_K)… +action.ViewBreakpoints.description=查看和管理所有断点和观察点 +action.EditBreakpoint.text=编辑断点 +action.ExportThreads.text=导出线程(_H)… +action.ExportThreads.description=将所有线程信息保存到文本文件或剪贴板 +action.Runner.RestoreLayout.text=恢复默认布局 +action.Runner.RestoreLayout.description=将调试器会话的可视元素恢复为默认状态 +group.Runner.Layout.text=布局 +group.Runner.Layout.description=布局配置 +action.Runner.CloseView.text=关闭 +action.Runner.CloseView.description=关闭视图 +action.Runner.CloseOtherViews.text=关闭其他 +action.Runner.CloseOtherViews.description=关闭其他视图 +action.Runner.CloseAllViews.text=关闭所有 +action.Runner.CloseAllViews.description=关闭所有视图 +action.Runner.CloseAllUnpinnedViews.text=关闭所有未固定的 +action.Runner.CloseAllUnpinnedViews.description=关闭所有未固定的选项卡 +action.Runner.FocusOnStartup.text=在启动时获取焦点 +action.Runner.FocusOnStartup.description=当 UI 显示时默认切换到该视图 +action.Debugger.FocusOnBreakpoint.text=在断点时获取焦点 +action.Debugger.FocusOnBreakpoint.description=到达断点时默认切换到此视图 +group.ToolsMenu.text=工具(_T) +action.SaveAsTemplate.text=保存为实时模板(_I)… +action.SaveAsTemplate.description=将所选文本保存为实时模板 +action.SaveFileAsTemplate.text=将文件另存为模板(_L)… +action.SaveFileAsTemplate.description=将当前文件另存为模板 +action.GenerateJavadoc.text=生成 JavaDoc(_D)… +action.GenerateJavadoc.description=运行 JavaDoc 工具 +group.Macros.text=宏(_S) +group.Macros.description=查看、更改、录制、播放宏 +group.StandardMacroActions.text=标准宏操作 +action.PlaybackLastMacro.text=回放上一个宏(_Y) +action.PlaybackLastMacro.description=播放上次使用的宏 +action.StartStopMacroRecording.text=启动/停止宏录制(_R) +action.StartStopMacroRecording.description=启动/停止新宏录制 +action.EditMacros.text=编辑宏(_E) +action.EditMacros.description=配置现有宏 +action.PlaySavedMacrosAction.text=播放保存的宏… +action.PlaySavedMacrosAction.description=播放保存的宏 +group.MacrosGroup.text=宏操作 +action.ValidateXml.text=验证(_V) +action.ValidateXml.description=验证当前的 XML 文件 +action.GenerateDTD.text=从 XML 文件生成 DTD(_X) +action.EmmetPreviousEditPoint.text=上一个 Emmet 编辑点 +action.EmmetPreviousEditPoint.description=转到上一个 Emmet 编辑点 +action.EmmetNextEditPoint.text=下一个 Emmet 编辑点 +action.EmmetNextEditPoint.description=转到下一个 Emmet 编辑点 +action.EmmetUpdateTag.text=使用 Emmet 更新标记 +action.EmmetUpdateTag.description=使用 Emmet 缩写更新现有 HTML 标记 +action.EmmetPreview.text=Emmet 预览 +action.EmmetPreview.description=显示 Emmet 缩写的预览 +action.SurroundWithEmmet.text=使用 Emmet 环绕 +action.SurroundWithEmmet.description=使用 Emmet 缩写环绕选定代码 +group.Emmet.text=Emmet +group.OpenInBrowserEditorContextBarGroupAction.description=打开位置… +action.OpenInBrowser.text=在默认浏览器中打开(_B) +action.OpenInBrowser.description=在默认浏览器中打开所选文件 +action.EscapeEntities.text=编码 XML/HTML 特殊字符 +action.EscapeEntities.description=使用实体转义 XML/HTML 特殊字符 +action.GenerateXmlTag.text=XML 标记… +action.GenerateXmlTag.description=根据架构信息生成新的 XML 标记 +group.NewXmlDescriptor.text=XML 配置文件 +group.NewXml.text=XML +action.DomCollectionControl.Remove.text=移除 +action.DomCollectionControl.Edit.text=编辑 +action.DomCollectionControl.Add.text=添加 +action.DomElementsTreeView.DeleteElement.text=删除元素 +action.DomElementsTreeView.AddElement.text=插入元素 +action.DomElementsTreeView.GotoDomElementDeclarationAction.text=转到元素 +action.Document2XSD.text=从 XSD 架构生成 XML 文档… +action.XSD2Document.text=从 XML 文件生成 XSD 架构… +group.ExternalToolsGroup.text=外部工具 +action.PsiViewer.text=查看 PSI 结构(_V)… +action.PsiViewerForContext.text=查看当前文件的 PSI 结构(_R)… +action.DebugListen.text=抛出调试异常 +action.VirtualFileInfo.text=虚拟文件信息 +action.Merge3Files.text=合并 +action.DecodeBytesAction.text=解码字节… +action.ReloadProjectAction.text=重新加载项目 +action.ShowMainMenu.text=显示主菜单 +action.DumpInspectionDescriptions.text=转储检查描述 +action.DumpIntentionsDescriptions.text=转储意图描述 +group.WindowMenu.text=窗口(_W) +group.ToolWindowsGroup.text=工具窗口(_T) +group.BackgroundTasks.text=后台任务 +action.ShowProcessWindow.text=显示 +action.ShowProcessWindow.description=显示/隐藏后台任务窗口 +action.ShowProcessWindow.double.click=点击以显示/隐藏后台任务窗口 +action.AutoShowProcessWindow.text=自动显示 +action.AutoShowProcessWindow.description=启动任何进程时显示后台任务窗口 +action.StoreDefaultLayout.text=将当前布局存储为默认(_Y) +action.StoreDefaultLayout.description=将当前布局存储为默认 +action.MinimizeCurrentWindow.text=最小化 +action.MinimizeCurrentWindow.description=最小化当前窗口 +action.ZoomCurrentWindow.text=缩放 +action.ZoomCurrentWindow.description=缩放当前窗口 +action.TogglePresentationMode.text.enter=进入演示模式 +action.TogglePresentationMode.text.exit=退出演示模式 +action.TogglePresentationMode.text=切换演示模式 +action.TogglePresentationMode.description=切换演示模式 +action.ToggleDistractionFreeMode.text=切换免打扰模式 +action.ToggleDistractionFreeMode.description=切换免打扰模式 +action.ToggleFullScreen.text.enter=进入全屏 +action.ToggleFullScreen.text.exit=退出全屏 +action.ToggleFullScreen.text=切换全屏模式 +action.ToggleFullScreen.description=切换全屏模式 +action.ToggleZenMode.text=切换 Zen 模式 +action.ToggleZenMode.description=同时切换免打扰和全屏模式 +action.RestoreDefaultLayout.text=恢复默认布局(_F) +action.RestoreDefaultLayout.description=恢复默认布局 +action.HideActiveWindow.text=隐藏活动工具窗口(_D) +action.HideActiveWindow.description=隐藏活动工具窗口 +action.HideSideWindows.text=隐藏本侧工具窗口 +action.HideSideWindows.description=隐藏本侧所有窗口 +action.HideAllWindows.text=隐藏所有工具窗口(_T) +action.HideAllWindows.description=隐藏所有工具窗口 +action.PinToolwindowTab.text=固定活动工具窗口选项卡(_I) +action.PinToolwindowTab.description=固定活动工具窗口选项卡 +action.JumpToLastWindow.text=跳转到上一个工具窗口(_J) +action.JumpToLastWindow.description=激活上一个聚焦的工具窗口 +group.ActiveToolwindowGroup.text=活动工具窗口 +group.TW.ViewModeGroup.text=视图模式 +action.DockPinnedMode.text=停靠固定(_P) +action.DockPinnedMode.description=使工具窗口停靠并固定 +action.DockUnpinnedMode.text=停靠不固定(_U) +action.DockUnpinnedMode.description=使工具窗口停靠但焦点丢失时自动隐藏 +action.UndockMode.text=取消停靠(_D) +action.UndockMode.description=使工具窗口滑动并在焦点丢失时自动隐藏 +action.FloatMode.text=浮动(_F) +action.FloatMode.description=将工具窗口移动到单独的对话框 +action.WindowMode.text=窗口(_W) +action.WindowMode.description=将工具窗口移动到单独的框架 +action.TogglePinnedMode.text=固定模式(_P) +action.TogglePinnedMode.description=固定/取消固定活动工具窗口 +action.ToggleDockMode.text=停靠模式(_E) +action.ToggleDockMode.description=停靠/取消停靠活动工具窗口 +action.ToggleFloatingMode.text=浮动模式(_M) +action.ToggleFloatingMode.description=浮动/取消浮动活动工具窗口 +action.ToggleWindowedMode.text=窗口化模式(_W) +action.ToggleWindowedMode.description=窗口化/取消窗口化活动工具窗口 +action.ToggleSideMode.text=拆分模式 +action.ToggleSideMode.description=开启/关闭工具窗口拆分模式 +action.ToggleContentUiTypeMode.text=选项卡分组 +action.ShowToolbar.text=显示工具栏 +action.ToggleContentUiTypeMode.description=切换内容的标签式/组合式显示 +action.RemoveStripeButton.text=从边栏中移除 +action.RemoveStripeButton.description=从边栏移除工具窗口按钮 +action.ShowContent.text=显示选项卡列表 +action.ShowContent.description=显示一个包含工具窗口选项卡列表的弹出窗口 +action.ShowContent.views.text=显示视图列表 +group.ResizeToolWindowGroup.text=调整大小 +action.ResizeToolWindowLeft.text=延伸至左侧 +action.ResizeToolWindowLeft.description=将活动工具窗口延伸至左侧 +action.ResizeToolWindowRight.text=延伸至右侧 +action.ResizeToolWindowRight.description=将活动工具窗口延伸至右侧 +action.ResizeToolWindowUp.text=延伸至顶部 +action.ResizeToolWindowUp.description=将活动工具窗口延伸至顶部 +action.ResizeToolWindowDown.text=延伸至底部 +action.ResizeToolWindowDown.description=将活动工具窗口延伸至底部 +action.ResizeToolWindowMaximize.text=最大化工具窗口 +action.ResizeToolWindowMaximize.text.alternative=恢复工具窗口大小 +action.IncrementWindowWidth.text=增大宽度 +action.DecrementWindowWidth.text=减小宽度 +action.IncrementWindowHeight.text=增大高度 +action.DecrementWindowHeight.text=减小高度 +action.NextTab.text=选择下一个选项卡(_X) +action.NextTab.description=激活下一个选项卡 +action.PreviousTab.text=选择上一个选项卡(_L) +action.PreviousTab.description=激活上一个选项卡 +action.GoToTab.text=选择选项卡 #{0} +action.GoToTab.description=激活选项卡 #{0} +action.GoToLastTab.text=选择最后一个选项卡 +action.GoToLastTab.description=激活最后一个选项卡 +action.NextEditorTab.text=在多编辑器文件中选择下一个选项卡 +action.PreviousEditorTab.text=在多编辑器文件中选择上一个选项卡 +action.CloseActiveTab.text=关闭活动选项卡(_O) +action.CloseActiveTab.description=关闭活动工具窗口选项卡 +action.PinActiveTab.text=固定活动选项卡(_I) +action.PinActiveTab.description=固定活动编辑器或工具窗口选项卡 +action.PinActiveTabToggle.text=固定活动选项卡 +action.PinActiveTabToggle.description=固定活动编辑器或工具窗口选项卡 +action.PinActiveEditorTab.text=固定活动选项卡(_I) +action.PinActiveEditorTab.description=固定活动编辑器选项卡 +action.CloseEditor.text=关闭活动编辑器(_C) +action.CloseEditor.description=关闭活动编辑器 +action.CloseEditor.EditorPopup.text=关闭 (_C) +action.CloseEditor.EditorTabPopup.text=关闭(_C) +action.CloseAllEditors.text=关闭所有选项卡(_A) +action.CloseAllEditors.description=在活动选项卡组中关闭所有编辑窗口 +action.CloseAllEditorsButActive.text=关闭其他选项卡(_O) +action.CloseAllEditorsButActive.description=除活动编辑窗口外关闭所有其他窗口 +action.CloseAllUnmodifiedEditors.text=关闭未修改选项卡(_U) +action.CloseAllUnmodifiedEditors.description=关闭所有未修改的编辑窗口 +action.CloseAllUnpinnedEditors.text=关闭所有未固定 +action.CloseAllUnpinnedEditors.description=关闭所有未固定的编辑窗口 +action.CloseAllToTheRight.text=关闭右侧选项卡 +action.CloseAllToTheRight.description=关闭右边的所有编辑器 +action.CloseAllToTheLeft.text=关闭左侧选项卡 +action.CloseAllToTheLeft.description=关闭左边的所有编辑器 +action.CloseAllReadonly.text=关闭所有只读选项卡 +action.CloseAllReadonly.description=关闭具有只读文件的所有编辑器 +action.CloseContent.text=关闭选项卡(_C) +action.CloseContent.description=关闭当前焦点的内容 +group.EditorTabsGroup.text=编辑器选项卡(_T) +action.CloseFirstNotification.text=关闭第一个 +action.CloseAllNotifications.text=关闭所有 +group.Notifications.text=通知 +action.SplitVertically.text=向右拆分 +action.SplitVertically.synonym=垂直拆分 +action.SplitVertically.description=将编辑器区域拆分为 2 个选项卡组,然后将当前文件移至右侧组 +action.SplitHorizontally.text=向下拆分 +action.SplitHorizontally.synonym=水平拆分 +action.SplitHorizontally.description=将编辑器区域拆分为 2 个选项卡组,然后将当前文件移至底部组 +action.OpenInRightSplit.description=将编辑器区域拆分为 2 个选项卡组,然后将当前文件打开到右侧组 +action.OpenInRightSplit.text=在右侧拆分部分打开 +action.StretchSplitToTop.text=将编辑器延伸至顶部 +action.StretchSplitToTop.description=将拆分的编辑器延伸至顶部 +action.StretchSplitToLeft.text=将编辑器延伸至左侧 +action.StretchSplitToLeft.description=将拆分的编辑器延伸至左侧 +action.StretchSplitToBottom.text=将编辑器延伸至底部 +action.StretchSplitToBottom.description=将拆分的编辑器延伸至底部 +action.StretchSplitToRight.text=将编辑器延伸至右侧 +action.StretchSplitToRight.description=将拆分的编辑器延伸至右侧 +action.MoveTabRight.text=拆分并右移 +action.MoveTabRight.description=将编辑器区域拆分为 2 个选项卡组,然后将当前选项卡移至右侧组并关闭左侧编辑器 +action.MoveTabDown.text=拆分并下移 +action.MoveTabDown.description=将编辑器区域拆分为 2 个选项卡组,然后将当前选项卡移至底部组并关闭顶部编辑器 +action.SplitChooser.text=通过选择器以拆分方式打开… +action.SplitChooser.description=允许在编辑器中交互选择拆分位置,并在该处打开/移动所选文件 +action.SplitChooser.NextWindow.text=下一个拆分 +action.SplitChooser.PreviousWindow.text=上一个拆分 +action.SplitChooser.Exit.text=退出选择器 +action.SplitChooser.Split.text=拆分 +action.SplitChooser.Duplicate.text=复制 +action.SplitChooser.SplitCenter.text=无拆分 +action.SplitChooser.SplitTop.text=使用顶部拆分或向上切换 +action.SplitChooser.SplitLeft.text=使用左拆分或左切换 +action.SplitChooser.SplitDown.text=使用向下拆分或向下切换 +action.SplitChooser.SplitRight.text=使用右拆分或右切换 +action.ChangeSplitOrientation.text=更改拆分器方向(_R) +action.ChangeSplitOrientation.description=更改拆分器方向 +action.Unsplit.text=取消拆分(_S) +action.Unsplit.description=取消拆分窗口 +action.UnsplitAll.text=取消全部拆分(_N) +action.UnsplitAll.description=移除所有拆分器 +action.NextSplitter.text=转到下一个拆分器(_G) +action.NextSplitter.description=转到下一个拆分窗口 +action.PrevSplitter.text=转到上一个拆分器 +action.PrevSplitter.description=转到上一个拆分窗口 +action.NextProjectWindow.text=下一个项目窗口 +action.NextProjectWindow.description=切换到下一个项目窗口 +action.PreviousProjectWindow.text=上一个项目窗口 +action.PreviousProjectWindow.description=切换到上一个项目窗口 +group.OpenProjectWindows.text=打开项目窗口 +group.HelpMenu.text=帮助(_H) +action.HelpTopics.text=帮助(_H) +action.HelpTopics.description=显示帮助内容 +action.ShowTips.text=每日小技巧(_T) +action.ShowTips.description=学习如何提高编码效率。 +action.DumpFeaturesAndTips.text=转储功能和提示信息(_D) +action.DumpFeaturesAndTips.description=将有关功能和提示文件的信息复制到剪贴板 +action.ProductivityGuide.text=我的工作效率(_P) +action.ProductivityGuide.description=显示工作效率功能使用统计 +action.OnlineDocAction.text=入门指南(_G) +action.OnlineDocAction.description=显示在线文档 +action.WhatsNewAction.text=最新变化(_N) +action.WhatsNewAction.description=了解此版本 IDE 中的新功能 +action.Help.KeymapReference.text=键盘快捷键 PDF(_K) +action.Help.KeymapReference.description=打开带有默认键盘映射参考卡的 PDF 文件。 +action.Help.JetBrainsTV.text=YouTube 上的产品 +action.Help.JetBrainsTV.description=查看介绍 JetBrains 产品功能的简短现场演示。 +action.CheckForUpdate.text=检查更新(_C)… +action.CheckForUpdate.description=检查可用的 IDE 和插件更新 +action.CheckForUpdate.WelcomeScreen.text=检查更新 +action.About.text=关于(_A) +action.About.description=显示有关 IDE 的信息 +action.About.description.specialized=显示有关 {0} 的信息 +group.OtherMenu.text=其他 +group.OtherMenu.description=未正确注册的操作 +group.MainToolBar.text=主工具栏 +group.Bookmarks.text=书签 +group.Bookmarks.Goto.text=转到类型 +group.Bookmarks.Toggle.text=切换类型 + +action.XDebugger.SetValue.text=设置值… +action.XDebugger.SetValue.XDebuggerTreeInlayPopup.text=设置值 +action.XDebugger.SetValue.description=修改所选节点的值 +action.XDebugger.CopyValue.text=复制值 +action.XDebugger.CopyValue.description=将所选节点的值复制到剪贴板 +action.XDebugger.CompareValueWithClipboard.text=与剪贴板比较值 +action.XDebugger.CompareValueWithClipboard.description=将所选节点的值与剪贴板文本进行比较 +action.XDebugger.CopyName.text=复制名称 +action.XDebugger.CopyName.description=将所选节点的名称复制到剪贴板 +action.XDebugger.JumpToSource.text=跳转到源代码 +action.XDebugger.JumpToSource.description=打开所选条目的源 +action.XDebugger.JumpToTypeSource.text=跳转到类型源 +action.XDebugger.JumpToTypeSource.description=打开所选值类型的源 +action.XDebugger.Inspect.text=检查… + +action.Debugger.Tree.EvaluateInConsole.text=在控制台中评估 + +action.XDebugger.RemoveWatch.text=移除监视 +action.XDebugger.RemoveAllWatches.text=移除所有监视 +action.XDebugger.NewWatch.text=新建观察点… +action.XDebugger.EditWatch.text=编辑… +action.XDebugger.CopyWatch.text=复制监视 +action.XDebugger.MoveWatchUp.text=上移监视 +action.XDebugger.MoveWatchDown.text=下移监视 +action.XDebugger.SwitchWatchesInVariables.text=在变量选项卡中显示监视 +action.XDebugger.Inline.text=在编辑器中显示变量值 +action.XDebugger.Inline.description=在编辑器中显示可用的调试器会话值 +action.XDebugger.ToggleSortValues.text=按字母顺序对变量进行排序 +action.XDebugger.ToggleSortValues.description=在调试器视图中按字母顺序排列值 +group.XDebugger.settings.text=设置 + +action.Debugger.AdjustArrayRange.text=调整范围… +action.Debugger.FilterArray.text=筛选… +action.Debugger.ViewEditText.text=查看/编辑文本 +action.Debugger.ViewText.text=查看文本 +action.Debugger.ViewText.description=在单独的窗格中查看所选节点的文本值 +action.Debugger.EditCustomField.text=编辑… +action.Debugger.NewCustomField.text=新建类级别监视… +action.Debugger.RemoveCustomField.text=移除监视 +action.Debugger.EditArrayFilter.text=编辑… +action.Debugger.RemoveArrayFilter.text=移除筛选器 +action.Debugger.ShowReferring.text=显示引用对象… +action.Debugger.CustomizeContextView.text=自定义数据视图… +action.Debugger.CustomizeThreadsView.text=自定义线程视图… +action.Debugger.EditFrameSource.text=EditFrameSource +action.Debugger.EditNodeSource.text=EditNodeSource +action.Debugger.ViewAsGroup.text=查看方式 +action.Debugger.ResumeThread.text=恢复 +action.Debugger.FreezeThread.text=挂起 +action.Debugger.InterruptThread.text=中断 +action.Debugger.MarkObject.text=标记对象… +action.Debugger.MarkObject.unmark.text=取消标记对象 +action.Debugger.MarkObject.description=标记/取消标记对象,以便可以在调试器视图中直观区分 +action.Debugger.AddToWatch.text=添加到监视 +action.Debugger.AddInlineWatch.text=添加内联监视 +action.Debugger.EvaluateInConsole.text=在控制台中评估 +action.XDebugger.UnmuteOnStop.text=在会话完成时取消静音断点 +action.Debugger.AutoRenderer.text=自动 +group.EditorPopupMenu.text=编辑器弹出窗口菜单 +group.EditorPopupMenu.description=编辑器弹出窗口菜单 +group.EditorPopupMenu.GoTo.text=转到 +group.EditorPopupMenu.GoTo.description=转到编辑器弹出窗口菜单组 +action.CompareClipboardWithSelection.text=与剪贴板比较(_B) +action.CompareClipboardWithSelection.description=将当前选区与剪贴板进行比较 +action.ShowBlankDiffWindow.text=打开空白差异窗口 +action.ShowBlankDiffWindow.synonym1=打开空的差异窗口 +action.ShowBlankDiffWindow.synonym2=打开新的差异窗口 +action.ShowBlankDiffWindow.description=并排打开两个编辑器并比较他们的内容 +action.ChangeColorScheme.text=编辑器配色方案 +action.ChangeColorScheme.description=更改当前编辑器配色方案 +action.ChangeCodeStyleScheme.text=代码样式方案 +action.ChangeCodeStyleScheme.description=更改当前代码样式方案 +action.ChangeKeymap.text=键盘映射 +action.ChangeKeymap.description=更改当前键盘映射 +action.ChangeLaf.text=主题 +action.ChangeLaf.description=更改当前主题 +action.ChangeView.text=视图模式 +action.ChangeView.description=更改视图模式 +action.ChangeInspectionProfile.text=错误高亮显示 +action.ChangeInspectionProfile.description=更改当前编辑器检查配置文件 +action.MoveEditorToOppositeTabGroup.text=移至相反的组(_M) +action.MoveEditorToOppositeTabGroup.description=将编辑器移至相反的选项卡组 +action.OpenEditorInOppositeTabGroup.text=在相反的组中打开(_O) +action.OpenEditorInOppositeTabGroup.description=在相反的选项卡组中打开此编辑器的副本 +action.OpenModuleSettings.text=模块设置 +action.ModuleSettings.text=模块设置(_S) +action.ModuleSettings.description=为所选模块打开设置对话框 +group.MoveModuleToGroup.text=将模块移至组 +group.MoveModuleToGroup.description=移动模块(_M) +action.AssociateWithFileType.text=与文件类型关联… +action.AssociateWithFileType.description=将所选文件关联到某种文件类型 +action.RestoreDefaultExtensionScripts.text=重置默认扩展 +action.RestoreDefaultExtensionScripts.description=重置此目录的捆绑扩展 +action.SynchronizeCurrentFile.text=从磁盘重新加载 +action.TypeHierarchy.Class.text=类层次结构 +action.TypeHierarchy.Subtypes.text=子类型层次结构 +action.TypeHierarchy.Supertypes.text=父类型层次结构 +action.MethodHierarchy.ImplementMethodAction.text=实现方法 +action.MethodHierarchy.ImplementMethodAction.description=实现方法(从方法层次结构) +action.MethodHierarchy.OverrideMethodAction.text=重写方法 +action.MethodHierarchy.OverrideMethodAction.description=重写方法(从方法层次结构) +action.Vcs.MoveChangedLinesToChangelist.text=将行移动到另一个更改列表… +action.Vcs.MoveChangedLinesToChangelist.description=将选定行中的更改移到另一个更改列表 +action.Vcs.Diff.ExcludeChangedLinesFromCommit.text=将行包含在提交中 +action.Vcs.Diff.IncludeOnlyChangedLinesIntoCommit.text=仅将这些行包含在提交中 +action.Vcs.Diff.ShowDiffInEditorTab.text=在编辑器选项卡中显示差异 +action.Vcs.Diff.ShowDiffInNewWindow.text=在单独的窗口中显示差异 +action.Vcs.RollbackChangedLines.text=回滚行 +action.Vcs.RollbackChangedLines.description=回滚所选行中的变更 +action.openAssertEqualsDiff.text=查看 assertEquals 差异 +action.UsageView.Rerun.text=重新运行 +action.UsageView.Rerun.description=重新运行搜索 +action.UsageView.Include.text=包含 +action.UsageView.Include.description=将此用法包含到处理中 +action.UsageView.Exclude.text=排除 +action.UsageView.Exclude.description=将此用法从处理中排除 +action.UsageView.Remove.text=移除 +action.UsageView.Remove.description=将此用法从处理中移除 +action.UsageView.ShowRecentFindUsages.text=最近的查找用法(_E) +action.UsageView.ShowRecentFindUsages.description=选择并重新运行最近的查找用法 +group.ShowRecentFindUsagesGroup.text=最近的查找用法 +group.ShowRecentFindUsagesGroup.description=选择并重新运行最近的查找用法 + +action.IntegrateFiles.text=集成 +action.IntegrateFiles.description=集成所选文件或目录 +action.Vcs.IntegrateProject.text=集成项目(_G) +action.Vcs.IntegrateProject.description=集成项目 + +action.ShowNavBar.text=跳转到导航栏(_J) +action.ShowNavBar.ShortText=导航栏 + +group.ProjectView.ToolWindow.SecondaryActions.text=项目视图选项 +action.ProjectView.AbbreviatePackageNames.text=缩写限定软件包名称 +action.ProjectView.AbbreviatePackageNames.description=以简短形式显示限定软件包名称 +action.ProjectView.AutoscrollFromSource.text=始终选择打开的文件 +action.ProjectView.AutoscrollFromSource.description=选择编辑器选项卡时,在项目视图中选择相应的文件 +action.ProjectView.AutoscrollToSource.text=一键打开文件 +action.ProjectView.AutoscrollToSource.description=选择文件后,将其打开进行编辑 +action.ProjectView.OpenInPreviewTab.text=启用预览选项卡 +action.ProjectView.CompactDirectories.text=压缩目录 +action.ProjectView.CompactDirectories.description=如果第一个目录仅包含第二个目录,则将两个类似的目录合并到单个节点中 +action.ProjectView.FlattenModules.text=平展模块 +action.ProjectView.FlattenModules.description=以简单列表显示模块 +action.ProjectView.FlattenPackages.text=平展软件包 +action.ProjectView.FlattenPackages.description=以简单列表显示包 +action.ProjectView.FoldersAlwaysOnTop.text=文件夹总在最前 +action.ProjectView.FoldersAlwaysOnTop.description=单独对文件和文件夹排序 +action.ProjectView.HideEmptyMiddlePackages.text=隐藏空的中间软件包 +action.ProjectView.HideEmptyMiddlePackages.description=隐藏空的中间软件包 +action.ProjectView.ManualOrder.text=手动排序 +action.ProjectView.ManualOrder.description=手动对文件排序 +action.ProjectView.ShowExcludedFiles.text=显示排除的文件 +action.ProjectView.ShowExcludedFiles.description=显示排除的文件 +action.ProjectView.ShowLibraryContents.text=显示库内容 +action.ProjectView.ShowLibraryContents.description=显示库内容 +action.ProjectView.ShowMembers.text=显示成员 +action.ProjectView.ShowMembers.description=显示类成员 +action.ProjectView.ShowModules.text=显示模块 +action.ProjectView.ShowModules.description=显示相应根的模块名称 +action.ProjectView.ShowVisibilityIcons.text=显示可见性图标 +action.ProjectView.ShowVisibilityIcons.description=在元素名称之前显示其可见性的图标 +action.ProjectView.SortByType.text=按类型排序 +action.ProjectView.SortByType.description=单独对不同类型的文件排序 +action.ScopeView.EditScopes.text=编辑范围(_I)… +action.ScopeView.EditScopes.description=编辑范围… +action.ProjectView.FileNesting.text=文件嵌套… +action.ProjectView.FileNesting.description=配置文件嵌套 + +action.CodeInspection.OnEditor.text=使用编辑器设置检查代码(_E) +action.CodeInspection.OnEditor.description=使用编辑器设置检查代码(_E) + +action.SendFeedback.text=提交反馈…(_F) +action.SendFeedback.detailed.description=提交反馈给 {0} +action.OpenLog.text=在编辑器中打开日志 +action.ShowLog.text=在文件管理器中显示日志(_L) +action.ShowLog.Explorer.text=在资源管理器中显示日志(_L) +action.ShowLog.Finder.text=在访达中显示日志(_L) +action.ShowLog.description=打开带日志文件的文件夹 +action.CollectZippedLogs.text=收集日志和诊断数据 +action.CollectZippedLogs.description=将日志和设置压缩到文件中 +action.DeleteOldAppDirs.text=删除过时的 IDE 目录… +action.DeleteOldAppDirs.description=查找以前 IDE 版本中的设置、缓存和日志目录 +action.EditCustomProperties.text=编辑自定义属性… +action.EditCustomProperties.description=打开带有自定义属性文件的编辑器选项卡 +action.EditCustomVmOptions.text=编辑自定义 VM 选项… +action.EditCustomVmOptions.description=打开带有自定义 VM 选项文件的编辑器选项卡 +action.LogDebugConfigure.text=调试日志设置(_E)… +action.LogDebugConfigure.description=启用或禁用额外的日志类别。允许通过请求向支持团队提供更多信息。 +action.TechnicalSupport.text=联系支持(_S)… +action.TechnicalSupport.description=联系 JetBrains 网站上的技术支持 +action.ReportProblem.text=提交错误报告… +action.ReportProblem.description=在 JetBrains 问题跟踪器中提交错误报告 + +action.TextComponent.ClearAction.text=清除文本 +action.TextComponent.ClearAction.description=清除文本组件中的文本 + +action.ChangesView.Refresh.text=刷新 +action.ChangesView.Refresh.MainMenu.text=刷新 VCS 变更 +action.ChangesView.Refresh.description=刷新 VCS 变更 +action.ChangesView.NewChangeList.text=新建变更列表… +action.ChangesView.NewChangeList.description=创建新的变更列表 +action.ChangesView.Revert.text=回滚(_R)… +action.ChangesView.RevertFiles.text=回滚文件(_R)… +action.ChangesView.RemoveChangeList.text=删除变更列表 +action.ChangesView.RemoveChangeList.description=移除变更列表并将所有变更移至其他变更列表 +action.ChangesView.RemoveChangeList.text.template=删除{0,choice,0#变更列表|2#变更列表} +action.ChangesView.RemoveChangeList.description.template=移除{0,choice,0#变更列表|2#变更列表}和移动所有的改变到{1} +action.ChangesView.SetDefault.text=设置活动变更列表 +action.ChangesView.SetDefault.description=设置默认情况下放置新变更的变更列表 +action.ChangesView.Move.text=移至另一个变更列表… +action.ChangesView.Move.Files.text=将文件移动到另一个变更列表… +action.ChangesView.Move.description=将所选变更移至另一个变更列表 +action.ChangesView.Diff.text=显示差异 +action.ChangesView.Diff.description=比较文件或修订 +action.ChangesView.AddUnversioned.text=添加到 VCS +action.ChangesView.AddUnversioned.description=排定将所选文件添加到 VCS 的时间表 +action.ChangesView.RemoveDeleted.text=从 VCS 移除 +action.ChangesView.RemoveDeleted.description=排定将所选文件从 VCS 移除的时间表 +action.ChangesView.Rename.text=编辑变更列表… +action.ChangesView.Rename.description=编辑所选变更列表的名称和描述 +action.ChangesView.CreatePatch.text=从本地更改创建补丁… +action.ChangesView.CreatePatch.description=从所选变更创建补丁 +action.ChangesView.ApplyPatch.text=应用补丁… +action.ChangesView.ApplyPatch.description=将补丁应用到项目的源 +action.ChangesView.ApplyPatchFromClipboard.text=从剪贴板应用补丁… +action.ChangesView.ApplyPatchFromClipboard.description=将补丁应用到项目的源 +action.ChangesView.Shelve.text=搁置变更… +action.ChangesView.Shelve.description=将变更保存到外部补丁文件,并将其从代码中移除 +action.ShelvedChanges.Rename.text=重命名… +action.ShelvedChanges.Rename.description=重命名搁置的变更列表 +action.ChangesView.Browse.text=浏览变更… +action.ChangesView.Browse.description=查看已提交变更的历史记录 +action.ChangesView.Edit.text=签出 +action.ChangesView.Edit.description=签出所选文件进行编辑 +action.ChangesView.CreatePatchFromChanges.text=创建补丁… +action.ChangesView.CreatePatchFromChanges.description=从所选变更创建补丁 +action.ChangesView.CreatePatchToClipboard.text=作为补丁复制到剪贴板 +action.ChangesView.CreatePatchToClipboard.description=从变更创建补丁并将其复制到剪贴板 +action.CommittedChanges.Refresh.text=刷新 +action.CommittedChanges.Refresh.description=刷新已提交变更的列表 +action.CommittedChanges.Filter.text=筛选 +action.CommittedChanges.Filter.description=更改筛选条件 +action.CommittedChanges.Details.text=显示详细信息 +action.CommittedChanges.Details.description=查看所选变更列表的完整信息 +action.CommittedChanges.Clear.text=清除 +action.CommittedChanges.Clear.description=清除缓存的修订版本 +action.IncomingChanges.Refresh.text=刷新 +action.IncomingChanges.Refresh.description=刷新传入变更的列表 +action.FileChooser.TogglePathShowing.text=显示/隐藏路径文本 +action.ChangeFileEncodingAction.text=文件编码 +action.ChangeFileEncodingAction.description=更改文件编码 +action.VcsHistory.ShowAllAffected.text=显示所有受影响的文件 +action.VcsHistory.ShowAllAffected.description=显示选中修订中所做的所有变更 +action.Vcs.Show.Shelf.text=显示 Shelf +action.Vcs.Show.Local.Changes.text=显示本地变更 +group.FileHistory.KeymapGroup.text=文件历史记录 +group.Shelve.KeymapGroup.text=搁置 +action.Vcs.CopyRevisionNumberAction.text=复制修订号 +action.Vcs.CopyRevisionNumberAction.description=将选定提交的修订号复制到剪贴板 +action.VcsToolbarLabelAction.text=VCS 标签 +group.CommitView.ShowOnDoubleClick.text=双击时显示 +action.CommitView.ShowOnDoubleClick.EditorPreview.text=双击时显示差异 +action.CommitView.ShowOnDoubleClick.EditorPreview.ToolwindowPopup.text=差异 +action.CommitView.ShowOnDoubleClick.Source.text=双击时显示源 +action.CommitView.ShowOnDoubleClick.Source.ToolwindowPopup.text=源 +action.CommitView.SwitchToCommitDialog.text=切换到“提交”对话框 +action.Vcs.ToggleAmendCommitMode.text=修正提交 +action.Vcs.ToggleAmendCommitMode.description=修改当前分支的最新提交 +action.ChangesView.ShowCommitOptions.text=显示提交选项 +action.Vcs.ApplySelectedChanges.text=优选所选变更 +action.Vcs.RevertSelectedChanges.text=还原所选变更 +action.Vcs.EditSource.text=编辑源 +action.ChangesView.UnshelveSilently.text=静默取消搁置 +action.ChangesView.UnshelveSilently.description=取消搁置对相应变更列表的变更 +action.ShelvedChanges.CleanMarkedToDelete.text=清理已取消搁置项… +action.ShelvedChanges.CleanMarkedToDelete.description=删除已取消搁置的变更列表 +action.ShelvedChanges.ShowRecentlyDeleted.text=显示最近删除项 +action.ShelvedChanges.ShowRecentlyDeleted.description=显示最近删除的搁置 +action.ShelvedChanges.ShowHideDeleted.description=显示/隐藏已取消搁置项 +action.ShelveChanges.UnshelveWithDialog.text=取消搁置… +action.ShelveChanges.UnshelveWithDialog.description=更正应用补丁的路径并取消搁置 +action.ChangesView.ShelveSilently.text=静默搁置 +action.ChangesView.ShelveSilently.description=搁置对适当的已搁置变更列表的变更 +action.ChangesView.SaveToShelve.text=保存到搁置 +action.ChangesView.SaveToShelve.description=将所选变更复制到搁置的变更列表 +action.ChangesView.GroupBy.Directory.text=目录 +group.ChangesView.GroupBy.text=分组依据 +action.Vcs.QuickListPopupAction.text=VCS 操作弹出窗口… +action.Vcs.QuickListPopupAction.description=包含常用 VCS 操作列表的上下文感知弹出窗口 +action.Vcs.VcsClone.text=从版本控制中获取… +action.Vcs.VcsClone.text.synonym1=签出 +action.Vcs.VcsClone.text.synonym2=克隆 +Vcs.VcsClone.Welcome.text=从版本控制中获取 +Vcs.VcsClone.Tabbed.Welcome.text=从 VCS 获取 +Vcs.VcsClone.Project.text=来自版本控制的项目… +action.Vcs.ShowDiffWithLocal.text=与本地比较 +action.Vcs.ShowDiffWithLocal.description=将选定修订中的版本与当前版本进行比较 +action.Vcs.ShowDiffWithLocal.Before.text=将之前版本与本地版本进行比较 +action.Vcs.ShowDiffWithLocal.Before.description=将之前的选定修订中的版本与当前版本进行比较 +action.Compare.Specified.text=与指定修订比较(_P)… +action.Show.Current.Revision.text=显示当前修订 +group.ChangesView.Changelists.text=变更列表 +separator.Local.History.text=本地历史记录 + +action.AddFrameworkSupport.text=添加框架支持… + +action.Diff.FocusOppositePane.text=选择相对差异窗格 +action.Diff.FocusOppositePane.description=在差异视图中选择相对窗格 +action.Diff.FocusOppositePaneAndScroll.text=在相对差异窗格中选择位置 +action.Diff.FocusOppositePaneAndScroll.description=在差异视图的相对窗格中选择相同的位置 +action.Diff.PrevChange.text=比较上一个文件 +action.Diff.NextChange.text=比较下一个文件 +action.Diff.ApplyLeftSide.text=接受左侧 +action.Diff.ApplyRightSide.text=接受右侧 +action.Diff.AppendLeftSide.text=追加左侧 +action.Diff.AppendRightSide.text=追加右侧 +action.Diff.IgnoreLeftSide.text=忽略左侧 +action.Diff.IgnoreRightSide.text=忽略右侧 +action.Diff.ResolveConflict.text=自动解决 +action.Diff.ApplyNonConflicts.text=应用所有不冲突的变更 +action.Diff.ApplyNonConflicts.Left.text=从左侧应用不冲突的变更 +action.Diff.ApplyNonConflicts.Right.text=从右侧应用不冲突的变更 +action.Diff.MagicResolveConflicts.text=解决简单的冲突 +action.Diff.ComparePartial.Base.Left.text=左和中 +action.Diff.ComparePartial.Base.Right.text=中和右 +action.Diff.ComparePartial.Left.Right.text=左和右 +action.Diff.CompareWithBase.Left.text=基础和左 +action.Diff.CompareWithBase.Result.text=基础和中 +action.Diff.CompareWithBase.Right.text=基础和右 +action.Diff.ComparePartial.Generic={0,choice,0#左|1#中|2#右} 和 {1,choice,0#左|1#中|2#右} + +action.FileChooser.ShowHiddens.text=显示隐藏的文件和目录 +action.FileChooser.ShowHiddens.description=显示隐藏的文件和目录 +action.FileChooser.Refresh.text=刷新 +action.FileChooser.Refresh.description=刷新文件系统树 +action.FileChooser.Delete.text=删除… +action.FileChooser.Delete.description=删除 +action.FileChooser.NewFolder.text=新建文件夹… +action.FileChooser.NewFolder.description=创建新文件夹 +action.FileChooser.NewFile.text=新建文件… +action.FileChooser.NewFile.description=创建新文件 +action.FileChooser.GotoHome.text=主目录 +action.FileChooser.GotoHome.description=转到主目录 +action.FileChooser.GotoDesktop.text=桌面目录 +action.FileChooser.GotoDesktop.description=转到桌面目录 +action.FileChooser.GotoProject.text=项目目录 +action.FileChooser.GotoProject.description=转到项目目录 +action.FileChooser.GotoModule.text=模块目录 +action.FileChooser.GotoModule.description=转到模块目录 + +action.WelcomeScreen.DevelopPlugins.text=插件开发 +action.WelcomeScreen.DevelopPlugins.description=开始开发插件。 +action.WelcomeScreen.OpenProject.text=打开或导入 +action.WelcomeScreen.OpenProject.description=打开文件或项目。您也可以通过拖放到欢迎屏幕来打开项目或编辑文件。 +action.Tabbed.WelcomeScreen.OpenProject.text=打开 +action.WelcomeScreen.CreateNewProject.text=新建项目 +action.WelcomeScreen.CreateNewProject.description=启动“新项目”向导,它将引导您创建一个新项目。 +action.WelcomeScreen.Plugins.text=插件 +action.WelcomeScreen.Plugins.Extensions.text=扩展 +action.WelcomeScreen.Plugins.description=管理已安装的插件,以及从仓库下载新插件 +action.WelcomeScreen.Configure.Import.text=导入设置… +action.WelcomeScreen.Configure.Export.text=导出设置 +action.WelcomeScreen.Configure.RestoreDefault.text=恢复默认设置… +group.WelcomeScreen.Options.text=选项菜单 + +action.CommittedChanges.Revert.text=还原变更 +action.CommittedChanges.Revert.description=将所选变更的反向操作应用于工作副本 + +action.WelcomeScreen.OpenDirectoryProject.text=打开 +action.WelcomeScreen.OpenDirectoryProject.description=开始在指定的文件或目录中编辑代码。 +action.WelcomeScreen.CreateDirectoryProject.text=新建项目 +action.WelcomeScreen.CreateDirectoryProject.description=创建一个新项目。 +action.NewDirectoryProject.text=新建项目… +action.NewDirectoryProject.description=创建一个新项目 +action.NewDirectoryProject.title=创建项目 +action.NewDirectoryProject.cannot.create.dir=无法创建目录 ''{0}''。 +action.NewDirectoryProject.not.empty.dialog.title=目录不为空 +action.NewDirectoryProject.not.empty.dialog.text=目录 ''{0}'' 不为空。想从现有的源创建项目吗? +action.NewDirectoryProject.not.empty.dialog.create.new=从现有的源创建 +action.NewDirectoryProject.not.empty.dialog.open.existing=打开项目 + +action.SliceBackward.text=分析流入此处的数据(_T)… +action.SliceBackward.MainMenu.text=流入此处的数据(_T)… +action.SliceBackward.description=搜索可以分配给所选表达式的值 + +action.SliceForward.text=分析流出此处的数据(_F)… +action.SliceForward.MainMenu.text=流出此处的数据(_F)… +action.SliceForward.description=搜索从此位置转义的值 + +action.ChangeTemplateDataLanguage.text=更改模板数据语言 + +group.FileOpenGroup.text=文件打开操作 +group.FileOtherSettingsGroup.text=新项目设置 +group.FileMainSettingsGroup.text=设置操作 +group.FileSettingsGroup.text=设置操作 +group.ExportImportGroup.text=管理 IDE 设置 +group.PrintExportGroup.text=打印/导出操作 +group.EditSelectGroup.text=编辑器选择操作 +group.EditCreateDeleteGroup.text=编辑器创建/删除操作 +group.CutCopyPasteGroup.text=剪切/复制/粘贴操作 +group.EditSelectWordGroup.text=选择单词操作 +group.EditBookmarksGroup.text=书签(_K) +group.OpenProjectGroup.text=打开项目操作 +group.EditSmartGroup.text=编辑代码操作 +group.CodeEditorViewGroup.text=代码视图操作 +group.CodeEditorBaseGroup.text=代码编辑器视图操作 +group.HierarchyGroup.text=层次结构操作 +group.DebugMainMenu.text=调试器操作 +group.DebuggingActionsGroup.text=调试操作 +group.BreakpointActionsGroup.text=切换断点 +group.ToggleBreakpointAction.text=断点操作 +group.CommentGroup.text=注释操作 +group.CodeFormatGroup.text=代码格式化操作 +group.GoToTargetEx.text=通过名称转到操作 +group.GoToErrorGroup.text=转到错误/书签操作 +group.GoToCodeGroup.text=通过引用转到操作 +group.GoToChangeMarkerGroup.text=更改导航操作 +group.CoverageMenu.text=代码覆盖率操作 +group.ToolsXmlGroup.text=XML 操作 +group.XmlGenerateToolsGroup.text=XML 生成操作 +group.EditorPopupMenuDebug.text=调试操作 +group.VersionControlsGroup.text=VCS/LVCS 操作 +group.EditorPopupMenu.Run.text=编译/运行操作 +group.ProjectViewCompileGroup.text=编译/调试操作 +group.ProjectViewAnalysisGroup.text=分析操作 +group.PairFileActions.text=文件对的操作 +group.RefactoringMenu1.text=重构操作(1) +group.RefactoringMenu2.text=重构操作(2) +group.ToolbarFindGroup.text=工具栏查找操作 +group.ToolbarRunGroup.text=工具栏运行操作 +group.ToolbarMakeGroup.text=工具栏设置操作 +group.EditorPopupMenu1.text=编辑器弹出窗口菜单操作(1) +group.EditorLangPopupMenu.text=编辑器弹出窗口菜单操作(2) +group.CloseEditorsGroup.text=编辑器关闭操作 +group.EditorTabPopupMenuEx.text=编辑器选项卡弹出窗口菜单操作(1) +group.ProjectViewPopupMenuModifyGroup.text=项目视图弹出窗口菜单修改组 +group.ProjectViewPopupMenuRunGroup.text=项目视图弹出窗口菜单运行组 +group.ProjectViewPopupMenuSettingsGroup.text=项目视图弹出窗口菜单设置组 +group.ProjectViewPopupMenuRefactoringGroup.text = 项目视图弹出窗口重构组 +group.ViewRecentActions.text=查看最近的操作组 +group.NewGroup1.text=新组(1) +action.NewModuleInGroup.text=模块 +action.ShelvedChanges.ShowHideDeleted.text=显示/隐藏已应用的搁置变更 +action.XDebugger.MuteBreakpoints.text=静音断点 +action.ShelvedChanges.Restore.text=恢复已应用的搁置变更 +group.VcsToolbarActions.text=VCS 操作 +action.ChangesView.GroupBy.Repository.text=仓库 +action.CheckIgnoredAndNotExcludedDirectories.text=检查已忽略但未排除的目录 +action.CheckIgnoredAndNotExcludedDirectories.description=检查是否存在可以排除在索引和搜索之外的已忽略目录 +action.CheckIgnoredAndNotExcludedDirectories.progress=正在检查已忽略但未排除的目录… +action.Vcs.Push.Force.text=强制推送(_F) +action.Vcs.Push.text=推送… +action.PopupHector.text=配置当前文件分析… +action.PopupHector.description=显示面板来为当前文件配置高亮显示模式 +group.EditorTabPopupMenu.text=编辑器选项卡弹出窗口菜单 +group.MainMenu.text=主菜单 +group.ProjectViewPopupMenu.text=项目视图弹出窗口菜单 +group.FavoritesViewPopupMenu.text=收藏夹视图弹出窗口菜单 +group.NavbarPopupMenu.text=导航栏 +action.RerunFailedTests.text=重新运行失败的测试 +action.RerunFailedTests.description=仅运行上次运行后失败/崩溃的测试;按 Shift 键选择“运行/调试”模式 +group.AnalyzeJavaMenu.text=分析 Java 菜单 +group.AnalyzeJavaMenu.description=分析 Java 菜单 +group.ToolsBasicGroup.text=基本工具组 +group.ToolsBasicGroup.description=基本工具组 +action.ShowRegistry.text=注册表… +action.ShowExperiments.text=实验性功能… +action.UiDebugger.text=UI 调试器… +action.ExportTestResults.text=导出测试结果… +action.ExportTestResults.description=将测试结果导出到文件 +action.TogglePowerSave.text=省电模式 +action.TogglePowerSave.description=省电模式将禁用后台代码分析和其他后台操作 +group.ConvertIndentsGroup.text=转换缩进 +action.ConvertIndentsToSpaces.text=转换为空格 +action.ConvertIndentsToSpaces.description=转换文件或所选块中的缩进,以使用空格代替制表符 +action.ConvertIndentsToTabs.text=转换为制表符 +action.ConvertIndentsToTabs.description=转换文件或所选块中的缩进,以使用制表符代替空格 +group.Vcs.Import.text=导入到版本控制 +group.Vcs.Browse.text=浏览 VCS 仓库 +action.Graph.print.reset=重置 +action.MarkExcludeRoot.text=已排除 +action.UnmarkRoot.text=取消标记 +action.MarkAsContentRoot.text=不排除 +action.MarkAsContentRoot.description=取消所选目录的排除,使其文件可以被 IDE 的操作处理 +action.CreateLibraryFromFile.text=添加为库… +action.ExtractModuleFromPackage.text=提取模块… +action.ExtractModuleFromPackage.description=将软件包提取到单独的模块 +action.ImportModuleFromImlFile.text=导入模块 +action.ImportModuleFromImlFile.description=将 iml 文件作为一个模块导入到项目 +group.MarkRootGroup.text=将目录标记为 +action.CreateLauncherScript.text=创建命令行启动器… +action.CreateLauncherScript.description=创建一个脚本,用于从命令行打开文件和项目 +action.CreateDesktopEntry.text=创建桌面条目… +action.CreateDesktopEntry.description=创建桌面条目以与系统应用程序菜单集成 +group.EditorGutterPopupMenu.text=编辑器间距弹出菜单 +action.ConfigureSoftWraps.text=配置自动换行 +action.EditorGutterToggleLocalSoftWraps.gutterText=自动换行当前编辑器 +action.EditorGutterToggleGlobalLineNumbers.text=显示行号 +action.EditorGutterToggleGlobalIndentLines.text=显示缩进参考线 +action.ShowGutterIconsSettings.text=配置间距图标… +action.ShowGutterIconsSettings.description=显示对话框以配置间距图标 + +group.EditorBreadcrumbsSettings.text=路径导航 +group.EditorBreadcrumbsSettings.description=切换路径导航栏设置 +action.EditorBreadcrumbsShowAbove.text=顶部 +action.EditorBreadcrumbsShowAbove.description=在文本编辑器上方显示路径导航栏 +action.EditorBreadcrumbsShowBelow.text=底部 +action.EditorBreadcrumbsShowBelow.description=在文本编辑器下方显示路径导航栏 +action.EditorBreadcrumbsHideBoth.text=不显示 +action.EditorBreadcrumbsHideBoth.description=隐藏路径导航栏 + +group.MarkFileAs.text=将文件标记为 +action.OverrideFileTypeAction.text=重写文件类型 +action.OverrideFileTypeAction.description=将当前文件视为其他文件类型 +group.OverrideFileTypeAction.title=选择文件类型 +group.OverrideFileTypeAction.bundledPlugin=捆绑 +group.OverrideFileTypeAction.fromNamedPlugin=自 ''{0}'' 插件 +action.ChangeToThisFileTypeAction.description=将文件类型覆盖为 ''{0}'' + +action.Console.Open.text=打开控制台 +action.Console.Open.description=为所选实体打开控制台 +action.Console.Execute.text=在单行控制台中执行当前语句 +action.Console.Execute.description=在单行控制台中执行当前语句 +action.Console.Execute.Multiline.text=在多行控制台中执行当前语句 +action.Console.Execute.Multiline.description=在多行控制台中执行当前语句 +action.Console.SplitLine.text=拆分行 +action.Console.History.Previous.text=控制台历史记录中的上一个条目 +action.Console.History.Previous.description=控制台历史记录中的上一个条目 +action.Console.History.Next.text=控制台历史记录中的下一个条目 +action.Console.History.Next.description=控制台历史记录中的下一个条目 +action.Console.History.Browse.text=浏览查询历史记录 +action.Console.History.Browse.description=浏览查询历史记录 +action.RevealIn.description=在平台的文件管理器中高亮显示文件 +action.RevealIn.name.mac=在访达中显示 +action.RevealIn.name.other=在 {0} 中显示 +show.log.in.action.text=在 {0} 中显示日志 +show.log.notification.text=查看日志 +action.GoToLinkTarget.text=转到链接目标 +action.GoToLinkTarget.description=在项目视图中打开此符号链接的目标 + +action.TabList.text=显示隐藏的选项卡 +action.TabList.description=使用包含在单行选项卡布局中不适合屏幕的选项卡列表的下拉列表 + +action.FillParagraph.text=填充段落 +action.FillParagraph.description=重新格式化字符串文字或注释以适应最大宽度(通常为80) + +action.SaveDocument.text=保存文档 +action.SaveDocument.description=只保存在当前编辑器中打开的文件 + +action.StructuralSearchPlugin.StructuralSearchAction.text=结构搜索(_T)… +action.StructuralSearchPlugin.StructuralSearchAction.description=结构搜索 +action.StructuralSearchPlugin.StructuralReplaceAction.text=结构替换(_C)… +action.StructuralSearchPlugin.StructuralReplaceAction.description=结构替换 + +action.ModuleSettings.navigate=打开模块设置 +action.LibrarySettings.navigate=打开库设置 +action.ToggleDistractionFreeMode.enter=进入免打扰模式 +action.ToggleDistractionFreeMode.exit=退出免打扰模式 +action.TogglePresentationMode.exit=退出演示模式 +action.TogglePresentationMode.enter=进入演示模式 +action.ToggleZenMode.enter=进入 Zen 模式 +action.ToggleZenMode.exit=退出 Zen 模式 + +action.EmojiAndSymbols.description=使用 macOS 系统调色板输入特殊字符 + +action.MethodOverloadSwitchUp.text=上一个方法重载 +action.MethodOverloadSwitchDown.text=下一个方法重载 + +action.BraceOrQuoteOut.text=跳到当前括号/引号 + +action.SetShortcutAction.text=添加快捷方式… + +action.EditorFocusGutter.text=焦点间距(无障碍功能) +action.EditorShowGutterIconTooltip.text=显示间距图标工具提示(无障碍功能) + +action.ConfigureEditorTabs.text=配置编辑器选项卡… +action.ConfigureEditorTabs.description=配置编辑器选项卡的外观,行为和顺序 + +group.FilePropertiesGroup.text=文件属性 +group.FileExportGroup.text=导出 +group.PasteGroup.text=粘贴 +group.FindUsagesMenuGroup.text=查找用法 +group.NavigateInFileGroup.text=在文件中导航 +group.HelpDiagnosticTools.text=诊断工具 +group.ChangeLineSeparators.text=行分隔符 + +group.CopyReferencePopupGroup.text=复制路径/引用… + +action.CompareDirs.text=比较目录 +action.compare.files.text=比较文件 +action.compare.with.text=比较对象… +action.compare.text=比较 +action.compare.archives.text=比较归档 + +action.List-selectFirstRow.text=选择第一行 +action.List-selectFirstRow.description=选择第一行。 +action.List-selectFirstRowExtendSelection.text=将选择范围扩展到第一行 +action.List-selectFirstRowExtendSelection.description=滚动到第一行并将相应的行添加到选择范围。 +action.List-selectLastRow.text=选择最后一行 +action.List-selectLastRow.description=选择最后一行。 +action.List-selectLastRowExtendSelection.text=将选择范围扩展到最后一行 +action.List-selectLastRowExtendSelection.description=滚动到最后一行并将相应的行添加到选择范围。 +action.List-selectPreviousRow.text=选择上一行 +action.List-selectPreviousRow.description=选择上一行。 +action.List-selectPreviousRowExtendSelection.text=将选择范围扩展到上一行 +action.List-selectPreviousRowExtendSelection.description=将上一行添加到选择范围。 +action.List-selectNextRow.text=选择下一行 +action.List-selectNextRow.description=选择下一行。 +action.List-selectNextRowExtendSelection.text=将选择范围扩展到下一行 +action.List-selectNextRowExtendSelection.description=将下一行添加到选择范围。 +action.List-selectPreviousColumn.text=选择上一列 +action.List-selectPreviousColumn.description=选择上一列。 +action.List-selectPreviousColumnExtendSelection.text=将选择范围扩展到上一列 +action.List-selectPreviousColumnExtendSelection.description=将上一列添加到选择范围。 +action.List-selectNextColumn.text=选择下一列 +action.List-selectNextColumn.description=选择下一列。 +action.List-selectNextColumnExtendSelection.text=将选择范围扩展到下一列 +action.List-selectNextColumnExtendSelection.description=将下一列添加到选择范围。 +action.List-scrollUp.text=向上滚动页面并选择行 +action.List-scrollUp.description=将周围的可滚动区域向上滚动一页,然后选择相应的行。 +action.List-scrollUpExtendSelection.text=向上滚动页面并扩展选择范围 +action.List-scrollUpExtendSelection.description=将周围的可滚动区域向上滚动一页,然后将相应的行添加到选择范围。 +action.List-scrollDown.text=向下滚动页面并选择行 +action.List-scrollDown.description=将周围的可滚动区域向下滚动一页,然后选择相应的行。 +action.List-scrollDownExtendSelection.text=向下滚动页面并扩展选择范围 +action.List-scrollDownExtendSelection.description=将周围的可滚动区域向下滚动一页,然后将相应的行添加到选择范围。 +action.Table-selectFirstRow.text=选择第一行 +action.Table-selectFirstRow.description=选择第一行。 +action.Table-selectFirstRowExtendSelection.text=将选择范围扩展到第一行 +action.Table-selectFirstRowExtendSelection.description=滚动到第一行并将相应的行添加到选择范围。 +action.Table-selectLastRow.text=选择最后一行 +action.Table-selectLastRow.description=选择最后一行。 +action.Table-selectLastRowExtendSelection.text=将选择范围扩展到最后一行 +action.Table-selectLastRowExtendSelection.description=滚动到最后一行并将相应的行添加到选择范围。 +action.Table-selectPreviousRow.text=选择上一行 +action.Table-selectPreviousRow.description=选择上一行。 +action.Table-selectPreviousRowExtendSelection.text=将选择范围扩展到上一行 +action.Table-selectPreviousRowExtendSelection.description=将上一行添加到选择范围。 +action.Table-selectNextRow.text=选择下一行 +action.Table-selectNextRow.description=选择下一行。 +action.Table-selectNextRowExtendSelection.text=将选择范围扩展到下一行 +action.Table-selectNextRowExtendSelection.description=将下一行添加到选择范围。 +action.Table-selectPreviousColumn.text=选择上一列 +action.Table-selectPreviousColumn.description=选择上一列。 +action.Table-selectPreviousColumnExtendSelection.text=将选择范围扩展到上一列 +action.Table-selectPreviousColumnExtendSelection.description=将上一列添加到选择范围。 +action.Table-selectNextColumn.text=选择下一列 +action.Table-selectNextColumn.description=选择下一列。 +action.Table-selectNextColumnExtendSelection.text=将选择范围扩展到下一列 +action.Table-selectNextColumnExtendSelection.description=将下一列添加到选择范围。 +action.Table-scrollUpChangeSelection.text=向上滚动页面并选择行 +action.Table-scrollUpChangeSelection.description=将周围的可滚动区域向上滚动一页,然后选择相应的行。 +action.Table-scrollUpExtendSelection.text=向上滚动页面并扩展选择范围 +action.Table-scrollUpExtendSelection.description=将周围的可滚动区域向上滚动一页,然后将相应的行添加到选择范围。 +action.Table-scrollDownChangeSelection.text=向下滚动页面并选择行 +action.Table-scrollDownChangeSelection.description=将周围的可滚动区域向下滚动一页,然后选择相应的行。 +action.Table-scrollDownExtendSelection.text=向下滚动页面并扩展选择范围 +action.Table-scrollDownExtendSelection.description=将周围的可滚动区域向下滚动一页,然后将相应的行添加到选择范围。 +action.Tree-selectFirst.text=选择第一个节点 +action.Tree-selectFirst.description=选择第一个节点。 +action.Tree-selectFirstExtendSelection.text=将选择范围扩展到第一个节点 +action.Tree-selectFirstExtendSelection.description=滚动到第一个节点并将相应的节点添加到选择范围。 +action.Tree-selectLast.text=选择最后一个节点 +action.Tree-selectLast.description=选择最后一个节点。 +action.Tree-selectLastExtendSelection.text=将选择范围扩展到最后一个节点 +action.Tree-selectLastExtendSelection.description=滚动到最后一个节点并将相应的节点添加到选择范围。 +action.Tree-selectPrevious.text=选择上一个节点 +action.Tree-selectPrevious.description=选择上一个节点。 +action.Tree-selectPreviousExtendSelection.text=将选择范围扩展到上一个节点 +action.Tree-selectPreviousExtendSelection.description=将上一个节点添加到选择范围。 +action.Tree-selectNext.text=选择下一个节点 +action.Tree-selectNext.description=选择下一个节点。 +action.Tree-selectNextExtendSelection.text=将选择范围扩展到下一个节点 +action.Tree-selectNextExtendSelection.description=将下一个节点添加到选择范围。 +action.Tree-selectParentNoCollapse.text=选择父节点 +action.Tree-selectParentNoCollapse.description=选择父节点(不收起展开的节点)。 +action.Tree-selectParent.text=选择父节点 +action.Tree-selectParent.description=收起展开的节点或选择父节点。 +action.Tree-selectParentExtendSelection.text=将选择范围扩展到父节点 +action.Tree-selectParentExtendSelection.description=滚动到父节点并将相应的节点添加到选择范围。 +action.Tree-selectChild.text=选择子节点 +action.Tree-selectChild.description=展开收起的节点或选择子节点。 +action.Tree-selectChildExtendSelection.text=将选择范围扩展到子节点 +action.Tree-selectChildExtendSelection.description=展开收起的节点或将子节点添加到选择范围。 +action.Tree-scrollUpChangeSelection.text=向上滚动页面并选择节点 +action.Tree-scrollUpChangeSelection.description=将周围的可滚动区域向上滚动一页,然后选择相应的节点。 +action.Tree-scrollUpExtendSelection.text=向上滚动页面并扩展选择范围 +action.Tree-scrollUpExtendSelection.description=将周围的可滚动区域向上滚动一页,然后将相应的节点添加到选择范围。 +action.Tree-scrollDownChangeSelection.text=向下滚动页面并选择节点 +action.Tree-scrollDownChangeSelection.description=将周围的可滚动区域向下滚动一页,然后选择相应的节点。 +action.Tree-scrollDownExtendSelection.text=向下滚动页面并扩展选择范围 +action.Tree-scrollDownExtendSelection.description=将周围的可滚动区域向下滚动一页,然后将相应的节点添加到选择范围。 +action.Tree-selectNextSibling.text=选择下一个同级节点 +action.Tree-selectNextSibling.description=选择下一个同级节点。 +action.Tree-selectPreviousSibling.text=选择上一个同级节点 +action.Tree-selectPreviousSibling.description=选择上一个同级节点。 +action.PopupMenu-selectPrevious.text=选择上一个菜单项 +action.PopupMenu-selectPrevious.description=选择上一个菜单项。 +action.PopupMenu-selectNext.text=选择下一个菜单项 +action.PopupMenu-selectNext.description=选择下一个菜单项。 +action.PopupMenu-selectParent.text=选择父菜单项 +action.PopupMenu-selectParent.description=关闭子菜单并在父菜单中选择相应的项。 +action.PopupMenu-selectChild.text=选择子菜单项 +action.PopupMenu-selectChild.description=打开子菜单并在其中选择相应的项。 +action.PopupMenu-return.text=调用选定操作 +action.PopupMenu-return.description=打开子菜单或从选定的菜单项中调用操作。 +action.PopupMenu-cancel.text=关闭上下文菜单 +action.PopupMenu-cancel.description=关闭上下文菜单。 +action.ScrollPane-scrollHome.text=滚动至页首 +action.ScrollPane-scrollHome.description=将周围的可滚动区域滚动到顶部。 +action.ScrollPane-scrollEnd.text=滚动至页尾 +action.ScrollPane-scrollEnd.description=将周围的可滚动区域滚动到底部。 +action.ScrollPane-unitScrollUp.text=向上滚动 +action.ScrollPane-unitScrollUp.description=将周围的可滚动区域向上滚动一个单位。 +action.ScrollPane-unitScrollDown.text=向下滚动 +action.ScrollPane-unitScrollDown.description=将周围的可滚动区域向下滚动一个单位。 +action.ScrollPane-unitScrollLeft.text=向左滚动 +action.ScrollPane-unitScrollLeft.description=将周围的可滚动区域向左滚动一个单位。 +action.ScrollPane-unitScrollRight.text=向右滚动 +action.ScrollPane-unitScrollRight.description=将周围的可滚动区域向右滚动一个单位。 +action.ScrollPane-scrollUp.text=向上滚动页面 +action.ScrollPane-scrollUp.description=将周围的可滚动区域向上滚动一页。 +action.ScrollPane-scrollDown.text=向下滚动页面 +action.ScrollPane-scrollDown.description=将周围的可滚动区域向下滚动一页。 +action.ScrollPane-scrollLeft.text=向左滚动页面 +action.ScrollPane-scrollLeft.description=将周围的可滚动区域向左滚动一页。 +action.ScrollPane-scrollRight.text=向右滚动页面 +action.ScrollPane-scrollRight.description=将周围的可滚动区域向右滚动一页。 +action.RunAnything.text=运行任何内容 +action.RunAnything.description=允许执行任何命令 +action.Performance.ActivityMonitor.text=活动监视器… +action.Performance.ActivityMonitor.description=用于检查哪些插件和子系统消耗大多数资源的工具 +action.performancePlugin.ShowMemoryDialogAction.text=更改内存设置 +action.performancePlugin.ShowMemoryDialogAction.description=显示更改内存对话框 +action.DisablePCE.text=禁用 ProcessCanceledException +action.DisablePCE.description=禁用读取操作期间在后台线程中引发的 ProcessCanceledException 以简化调试 +action.SearchEverywhere.NextTab.text=下一个选项卡 +action.SearchEverywhere.NextTab.description=在 Search Everywhere 对话框中切换到下一个选项卡 +action.SearchEverywhere.PrevTab.text=上一个选项卡 +action.SearchEverywhere.PrevTab.description=在 Search Everywhere 对话框中切换到上一个选项卡 +action.SearchEverywhere.CompleteCommand.text=补全命令 +action.SearchEverywhere.CompleteCommand.description=在 Search Everywhere 对话框中自动补全命令 +action.SearchEverywhere.SelectItem.text=选择项 +action.SearchEverywhere.SelectItem.description=在 Search Everywhere 对话框中选择项 +action.SearchEverywhere.NavigateToNextGroup.text=下一个组元素 +action.SearchEverywhere.NavigateToNextGroup.description=在 Search Everywhere 对话框中导航到下一个组 +action.SearchEverywhere.NavigateToPrevGroup.text=上一个组元素 +action.SearchEverywhere.NavigateToPrevGroup.description=在 Search Everywhere 对话框中导航到上一个组 + +action.QuickActionPopup.text=显示快速操作弹出窗口 +action.NavBar-selectHome.text=选择第一项 +action.NavBar-selectEnd.text=选择最后一项 +action.NavBar-selectUp.text=打开相应的弹出菜单 +action.NavBar-selectDown.text=打开相应的弹出菜单 +action.NavBar-selectLeft.text=选择上一项 +action.NavBar-selectRight.text=选择下一项 +action.NavBar-cancel.text=关闭浮动导航栏 +action.NavBar-return.text=对选定项执行操作 +action.NavBar-navigate.text=从选定项导航 +action.CollapseExpandableComponent.text=收起组件 +action.ExpandExpandableComponent.text=展开组件 +action.ShowColorPicker.text=显示拾色器 +action.ToolwindowSwitcher.text=工具窗口切换器 +action.QuickDocCopy.text=复制快速文档 +action.OpenElementInNewWindow.text=在新编辑器窗口中打开 +action.ForceRefresh.text=强制刷新 +action.Diff.OpenDiffInEditor.text=作为编辑器选项卡打开选定的差异请求 +action.Diff.ShowSettingsPopup.text=显示差异设置弹出窗口… +action.Diff.ShowInExternalTool.text=在外部工具中显示差异 +action.ScrollTreeToCenter.text=滚动到中心 +action.IconsLoadTime.text=日志图标加载时间 +action.NewDummyProject.text=新建虚拟项目 +action.NextTemplateParameter.text=下一个动态模板形参 +action.PrevTemplateParameter.text=上一个动态模板形参 +action.Performance.DumpThreads.text=转储线程 +action.CollectTroubleshootingInformation.text=收集故障排除信息 +action.WelcomeScreen.OpenSelected.text=打开选定项 +action.WelcomeScreen.NewGroup.text=新建项目组 +action.WelcomeScreen.EditGroup.text=编辑… +action.WelcomeScreen.ChangeProjectIcon.text=更改项目图标… +action.WelcomeScreen.CopyProjectPath.text=复制路径 +action.WelcomeScreen.RemoveSelected.text=从最近的项目移除 +action.JBTabsDemo.text=JBTabs 演示 +action.JTabbedPaneDemo.text=JTabbedPane 演示 +action.DumbMode.text=沉默模式 +action.LaggingMode.text=滞后模式 +action.AddInlayInternalAction.text=添加嵌入… +action.EditorRenderingBenchmarkAction.text=编辑器渲染基准 +action.NotificationTestAction.text=添加测试通知 +action.LabelSizeDemoAction.text=测试标签大小 +action.TestMessageBoxAction.text=显示测试对话框 +action.ComponentPanelTestAction.text=显示标准面板 +action.ResetGotItTooltips.text=重置“知道了”工具提示 +action.CloseGotItTooltip.text=关闭“知道了”工具提示 +action.CheckMessagesButtonsOrderAction.text=检查消息按钮顺序 +action.ShowDelayedMessageInternalAction.text=显示延迟消息 +action.ManualMacMessagesTest.text=用于测试 Mac 消息的手动测试 +action.MacMessagesSequencesTest.text=测试 Mac 消息序列 +action.FocusDebugger.text=启动焦点调试器 +action.DumpFocusableComponentHierarchyAction.text=转储可聚焦组件层次结构 +action.ChooseRuntime.text=选择 IDE 的启动 Java 运行时… +action.FocusTracer.text=启动焦点跟踪 +action.LogFocusRequests.text=日志焦点请求 +action.UiInspector.text=UI 检查器(&I) +action.ToggleUiInspectorHierarchyTrace.text=切换 UI 检查器层次结构跟踪 +action.ToggleUiInspectorHierarchyTrace.text.enable=启用 UI 检查器层次结构跟踪 +action.ToggleUiInspectorHierarchyTrace.text.disable=禁用 UI 检查器层次结构跟踪 +action.GrayFilterConfig.text=灰色筛选器(&G) +action.TextGrayFilterConfig.text=文本灰色筛选器(&T) +action.ShowSplash.text=显示初始屏幕 +action.ShowAboutPopupInDebugModeAction.text=在调试模式下显示“关于”弹出窗口 +action.ValidationTest.text=验证对话框测试 +action.MacMessagesTest.text=测试 Mac 消息 +action.ColorBlindnessTest.text=测试色盲 +action.TreeExpandAll.text=展开树 +action.UIDefaults.text=LaF 默认设置 +action.RulerGuide.text=标尺参考线 +action.WriteActionUnderProgress.text=正在测试写入操作 +action.TestProgressWindow.text=测试进度窗口 +action.TestGestureAction.text=测试手势操作 +action.TestDndAction.text=测试 Dnd +action.AnimatorTestAction.text=测试 Animator +action.PositionTrackerTestAction.text=测试位置跟踪器 +action.ShowProgressTestDialogAction.text=测试进度指示器 +action.ShowSouthPanelTestDialogAction.text=测试 DialogWrapper 南侧面板 +action.TestTextFieldAction.text=测试文本字段 +action.ShowNotificationIconsDialogAction.text=测试通知图标 +action.DebugMigLayoutAction.text=UI DSL 调试模式 +action.WebBrowser.text=显示 Web 浏览器(&W) +action.ImageDuplicates.text=查找图像重复项 +action.ShowNonRetinaImages.text=显示非视网膜图像 +action.ShowUpdateDialogAction.text=显示“更新”对话框 +action.ApplyFixedWindowSize.text=应用特定大小 +action.ConfigureDefaultSize.text=配置默认大小… +action.ShowEditorHighlighterTokens.text=显示编辑器荧光笔令牌 +action.DirDiffMenu.SynchronizeDiff.text=同步选定项 +action.DirDiffMenu.SynchronizeDiff.All.text=全部同步 +action.DirDiffMenu.SetCopyToRight.text=设置复制到右侧 +action.DirDiffMenu.SetCopyToLeft.text=设置复制到左侧 +action.DirDiffMenu.SetDelete.text=设置删除 +action.DirDiffMenu.SetNoOperation.text=设置不执行任何操作 +action.DirDiffMenu.MirrorToRight.text=设置镜像到右侧 +action.DirDiffMenu.MirrorToLeft.text=设置镜像到左侧 +action.DirDiffMenu.SetDefault.text=设置默认值 +action.DirDiffMenu.WarnOnDeletion.text=删除时发出警告 +action.DirDiffMenu.EnableLeft.text=在左侧显示新文件 +action.DirDiffMenu.EnableRight.text=在右侧显示新文件 +action.DirDiffMenu.EnableEqual.text=显示相同的文件 +action.DirDiffMenu.EnableNotEqual.text=显示差异 +action.DirDiffMenu.CompareNewFilesWithEachOtherAction.text=相互比较新文件 +action.DirDiffMenu.CancelComparingNewFilesWithEachOther.text=取消相互比较新文件 +action.OpenBlankEditorInBlankDiffWindow.text=切换到空白编辑器 +action.OpenFileEditorInBlankDiffWindow.text=切换到文件… +group.OpenRecentEditorInBlankDiffWindow.text=切换到“最近” +action.SwapSidesInDiffWindow.text=交换两侧 +action.ToggleThreeSideInBlankDiffWindow.text=切换三向查看器 +action.ToggleThreeSideInBlankDiffWindow.text.enable=切换到三向查看器 +action.ToggleThreeSideInBlankDiffWindow.text.disable=切换到两向查看器 +action.SwapThreeWayColorModeInDiffWindow.text=更改三向查看器模式 +action.Rerun.text=重新运行 +action.RerunTests.text=重新运行测试 +action.MaximizeActiveDialog.text=最大化/恢复活动对话框 +action.SelectInProjectView.text=在项目视图中选择文件 +action.SelectInProjectView.description=在项目视图中选择上下文文件 +action.SelectOpenedFileInProjectView.text=选择打开的文件 +# suppress inspection "UnusedProperty" - used from SelectFileAction +action.SelectOpenedFileInProjectView.description=在项目视图中选择已打开的文件 +action.ShowFilterPopup.text=显示筛选器弹出窗口 +action.ShowSearchHistory.text=显示搜索历史记录 +action.HidpiInfo.text=显示 HiDPI 信息(&H) +action.UserInvokedFullAnalysis.text=创建并立即分析堆转储 +action.SilentHeapDumpSnapshot.text=创建并计划堆转储分析 (非用户调用) +action.NextWindow.text=激活下一个窗口 +action.PreviousWindow.text=激活上一个窗口 +action.CopyAbsolutePath.text=绝对路径 +action.CopyPathWithLineNumber.text=带行号的路径 +action.CopyContentRootPath.text=来自内容根的路径 +action.CopySourceRootPath.text=来自源根的路径 +action.CopyTBXReference.text=工具箱 URL +action.CopyFileName.text=文件名 + +EmojiAndSymbols.text=表情 \\& 符号 +action.ToggleFocusMode.text=仅高亮显示当前声明 + +group.ListActions.text=列表操作 +group.TableActions.text=表操作 +group.TreeActions.text=树操作 +group.PopupMenuActions.text=弹出菜单操作 +group.NavBarActions.text=导航栏操作 +group.ScrollPaneActions.text=滚动 +group.Diff.KeymapGroup.text=差异与合并 +group.compare.contents.text=比较内容 +group.TabsActions.text=制表符 +group.TWViewModes.text=工具窗口视图模式 +group.TWViewModesLegacy.text=工具窗口传统视图模式 (已弃用) +group.SearchEverywhereActions.text=随处搜索 +group.Internal.HeapAnalysis.text=堆分析 +group.Internal.UI.Demos.text=演示 + +action.ChooseRunConfiguration.text=运行… +action.ChooseRunConfiguration.description=选择并运行配置 +action.ChooseDebugConfiguration.text=调试… +action.ChooseDebugConfiguration.description=选择并调试配置 +action.Refactorings.QuickListPopupAction.text=重构此… +action.Refactorings.QuickListPopupAction.description=包含重构操作列表的上下文感知弹出窗口 + +action.GeneratePattern.text=按模式生成… +action.ProjectViewEditSource.text=编辑源 +action.TypeHierarchyBase.BaseOnThisType.text=基于此类型 +action.MethodHierarchy.BaseOnThisMethod.text=基于此方法 +action.CallHierarchy.BaseOnThisMethod.text=基于此方法 +action.Debugger.RemoveAllBreakpoints.text=移除所有断点 +action.Debugger.RemoveAllBreakpointsInFile.text=移除当前文件中的所有断点 +action.Debugger.CopyStack.text=复制堆栈 +action.Vcs.Operations.Popup.Annotate.text=注解行操作 +action.SendEOF.text=发送 EOF +action.ImportTests.text=导入测试结果 +action.ImportTestsFromFile.text=从文件导入测试 +action.DumpLookupElementWeights.text=将查找元素权重转储到日志 +action.RunDashboard.Run.text=运行 +action.RunDashboard.Debug.text=调试 +action.RunDashboard.Stop.text=停止 +action.RunDashboard.EditConfiguration.text=编辑所选配置 +action.RunDashboard.CopyConfiguration.text=复制配置 +action.RunDashboard.HideConfiguration.text=隐藏配置 +action.RunDashboard.RestoreHiddenConfigurations.text=恢复隐藏的配置 +action.RunDashboard.RemoveType.text=从服务中移除配置类型 +action.RunDashboard.OpenRunningConfigInNewTab.text=在新选项卡中打开运行配置 +action.RunDashboard.ClearContent.text=清除内容 +action.RunDashboard.RestoreConfiguration.text=恢复配置 +action.RunDashboard.GroupConfigurations.text=分组配置 +action.RunDashboard.UngroupConfigurations.text=对配置取消分组 +action.ServiceView.GroupByContributor.text=服务类型 +action.ServiceView.GroupByServiceGroups.text=服务组 +action.ServiceView.OpenInNewTab.text=在新选项卡中打开 +action.ServiceView.OpenEachInNewTab.text=在新选项卡中打开每个项 +action.ServiceView.SplitByType.text=在新选项卡中打开每个类型 +action.ServiceView.JumpToServices.text=跳转到服务 +action.ServiceView.ShowServices.text=显示服务树 +action.RunDashboard.GroupByType.text=类型 +action.RunDashboard.GroupByStatus.text=状态 +action.RunDashboard.AddType.text=运行配置类型 +action.UpdateRunningApplication.text=更新正在运行的应用程序 +action.TypingLatencyReport.text=输入延迟报告 +action.RetypeFile.text=重新输入当前文件 +action.CompletionQualityStats.text=补全质量统计信息 +action.ShowControlFlowAction.text=显示控制流 + +action.AnalyzePluginStartupPerformance.text=分析插件启动性能 +action.TriggerLowMemoryNotification.text=触发低内存通知 + +action.WelcomeScreen.ManageLicense.text=管理许可证… +action.AskForLicense.text=显示“用户协议”对话框 +action.Register.text=注册(_R)… +action.Register.description=输入注册数据 +group.RegistrationActions.text=注册操作 + +group.TodoMainGroup.text=TODO +group.TodoViewGroupByGroup.text=分组依据 +group.TouchBarDebug.ForceStepButtons.text=调试器强制步操作 +group.TouchBarDebug_alt.text=使用 Alt 键的调试器 +group.TouchBarDebug.StepButtons.text=调试器步操作 +group.TouchBarDebug.text=调试器 +group.TouchBarDefault_shift.text=默认使用 Shift 键 +group.TouchBarDefault_cmd.alt.text=默认使用 Alt+Cmd 键 +group.TouchBarDefault_cmd.text=默认使用 Cmd 键 +group.TouchBarDefault_alt.text=默认使用 Alt 键 +group.TouchBarDefault_ctrl.text=默认使用 Ctrl 键 +group.TouchBarDefaultOptionalGroup.text=可选操作 +group.RunnerActionsTouchbar.text=Touch Bar 运行/调试操作 +group.TouchBarDefault.text=默认 +group.RunDashboard.Filter.text=配置状态 +group.RunDashboard.GroupBy.text=配置 +group.ServiceView.AddService.text=添加服务 +group.ServiceView.OpenInNewTabGroup.text=在新选项卡中打开 +group.ServiceView.Filter.text=筛选器 +group.ServiceView.GroupBy.text=分组依据 +group.ShowAnnotateOperationsPopupGroup.text=注解行 + +action.Graph.Layout.CompactOrthogonalLayouter.text=紧凑 +action.Graph.Layout.HierarchicGroupLayouter.text=层次结构组 +action.Graph.Layout.HierarchicLayouter.text=分层 +action.Graph.Layout.OrthogonalGroupLayouter.text=正交群 +action.Graph.Layout.ChannelLayouter.text=通道 +action.Graph.Layout.SeriesParallelLayouter.text=串并联 +action.Graph.Layout.CircularLayouter.text=循环 +action.Graph.Layout.CircularEdgeBundledLayouter.text=边缘捆绑(圆形) +action.Graph.Layout.RadialLayouter.text=径向 +action.Graph.Layout.RadialEdgeBundledLayouter.text=边缘捆绑(径向) +action.Graph.Layout.SingleCycleLayouter.text=单循环 +action.Graph.Layout.ARTreeLayouter.text=紧凑 +action.Graph.Layout.BalloonLayouter.text=气球 +action.Graph.Layout.BalloonEdgeBundledLayouter.text=边缘捆绑(气球) +action.Graph.Layout.FamilyLayouter.text=系列 +action.Graph.Layout.GenericLayouter.text=泛型 +action.Graph.Layout.HVTreeLayouter.text=宽 +action.Graph.Layout.OrganicLayouter.text=有机 +action.Graph.Layout.OrganicEdgeBundledLayouter.text=边缘捆绑(有机) +action.Graph.Layout.RandomLayouter.text=随机 +action.Graph.Layout.CustomLayouter.text=图特定 +action.Graph.Layout.Fit.Content.text=在布局后调整内容 + +group.Graph.CommonLayoutGroup.text=布局 +group.Graph.NetsLayoutGroup.text=网状 +group.Graph.OrthogonalLayoutGroup.text=正交 +group.Graph.RadialLayoutGroup.text=径向 +group.Graph.TreeLayoutGroup.text=树 +action.Graph.ApplyCurrentLayout.text=应用当前布局 +action.Graph.RouteEdges.text=自动路由边缘 +action.Graph.Current.Node.Dependencies.Filter.text=显示所选节点与依赖关系 +action.Graph.Show.Edge.Labels.text=显示边缘标签 +action.Graph.Show.Bridges.text=显示链接桥 +action.Graph.Delete.text=删除选区 +action.Graph.FitContent.text=调整内容 +action.Graph.SnapToGrid.text=对齐到网格 +action.Graph.ShowHideGrid.text=显示网格 +action.Graph.ExportToFile.text=导出到图像文件… +action.Graph.ExportToFile.description=导出到 PNG、JPG、GIF、SVG 或 SVGZ 文件 +action.Graph.ActualSize.text=实际尺寸 +action.Graph.ZoomOut.text=缩小 +action.Graph.ZoomIn.text=放大 + +action.JsonCopyPointer.text=复制 JSON 指针 +action.JsonCopyPointer.description=复制 JSON 指针 + +action.JsonPathEvaluateAction.text=评估 JSONPath 表达式… +action.JsonPathExportEvaluateResultAction.text=导出结果 + +action.ExternalSystem.RemoveRunConfiguration.text=移除运行配置 +action.ExternalSystem.EditRunConfiguration.text=编辑运行配置… +action.ExternalSystem.ShowIgnored.text=显示忽略项 +action.ExternalSystem.ShowInheritedTasks.text=显示从子项目继承的任务 +action.ExternalSystem.GroupModules.text=组模块 +action.ExternalSystem.GroupTasks.text=组任务 +action.ExternalSystem.BeforeRun.text=在运行/调试之前执行… +action.ExternalSystem.BeforeRun.description=在启动运行/调试配置之前执行选定任务 +action.ExternalSystem.AfterRebuild.text=重新构建后执行 +action.ExternalSystem.AfterRebuild.description=在完全重新构建后执行选定任务 +action.ExternalSystem.BeforeRebuild.text=重新构建前执行 +action.ExternalSystem.BeforeRebuild.description=在完全重新构建前执行选定任务 +action.ExternalSystem.AfterCompile.text=构建后执行 +action.ExternalSystem.AfterCompile.description=在构建后执行选定任务 +action.ExternalSystem.BeforeCompile.text=构建前执行 +action.ExternalSystem.BeforeCompile.description=在构建前执行选定任务 +action.ExternalSystem.AfterSync.text=同步后执行 +action.ExternalSystem.AfterSync.description=在项目导入后执行选定任务 +action.ExternalSystem.BeforeSync.text=同步前执行 +action.ExternalSystem.BeforeSync.description=在项目导入前执行选定任务 +action.ExternalSystem.AssignRunConfigurationShortcut.text=分配快捷键… +action.ExternalSystem.AssignRunConfigurationShortcut.description=将快捷键分配给选定运行配置 +action.ExternalSystem.AssignShortcut.text=分配快捷键… +action.ExternalSystem.AssignShortcut.description=将快捷键分配给选定任务 +action.ExternalSystem.RunTask.text=运行任务(_R) +action.ExternalSystem.RunTask.description=执行选定任务 +action.ExternalSystem.SelectProjectDataToImport.text=选择要导入的项目数据 +action.ExternalSystem.CollapseAll.text=全部收起 +action.ExternalSystem.ExpandAll.text=全部展开 +group.ExternalSystem.ShowSettingsGroup.text=构建工具设置 +action.ExternalSystem.ShowCommonSettings.text=自动重新加载设置… +action.ExternalSystem.ShowCommonSettings.description=为当前项目编辑构建工具设置 + +action.NewDatabaseProject.text=项目… +action.DetachDirectory.text=从项目中分离目录… +action.AttachDirectory.text=将目录附加到项目… +action.ConsoleView.FoldLinesLikeThis.text=像这样折叠行 +action.ManageProjectTemplates.text=管理项目模板… +action.SaveProjectAsTemplate.text=将项目另存为模板… +action.InsertRubyInjectionWithoutOutput.text=插入 '<% %>' +action.InsertRubyInjectionWithoutOutput.description=在 Erb 文件中插入 '<% %>' +action.InsertRubyInjection.text=插入 '<%= %>' +action.InsertRubyInjection.description=在 Erb 文件中插入 '<%= %>' +action.GemRequirements.ShowSettings.text=Ruby SDK 和 Gem +action.RubyMineDeveloperCommunity.text=开发者社区 +action.RubyMineDeveloperCommunity.description=RubyMine 开发者社区论坛 +action.RubyMineDemos.text=演示和教程 +action.RubyMineDemos.description=查看介绍 RubyMine 功能的简短现场演示 +action.NewRubyMineDirectoryProject.text=项目… +group.Internal.PMM.text=PMM 实用工具 +group.TopAnomalies.text=顶级异常 +group.Internal.focusAndModality.text=焦点和模式测试 +group.Internal.UI.text=UI(&U) +group.Internal.Editor.text=编辑器(&E) +group.Internal.Performance.text=性能 +group.Internal.Errors.text=异常 +group.Internal.text=内部操作(&I) +group.WelcomeScreen.MoveToGroup.text=移动到组 +action.$Redo.text=重做 +action.$Undo.text=撤消 +group.Vcs.KeymapGroup.text=版本控制系统 +group.InspectCodeGroup.text=检查代码操作 +action.OpenStatisticsEventLogAction.text=打开统计事件日志 +action.OpenStatisticsEventLogAction.description=打开具有统计事件日志的工具窗口 +action.ConfigureEventsSchemeFileAction.text=配置事件方案文件 +action.ConfigureEventsSchemeFileAction.description=加载自定义文件夹中的事件方案 +action.ReportSettingsToFUS.text=将更改的设置记录到事件日志 +action.CleanupEventsTestSchemeAction.text=清理事件测试方案 +action.CleanupEventsTestSchemeAction.description=移除测试方案中注册的所有组 +action.RecordStateCollectors.text=将状态收集器记录到事件日志 +action.RecordStateCollectors.description=将所有状态收集器和记录结果调用到事件日志 +action.ShowChangedStateStatisticsAction.text=仅显示已更改的状态事件 +action.ShowChangedStateStatisticsAction.description=调用所有状态收集器,并仅显示自上一个记录以来已更改的事件 +action.AddGroupToTestSchemeAction.text=将组添加到事件测试方案 +action.AddGroupToTestSchemeAction.description=允许来自组的所有数据。使用它在本地测试新的收集器。 +action.EditTestSchemeAction.text=编辑事件测试方案 +action.EditTestSchemeAction.description=允许来自组的所有数据。使用它在本地测试新的收集器。 +group.OpenEventLogFileAction.text=在编辑器中打开事件日志 +group.OpenEventLogFileAction.description=在 IDE 中打开活动事件日志文件 +group.OpenEventsTestSchemeFileAction.description=在 IDE 中打开事件测试方案文件 +group.OpenEventsSchemeFileAction.description=在 IDE 中打开事件方案文件 +group.UpdateEventsSchemeAction.description=必要时更新服务器中的主要事件方案。也重新加载该文件中的事件测试方案。 +action.SendEventLogStatistics.text=发送功能用法事件日志 +action.SendEventLogStatistics.description=将事件日志文件发送到 QA 服务器 +group.FeatureUsage.Internal.text=功能用法统计信息 +group.CleanupEventLog.text=清理事件日志 +group.CleanupEventLog.description=移除所有未发送事件日志文件 +action.GenerateEventsScheme.text=显示 FUS 收集器方案 +action.GenerateEventsScheme.description=从正在运行的 IDE 实例中收集统计信息收集器的方案 +action.StaticIconFields.text=列出 static 字段初始值设定项 +action.ExpressionStatistics.text=收集 Java 表达式统计信息 +action.UsedIconsListing.text=列出使用的图标 +action.GenerateVisitorByHierarchy.text=生成层次结构访问者… +group.Internal.Java.text=Java +action.CollectFUStatisticsAction.text=从收集器收集统计信息… +action.TestParseEventsSchemeAction.text=测试解析事件方案… +action.ValidateLocalHistory.text=验证本地历史记录存储 +action.FixLineSeparators.text=修复行分隔符 +action.PruneEmptyDirectories.text=删除空目录 +action.LoadAllVFSContent.text=加载所有 VFS 存储的文件内容 +action.LoadAllContent.text=加载所有文件内容 +action.CheckVfsSanity.text=检查 VFS 健全性 +action.MarkFileDirty.text=将文件标记为脏 +action.DumpWatchedRoots.text=显示监视的 VFS 根 +group.Internal.VFS.text=VFS +action.TurnOnOffCachedValueProfilerAction.text=打开缓存值分析器 +action.DumpScreenConfiguration.text=转储屏幕配置 +action.ScanSourceCommentsAction.text=转储项目中的所有注释 +action.DumpExtensions.text=转储扩展名 +group.Internal.Dump.text=转储 +group.Internal1.text=IDEA 内部操作 +action.FindUsedTestData.text=查找未使用的测试数据 +action.ShowDiscoveredTests.text=显示受影响的测试 +action.RenameAction.text=重命名… +action.LightEditExitAction.text=退出(&X) +action.LightEditNewFileAction.text=新建(&N) +action.FileChooser.LightEditGotoOpenedFile.text=选择打开的文件 +action.LightEditOpenFileInProjectAction.text=在项目中打开文件… +action.SaveAs.text=另存为… +action.AttachProject.text=附加项目… +action.DumpVfsInfoForExcludedFilesAction.text=转储排除根下文件的 VFS 内容 +action.ResetFilterAction.text=重置筛选器 +action.ChangeSortingAction.text=按名称排序 +action.RestoreShelvedChange.text=恢复 +action.ComputeVirtualFileNameStatAction.text=计算 VF 名称统计信息 +action.CustomizeUIAction.text=自定义菜单和工具栏… +action.ShowDetailedInformationAction.text=显示间接依赖项 +action.RemoveFromScopeAction.text=从范围中移除 +action.AddToScopeAction.text=添加到范围 +action.DumpConfigurationTypesAction.text=转储配置 +action.DumpDirectoryInfoAction.text=转储目录信息 +action.DumpInspectionDescriptionsAction.text=转储检查描述 +action.DumpIntentionsAction.text=转储意图 +action.DumpFormattingModelAction.text=转储格式化模型 +action.ConfigureScopesAction.text=配置… +action.MaintenanceAction.text=维护 +action.ReopenClosedTabAction.text=重新打开关闭的选项卡 +action.SeverityEditorDialogAction.text=显示严重性编辑器 +action.ConfigureTemplatesAction.text=配置动态模板… +action.ShowFontsUsedByEditor.text=显示编辑器使用的字体 +action.ShowFontsUsedByEditor.description=允许找出编辑器中实际使用的回退字体 + +action.Profiler.OpenMergedCalleesAction.text=方法合并被调用方 +action.Profiler.OpenMergedCalleesAction.description=在新选项卡中打开选定的方法合并被调用方树 +action.Profiler.ExcludeCallAction.text=排除调用 +action.Profiler.ExcludeSubTreeAction.text=排除子树 +action.Profiler.FocusOnCallAction.text=聚焦于调用 +action.Profiler.FocusOnSubtreeAction.text=聚焦于子树 +action.Profiler.FocusOnSubtreeAction.description=在新选项卡中打开选定的子树 +action.Profiler.OpenBackTracesAction.text=方法回溯 +action.Profiler.OpenBackTracesAction.description=在新选项卡中打开选定的方法回溯树 + +action.OpenMouseWheelSmoothScrollSettings.text=平滑滚动选项 +save.file.as.template=将文件另存为模板 + +action.DupLocate.text=查找重复(_L) +action.DupLocate.description=查找项目中的重复代码 +action.InspectionFilterAction.filter.inspections.text=筛选器检查 +action.InspectionFilterAction.filter.by.language.text=按语言筛选 + +action.AnnotateStackTraceAction.show.files.modification.info.text=显示文件修改信息 + +group.ProblemsView.Options.text=视图选项 +group.ProblemsView.Options.description=允许对问题进行分类和筛选 +action.ProblemsView.AutoscrollToSource.text=一键打开文件 +action.ProblemsView.AutoscrollToSource.description=为所选文件打开编辑器,并在更改选择后导航到选定问题 +action.ProblemsView.ShowPreview.text=打开编辑器预览 +action.ProblemsView.ShowPreview.description=为所选文件打开预览,并在更改选择后导航到选定问题 +action.ProblemsView.GroupByToolId.text=按检查分组 +action.ProblemsView.GroupByToolId.description=允许按检查对问题分组 +action.ProblemsView.SortFoldersFirst.text=文件夹总在最前面 +action.ProblemsView.SortFoldersFirst.description=单独对文件和文件夹排序 +action.ProblemsView.SortBySeverity.text=按严重程度排序 +action.ProblemsView.SortBySeverity.description=允许按严重程度对问题进行排序 +action.ProblemsView.SortByName.text=按名称排序 +action.ProblemsView.SortByName.description=允许按名称对问题进行排序 +action.ProblemsView.QuickFixes.text=显示快速修复 +action.ProblemsView.QuickFixes.description=显示所选问题的可用快速修复 +action.ProblemsView.CopyProblemDescription.text=复制问题描述 +action.ProblemsView.CopyProblemDescription.description=将问题描述复制到剪贴板 + +group.Patch.MainMenu.text=补丁文件 + +action.LoadUnloadModules.text=加载/卸载模块… +group.ArrangementRulesGroup.text=排列规则 +group.FileChooserToolbar.text=文件选择器 + +action.EditorTranspose.text=转置 +action.EditSourceNotInEditor.text=编辑源(不在编辑器中) +action.ActivateFindToolWindow.text=查找 +action.ActivateRunToolWindow.text=运行 +action.ActivateDebugToolWindow.text=调试 +action.ActivateHierarchyToolWindow.text=层次结构 +group.RunContextGroupMore.text=更多运行/调试 +group.RevealGroup.text=打开于 +group.OpenInBrowserGroup.EditorTabPopup.text=浏览器 +action.ResetWindowsDefenderNotification.text=重置 Windows Defender 通知 +action.FindSelectionInPath.text=在文件中查找 + +group.Internal.Trust.text=源代码安全性 +action.UnsureProject.text=不确定 +action.TrustProject.text=信任 +action.UntrustProject.text=不信任 +action.FixWSLFirewall.text=修正 WSL 防火墙设置 + +action.RunConfigurationTemplatesForNewProjects.MainMenu.text=运行配置模板… +action.TemplateProjectStructure.MainMenu.text=结构… +action.ClickLink.text=点击链接 + +action.SetCaretVisualAttributesInternalAction.text=设置文本光标视觉特性… +action.ToggleBookmarkWithMnemonic.text=切换书签助记键 +action.DeleteMnemonicFromBookmark.text=删除助记键 +action.XDebugger.PreviewTab.text=在预览选项卡中打开文件 +group.Diff.Binary.Settings.text=设置 +action.Graph.MergeEdges.BySources.text=按源 +action.Graph.MergeEdges.ByTargets.text=按目标 +group.Graph.MergeEdgesGroup.text=合并边缘 +action.DockToolWindow.text=Dock +action.Unscramble.EditorPopup.text=堆栈跟踪或线程转储(_S)… +group.AnalyzeActionsPopup.text=分析代码 +action.Vcs.RunCommitChecks.text=运行提交检查 +action.Help.JetBrainsTV.templateText=YouTube 上的 {0} +action.DefaultBundleIndex.text=生成默认捆绑操作列表 +action.Scratch.ShowFilesPopup.text=显示临时文件 +action.Scratch.ShowFilesPopup.description=在弹出窗口中显示临时文件 +action.Scratch.ExportToScratch.text=导出到临时文件 +action.Scratch.ExportToScratch.description=作为文本导出到新的临时文件 +action.RunToolbarWidgetAction.text=运行微件组件 +action.RunToolbarProcessStartedAction.text=活动进程 +action.RunToolbarRunConfigurationsAction.text=添加配置… +action.RunToolbarRerunAction.text=重新运行 +action.RunToolbarStopAction.text=停止 +action.RunToolbarMainMultipleStopAction.text=停止 +action.RunToolbarResumeAction.text=恢复 +action.RunToolbarPauseAction.text=暂停 +group.Graph.AppearanceGroup.text=外观 +group.Graph.EdgeRealizerGroup.text=边缘形状 +action.Graph.EdgeRealizer.ArcEdgeRealizer.text=弧形 +action.Graph.EdgeRealizer.BezierEdgeRealizer.text=贝塞尔曲线 +action.Graph.EdgeRealizer.QuadCurveEdgeRealizer.text=二次曲线 +action.Graph.EdgeRealizer.SplineEdgeRealizer.text=样条 +action.Graph.EdgeRealizer.StraightPolylineEdgeRealizer.text=直多段线 +action.Graph.EdgeRealizer.SmoothedPolylineEdgeRealizer.text=平滑多段线 +group.LocalChangesView.ShowOnDoubleClick.text=双击时显示 +action.LocalChangesView.ShowOnDoubleClick.EditorPreview.text=双击时显示差异 +action.LocalChangesView.ShowOnDoubleClick.EditorPreview.ToolwindowPopup.text=差异 +action.LocalChangesView.ShowOnDoubleClick.Source.text=双击时显示源 +action.LocalChangesView.ShowOnDoubleClick.Source.ToolwindowPopup.text=源 +group.Graph.LayoutOrientationGroup.text=方向 +action.Graph.LayoutOrientation.BottomToTop.text=🠉 从下到上 +action.Graph.LayoutOrientation.TopToBottom.text=🠋 从上到下 +action.Graph.LayoutOrientation.LeftToRight.text=🠊 从左到右 +action.Graph.LayoutOrientation.RightToLeft.text=🠈 从右到左 +action.Graph.CopyEntireDiagramToClipboard.text=将图表复制到剪贴板 +action.Graph.CopyDiagramSelectionToClipboard.text=将选区复制到剪贴板 +action.Diff.ShowDiffPreview.description=选区变更时替换差异内容 +action.Diff.ShowStandaloneDiff.text=在新选项卡或窗口中显示差异 +action.Diff.ShowStandaloneDiff.description=在新选项卡或窗口中打开每个选区的差异 +action.Diff.ShowStandaloneDiff.tab.text=在新选项卡中显示差异 +action.Diff.ShowStandaloneDiff.tab.description=在新选项卡中打开每个选区的差异 +action.Diff.ShowStandaloneDiff.window.text=在新窗口中显示差异 +action.Diff.ShowStandaloneDiff.window.description=在新窗口中打开每个选区的差异 +action.PluginManagerFiltersConfigureTrustOnlyJetBrainsDebugAction.text=Org 插件筛选器: 仅信任 JetBrains +action.PluginManagerFiltersConfigureResetTrustDebugAction.text=Org 插件筛选器: 重置 +action.RunToolbarHotSwapAction.text=热交换 +action.CloseContent.EditorTabPopup.text=关闭 (_C) +action.MarkVfsCorrupted.text=将 VFS 标记为已损坏 +action.ForceIndexRescanning.text=同步索引 +action.ForceIndexRebuild.text=重建索引 +action.Vcs.Diff.ShowCombinedDiff.text=显示组合差异 +action.Vcs.Diff.ShowCombinedDiff.description=在一处显示全部所选变更的差异 +group.ProjectView.ToolWindow.Appearance.Actions.text=树外观 +action.RunToolbarShowHidePopupAction.text=同时启动多个配置 +action.RunToolbarShowHidePopupAction.show.text=显示停靠的配置 +action.RunToolbarShowHidePopupAction.hide.text=隐藏停靠的配置 +group.MoreActionGroup.text=更多 +action.CallSaul.text=修复 IDE… +action.CallSaul.description=运行缓存诊断并尝试恢复其状态 +action.SwitchFileBasedIndexStorageAction.text=切换基于文件的索引存储 +action.RunToolbarMainSlotInfoAction.text=活动进程 +group.CacheRecovery.text=缓存恢复 +action.Table-startEditing.text=编辑表单元 +action.Tree-startEditing.text=编辑树节点 +action.SearchEverywhereToolbar.searching.text=正在搜索… +action.RunToolbarMainSlotActive.text=活动进程 +group.Graph.NeighborhoodViewPopup.LayoutGroup.text=布局 +group.Graph.NeighborhoodViewPopup.AppearanceGroup.text=外观 +group.Graph.BehaviourGroup.text=行为 +group.Graph.ExportGroup.text=导出图 +action.Graph.NeighborhoodViewPopup.CompactMode.text=紧凑地显示节点 +action.Graph.NeighborhoodViewPopup.SameAsModelLayouter.text=与 Main 相同 +action.Graph.ShowStructureViewForSelectedNode.text=显示所选节点的结构视图 +tiny.spacer=微型分隔 +small.spacer=小型分隔 +big.spacer=大型分隔 +action.RunToolbarMoveToTopAction.text=将配置移至顶部 +action.RunToolbarEditConfigurationAction.text=编辑配置… +action.RunToolbarRemoveSlotAction.text=移除 +action.RunToolbarMainRunConfigurationsAction.text=添加配置… +action.ListPersistentStateComponents.text=列出持久状态组件 +action.Documentation.ToggleShowInPopup.text=首先显示文档弹出窗口 +action.Documentation.ToggleShowInPopup.description=切换是否应在工具窗口之前显示文档弹出窗口 +action.RunToolbarShowHidePopupAction.show.popup.text=显示或隐藏停靠的配置 +action.RunToolbarShowHidePopupAction.click.to.show.popup.text=点击以显示或隐藏停靠配置 +action.RunToolbarShowHidePopupAction.click.to.open.toolwindow.text=点击以打开进程工具窗口 +action.RunToolbarShowHidePopupAction.click.to.open.combo.text=点击以选择运行配置 +action.ProblemsView.OpenInPreviewTab.text=启用预览选项卡 +action.EditorLookupSelectionUp.text=选择上一个补全选项 +action.EditorLookupSelectionDown.text=选择下一个补全选项 +action.JBLogin.text=JetBrains 登录(_J)… +action.JBLogin.description=登录 JetBrains 帐户 +action.RunToolbarRemoveSlotAction.terminating=正在终止 +action.OverrideFileTypeAction.verbose.description=将文件 ''{0}''{1,choice,0#|1# (和 {1} 个其他文件)}视为不同的文件类型 +action.ReverteOverrideFileTypeAction.verbose.description=移除由“覆盖文件类型”操作造成的破坏,并为文件 ''{0}''{1,choice,0#|1# (和 {1} 个其他文件)}恢复旧的文件类型 +action.Vcs.Diff.ToggleDiffAligningMode.text=在并排差异中对齐变更 +action.Vcs.Diff.ToggleDiffAligningMode.popup@DiffToolbar.text=对齐变更高亮显示 +action.Vcs.Diff.ToggleDiffAligningMode.description=启用双面差异的变更对齐 +action.RunToolbarShowToolWindowTab.text=显示进程工具窗口 +action.XDebugger.ToggleEvaluateExpressionField.text=显示评估表达式字段 +group.XDebugger.Watches.Presentation.text=演示设置 +action.NewMigration.text=创建新的迁移… +group.MigrationMenu.text=迁移软件包和类 +action.Documentation.ViewExternal.text=查看外部文档 +action.JBCefOsrMeasureFps.text=测量 OSR JCEF FPS +action.Documentation.Back.text=后退 +action.Documentation.Forward.text=前进 +action.Documentation.EditSource.text=编辑源 +action.Documentation.ToggleAutoShow.text=在补全期间自动显示 +action.Documentation.ToggleAutoShow.description=切换是否使用补全弹出窗口自动显示文档 +action.DeleteRecentFiles.text=从最近的文件删除 +action.DeleteRecentFiles.description=从最近的文件中删除选定的文件或关闭选定的工具窗口 +group.popup@ExpandableBookmarkContextMenu.text=书签 +action.Documentation.KeepTab.text=保留此文档 +action.Documentation.KeepTab.description=关闭当前选项卡中的所有更新,使下一个操作调用打开新的选项卡 +action.Documentation.ToggleAutoUpdate.text=从源自动更新 +action.Documentation.ToggleAutoUpdate.description=选择变更时自动刷新文档 +action.ExcludeFromProjectAction.text=从项目中排除 +action.IncludeToProjectAction.text=包含到项目中 +group.EditorTabsEntryPoint.text=最近的文件、选项卡操作等 +action.CheckSuggestedPlugins.text=检查建议的插件 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/AgreementsBundle.properties b/original-plugin-raw/zh/messages/AgreementsBundle.properties new file mode 100644 index 000000000..f9b33da5e --- /dev/null +++ b/original-plugin-raw/zh/messages/AgreementsBundle.properties @@ -0,0 +1,15 @@ +userAgreement.dialog.privacyPolicy.title=隐私政策 +userAgreement.dialog.userAgreement.title=用户协议 +userAgreement.dialog.continue=继续 +userAgreement.dialog.exit=退出 +userAgreement.dialog.checkBox=我确认我已阅读并接受此《用户协议》的条款 +userAgreement.dialog.eap.consents.privacyPolicy=默认情况下,EAP 构建会根据此《隐私政策》报告使用情况统计信息。 +userAgreement.dialog.eap.consents.noPrivacyPolicy=默认情况下,EAP 构建会根据 JetBrains 隐私政策报告使用情况统计信息。 +userAgreement.dialog.eap.consents.noPersonalData=不会发送个人或敏感数据。您可以在设置中禁用。 + +dataSharing.dialog.title=数据共享 +dataSharing.dialog.accept=发送匿名统计信息 +dataSharing.dialog.decline=不发送 +dataSharing.consents.title=数据共享 +dataSharing.revoke.hint=您随时可以在“{0} | 外观与行为 | 系统设置 | 数据共享”中更改此行为。 +dataSharing.applyToAll.hint=数据共享偏好设置适用于所有已安装的 {0} 产品。 diff --git a/original-plugin-raw/zh/messages/AjJpsBundle.properties b/original-plugin-raw/zh/messages/AjJpsBundle.properties new file mode 100644 index 000000000..04e695cff --- /dev/null +++ b/original-plugin-raw/zh/messages/AjJpsBundle.properties @@ -0,0 +1,11 @@ +aj.compiler.path.incorrect=AspectJ 编译器 .jar 路径不正确: ''{0}'' +aj.too.many.modules=AspectJ 编译器无法处理模块循环 {0} +aj.progress.loading=正在加载类… +aj.progress.weaving=正在编织类… +aj.progress.compiling=正在编译 {0}… +aj.internal=内部 AspectJ 编译器错误: {0} +aj.internal.error.bad.args=内部错误: 错误实参 +aj.internal.error.no.sources=内部错误: 没有源 +aj.class.dependency.information.incomplete.error.0=类依赖项信息可能不完整! 解析生成的类 {0} 时出错 +aj.compiler.settings.component.not.initialized.for.0=未对 {0} 初始化编译器设置组件 +aj.internal.error.java.builder.missing=内部错误: 缺少 Java 构建器 diff --git a/original-plugin-raw/zh/messages/AnalysisBundle.properties b/original-plugin-raw/zh/messages/AnalysisBundle.properties new file mode 100644 index 000000000..9041a6340 --- /dev/null +++ b/original-plugin-raw/zh/messages/AnalysisBundle.properties @@ -0,0 +1,216 @@ + +backward.dependencies.usage.view.initial.text=选择在右侧树中搜索的位置以及在左侧树中搜索的内容。 +backward.dependencies.usage.view.root.node.text=左侧树范围选区在右侧树范围选区中的用法 +cannot.resolve.symbol=无法解析符号 ''{0}'' +cleanup.in.file=清除代码 +cleanup.in.scope=清除代码…… +color.settings.common.default.language=默认语言 +color.settings.rainbow.demo.header.1=语义高亮显示: +color.settings.rainbow.demo.header.2=生成的光谱为局部变量和参数选择颜色: +default.path.evaluator.option=告诉基准提供程序,如何评估给定文件的默认路径 +error.cannot.resolve=无法解析 +error.cannot.resolve.file.or.dir=无法解析 {0} ''{1}'' +error.cannot.resolve.default.message=无法解析符号''{0}'' +find.usages.panel.title.usages=用法 +forward.dependencies.usage.view.initial.text=选择在左树哪里搜索和在右树搜索什么. +forward.dependencies.usage.view.root.node.text=右侧树范围选区在左侧树范围选区中的用法 +inspection.dead.code.comment=// --注释掉检查 +inspection.dead.code.comment.quickfix=注释掉 +inspection.dead.code.date.comment=// --注释掉检查 ({0}): +inspection.dead.code.display.name=未使用的声明 +inspection.dead.code.entry.point.quickfix=添加作为入口点 +inspection.dead.code.entry.points.display.name=入口点 +inspection.dead.code.export.results.instantiated.from.heading=实例化 +inspection.dead.code.export.results.no.instantiations.found=没有实例化发现. +inspection.dead.code.problem.synopsis=字段未分配. +inspection.dead.code.problem.synopsis1=字段未使用. +inspection.dead.code.problem.synopsis10=匿名类声明上下文从入口点是不可到达的.类是从来没有实例化. +inspection.dead.code.problem.synopsis11=未发现类引用。类 static 初始值设定项不可到达。 +inspection.dead.code.problem.synopsis12=类有一个实例化但它无法访问从入口点. +inspection.dead.code.problem.synopsis13=类是不实例化. +inspection.dead.code.problem.synopsis14=
      • abstract 方法没有实现,或
      • 实现类从未实例化,或
      • 一个实例无法从入口点到达。
      +inspection.dead.code.problem.synopsis15=
      • 方法所有者类没有实例化,或
      • 一个实例是不是从入口点到达。
      +inspection.dead.code.problem.synopsis16=方法从未使用。 +inspection.dead.code.problem.synopsis17=方法使用(s),但他们都属于递归调用链,没有成员可从入口点. +inspection.dead.code.problem.synopsis18=方法从入口点是不可到达的. +inspection.dead.code.problem.synopsis19=类和{0, choice, 1#1|2#{0,number}}个实现都没有实例化. +inspection.dead.code.problem.synopsis2=字段被指定,但无法访问. +inspection.dead.code.problem.synopsis20=类有 {0, choice, 1#1|2#{0,number}}实例,但他们是不可达的切入点。 +inspection.dead.code.problem.synopsis21=方法从未用作此{0}的成员,但仅作为实现类的成员。如果从{0}中移除该方法,项目将保持兼容。 +inspection.dead.code.problem.synopsis22=方法覆盖一个库方法但
      • 其{0}是从来没有实例化或
      • 其{0}实例从入口点是不可到达的..
      +inspection.dead.code.problem.synopsis23={0}是没有实现. +inspection.dead.code.problem.synopsis24={0} 有一个实现但
      • 这是从来没有实例化或
      • 没有实例化从入口点是可及的.
      +inspection.dead.code.problem.synopsis25={0} 有 {1, choice, 1#直接或间接的实现|2#{1,number} 直接或间接的实现} 但是
      • 他们从不实例化或
      • 没有实例可从入口点。
      +inspection.dead.code.problem.synopsis26.constructor=构造函数从未使用过. +inspection.dead.code.problem.synopsis26.method=方法从未使用。 +inspection.dead.code.problem.synopsis27.constructor=构造函数有用法(s),但他们都属于递归调用链,没有成员可从入口点. +inspection.dead.code.problem.synopsis27.method=方法使用(s),但他们都属于递归调用链,没有成员可从入口点. +inspection.dead.code.problem.synopsis28.constructor=构造函数有一个用法,但它是不可到达的从入口点. +inspection.dead.code.problem.synopsis28.method=方法有一个使用但它无法访问从入口点. +inspection.dead.code.problem.synopsis29.constructor=构造函数有 {0, choice, 1#使用|2#{0,number} 使用} 但他们是不可达的切入点。 +inspection.dead.code.problem.synopsis29.method=方法有 {0, choice, 1#使用|2#{0,number} 使用} 但他们是不可达的切入点。 +inspection.dead.code.problem.synopsis3=字段有一个用法,但从入口点无法访问. +inspection.dead.code.problem.synopsis4=字段有{0, choice, 1#1|2#{0,number}}个用法,但不能从入口点访问. +inspection.dead.code.problem.synopsis6=可到达。在项目代码中发现{0, choice, 1#1 个用法|2#{0, number} 个用法}。 +inspection.dead.code.problem.synopsis6.suspicious=不可到达。在项目代码中发现{0, choice, 1#1 个用法|2#{0, number} 个用法}。 +inspection.dead.code.problem.synopsis7=具有可到达的实例化。在项目代码中发现 {0, choice, 1#1 个实例化|2#{0, number} 个实例化}。 +inspection.dead.code.problem.synopsis7.suspicious=没有可到达的实例化。在项目代码中发现 {0, choice, 0#0 个实例化|1#1 个实例化|2#{0, number} 个实例化}。 +inspection.dead.code.problem.synopsis8=具有可到达的实现实例化。在项目代码中发现 {0, choice, 1#1 个实例化|2#{0, number} 个实例化}。 +inspection.dead.code.problem.synopsis8.suspicious=没有可达的实例化实现。在项目代码中找到{0, choice, 1#1|2#{0, number}}个实例. +inspection.dead.code.problem.synopsis9=在项目代码中发现{0, choice, 1#1|2#{0, number}}个实例化。 +inspection.dead.code.problem.synopsis9.suspicious=匿名类上下文不可达。类未被实例化。在项目代码中找到{0, choice, 1#1|2#{0, number}}个实例化。 +inspection.dead.code.remove.user.defined.entry.point.quickfix=删除用户定义的入口点 +inspection.dead.code.safe.delete.quickfix=安全删除 +inspection.dead.code.commented.hint=已注释掉 +inspection.dead.code.deleted.hint=已删除 +inspection.dead.code.start.comment=// --注释掉检查 START ({0}):\n +inspection.dead.code.stop.comment=// --注释掉检查 STOP ({0})\n +inspection.deprecated.display.name=弃用的 API 用法 +inspection.disabled.error=检查''{0}''是禁用:{1}. +inspection.disabled.wrong.id=检查''{0}''是禁用:ID''{1}''不匹配''{2}''模式. +inspection.display.name.syntax.error=语法错误 +inspection.export.results.abstract=abstract +inspection.export.results.abstract.class=abstract 类 +inspection.export.results.anonymous.ref.in.owner=位于 +inspection.export.results.at.line=行 +inspection.export.results.capitalized.abstract.class=Abstract\\ class +inspection.export.results.capitalized.class=类 +inspection.export.results.capitalized.interface=接口 +inspection.export.results.capitalized.location=位置 +inspection.export.results.class=类 +inspection.export.results.constructor=构造函数 +inspection.export.results.dead.code=未使用的声明 +inspection.export.results.derived.methods=派生方法 +inspection.export.results.extended=延长 +inspection.export.results.extended.implemented=继承/实现 +inspection.export.results.extends.implements=继承/实现 +inspection.export.results.field=字段 +inspection.export.results.file=文件 +inspection.export.results.initializer=初始值设定项 +inspection.export.results.interface=接口 +inspection.export.results.method=方法 +inspection.export.results.no.problems.found=没有发现错误或警告 +inspection.export.results.overrides.implements=重写/实现 +inspection.export.results.static=static +inspection.export.results.used.from=使用从 +inspection.export.results.uses=使用以下 +inspection.export.results.invalidated.item=无效的项目 +inspection.marked.for.removal.display.name=使用API标记为删除 +inspection.options.action.text=检查''{0}''选项 +inspection.problem.resolution=解决问题 +inspection.problem.synopsis=问题摘要 +inspection.processing.job.descriptor=正在处理以下位置中的项目用法 +inspection.processing.job.descriptor1=处理外部使用 +inspection.processing.job.descriptor2=分析代码 +inspection.progress.title=正在检查代码… +inspection.redirect.template=注入元素存在问题: {0} (在{3} 中)。 +inspection.reference.anonymous=匿名 +inspection.reference.invalid=元素不再存在 +local.scopes.node.text=局部范围 +package.dependencies.progress.text=正在分析软件包依赖项 +pass.syntax=语法分析 +predefined.scope.problems.name=问题 +predefined.scope.production.name=生产 +psi.search.scope.production.files=项目生产文件 +psi.search.scope.test.files=项目测试文件 +scanning.scope.progress.title=扫描范围... +scope.directory=目录 ''{0}'' +scope.display.name.allow.scope=在范围''{1}''启用范围''{0}''的使用 +scope.display.name.deny.scope=在范围 ''{1}'' 拒绝范围 ''{0}'' 的用法 +scope.file=文件 ''{0}'' +scope.module.list={1, choice, 1#模块|2#模块} {0} +scope.option.module=模块 ''{0}'' +scope.project=项目 ''{0}'' +scope.selected.files=选定的文件 +scope.virtual.files=选择区域 +display.name.directories.0=目录 {0} +display.name.directory.0=目录 ''{0}'' +shared.scopes.node.text=共享范围 +suppress.inspection.family=禁止检查 +suppress.inspection.statement=对语句禁止 +suppress.inspection.file=对文件禁止 +suspicious.name.combination.add.title=添加名称组 +suspicious.name.combination.display.name=可疑的变量/形参名称组合 +suspicious.name.combination.edit.title=编辑群名称 +suspicious.name.combination.options.prompt=输入一个逗号分隔的列表的名称: +suspicious.name.combination.options.title=组名称: + +#filters +inspections.settings.show.modified.text=仅显示修改的检查 +inspections.settings.show.new.text=显示 {0} 中的新检查 +inspections.settings.show.new.description=显示自 {0} 起可用的新检查 +inspections.settings.language.not.specified.warning=未指定语言 +inspections.settings.show.only.batch.text=仅显示批处理模式检查 +inspections.settings.show.only.cleanup.text=仅显示清理检查 +inspections.settings.show.only.disabled.text=仅显示禁用项 +inspections.settings.show.only.enabled.text=仅显示启用项 + +#import +inspections.settings.undefined.severities.detected.dialog.message=检测到未定义的严重程度: {0}。要创建它们吗? +inspections.settings.overwrite.action.text=覆盖 +inspections.settings.overwrite.warning.title=覆盖警告 +inspections.settings.profile.already.exists.dialog.message=名称为 ''{0}'' 的配置文件已存在。要覆盖它吗? +inspections.settings.invalid.format.warning=文件 ''{0}'' 的格式无效。 +inspections.settings.profile.file.chooser.description=选择配置文件 + +#details +inspections.settings.empty.text=找不到检查 +inspections.settings.options.title=选项 +inspections.settings.options.title.specific.scope=''{0}'' 的选项 +inspections.settings.disable.new.inspections.by.default.checkbox=默认禁用新检查 +inspections.settings.multiple.inspections.warning=选择了多个检查。您可以将它们作为单个检查进行编辑。 +inspections.settings.no.description.warning=无法找到检查描述。 +inspections.settings.scopes.order.title=范围顺序 +inspections.settings.scopes.name=名称 +inspections.settings.scopes.pattern=模式 +inspections.settings.scopes.order.help.label=此配置文件中的所有检查共用范围顺序。
      如果文件属于多个范围,则使用列表中第一个范围的检查设置。 +text.illegal.character=非法字符: {0} +intention.name.in.injection=在注入中{0} +inspection.message.line.separators.in.current.file.differ.from.project.defaults=当前文件的行分隔符({0})中与项目默认设置({1})不同 +intention.family.name.convert.to.project.line.separators=转换为项目行分隔符 + +#GPUB +parsing.error.empty.element.parsed.in.at.offset=在 ''{0}'' 的偏移 {1} 处解析了空元素 +parsing.error.maximum.recursion.level.reached.in=在 ''{1}'' 中达到了最大递归级别({0}) +parsing.error.no.expected.done.marker.at.offset=偏移 {0} 处没有预期的完成标记 +parsing.error.unmatched.input=不匹配的输入 +parsing.error.expected=应为 {0} +parsing.error.expected.got=应为 {0},得到 ''{1}'' +parsing.error.unexpected=意外 ''{0}'' +parsing.error.and.ellipsis=和 … +parsing.error.or=或 + +#templates +template.context.everywhere=所有位置 +insert.code.template.command=插入代码模板 +completion.not.all.variants.are.shown=输入更多字符以查看所有建议 +inspection.display.name.annotator=注解器 +library.0=库 ''{0}'' +tests.scope.name=测试 +all.scope.name=所有 +generated.files.scope.name=生成的文件 +MsDomainInUserNameValidator.progress.title.set.up.domain.authentication=设置域身份验证 +MsDomainInUserNameValidator.notification.title.not.allowed.in.user.name=用户名中不允许使用 '\' +MsDomainInUserNameValidator.notification.content.do.you.want.to.set.up.href.action0.domain.authentication=想要设置域身份验证吗? +MsDomainInUserNameValidator.notification.content.not.allowed.in.user.name.looks.like.you.want.domain.authentication=用户名中不允许使用 '\'。您可以使用域身份验证 +SsrpInfoCache.progress.title.discovering.reachable.sql.server.instances=正在发现可到达的 SQL Server 实例 +SsrpInfoCache.progress.title.discovering.instances.on=正在发现 {0} 上的实例 +MsBuiltinInspection.inspection.message.second.argument.isnull.implicitly.truncated=ISNULL() 的第二个参数被隐式截断 +MsOrderByInspection.inspection.message.order.by.clause.invalid=除非指定 TOP、OFFSET 或 FOR XML 子句,否则 ORDER BY 子句在子查询和视图中无效 +OraErrorHandler.set.locale=区域设置 +notification.title.unix.socket.connection=Unix 套接字连接 +command.name.gather.fixes=收集修正 +intention.family.name.fix.all.problems.like.this=修正所有诸如此类的问题 +intention.name.apply.all.fixes.in.file=在文件中应用所有 ''{0}'' 修正 + +file.read.error=无法从文件 {0} 读取。 +file.write.error=文件{0}无法写入。 +file.delete.root.error=无法删除根文件{0}。 + +inspections.settings.empty.text.filters.link=清除筛选器 +inspections.settings.empty.text.inspection.link=创建检查… +inspections.settings.popup.title.create.inspection=创建检查 +jar.modification.not.supported.error=不能修改jar或zip文件{0}。 +documentation.settings.inline.code.highlighting.mode.no.highlighting=不突出显示 +documentation.settings.inline.code.highlighting.mode.as.default.code=作为普通代码 +documentation.settings.inline.code.highlighting.mode.semantic.highlighting=突出显示关键字 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/AndroidBundle.properties b/original-plugin-raw/zh/messages/AndroidBundle.properties new file mode 100644 index 000000000..05a1611e4 --- /dev/null +++ b/original-plugin-raw/zh/messages/AndroidBundle.properties @@ -0,0 +1,1310 @@ +action.DeviceAndSnapshotComboBox.text=选择设备 +action.Android.FixAndroidRunConfigurations.text=修复 Android 运行配置 +action.Android.FixAndroidRunConfigurations.description=如果 Android 运行配置中缺少“Gradle-aware Make”启动任务,请添加此任务 +action.LayoutEditor.AddSampleData.text=添加示例数据文件 +action.LayoutEditor.AddSampleData.description=添加新的数据示例文件 +action.ConvertFromWebp.text=转换为 PNG… +action.ConvertToWebp.text=转换为 WebP… +action.InferAnnotations.text=推断支持注解… +action.AndroidAddRTLSupport.text=在可能的情况下添加 RTL 支持… +action.AndroidAddRTLSupport.description=在可能的情况下添加从右到左(RTL)支持 +action.AndroidFindStyleApplicationsAction.text=在可能的情况下使用样式(_W)… +action.AndroidFindStyleApplicationsAction.description=在可能的情况下,将特性替换为 Android 样式引用 +action.AndroidInlineIncludeAction.text=内联布局(_L)… +action.AndroidInlineIncludeAction.description=内联包含的 Android 布局 +action.AndroidInlineStyleReferenceAction.text=内联样式(_S)… +action.AndroidInlineStyleReferenceAction.description=内联 Android 样式 +action.AndroidExtractAsIncludeAction.text=布局(_L)… +action.AndroidExtractAsIncludeAction.description=将一个或多个视图提取到单独的布局中 +action.AndroidEnableInstantAppsSupport.text=启用即时应用支持… +action.AndroidEnableInstantAppsSupport.description=为模块启用即时应用支持 +action.AndroidExtractStyleAction.text=样式(_Y)… +action.AndroidExtractStyleAction.description=从布局中拉取与样式相关的特性,并将其作为新样式提取 +action.AndroidMigrateToResourceNamespacesAction.text=迁移到资源命名空间… +action.AndroidMigrateToResourceNamespacesAction.description=迁移到资源命名空间 +action.AndroidMigrateToAndroidxAction.text=迁移到 AndroidX… +action.AndroidMigrateToAndroidxAction.description=迁移到 AndroidX 软件包名称 +action.AndroidMigrateToAppCompatAction.text=迁移到 AppCompat… +action.AndroidMigrateToAppCompatAction.description=将应用迁移到 AppCompat +action.AndroidUnusedResourceAction.text=移除未使用的资源… +action.AndroidUnusedResourceAction.description=移除未使用的资源 +action.AndroidModularizeAction.text=模块化… +action.AndroidModularizeAction.description=将类及其关联资源移到另一个模块 +action.AndroidConnectDebuggerAction.text=将调试器附加到 Android 进程 +action.AndroidConnectDebuggerAction.description=将调试器附加到 Android 进程 +action.IdeaNewProject.text=IDEA 新项目… +action.StatisticsViewer.text=显示统计信息查看器 +group.Internal.Android.text=Android +action.Android.DeviceExplorer.Help.text=打开设备资源管理器帮助 +action.Android.DeviceExplorer.GotoSdcardFolder.text=导航到 SD 卡文件夹 +action.Android.DeviceExplorer.GotoDatabaseFolder.text=导航到数据库文件夹 +action.Android.DeviceExplorer.GotoSharedPrefsFolder.text=导航到共享的偏好设置文件夹 +action.Android.RunAndroidAvdManager.text=AVD 管理器 +action.Android.RunAndroidAvdManager.toolbar.text=添加设备定义… +action.Android.RunAndroidAvdManager.popup.text=打开 AVD Manager +action.Android.RunAndroidAvdManager.description=打开 Android 虚拟设备 (AVD) 管理器,来管理仿真器映像和快照 +group.AndroidToolsGroup.text=Android +action.Android.CreateResourcesActionGroup.text=Android 资源文件 +action.Android.ExportProjectZip.text=将项目导出为 Zip 文件… +action.Project.InterproceduralThreadAnnotations.text=过程间线程注解检查器 +action.Project.CallGraph.text=上下文调用路径 + +command.0.execution.failed.with.exit.code.1=命令“{0}”执行失败,退出代码 {1} +add.string.resource.intention.text=提取字符串资源 +extract.dimension.intention.text=提取尺寸资源 +implement.parcelable.intention.text=添加 Parcelable 实现 +remove.parcelable.intention.text=移除 Parcelable 实现 +redo.parcelable.intention.text=替换 Parcelable 实现 +add.dependency.intention.text=添加库依赖项 +resource.name=资源名称 +intention.family=Android +package.not.found.error=清单文件中未指定软件包 +cannot.resolve.flag.error=无法解析标志 +cannot.resolve.format.error=无法解析格式 +create.value.resource.quickfix.name=在 ''{1}'' 中创建值资源 ''{0}'' +create.value.resource.intention.name=创建 {0} 值资源 ''{1}'' +create.file.resource.quickfix.name=在 {1} 中创建资源文件 ''{0}'' +create.file.resource.intention.name=创建 {0} 资源文件 ''{1}'' +quick.fixes.family=Android 快速修复 +not.resource.file.error=文件 {0} 不是资源文件 +check.resource.dir.error=找不到模块 {0} 的资源目录 +choose.device.dialog.title=选择部署目标 +replace.avd.question=AVD {0} 已存在。是否替换? +create.avd.dialog.title=创建 Android Virtual Device +rename.alternate.resources.question=为其他配置重命名替代资源? +rename.dialog.title=收藏列表的新名称 +specify.avd.name.error=请指定 AVD 名称 +select.platform.error=请选择 Android SDK +avd.dialog.title=选择 Android Virtual Device +select.compatible.avd.error=请选择兼容 AVD +cant.remove.avd.error=无法移除 AVD。请关闭模拟器 +cant.load.avds.error=无法重新加载 AVD 列表。请检查 SDK +build.android.module.process.title=创建 Android 主软件包 +package.name.must.contain.2.ids.error=软件包名称必须包含 2 个分段(例如 com.example) +specify.platform.error=请指定 Android SDK +run.error.apk.not.valid=当前项目无法运行 +run.error.apk.not.signed=当前所选变体({0})的 APK 未签署。请为此变体({1})指定签署配置。 +cannot.connect.to.adb.error=无法连接到 ADB。可能未指定 Android SDK。 +specify.main.package.error=未指定模块 {0} 中的 Android 主软件包 +android.module.type.name=应用模块 +android.module.type.description=Android 模块用于开发以 Android 操作系统为目标的移动应用。 +not.valid.activity.name.error=不是有效的 Activity 名称“{0}” +specify.package.name.error=必须指定软件包名称 +not.valid.package.name.error=不是有效的软件包名称“{0}” +cant.find.activity.class.error=找不到 android.app.Activity 类 +cant.find.class.error=找不到 {0} 类 +activity.class.not.specified.error=未指定 Activity 类 +not.activity.subclass.error={0} 不是 Activity 子类或别名 +no.facet.error=找不到 {0} 的 Android facet +android.logcat.tab.title=Logcat +android.logcat.title=Android Monitor +android.logcat.error.dialog.title=Android Logcat 错误 +android.logcat.color.page.name=Android Logcat +warning.level.title=警告 +verbose.level.title=Verbose +info.level.title=信息 +debug.level.title=调试 +error.level.title=错误 +assert.level.title=断言 +rename.resource.question=重命名资源“{0}”? +rename.resource.dialog.text=将资源 {0} 重命名为 +create.project.library=创建项目库 ''{0}''(&P) +create.global.library=创建全局库 ''{0}''(&A) +create.library.dialog.title=创建 Android 库 +select.target.dialog.text=请选择 Android 目标 +default.activity.not.found.error=找不到默认 Activity +specific.activity.not.launchable.error=Activity 必须导出或包含 intent-filter +activity.not.declared.in.manifest=Activity ''{0}'' 未在 AndroidManifest.xml 中声明 +activity.without.launcher.intent=Activity ''{0}'' 没有启动器 intent +activity.declared.but.manifest.merging.disabled=Activity ''{0}'' 在库模块中声明,但是应用模块 ''{1}'' 的清单合并被禁用 +new.typed.resource.command.name=新建 {0} 资源文件 +new.typed.resource.dialog.title=新建 {0} 资源文件 +new.file.dialog.text=输入一个新的文件名 +new.typed.resource.action.description=创建新的 {0} 资源文件 +new.typed.resource.action.title={0}资源文件 +new.resource.action.title=Android 资源文件 +new.resource.dir.action.title=Android 资源目录 +new.resource.action.description=创建新的资源文件 +new.resource.command.name=新建资源文件 +new.resource.dialog.title=新建资源文件 +new.resource.dir.command.name=新建资源目录 +new.resource.dir.dialog.title=新建资源目录 +new.sampledata.dir.action.title=示例数据目录 +new.sampledata.dir.action.description=创建新的示例数据目录 +no.android.targets.error=在此 SDK 中找不到任何 Android 目标 +android.choose.color=选择颜色 +android.run.configuration.type.name=Android 应用 +android.run.configuration.type.description=Android 启动/调试配置 +android.run.bundle.configuration.type.name=Android 应用(bundle) +android.run.bundle.configuration.type.description=Android 启动/调试配置(bundle) +android.test.run.configuration.type.name=Android Instrumented Tests +android.test.run.configuration.type.description=Android Instrumented Tests 配置 +android.run.configuration.package.label=包(&K) +android.run.configuration.class.label=类(&L) +android.run.configuration.method.label=方法(&T) +android.run.configuration.all.in.module.radio=模块中的所有(&A) +android.run.configuration.all.in.package.radio=软件包中的所有(&I) +android.run.configuration.class.radio=类(&S) +android.browse.test.class.dialog.title=选择测试类 +android.run.configuration.method.radio=方法(&E) +android.test.run.configuration.instrumentation.label=仪器类: +android.browse.instrumentation.class.dialog.title=选择仪器类 +instrumentation.runner.class.not.specified.error=未指定仪器运行器类 +cannot.find.testcase.error=找不到 junit.framework.TestCase 类 +android.run.configuration.do.nothing.label=不启动 Activity(&D) +target.package.not.specified.error=未在 AndroidManifest.xml 中指定目标软件包 +android.run.configuration.network.spped.label=网络速度(&N): +android.run.configuration.network.latency.label=网络延迟(&E): +android.run.configuration.wipe.user.data.label=擦除用户数据(&W) +android.run.configuration.disable.boot.animation.label=禁用启动动画(&B) +android.run.configuration.command.line.label=附加命令行选项(&C) +android.run.configuration.logcat.skip.content.label=启动前清除日志(&C) +android.avd.error.title=AVD 错误 +cant.load.avds.error.prefix=无法重新加载 AVD 列表: +android.export.signed.package.action.text=导出签署的应用软件包 +android.generate.signed.apk.action.text=生成已签名的 APK… +android.generate.signed.apk.action.bundle.text=生成已签名的捆绑包/APK… +android.unable.to.get.output.directory.error=无法获取项目的输出文件夹 +android.file.not.exist.error=文件{0}不存在 +android.project.contains.errors.error=该项目包含错误 +android.export.package.existing.keystore.label=使用现有密钥库(&U) +android.export.package.new.keystore.label=创建新的密钥库(&C) +android.export.package.keystore.location.label=位置(&L): +android.password.label=密码(&S): +android.confirm.password.label=确认(&C): +android.export.package.passwords.not.match.error=密码不匹配 +android.export.package.specify.keystore.location.error=请指定密钥库位置 +android.export.package.specify.key.password.error=请指定密钥的密码 +android.export.package.specify.key.store.password.error=请指定密钥库的密码 +android.export.package.specify.password.error=请指定密码 +android.export.package.incorrect.password.length=密码必须至少为 6 个字符 +android.cannot.find.directory.error=无法找到目录 {0} +android.cannot.find.file.error=未找到文件{0} +android.export.package.new.key.label=创建新的密钥(&C) +export.android.package.existing.key.label=使用现有密钥(&U) +android.export.package.key.alias.label=别名(&A): +android.export.package.keystore.error.title=密钥库加载错误 +android.extract.package.select.key.alias.error=请选择别名 +android.export.package.key.validity.label=有效期(年)(&V): +android.export.package.key.certificate.name.label=名字和姓氏(&F): +android.export.package.organization.unit.label=组织单位(&O): +android.export.package.city.label=城市或地区(&L): +android.export.package.state.label=州或省(&T): +android.export.package.country.code.label=国家/地区代码(XX)(&X): +android.export.package.specify.key.alias.error=请指定键别名 +android.export.package.specify.certificate.field.error=至少一个证书颁发者字段需要为非空 +android.export.package.organization.label=组织(&R): +android.cannot.create.new.key.error=无法创建新密钥或密钥库 +android.create.new.key.error.prefix=密钥已创建,存在错误: +android.cannot.find.parent.directory.error=找不到文件 {0} 的父目录 +android.extract.package.choose.keystore.title=选择密钥库文件 +android.export.package.destination.akp.label=目标 APK 路径(&D): +android.extract.package.cannot.find.key.error=无法找到密钥 {0} +android.extract.package.specify.apk.path.error=请指定目标 APK 路径 +android.extract.package.task.title=生成 APK 文件 +android.export.package.wizard.title=正在已签名的 APK +android.export.package.wizard.bundle.title=生成签署的 Bundle 或 APK +android.export.package.bundle.description=生成签署的应用 Bundle 以上传到应用商店来获得以下好处:
      • 更小的下载大小
      • 按需应用功能
      • 仅资产模块
      +android.export.package.bundle.gradle.error=生成签署的 Bundle 需要您将 Android Gradle 插件更新到 3.2.0 或更高版本。 +android.export.package.bundle.gradle.update=关闭此对话框并更新插件 +android.export.package.bundle.key.export=导出加密密钥,将发布的应用注册在 +android.export.package.success.message=已成功创建文件 {0} +android.apk.sign.gradle.no.model=缺少 Gradle 项目信息。请检查 IDE 是否已成功将其状态与 Gradle 项目模型同步。 +android.apk.sign.gradle.missing.destination=请为签署的 {0} 指定目标文件夹 +android.apk.sign.gradle.invalid.destination=该目标文件夹不存在或不可写 +android.apk.sign.gradle.missing.variants=请选择要构建并签署的构建变体 +android.apk.sign.gradle.missing.signature-version=请至少选择一个要使用的签名版本 +android.apk.sign.gradle.no.variants=未定义构建变体 +avd.not.found.error=找不到 AVD {0} +avd.not.valid.error=AVD {0} 无效 +avd.not.compatible.error=AVD {0} 的构建目标与您的构建目标不兼容 +avd.cannot.be.loaded.error=无法加载虚拟设备 +navigate.to.android.resource.action=导航到 Android 资源定义 +android.identifier.expected={0} 不是一个标识符 +android.directory.cannot.be.found.error=无法找到“{0}”目录 +create.run.configuration.question=是否要为模块 {0} 创建运行配置? +create.run.configuration.title=创建 Android 运行配置 +file.must.be.under.module.error=无法计算 {0} 的相对路径 +android.extract.package.choose.dest.apk=选择目标 APK 文件 +android.cannot.create.file.error=无法创建文件 {0} +android.cannot.create.dir.error=无法创建目录{0} +android.manifest.not.found.error=AndroidManifest.xml 不存在或根标记不正确 +android.run.configuration.not.supported=当前项目不支持运行配置 {0}。无法获取 APK 文件的位置。 +android.apt.settings.title=R.java 和 Manifest.java 文件 +android.aidl.settings.title=AIDL 编译器 +android.generate.r.java.checkbox=在资源更改后重新生成 R.java 文件(&G) +android.dest.directory.title=生成文件的目录(&Y): +android.generate.r.java.by.res.dir=使用在“结构”部分中指定的资源目录(&O) +android.use.custom.r.java.source.dir=使用自定义资源目录(&M): +android.regenerate.idl.when.changed.checkbox=在 AIDL 文件更改后重新生成 Java 文件(&J) +android.as.wizard.welcome.dialog.title=Android Studio 安装向导 +android.ij.wizard.welcome.dialog.title=Android Support 插件安装向导 +android.wizard.application.project.button=应用(&A) +android.wizard.lib.project.button=库(&L) +android.wizard.test.project.button=测试(&T) +android.wizard.tested.project.label=经过测试的模块(&M): +android.wizard.specify.tested.module.error=请指定经过测试的模块 +android.wizard.tested.module.without.facet.error=经过测试的模块必须包含 Android facet +android.wizard.cannot.find.module.parent.dir.error=找不到模块父目录: {0} +android.wizard.invalid.sdk.error=Android SDK 无效 +android.wizard.new.activity.title=新建 Android Activity +android.wizard.new.fragment.title=新建 Android Fragment +android.wizard.new.component.title=新建 Android 组件 +android.wizard.config.activity.title=配置 Activity +android.wizard.config.component.title=配置组件 +android.wizard.config.fragment.title=配置 Fragment +android.wizard.action.new.component=创建新的 {0} +android.wizard.action.requires.minsdk={0} (需要 minSdk >= {1}) +android.wizard.action.requires.androidx={0} (需要 AndroidX 支持) +android.wizard.action.requires.new.agp={0} (需要 Android Gradle 插件 {1} 或更新版本) +android.wizard.action.no.app.theme={0} (找不到应用主题) +android.wizard.module.presentable.name=Android +android.wizard.module.description=Android 模块用于开发要在 Android 操作系统上运行的应用。
      Android 模块包括一个或多个操作组件且可能支持一些机型,
      包括手机与平板电脑WearAndroid Auto。 +android.wizard.module.import.eclipse.title=导入 Eclipse ADT 项目 +android.wizard.module.import.eclipse.description=将现有 Eclipse ADT 项目作为模块导入 +android.wizard.module.import.gradle.title=导入 Gradle 项目 +android.wizard.module.import.gradle.description=将现有 Gradle 项目作为模块导入 +android.wizard.module.import.library.title=从库中导入模块 +android.wizard.module.import.library.browse.title=选择软件包 +android.wizard.module.import.library.browse.description=选择要作为新模块导入的 jar 或 aar 软件包 +android.wizard.module.import.library.no.path=需要归档文件路径 +android.wizard.module.import.library.bad.path=文件不存在 +android.wizard.module.import.library.bad.extension=文件不是归档(.jar 或 .aar) +android.wizard.module.import.library.no.name=需要子项目名称 +android.wizard.module.import.library.bad.name=Gradle 路径中不允许字符 {0} +android.wizard.module.import.library.taken.name=项目已经包含名称为 {0} 的子项目 +android.wizard.module.import.source.title=从源中导入模块 +android.wizard.module.import.source.browse.title=选择源位置 +android.wizard.module.import.source.browse.description=选择要作为新的子项目导入的现有 ADT 或 Gradle 项目 +android.wizard.module.import.source.browse.invalid.location=路径不存在 +android.wizard.module.import.source.browse.taken.location=此位置已导入 +android.wizard.module.import.source.browse.bad.modules.1=无法找到子项目 %1$s 的源。\n\ +这可能导致缺少依赖项。 +android.wizard.module.import.source.browse.bad.modules.2=无法找到子项目 %1$s 和 %2$s 的源。\n\ +这可能导致缺少依赖项。 +android.wizard.module.import.source.browse.bad.modules.more=无法找到 %1$s 和其他 %2$d 个子项目的源。\n\ +这可能导致缺少依赖项。 +android.wizard.module.import.source.browse.no.modules=选择要导入的模块 +android.wizard.module.import.source.browse.cant.import=指定 Gradle 或 Android Eclipse 项目的位置 +android.wizard.module.import.source.browse.error=内部错误,请检查 IDE 日志 +android.wizard.module.import.source.browse.validating=正在验证 +android.wizard.module.enable.instant=启用即时应用支持 +android.wizard.module.new.module.menu=新建模块… +android.wizard.module.new.module.menu.description=向项目添加一个新模块 +android.wizard.module.new.module.title=创建新的模块 +android.wizard.module.new.module.header=选择模块类型 +android.wizard.module.new.module.command=添加模块 +android.wizard.module.new.mobile=手机与平板电脑 +android.wizard.module.new.mobile.description=创建新的 Android 手机和平板电脑模块。 +android.wizard.module.new.library=Android 库 +android.wizard.module.new.library.description=创建新 Android 库。 +android.wizard.module.new.dynamic.module=动态功能 +android.wizard.module.new.dynamic.module.description=创建可以动态交付的新 Android App Bundle 模块。 +android.wizard.module.new.dynamic.module.instant=免安装的动态功能 +android.wizard.module.new.dynamic.module.instant.description=创建一个将作为免安装应用交付的新 Android 模块. +android.wizard.module.new.dynamic.select.base=请选择一个项目基础模块 +android.wizard.module.new.dynamic.on.demand.options=配置按需选项 +android.wizard.module.new.dynamic.download.options=模块下载选项 +android.wizard.module.new.automotive=Automotive +android.wizard.module.new.automotive.description=创建新的 Android Automotive 模块。 +android.wizard.module.new.wear=Wear OS +android.wizard.module.new.wear.description=创建新的 Wear OS 模块。 +android.wizard.module.new.tv=Android TV +android.wizard.module.new.tv.description=创建新的 Android TV 模块。 +android.wizard.module.new.java.or.kotlin.library=Java 或 Kotlin 库 +android.wizard.module.new.java.or.kotlin.library.description=创建新的 Java 或 Kotlin 库。 +android.wizard.module.new.google.cloud=Google Cloud +android.wizard.module.new.benchmark.module.app=基准 +android.wizard.module.new.benchmark.module.description=创建新的基准模块。 +android.wizard.module.config.title=配置您的模块 +android.wizard.module.config.new.library=我的库 +android.wizard.module.config.new.base.missing= +android.wizard.module.help.choose=帮助我选择 +android.wizard.module.help.loading=加载 +android.wizard.module.help.refreshing=正在加载统计信息… +android.wizard.module.help.name=要将模块放置在子文件夹中,请使用语法: :subfolder:module_name,例如 :libraries:lib1 +android.wizard.module.package.too.long=软件包名称过长 +android.wizard.project.create.error=新建项目向导中出错 +android.wizard.project.target=目标 Android 设备 +android.wizard.project.select.form=选择您的应用将在上面运行的机型 +android.wizard.project.new.choose=选择项目模板 +android.wizard.project.new.configure=配置您的项目 +android.wizard.project.no.selected.form=必须至少选择一种机型。 +android.wizard.project.missing.form.factor=为了支持 {0},您需要启用{1} +android.wizard.project.help.appcompat=当最低 SDK 设置为 API 级别 29 或更高级别时,或者在创建需要最新版本 Play 服务的 Activity 时,选项将被禁用。 +android.wizard.project.invalid.base.min.sdk=在 {1} 上将最低 SDK 级别设置为 {0} 以与 {2} 兼容 +android.wizard.project.loading.sdks=正在寻找可供下载的 SDK… +android.wizard.project.loading.stats.fail=无法加载统计信息。值可能已过期。 +android.wizard.activity.add=将 Activity 添加到 {0} +android.wizard.activity.add.cpp.docslinktext=请参阅文档 +android.wizard.activity.not.found=未选择 Activity 模板 +android.wizard.activity.invalid.min.sdk=所选 Activity 模板的最低 SDK 级别为 {0}。 +android.wizard.activity.invalid.androidx=所选 Activity 模板要求项目具有 androidx.* 依赖项。 +android.wizard.activity.invalid.needs.kotlin=所选活动模板需要 Kotlin。 +android.wizard.activity.navigation.configure=配置导航 +android.wizard.fragment.add=将 Fragment 添加到 {0} +android.wizard.fragment.invalid.androidx=所选片段模板要求项目具有 androidx.* 依赖项。 +android.wizard.fragment.invalid.needs.kotlin=所选片段模块需要 Kotlin。 +android.wizard.fragment.invalid.min.sdk=所选 Fragment 模板的最低 SDK 级别为 {0}。 +android.wizard.fragment.not.found=未选择 Fragment 模板 +android.wizard.gallery.item.none=<无> +android.wizard.language.combo.header=源语言 +android.wizard.language.combo.empty=(选择语言) +android.wizard.language.combo.tooltip=用于代码生成的编程语言 +android.wizard.validate.invalid.class.name=请输入有效的类名称 +android.wizard.validate.empty.module.name=请输入有效的模块名称 +android.wizard.validate.empty.name=请输入有效名称 +android.wizard.validate.module.already.exists=模块“{0}”已存在 +android.wizard.validate.module.illegal.character=模块名称 ''{1}'' 中存在非法字符 ''{0}'' +android.wizard.validate.module.needs.androidx=项目需要转换为 androidx.* 依赖项 +android.wizard.validate.module.needs.new.agp=组合需要 Android Gradle 插件 {0} 或更新版本 +android.wizard.validate.project.illegal.character=项目名称 ''{1}'' 中存在非法字符 ''{0}'' +android.wizard.validate.empty.application.name=请输入应用名称 (在启动器中显示) 或库的描述性名称 +android.wizard.validate.empty.project.name=请输入应用名称 +android.wizard.validate.lowercase.application.name=大多数应用的应用名称以大写字母开头 +android.wizard.validate.select.language=请选择语言 +android.wizard.validate.select.appcompat=使用旧版 android.support 库将阻止您使用最新的 Play 服务和 Jetpack 库 +android.invalid.sdk.message=您的 Android SDK 路径无效。请在 Settings 中进行更新。 +android.wizard.jdk.autodetect.result.not.found=找不到合适的 JDK +android.facet.editor.is.library.checkbox=库模块(&B) +android.facet.not.editable.text=无法编辑此 facet,因为它自动创建。仅可编辑手动创建的 Android facet。 +android.run.sdk.manager.action.text=SDK 管理器 +android.choose.sdk.label=请选择 Android SDK 位置 +android.choose.sdk.title=选择 SDK +copy.resources.from.artifacts.setting=在 Make 之前运行“process-resources”Maven 任务(&U) +android.apk.settings.title=资源打包 +android.create.avd.dialog.sdcard.size=大小(&I): +android.create.avd.dialog.sdcard.file=文件(&F): +android.create.avd.dialog.sdcard.title=SD 卡 +android.create.avd.dialog.sdcard.file.browser.title=选择 SD 卡文件 +android.facet.settings.res.overlay.panel.title=Res-overlay 目录 +android.facet.setting.res.overlay.add=增加(&D) +android.facet.settings.res.overlay.remove=移除(&O) +android.inspections.group.name=Android +android.inspections.dom.name=Android 资源验证 +android.inspections.root.tag.name=Android XML 根标记验证 +android.inspections.unknown.attribute.name=未知 Android XML 特性 +android.inspections.unknown.attribute.message=未知特性 {0} +android.facet.settings.generate.unsigned.apk=生成未签署的 APK(&K) +android.compile.messages.generating.r.java=正在生成 R.java… +android.compile.messages.generating.r.java.content.name=正在生成源 +android.compile.messages.copying.sources.from.libraries=正在从库中复制源… +android.new.component.action.title=Android (其他) +android.new.component.action.title.non.gradle=Android 组件 +android.new.component.action.description=从其他类别创建新的 Android 对象 +android.new.component.action.command.name=新建 Android 组件 +android.new.component.dialog.activity.item=活动 +android.new.component.dialog.fragment.item=片段 +android.new.component.dialog.service.item=服务 +android.new.component.dialog.broadcast.receiver.item=广播接收器 +android.new.component.dialog.broadcast.remote.interface=远程接口 +android.dex.compiler.vm.options.title=Android DX 编译器 VM 选项 +android.proguard.vm.options.title=Android ProGuard VM 选项 +android.dex.compiler.configurable.display.name=Android 编译器 +android.run.configuration.general.tab.title=常规 +android.run.configuration.emulator.tab.title=模拟器 +android.run.configuration.misc.tab.title=杂项 +android.facet.settings.apk.path.label=APK 路径(&P): +android.run.confguration.deploy.and.install.check.box=部署应用(&E) +android.logcat.no.android.facets.error=项目中没有 Android facet +android.facet.settings.compile.resources.by.ide=通过 IDE 生成(&G) +android.keystore.password.label=密码(&S): +android.keystore.confirm.password.label=确认(&O): +android.export.package.new.key.alias.label=别名(&A): +android.key.password.label=密码(&S): +android.cannot.debug.noDebugPermissions=无法从设备 {1} 上的模块 {0} 调试应用。\n\ +此应用在清单中未启用 ''debuggable'' 特性。\n\ +如果您已在清单中手动设置该特性,请将其移除并让 IDE 自动分配。\n\ +如果您使用的是 Gradle,请确保您的当前变体可调试。 +android.cannot.run.library.project.error=该模块不能是 Android 库 +android.cannot.run.library.project.in.this.buildtype=当前选择的 Gradle 构建类型不支持仪器测试 +android.compilation.error.specify.platform=[{0}] Android SDK 未指定或无法解析 +android.compilation.error.manifest.not.found=[{0}] AndroidManifest.xml 文件未找到。请查看 Android facet 设置。 +android.compilation.error.apt.gen.not.specified=没有为模块 {0} 指定 AAPT 目标目录 +android.compilation.error.apk.path.not.specified=没有为模块 {0} 指定最终 APK 路径 +android.restart.logcat.action.text=重启 +android.restart.logcat.action.description=重启记录 +android.configure.logcat.header.text=Logcat 标题 +android.configure.logcat.header.description=为 logcat 标题(时间,pid/tid等)配置过滤器 +android.configure.logcat.header.title=配置 Logcat 标题 +android.new.component.dialog.application.item=应用 +android.sdk.missing.title=SDK 问题 +android.sdk.missing.msg=您的 Android SDK 缺失、过期或损坏。 +android.sdk.open.manager=打开 SDK 管理器 +android.sdk.presentable.name=Android SDK +android.sdk.configure.jdk.error=请配置内部 JDK +no.jdk.for.android.found.error=找不到合适版本的 Java SDK。除 Android SDK 外,您还需要定义一个 JDK 1.5、1.6 或 1.7 +no.jdk.error=您需要至少创建一个版本为 1.5、1.6 或 1.7 的 JDK +cannot.parse.sdk.error=无法解析 Android SDK +android.add.sdk.tooltip=添加 SDK +android.console.tool.window.title=Android Console +ddms.corrupted.error=警告: 调试信息可能不可用。请使用 ADB 关闭其他应用: Monitor、DDMS、Eclipse +android.font.file.type.description=字体 +android.import.dependencies.error.message.header=导入完成,但有错误: +android.import.dependencies.add.module.dependency.task.title=添加依赖关系 {0} --> {1} +android.import.dependencies.new.module.task.title=在 {1} 中创建库模块 {0} +android.import.dependencies.import.module.task.title=从 {1} 导入库模块 {0} +android.import.dependencies.dialog.title=从属性文件导入 Android 依赖项 +android.import.dependencies.source.roots.dialog.title=导入源根 +android.import.dependencies.source.roots.dialog.label=选择要添加到项目的源根 +sdk.broken.error=无法解析 Android SDK。请在 Android facet 设置中重新配置 +android.layout.preview.cannot.load.library.error=无法加载平台渲染库 +android.layout.preview.tool.window.title=预览 +android.layout.preview.default.error.message=无法执行渲染 +android.layout.preview.zoom.in.action.text=放大 +android.layout.preview.zoom.out.action.text=缩小 +android.layout.preview.zoom.actual.action.text=缩放到实际大小 +android.layout.preview.zoom.to.fit.action.text=缩放到合适大小 +android.layout.preview.refresh.action.text=强制刷新布局 +restart.adb.fix.text=重启 ADB 集成,然后重试 +android.layout.preview.edit.configuration.available.qualifiers.label=可用的限定符(&V): +android.layout.preview.edit.configuration.choosen.qualifiers.label=选择的限定符(&H): +new.resource.dir.action.name=创建资源目录“{0}” +new.resource.action.name=创建资源文件“{0}” +android.extended.device.chooser.running.device.radio=选择正在运行的设备(&C) +android.extended.device.chooser.launch.emulator.radio=启动模拟器(&L) +android.extended.device.chooser.avd.label=Android Virtual Device(&A): +deployment.target.settings.show.dialog=显示选择器对话框(&C) +deployment.target.settings.usb.device=USB 设备(&U) +deployment.target.settings.emulator=模拟器(&R) +deployment.target.settings.prefer.avd.label=首选 Android Virtual Device(&P): +deployment.target.settings.title=目标设备 +deployment.target.settings.wizard.configure.later=不创建运行配置 +deployment.target.settings.wizard.show.dialog=显示设备选择器对话框 +deployment.target.settings.wizard.usb.device=USB 设备 +deployment.target.settings.wizard.emulator=模拟器 +deployment.target.not.found=找不到目标设备。 +deployment.failed.splitapk.nomatch=当前选择的变体“{0}”使用拆分 APK,但 {1} 个拆分 APK 均不与 ABI 为“{2}”的当前设备兼容。 +deployment.failed.reason.different.signature=该设备已经具有一个软件包相同但签名不同的应用 +deployment.failed.reason.dexopt=该设备可能具有与当前版本不匹配的过时的 dex jar (dexopt 错误) +deployment.failed.reason.version.downgrade=该设备已具有此应用的较新版本 +deployment.failed.uninstall.prompt.text=自 {0} 起安装失败。\n\ +要继续,您必须卸载现有的应用。\n\ +\n\ +警告: 卸载将移除应用数据!\n\ +\n\ +要卸载现有的应用吗? +deployment.failed.uninstall.prompt.generic.text=安装失败,消息 {0}。\n\ +可以通过卸载 APK 的现有版本(如果有)来解决此问题,然后重新安装。\n\ +\n\ +警告: 卸载将移除应用数据!\n\ +\n\ +要卸载现有的应用吗? +deployment.failed.uninstall.prompt.androidthings.text=您的 APK 和其他已安装的软件包的意图是 IOT_LAUNCHER。一次只能安装一个具有该意图的 APK。安装 APK 之前,请尝试卸载这些软件包。\n\ +\n\ +警告: 卸载将移除应用数据!\n\ +\n\ +您要卸载以下应用吗?\n\ +{0} +deployment.failed.uninstall.prompt.androidthings.errortext=无法卸载以下软件包:\n\ +{0} +deployment.failed.reason.devicedisconnected=安装失败,因为设备“{0}”已断开连接。 +deployment.failed.reason.oldersdk=由于应用的 minSdkVersion 比设备的 API 级别({0})更新,安装失败。\n\ +请更新您应用的 minSdkVersion。 +deployment.failed.title=应用安装失败 +deployment.failed.no.certificates.explanation=由于 APK 未签署或签署不正确,安装失败。\n\ +如果这是基于 Gradle 的项目,请确保在 Gradle 构建脚本中指定了签署配置。 +android.compilation.error.cannot.create.png.cache.directory=无法为模块 {0} 创建 PNG 缓存目录 +android.inspections.non.constant.res.ids.in.switch.name=switch 语句中存在非常量资源 ID +android.inspections.non.constant.res.ids.in.switch.message=资源 ID 不能在 Android 库模块的 switch 语句中使用 +android.logcat.clear.log.action.title=清除 logcat +android.logcat.clear.log.action.tooltip=清除设备上的 logcat 缓冲区 +android.logcat.filters.none=无过滤器 +android.logcat.filters.selected=仅显示所选应用 +android.logcat.filters.edit=编辑过滤器配置 +android.logcat.new.filter.dialog.name.label=过滤器名称(&N): +android.logcat.new.filter.dialog.tag.label=日志标记(&T): +android.logcat.new.filter.dialog.message.label=日志消息(&M): +android.logcat.new.filter.dialog.pid.label=PID(&P): +android.logcat.new.filter.dialog.package.name.label=包名称(&A): +android.logcat.new.filter.dialog.log.level.label=日志级别(&L): +android.logcat.new.filter.dialog.name.not.specified.error=未指定过滤器名称 +android.logcat.new.filter.dialog.incorrect.log.tag.pattern.error=日志标记正则表达式模式无效 +android.logcat.new.filter.dialog.incorrect.message.pattern.error=日志消息正则表达式模式无效 +android.logcat.new.filter.dialog.incorrect.application.name.pattern.error=应用名称正则表达式模式无效 +android.logcat.new.filter.dialog.incorrect.pid.error=PID 必须为正整数 +android.logcat.new.filter.dialog.title=创建新的 Logcat 过滤器 +android.logcat.edit.filter.dialog.title=编辑 Logcat 过滤器 +android.logcat.edit.logcat.filter.button=编辑所选 logcat 过滤器 +android.logcat.remove.logcat.filter.button=删除所选 logcat 过滤器 +android.logcat.add.logcat.filter.button=添加一个新的 logcat 过滤器 +android.logcat.new.logcat.dialog.label=指定一个或多个过滤参数: +android.logcat.new.filter.dialog.name.busy.error=过滤器 {0} 已经存在 +android.logcat.edit.filter.dialog.no.filters=点击添加图标以添加过滤器 +android.logcat.header.dialog.show.time=显示日期和时间(&T) +android.logcat.header.dialog.show.process.info=显示进程和线程 ID (PID-TID)(&P) +android.logcat.header.dialog.show.packageName=显示软件包名称(&N) +android.logcat.header.dialog.show.tag=显示标记(&G) + +android.emulator=模拟器 +android.ddms.devicepanel.title=设备 +android.ddms.nodevices=[none] + +android.ddms.actions.terminate.vm=终止应用 +android.ddms.actions.terminate.vm.description=终止所选 Android 应用 +android.ddms.actions.initiate.gc=初始化垃圾回收 +android.ddms.actions.initiate.gc.description=在所选 VM 上初始化垃圾回收 +android.ddms.actions.dump.hprof=转储 Java 堆 +android.ddms.actions.dump.hprof.description=为所选客户端转储 Java 堆 +android.ddms.actions.dump.hprof.error.unsupported=堆转储; 尚不支持旧设备。请使用以下命令,从设备中手动检索文件\n\ +$ adb pull {0} +android.ddms.actions.screenshot=屏幕截图 +android.ddms.actions.screenshot.description=从设备获取屏幕截图 +android.ddms.actions.screenshot.copied.to.clipboard=图像已复制到剪贴板 +android.ddms.actions.screenrecord=屏幕录制 +android.ddms.actions.screenrecord.description=录制设备显示屏的视频 +android.ddms.actions.methodprofile.start=开始方法跟踪 +android.ddms.actions.methodprofile.stop=停止方法跟踪 +android.ddms.actions.allocationtracker.start=开始分配跟踪 +android.ddms.actions.allocationtracker.stop=停止分配跟踪 +android.ddms.actions.allocationtracker.description=录制跟踪处于活动状态时发生的所有分配 +android.ddms.actions.layoutinspector.title=Layout Inspector +android.ddms.actions.layoutinspector.title.legacy=旧版 Layout Inspector +android.ddms.actions.layoutinspector.description=检查所选窗口的布局 +android.ddms.actions.layoutinspector.description.disabled=调试时检查布局已禁用 +android.ddms.actions.layoutinspector.windowpicker=选择窗口 +android.ddms.actions.layoutinspector.notification.group=Layout Inspector +android.ddms.actions.layoutinspector.notification.title=Layout Inspector +android.ddms.actions.layoutinspector.dumpdisplay.notification.success=显示写入 logcat 的列表信息。 +android.ddms.actions.layoutinspector.dumpdisplay.notification.nonode=检索显示列表信息失败,找不到目标节点。 +android.ddms.actions.layoutinspector.dumpdisplay.notification.failure=由于异常,检索显示列表信息失败: {0} +android.ddms.actions.layoutinspector.update.notification.failure=无法从设备更新图像。 +android.ddms.actions.layoutinspector.menu.show.bound=显示布局边界 +android.ddms.actions.layoutinspector.menu.dump.display=转储显示列表 +android.ddms.notification.layoutinspector.reboot.live.inspector=无法检测到实时检查服务。要启用实时检查,请重启设备。 +android.ddms.screenshot.task.step.obtain=正在从设备获取屏幕截图… +android.ddms.screenshot.task.step.load=正在将屏幕截图加载到内存中… +android.ddms.screenshot.task.error1=从设备获取屏幕截图时出现意外错误: {0} +android.ddms.screenshot.task.error.invalid.bpp=从设备接收到不支持的图像(每像素位数 = {0}) +android.ddms.screenshot.save.error=保存屏幕截图时出现意外错误: {0} +android.ddms.screenshot.generic.error=获取屏幕截图时出现意外错误: {0} +android.ddms.screenshot.save.title=另存为 PNG +android.ddms.screenshot.save.ok.button.text=保存 +android.ddms.screenshot.image.processor.task.title=更新图像 +android.ddms.screenrecord.options.ok.button.text=开始录制 +android.ddms.screenrecorder.info=Screen Recorder 最多可以录制 3 分钟的设备显示器。
      默认情况下,它以设备的原生分辨率或 720p/4 Mbps 的比特率进行录制。
      您可以在下面自定义这些选项。最低分辨率为 96x64px。
      分辨率必须是 16 的倍数。留空将使用默认值。 +android.compile.messages.processing.external.apklib.dependencies=正在处理外部 apklib 依赖项 +android.maven.cannot.parse.android.sdk.error=无法解析模块 {0} 的 Android SDK。尝试从 Maven 模型强制重新导入 +android.facet.settings.custom.debug.keystore.label=自定义调试密钥库(&U): +android.export.package.run.proguard.label=运行 ProGuard(&P) +android.export.package.proguad.config.label=配置文件路径(&O): +android.extract.package.specify.proguard.cfg.path.error=请指定 ProGuard 配置文件路径 +android.facet.settings.pack.test.sources=将测试代码和资源包含到 APK 中 +android.inspections.lint.name=Android Lint 验证 + +android.lint.inspections.aapt.crash=潜在 AAPT 崩溃 +android.lint.inspections.accepts.user.certificates=\ 网络安全配置允许在您的应用发行版中使用用户证书 +android.lint.inspections.adapter.view.children=AdapterViews 在 XML 中不能有子级 +android.lint.inspections.add.javascript.interface=调用了 addJavascriptInterface +android.lint.inspections.all.caps=正在组合 textAllCaps 与标记 +android.lint.inspections.allow.all.hostname.verifier=不安全的 HostnameVerifier +android.lint.inspections.allow.backup=AllowBackup/FullBackupContent 问题 +android.lint.inspections.always.show.action=showAsAction=always 的用法 +android.lint.inspections.animator.keep=动画属性缺少 @Keep +android.lint.inspections.annotation.processor.on.compile.path=编译器类路径中的注解处理器 +android.lint.inspections.app.compat.custom.view=Appcompat 自定义微件 +android.lint.inspections.app.compat.method=正在使用错误的 AppCompat 方法 +android.lint.inspections.app.compat.resource=菜单命名空间 +android.lint.inspections.app.indexing.service=App Indexing 后台服务 +android.lint.inspections.app.links.auto.verify.error=应用链接自动验证失败 +android.lint.inspections.app.links.auto.verify.warning=潜在应用链接自动验证失败 +android.lint.inspections.app.link.url.error=应用不支持将 URL 用于 Firebase App Indexing +android.lint.inspections.apply.shared.pref=在 SharedPreferences 上使用 apply() +android.lint.inspections.auth.leak=代码可能包含身份验证泄露 +android.lint.inspections.autofill=使用自动填充 +android.lint.inspections.back.button=“返回”按钮 +android.lint.inspections.battery.life=电池寿命问题 +android.lint.inspections.blocked.private.api=使用阻止的私有 API +android.lint.inspections.bottom.app.bar=BottomAppBar 问题 +android.lint.inspections.broken.iterator=迭代器损坏 +android.lint.inspections.button.case=“取消”/“确定”对话框按钮的大小写 +android.lint.inspections.button.order=按钮顺序 +android.lint.inspections.button.style=按钮应无边框 +android.lint.inspections.byte.order.mark=文件内部的字节顺序标记 +android.lint.inspections.canvas.size=画布大小错误 +android.lint.inspections.clickable.view.accessibility=自定义视图中存在辅助功能 +android.lint.inspections.commit.pref.edits=SharedPreferences 编辑器上缺少 commit() +android.lint.inspections.commit.transaction=缺少 commit() 调用 +android.lint.inspections.constant.locale=常量区域设置 +android.lint.inspections.content.description=图像没有 contentDescription +android.lint.inspections.convert.to.webp=转换为 WebP +android.lint.inspections.custom.view.styleable=样式/自定义视图名称不匹配 +android.lint.inspections.cut.paste.id=可能存在剪切和粘贴错误 +android.lint.inspections.data.binding.without.kapt=数据绑定无注解处理 +android.lint.inspections.deleted.provider=正在使用删除的提供程序 +android.lint.inspections.deprecated=正在使用弃用资源 +android.lint.inspections.deprecated.provider=正在使用 BC 提供程序 +android.lint.inspections.device.admin=设备管理器的格式错误 +android.lint.inspections.dev.mode.obsolete=开发模式已过时 +android.lint.inspections.diff.util.equals=可疑的 DiffUtil 相等 +android.lint.inspections.disable.baseline.alignment=缺少 baselineAligned 特性 +android.lint.inspections.discouraged.private.api=使用不推荐使用的私有 API +android.lint.inspections.draw.allocation=绘图代码中存在内存分配 +android.lint.inspections.duplicate.activity=Activity 已多次注册 +android.lint.inspections.duplicate.definition=重复的资源定义 +android.lint.inspections.duplicate.divider=不必要的分隔线副本 +android.lint.inspections.duplicate.ids=单个布局中存在重复 ID +android.lint.inspections.duplicate.included.ids=不同布局中存在重复 ID,并包含 include 标记 +android.lint.inspections.duplicate.platform.classes=重复的平台类 +android.lint.inspections.duplicate.strings=重复的字符串 +android.lint.inspections.duplicate.uses.feature=功能多次声明 +android.lint.inspections.ellipsize.max.lines=正在组合 Ellipsize 与 Maxlines +android.lint.inspections.enforce.utf8=资源文件中使用的编码不是 UTF-8 +android.lint.inspections.enqueue.work=WorkManager 加入队列 +android.lint.inspections.exif.interface=正在使用 android.media.ExifInterface +android.lint.inspections.expired.target.sdk.version=不再支持 TargetSdkVersion +android.lint.inspections.expiring.target.sdk.version=TargetSdkVersion 即将到期 +android.lint.inspections.exported.content.provider=内容提供程序不需要权限 +android.lint.inspections.exported.preference.activity=PreferenceActivity 不应导出 +android.lint.inspections.exported.receiver=接收器不需要权限 +android.lint.inspections.exported.service=导出的服务不需要权限 +android.lint.inspections.extra.text=资源文件中存在无关文本 +android.lint.inspections.extra.translation=额外翻译 +android.lint.inspections.find.view.by.id.cast=添加显式转换 +android.lint.inspections.font.validation.error=字体文件验证 +android.lint.inspections.font.validation.warning=字体文件验证 +android.lint.inspections.full.backup.content=有效的完整备份内容文件 +android.lint.inspections.get.content.description.override=在视图上重写 getContentDescription() +android.lint.inspections.get.instance=带 ECB 的 Cipher.getInstance +android.lint.inspections.get.locales=区域设置崩溃 +android.lint.inspections.gif.usage=不建议将 .gif 格式用于位图 +android.lint.inspections.gradle.compatible=不兼容的 Gradle 版本 +android.lint.inspections.gradle.deprecated=弃用的 Gradle 结构 +android.lint.inspections.gradle.getter=Gradle 隐式 Getter 调用 +android.lint.inspections.gradle.overrides=值被 Gradle 构建脚本重写 +android.lint.inspections.gradle.plugin.version=不兼容的 Android Gradle 插件 +android.lint.inspections.grant.all.uris=内容提供程序共享一切 +android.lint.inspections.grid.layout=GridLayout 验证 +android.lint.inspections.half.float=半浮点数不正确 +android.lint.inspections.handler.leak=处理程序引用泄漏 +android.lint.inspections.hardcoded.debug.mode=清单中 android:debuggable 的值硬编码 +android.lint.inspections.hardcoded.text=硬编码文本 +android.lint.inspections.hardware.ids=使用了硬件 ID +android.lint.inspections.high.app.version.code=VersionCode 过高 +android.lint.inspections.icon.colors=图标颜色不符合建议的视觉样式 +android.lint.inspections.icon.densities=图标密度验证 +android.lint.inspections.icon.dip.size=图标密度无关的大小验证 +android.lint.inspections.icon.duplicates=不同名称下存在重复图标 +android.lint.inspections.icon.duplicates.config=各种配置使用相同的位图 +android.lint.inspections.icon.expected.size=图标大小不正确 +android.lint.inspections.icon.extension=图标格式与文件扩展名不匹配 +android.lint.inspections.icon.launcher.shape=启动器图标形状应使用不同的轮廓 +android.lint.inspections.icon.location=图像在与密度无关的可绘制对象文件夹中定义 +android.lint.inspections.icon.missing.density.folder=缺少密度文件夹 +android.lint.inspections.icon.mixed.nine.patch=PNG 和 9-PNG 文件冲突 +android.lint.inspections.icon.no.dpi=图标同时出现在 -nodpi 和 dpi 文件夹中 +android.lint.inspections.icon.xml.and.png=图标同时指定为 .xml 文件和位图 +android.lint.inspections.illegal.resource.ref=名称和版本必须是整数或字符串,而不是资源 +android.lint.inspections.implied.quantity=隐含数量 +android.lint.inspections.implied.touchscreen.hardware=硬件功能触摸屏未明确标记为可选 +android.lint.inspections.include.layout.param=include 上有忽略的布局参数 +android.lint.inspections.incompatible.media.browser.service.compat.version=过时版本的 MediaBrowserServiceCompat +android.lint.inspections.inconsistent.arrays=数组元素计数不一致 +android.lint.inspections.inconsistent.layout=布局不一致 +android.lint.inspections.inefficient.weight=布局权重低效 +android.lint.inspections.inflate.params=布局扩展没有父级 +android.lint.inspections.inlined.api=正在旧版本上使用内联常量 +android.lint.inspections.innerclass.separator=内部类应使用 $ 而不是 . +android.lint.inspections.in.or.mm.usage=正在使用 mm 或 in 尺寸 +android.lint.inspections.insecure.base.configuration=不安全的基本配置 +android.lint.inspections.instant.apps=免安装应用问题 +android.lint.inspections.instantiatable=注册的类不可实例化 +android.lint.inspections.intent.reset=可疑的 setType 和 setData 组合 +android.lint.inspections.invalid.analytics.name=无效分析名称 +android.lint.inspections.invalid.id=ID 声明无效 +android.lint.inspections.invalid.ime.action.id=imeActionId 声明无效 +android.lint.inspections.invalid.navigation=未指定起始目标 +android.lint.inspections.invalid.permission=无效权限特性 +android.lint.inspections.invalid.resource.folder=资源文件夹无效 +android.lint.inspections.invalid.uses.tag.attribute=uses 元素的名称特性无效 +android.lint.inspections.invalid.vector.path=矢量路径无效 +android.lint.inspections.invalid.wake.lock.tag=唤醒锁标记无效 +android.lint.inspections.invalid.wear.feature.attribute=Wear uses-feature 的特性无效 +android.lint.inspections.javascript.interface=方法上缺少 @JavascriptInterface +android.lint.inspections.job.scheduler.service=JobScheduler 问题 +android.lint.inspections.keyboard.inaccessible.widget=键盘无法访问的微件 +android.lint.inspections.ktx.extension.available=可用的 KTX 扩展 +android.lint.inspections.label.for=缺少无障碍功能标签 +android.lint.inspections.library.custom.view=库中的自定义视图应使用 res-auto-namespace +android.lint.inspections.lifecycle.annotation.processor.with.java8=生命周期注解处理器带有 Java 8 编译选项 +android.lint.inspections.locale.folder=区域设置名称错误 +android.lint.inspections.locked.orientation.activity=screenOrientation 清单值不兼容 +android.lint.inspections.log.conditional=无条件记录调用 +android.lint.inspections.log.tag.mismatch=日志标记不匹配 +android.lint.inspections.long.log.tag=日志标记过长 +android.lint.inspections.mangled.crlf=文件行结尾杂乱 +android.lint.inspections.manifest.order=清单中元素的顺序不正确 +android.lint.inspections.manifest.resource=清单资源引用 +android.lint.inspections.menu.title=缺少菜单标题 +android.lint.inspections.merge.root.frame=FrameLayout 可以替换为 标记 +android.lint.inspections.min.sdk.too.low=API 版本太低 +android.lint.inspections.mipmap.icons=使用 Mipmap 启动器图标 +android.lint.inspections.missing.application.icon=缺少应用图标 +android.lint.inspections.missing.backup.pin=缺少备份 PIN +android.lint.inspections.missing.class=缺少注册的类 +android.lint.inspections.missing.constraints=ConstraintLayout 中缺少约束 +android.lint.inspections.missing.default.resource=缺少默认 +android.lint.inspections.missing.firebase.instance.token.refresh=缺少 Firebase 消息回调 +android.lint.inspections.missing.id=Fragment 应指定 ID 或标记 +android.lint.inspections.missing.intent.filter.for.media.search=缺少 MEDIA_PLAY_FROM_SEARCH intent-filter +android.lint.inspections.missing.leanback.launcher=缺少 Leanback 启动器 Intent 过滤器 +android.lint.inspections.missing.leanback.support=缺少 Leanback 支持 +android.lint.inspections.missing.media.browser.service.intent.filter=缺少 MediaBrowserService intent-filter +android.lint.inspections.missing.on.play.from.search=缺少 onPlayFromSearch. +android.lint.inspections.missing.permission=缺少权限 +android.lint.inspections.missing.prefix=缺少 Android XML 命名空间 +android.lint.inspections.missing.quantity=缺少数量翻译 +android.lint.inspections.missing.translation=翻译不完整 +android.lint.inspections.missing.tv.banner=TV 缺少横幅 +android.lint.inspections.missing.version=缺少应用名称/版本 +android.lint.inspections.mock.location=正在生产中使用模拟位置提供程序 +android.lint.inspections.motion.layout.invalid.scene.file.reference=layoutDescription 必须指定 scene 文件 +android.lint.inspections.motion.scene.file.validation.error=MotionScene 文件中的验证错误 +android.lint.inspections.multiple.uses.sdk=清单中存在多个 元素 +android.lint.inspections.namespace.typo=命名空间声明拼写错误 +android.lint.inspections.negative.margin=负边距 +android.lint.inspections.nested.scrolling=嵌套滚动微件 +android.lint.inspections.nested.weights=嵌套布局权重 +android.lint.inspections.network.security.config=有效的网络安全配置文件 +android.lint.inspections.new.api=在旧版本上调用了新方法 +android.lint.inspections.nfc.tech.whitespace=NFC 技术列表中有空格 +android.lint.inspections.non.constant.resource.id=在需要常量的地方检查资源 ID 的使用情况。 +android.lint.inspections.non.resizeable.activity=Activity 设置为不可调整大小 +android.lint.inspections.notification.icon.compatibility=通知图标兼容性 +android.lint.inspections.not.sibling=无效约束 +android.lint.inspections.object.animator.binding=ObjectAnimator 属性不正确 +android.lint.inspections.obsolete.layout.param=布局参数过时 +android.lint.inspections.obsolete.sdk.int=SDK_INT 版本检查过时 +android.lint.inspections.old.target.api=目标 SDK 特性未以最新版本为目标 +android.lint.inspections.on.click=onClick 方法不存在 +android.lint.inspections.orientation=缺少显式方向 +android.lint.inspections.outdated.library=过期的库 +android.lint.inspections.overdraw=过度绘制: 多次绘制区域 +android.lint.inspections.override=方法与新继承的方法冲突 +android.lint.inspections.override.abstract=不要在旧平台上重写 abstract 方法 +android.lint.inspections.packaged.private.key=打包的私钥 +android.lint.inspections.package.manager.get.signatures=潜在的多重证书利用 +android.lint.inspections.parcel.class.loader=默认 Parcel 类加载器 +android.lint.inspections.parcel.creator=缺少 Parcelable CREATOR 字段 +android.lint.inspections.pending.bindings=缺少待处理的绑定 +android.lint.inspections.permission.implies.unsupported.chrome.os.hardware=权限表明不支持的 Chrome OS 硬件 +android.lint.inspections.permission.implies.unsupported.hardware=权限暗示不支持的硬件 +android.lint.inspections.pin.set.expiry=验证 到期特性 +android.lint.inspections.plurals.candidate=潜在复数 +android.lint.inspections.private.api=正在使用专用 API +android.lint.inspections.private.resource=正在使用专用资源 +android.lint.inspections.proguard=正在使用过时的 ProGuard 配置 +android.lint.inspections.proguard.split=Proguard.cfg 文件包含通用 Android 规则 +android.lint.inspections.protected.permissions=正在使用系统应用权限 +android.lint.inspections.px.usage=正在使用 'px' 尺寸 +android.lint.inspections.query.all.packages.permission=使用 QUERY_ALL_PACKAGES 权限 +android.lint.inspections.query.permissions.needed=使用受查询权限影响的 API +android.lint.inspections.recycle=缺少 recycle() 调用 +android.lint.inspections.recycler.view=RecyclerView 问题 +android.lint.inspections.redundant.namespace=冗余命名空间 +android.lint.inspections.reference.type=引用类型不正确 +android.lint.inspections.registered=类未在清单中注册 +android.lint.inspections.relative.overlap=RelativeLayout 中有重叠项 +android.lint.inspections.required.size=缺少 layout_width 或 layout_height 特性 +android.lint.inspections.requires.feature=需要功能 +android.lint.inspections.res.auto=命名空间的硬编码软件包 +android.lint.inspections.resource.as.color=应该传递解析的颜色而不是资源 ID +android.lint.inspections.resource.cycle=资源定义中存在循环 +android.lint.inspections.resource.name=资源的前缀错误 +android.lint.inspections.resource.type=资源类型错误 +android.lint.inspections.risky.library=库具有隐私或安全风险 +android.lint.inspections.rtl.compat=从右到左文本兼容性问题 +android.lint.inspections.rtl.enabled=正在没有启用 RTL 支持的情况下使用 RTL 特性 +android.lint.inspections.rtl.hardcoded=正在使用左/右而不是开始/结束特性 +android.lint.inspections.rtl.symmetry=填充和边距对称 +android.lint.inspections.scoped.storage=受分区存储影响 +android.lint.inspections.scroll.view.count=ScrollViews 只能有一个子项 +android.lint.inspections.scroll.view.size=ScrollView 大小验证 +android.lint.inspections.sd.card.path=对 /sdcard 进行硬编码引用 +android.lint.inspections.selectable.text=动态文本可能应为可选 +android.lint.inspections.service.cast=系统服务转换错误 +android.lint.inspections.set.java.script.enabled=正在使用 setJavaScriptEnabled +android.lint.inspections.set.text.i18n=TextView 国际化 +android.lint.inspections.set.world.readable=File.setReadable() 用于将文件设为全球可读 +android.lint.inspections.set.world.writable=File.setWritable() 用于将文件设为全球可写 +android.lint.inspections.short.alarm=短暂或频繁警报 +android.lint.inspections.show.toast=Toast 已创建但未显示 +android.lint.inspections.signature.or.system.permissions=已声明 signatureOrSystem 权限 +android.lint.inspections.slices=切片 +android.lint.inspections.small.sp=文本大小过小 +android.lint.inspections.soon.blocked.private.api=使用即将阻止的私有 API +android.lint.inspections.source.locked.orientation.activity=不兼容的 setRequestedOrientation 值 +android.lint.inspections.sp.usage=正在使用 dp 而不是 sp 显示文本大小 +android.lint.inspections.sslcertificate.socket.factory.create.socket=对 SSLCertificateSocketFactory.createSocket() 的调用不安全 +android.lint.inspections.sslcertificate.socket.factory.get.insecure=调用了 SSLCertificateSocketFactory.getInsecure() +android.lint.inspections.state.list.reachable= 中的状态不可到达 +android.lint.inspections.static.field.leak=static 字段泄漏 +android.lint.inspections.string.escaping=字符串转义无效 +android.lint.inspections.string.format.count=格式化实参类型不完整或不一致 +android.lint.inspections.string.format.invalid=格式字符串无效 +android.lint.inspections.string.format.matches=String.format 字符串与 XML 格式字符串不匹配 +android.lint.inspections.string.should.be.int=字符串应为 int +android.lint.inspections.suspicious0dp=可疑的 0dp 尺寸 +android.lint.inspections.suspicious.import='import android.R' 语句 +android.lint.inspections.switch.int.def=Switch 中缺少 @IntDef +android.lint.inspections.synthetic.accessor=合成访问器 +android.lint.inspections.test.app.link=URL 不匹配 +android.lint.inspections.text.fields=缺少 inputType +android.lint.inspections.text.view.edits=TextView 可能应为 EditText +android.lint.inspections.too.deep.layout=布局层次结构过深 +android.lint.inspections.too.many.views=布局视图过多 +android.lint.inspections.translucent.orientation=混合了屏幕方向和半透明 +android.lint.inspections.trust.all.x509.trust.manager=不安全的 TLS/SSL 信任管理器 +android.lint.inspections.typography.dashes=连字符可以替换为短划线 +android.lint.inspections.typography.ellipsis=省略号字符串可以替换为省略号字符 +android.lint.inspections.typography.fractions=分数字符串可以替换为分数字符 +android.lint.inspections.typography.other=其他排版问题 +android.lint.inspections.typography.quotes=直引号可以替换为弯引号 +android.lint.inspections.typos=拼写错误 +android.lint.inspections.unique.constants=重叠的枚举常量 +android.lint.inspections.unique.permission=权限名称不唯一 +android.lint.inspections.unknown.id=引用未知 ID +android.lint.inspections.unknown.id.in.layout=引用不在当前布局中的 ID +android.lint.inspections.unlocalized.sms=短信电话号码缺少国家/地区代码 +android.lint.inspections.unpacked.native.code=缺少 android:extractNativeLibs=false +android.lint.inspections.unprotected.smsbroadcast.receiver=未受保护的短信 BroadcastReceiver +android.lint.inspections.unsafe.dynamically.loaded.code=加载用于动态加载代码 +android.lint.inspections.unsafe.native.code.location=原生代码位于库目录外 +android.lint.inspections.unsafe.protected.broadcast.receiver=不安全的受保护 BroadcastReceiver +android.lint.inspections.unsupported.chrome.os.camera.system.feature=正在查找仅后置摄像头功能 +android.lint.inspections.unsupported.chrome.os.hardware=不支持的 Chrome 操作系统硬件功能 +android.lint.inspections.unsupported.tv.hardware=不支持的 TV 硬件功能 +android.lint.inspections.untranslatable=翻译了不可翻译内容 +android.lint.inspections.unused.attribute=特性未在旧版本上使用 +android.lint.inspections.unused.ids=未使用的 ID +android.lint.inspections.unused.navigation=未使用的导航 +android.lint.inspections.unused.quantity=未使用的数量翻译 +android.lint.inspections.unused.resources=未使用的资源 +android.lint.inspections.usable.space=正在使用 getUsableSpace() +android.lint.inspections.use.alpha2=正在使用 3 字母代码 +android.lint.inspections.use.check.permission=正在使用检查权限调用的结果 +android.lint.inspections.use.compound.drawables=节点可以替换为带复合可绘制对象的 TextView +android.lint.inspections.useless.leaf=无用的叶式布局 +android.lint.inspections.useless.parent=无用的父布局 +android.lint.inspections.use.of.bundled.google.play.services=使用捆绑版本的 Google Play 服务 +android.lint.inspections.uses.min.sdk.attributes=未定义最低 SDK 和目标 SDK 特性 +android.lint.inspections.use.sparse.arrays=HashMap 可以替换为 SparseArray +android.lint.inspections.using.c2.dm=正在使用 C2DM +android.lint.inspections.valid.actions.xml=操作描述符无效 +android.lint.inspections.valid.fragment=Fragment 不可实例化 +android.lint.inspections.valid.restrictions=限制描述符无效 +android.lint.inspections.vector.drawable.compat=正在使用 VectorDrawableCompat +android.lint.inspections.vector.path=长矢量路径 +android.lint.inspections.vector.raster=矢量图像生成 +android.lint.inspections.view.constructor=缺少用于 XML 扩展的视图构造函数 +android.lint.inspections.view.holder=视图容器候选 +android.lint.inspections.wakelock.timeout=正在无超时使用 wakeLock +android.lint.inspections.wearable.bind.listener=Android Wear BIND_LISTENER 用法已弃用 +android.lint.inspections.wear.standalone.app.flag=Wear 独立应用标志无效或缺失 +android.lint.inspections.webp.unsupported=WebP 不受支持 +android.lint.inspections.web.view.api.availability=WebView API 可用性 +android.lint.inspections.web.view.layout=wrap_content 父项中存在 WebView +android.lint.inspections.wifi.manager.leak=WifiManager 泄漏 +android.lint.inspections.wifi.manager.potential.leak=WifiManager 潜在泄漏 +android.lint.inspections.world.readable.files=openFileOutput() 或类似调用传递 MODE_WORLD_READABLE +android.lint.inspections.world.writeable.files=openFileOutput() 或类似调用传递 MODE_WORLD_WRITEABLE +android.lint.inspections.wrong.call=正在使用错误的绘制/布局方法 +android.lint.inspections.wrong.case=视图标记的大小写错误 +android.lint.inspections.wrong.constant=常量错误 +android.lint.inspections.wrong.folder=资源文件位于错误的 res 文件夹中 +android.lint.inspections.wrong.region=可疑的语言/地区组合 +android.lint.inspections.wrong.thread=线程错误 +android.lint.inspections.wrong.thread.interprocedural=线程错误 (过程间) +android.lint.inspections.wrong.view.cast=视图类型不匹配 +android.lint.inspections.xml.escape.needed=缺少 XML 转义 + +android.lint.fix.add.android.prefix=添加 Android 前缀 +android.lint.fix.replace.with.zero.dp=将大小特性替换为 0dp +android.lint.fix.remove.attribute=移除特性 +android.lint.fix.convert.to.dp=转换为 “dp”… +android.lint.fix.set.to.wrap.content=将大小特性替换为 'wrap_content' +android.lint.fix.remove.unnecessary.view=移除不必要的视图 +android.lint.fix.replace.with.suggested.characters=替换为建议的字符 +android.lint.fix.add.target.api=添加 @TargetApi({0}) 注解 +android.lint.fix.add.requires.api=添加 @RequiresApi({0}) 注解 +android.lint.fix.replace.namespace=替换为自动资源命名空间 +android.lint.fix.open.firebase.assistant=打开 Firebase Assistant + +android.export.unsigned.package.action.text=导出未签署的应用软件包 +android.inspections.element.not.allowed.name=不允许 Android XML 元素 +android.inspections.unresolvable.tag=不可解析的标记 +element.cannot.resolve=无法解析类 {0} +android.facet.settings.run.proguard=构建调试 APK 时运行 ProGuard +android.facet.settings.proguard.cfg.label=配置文件: +android.debug.sessions.will.be.closed=将关闭以下调试会话:\n\ +{0} +android.launch.ddms.title=Android Device Monitor +android.launch.ddms.already.launched.error=Android Device Monitor 已启动 +android.disable.adb.service.title=禁用 ADB 集成 +android.launch.hierarchy.viewer.action=Hierarchy Viewer +android.facet.settings.include.system.proguard=包含系统 proguard 文件 +file.already.exists.error=文件 {0} 已存在 +deployment.target.settings.min.sdk.info.message=仅显示兼容的 AVD。请参见 AndroidManifest.xml 中的 'uses-sdk' 标记 +android.compilation.warning.circular.app.dependency=由于模块 ''{2}'' 的循环依赖关系,模块 ''{1}'' 中 {0}.R 类中的生成不会为最终字段。 +file.name.not.specified.error=未指定文件名 +root.element.not.specified.error=未指定根元素 +directory.not.specified.error=未指定目录 +android.manifest.merger.not.supported.error=不支持清单合并。请重新配置清单文件 +invalid.resource.name.error=资源名称 ''{0}'' 无效 +android.extract.style.title=提取 Android 样式 +android.inline.style.title=内联 Android 样式 +android.inline.style.command.name=内联样式 ''{0}'' +android.inline.style.inline.all.text=内联所有引用并移除样式(&A) +android.inline.style.inline.this.text=内联此用法并保留样式(&T) +android.extract.as.include.title=提取 Android 布局 +android.inline.layout.command.name=内联布局文件 ''{0}'' +android.inline.file.inline.all.text=内联所有引用并移除文件(&A) +android.inline.file.inline.this.text=内联此用法并保留文件(&T) +android.inline.layout.title=内联 Android 布局 +android.facet.importing.notification.group=导入错误 +android.autogeneration.notification.group=Android 自动生成 +android.facet.importing.title=导入模块 ''{0}'' 时出错 +android.find.style.applications.title=尽可能使用样式 +android.aapt.use.custom.package.name=重命名清单包(&K): +android.wizard.cannot.find.main.content.root.error=在模块 {0} 中找不到包含 AndroidManifest.xml 文件的内容根 +android.psd.file.type.description=Adobe Photoshop 图像 +android.9patch.file.type.description=Android 9-Patch +android.9patch.creator.title=创建 9-Patch 文件… +android.9patch.creator.save.title=另存为 .9.png +android.9patch.creator.error=创建 9-Patch 文件时出现意外错误: {0} +android.9patch.creator.error.title=创建 9-Patch 文件 +android.update.project.properties.dialog.text=以下 Android 模块的结构已被更改:
      {0}
      是否要更新相关的 project.properties 文件?
      仅一次
      始终更新这些模块的文件
      永不更新这些模块的文件 +android.update.project.properties.dialog.title=更新属性文件 +error.report.at.b.android=提交反馈时出错: {0}
      考虑在 Android 问题跟踪器中创建问题 +error.report.to.google.action=报告给 Google(&R) +android.refactoring.migratetoappcompat=迁移到 AppCompat +android.refactoring.migrateto.androidx=迁移到 AndroidX +android.refactoring.rtl.addsupport.title=添加从右到左(RTL)支持 +android.refactoring.rtl.addsupport.dialog.title=添加从右到左 (RTL) 支持… +android.refactoring.rtl.addsupport.dialog.ok.button.text=运行 +android.refactoring.rtl.addsupport.dialog.apply.button.text=按搜索结果面板底部的“执行 RTL 重构”按钮,以进行从右到左(RTL)重构 +android.refactoring.rtl.addsupport.dialog.label.text=此重构将向您的 Android 应用添加 RTL 支持。\n\ +\n\ +请检查以下选项:\n\ + +android.refactoring.rtl.addsupport.dialog.option.label.update.manifest.text=更新 AndroidManifest.xml +android.refactoring.rtl.addsupport.dialog.option.label.update.layouts.text=更新布局文件 +android.refactoring.rtl.addsupport.dialog.option.label.layouts.options.txt=布局选项 +android.refactoring.rtl.addsupport.dialog.option.label.layouts.options.replace.leftright.txt=用开始/结束属性替换左/右属性 +android.refactoring.rtl.addsupport.dialog.option.label.layouts.options.generate.v17.txt=生成 -v17 版本 +android.refactoring.gradle.warning.rename.source.root=新的源根名称不会自动传播
      到 Gradle 配置。
      您需要在 *.gradle 文件中手动进行相应
      更改。 +create.on.click.handler.intention.text=创建 onClick 事件处理程序 +android.inspections.typedef=错误的常量或资源类型 +android.inspections.on.click.missing.name=相关 Activity 中缺少 onClick 处理程序 +android.inspections.on.click.missing.problem=方法 ''{0}'' 在 ''{1}'' 中缺失或签名不正确 +android.inspections.on.click.missing.incorrect.signature=''{1}'' 中方法 ''{0}'' 的签名不正确 +android.db.downloading.progress.title=正在下载 Android SQLite 数据库 +android.db.uploading.progress.title=正在更新 Android SQLite 数据库 +android.gradle.project.change.added=已添加 {0} +android.gradle.project.change.removed=已移除 {0} +android.gradle.project.change.modified={0}: {1} {2}->{3} +android.gradle.project.entity.project=项目 ''{0}'' +android.gradle.project.entity.module=模块 ''{0}'' +android.gradle.project.entity.content.root=模块 ''{1}''的内容根 ''{0}'' +android.gradle.project.entity.dependency.module=模块依赖关系 ''{0}''->''{1}'' +android.gradle.project.entity.dependency.library=库依赖关系 ''{0}''->''{1}'' +exportable.AndroidFoldingSettings.presentable.name=Android 代码折叠 +android.gradle.link.appengine.outdated=更新 'appengine' 插件版本。 +android.component.entry.point=Android 组件 + +android.profiler.hprof.actions.conv=转换 Android Java 堆转储 +android.profiler.hprof.actions.conv.contextmenu=导出到标准 .hprof +android.profiler.hprof.actions.conv.saved=堆转储已转换并另存为: {0} +android.profiler.hprof.actions.conv.savedialog.title=转换 Android Java 堆转储 +android.profiler.hprof.actions.view.bitmap.title=查看位图 +android.profiler.hprof.actions.view.bitmap.description=查看 Android 位图内容 +android.profiler.hprof.actions.view.bitmap.fail=由于不支持的 Bitmap.Config,无法转储位图。很可能是不支持的图像格式。 + +android.captures.analysis.results.title=分析结果 +android.captures.analysis.explanation.title=分析结果说明 +android.captures.analysis.results.manager.name=捕获分析 +android.captures.analysis.results.manager.titlebar.text=分析器任务 +android.captures.analysis.results.manager.run.name=执行分析 +android.captures.analysis.results.manager.run.description=分析常见问题的捕获 +android.captures.analysis.results.manager.run.enabled.name=已启用 +android.captures.analysis.results.manager.run.enabled.description=点击以分析捕获 +android.captures.analysis.results.manager.run.disabled.name=禁用 +android.captures.analysis.results.manager.run.disabled.description=捕获已被分析 + +instant.run.notification.ir.disabled.plugin.too.old=Instant Run 需要较新的 Android Gradle 插件。更新为 {0}。 +instant.run.notification.ir.disabled.for.current.variant=当前变体的 Instant Run 已禁用。
      某些设置(例如使用 jack)当前与 Instant Run 不兼容。了解详情。 +instant.run.notification.ir.disabled.multidex.requires.21=Instant Run 不支持将启用 multidex 的构建变体部署到 API 级别为 20 或更低的目标。
      要对启用 multidex 的构建变体使用 Instant Run,请部署到 API 级别为 21 或更高的目标。 +instant.run.notification.ir.disabled.multiple.devices=Instant Run 已禁用:
      Instant Run 不支持部署到多个目标。
      要启用 Instant Run,请部署到单个目标。 +instant.run.notification.ir.disabled.secondary.user=Instant Run 已禁用:
      Instant Run 不支持在工作资料下或以二级用户身份运行应用。
      要使用 Instant Run,请以主要用户身份登录设备并移除运行配置中的任何 '--user ' 标志。 +instant.run.notification.ir.disabled.target.platform.missing=Instant Run 已禁用:
      Instant Run 要求待部署到的设备的 API 级别的 Android SDK 已安装。
      要使用 Instant Run,请打开 SDK 管理器并安装缺少的平台。 +instant.run.quickfix.missing.platform=Instant Run 需要安装与您的目标设备({0})对应的平台。 +instant.run.notification.ir.disabled.non.debug.variant=Instant Run 已对非调试变体禁用。 +instant.run.notification.ir.disabled.testing.variant=Instant Run 已禁用,因为此变体专门用于测试。 +instant.run.notification.ir.disabled.jack=使用 Jack 编译器时,Instant Run 被禁用。 +instant.run.notification.ir.disabled.external.native.build=使用外部原生构建时,Instant Run 被禁用。 +instant.run.notification.ir.disabled.experimental.plugin=使用实验性 Android Gradle 插件时,Instant Run 被禁用。 +instant.run.notification.ir.disabled.app.bundle.output=使用应用 Bundle 时,Instant Run 被禁用。 +instant.run.notification.ir.disabled.multi.apk=使用多个 APK 时,Instant Run 被禁用。 +instant.run.notification.ir.disabled.unknown.reason=Instant Run 已对当前变体禁用。 +instant.run.notification.ir.disabled.api.less.than.21=API 级别为 20 或更低的设备不支持 Instant Run。 +instant.run.notification.ir.disabled.app.has.code.false=Instant Run 已禁用,因为应用没有 Java 代码。 +instant.run.notification.ir.broken.for.secondary.user=Instant Run 检测到您正在具有工作资料或多个用户帐户的目标设备上运行。
      在工作资料或目标设备上的另一个用户帐户下启动应用将导致崩溃。
      详细了解如何在工作资料下运行应用。 + +instant.run.notification.fullbuild.mismatching.timestamps=Instant Run 执行了完整构建和安装,因为
      设备上的安装与磁盘上的本地构建不匹配。 +instant.run.notification.fullbuild.manifestresourcechanged=正在执行完整构建和安装:
      Instant Run 检测到从合并的 AndroidManifest 引用的资源已更改。了解详情。 +instant.run.notification.fullbuild.api.less.than.21=正在执行完整构建和安装:
      在 API 级别低于 21 的设备上,如果应用未运行,则需要完整构建。 + +instant.run.notification.coldswap=Instant Run 应用了代码变更并重新启动了应用。 +instant.run.notification.coldswap.multiprocess=Instant Run 应用了代码变更并重新启动了应用。
      由于使用多个进程,应用被重新启动。 +instant.run.notification.coldswap.nochanges=Instant Run 重新启动了应用。 +instant.run.notification.coldswap.tv=Instant Run 应用了代码变更并重新启动了应用。
      Android TV 应用需要重新启动才能完成所有变更。 + +instant.run.notification.warmswap=Instant Run 应用了代码变更并重新启动了当前 Activity。 +instant.run.notification.hotswap=Instant Run 应用了代码变更。\n\ +您可能需要重新启动{0}当前活动才能看到变更。\n\ +您还可以配置 Instant Run 以自动重新启动 Activity。 + +instant.run.notification.nochanges=没有要部署的变更。 +instant.run.prompt.title=Instant Run: 应用变更 +instant.run.prompt.body=如果您仅更改方法实现或资源,
      可以使用“应用变更”按钮使它们更快显示。了解详情 + +instant.run.flr.banner.subtitle=我们力求将 Instant Run 打造得完美无缺,但我们需要您项目的更多信息才能调查问题。
      请执行以下操作,帮助我们排除和修复 Instant Run 问题:
      1. 重新启用 Instant Run 并激活额外的日志记录
      2. 重现 Instant Run 问题
      3. 重现问题后,立即点击帮助 | 报告 Instant Run 问题…向我们发送问题报告。
      + +instant.run.flr.dialog.description=请描述您的 Instant Run 问题: +instant.run.flr.dialog.includeslogs=为帮助 Google 排查和解决 Instant Run 问题,需要将以下日志文件
      与此问题报告一并发送。这些日志包含项目详细信息,其中可能包含可识别
      身份的信息(例如磁盘上的项目路径)。

      这些日志只会由 Google 查看,并且仅用于排查
      Instant Run 问题。 +instant.run.flr.would.you.like.to.enable=要向 Google 报告 Instant Run 问题,您需要首先启用 Instant Run 和额外日志记录。\n\ +您想帮助 Google 排查故障并解决 Instant Run 问题吗? +instant.run.flr.dialog.title=报告 Instant Run 问题 +instant.run.flr.howto=谢谢! 我们现在已启用 Instant Run 和额外日志记录来诊断问题。
      下次您遇到 Instant Run 问题时,可以点击帮助 | 报告 Instant Run 问题…
      向我们发送错误报告。

      如果您改变主意,想要禁用 Instant Run 的额外日志记录,可以转到
      设置 | 构建、执行、部署 | Instant Run
      ,然后取消选中“为 Instant Run 记录额外信息” + +instant.run.build.error=Android Studio 无法正确解释 Gradle 构建的结果。\n\ +再次按“运行”或“调试”,也许可以让您从此问题中恢复。\n\ +请在 b.android.com 上提交错误,并包括此消息和您的 idea.log(帮助 | 显示日志…)。 + +connection.assistant.loading=正在加载… +connection.assistant.usb.no_devices.title=未检测到 USB 设备 +connection.assistant.usb.no_devices.body=如果您仍然遇到问题,\n\ +请提交错误报告。 +connection.assistant.adb.no_devices.title=未检测到 Android 设备。 +connection.assistant.adb.no_devices.body=尝试重启 ADB 服务器。\n\ + 如果您仍然遇到问题, \n\ +请提交错误报告。 +connection.assistant.adb.devices=检测到至少一台 Android 设备。 +connection.assistant.adb.failure=无法找到 ADB。 +connection.assistant.adb.unexpected=出现意外错误,请提交错误。 +title.cannot.open.file=无法打开文件 {0} +feedback.notifications.title=感谢您的反馈! + +whatsnew.action.custom.description=了解最新版本 {0} 的新功能和改进 + +unsupported.jvm.dragndrop.message=在受拖放问题(1.8.0_60 至 1.8.0_76)影响的 JDK8 版本上运行。请参见 IDEA-146691 了解详细信息,并考虑使用问题范围之外的 JDK。 +unsupported.jvm.openjdk.message=OpenJDK 表现出间歇性的性能和 UI 问题。我们建议使用 Oracle JRE/JDK.。 +sys.health.too.many.exceptions=已检测到大量内部异常。这表明 IDE 存在严重问题。请考虑重新安装 Android Studio。如果问题仍然存在,请通过以下链接报告错误。 +sys.health.send.feedback=发送反馈 +heap.dump.snapshot.exception=创建堆转储时出错。有关详细信息,请参阅 idea.log。 +heap.dump.snapshot.indicator.text=正在捕获 {0} 堆转储 +heap.dump.snapshot.indicator.low.memory.text=检测到内存不足。正在捕获 {0} 堆转储 +heap.dump.snapshot.created=已在 {0} 创建堆转储。下次您启动时 {1} 会对它进行分析。 +heap.dump.snapshot.created.no.analysis=已在 {0} 创建堆转储。 +heap.dump.snapshot.error.check.log=创建堆转储时出错。请检查 idea.log 了解详细信息。 +heap.dump.snapshot.no.space=空间不足,无法在 {0} 创建堆转储。堆转储所需的估计大小: {1}MB,但只有 {2}MB 可用。 +heap.dump.snapshot.title=捕获堆转储 +heap.dump.snapshot.task.title=正在捕获堆转储 +heap.dump.snapshot.already.pending=内存报告已挂起。重启 {0} 以开始分析。 +heap.dump.analysis.exception=堆转储分析时出错。有关详细信息,请参阅 idea.log。 +heap.dump.analysis.task.title=正在准备内存报告 +heap.dump.analysis.notification.title=内存使用报告 +heap.dump.analysis.notification.ready.content=分析完成。 +heap.dump.analysis.notification.action.title=审阅报告 +heap.dump.analysis.notification.submitted.content=感谢您提交报告。 +heap.dump.analysis.notification.submit.error.content=提交报告时出错。请参见 idea.log 了解详细信息。 +heap.dump.analysis.report.dialog.title=内存使用报告 +heap.dump.analysis.report.dialog.header={0} 检测到异常高的内存使用。
      您可以将以下内存使用报告发送到 Google,帮助团队调查问题的根源。 +heap.dump.analysis.report.dialog.footer=提交此报告,即表明您允许 Google 根据 Google 的隐私政策收集和处理此数据。 +heap.dump.analysis.report.dialog.action.send=发送 +heap.dump.analysis.report.dialog.action.dont.send=不发送 +heap.dump.snapshot.restart.dialog.title=确认重启 +heap.dump.snapshot.restart.dialog.message=堆转储分析需要重启 Android Studio。要立即重启吗? +heap.dump.snapshot.restart.dialog.restart.now=立即重启 +heap.dump.snapshot.restart.dialog.restart.later=稍后重启 + +memory.settings.restart.needed=内存设置已保存。为了使新设置生效,您需要重启 IDE。要立即重启吗? +memory.settings.panel.top.message=对操作系统应为 Android Studio 进程(例如核心 IDE 或 Gradle 守护进程)分配的最大 RAM 量进行配置。分配过多的内存可能会降低性能,类似于分配过少的内存。 +memory.settings.ide.bottom.message=这是全局设置,将应用于您使用 Android Studio 打开的所有项目。您需要重启 IDE 才能使对其堆大小做出的变更生效。 +memory.settings.panel.use.recommended.values=使用建议值 +memory.settings.panel.ide.info=根据可用内存和当前项目,建议 IDE 堆大小为 {0}。 +memory.settings.panel.daemon.info=这些设置仅应用于当前项目,并且更改仅会在重新构建项目(通过从菜单栏选择“构建”>“重新构建项目”)后生效。更改堆大小并重新构建项目后,您可能会发现具有旧设置的守护进程并需要将其手动停止。 +memory.settings.panel.show.daemons.info=查找现有的 Gradle 守护进程 +memory.settings.postsync.message=根据可用内存和项目大小,将最大堆大小从 {0}MB 增加到 {1}MB 可以优化 IDE 性能。 +memory.settings.postsync.title={0} 的性能可以提高 +memory.settings.postsync.save=使用建议设置并重启 +memory.settings.postsync.configure=配置… +memory.settings.postsync.do.not.ask.for.project=此项目不再询问 +memory.settings.postsync.do.not.show.again=不再显示 +memory.settings.has.user.properties={0} 中指定的用户 Gradle 属性由项目共享,并且优先于项目级别属性。要为守护进程指定项目级别的最大堆大小,请在用户级别属性中移除 org.gradle.jvmargs 设置,然后重新打开此面板。 +memory.settings.user.properties.error=读取用户 Gradle 属性文件时出现异常: {0} + +windows.ucrt.warn.message=未安装 Windows 版 Universal C Runtime。ADB 等平台工具可能无法正常工作。 + +virus.scanning.warn.message=您的防病毒程序可能会影响您的构建性能。Android Studio 检查了以下目录: {0} +virus.scanning.dont.show.again=不再显示 +virus.scanning.dont.show.again.this.project=不再为此项目显示 +configurable.DeploymentConfigurable.display.name=部署 +configurable.ExperimentalSettingsConfigurable.display.name=实验性 +configurable.AndroidFacetEditorTab.display.name=Android SDK 设置 +configurable.IdeSdksConfigurable.display.name=SDK 位置 +configurable.MemorySettingsConfigurable.display.name=内存设置 +configurable.SdkUpdaterConfigurable.display.name=Android SDK +configurable.GradleFacetEditorTab.display.name=Android Gradle 模块设置 +configurable.ProfilingConfigurable.display.name=CPU 记录配置 +configurable.AndroidProjectStructureConfigurableForIdea.display.name=Android 项目结构 +configurable.AndroidProjectStructureConfigurableForIdea.redirect.text=请使用 Android 项目结构配置页面。 +checkbox.use.custom.formatting.settings.for.android.xml.files=对 Android XML 文件使用自定义格式设置 +checkbox.group.tags.with.the.same.name=将同名标签分为一组 +checkbox.insert.line.breaks.around.style.declaration=在样式声明周围插入换行符 +checkbox.use.same.device.for.future.launches=将同一设备用于未来启动 +action.DumbAware.ToolWindowHeader.text.hide=隐藏 +action.DumbAware.AbstractDependenciesPanel.text.add.dependency=添加依赖项 +action.AnActionButton.text.select.all=全选 +action.AnActionButton.text.unselect.all=取消全选 +action.AnActionButton.extract.style.text.select.all=取消全选 +action.AnActionButton.extract.style.text.unselect.all=取消全选 +action.AnActionButton.update.sites.text.select.all=全选 +action.AnActionButton.update.sites.text.deselect.all=取消全选 +text.loading=正在加载… + +compose.feature.in.non-canary.title=Jetpack Compose 功能不受支持 +compose.feature.in.non-canary.message=Jetpack Compose 是一项预览功能,仅 Canary 版本的 Android Studio 中包含对 Compose 的支持。要在您的应用项目中使用 Compose,请下载并安装 IDE 的最新 Canary 版本。 +configurable.group.build.android.settings.display.name=Android +configurable.group.build.android.settings.description=使用 Android 构建工具配置项目集成。 +downloading.android.plugin.components=正在下载 Android 插件组件 +label.manager.for.the.android.sdk=IDE 使用的 Android SDK 和工具的管理器 +label.android.sdk.location=Android SDK 位置: +tab.name.sdk.platforms=SDK 平台 +tab.name.sdk.tools=SDK 工具 +tab.name.sdk.update.sites=SDK 更新站点 +label.sdk.location.must.be.set=必须设置 SDK 位置 +label.each.android.sdk.platform.package=默认情况下,每个 Android SDK 平台软件包包含 Android 平台以及与 API 级别有关的源代码。安装后,IDE 将自动检查更新。选中“显示软件包详细信息”以显示各个 SDK 组件。 +checkbox.show.package.details=显示软件包详细信息 +label.looking.for.updates=正在查找更新… +checkbox.hide.obsolete.packages=隐藏过时软件包 +label.below.are.the.available.sdk=以下为可用的 SDK 开发者工具。安装后,IDE 将自动检查更新。选中“显示包详细信息”以显示 SDK 工具的可用版本。 +label.these.are.the.sites=这些是检查 Android SDK 更新和工具的站点。如果未选中,SDK 管理器将不会检查站点有无更新。通过添加其他附加组件更新站点可以添加新的附加组件或其他 SDK 软件包。 +label.loading.sources=正在加载源… +checkbox.force.https.sources=使用 http://... 强制要提取的 https://... 源 +checkbox.disable.sdk.diff.patching=禁用 SDK 差异修补 +tooltip.disabling.sdk.diff.patching=禁用 SDK 差异修补可能会增大 SDK 软件包下载体积,但是将提升下载后包的安装速度。如果在您的计算机上安装本地补丁将花费大量时间,但您具有无流量限制的快速网络连接,这样选择较为实用。SDK 差异修补默认启用,并且是高端硬件的首选安装方法。 +dialog.title.device.file.explorer.download.location=Device File Explorer 下载位置 +dialog.message.path.must.be.existing.directory=路径必须为现有目录 +dialog.title.invalid.path=无效路径 +configurable.name.device.file.explorer=Device File Explorer +configurable.name.android.device.file.explorer=Android Device File Explorer + +android.proxy.settings.dialog.title=代理设置 +android.proxy.settings.dialog.message={0} 配置为使用 HTTP 代理。Gradle 可能需要进行这些 HTTP 代理设置才能访问 Internet(例如下载依赖项。)

      是否要将以下 HTTP 设置存储到全局 gradle.properties 文件?

      注意: 您可以在 gradle.properties 文件中手动设置密码,但要自担风险。

      有关更多详细信息,请参阅 Android Studio 文档

      +label.download.location=下载位置 +android.application.title=Android 应用 +android.final.package.element.type.name=Android 最终软件包 +android.extract.package.error.0.message=错误: {0} +android.export.package.passwords.cannot.contain.quote.character=密码不得包含引号字符 + + +android.lint.inspections.android.gradle.plugin.version=过时的 Android Gradle 插件版本 +android.run.configuration.not.supported.applicationid=当前项目不支持运行配置 {0}。无法获取应用程序 ID。 +android.lint.inspections.mutating.shared.prefs=改变不可变的 SharedPrefs 集 +android.lint.inspections.remote.view.layout=RemoteView 中不受支持的视图 +android.layout.screenview.action.description=Show {0} 图面 +android.wizard.module.new.native.library=Android 原生库 +android.wizard.module.new.native.library.description=创建新的 Android 原生库。 +android.wizard.cppStandard.combo.tooltip=用于原生模块的 C++ 标准 +android.lint.inspections.launch.activity.from.notification=通知会启动服务或 BroadcastReceiver +android.lint.inspections.notification.trampoline=通知 Trampoline +project.upgrade.agpUpgradeRefactoringProcessor.usageView.header=AGP 升级助手 +project.upgrade.agpUpgradeRefactoringProcessor.commandName=将 AGP 版本从 {0} 升级到 {1} +project.upgrade.references.text=考虑的参考 +project.upgrade.usageView.tabText=升级预览 +project.upgrade.usageView.need.reRun=无法执行升级。\n\ +找到用法后代码有变更。\n\ +请再次执行用法搜索。 +project.upgrade.usageView.doAction=完成升级(&U) +project.upgrade.agpClasspathDependencyRefactoringProcessor.target.presentableText=正在升级 AGP 配置 +project.upgrade.agpClasspathDependencyRefactoringProcessor.commandName=将 AGP 依赖项从 {0} 升级到 {1} +project.upgrade.agpClasspathDependencyRefactoringProcessor.usageView.header=将 AGP 类路径依赖项版本从 {0} 升级到 {1} +project.upgrade.agpClasspathDependencyRefactoringProcessor.usageType=更新版本字符串 +project.upgrade.agpVersionUsageInfo.tooltipText=将 AGP 版本从 {0} 更新到 {1} +project.upgrade.gMavenRepositoryRefactoringProcessor.commandName=将 google() GMaven 添加到 buildscript 仓库 +project.upgrade.gMavenRepositoryRefactoringProcessor.usageView.header=将 google() GMaven 添加到 buildscript 仓库 +project.upgrade.gMavenRepositoryRefactoringProcessor.usageType=添加 GMaven 声明 +project.upgrade.repositoriesNoGMavenUsageInfo.tooltipText=将 google() 添加到 buildscript 仓库 +project.upgrade.agpGradleVersionRefactoringProcessor.commandName=将 Gradle 版本升级到 {0} +project.upgrade.agpGradleVersionRefactoringProcessor.usageView.header=将 Gradle 版本升级到 {0} +project.upgrade.agpGradleVersionRefactoringProcessor.wellKnownGradlePluginUsageType=更新 Gradle 插件版本 +project.upgrade.gradleVersionUsageInfo.tooltipText=将 Gradle 版本升级到 {0} +project.upgrade.java8DefaultRefactoringProcessor.commandName=更新默认 Java 语言级别 +project.upgrade.java8DefaultRefactoringProcessor.groupingName=添加指令以继续使用 Java 7 +project.upgrade.java8DefaultRefactoringProcessor.usageView.header=更新默认 Java 语言级别 +project.upgrade.java8DefaultRefactoringProcessor.existingDirectiveUsageType=现有语言级别指令(保持不变) +project.upgrade.java8DefaultRefactoringProcessor.acceptNewUsageType=接受新默认值(保持不变) +project.upgrade.java8DefaultRefactoringProcessor.insertOldUsageType=继续使用 Java 7(插入语言级别指令) +project.upgrade.noLanguageLevelAction.acceptNewDefault=接受 Java 8 的新默认值 +project.upgrade.noLanguageLevelAction.insertOldDefault=插入指令以继续使用 Java 7 +project.upgrade.javaLanguageLevelUsageInfo.tooltipText.insertOldDefault=插入显式 {0} 以保留以前的行为 +project.upgrade.javaLanguageLevelUsageInfo.tooltipText.acceptNewDefault=接受新默认值 +project.upgrade.javaLanguageLevelUsageInfo.tooltipText.existing=保留现有显式 {0} +project.upgrade.kotlinLanguageLevelUsageInfo.tooltipText.insertOldDefault=插入显式 {0} 以保留以前的行为 +project.upgrade.kotlinLanguageLevelUsageInfo.tooltipText.acceptNewDefault=接受新默认值 +project.upgrade.kotlinLanguageLevelUsageInfo.tooltipText.existing=保留现有显式 {0} +project.upgrade.compileRuntimeConfigurationRefactoringProcessor.commandName=替换弃用的配置 +project.upgrade.compileRuntimeConfigurationRefactoringProcessor.usageView.header=替换弃用的配置 +project.upgrade.compileRuntimeConfigurationRefactoringProcessor.renameConfigurationUsageType=重命名配置 +project.upgrade.compileRuntimeConfigurationRefactoringProcessor.changeDependencyConfigurationUsageType=更改弃用的配置 +project.upgrade.obsoleteConfigurationDependencyUsageInfo.tooltipText=将配置从 {0} 更新到 {1} +project.upgrade.obsoleteConfigurationConfigurationUsageInfo.tooltipText=将配置从 {0} 重命名为 {1} +project.upgrade.fabricCrashlyticsRefactoringProcessor.usageView.header=将 crashlytics 从 fabric 迁移到 firebase +project.upgrade.fabricCrashlyticsRefactoringProcessor.commandName=将 crashlytics 从 fabric 迁移到 firebase +project.upgrade.fabricCrashlyticsRefactoringProcessor.removeFabricRepositoryUsageType=移除 Fabric Maven 仓库 +project.upgrade.fabricCrashlyticsRefactoringProcessor.addGmavenRepositoryUsageType=添加 Google Maven 仓库 +project.upgrade.fabricCrashlyticsRefactoringProcessor.removeFabricClasspathUsageType=移除对 Fabric Gradle 插件的依赖 +project.upgrade.fabricCrashlyticsRefactoringProcessor.addGoogleServicesClasspathUsageType=添加对 Google Services Gradle 插件的依赖 +project.upgrade.fabricCrashlyticsRefactoringProcessor.addFirebaseCrashlyticsClasspathUsageType=添加对 Firebase Crashlytics Gradle 插件的依赖 +project.upgrade.fabricCrashlyticsRefactoringProcessor.replaceFabricPluginUsageType=使用 Firebase Crashlytics 插件替换 Fabric 插件 +project.upgrade.fabricCrashlyticsRefactoringProcessor.applyGoogleServicesPluginUsageType=应用 Google Services 插件 +project.upgrade.fabricCrashlyticsRefactoringProcessor.removeFabricCrashlyticsSdkUsageType=移除对 Fabric SDK 的依赖 +project.upgrade.fabricCrashlyticsRefactoringProcessor.addFirebaseCrashlyticsSdkUsageType=添加对 Firebase Crashlytics SDK 的依赖 +project.upgrade.fabricCrashlyticsRefactoringProcessor.addGoogleAnalyticsSdkUsageType=添加对 Google Analytics SDK 的依赖 +project.upgrade.fabricCrashlyticsRefactoringProcessor.removeFabricNdkUsageType=移除 Fabric NDK 依赖关系 +project.upgrade.fabricCrashlyticsRefactoringProcessor.addFirebaseCrashlyticsNdkUsageType=添加 Firebase Crashlytics NDK 依赖关系 +project.upgrade.removeFabricMavenRepositoryUsageInfo.tooltipText=移除 Fabric Maven 仓库 +project.upgrade.addGoogleMavenRepositoryUsageInfo.tooltipText=添加 Google Maven 仓库 +project.upgrade.removeFabricClasspathDependencyUsageInfo.tooltipText=移除对 Fabric Gradle 插件的依赖 +project.upgrade.addGoogleServicesClasspathDependencyUsageInfo.tooltipText=添加对 Google Services Gradle 插件的依赖 +project.upgrade.addFirebaseCrashlyticsClasspathDependencyUsageInfo.tooltipText=添加对 Firebase Crashlytics Gradle 插件的依赖 +project.upgrade.replaceFabricPluginUsageInfo.tooltipText=使用 Firebase Crashlytics 插件替换 Fabric 插件 +project.upgrade.applyGoogleServicesPluginUsageInfo.tooltipText=应用 Google Services 插件 +project.upgrade.removeFabricCrashlyticsSdkUsageInfo.tooltipText=移除对 Fabric SDK 的依赖 +project.upgrade.addFirebaseCrashlyticsSdkUsageInfo.tooltipText=添加对 Firebase Crashlytics SDK 的依赖 +project.upgrade.addGoogleAnalyticsSdkUsageInfo.tooltipText=添加对 Google Analytics SDK 的依赖 +project.upgrade.removeFabricNdkUsageInfo.tooltipText=移除 Fabric NDK 依赖关系 +project.upgrade.addFirebaseCrashlyticsNdkUsageInfo.tooltipText=添加 Firebase Crashlytics NDK 依赖关系 +project.upgrade.removeCrashlyticsEnableNdkUsageInfo.tooltipText=移除 enableNdk crashlytics 标志 +project.upgrade.addBuildTypeFirebaseCrashlyticsUsageInfo.tooltipText=为发布 buildType 启用本机符号上传 +project.upgrade.fabricCrashlyticsRefactoringProcessor.removeCrashlyticsEnableNdkUsageType=移除 enableNdk crashlytics 标志 +project.upgrade.fabricCrashlyticsRefactoringProcessor.addFirebaseCrashlyticsNativeSymbolUploadUsageType=为发布 buildType 启用本机符号上传 +project.upgrade.agpGradleVersionRefactoringProcessor.gradleUrlUsageType=更新 Gradle 分发 URL +android.lint.inspections.intent.filter.exported.receiver=未在清单中指定 android:exported +project.upgrade.notifyCancelledUpgrade.title=已取消 Android Gradle 插件升级 +project.upgrade.notifyCancelledUpgrade.body=恢复升级。 +android.add.library.dependency.title=库依赖项 +project.upgrade.migrateToBuildFeaturesRefactoringProcessor.commandName=将启用的 booleans 迁移到 buildFeature +project.upgrade.migrateToBuildFeaturesRefactoringProcessor.usageView.header=将启用的 booleans 迁移到 buildFeature +project.upgrade.migrateToBuildFeaturesRefactoringProcessor.dataBindingEnabledUsageType=将启用的 dataBinding 迁移到 buildFeatures +project.upgrade.migrateToBuildFeaturesRefactoringProcessor.viewBindingEnabledUsageType=将启用的 viewBinding 迁移到 buildFeatures +project.upgrade.dataBindingEnabledUsageInfo.tooltipText=将启用的 dataBinding 迁移到 buildFeatures +project.upgrade.viewBindingEnabledUsageInfo.tooltipText=将启用的 viewBinding 迁移到 buildFeatures +android.emulator.notification.title=Android 模拟器 +android.lint.inspections.leanback.uses.wifi=电视设备上的 android.hardware.wifi +wear.assistant.device.list.tooltip.requires.api=Wear 配对要求 API 级别 >= 30 +live.literals.is.enabled=文字的 Live Edit:开 +live.literals.is.disabled=文字的 Live Edit:关 +live.literals.tooltip.url.label=文字的 Live Edit 文档 +live.literals.tooltip.description=代码中某些文字的变更将立即反映在模拟器或 Compose 预览中。
      使用此图标可启用/禁用该功能,打开编辑器标记,并查看文字的 Live Edit 状态。 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/AndroidCommonBundle.properties b/original-plugin-raw/zh/messages/AndroidCommonBundle.properties new file mode 100644 index 000000000..bc10ba7da --- /dev/null +++ b/original-plugin-raw/zh/messages/AndroidCommonBundle.properties @@ -0,0 +1,2 @@ +android.artifact.building.cannot.find.key.error=无法找到密钥 {0} +android.artifact.building.cannot.find.zip.align.error=cannot.find.zip.align=在 SDK 中找不到 zipalign 工具。\n\n请更新到最新的 SDK,然后重新导出您的应用或手动运行 zipalign。\n\n对齐应用将允许 Android 更高效地使用应用资源。 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/AndroidJpsBundle.properties b/original-plugin-raw/zh/messages/AndroidJpsBundle.properties new file mode 100644 index 000000000..a13a9ff80 --- /dev/null +++ b/original-plugin-raw/zh/messages/AndroidJpsBundle.properties @@ -0,0 +1,29 @@ +android.jps.progress.dex=正在执行 DEX [{0}] +android.jps.errors.sdk.not.specified=[{0}] Android SDK 未指定 +android.jps.errors.java.sdk.not.specified=找不到 Java SDK {0} +android.jps.errors.sdk.invalid=[{0}] Android SDK 无效或未指定 +android.jps.errors.output.dir.not.specified=[{0}] 输出目录未指定 +android.jps.warnings.dex.no.compiled.files=[{0}] Dex 将不会启动,因为它不包含编译的文件 +android.jps.cannot.delete.file=无法删除文件 {0} +android.jps.progress.aidl=正在处理 AIDL 文件 +android.jps.progress.renderscript=正在处理 RenderScript 文件 +android.jps.errors.cannot.compute.package=无法计算文件 {0} 的软件包 +android.jps.progress.aapt=正在生成 R.java 和 Manifest.java 文件 [{0}] +android.jps.progress.build.config=正在生成 BuildConfig.java 文件 [{0}] +android.jps.errors.manifest.not.found=[{0}] AndroidManifest.xml 文件未找到 +android.jps.errors.package.not.specified=[{0}] 软件包未在 AndroidManifest.xml 中指定 +android.jps.progress.library.packaging=正在打包 Android 库 [{0}] +android.jps.progress.aar.dependencies.packaging=正在打包 Android AAR 依赖项 [{0}] +android.jps.errors.main.content.root.not.found=[{0}] 无法找到主内容根 +android.jps.progress.proguard=正在执行 ProGuard [{0}] +android.jps.progress.res.caching=正在缓存资源 [{0}] +android.jps.progress.packaging=正在打包 {0} +android.jps.progress.packaging.resources=正在打包资源 [{0}] +android.jps.errors.incorrect.package.name=[{0}] 软件包名称必须包含至少 2 个段 +android.jps.internal.error=内部错误 +android.jps.cannot.create.directory=无法创建目录 {0} +android.jps.cannot.delete=无法删除 {0} +android.jps.errors.cannot.find.proguard.cfg=[{0}] 无法找到 proguard 配置文件 +android.jps.cannot.find.file=找不到文件 {0} +android.jps.errors.cannot.compute.output.apk=[{0}] 无法计算 APK 的输出路径 +android.jps.errors.cannot.move.content=无法将内容从 {0} 移动到 {1} \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/Angular2Bundle.properties b/original-plugin-raw/zh/messages/Angular2Bundle.properties new file mode 100644 index 000000000..693bd19dd --- /dev/null +++ b/original-plugin-raw/zh/messages/Angular2Bundle.properties @@ -0,0 +1,218 @@ +angular.action.goto-declaration.component=组件声明(&D) +angular.action.goto-declaration.directive=指令声明(&D) +angular.action.goto-related.component-class=组件类 +angular.action.goto-related.group-name=Angular 组件 +angular.action.goto-related.inline= +angular.action.goto-related.module=模块类 +angular.action.goto-related.styles=样式{0} +angular.action.goto-related.template=模板 +angular.action.goto-related.tests=测试{0} +angular.action.goto-type-declaration.component-template=组件模板(&T) +angular.action.new-project.description=Angular CLI 有助于创建新的开箱即用 Angular 应用程序。 +angular.action.new-project.label-additional-parameters=附加参数: +angular.action.new-project.label-defaults=使用默认项目设置(&D) +angular.action.new-project.label-content-root-folder=内容根文件夹 +angular.action.new-project.label-project-name=项目 +angular.action.new-project.name=Angular CLI +angular.action.new-project.presentable-package-name=Angular CLI(&C): +angular.action.new-project.wrong-folder-name={0} 名称 ''{1}'' 无效。{0} 名称必须以字母开头,并且只能包含字母数字字符或短划线。添加短划线时,短划线后的分段也必须以字母开头。 +angular.action.ng-add.button-close=关闭 +angular.action.ng-add.button-install=安装 +angular.action.ng-add.cant-add-new-dependency=无法添加新的 Angular 依赖项 +angular.action.ng-add.install-current=安装当前 +angular.action.ng-add.install-latest=安装最新 +angular.action.ng-add.install-other=安装未在上面列出的软件包… +angular.action.ng-add.installing-for=正在为 {1} 安装 {0} +angular.action.ng-add.not-supported-installed-try-latest=已安装的软件包版本似乎不支持 'ng add'。\n\n是否要安装该软件包的最新版本? +angular.action.ng-add.not-supported-specified-try-latest=指定的软件包版本似乎不支持 'ng add'。\n\n是否要安装该软件包的最新版本? +angular.action.ng-add.package-name=软件包名称 +angular.action.ng-add.pacakge-not-installed=未安装 Angular CLI 软件包。 +angular.action.ng-add.title=通过 'ng add' 安装 +angular.action.ng-generate.cant-generate-code=无法从 Angular Schematics 生成代码 +angular.action.ng-generate.error-label=\ - 错误: {0} +angular.action.ng-generate.label.parameters=形参 {0} +angular.action.ng-generate.params.options=<选项…> +angular.action.ng-generate.title=使用 Angular Schematics 生成代码 + +angular.colors.banana-binding=双向数据绑定 ‘[(...)]’ +angular.colors.event-binding=事件绑定 ‘(event)’ +angular.colors.expansion-form=复数表达式 +angular.colors.expansion-form-comma=复数表达式中的逗号 +angular.colors.expansion-form-delimiter=复数表达式中的大括号 +angular.colors.interpolation-delimiter=插值中的大括号 +angular.colors.property-binding=属性绑定 ‘[property]’ +angular.colors.ref-var=模板引用变量 ‘#var’ +angular.colors.template-binding=结构指令 ‘*directive’ +angular.colors.template-expression=模板表达式 + +angular.description.angular-cli=Angular CLI +filetype.angular-metadata-json.description=Angular 元数据 JSON +filetype.angular-metadata-json.display.name=Angular 元数据 JSON +angular.description.and-separator=和 +angular.description.attribute-selector=特性选择器 +angular.description.element-selector=元素选择器 +angular.description.pipe=管道 +angular.description.ref-var=模板引用变量 +angular.description.unknown-class= +angular.description.unnamed= + +angular.entity.pipe=管道 +angular.entity.component=组件 +angular.entity.directive=指令 +angular.entity.component.or.directive=组件或指令 + +angular.inlay.params.option.pipe.arguments=对于管道参数 + +angular.inspection.ambiguous-component-tag.message.embedded=组件位于嵌入式模板上: {0} +angular.inspection.ambiguous-component-tag.message.many-components=在此元素上匹配多个组件: {0} +angular.inspection.ambiguous-component-tag.name=不明确的组件标记 +angular.inspection.animation-trigger-assignment.message=动画触发器赋值无效 +angular.inspection.animation-trigger-assignment.name=动画触发器赋值无效 +angular.inspection.aot-inaccessible-member.message.member=使用 AOT 编译器时,无法从组件模板解决 {0} {1} {2} +angular.inspection.aot-inaccessible-member.message.template-symbol=使用 AOT 编译器时,无法解决 {0} {1} {2}。 +angular.inspection.aot-inaccessible-member.name=在 AOT 模式下无法访问组件成员 +angular.inspection.cyclic-module-dependency.message.cycle=模块之间存在循环依赖关系: {0} +angular.inspection.cyclic-module-dependency.message.self-export=模块 {0} 将自身导出 +angular.inspection.cyclic-module-dependency.message.self-import=模块 {0} 将自身导入 +angular.inspection.cyclic-module-dependency.message.separator=-> +angular.inspection.cyclic-module-dependency.name=递归导入或导出 Angular 模块 +angular.inspection.group.name=Angular +angular.inspection.i18n.message.empty=i18n- 特性应包含待翻译特性的名称 +angular.inspection.i18n.message.not-matching=已翻译的特性 {0} 不存在 +angular.inspection.i18n.name=i18n 特性无效 +angular.inspection.insecure-binding-to-event.message.attribute=出于安全原因,不允许绑定到事件特性 {0} +angular.inspection.insecure-binding-to-event.message.property=出于安全原因,不允许绑定到事件属性 {0} +angular.inspection.insecure-binding-to-event.name=绑定到事件不安全 +angular.inspection.install-with-ng-add.message=可以使用 ''ng add'' 命令安装 {0} +angular.inspection.install-with-ng-add.name=Angular CLI 添加依赖项 +angular.inspection.invalid-declaration-in-module.message.declared-in-many={0} 在多个 Angular 模块中声明: {1} +angular.inspection.invalid-declaration-in-module.message.not-declared={0} 未在任何 Angular 模块中声明 +angular.inspection.invalid-declaration-in-module.name=模块中的组件、指令或管道声明缺失或无效 +angular.inspection.invalid-directive-selector.message.missing=指令缺少必需的 'selector' 属性 +angular.inspection.invalid-directive-selector.name=选择器缺失或无效 +angular.inspection.invalid-entry-component.message.not-array-of-class-types=表达式不会解析为类类型的数组或类类型 +angular.inspection.invalid-entry-component.message.not-component=类 {0} 不是 Angular 组件 +angular.inspection.invalid-entry-component.name=入口组件无效 +angular.inspection.invalid-expr-result-type.message=类型 {0} 不可分配给类型 {1} +angular.inspection.invalid-expr-result-type.name=表达式结果类型无效 +angular.inspection.invalid-template-definition.message.duplicated='template' 和 'templateUrl' 不能一起使用 +angular.inspection.invalid-template-definition.message.missing={0} 没有模板 +angular.inspection.invalid-template-definition.name=组件模板定义不正确 +angular.inspection.invalid-template-ref-var.message.ambiguous-name=有多个指令将 ''exportAs'' 设置为 {0}: {1} +angular.inspection.invalid-template-ref-var.message.unbound=没有任何指令将 ''exportAs'' 设置为 {0} +angular.inspection.invalid-template-ref-var.name=模板引用变量未绑定或不明确 +angular.inspection.missing-event-handler.message=事件绑定没有事件处理语句 +angular.inspection.missing-event-handler.name=缺少事件处理程序 +angular.inspection.multiple-structural-directives.message=只能应用一个结构指令 +angular.inspection.multiple-structural-directives.name=一个元素上有多个结构指令 +angular.inspection.ng-content-with-content.message= 元素不能拥有内容 +angular.inspection.ng-content-with-content.name=内容位于 标记中 +# suppress inspection "UnusedProperty" +angular.inspection.undefined-binding.message.attribute-directive-out-of-scope=提供特性 {0} 的指令超出了当前 Angular 模块的范围 +# suppress inspection "UnusedProperty" +angular.inspection.undefined-binding.message.banana-box-binding-not-provided=由于任何适用指令均不提供,无法绑定到 [({0})] +# suppress inspection "UnusedProperty" +angular.inspection.undefined-binding.message.embedded.event-not-emitted=嵌入式模板上的任何适用指令均不发出事件 {0} +angular.inspection.undefined-binding.message.embedded.no-directive-matched=特性 {0} 上没有匹配的指令 +angular.inspection.undefined-binding.message.embedded.property-not-provided=嵌入式模板上的任何适用指令均不提供属性 {0} +# suppress inspection "UnusedProperty" +angular.inspection.undefined-binding.message.event-not-emitted=任何适用指令或 {1} 元素均不发出事件 {0} +# suppress inspection "UnusedProperty" +angular.inspection.undefined-binding.message.property-not-provided=任何适用指令或 {1} 元素均不提供属性 {0} +# suppress inspection "UnusedProperty" +angular.inspection.undefined-binding.message.unknown-attribute=此处不允许使用特性 {0} +angular.inspection.undefined-binding.name=未定义的绑定 +angular.inspection.undefined-export.message=无法从 {1} 导出 {0},因为其中既未声明也未导入 +angular.inspection.undefined-export.name=未定义从 Angular 模块导出 +angular.inspection.undefined-tag.message.out-of-scope=匹配 {0} 元素的组件或指令超出了当前 Angular 模块的范围 +angular.inspection.undefined-tag.name=未定义的标记 +angular.inspection.unresolved-pipe.message=未解析的管道 {0} +angular.inspection.wrong-entity-type.message.not-a-module=类 {0} 不是 Angular 模块 +angular.inspection.wrong-entity-type.message.not-declarable=类 {0} 既不是 Angular 组件,也不是指令或管道 +angular.inspection.wrong-entity-type.message.not-entity=类 {0} 既不是 Angular 模块,也不是组件、指令或管道 +angular.inspection.wrong-entity-type.name=导入或声明的符号无效 + +angular.notify.cli.required-package-not-installed=未安装所需软件包 '@angular/cli'。 + +angular.parse.expression.assignment-in-binding=绑定表达式不能包含赋值 +angular.parse.expression.chained-expression-in-binding=绑定表达式不能包含链式表达式 +angular.parse.expression.expected-identifier-keyword-or-string=应为标识符、关键字或字符串 +angular.parse.expression.expected-identifier-or-keyword=应为标识符或关键字 +angular.parse.expression.pipe-in-action=操作表达式不能包含管道 +angular.parse.expression.pipe-in-host-binding=主机绑定表达式不能包含管道 +angular.parse.expression.unexpected-token=意外的标记 ''{0}'' +angular.parse.selector.multiple-not=:not 中的多个选择器不受支持 +angular.parse.selector.nested-not=选择器中不允许嵌套 :not +angular.parse.template.animation-trigger-missing-phase-value=动画触发器输出事件 (@{0}) 缺少其阶段值名称(当前支持 ''start'' 或 ''done'') +angular.parse.template.animation-trigger-wrong-output-phase=不支持为 ''@{1}'' 提供的动画输出阶段值 ''{0}'' (使用 ''start'' 或 ''done'') +angular.parse.template.invalid-icu-message-expected-comma=ICU 消息无效。应为 ','。 +angular.parse.template.invalid-icu-message-expected-left-brace=ICU 消息无效。缺少 '{'。 +angular.parse.template.invalid-icu-message-missing-case-value=ICU 消息无效。缺少 case 值。 +angular.parse.template.invalid-icu-message-missing-right-brace=ICU 消息无效。缺少 '}'。 +angular.parse.template.let-dash-not-allowed-in-name=变量名称中不允许使用 '-' +angular.parse.template.let-only-on-ng-template=仅在 元素上支持 'let-' +angular.parse.template.ref-var-dash-not-allowed-in-name=引用名称中不允许使用 '-' +angular.parse.template.unterminated-expansion-form=未终止的扩展形式 +angular.parse.template.unterminated-expansion-form-critical=未终止的扩展形式。如果您未转义 '{',请使用 '{{ "{" }}' 将其转义。 +angular.parse.template.unterminated-interpolation=未终止的插值 + +angular.quickfix.decorator.add-property.family=添加属性 +angular.quickfix.decorator.add-property.name=添加 ''{0}'' 属性 +angular.quickfix.decorator.remove-property.family=移除属性 +angular.quickfix.decorator.remove-property.name=移除 ''{0}'' 属性 +angular.quickfix.json.ng-add.error.cant-run=无法运行 'ng add' +angular.quickfix.json.ng-add.family=运行 'ng add' +angular.quickfix.json.ng-add.name.reinstall=通过 ''ng add {0}'' 重新安装 +angular.quickfix.json.ng-add.name.run=运行 ''ng add {0}'' +angular.quickfix.ngmodule.declare.family=向模块添加声明 +angular.quickfix.ngmodule.declare.name=在 {1} 中声明 {0} +angular.quickfix.ngmodule.declare.name.choice=在 Angular 模块中声明 {0}… +angular.quickfix.ngmodule.declare.select.module=在 Angular 模块中声明 {0} +angular.quickfix.ngmodule.declare.select.declarable=要声明的 {0} +angular.quickfix.ngmodule.export.family=从模块导出实体 +angular.quickfix.ngmodule.export.name=导出 {0} +angular.quickfix.ngmodule.export.select.declarable=要导出的 {0} +angular.quickfix.ngmodule.import.family=导入 Angular 模块 +angular.quickfix.ngmodule.import.name=导入 {0} +angular.quickfix.ngmodule.import.name.choice=导入 Angular 模块… +angular.quickfix.ngmodule.import.select.module=要导入的 Angular 模块 +angular.quickfix.template.add-attribute-value.family=添加特性值 +angular.quickfix.template.add-attribute-value.name=添加特性值 +angular.quickfix.template.bind-to-event.family=绑定到事件 +angular.quickfix.template.bind-to-event.name=绑定到事件({0}) +angular.quickfix.template.bind-to-property.family=绑定到属性 +angular.quickfix.template.bind-to-property.name=绑定到属性 [{0}] +angular.quickfix.template.create-attribute.family=创建特性 +angular.quickfix.template.create-attribute.name=创建 ''{0}'' 特性 +angular.quickfix.template.remove-attribute-value.family=移除特性值 +angular.quickfix.template.remove-attribute-value.name=移除特性值 +angular.quickfix.template.remove-tag-content.family=移除标记内容 +angular.quickfix.template.remove-tag-content.name=移除内容 +angular.quickfix.template.rename-attribute.family=重命名特性 +angular.quickfix.template.rename-attribute.name=将特性重命名为 ''{0}'' +angular.refactor.extractComponent.task=提取组件 +angular.refactor.extractComponent.dialog=提取组件 +angular.refactor.extractComponent.dialog.name=名称: +angular.refactor.extractComponent.unsupported-multiple-carets=请使用单文本光标 +angular.refactor.extractComponent.unsupported-selection=请选择整个元素 +angular.refactor.extractComponent.unsupported-ng-content=不支持元素 ng-content +angular.refactor.extractComponent.unsupported-i18n=不支持 I18n 语法 +angular.refactor.extractComponent.animations=不支持动画 +angular.refactor.extractComponent.cli-error=无法使用 Angular CLI 创建组件 +angular.refactor.extractComponent.unexpected-cli-output=Angular CLI 意外输出 +angular.refactor.extractComponent.after-generator-error=文件修改过程中出错 + + +angular.search-scope.template=模板 + +angular.suppress.for-expression=对表达式禁止 + +action.angularCliGenerate.text=Angular 原理图… +action.angularCliGenerate.title=生成 {0} +action.angularCliAdd.text=Angular 依赖项… +action.Angular2ExtractComponentAction.text=提取组件… + +# suppress inspection "UnusedProperty" +description.angularCliGenerate.description=从 Angular 原理图生成新代码 +# suppress inspection "UnusedProperty" +description.angularCliAdd.description=添加新的依赖项并执行关联的 'ng-add' 原理图 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/AngularJSBundle.properties b/original-plugin-raw/zh/messages/AngularJSBundle.properties new file mode 100644 index 000000000..7b8c9fbdf --- /dev/null +++ b/original-plugin-raw/zh/messages/AngularJSBundle.properties @@ -0,0 +1,52 @@ +angularjs.completion.type.default.selection.keyword=默认选择关键字 +angularjs.completion.type.message.format.extension=消息格式扩展 +angularjs.completion.type.plural.category=复数类别 + +angularjs.inspection.expected.integer.after.equals== 后面应为整数值 +angularjs.inspection.expected.plural.category=应为复数类别 + +angularjs.new.project.description=此项目是典型 AngularJS Web 应用的应用程序框架。
      请记得运行
      npm install
      安装依赖项 +angularjs.new.project.name=AngularJS + +angularjs.parser.message.duplicate.selection.keyword=重复的选择关键字 +angularjs.parser.message.expected.double.lbrace=应为 {{ +angularjs.parser.message.expected.double.rbrace=应为 }} +angularjs.parser.message.expected.filter=应为筛选器 +angularjs.parser.message.expected.integer.value=应为整数值 +angularjs.parser.message.expected.message.in.brace.delimiters={} 分隔符中应为消息 +angularjs.parser.message.expected.offset.option=应为偏移选项值 +angularjs.parser.message.expected.selection.keyword=应为选择关键字 +angularjs.parser.message.missing.or.unknown.message.format.extension=消息格式扩展名缺失或未知 +angularjs.parser.message.missing.required.selection.keyword=缺少必需框架关键字 ''{0}'' + +angularjs.symbol.directive=指令 + +angularjs.ui.router.diagram.provider.name=AngularJS ui-router 状态和视图 +angularjs.ui.router.diagram.action.edit.source.name=跳转到… +angularjs.ui.router.diagram.action.edit.source.description=跳转到… +angularjs.ui.router.diagram.action.new.diagram.name=显示 AngularJS ui-router 状态图 +angularjs.ui.router.diagram.action.new.diagram.description=显示 AngularJS ui-router 状态图 +angularjs.ui.router.diagram.action.new.diagram.info.no.router.states.found=找不到 router 状态。 +angularjs.ui.router.diagram.action.new.diagram.progress=正在构建 {0} 图 +angularjs.ui.router.diagram.action.new.diagram.select.main.file=选择主模板文件 +angularjs.ui.router.diagram.edge.provides=提供 +angularjs.ui.router.diagram.edge.smth.populates.smth={0} 填充 {1} +angularjs.ui.router.diagram.edge.smth.provides={0} 提供 +angularjs.ui.router.diagram.error.cant.find.state.definition=无法找到状态定义 +angularjs.ui.router.diagram.error.cant.find.template.file=无法找到模板文件 +angularjs.ui.router.diagram.node.name.local=本地 +angularjs.ui.router.diagram.node.tooltip.errors={0, plural, one {错误} other {错误}} +angularjs.ui.router.diagram.node.tooltip.warnings={0, plural, one {警告} other {警告}} +angularjs.ui.router.diagram.note.has.embedded.template.definition=具有嵌入式模板定义。 +angularjs.ui.router.diagram.warning.abstract.state=无法实例化 abstract 状态,因此没有必要为其定义视图。 +angularjs.ui.router.diagram.warning.views.are.defined=由于为状态定义了 'views',状态模板信息将被忽略。 + +category.name.states=状态 +category.name.views=视图 +category.name.templates=模板 +category.name.templateplaceholders=TemplatePlaceholders +category.name.topleveltemplate=TopLevelTemplate + +action.AngularJS.Show.Ui.Router.States.Diagram.Action.text=显示 AngularJS UI-Router 状态图 +filetype.angular2html.description=Angular HTML 模板 +filetype.angular2svg.description=Angular SVG 模板 diff --git a/original-plugin-raw/zh/messages/AntActionsBundle.properties b/original-plugin-raw/zh/messages/AntActionsBundle.properties new file mode 100644 index 000000000..8b8373203 --- /dev/null +++ b/original-plugin-raw/zh/messages/AntActionsBundle.properties @@ -0,0 +1,6 @@ +action.AddAntBuildFile.text=作为 A_nt 构建文件添加(_N) +action.AddAntBuildFile.description=将当前 XML 文件添加到项目的 Ant 构建文件列表 +action.RunTargetAction.text=运行 Ant 目标 +action.RunTargetAction.text.template=运行 Ant 目标 {0} +action.RunTargetAction.description=运行当前选定的 Ant 目标 +action.ActivateAntToolWindow.text=Ant \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/AntBundle.properties b/original-plugin-raw/zh/messages/AntBundle.properties new file mode 100644 index 000000000..78c341d06 --- /dev/null +++ b/original-plugin-raw/zh/messages/AntBundle.properties @@ -0,0 +1,203 @@ +ant.intention.create.target.family.name=创建目标 +ant.create.target.intention.description=创建目标 ''{0}'' +ant.target=目标 +cannot.add.build.files.from.excluded.directories.error.message=无法从已排除的目录添加构建文件\n{0} +cannot.add.build.file.dialog.title=无法添加构建文件 +build.file.properties.action.name=属性 +build.file.properties.action.description=显示 Ant 构建文件属性对话框 +ant.view.toggle.tree.text.action.name=切换树/文本模式 +ant.view.pause.output.action.name=暂停输出 +remove.build.file.action.name=移除 +rerun.ant.action.name=重新运行 +stop.ant.action.name=停止 +ant.target.name.default.target=<默认目标> +ant.verbose.show.all.messages.action.name=显示所有消息 +ant.verbose.show.all.messages.action.description=显示由 ant 构建产生的所有消息 +ant.build.tab.content.title=Ant 构建 +ant.is.active.terminate.confirmation.text=来自同一构建文件的 Ant 进程处于活动状态。要终止它吗? +starting.ant.build.dialog.title=启动 Ant 构建 +ant.process.is.active.terminate.confirmation.text=Ant 进程处于活动状态。终止 Ant 进程? +close.ant.build.messages.dialog.title=关闭 Ant 构建消息 +cannot.start.build.name.error.message=无法启动 {0} +#0 - formatted execution time as string (i.e. 2h 35m 29s), 1 - finish date (as string) +build.finished.status.ant.build.aborted=Ant 构建在 {0} 内于 {1} 中止 +#0 - formatted execution time as string (i.e. 2h 35m 29s), 1 - finish date (as string) +build.finished.status.ant.build.completed.successfully=Ant 构建在 {0} 内于 {1} 成功完成 +#0 - warnings count, 1 - formatted execution time as string (i.e. 2h 35m 29s), 2 - finish date (as string) +build.finished.status.ant.build.completed.with.warnings=Ant 构建在 {1} 内于 {2} 完成,并且{0, choice, 0#没有警告|1#有 1 个警告|2#有 {0} 个警告} +#0 - errors count, 1 - warnings count, 2 - formatted execution time as string (i.e. 2h 35m 29s), 3 - finish date (as string) +build.finished.status.ant.build.completed.with.errors.warnings=Ant 构建在 {2} 内于 {3} 完成,{0, choice, 0#没有错误|1#有1 个错误|2#有 {0} 个错误}且{1, choice, 0#没有警告|1#有 1 个警告|2#有 {1} 个警告} +project.jdk.not.specified.error.message=未指定项目 JDK +jdk.with.name.not.configured.error.message=未配置运行此 Ant 目标所需的 JDK ({0})。请在“项目结构”对话框中更新您的设置。 +jdk.with.name.bad.configured.error.message=运行此 Ant 目标所需的 JDK ({0})配置错误。请在“项目结构”对话框中更新您的设置。 +ant.installation.not.configured.error.message=未配置 Ant 安装。请签出 Ant 构建文件属性 +ant.build.progress.dialog.title=Ant 构建进程 +ant.build.local.history.label=正在运行 Ant: ''{0}'' +run.ant.error.dialog.title=运行 Ant +cant.run.ant.error.dialog.title=无法运行 Ant +could.not.start.process.error.dialog.title=无法启动进程 +ant.build.started.status.message=Ant 构建已开始 +canceled.by.user.error.message=由用户取消 +user.inout.request.ant.build.input.dialog.title=Ant 构建输入 +ant.build.message.node.prefix.text=构建: +ant.target.message.node.prefix.text=目标: +ant.task.message.node.prefix.text=任务: +target.tag.name.status.text=目标: {0} +executing.task.tag.value.status.text=正在执行任务: {0} +ant.execution.next.error.warning.action.name=下一个错误/警告 +ant.execution.previous.error.warning.action.name=上一个错误/警告 +ant.explorer.expand.all.nodes.action.description=展开所有构建文件节点 +ant.explorer.collapse.all.nodes.action.description=收起所有构建文件节点 +select.ant.build.file.dialog.title=选择 Ant 构建文件 +select.ant.build.file.dialog.description=选择一个或多个要添加到列表中的 build.xml 文件 +cannot.add.ant.files.dialog.title=无法添加文件 +remove.the.reference.to.file.confirmation.text=要移除对 {0} 的引用吗? +dialog.title.confirm.remove=确认移除 +ant.explorer.execute.on.action.group.name=执行于 +add.ant.file.action.name=添加 +add.ant.file.action.description=将现有 Ant 构建文件添加到列表中 +remove.ant.file.action.name=移除 +remove.ant.file.action.description=从列表中移除所选构建文件 +run.ant.file.or.target.action.name=运行 +run.ant.file.or.target.action.description=使用 Ant 运行所选构建文件或所选目标 +run.ant.build.action.name=运行构建 +run.ant.target.action.name=运行目标 +run.ant.targets.action.name=运行目标 +make.ant.runconfiguration.name=创建运行配置 +filter.ant.targets.action.name=筛选目标 +filter.ant.targets.action.description=筛选目标 +executes.before.run.debug.acton.name=运行/调试前… +ant.create.meta.target.action.name=创建元目标 +ant.create.meta.target.action.description=将所选目标另存为元目标 +remove.meta.targets.action.name=移除 +remove.meta.targets.action.description=移除所选元目标 +remove.meta.target.action.name=移除元目标 +remove.selected.build.file.action.name=移除构建文件 +remove.selected.meta.targets.action.name=移除元目标 +ant.explorer.assign.shortcut.action.name=分配快捷键… +save.meta.data.such.sequence.of.targets.already.exists.error.message=此类目标序列已存在 +save.meta.data.name.label=名称(&N): +save.meta.data.targets.label=目标: +button.move.up=上移(&U) +button.move.down=下移 (&D) +cant.add.file.error.message=无法添加文件 {0}: {1} +ant.unknown.version.string.presentation=未知版本 +path.to.ant.does.not.exist.error.message=路径 {0} 不存在 +lib.directory.not.found.in.ant.path.error.message=在 {0} 中未找到 lib 目录 +ant.jar.not.found.in.directory.error.message=在目录 ''{0}'' 中未找到 ant.jar +ant.jar.is.directory.error.message={0} 是目录 +apache.ant.with.version.string.presentation=Apache Ant 版本 {0} +cant.read.from.ant.jar.error.message=无法从 {0} 读取 +cant.run.ant.no.ant.configured.error.message=未配置 Ant +cant.run.ant.ant.reference.is.not.configured.error.message=未配置 Ant ''{0}'' +ant.event.after.compilation.presentable.name=编译后 +ant.event.before.compilation.presentable.name=编译前 +ant.reference.bundled.ant.name=捆绑的 Ant +meta.target.build.sequence.name.display.name=构建序列 {0} +execute.target.wrong.name.format.error.message=名称格式错误: {0} +additional.classpath.tab.classpath.border=类路径(&P): +add.action.name=添加 +additional.classpath.tab.add.all.in.directory.button=添加目录中的全部(&L) +button.remove=移除(&R) +button.add=添加(&A) +ant.settings.classpath.label=类路径(&C): +ant.settings.home.label=主目录(&H): +ant.settings.name.label=名称(&N): +configure.ant.dialog.title=配置 Ant +ant.property.value.editor.insert.macro.tooltip.text=插入宏 +project.jdk.project.jdk.name.list.column.value=项目 JDK ({0}) +project.jdk.not.specified.list.column.value=项目 JDK (未指定) +build.file.properties.close.message.view.checkbox=如果没有发生错误,则关闭消息视图(&C) +build.file.properties.maximum.heap.size.label=最大堆大小(Mb)(&H): +build.file.properties.make.in.background.cjeclbox=在后台生成构建(&B) +build.file.properties.dialog.title=构建文件属性 +edit.ant.properties.name.column.name=名称 +edit.ant.properties.value.column.name=值 +edit.ant.properties.tab.display.name=属性 +edit.ant.properties.description.column.name=描述 +edit.ant.properties.filters.tab.display.name=筛选器 +edit.ant.properties.execution.tab.display.name=执行 +edit.ant.properties.additional.classpath.tab.display.name=附加类路径 +run.execution.tab.ant.command.line.label=Ant 命令行(&L): +run.execution.tab.ant.command.line.dialog.title=Ant 命令行 +run.execution.tab.run.under.jdk.label=在 JDK 下运行(&J): +run.execution.tab.run.with.ant.border=使用 Ant 运行: +run.execution.tab.set.default.button=设置默认值(&S)... +run.execution.tab.use.custom.ant.radio=使用自定义 Ant(&U): +run.execution.tab.use.project.default.ant.radio=使用项目默认 Ant(&D): +remove.action.name=移除 +ant.setup.dialog.title=Ant 设置 +ant.intention.create.property.family.name=创建属性 +#0 - property name +delete.selected.ant.configuration.confirmation.text=删除所选 Ant 配置? +delete.selected.ant.configurations.confirmation.text=删除所选 Ant 配置? +create.property.quickfix.name=创建属性 ''{0}'' +create.property.in.file.quickfix.name=在文件 ''{1}'' 中创建属性 ''{0}'' +# suppress inspection "UnusedProperty" +attribute.is.not.allowed.here=此处不允许使用特性 ''{0}'' +cannot.resolve.target=目标 ''{0}'' 未知 +cannot.resolve.refid=无法解析 ''{0}'' refid +unknown.property=属性 ''{0}'' 未知 +unknown.macro.attribute=宏特性 ''{0}'' 未知 +file.doesnt.exist=''{0}'' 不存在 +# suppress inspection "UnusedProperty" +integer.attribute.has.invalid.value=特性 ''{0}'' 应具有整数值 +ant.target.before.run.description=运行 Ant 目标 ''{0}'' +ant.target.before.run.description.empty=运行 Ant 目标 +ant.target.choser.title=选择要执行的 Ant 目标 +failed.to.load.types=无法加载类型 +using.definition.which.type.failed.to.load=使用类型加载失败的定义 +target.is.duplicated=目标 ''{0}'' 重复 +target.is.duplicated.in.imported.file=目标 ''{0}'' 在文件 ''{1}'' 中重复 +ant.inspections.display.name=Ant +inspection.ant.duplicate.targets=重复的目标 +inspection.ant.missing.properties.file=缺少属性文件 +dialog.title.register.ant.build.file=正在注册 Ant 构建文件 ''{0}''… +progress.text.register.ant.build.file=正在注册 Ant 构建文件 ''{0}''… +progress.text.loading.ant.config=正在加载 Ant 配置… +intention.configure.highlighting.family.name=配置高亮显示 +intention.configure.highlighting.text=配置高亮显示 +build.file.properties.maximum.stack.size.label=最大堆栈大小(Mb)(&S): +run.execution.tab.ant.command.line.hint=使用“-J”前缀指定 JVM 实参 +file.type.not.supported=''{0}'' 具有不支持的格式 +file.type.xml.not.supported=''{0}'' 具有不支持的 xml 格式。可能缺少 doctype。 +delete.confirmation.dialog.title=删除确认 +ant.targets.group.title=Ant目标 +message.skip.ant.target.after.compilation.errors=由于编译错误,跳过 ant 目标“{0}” +cannot.build.artifact.using.ant.target=无法构建工件 ''{0}'': ant 目标 ''{1}'' 失败,存在错误 +checkbox.run.named.ant.target=运行 Ant 目标 ''{0}'' +checkbox.run.unknown.ant.target=运行 Ant 目标<无> +progress.text.running.ant.tasks=正在运行 Ant 任务… +action.ant.build.group.text=Ant 构建组 +system.notification.title.ant.task.finished=Ant 任务已完成 +dialog.message.remove.build.files.references=要移除对 {0} 构建文件的引用吗? +configurable.hector.border.title.file.context=文件上下文 +configurable.hector.included.into=已包含到: +dialog.message.ant.configuration.not.initialized=Ant 配置仍未初始化 +dialog.message.target.not.specified=未指定目标 +dialog.title.ant.configuration.missing.parameters=缺少形参 +label.ant.run.configuration.target.name=目标名称 +label.table.name.ant.properties=Ant 属性 +column.name.ant.configuration.property.name=名称 +column.name.ant.configuration.property.value=值 +configuration.type.name.ant.target=Ant 目标 +configuration.type.description.run.ant.target=运行 Ant 目标 +dialog.message.duplicate.ant.installation.name=重复 ant 安装名称:“{0}” +ant.target.node.before.run.debug=\ (运行/调试前) +inspection.ant.resolve.inspection.display.name=Ant 引用解析问题 +action.ant.target.text=Ant 目标 +action.ant.target.action.stub.text=Ant 目标操作存根 +table.title.ant.artifact.properties.editor=属性 +checkbox.ant.artifact.properties.run=运行 +checkbox.collapse.finished.targets.in.message.view=在消息视图中收起完成的目标 +checkbox.colored.output.messages=彩色输出消息 +combobox.hector.configurable.none.text=<无> +ant.error.class.not.found=找不到类 {0} +ant.error.class.definition.not.found=找不到类定义 {0} +ant.error.unsupported.class.version=不支持的类版本 {0} +ant.cannot.add.build.file.reason.file.is.not.xml=此文件不是 xml 文件 +ant.cannot.add.build.file.reason.file.not.ant.file=此文件未识别为 Ant 文件 +ant.empty.text.1=没有添加构建文件。 +ant.empty.text.2=添加 Ant 构建文件… +ant.empty.text.help=正在将构建文件添加到项目 +add.ant.build.file=添加 Ant 构建文件 diff --git a/original-plugin-raw/zh/messages/AntJpsBundle.properties b/original-plugin-raw/zh/messages/AntJpsBundle.properties new file mode 100644 index 000000000..d75bb43f6 --- /dev/null +++ b/original-plugin-raw/zh/messages/AntJpsBundle.properties @@ -0,0 +1,4 @@ +ant.target.default.name=默认 +running.ant.target.from.file=正在运行来自 ''{1}'' 文件的 ''{0}'' Ant 目标… +target.finished.with.exit.code=目标 ''{0}'' 已在 ''{1}'' 中完成,退出代码 {2} +cannot.run.target=无法运行 ''{0}'' 目标: {1} diff --git a/original-plugin-raw/zh/messages/AopBundle.properties b/original-plugin-raw/zh/messages/AopBundle.properties new file mode 100644 index 000000000..de9ec5efc --- /dev/null +++ b/original-plugin-raw/zh/messages/AopBundle.properties @@ -0,0 +1,60 @@ +error.id.expected=应为标识符 +error.type.name.pattern.expected=应为类型名称模式 +error.method.annotation.name.expected=应为注解名称 +error.method.return.type.expected=应为方法返回类型 +error.constructor.pattern.expected=应为构造函数模式 +error.method.name.pattern.expected=应为方法名称模式 +error.field.name.pattern.expected=应为字段名称模式 +error.method.args.pattern.expected=应为方法参数模式 +error.pointcut.expression.expected=应为切入点表达式 +error.pointcut.arguments.expected=应为切入点参数 +error.0.expected=应为 {0} +error.0.or.1.expected=应为 {0} 或 {1} +error.argNames.should.match={0}应与形式方法参数名匹配 +warning.argNames.should.be.defined={0} 特性未定义 + +error.cannot.resolve.pointcut=无法解析切入点 ''{0}'' +error.cannot.resolve.symbol=无法解析符号 ''{0}'' +error.cannot.resolve.parameter=无法解析形参 ''{0}'' +error.anno.expected=此处应为 @接口名称 +error.double.ellipsis.prohibited=禁止使用多个 '..' +error.throwable.expected=抛出参数的类型应为 java.lang.Throwable +error.pjp.not.allowed=只有 @Around 建议中允许将 ProceedingJoinPoint 作为第一个参数 +error.varargs.not.last=vararg 形参应为最后一个形参 +error.varargs.not.allowed.here=此处不允许使用 vararg +error.arrays.not.allowed.here=此处不允许使用数组 +error.wildcards.not.allowed.here=此处不允许使用通配符 +error.generics.not.allowed.here=此处不允许使用泛型 +error.invalid.number.of.arguments=切入点的参数数量不兼容,应为 {0} 个,实际为 {1} 个 +error.recursive.pointcut.reference=递归切入点引用 + +error.interface.expected=此处应为接口 +error.default.implementation.class.should.be.specified=应指定默认实现类 +error.non.abstract.class.implemention.0.expected=应为实现 {0} 的非 abstract 类 + +tooltip.text.navigate.to.advices=导航到 AOP 建议 +tooltip.text.navigate.to.introductions=导航到 AOP 简介 +tooltip.text.navigate.to.classes=导航到建议类 +tooltip.text.navigate.to.methods=导航到建议方法 +empty.popup.text.navigate.to.methods=此建议未建议任何方法 +empty.popup.text.navigate.to.classes=此引入不匹配任何类 + +inspection.group.display.name.aop=AOP +inspection.display.name.argNames.errors=建议参数(argNames, returning, throwing)一致性检查 +inspection.display.name.argNames.warnings=警告: 未定义 argNames +inspection.display.name.declareParents=引入(声明父级)错误 +quickfix.name.arg.names.correct=纠正 {0} 特性 +quickfix.name.arg.names.remove=移除 {0} 特性 +quickfix.name.define.attribute=定义 {0} 特性 +unbound.pointcut.parameter=未绑定的切入点形参 ''{0}'' + +pointcut.method.style.inspection=切入点方法样式 +pointcut.methods.should.have.void.return.type=切入点方法应具有 void 返回类型 +pointcut.methods.should.have.no.throws.clause=切入点方法不应具有 throws 子句 +pointcut.methods.should.have.empty.body=切入点方法应具有空体 + +around.advice.style.inspection=Around 建议样式检查 +around.advice.should.return.something=连接点返回值将丢失 +change.return.type.to.Object=将方法返回类型更改为对象 +around.advice.call.cannot.proceed=建议调用无法继续: 可能您忘记了声明 ProceedingJoinPoint 参数 +add.pjp.parameter=添加一个 ProceedingJoinPoint 参数 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/ApacheConfigBundle.properties b/original-plugin-raw/zh/messages/ApacheConfigBundle.properties new file mode 100644 index 000000000..42dddb1df --- /dev/null +++ b/original-plugin-raw/zh/messages/ApacheConfigBundle.properties @@ -0,0 +1,17 @@ +attribute.descriptor.argument=实参 +attribute.descriptor.comment=注释 +attribute.descriptor.directive.name=指令名称 +file.type.apache.config.description=Apache 配置 +configurable.apache.config=Apache 配置 +error.section.end.expected=应为部分结尾 +error.section.name.expected=应为部分名称 +error.directive.or.section.begin.expected=应为指令或部分开始 +error.section.header.end.expected=应为 > +error.argument.or.section.header.end.expected=应为实参或 > +error.argument.parse.error=参数解析错误 +error.quote.expected=应为 " + +description.title=描述 +syntax.title=语法 +module.title=模块 +context.title=上下文 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/AppCodeBundle.properties b/original-plugin-raw/zh/messages/AppCodeBundle.properties new file mode 100644 index 000000000..114262630 --- /dev/null +++ b/original-plugin-raw/zh/messages/AppCodeBundle.properties @@ -0,0 +1,557 @@ +sdk=SDK +sdk.type.name=Apple SDK + +action.xcode.order=Xcode 顺序 + +xcode.workspace.synchronizing=正在同步 Xcode 工作区 +xcode.action.synchronizeOCWorkspace=同步解析配置 +xcode.action.showBuildConsole=构建带文本的控制台… +xcode.action.restoreFileLayoutForReference=从引用恢复文件布局 +oc.workspace.synchronizing=正在同步解析配置 +oc.workspace.synchronizing.processingConfigurations=正在处理配置 +oc.workspace.synchronizing.gettingCompilerInfo=正在提取编译器信息 + +build.showBuildFolder=在“访达”中显示构建文件夹 +build.filterMessages=筛选消息 +build.filterMessages.shortName=筛选 +build.showAllMessages=所有消息 +build.showAllMessages.description=显示所有构建消息 +build.showAllIssues=所有问题 +build.showAllIssues.description=仅显示错误和警告构建消息 +build.showErrorsOnly=仅错误 +build.showErrorsOnly.description=仅显示错误构建消息 +build.cleanBuildFolder=清理构建文件夹 +build.configuration.destination.mac=Mac {0} 位 +build.configuration.extension.target=扩展目标 +build.configuration.extension.containerAppTarget=容器应用目标 + +build.configuration.fixSdk=为目标 ''{1}'' 将 SDK 设为 ''{0}'' + +build.starting=正在启动… + +build.building.multipleArchsWarning=正在为 {0} {0,choice, 1#架构|2#架构}构建。\n\ +双击以设置 ''{1}'',从而加快编译速度。 + +build.phase.build=使用 ''{5}'' sdk 为{3,choice, 1#架构|2#架构} ''{4}'' {0}目标 ''{1}''{2} +from.0.with.config.1=从包含配置 ''{1}'' 的 ''{0}'' +build.phase.build.build=正在构建 +build.phase.build.clean=清理 +build.phase.clean=正在清理… +build.running.script.0=正在运行脚本 ''{0}'' + +build.phase.checkDependencies=正在检查依赖项… +build.phase.processInfoPlistFiles=正在处理 Info.Plist 文件… +build.phase.createProductStructure=正在创建产品结构… +build.phase.writeAuxFiles=正在写入辅助文件… +build.phase.prepare.build=正在准备构建… + +build.phase.processPCH=正在处理预编译头… +build.phase.lex=正在处理 lex 文件… +build.phase.compile=正在编译… +build.phase.compile.includedFrom=包含自: +build.phase.swiftCodeGen=正在生成 swift 代码… +build.phase.mergeSwiftModule=正在合并 swift 模块… +build.phase.analyzeShallow=正在分析… +build.phase.link=正在链接… +build.phase.link.undefinedSymbol=未定义的符号 ''{0}'' +build.phase.link.referencedFrom=引用自: +build.phase.link.duplicateSymbol=重复的符号 ''{0}'' +build.phase.link.foundIn=发现于: +build.phase.libtool=正在创建库… +build.phase.generateDebugSymbols=正在生成调试符号… +build.phase.analyze=正在分析… + +build.phase.copy=正在复制… +build.phase.copyPBX=正在复制项目文件… +build.phase.copyPlistFile=正在复制 Plist 文件… +build.phase.copyTiffFile=正在复制 tiff 文件… +build.phase.copyPNGFile=正在复制 png 文件… +build.phase.copyHeader=正在复制头… +build.phase.copyResource=正在复制资源… +build.phase.copyStringsFile=正在复制字符串资源… +build.phase.copySwiftLib=正在复制 swift 库… + +build.phase.compileStoryboards=正在编译情节提要… +build.phase.compileDataModels=正在编译数据模型… +build.phase.compileUIResources=正在编译 UI 资源… +build.phase.compileAssets=正在编译资产… +build.phase.stripNIB=正在剥离 NIB 文件… +build.phase.linkStoryboards=正在链接情节提要… + +build.phase.executeScript=正在运行脚本… +build.phase.createUniversalBinary=正在创建通用二进制文件… +build.phase.processProductPackaging=正在处理产品打包… +build.phase.signing=正在签署应用程序… +build.phase.createSymLinks=正在创建符号链接… +build.phase.touch=正在触摸文件… + +debug.remoteAttach.sessionTitle=在 {2} 上附加到 {0} ({1,number,#}) +debug.remoteAttach.remoteHostGroupTitle=iOS 设备 + +run.configuration.extension.name=应用程序扩展 +run.configuration.extension.description=应用程序扩展运行配置 +run.configuration.extension.chooseHostApp=选择主机应用程序 +run.configuration.extension.failedToObtainAppsList=无法获取已安装的应用程序列表 +run.configuration.extension.hostAppCantBeLaunched=无法启动扩展的主机应用程序进行调试 +run.configuration.extension.loadingApplications=正在加载应用程序 +run.extension.failedToStartExtensionHostAppSession=无法启动扩展主机应用会话 +run.extension.failedToStartExtensionDebugSession=无法为捆绑包 ${0} 启动扩展调试会话 + +run.configuration.options.tab.title=选项 +run.configuration.options.makeActive=启动后使应用程序活动 +run.configuration.options.simulateLocation.coreLocation=核心位置 +run.configuration.options.simulateLocation.defaultLocation=默认位置: +run.configuration.options.selectLanguage=应用程序语言: +run.configuration.options.selectRegion=应用程序区域: +run.configuration.location.allowSimulation=允许位置模拟 +run.locationSimulation.dontSimulateLocation=不模拟位置 +run.locationSimulation.simulateLocation=模拟位置 +run.locationSimulation.simulateLocationDescription=选择要模拟的位置 +run.destinationNotSelected=未选择目标 +run.destinationNotSupported=无法在 ''{0}'' 上运行 +run.noProductForTarget=目标 ''{0}'' 没有产品 +run.productFileNotFoundForTarget=在 {1} 下找不到目标 ''{0}'' 的产品 +run.productFileNotFound=在 {0} 下找不到产品 +run.noExecutableForTarget=目标 ''{0}'' 没有可执行文件 +run.executableFileNotFoundForTarget=在 {1} 下找不到目标 ''{0}'' 的可执行文件 +run.executableFileNotFound=在 {0} 下找不到可执行文件 +run.deviceDoesNotSupportLogicTests=逻辑测试无法在设备上运行,请选择 {0} 模拟器运行 +run.deviceOrSimulatorAlreadyRunning={0} 已在运行应用程序。\n\ +是否要停止现有应用程序并{1}新的应用程序? +run.simulatorAlreadyRunning.error={0} 已在运行应用程序。 +run.simulatorAlreadyRunning.stopExisting=停止会话和{0} +run.simulatorAlreadyRunning.stopExisting.checkbox=自动停止有效模拟器和设备会话 +run.cannotStartSimulator.incorrectDestination=无法启动 {0} 模拟器,选择了错误的目标 +run.deviceNotSelected=未选择 {0} 设备 + +run.profile=分析 +run.profile.selected.configuration=配置文件选择的配置 + +project.settings=项目设置… +project.openInXcode=在 Xcode 中打开项目 +project.error.cannotOpenProjectFile=无法打开项目文件 + +scopes.project.and.libraries=项目和框架 +scopes.libraries=框架 + +project.wizard.copyright=版权所有 © {0} {1}. 保留所有权利。 + +create.fromTemplate.title=来自 Xcode 模板的文件… +create.fromTemplate.description=使用 Xcode 文件模板创建新文件 + +inspections.fileChecks.unsupportedDeploymentTarget={1} SDK 不支持部署目标 {0},代码洞察功能可能无法正常工作。 + +refactoring.renameGroup.action.name=重命名组 +refactoring.renameGroup.cannot.rename.project.group=无法重命名项目的主组 +refactoring.renameGroup.cannot.rename.target.group=无法重命名目标的主组 +refactoring.cannotRename=无法重命名 + +xctest.configuration.name=XCTest +xctest.configuration.description=XCTest、Kiwi、Quick 和其他基于 XCTest 的测试框架 +prebuild.progress=正在生成 Xcode 文件… +xcode.filesOutsideProject=某些文件位于 Xcode 项目之外。
      您以后可以更改项目根忽略。 + +cache.downloader.offer.to.download.message=当前 Xcode {0} 的 SDK 缓存不可用。这将显著增加初始编制索引时间。要下载缓存 ({1}) 吗? +configurable.OCExternalDocConfigurable.display.name=外部文档 +quickstart.guide=快速入门指南 +index.all.architectures=为所有架构编制索引 +choose.group.and.targets.dialog.group.label=组(&G): +message.text.error=错误 +group.s.directory.not.found.0=未找到组目录{0}。 +destination=目标 +folders=文件夹 +create.folder.references.for.folders=为文件夹创建文件夹引用 +create.groups.for.folders=为文件夹创建组 +copy.file.0.to.the.destination.group.s.folder=将 {0,choice,1#文件|1<文件}复制到目标组的文件夹 +select.frameworks.and.libraries=选择框架和库 +can.t.link.the.project.0.to.itself=无法将项目 ''{0}'' 链接到自身 +manage.targets=管理目标 +frameworks.chooser.add.button=添加 +frameworks.chooser.other=其他… +add.to.xcode.project=添加到 Xcode 项目… +exclude.from.xcode.project=从 Xcode 项目中排除… +group.is.not.selected=未选择组 +some.targets.do.not.belong.to.the.group.s.project=某些目标不属于该组的项目 +folder.name=文件夹名称 +group.already.exists=组已存在 +trying.to.move.item.to.one.of.its.children.or.itself=试图将项移至其子项之一或其自身 +create.group=创建组 +enter.group.name=输入组名称 +new.group=新组 +create.folder=创建文件夹 +rename.group.0.to=将组 ''{0}'' 重命名为: +group.with.the.name.0.already.exists=名为 ''{0}'' 的组已存在 +targets=目标(&T): +cocoapods.pod.is.not.installed=未安装 Pod +cocoapods.newer.version.is.available=''{0} {1}'' 可用 +cocoapods.inspection.failed.0=检查失败: {0} +cocoapods.version.is.0=CocoaPods 版本为 {0} +cocoapods.update.cocoapods=更新 CocoaPods +cocoapods.gem.is.not.installed=CocoaPods gem 未安装。 +cocoapods.please.select.ruby.sdk.to.use.with.cocoapods=请选择将与 CocoaPods 一同使用的 Ruby SDK。 +cocoapods.install.cocoapods=安装 CocoaPods +cocoapods.loading.pod.list=正在加载 pod 列表… +cocoapods.no.pods.available=无可用 pod +cocoapods.updating.repositories=正在更新仓库… +cocoapods.update.repositories=更新仓库 +cocoapods.select.ruby.sdk=选择 Ruby SDK… +run.profiler.name=分析 +analyze.crash.report=分析崩溃报告 +analyze.crash.report.title=分析崩溃报告… +symbolication.process.title=符号化… +filetype.xcode.configuration.description=Xcode 配置说明 +filetype.xcode.project.and.workspace.description=Xcode 项目和工作区 +filetype.xcode.workspace.description=Xcode 工作区 +filetype.xcode.project.description=Xcode 项目 +filetype.xcode.asset.catalog.description=Xcode 资产目录 +clang.analyzer.issues=Clang 分析器问题 +clang.compiler.issues=Clang 编译器问题 +clang.issues=Clang 问题 +quickfixes.modify.0=修改 {0} +quickfixes.modify.search.paths=修改搜索路径 +project.settings.no.projects=没有项目 +project.settings.no.targets=无目标 +project.settings.remove.target=移除目标 +project.settings.no.target.selected=未选择目标 +project.settings.use.drag.n.drop.to.add=使用拖放以添加 +project.settings.no.0=没有 {0} +project.settings.invalid.reference=<无效> +project.settings.phase.caption={0} ({1,choice,0#0 个项|1#1 个项|1<{1,number,integer} 个项}) +project.settings.remove.items=移除项 +project.settings.build.phases=构建阶段 +project.settings.general=常规 +project.settings.build.settings=构建设置 +project.settings.add.target=添加目标 +project.settings.shared.settings=共享设置 +project.settings.targets=目标 +project.settings.projects=项目 +project.view.swiftPackage.dependencies=Swift 软件包依赖项 +project.view.remove.frameworks=移除框架 +project.view.remove.linked.projects=移除链接的项目 +project.view.are.you.sure.you.want.to.detach.selected.frameworks=确定要分离所选{0,choice,1#框架|1<框架}吗? +project.view.are.you.sure.you.want.to.detach.selected.linked.projects=确定要分离所选的链接{0,choice,1#项目|1<项目}吗? +remove.references=移除{0,choice,1#引用|1<引用} +project.view.files.do.not.exist=文件不存在。 +project.view.some.files.are.not.under.the.project.root.folder.n=某些文件不在项目根文件夹下。 +project.view.some.files.can.t.be.deleted=某些文件无法删除。 +project.view.some.files.are.under.folder.references.and.can.t.be.deleted=某些文件位于文件夹引用下,无法删除。 +project.view.do.you.want.to.remove.selected.references.from.the.project=要从项目中移除所选{0,choice,1#引用|1<引用}吗? +project.view.no.projects.in.workspace=工作区中没有项目 +project.wizard.cannot.create.file=无法创建文件 +project.wizard.choose.folder.title=选择文件夹 +project.wizard.choose.folder=选择文件夹 +project.wizard.group=组 +project.wizard.file.already.exists.please.specify.another.file.name=文件已经存在。请指定其他文件名。 +project.wizard.create.a.new.xcode.project=创建新的 Xcode 项目 +project.wizard.associated.target.none=无 +project.wizard.directory.0.already.exists.and.not.empty.n.nplease.choose.another.directory=目录 ''{0}'' 已存在并且不为空。\n\ +\n\ +请选择其他目录。 +project.wizard.unable.to.create.project.directory.at.0.br.please.choose.another.directory=无法在 ''{0}'' 下创建项目目录。
      请选择其他目录。 +project.wizard.cannot.create.0=无法创建 {0} +project.wizard.project=项目 +project.wizard.target=目标 +project.wizard.create.new.0=创建新 {0} +project.wizard.please.select.template=选择模板 +project.wizard.project.to.add.target=要添加新目标的项目 +project.wizard.category.multiplatform=Multiplatform +project.wizard.category.other=其他 + +xcode.workspace.file.found=找到了 Xcode 工作区文件 +xcode.workspace.other.found=已找到其他 Xcode 工作区 +xcode.project.other.found=已找到其他 Xcode 项目 +reloading.xcode.projects=正在重新加载 Xcode 项目 +xcassets.detach=分离 +xcassets.add.specs=添加规范 +xcassets.enter.set.name=输入集名称 +xcassets.create.set=创建集 +filetype.xcassets.catalog.contents.description=资产目录内容 +filetype.xcassets.catalog.contents.display.name=资产目录内容 +xcassets.assign.image.to.asset.catalog=将图像分配到资产目录 +xcode.schemes.unable.to.import.the.scheme=无法导入方案 +xcode.schemes.import=导入 +xcode.schemes.select.an.xcode.theme.file.to.import.0=选择一个要导入的 Xcode 主题文件(.{0}) +xcode.schemes.import.from.xcode=从 Xcode 导入… +xcode.schemes.select.scheme=选择方案 +execution.simulate.location.failed=模拟位置失败 +execution.input.coordinates=输入坐标 +execution.latitude.label=纬度: +execution.longitude.label=经度: +execution.invalid.latitude.value=纬度值无效 +execution.invalid.longitude.value=经度值无效 +intentions.change.deployment.target.to.0=更改为 {0} +intentions.open.project.settings=打开项目设置 +intentions.index.0.sdks=编制 {0} SDK 索引 +add.files=添加文件 +new.folder.reference=新建文件夹引用 +select.targets=选择目标 +project.settings.no.values=无值 +project.settings.multiple.values= +project.wizard.organization=组织 +project.wizard.class.prefix=类前缀 +project.settings.column.name.name=名称 +filetype.xcode.image.set.asset.description=Xcode 图像集资产 + +filetype.metal.language.description=Metal 着色语言 + +swiftPackage.warning.notSupported=不支持 Swift 软件包 +swiftPackage.warning.notSupported.description=此项目包含 Swift 软件包。
      所选 Xcode 版本不支持这些软件包。
      代码洞察功能可能无法正常工作。
      考虑切换到较新的 Xcode 版本。 +action.files.text=文件… +action.add.files.to.xcode.project.description=将文件添加到 Xcode 项目 +command.name.add.files.to.xcode.project=将文件添加到 Xcode 项目 +action.frameworks.libraries.text=框架和库… +action.add.frameworks.libraries.to.xcode.project.description=将框架和库添加到 Xcode 项目 +action.linked.project.text=已链接的项目… +action.add.linked.project.to.xcode.project.description=将已链接的项目添加到 Xcode 项目 +dialog.message.project.already.linked.to=项目 ''{0}'' 已链接到 ''{1}'' +dialog.title.error.adding.linked.project=添加已链接的项目时出错 +action.manage.targets.text=管理目标… +action.change.target.membership.file.description=更改文件的目标成员资格 +action.exclude.from.xcode.project.text=从 Xcode 项目中排除… +action.exclude.file.from.xcode.project.description=将文件从 Xcode 项目中排除 +dialog.message.are.you.sure.you.want.to.exclude.selected.items.from.project=确定要从项目中排除{0,choice,1#所选项|2#所选项}吗? +dialog.title.exclude.items=排除项 +dialog.message.folder.name.invalid=文件夹名称无效 +action.folder.reference.text=文件夹引用 +action.create.new.folder.with.folder.reference.description=创建包含文件夹引用的新文件夹 +action.group.text=组 +action.create.new.group.description=新建组 +action.group.from.selection.text=按选择分组 +action.create.new.group.from.selected.files.description=从所选文件创建新组 +all.project.folders.and.idea.directory.contents=所有项目文件夹和 .idea 目录内容 +all.project.folders=所有项目文件夹 +inspection.message.installed.version.doesn.t.satisfy.version.requirements=安装的版本 ''{0}'' 不满足版本要求 ''{1}'' +intention.name.try.to.install=尝试安装 +intention.name.install=安装 +install.pods=安装 pod +pods.are.not.installed=未安装 Pod +podfile.lock.not.found=找不到 Podfile.lock +install.new.pods=安装新 pod +some.of.the.pods.are.not.installed=未安装部分 pod +uninstall.old.pods=卸载旧 pod +some.of.the.installed.pods.are.not.required.and.can.be.removed=部分已安装 pod 并非必要,可以移除 +installed.pods.differ.from.those.described.in.podfile.lock=安装的 pod 与 Podfile.lock 中描述的 pod 不同 +install.pods.question=安装 pod? +link.label.current.version.ruby.not.selected.cocoapods.actions.analyses.will.not.work=当前版本的 Ruby 未被选中。CocoaPods 操作和分析将无法运行。 +link.label.configure.ruby=配置 Ruby +link.label.cocoapods.gem.not.installed=CocoaPods gem 未安装 +link.label.install.gem=安装 gem +updating.cocoapods=正在更新 CocoaPods… +installing.cocoapods=正在安装 CocoaPods… +cocoa.pods.versions=版本 +cocoa.pods.authors={0,choice,1#作者|2#作者} +cocoa.pods.homepage=主页 +cocoa.pods.summary=总结 +cocoa.pods.platforms=平台 +cocoa.pods.name=名称 +notification.content.finished=''{0}'' 已完成 +create.cocoapods.podfile=创建 CocoaPods Podfile +cocoa.pods.install=安装 +edit.podfile=编辑 Podfile +install.cocoapods.gem=安装 CocoaPods Gem +popup.title.can.t.update.repositories=无法更新仓库 +dialog.title.can.t.update.cocoapods=无法更新 CocoaPods +dialog.title.can.t.install.cocoapods=无法安装 CocoaPods +popup.title.can.t.load.pod.list=无法加载 Pod 列表 +cocoa.pods.update=更新 +notification.content.can.t.find.workspace.at=在 {0} 找不到工作区 +dialog.message.unable.to.create.temporary.file=无法创建临时文件 +dialog.message.cannot.sign=无法签署 {0} +dialog.message.cannot.read.certificate.fingerprint.using.openssl=无法使用 OpenSSL 读取证书指纹 +notification.title.cannot.save.schemes=无法保存{0,choice,1#方案|2#方案} +dialog.message.undefined.target.application.for.test.configuration=测试配置的未定义目标应用程序 +dialog.message.incorrect.test.configuration=测试配置错误 +dialog.message.cannot.create.instruments.script.in=无法在 {0} 中创建检测脚本 +dialog.message.cannot.start.instruments=无法开始检测 +tab.title.crash.report=崩溃报告 +dialog.message.only.ios.devices.supported=仅支持 iOS 设备 +execution.app.extension.label.today.widget=今日微件 +dialog.message.invalid.location.scenario.reference=位置方案引用无效 +popup.content.returned.with.exit.code.stderr={0} 已返回,退出代码 {1},stderr:\n\ +{2} +inspection.message.unknown.pod.name=未知 pod 名称 +inspection.message.no.known.version.this.pod.satisfies.specified.version.requirements=此 pod 的已知版本均未满足指定版本要求 +intention.name.add.to=将 {0} 添加到 {1} +do.you.want.to.add.0.to.1=要将 {0} 添加到 {1} 吗? +cannot.set.a.breakpoint=无法设置断点 +file.unknown=<未知> +unknown.upper.case=未知 +notification.content.failed.to.load.location.simulation.scenario.from.br=无法从以下位置加载位置模拟方案:
      {0} +dialog.message.scheme.not.specified.for.build.configuration=没有为构建配置指定方案: {0} +xcode.settings.other=其他… +label.developer.frameworks=开发者框架 +dialog.message.process.timed.out=进程超时 +dialog.message.clang.returned.empty.version=Clang 返回空版本 +dialog.message.bad.format.clang.version=Clang 版本格式错误: {0} +some.targets.do.not.have.their.base.sdk.configured.properly=部分目标没有正确配置其基 SDK。这可能导致代码分析错误。请为这些目标配置基 SDK,清除缓存并重新启动 IDE。 +configure.0=配置 ''{0}'' +0.is.found.in.the.project.directory=在项目目录中找到 {0}。 +switching.to.a.workspace.might.improve.your.workflow.with.multiple.projects.and.projects.with.dependencies=切换到工作区可能会改善具有多个项目和依赖关系项目的工作流。 +recommended.in.case.you.are.using.cocoapods=建议(如果您使用 CocoaPods)。 +reload.project.as.workspace=将项目重新加载为工作区 +don.t.show.it.again=不再显示 +xcode.workspace.open.other.instead=而是打开其他工作区: +xcode.project.open.other.instead=而是打开其他项目: +notification.title.error.writing.file=写入文件时出错 +notification.content.project.files.cannot.be.saved=无法保存项目文件:{0} +notification.content.project.file.cannot.be.saved=无法保存项目文件:{0} +notification.title.no.project.file.found=找不到项目文件 +cannot.open.project.file.with.error=无法打开项目文件,出错: +text.set.name.can.t.be.empty=集合名称不能为空 +text.set.name.invalid=集名称无效 +action.image.set.text=映像集 +dialog.title.new.os.x.icon=新 OS X 图标 +action.launch.image.text=启动映像 +dialog.title.new.launch.image=新建启动映像 +action.app.icon.text=应用图标 +dialog.title.new.app.icon=新应用图标 +dialog.title.new.image.set=新建映像集 +dialog.new.file.from.xcode.template=从 Xcode 模板创建文件 +action.os.x.icon.text=OS X 图标 +unassigned=未分配 +intention.family.name.clang.annotator=Clang 注解器 +retina.4=Retina 4 +retina.hd.4.7=Retina HD 4.7 +retina.hd.5.5=Retina HD 5.5 +38mm.2x=38mm 2x +42mm.2x=42mm 2x +1x=1x +38mm=38mm +42mm=42mm +mac=Mac +apple.watch=Apple Watch +apple.tv=Apple TV +universal=通用 +iphone=iPhone +ipad=iPad +carplay=CarPlay +iphone.spotlight.ios.5.6.settings=iPhone Spotlight (iOS 5,6) \\& 设置 +iphone.spotlight=iPhone Spotlight +iphone.app.ios.5.6=iPhone 应用(iOS 5,6) +iphone.app=iPhone 应用 +ipad.settings=iPad 设置 +ipad.spotlight=iPad Spotlight +ipad.spotlight.ios.5.6=iPad Spotlight (iOS 5,6) +ipad.app.ios.5.6=iPad 应用(iOS 5,6) +ipad.app=iPad 应用 +ipad.pro.app=iPad Pro 应用 +apple.watch.notification.center=Apple Watch 通知中心 +apple.watch.companion.settings=Apple Watch 伴侣设置 +apple.watch.home.screen=Apple Watch 主界面 +apple.watch.long.look=Apple Watch Long Look +apple.watch.short.look=Apple Watch Short Look +without.status.bar=无状态栏 +ios.5.6=(iOS 5,6) +xcode=Xcode +xcode.target.unknown=未知 + +xcode.template.wizard.file.name=文件名 +xcode.template.wizard.location=位置 +xcode.template.wizard.file.name.with.extension=带扩展名的文件名 +xcode.template.wizard.file.name.without.extension=无扩展名的文件名 +xcode.template.wizard.location.tooltip=要放置新建文件的文件夹 + +resolve.contexts.configurable.name=Xcode +resolve.contexts.unloaded.preview=预览 +resolve.contexts.unloaded.sdks=编制索引已对此目标所需的 {0} SDK 禁用。代码洞察功能可能无法正常运行。 +resolve.contexts.unloaded.archs=编制索引已对此目标的所有可用架构禁用。代码洞察功能可能无法正常运行。 +resolve.contexts.device=设备 +resolve.contexts.simulator=模拟器 +resolve.contexts.simulator.device=模拟器 + 设备 +resolve.contexts.device.arch.oldest=最古老 +resolve.contexts.device.arch.most.modern=最现代 +resolve.contexts.device.arch.most.modern.oldest=最现代 + 最古老 +resolve.contexts.host.arch.native.only=原生 +resolve.contexts.host.arch.all=所有 +resolve.contexts.index.for=为以下对象编制解析上下文索引: +resolve.contexts.sdks=SDK +resolve.contexts.limit.to=索引限制为 +resolve.contexts.device.architecture=设备架构 +resolve.contexts.host.architecture=主机架构 +resolve.contexts.may.result.in.reduced.performance=编制更多的解析上下文索引可能会导致性能降低。 +execution.app.extension.label.messages=消息 +generate.action.after.each=生成 After Each +generate.action.before.each=生成 Before Each +generate.action.context=生成上下文 +generate.action.it=生成 It +generate.action.setup=生成 SetUp +generate.action.specify=生成 Specify +generate.action.teardown=生成 TearDown +generate.action.test=生成测试 + +header.search.root.project=项目头 +cocoapods.failed.with.exit.code.0=已失败,退出代码: {0} +cocoapods.done=完成。 +core.data.core.data=核心数据 +xib.interface.builder=接口构建器 +execution.popup.content.set={0}集 +execution.ppc=(ppc) +execution.mac.catalyst=(Mac Catalyst) +execution.default.scheme.name=默认 +project.settings.column.setting=设置 +project.settings.column.value=值 +version.unknown=<未知> +colorscheme.xcode.prefix=Xcode - {0} +project.settings.boolean.value.yes=是 +project.settings.boolean.value.no=否 +project.settings.sdk.latest=最新({0}) +project.settings.column.recursive=递归 +project.settings.column.path=路径 +project.settings.custom.value=自定义值… +inspection.message.possibly.undefined.keypath=键路径可能未定义 +inspection.message.not.available.for.deployment.target.in={0} 对 ''{2}'' 中的部署目标 {1} 不可用 +inspection.message.not.available.for.deployment.target={0} 对部署目标不可用 +xcode.projectView.frameworks=框架 +xcode.projectView.files=文件 +execution.unknown.device=未知设备 +execution.localization.system.language=系统语言 +execution.localization.double.length.pseudolanguage=双倍长度的伪语言 +execution.localization.right.to.left.pseudolanguage=从右到左伪语言 +execution.localization.accented.pseudolanguage=重音伪语言 +execution.localization.bounded.string.pseudolanguage=有界字符串伪语言 +execution.localization.right.to.left.pseudolanguage.with.right.to.left.strings=从右到左字符串的从右到左伪语言 +execution.localization.system.region=系统区域 +run.locationSimulation.notification.content.reason=原因: {0} +run.locationSimulation.none=无 +refactoring.safe.delete.resource.0.is.referenced.from.the.project.file.safe.delete.will.remove.all.references=资源“{0}”引用自项目文件。安全删除将移除所有引用。 +action.AppCode.CreateXcodeProject.text=新建项目… +action.XCTestGenerateTest.text=测试方法 +action.XCTestGenerateTest.description=生成测试 +action.XCTestGenerateSetUp.text=SetUp 方法 +action.XCTestGenerateSetUp.description=生成 setUp +action.XCTestGenerateTearDown.text=TearDown 方法 +action.XCTestGenerateTearDown.description=生成 tearDown +action.KiwiGenerateIt.text=it +action.KiwiGenerateIt.description=生成 it +action.KiwiGenerateContext.text=上下文 +action.KiwiGenerateContext.description=生成上下文 +action.KiwiGenerateBeforeEach.text=beforeEach +action.KiwiGenerateBeforeEach.description=生成 before each +action.KiwiGenerateAfterEach.text=afterEach +action.KiwiGenerateAfterEach.description=生成 after each +action.KiwiGenerateSpecify.text=specify +action.KiwiGenerateSpecify.description=生成 specify +group.CocoaPods.Menu.text=CocoaPods +project.settings.category.user.defined.settings=用户定义的设置 +implicit.declaration.of.instance.variable.0.is.not.supported.in.legacy.runtime.for.architecture.1=旧版运行时不支持实例变量 ''{0}'' 的隐式声明(对于架构 ''{1}'') +implicit.declaration.of.instance.variable.0=实例变量 ''{0}'' 隐式声明 +execution.symbolication.put.a.crash.report.here=在此放置一个崩溃报告: +execution.symbolication.use.additional.directory.to.search.for.missing.dsyms=使用附加目录搜索缺失的 dSYM(&U) +execution.symbolication.directory=目录(&D): +cocoa.pods.button.add.ruby.sdk=添加 Ruby SDK +cocoa.pods.border.title.description=描述 +cocoa.pods.button.install=安装 +cocoa.pods.link.more.details=更多详细信息 +cocoa.pods.label.please.consider.switching.to.git.repo=请考虑切换到 Git 仓库。 +cocoa.pods.border.title.pods=Pod +cocoa.pods.button.remove.sdk=移除 SDK +cocoa.pods.button.update.repos=更新仓库 +cocoa.pods.label.using.cdn.spec.repo.source.has.limited.support=CDN 支持受限。 +action.include.file.to.xcode.project.description=将文件添加到 Xcode 项目 +group.AppCode.AddToProjectGroup.text=添加 +action.AppCode.OpenXibInEditor.text=作为 XML 打开 + +documentation.externalBrowser.Dash=Dash +documentation.externalBrowser.defaultWebBrowser=默认 Web 浏览器 +documentation.externalBrowser.panel.title=文档浏览器 +documentation.externalBrowser.xcode=Xcode 文档 diff --git a/original-plugin-raw/zh/messages/AppCodeKMMBundle.properties b/original-plugin-raw/zh/messages/AppCodeKMMBundle.properties new file mode 100644 index 000000000..69b63036c --- /dev/null +++ b/original-plugin-raw/zh/messages/AppCodeKMMBundle.properties @@ -0,0 +1,2 @@ + +appcode.kmm.template.description=创建一个包括 iOS 和 Android 应用程序的 Kotlin Multiplatform Mobile 项目以及一个适用于两个平台的共享模块。 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/AppEngineBundle.properties b/original-plugin-raw/zh/messages/AppEngineBundle.properties new file mode 100644 index 000000000..7a9cdcf74 --- /dev/null +++ b/original-plugin-raw/zh/messages/AppEngineBundle.properties @@ -0,0 +1,105 @@ +group.PythonAppEngine.text=Google App Engine +action.PythonAppEngine.UploadAppAction.text=上传 App Engine 应用… +action.PythonAppEngine.UploadAppAction.description=将 App Engine 应用程序上传到 Google 服务器 +action.PythonAppEngine.GetLogsAction.text=获取 App Engine 日志… +action.PythonAppEngine.GetLogsAction.description=下载 App Engine 日志 +action.PythonAppEngine.AppCfgAction.text=运行 appcfg.py 任务… + +app-engine=Google App Engine +app-engine-python=Google App Engine (Python) + +app-engine-server=App Engine 服务器 +app-engine-server-desc=App Engine 开发服务器 + +select-sdk-folder-title=选择 App Engine SDK 目录 +select-sdk-folder-desc=选择 App Engine SDK 目录 +app-engine-sdk=Google App Engine SDK + +facet-wizard-error.no-appengine-sdk=请选择 App Engine SDK 目录 +facet-wizard-error.no-python-extensions-sdk=请为 Python 安装 App Engine 扩展 +facet-wizard-error.no-python-sdk=请选择 Python SDK +facet-wizard-error.create-templates=无法创建模板目录 +project-create-error=无法创建项目 +facet-wizard-error.bad-app-name=请输入正确的应用程序 ID + +create-query-index=创建 GQL 查询索引 +query-inspection-name=查询不具备必需的索引 +query-bound-param-inspection-name=查询不具备必需的绑定参数 +restricted-query-inspection-name=查询不符合查询限制 +query-inspection-error-msg=index.yaml 中必须有索引 +parser-error.operation-expected=应为运算: <、<=、>、>=、!=、=、IN +threadsafe-must-be-present=threadsafe 必须存在,并设置为 'yes' 或 'no' +threadsafe-must-be-present.name=Threadsafe 不可用或设置不当 +threadsafe-CGI-handler=无法通过 CGI 处理程序启用 Threadsafe + +query-error.many-inequality-props=查询只能通过一个属性具备不等性筛选器。{0} 属性也在不等性筛选器中使用。 +query-error.sort-inequality-first=一阶属性应为不等性筛选器中使用的 {0}。 + +inspection.sandbox.name=App Engine 沙盒中不支持的功能 +inspection.sandbox.system.calls.not.supported=Google App Engine 沙盒不允许系统调用 +inspection.sandbox.c.module.not.available.in.py27=此 C 模块在 Python 2.7 App Engine 运行时中不可用 + +get-logs=获取 App Engine 日志 +log-severity-0=调试 +log-severity-1=信息 +log-severity-2=警告 +log-severity-3=错误 +log-severity-4=严重 +request-logs-only=仅请求日志 + +query-param-error.incorrect-number=您应当至少传递 {0} 个参数到 GqlQuery +query-param-error.dict-expected=传递包含形参的字典作为第二个 GqlQuery 实参,或使用命名形参 +query-param-error.named-not-passed=未传递某些 GQL 命名形参: {0} + +port-error=端口应为整数 + +appcfg-fetching=正在提取 appcfg.py 选项… +configurable.AppEngineFacet.display.name=Google App Engine +configurable.AppEngineModulesConfigurable.display.name=Google App Engine +python.app.engine.cant.be.int=计数应为 int 值 +python.app.engine.gql.colors.display.name=GQL +python.app.engine.gql.colors.number=数字 +python.app.engine.gql.colors.string=字符串 +python.app.engine.gql.colors.identifier=标识符 +python.app.engine.gql.colors.keyword=关键字 +filetype.python.app.engine.gql.description=GQL +python.app.engine.error.mixing.parameters=命名形参和位置形参混用 +python.app.engine.enable.third.party.libs=启用第三方库支持 +python.app.engine.server.run.config.additional.options=其他选项: +python.app.engine.server.run.config.host=主机: +python.app.engine.server.run.config.port=端口: +python.app.engine.server.run.config.error.please.enable.app.engine.support.for.project=请为此项目启用 App Engine 支持 +python.app.engine.server.run.config.error.please.configure.app.engine.facet.for.module=请为此模块配置 App Engine facet +python.app.engine.server.run.config.error.please.specify.valid.app.engine.sdk.folder=请指定有效的 App Engine SDK 文件夹 +python.app.engine.settings.sdk.dir=SDK 目录: +python.app.engine.wizard.sdk.dir=App Engine SDK 目录(&S): +python.app.engine.wizard.app.id=应用程序 ID(&I): +python.app.engine.logs.all=所有 +python.app.engine.logs.num.days=天数: +python.app.engine.logs.end.date=结束日期: +python.app.engine.logs.min.severity=最低严重程度: +python.app.engine.sdk.not.configured=未配置 App Engine SDK 路径 +python.app.engine.project.name=Google App Engine +python.app.engine.project.installing.flask.progress=正在安装 Flask… +python.app.engine.project.installing.flask.title=正在安装 Flask +python.app.engine.project.create=创建 App Engine 应用程序 +python.app.engine.project.django.error=创建 Django 应用程序时出错: {0} +python.app.engine.project.create.no.django=App Engine SDK 错误或损坏: 找不到 Django 安装文件 +python.app.engine.project.create.error=创建 Google App Engine 应用程序时出错: {0} +python.app.engine.enable.support=启用 Google App Engine 支持 +python.app.engine.configure.sdk.path=配置 App Engine SDK 路径 +python.app.engine.config.tool=应用配置工具 +python.app.engine.notification.group.project.configuration=项目配置 +gql.parsing.error.unexpected.token=意外的标记 +gql.parsing.error.star.or.key.expected=应为 * 或 __key__ +gql.parsing.error.id.expected=应为 ID +gql.parsing.error.expression.expected=应为表达式 +gql.parsing.error.expected=应为 IS +gql.parsing.error.id.or.key.expected=应为 ID 或键 +gql.parsing.error.literal.expected=应为文字 +gql.parsing.error.left.parenthesis.expected=应为 ( +gql.parsing.error.right.parenthesis.expected=应为 ) +gql.parsing.error.by.expected=应为 BY +gql.parsing.error.int.or.name.expected=应为 int 或名称 +gql.parsing.error.int.expected=应为 int + diff --git a/original-plugin-raw/zh/messages/AppInspectionBundle.properties b/original-plugin-raw/zh/messages/AppInspectionBundle.properties new file mode 100644 index 000000000..73adc36e7 --- /dev/null +++ b/original-plugin-raw/zh/messages/AppInspectionBundle.properties @@ -0,0 +1,16 @@ +select.process=将应用部署到运行 API 26 级或更高级别的设备上,或者选择可调试的进程以进行检查。 +device.not.found=AndroidDebugBridge 找不到设备 (''{0}'', ''{1}'', ''{2}'') + +notification.crash={0} 已崩溃。
      重启检查器。 + +# TODO(b/152556591): Change to "Launching App Inspection" +launch.app.inspection.tool.window=正在启动数据库检查器 + +action.no.debuggable.process=未检测到可调试的进程 +action.no.devices=未检测到设备 +action.select.process=选择进程 +action.select.process.desc=选择要连接到的进程。 +no.process.available=无可用进程 +no.process.selected=未选择进程 + +inspector.loading={0} 正在加载… \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/AppServersCommonBundle.properties b/original-plugin-raw/zh/messages/AppServersCommonBundle.properties new file mode 100644 index 000000000..230ae273b --- /dev/null +++ b/original-plugin-raw/zh/messages/AppServersCommonBundle.properties @@ -0,0 +1,62 @@ +Integration.name = {0} 服务器 +PersistentDataEditor.label.home = {0} 主目录(&H): +PersistentDataEditor.label.version = {0} 版本: +PersistentDataEditor.chooser.title = {0} 主目录 +PersistentDataEditor.chooser.description = 选择 {0} 主目录 +PersistentDataEditor.warning = 警告: 所选目录不是有效的 {0} 主页 +PersistentDataEditor.unknown = <未知> +ServerHelper.libraries.title = 正在搜索应用程序服务器库 +ServerHelper.libraries.error = 未找到应用程序服务器库 +ConfigurationType.name = {0} 服务器 +ConfigurationType.description = {0} 服务器运行配置 +RunEditor.title = {0} 服务器设置 +RunEditor.username = 用户名(&U): +RunEditor.password = 密码(&W): +AppDescriptor.title = {0} 应用程序部署描述符 +EjbDescriptor.title = {0} EJB 部署描述符 +CmpDescriptor.title = {0} CMP 部署描述符 +WebDescriptor.title = {0} Web 部署描述符 +ServerModel.password = 已指定用户名,但未指定密码 +ServerModel.logfile = {0} 日志 +ServerInstance.artifact.status = [{0,time,yyyy-MM-dd hh:mm:ss,SSS}] 工件 {1}: {2}\n +ServerInstance.invalid.deployment.source = 配置错误: 部署源 ''{0}'' 无效 +Error.fileNotFound = 找不到文件 ''{0}'' +RemoteServerModelDelegateBase.error.remoteStagingNotSpecified=未指定远程暂存类型或主机。 +RemoteServerModelDelegateBase.error.hostNotFound=无法找到远程主机 +RemoteServerModelDelegateBase.error.transferUnsuccessful={0} 传输失败 +RemoteServerModelDelegateBase.error.noHostTypesAvailable=没有可用的主机类型,启用 'Remote Hosts Access' 插件以提供可用类型 +RemoteServerModelDelegateBase.error.fileNotFound=未找到源文件 +Form.SimpleRemoteStagingEditor.title=远程暂存 +Form.RemoteStagingTargetEditor.mappedAs=映射为: +JettyServerModel.error.duplicate.context.path.text=上下文路径 ''{0}'' 重复 +TransportTargetKind.staging.error.remotePathNotSpecified=没有为 ''{0}'' 目标指定远程路径 +TransportTargetKind.watched.error.localPathNotSpecified=没有为 ''{0}'' 目标指定本地路径 +SimpleRemoteStagingEditor.TargetEditor.caption=暂存 +WatchedTargetModelEditor.watchedPathField.browse.title=选择到目标的本地路径 +ProcessAgentProxyFactory.incompatible.jdk=IDEA 要求应用程序服务器的捆绑 JDK 为 5.0+,请手动替换 JDK +message.text.connection.title=测试连接 +message.text.connection.progress=正在测试连接 +error.cannot.connect.text=无法连接 +message.text.connection.successful=连接成功 +message.text.unable.to.connect=无法连接到 {0} +message.text.unable.to.connect.detailed=无法连接到 {0},原因:\n{1} +ServerInstance.detected.server.port=检测到的服务器管理端口: {0,number,#} +ServerInstance.detected.local.port=检测到的服务器 http 端口: {0,number,#} +ServerInstance.unable.to.ping=无法在 {0}:{1,number,#} 处 ping 服务器 +ServerInstance.not.connection.before.stop=运行配置停止之前未连接应用程序服务器,原因:\n{0} +ServerInstance.exception.message={0}: {1} +ServerTaskRunner.no.connection=连接到应用程序服务器时出错:\n{0} +ServerInstance.deploy.time=部署已花费 {0,number,#,###} 毫秒 +JavaeeServerModel.local.error.runtime.jdk.too.old=JDK {0} (至少)应指定为项目 SDK 或替代 JRE +JavaeeServerModel.remote.error.runtime.jdk.too.old=JDK {0} (至少)应指定为项目 SDK +JavaeeServerModel.local.error.runtime.jdk.required = JDK 应指定为项目 SDK 或替代 JRE +JavaeeServerModel.remote.error.runtime.jdk.required = JDK 应指定为项目 SDK +JavaeeIntegration.message.text.cant.find.directory=找不到目录 ''{0}'' +JavaeePersistentDataEditor.error.message.base.directory.path.should.not.be.empty=未指定 {0} 基目录路径 +JavaeePersistentDataEditor.chooser.title.base.directory={0} 基目录 +JavaeePersistentDataEditor.chooser.description.base.directory=选择 {0} 基目录 +JavaeePersistentDataEditor.base.directory.label={0} 基目录: +JavaeeServerModel.local.error.runtime.jdk.too.new = JDK 1.7 (或更早版本)应指定为项目 SDK 或替代 JRE +JavaeeServerModel.remote.error.runtime.jdk.too.new = JDK 1.7 (或更早版本)应指定为项目 SDK +ProcessAgentProxyFactory.non.response.exception=运行管理进程时出错:\n{0} +WatchedTargetModelEditor.label.local.path=本地路径: diff --git a/original-plugin-raw/zh/messages/AppServersIntegrationBundle.properties b/original-plugin-raw/zh/messages/AppServersIntegrationBundle.properties new file mode 100644 index 000000000..acfc692c6 --- /dev/null +++ b/original-plugin-raw/zh/messages/AppServersIntegrationBundle.properties @@ -0,0 +1,167 @@ +deployment.status.name.deployed=已部署 +deployment.status.name.not.deployed=未部署 +deployment.status.name.failed=已失败 +deployment.status.name.deactivating=正在停用… +deployment.status.name.preparing=准备中… +deployment.status.name.prepared=已准备 +deployment.status.name.activating=正在激活… +deployment.status.name.unprepared=已取消准备 +deployment.status.name.unpreparing=正在取消准备… +deployment.status.name.unknown=未知 +deployment.status.name.disconnected=已断开连接 +deployment.status.name.excluded.from.deployment=从部署中排除 +deployment.status.description.deployed=工件已成功部署 +deployment.status.description.not.deployed=工件未部署。按“部署”以开始部署 +deployment.status.description.failed=部署工件时出错。请参阅服务器日志了解详细信息。 +deployment.status.description.deactivating=正在取消部署工件,请稍候… +deployment.status.description.preparing=正在部署工件,请稍候… +deployment.status.description.prepared=正在部署工件,请稍候… +deployment.status.description.activating=正在部署工件,请稍候… +deployment.status.description.unprepared=正在取消部署工件,请稍候… +deployment.status.description.unpreparing=正在取消部署工件,请稍候… +deployment.status.description.unknown=状态未知。按“刷新”从服务器重新加载部署状态。 +deployment.status.description.disconnected=正在等待服务器连接以启动工件部署… +deployment.status.description.excluded.from.deployment=工件已从部署中排除。要包含,请转到“运行 | 编辑部署 | 部署”并选择工件 +action.AppServers.DeployAll.text=全部部署 +action.AppServers.DeployAll.description=部署所选服务器的所有工件 +action.AppServers.ChooseArtifacts.text=工件 +action.AppServers.ChooseArtifacts.description=选择要部署的工件 +runtime.configuration.error.something.not.specified=未指定 {0}。 +runtime.configuration.error.description.file.does.not.exist={0} ''{1}'' 不存在。 +run.configuration.remote=远程 +run.configuration.local=本地 +message.text.error.while.creating.temp.file=创建临时文件时出错: {0} +action.name.deploy.all=全部部署 +action.name.deploy.selected=部署 +action.name.undeploy=取消部署 + +action.name.refresh.deployment.status=刷新部署状态 +KeepDeployedAfterDisconnectAction.leave.artifact.deployed.after.disconnect=断开连接后保留部署的工件 +PerformAdapter.server.is.stopped=服务器已停止 + +DeploymentSettingsPanel.nothing.to.deploy=没有要部署的内容 +DeploymentSettingsPanel.add.artifact.to.deploy=添加要部署的工件 + +label.deployment.settings.deployment.method=部署方法: + +AddArtifactToDeployAction.artifact=工件… +AddExternalFileToDeployAction.external.source=外部源… +AddExternalFileToDeployAction.select.files.or.directories.to.deploy=选择要部署的文件或目录 +AddExternalFileToDeployAction.select.files.to.deploy=选择要部署的文件 + +application.servers.configurable.display.name=应用程序服务器 +generic.application.server.default.name=通用 +not.configured=未配置 +action.description.add.application.server=添加应用程序服务器 +action.description.remove.application.server=移除应用程序服务器 +label.text.no.application.server.selected=未选择应用程序服务器 +message.text.application.server.name.cannot.be.empty=应用程序服务器名称不能为空 +message.text.application.server.already.exists=应用程序服务器 ''{0}'' 已存在 +label.application.server.name=名称(&N): +label.application.server.containing.libraries=库 + +appserver.library.display.name=应用程序服务器{0, choice, 1#库|2#库} +libraries.node.text.application.server=库包含将各种功能添加到您的应用程序的类。库还包含源文件和 JavaDoc,它们可以帮助您开发项目。

      IntelliJ IDEA 使用库协助您完成代码补全、验证、错误高亮显示等。

      应用程序服务器库是应用程序服务器 (WebSphere、WebLogic、Tomcat 等) 的一部分并适用于通过这些服务器配置的 Web 和 Java EE 应用程序。

      扩展节点和选择子项以管理您的系统中安装的应用程序服务器库。

      要将库附加到模块,请选择该模块,点击“依赖关系”选项卡,点击“添加”并指定库位置。 +library.configure.appserver.title=配置应用程序服务器库 + +default.run.configuration.name.unnamed=未命名 +title.run.configuration.editor.server=服务器 +title.run.configuration.editor.deployment=部署 +exception.text.application.server.not.specified=未指定应用程序服务器 +exception.text.application.server.0.not.configured=未配置应用程序服务器 ''{0}'' +directory.description.working.directory=工作目录 +exception.text.malformed.url=格式不正确的 URL: ''{0}'' +exception.text.alternative.jre.not.specified=未指定替代 JRE +exception.text.descriptor.not.defined=未定义 ''{0}'' + +warning.no.artifacts.configured=未配置工件 +warning.no.artifacts.marked.for.deployment=没有为部署标记工件 +quickfix.popup.title.select.an.artifact.to.deploy=选择要部署的工件 +error.env.var.name.is.not.set=未设置环境变量名称 +dialog.title.vm.parameters=VM 选项 +border.run.configuration.editor.remote.connection.settings.group=远程连接设置 +exception.text.invalid.port.value=无效的端口值: {0} + +run.tab.title.output=输出 +run.tab.title.deployment=部署 +run.tab.title.server=服务器 + +label.run.configuration.editor.add.vm.parameters=要{0}远程服务器 JVM,应从以下命令行实参开始
      (您可以复制并粘贴它们): +message.text.run.configuration.editor.no.specific.parameters.needed=无需特定参数 +label.run.configuration.properties.application.server=应用程序服务器(&S): +button.configure.application.server=配置… +button.configure.acclication.server=配置(&C)… + +label.run.configuration.editor.port=端口(&P): +label.run.configuration.editor.host=主机(&H): +label.run.configuration.editor.shutdown.script=关机脚本: +label.run.configuration.editor.startup.script=启动脚本: + +border.run.configuration.editor.environment.variables=环境变量 +checkbox.run.configuration.editor.pass.environment.variables=传递环境变量 + +exception.text.address.is.in.use=地址 {0} 已在使用中 +message.text.able.to.bind.yet.able.to.connect.too=可以同时绑定并连接到 {0} - 应用程序服务器可能会与端口上的一些其他软件竞争 +message.text.run.configuration.already.run.do.you.want.to.restart.in.1=运行配置 ''{0}'' 正在运行。要以 ''{1}'' 模式重启服务器吗? +message.text.run.configuration.already.run=运行配置 ''{0}'' 正在运行。 +dialog.title.restart.server=重启服务器 +message.text.connected.to.server=已连接到服务器 +message.text.disconnected.from.server=已与服务器断开连接 +message.text.cannot.open.url=无法打开 URL。请检查此 URL 是否正确: +message.title.open.url=打开 URL +message.text.unable.to.connect=无法连接到 {0} +message.text.connected.to.the.server=已连接到服务器 +exception.text.error.connecting.exception.occurred.with.message=连接到 {0} 时出错。\n出现异常: {1}\n异常消息: {2} +exception.text.startup.script.is.not.specified=未指定启动脚本 +message.text.error.running.configuration.exception.occurred.with.message=运行 {0} 时出现错误。\n出现异常: {1}\n异常消息: {2} +action.name.build.on.frame.deactivation=切换出IDE时更新资源 +action.description.build.on.frame.deactivation=切换出IDE时更新与此进程相关的资源 +updating.policy.hot.swap.classes=热交换类(&H) +JavaeeApplicationUpdaterProvider=更新 ''{0}'' 应用程序 + +updating.policy.redeploy=重新部署(&R) +updating.policy.update.classes.and.resources=更新类和资源(&C) +updating.policy.update.resources=更新资源(&U) +updating.policy.restart.server=重启服务器(&S) +SelectUpdatingPolicyDialog.update=更新 ''{0}'' +label.edit.parameters.program.parameters=程序实参(&P): +dialog.title.configure.vm.and.program.parameters=配置虚拟机和程序形参 +ScriptInfo.error.startup.script.not.found=未找到启动脚本文件 +ScriptInfo.error.shutdown.script.not.found=未找到关机脚本文件 + +checkbox.edit.script.properties.use.default=使用默认值 +dialog.title.select.startup.script=选择启动脚本 +dialog.title.select.shutdown.script=选择关闭脚本 +dialog.title.default.startup.script=默认启动脚本 +dialog.title.default.shutdown.script=默认关机脚本 +tooltip.text.script.parameters=形参… +app.server.panel.new.server=新服务器 +AppServerFrameworkType.application.server=应用程序服务器 +OpenArtifactEditorAction.edit.artifact=编辑工件 +AddModuleToDeployAction.module=模块… +jboss.display.name=JBoss +ApplicationServerPanel.label.application.server=应用程序服务器(&R): +ApplicationServerPanel.button.new=新… +ApplicationServerConfigurable.title.additional.libraries.for.frameworks=框架的其他库 +DeploymentSettingsPanel.title.deploy.at.the.server.startup=在服务器启动时部署 +J2EERunCommonConfigurationEditor.label.on.frame.deactivation=切换出IDE时(&F): +J2EERunCommonConfigurationEditor.label.on.update.action=执行“更新”操作时(&U): +J2EERunCommonConfigurationEditor.checkbox.show.dialog=显示对话框(&D) +SelectUpdatingPolicyDialog.checkbox.dont.ask.again=不再询问(&D) +SelectUpdatingPolicyDialog.label=标签 +AddArtifactToDeployActionRunnable.label.selected.artifacts.will.be.deployed=选定工件将在服务器启动时部署 +AddArtifactToDeployActionRunnable.title.select.artifacts.to.deploy=选择要部署的工件 +AddModuleToDeployAction.label.selected.modules.will.be.deployed=选定模块将在服务器启动时部署 +AddModuleToDeployAction.title.select.modules.to.deploy=选择要部署的模块 +ApplicationServerConfigurable.title.delete.library=删除库 +ApplicationServerConfigurable.status.text.no.libraries.available=无可用库 +ApplicationServerConfigurable.status.text.loading.available.libraries=正在加载可用库… +ApplicationServerConfigurable.warning.library.used.are.you.sure.to.delete=''{0}'' 库已在 {1} 中使用。\n确定要删除此库吗? +ChooseModulesFromAllProjectsDialog.title.choose.modules=选择模块 +ChooseModulesFromAllProjectsDialog.description.library.will.be.added=库将添加到选定模块 +ChooseModulesFromAllProjectsDialog.item.text.with.project={0}(项目 ''{1}'') +SelectUpdatingPolicyDialog.do.you.want.to.launch.policy=是否要{0}? +UpdatingRunningApplicationUtil.label.do.nothing=不执行任何操作 +RunnerSpecificLocalConfigurationBit.tooltip.vm.options.are.read.only=此值只读。要指定其他虚拟机选项,请在“服务器”选项卡上编辑“虚拟机选项”字段 +ApplicationServerParameterFactory.label.application.server=应用程序服务器: +app.server.panel.no.server=<无应用程序服务器> \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/AppServersViewBundle.properties b/original-plugin-raw/zh/messages/AppServersViewBundle.properties new file mode 100644 index 000000000..b29b2972c --- /dev/null +++ b/original-plugin-raw/zh/messages/AppServersViewBundle.properties @@ -0,0 +1,13 @@ +ServersTreeStructure.node.artifact.synced=已同步 +ServersTreeStructure.node.artifact.unsynced=重新发布 +ServerArtifactsDialog.title=要在 ''{0}'' 上部署的工件 +Form.ServerArtifactsDialog.label.available=可用: +Form.ServerArtifactsDialog.label.chosen=选择: +Form.ServerArtifactsDialog.button.add=添加 > +Form.ServerArtifactsDialog.button.remove=< 移除 +Form.ServerArtifactsDialog.button.add.all=全部添加 >> +Form.ServerArtifactsDialog.button.remove.all=<< 全部移除 +ServersTreeStructure.node.server.place.local=本地 +ServersTreeStructure.node.server.place.remote=远程 +ServersTreeStructure.node.artifact.invalid=<无效> +Form.ServerArtifactsDialog.label.deploy.not.allowed=没有为服务器配置远程暂存 diff --git a/original-plugin-raw/zh/messages/ApplicationBundle.properties b/original-plugin-raw/zh/messages/ApplicationBundle.properties new file mode 100644 index 000000000..4a42ed4d0 --- /dev/null +++ b/original-plugin-raw/zh/messages/ApplicationBundle.properties @@ -0,0 +1,869 @@ +app.command.exec.error=执行命令 ''{0}'' 时出错: {1} +app.command.exec.error.title=命令 ''{0}'' +title.screen.reader.support=屏幕阅读器支持 +confirmation.screen.reader.enable=检测到屏幕阅读器。您是否希望在 {0} 中启用屏幕阅读器支持? +title.code.completion=代码完成 +editbox.autopopup.javadoc.in=在以下位置显示文档弹出窗口 +checkbox.show.full.signatures=显示完整的签名 +editbox.auto.complete=输入时显示建议 +editbox.autopopup.in=自动弹出在(ms): +editbox.ms=毫秒 +editbox.complete.with.parameters=补全时显示形参名称提示 +title.parameter.info=形参信息 +label.autocomplete.when.only.one.choice=自动插入单个建议到: +checkbox.autocomplete.smart.type=类型匹配补全 +checkbox.autocomplete.basic=基本完成 +editbox.blanklines.before.package.statement=在 package 语句前: +editbox.blanklines.after.package.statement=在 package 语句后: +editbox.blanklines.before.imports=在导入前: +editbox.blanklines.after.imports=在导入后: +editbox.blanklines.around.class=环绕类: +editbox.blanklines.around.field=环绕字段: +editbox.blanklines.around.method=环绕方法: +editbox.blanklines.before.method.body=在方法体前: +editbox.blanklines.after.class.header=在类头部后: +editbox.blanklines.before.class.end=在类结尾前: +editbox.blanklines.after.anonymous.class.header=在匿名类头部后: +title.blank.lines=空行 +title.keep.blank.lines=保持最大的空白行 +title.minimum.blank.lines=最小的空白行 +editbox.keep.blanklines.in.declarations=在声明: +editbox.keep.blanklines.in.code=在代码: +editbox.keep.blanklines.before.rbrace=在'}'前: +editbox.keep.blanklines.between.header.and.package=在标头与软件包之间: +listbox.members.order.fields=实例字段 +listbox.members.order.static.fields=static 字段 +listbox.members.order.methods=实例方法 +listbox.members.order.static.methods=static 方法 +listbox.members.order.constructors=构造函数 +listbox.members.order.inner.classes=内部类 +listbox.members.order.inner.static.classes=static 内部类 +title.naming.comment.code=注释的代码 +checkbox.block.comment.at.first.column=注释块在第一列 +checkbox.line.comment.at.first.column=行注释在第一列 +title.order.of.members=成员顺序 +title.code.generation=代码生成 +checkbox.parentheses.around.method.arguments=添加括号到方法参数 +radiogroup.rename.local.variables=指定重构选项: +radiobutton.rename.local.variables.inplace=在编辑器中 +radiobutton.rename.local.variables.in.dialog=在模式对话框中 +checkbox.rename.local.variables.preselect=预选择“重命名”重构的当前符号名称 +generated.quote.marks=生成的引号: +title.spaces=空格 +label.wrap.attributes=换行特性: +title.imports=导入 +title.general=常规 +checkbox.use.fully.qualified.class.names.in.javadoc=在javadoc中使用全修饰类名 +button.remove=移除 (&E) +button.enable=启用 + +settings.code.style.tab.title.wrapping.and.braces=换行和大括号 +settings.code.style.tab.title.wrapping=换行 +settings.code.style.tab.title.other=其他 + +wrapping.wrap.on.typing=键入时换行 +wrapping.wrap.on.typing.no.wrap=否 +wrapping.wrap.on.typing.wrap=是 +wrapping.wrap.on.typing.default=默认 + +wrapping.keep.when.reformatting=重新格式化时保持 +wrapping.keep.line.breaks=换行符 +wrapping.keep.comment.at.first.column=注释在第一列 +wrapping.keep.simple.classes.in.one.line=简单的类在同一行 +wrapping.keep.simple.methods.in.one.line=简单的方法在同一行 +wrapping.keep.simple.lambdas.in.one.line=简单的lambdas表达式在同一行 +wrapping.keep.multiple.expressions.in.one.line=多个表达式在同一行 +wrapping.keep.simple.blocks.in.one.line=简单的块在同一行 + +wrapping.force.braces.do.not.force=不强制 +wrapping.force.braces.when.multiline=当多行时 +wrapping.force.braces.always=总是 + +wrapping.brace.placement=大括号放置 +wrapping.brace.placement.class.declaration=在类声明 +wrapping.brace.placement.method.declaration=在方法声明 +wrapping.brace.placement.other=其他 +wrapping.brace.placement.lambda=在lambda声明中 +wrapping.brace.placement.end.of.line=行尾 +wrapping.brace.placement.next.line.if.wrapped=下一行如果已换行 +wrapping.brace.placement.next.line=下一行 +wrapping.brace.placement.next.line.shifted=下一行,换挡后 +wrapping.brace.placement.next.line.each.shifted=下一行,每次换挡后 + +wrapping.align.when.multiline=多行时对齐 +wrapping.align.parenthesised.when.multiline=多行时对齐括号 +wrapping.align.fields.in.columns=对齐列的字段 +wrapping.align.variables.in.columns=对齐列的变量 +wrapping.align.assignments.in.columns=在列中对齐赋值 +wrapping.align.simple.methods.in.columns=在列中对齐简单的方法 + +wrapping.else.on.new.line='else' 在新行 +wrapping.while.on.new.line='while' 在新行 +wrapping.catch.on.new.line='catch' 在新行 +wrapping.finally.on.new.line='finally' 在新行 +wrapping.method.parentheses=方法括号 +wrapping.special.else.if.braces.treatment=特殊的 'else if' 对待 +wrapping.indent.case.from.switch=缩进'case'分支 +wrapping.indent.break.from.case=从 'case' 缩进 'break' +wrapping.case.statements.on.one.line=各 'case' 在单独的行中 +wrapping.force.braces=强制加大括号 + +wrapping.method.parameters=方法声明形参 +wrapping.method.arguments=方法调用参数 +wrapping.chained.method.calls=链式方法调用 +wrapping.chained.method.call.first.on.new.line=换行第一个调用 +wrapping.builder.methods=构建器方法 +wrapping.builder.methods.keep.indents=保持构建器方法缩进 +wrapping.for.statement='for()'语句 +wrapping.if.statement='if()'语句 +wrapping.while.statement='while()'语句 +wrapping.dowhile.statement='do ... while()'语句 +wrapping.switch.statement='switch'语句 +wrapping.try.statement='try'语句 +wrapping.try.resources='try-with-resources' +wrapping.binary.operations=二进制表达式 +wrapping.extends.implements.list=扩展/实现列表 +wrapping.extends.implements.keyword=扩展/实现关键字 +wrapping.throws.list=抛出列表 +wrapping.throws.keyword=throws 关键字 +wrapping.align.throws.keyword=对齐'throws'到方法开始处 +wrapping.ternary.operation=三值运算 +wrapping.assignment.statement=赋值语句 +wrapping.array.initializer=数组初始值设定项 +wrapping.modifier.list=修改器列表 +wrapping.assert.statement=断言语句 +wrapping.new.line.after.lpar=在 '(' 后换行 +wrapping.rpar.on.new.line=空格')'在新行 +wrapping.new.line.after.lbracket=在 '[' 后换行 +wrapping.rbracket.on.new.line=将 ']' 置于新行 +wrapping.take.priority.over.call.chain.wrapping=优先于调用链包装 +wrapping.operation.sign.on.next.line=操作签署下一行 +wrapping.comma.on.next.line=','在下一行 +wrapping.assignment.sign.on.next.line=转让签署下一行 +wrapping.quest.and.colon.signs.on.next.line='?'和':'符号在下一行 +wrapping.new.line.after.lbrace=在 '{' 后换行 +wrapping.rbrace.on.new.line=将 '}' 置于新行 +wrapping.after.modifier.list=包装修改器列表后 +wrapping.colon.signs.on.next.line=':'在下一行 +wrapping.classes.annotation=类注解 +wrapping.methods.annotation=方法注解 +wrapping.fields.annotation=字段注解 +wrapping.parameters.annotation=形参注解 +wrapping.local.variables.annotation=局部变量注解 +wrapping.enum.constants=枚举常量 +wrapping.long.lines=确保不超过右边距 +wrapping.comments=注释 +wrapping.comments.wrap.at.right.margin=包装的右边距 +checkbox.align.multiline.fields.groups=字段组 +checkbox.keep.when.reformatting.control.statement.in.one.line=控制语句在同一行 +label.loading.page.please.wait=正在加载… +button.delete=删除 +editbox.scheme.type.name=方案 +group.spaces.around.operators=运算符周围 +group.spaces.before.parentheses=括号之前 +group.spaces.before.left.brace=左大括号之前 +group.spaces.after.right.brace=关键字之前 +group.spaces.within=内部 +group.spaces.in.ternary.operator=在三元运算符(?:)中 +group.spaces.in.type.arguments=在类型实参中 +group.spaces.in.type.arguments.block=类型实参 +group.spaces.in.type.parameters.block=类型形参 +group.spaces.other=其他 +checkbox.spaces.method.call.parentheses=方法调用括号 +checkbox.spaces.method.declaration.parentheses=方法声明括号 +checkbox.spaces.if.parentheses='if'括号 +checkbox.spaces.while.parentheses='while'括号 +checkbox.spaces.for.parentheses='for'括号 +checkbox.spaces.try.parentheses='try'括号 +checkbox.spaces.catch.parentheses='catch'括号 +checkbox.spaces.switch.parentheses='switch'括号 +checkbox.spaces.synchronized.parentheses='synchronized' 括号 +checkbox.spaces.annotation.parameters=注解形参 +checkbox.spaces.assignment.operators=赋值运算符 (=, +=, ...) +checkbox.spaces.logical.operators=逻辑运算符 (\\&\\&, ||) +checkbox.spaces.equality.operators=相等运算符 (==, !=) +checkbox.spaces.relational.operators=关系运算符 (<, >, <=, >=) +checkbox.spaces.bitwise.operators=按位运算符 (\\&, |, ^) +checkbox.spaces.additive.operators=加法运算符 (+, -) +checkbox.spaces.multiplicative.operators=乘法运算符 (*, /, %) +checkbox.spaces.shift.operators=移位运算符 (<<, >>, >>>) +checkbox.spaces.around.unary.operator=一元运算符 (!, -, +, ++, --) +checkbox.spaces.class.left.brace=类的左大括号 +checkbox.spaces.method.left.brace=方法左大括号 +checkbox.spaces.if.left.brace='if'左大括号 +checkbox.spaces.else.left.brace='else'左大括号 +checkbox.spaces.while.left.brace='while'左大括号 +checkbox.spaces.for.left.brace='for'左大括号 +checkbox.spaces.do.left.brace='do'左大括号 +checkbox.spaces.switch.left.brace='switch'左大括号 +checkbox.spaces.try.left.brace='try'左大括号 +checkbox.spaces.catch.left.brace='catch'左大括号 +checkbox.spaces.finally.left.brace='finally' 左大括号 +checkbox.spaces.synchronized.left.brace='synchronized' 左大括号 +checkbox.spaces.array.initializer.left.brace=数组初始值设定项左大括号 +checkbox.spaces.annotation.array.initializer.left.brace=注解数组初始值设定项左大括号 +checkbox.spaces.else.keyword='else'关键字 +checkbox.spaces.while.keyword='while' 关键字 +checkbox.spaces.catch.keyword='catch' 关键字 +checkbox.spaces.finally.keyword='finally' 关键字 +checkbox.spaces.within.brackets=中括号 +checkbox.spaces.within.braces=代码括号 +checkbox.spaces.within.array.initializer.braces=数组初始值设定项大括号 +checkbox.spaces.within.empty.array.initializer.braces=空数组初始值设定项大括号 +checkbox.spaces.within.parentheses=分组括号 +checkbox.spaces.checkbox.spaces.method.call.parentheses=方法调用括号 +checkbox.spaces.checkbox.spaces.empty.method.call.parentheses=空方法调用括号 +checkbox.spaces.checkbox.spaces.method.declaration.parentheses=方法声明括号 +checkbox.spaces.checkbox.spaces.empty.method.declaration.parentheses=空方法声明括号 +checkbox.spaces.type.cast.parentheses=类型转换括号 +checkbox.spaces.annotation.parentheses=注解括号 +checkbox.spaces.before.question=在'?'前 +checkbox.spaces.after.question=在'?'之后 +checkbox.spaces.before.colon=在':'前 +checkbox.spaces.after.colon=在':'之后 +checkbox.spaces.after.comma=逗号之后 +checkbox.spaces.before.comma=逗号之前 +checkbox.spaces.before.opening.angle.bracket=在打开尖括号之前 +checkbox.spaces.after.semicolon='for' 分号之后 +checkbox.spaces.before.semicolon='for' 分号之前 +checkbox.spaces.after.type.cast=在类型转换之后 +title.editor=常规 +title.code.editing=代码编辑 +combobox.strip.modified.lines=已修改的行 +combobox.strip.all=所有行 +combobox.insert.imports.all=始终 +combobox.insert.imports.ask=询问 +combobox.insert.imports.none=从不 +combobox.paste.reformat.none=无 +combobox.paste.reformat.indent.block=缩进块 +combobox.paste.reformat.indent.each.line=缩进每一行 +combobox.paste.reformat.reformat.block=格式化块 +combobox.smart.backspace=取消缩进: +combobox.smart.backspace.off=禁用 +combobox.smart.backspace.simple=最近缩进位置 +combobox.smart.backspace.smart=正确缩进位置 +combobox.tab.placement.none=无 +combobox.tab.placement.top=顶部 +combobox.tab.placement.left=左 +combobox.tab.placement.bottom=底部 +combobox.tab.placement.right=右 +tab.editor.settings.appearance=外观 +checkbox.smooth.scrolling=启用平滑滚动 +checkbox.show.whitespaces=显示空格 +checkbox.show.leading.whitespaces=主要的 +checkbox.show.inner.whitespaces=内部的 +checkbox.show.trailing.whitespaces=后续的 +checkbox.show.method.separators=显示方法分隔符 +checkbox.show.method.separators.DataGrip=显示语句或函数之间的行 +checkbox.show.gutter.icons=显示栏距图标(&I) +checkbox.show.line.numbers=显示行号 +checkbox.show.indent.guides=显示缩进参考线 +checkbox.highlight.only.current.declaration=仅高亮显示当前声明 +checkbox.show.intention.bulb=显示意图灯泡 +configurable.breadcrumbs=路径导航 +configure.breadcrumbs.colors=管理颜色 +checkbox.show.breadcrumbs=显示路径导航 +radio.show.breadcrumbs.above=顶部 +radio.show.breadcrumbs.below=底部 +label.breadcrumbs.placement=放置: +label.breadcrumbs.languages=语言: +checkbox.right.margin=显示右边距(代码样式选项中配置) +checkbox.use.block.caret=使用块文本光标 +checkbox.caret.blinking.ms=文本光标闪烁(ms): +checkbox.mark.modified.tabs.with.asterisk=用星号标记已修改的标签 +checkbox.show.tabs.tooltips=显示标签工具提示 +group.code.folding=代码折叠 +checkbox.collapse.method.bodies=方法内 +checkbox.collapse.javadoc.comments=文档注释 +checkbox.collapse.title.imports=导入 +checkbox.collapse.file.header=文件头 +checkbox.collapse.custom.folding.regions=自定义折叠区域 +label.fold.by.default=默认折叠: +checkbox.show.code.folding.outline=显示代码折叠大纲 +group.tab.appearance=选项卡外观 +combobox.editor.tab.tabslayout=选项卡布局 +editbox.tab.limit=选项卡限制: +checkbox.smart.tab.preview=启用预览选项卡 +checkbox.smart.tab.preview.inline.help=重新使用预览选项卡显示在“项目”工具窗口中一键选择的文件以及在调试期间打开的文件。 +combobox.editor.tab.placement=放置: +checkbox.editor.tabs.in.single.row=在单行显示选项卡 +tabs.close.button.placement=关闭按钮位置 +checkbox.editor.scroll.if.need=如果没有空格则隐藏选项卡 +checkbox.show.pinned.tabs.in.a.separate.row=在单独的行中显示固定选项卡 +checkbox.show.file.icon.in.editor.tabs=显示文件图标 +checkbox.show.file.extension.in.editor.tabs=显示文件扩展名 +checkbox.show.directory.for.non.unique.files=显示非唯一文件名的目录 +group.tab.opening.policy=打开策略 +group.tab.closing.policy=选项卡关闭策略 +radio.activate.most.recently.opened.tab=激活最近打开的选项卡 +radio.activate.left.neighbouring.tab=激活左边邻近的选项卡 +radio.activate.right.neighbouring.tab=激活右边邻近的选项卡 +label.when.closing.active.editor=在当前标签页关闭时,激活: +radio.close.less.frequently.used.files=关闭不常用的文件 +radio.close.non.modified.files.first=先关闭未修改的文件 +label.when.number.of.opened.editors.exceeds.tab.limit=当打开的编辑窗口数超过选项卡限制时: +group.tab.order=选项卡顺序 +checkbox.sort.tabs.alphabetically=按字母顺序对选项卡排序 +checkbox.open.new.tabs.at.the.end=在结尾打开新选项卡 +group.soft.wraps=自动换行 +checkbox.use.soft.wraps.at.editor=对这些文件进行软换行: +soft.wraps.file.masks.empty.text=无文件 +soft.wraps.file.masks.hint=使用 * 和 ? 作为通配符,使用 ; 来分隔模式 +checkbox.use.soft.wraps.at.console=控制台自动换行 +checkbox.use.custom.soft.wraps.indent=对换行的片段使用原始行的缩进 +label.use.custom.soft.wraps.indent=添加附加缩进: +label.use.custom.soft.wraps.indent.symbols.suffix=符号 +checkbox.show.softwraps.only.for.caret.line=仅显示当前行的软换行指示器 +group.virtual.space=虚拟空间 +checkbox.allow.placement.of.caret.label=允许文本光标放置: +checkbox.allow.placement.of.caret.after.end.of.line=行结尾后 +checkbox.allow.placement.of.caret.inside.tabs=选项卡内 +checkbox.show.virtual.space.at.file.bottom=在文件底部显示虚拟空间 +checkbox.optimize.imports.on.the.fly=即时优化 import +help.optimize.imports.on.the.fly=移除未使用的 import 并根据代码样式设置对导入进行重新排序 +help.link.optimize.imports.on.the.fly=配置 +checkbox.add.unambiguous.imports.on.the.fly=快速添加清晰的导入 +help.add.unambiguous.imports=在编辑代码时,当只有一个名称相匹配的可导入声明时,自动添加 import +combobox.strip.trailing.spaces.on.save=移除尾随空格: +editbox.console.history.limit=控制台命令历史记录大小: +checkbox.override.console.cycle.buffer.size=覆盖控制台循环缓冲区大小 ({0} KB) +checkbox.override.console.cycle.buffer.size.warning.unlimited=警告: 不受限的缓冲区大小会导致性能下降 +checkbox.override.console.cycle.buffer.size.warning.too.large=警告: 过大的缓冲区大小会导致性能下降 +combobox.console.default.encoding.label=默认编码: +combobox.console.favorites.separator.label=收藏夹 +combobox.console.more.separator.label=更多 +group.caret.movement=文本光标移动 +label.word.move.caret.actions.behavior=按单词移动时: +combobox.item.stick.to.word.boundaries=跳到当前单词边界 +combobox.item.jump.to.word.start=始终跳到单词开头 +combobox.item.jump.to.word.end=始终跳到单词结尾 +combobox.item.jump.to.neighboring.word=跳到下一个/上一个单词边界 +combobox.item.stop.at.all.word.boundaries=在两个单词边界处停止 +label.word.move.caret.actions.behavior.at.line.break=换行时: +combobox.item.proceed.to.word.boundary=忽略换行 +combobox.item.stay.on.current.line=跳到当前行边界 +combobox.item.jump.to.neighboring.line=跳到下一行/上一行边界 +combobox.item.stop.at.line.start=始终跳到行开始 +combobox.item.stop.at.line.end=始终跳到行结尾 +combobox.item.stop.at.both.line.ends=在两行边界处停止 +combobox.item.hint.ide.default={0} 默认 +combobox.item.hint.os.default.linux=Linux 默认 +combobox.item.hint.os.default.mac=macOS 默认 +combobox.item.hint.os.default.unix=Unix 默认 +combobox.item.hint.os.default.windows=Windows 默认 +group.brace.highlighting=高亮显示文本光标移动 +checkbox.highlight.matched.brace=匹配大括号 +checkbox.highlight.current.scope=当前范围 +combobox.paste.reformat=重新格式化粘贴的: +group.advanced.mouse.usages=鼠标控制 +checkbox.enable.ctrl.mousewheel.changes.font.size=使用 Ctrl + 鼠标滚轮更改字号: +checkbox.enable.ctrl.mousewheel.changes.font.size.macos=使用 Command + 鼠标滚轮更改字号: +radio.enable.ctrl.mousewheel.changes.font.size.current=活动编辑器 +radio.enable.ctrl.mousewheel.changes.font.size.all=所有编辑器 +checkbox.enable.drag.n.drop.functionality.in.editor=使用拖放移动代码段 +checkbox.enable.drag.n.drop.functionality.in.editor.comment=要复制,请在按住 Ctrl 的同时拖动 +checkbox.honor.camelhumps.words.settings.on.double.click=在双击时选择“CamelHumps”字样设置 +group.smart.keys=智能键 +checkbox.use.camelhumps.words=使用"驼峰"字 +checkbox.surround.selection.on.typing.quote.or.brace=输入引号或大括号时环绕选择范围 +checkbox.enable.double.ctrl=使用键盘上的箭头在双 {0} 上添加多个文本光标 +checkbox.tab.exists.brackets.and.quotes=输入时使用 Tab 键跳出右中括号/引号 +checkbox.insert.pair.quote=插入双引号 +checkbox.insert.pair.bracket=插入成对括号 +checkbox.javadoc.stub.after.slash.star.star=插入文档注释存根 +checkbox.insert.pair.curly.brace=插入成对'}' +checkbox.smart.indent=智能缩进 +checkbox.smart.end.on.blank.line=在空行上按 End 时将文本光标移动到缩进位置 +checkbox.smart.home=Home 将文本光标移到第一个非空格字符上。 +group.error.highlighting=错误高亮显示 +group.quick.documentation=快速文档 +group.editor.tooltips=编辑器工具提示 +group.enter.title=Enter +editbox.autoreparse.delay=自动重新解析延迟: +editbox.autoreparse.delay.ms.suffix=毫秒 +editbox.error.stripe.mark.min.height=错误条纹标记最小高度: +editbox.error.stripe.mark.min.height.pixels.suffix=像素 +combobox.next.error.action.goes.to.label=“下一个错误”操作将作用于: +combobox.next.error.action.goes.to.errors=转到高优先级问题 +combobox.next.error.action.goes.to.all.problems=所有问题 +checkbox.show.import.popup=显示导入的弹出窗口(&P) +checkbox.indent.use.tab.character=使用制表符 +checkbox.indent.smart.tabs=智能制表符 +editbox.indent.tab.size=制表符大小: +editbox.indent.indent=缩进: +editbox.indent.continuation.indent=连续缩进: +editbox.indent.label.indent=标签缩进: +editbox.indent.declaration.parameter=声明参数缩进: +editbox.indent.generic.type=泛型类型形参缩进: +editbox.indent.call.parameter=调用参数缩进: +editbox.indent.chained.call=链式调用缩进: +editbox.indent.array.element=数组元素缩进: +checkbox.indent.keep.indents.on.empty.lines=保持空行缩进 +checkbox.indent.absolute.label.indent=绝对标签缩进 +checkbox.use.relative.indents=使用缩进相对表达开始 +tooltip.indent.must.be.multiple.of.tab.size.for.smart.tabs.to.operate=缩进必须多的标签尺寸为智能标签来操作 +combobox.crlf.system.dependent=系统默认 +combobox.crlf.unix=Unix 和 macOS (\\n) +combobox.crlf.windows=Windows (\\r\\n) +combobox.crlf.mac=Classic Mac OS (\\r) +combobox.line.separator.for.new.files=行分隔符(新文件): +editbox.right.margin.columns=强制换行位置: +checkbox.wrap.typing.on.right.margin=当键入到右页边距的时候换行 +option.table.sizing.text=截断如果过长 +title.import.scheme.chooser=导入方案 +import.scheme.shared=共享方案 +code.style.scheme.import.unnamed=未命名 +message.code.style.scheme.import.success={0} 设置将要导入到方案 {1} 中。{2} +message.code.style.scheme.import.failure={0}导入失败,错误信息:{1} +scheme.exporter.ui.file.chooser.title=目标文件 +scheme.exporter.ui.file.chooser.message=导出到 +scheme.exporter.ui.scheme.exported.message={0} {1}已导出为{2} +scheme.exporter.ui.cannot.write.message=无法写入选定的文件/位置。 +scheme.exporter.ui.export.failed=导出失败: {0} +code.style.widget.configure.indents=为 {0} 配置缩进… +code.style.set.from.menu.language=语言 + +settings.editor.font.restored.defaults=恢复默认设置 +settings.editor.font.typography.settings=版式设置 +settings.editor.font.overwrite=使用配色方案字体,而不是 +settings.editor.console.font.overwrite=使用控制台字体,而不是 +settings.editor.font.monospaced=等宽 +settings.editor.font.proportional=成比例 +settings.editor.font.updating=正在更新… +settings.editor.font.main.weight=主要粗细: +settings.editor.font.bold.weight=加粗: +settings.editor.font.recommended=建议 +settings.editor.font.bold.weight.hint=用于配色方案中的粗体设置 +settings.editor.font.preview.hint=输入要预览的任何文本 +settings.editor.font.missing.custom.font=<字体缺失: {0}> +checkbox.show.only.monospaced.fonts=仅显示等宽字体 +primary.font=字体: +secondary.font=次要字体: +use.ligatures=启用连写 +comment.use.ligatures.with.reader.mode=请参阅阅读器模式中的行高和连字 +ligatures.tooltip=使用多个字符作为单个
      连字。连字增强代码
      可读性。使用右侧的部分
      预览变更 +ligatures.jre.warning=您运行 {0} 使用的 JRE
      已知存在与连字支持相关的
      性能问题。
      请使用 JetBrains Runtime 启用连字。 +settings.editor.font.none=<无> +settings.editor.font.overridden.message=当前编辑器字体: {0}, {1} +settings.editor.font.defined.in.color.scheme.message= — 在配色方案中定义 +checkbox.color.background=背景 +checkbox.color.foreground=前景 +checkbox.color.effects=效果 +checkbox.color.error.stripe.mark=误差条纹标志 +combobox.effect.bordered=描边 +combobox.effect.underscored=下划线 +combobox.effect.boldunderscored=加粗下划线 +combobox.effect.underwaved=波浪下划线 +combobox.effect.strikeout=删除线 +combobox.effect.bold.dottedline=虚线 +checkbox.font.bold=粗体 +checkbox.font.italic=斜体 +label.font.type=字体类型: +label.inherit.attributes=继承的属性: +title.diff=差异与合并 +title.vcs=VCS +title.file.status.colors=文件状态颜色 +title.file.status.color=文件状态颜色: +title.file.status.color.restore.default=恢复默认值 +file.status.colors.header.status=文件状态 +title.scope.based=基于范围 +title.colors.and.fonts=配色方案 +title.colors.scheme.font=配色方案字体 +title.console.font=控制台字体 +label.fallback.fonts.list.description=用于主字体
      不支持的符号 +label.font.size=字体大小: +editbox.font.size=大小: +editbox.line.spacing=行高: +title.path.variables=路径变量 +editbox.path.macro.value=值: +editbox.path.macro.name=名称: +button.edit=编辑(&E) +error.variable.already.exists=变量的名字{0}已经存在 +column.name=名称 +column.value=值 +title.add.variable=添加变量 +title.edit.variable=编辑变量 +text.no.path.variables=没有路径变量 +command.exit=退出 +exit.confirm.title=确认退出 +exit.confirm.prompt=确定要退出吗? +exit.confirm.prompt.tasks=后台任务正在运行。确定要停止它们并退出吗? +exclude.from.completion.group=排除导入并完成 +edit.code.folding.options=打开代码折叠选项 +auto.import=自动导入 +title.tabs.and.indents=制表符和缩进 + +launcher.script.title=创建启动器脚本 +launcher.script.luke=现在可以在 Toolbox App 设置中管理启动器脚本创建。
      请参阅 Toolbox App 公告了解更多详细信息。 +launcher.script.prompt=您可以创建启动器脚本,从命令行启用在 {0} 中打开文件和项目。
      请指定脚本的名称及其创建路径: +launcher.script.overwrite=文件 ''{0}'' 已存在.要改写它吗? +launcher.script.overwrite.button=覆盖(&O) +launcher.script.sudo.prompt=请输入您的密码以在 ''{0}'' 中创建一个启动器脚本 +launcher.script.progress=正在创建启动器脚本… + +desktop.entry.title=创建桌面条目 +# suppress inspection "UnusedProperty" - used from Rider +desktop.entry.system.wide=为所有用户(需具备超级用户权限) +desktop.entry.success=您现在可以退出 {0} 并从系统菜单中启动它。
      如果未显示新菜单条目,请重新启动登录会话。 +desktop.entry.xdg.missing=不幸的是,xdg-utils似乎无法在您的系统上. +desktop.entry.icon.missing=在"{0}"中无法找到合适的应用程序图标。 +desktop.entry.script.missing=在"{0}"中无法找到合适的启动脚本。 +desktop.entry.sudo.prompt=请输入您的密码来创建桌面条目 +desktop.entry.progress=正在创建桌面条目… + +# suppress inspection "UnusedProperty" +# suppress inspection "UnusedProperty" + +arrangement.title.settings.tab=排列 +arrangement.text.empty.rule=<空规则> +arrangement.action.rule.add.text=添加规则 +arrangement.action.rule.add.description=添加新的排列规则 +arrangement.action.section.rule.add.text=添加部分规则 +arrangement.action.section.rule.add.description=添加新部分排列规则 +arrangement.action.rule.remove.text=移除规则 +arrangement.action.rule.remove.description=移除所选排列规则 +arrangement.action.rule.edit.text=编辑规则 +arrangement.action.rule.edit.description=编辑所选排列规则 +arrangement.action.rule.move.up.text=向上移动 +arrangement.action.rule.move.up.description=向上移动所选排列规则 +arrangement.action.rule.move.down.text=向下移动 +arrangement.action.rule.move.down.description=向下移动所选排列规则 +arrangement.action.alias.rule.add.edit.text=配置匹配规则的别名 +arrangement.action.alias.rule.add.edit.description=配置匹配规则的别名 +arrangement.settings.section.groups=分组规则 +arrangement.settings.section.match=匹配规则 +arrangement.settings.section.rule.custom.token.title=别名定义的规则 +arrangement.settings.section.rule.sequence=别名定义的规则 +arrangement.settings.additional.force.combobox.name=力重新安排: +arrangement.settings.additional.force.rearrange.always=始终 +arrangement.settings.additional.force.rearrange.never=从不 +arrangement.settings.additional.force.rearrange.according.to.dialog=使用当前模式(在“重新格式化代码”对话框中) +arrangement.settings.additional.title=附加设置 +arrangement.settings.validation.duplicate.matching.rule=匹配规则必须在当前的设置是唯一的。重复的规则将被忽略 +arrangement.settings.validation.duplicate.section.text=部分在当前设置文本必须是惟一的。规则与复制的文本将被忽略。 +arrangement.settings.validation.empty.section.rule=段应该包含至少一个布局条目,否则它将不会被插入。 +arrangement.settings.validation.end.section.rule.without.start=无法找到当前结束规则的开始部分规则。 + + +checkbox.spaces.around.lambda.arrow=Lambda 箭头 +checkbox.spaces.around.method.ref.dbl.colon.arrow=双冒号引用方法 +settings.code.style.general.enable.formatter.tags=使用代码注释中的标记开启/关闭格式化程序 +settings.code.style.general.formatter.off.tag=关: +settings.code.style.general.formatter.on.tag=开: +settings.code.style.general.formatter.marker.regexp=正则表达式 +settings.code.style.general.formatter.marker.invalid.regexp=无效的正则表达式 +settings.code.style.general.autodetect.indents=检测和使用现有的文件缩进进行编辑 +import.scheme.chooser.source=从: +import.scheme.chooser.destination=到: +checkbox.reformat.on.typing.rbrace=重新格式化块上输入'}' +settings.code.style.import.xml.error.invalid.file=该文件似乎不是一个有效的 IntelliJ IDEA 的 XML 格式, 它应该包含 ''code_scheme根'' 元素, 已找到 ''{0}'' 来代替。 +settings.code.style.import.xml.error.missing.scheme.name=找不到方案 'name' 特性。 +settings.code.style.import.xml.error.can.not.load=无法加载代码样式配置方案 {0}. + +group.richcopy=富文本复制 +checkbox.enable.richcopy.label=将 {0} 作为富文本复制 +checkbox.enable.richcopy.comment=将复制所有格式,包括字体、颜色等 +combobox.richcopy.color.scheme=复制的片段的配色方案: +combobox.richcopy.color.scheme.active=活动方案 + +settings.code.style.default.general=默认 + +reformat.changed.text.file.too.big.notification.groupId=重新格式化更改后的文本 +reformat.changed.text.file.too.big.notification.title=无法计算改变的范围 +reformat.changed.text.file.too.big.notification.text=文件 {0} 过大或有太多的变化 +bulk.reformat.prepare.progress.text=准备中… +bulk.reformat.process.progress.text=正在处理… + +code.style.indent.detector.reject=将新行缩进 {0} +code.style.indent.detector.disable=为项目禁用缩进检测 +code.style.indent.detector.apply=已检测到将新行缩进 {0} +code.style.indent.detector.reindent=将文件重新缩进 {0} +code.style.indent.detector.notification.content=缩进检测已禁用 +code.style.indent.provider.notification.re.enable=撤消 +code.style.indent.provider.notification.settings=代码样式设置 + +editorsearch.replace.action.text=替换 +editorsearch.replace.all.action.text=全部替换 +editorsearch.matches={0, choice, 0#0 个结果|1#1 个结果|2#{0} 个结果} +editorsearch.current.cursor.position={0}/{1} +editorsearch.toomuch={0}+ +editorsearch.noselection=无选区 +editorsearch.empty.string.matches=宽泛模式 +editorsearch.in.selection=仅在选择范围内搜索 +editorsearch.in.selection.with.hint=在选择范围内搜索。{0}以搜索选定文本 +code.style.other.file.types=其他文件类型 +code.style.other.label=文本文件和不支持的文件类型: + +checkbox.line.comment.add.space=在行注释开始处添加空格 + +rainbow.option.panel.display.name=语义高亮显示 +checkbox.stop.1=颜色 #1 +checkbox.stop.2=颜色 #2 +checkbox.stop.3=颜色 #3 +checkbox.stop.4=颜色 #4 +checkbox.stop.5=颜色 #5 +checkbox.rainbow=语义高亮显示 +rainbow.option.description=从下面的光谱中为每个参数或变量分配
      自己的颜色: + +color.scheme.reset.message=将方案重置为其默认值?\n注意:您对方案的所有更改都将丢失。 +color.scheme.reset.title=恢复默认设置 + +color.scheme.theme.change.confirmation=看起来您设置了 {0} 编辑器配色方案。\n要为整个 {1} 设置 {0} 主题吗? +color.scheme.theme.change.confirmation.title=更改 {0} 主题 + +settings.code.style.reset.to.defaults.message=将所有代码样式设置更改为默认值?\n注意: 您对该方案所做的所有变更都将丢失。 +settings.code.style.reset.to.defaults.title=恢复默认设置 +editor.settings.keep.trailing.spaces.on.caret.line=保留文本光标行上的尾随空格 +settings.editor.scheme.copy=副本… +settings.editor.scheme.delete=删除… +settings.editor.scheme.import=导入 {0} +settings.editor.scheme.export=导出 +settings.editor.scheme.reset=恢复默认设置 +settings.editor.scheme.copy.to.project=复制到项目… +settings.editor.scheme.copy.to.ide=复制到IDE… +settings.editor.scheme.copy.to.project.title=复制设置到项目 +settings.editor.scheme.copy.to.project.message=使用{0}的值覆盖项目设置? +settings.editor.scheme.import.success={0}已导入{1}方案。 +settings.editor.scheme.import.failure=导入失败: {0}不是有效的方案。 +settings.editor.scheme.import.chooser.button=导入 +settings.editor.scheme.import.chooser.title=选择方案 +settings.code.style.visual.guides=视觉指南 +settings.code.style.visual.guides.optional=可选 +settings.code.style.general.visual.guides.hint=制定一个指南(80)或几个(80, 120) +settings.export.target.intellij.xml=IntelliJ IDEA 代码样式 XML +settings.export.target.color.scheme=IntelliJ IDEA 配色方案(.icls) +settings.export.target.color.scheme.plugin=配色方案插件 .jar +settings.import.source.color.scheme=IntelliJ IDEA 配色方案(.icls)或设置(.jar) +settings.export.inspection.profile.xml=IntelliJ IDEA 检查配置文件 XML +settings.import.inspection.profile.xml=IntelliJ IDEA 检查配置文件 XML + +project.code.style.migration.title=项目代码样式设置迁移 +project.code.style.migration.message=您的项目 {0} 的代码样式设置已被迁移到新的格式。我们保留了旧格式以向后兼容,。 +margin.columns=列 +combobox.lineseparator.for.new.files.hint=适用于新文件 + +integer.field.value.expected=应为值 +integer.field.value.out.of.range=值''{0}''超出范围{1}..{2} +integer.field.value.not.a.number=值''{0}''不是整数 +integer.field.value.default=默认 +settings.soft.margins.empty.list=无 +settings.default.value.prefix=默认: {0} + +settings.hints=嵌入提示 + +light.edit.close.title=关闭文档 +light.edit.close.message=此文档已被修改。\n要保存变更吗? +light.edit.close.save=保存 +light.edit.close.discard=放弃 +light.edit.close.cancel=取消 +light.edit.associate.fileTypes.error.message=无法将扩展与 {0} 关联 + +light.edit.exit.title=保存文档 +light.edit.exit.message=存在未保存的文档。\n要保存变更吗? + +intention.category.light.edit.mode=LightEdit 模式 +light.edit.open.in.project.intention=在项目中打开文件… +light.edit.open.in.project.progress.message=正在搜索项目根 +light.edit.open.in.project.dialog.title=选择项目根目录 +light.edit.action.recentFile.text=打开最近(_R) + +light.edit.unableToOpenFile.text={0} 是不受支持的二进制文件 +light.edit.unableToOpenFile.title=无法打开文件 + +light.edit.autosave.widget.text=自动保存: {0} +light.edit.autosave.widget.off=关 +light.edit.autosave.widget.on=开启 +light.edit.autosave.widget.popup.title=自动保存更改 +light.edit.autosave.widget.popup.text={0}保存所有打开的文件。 +light.edit.autosave.widget.popup.text.on.close=窗口关闭时 +light.edit.autosave.widget.popup.text.time=每 {0} 秒 +light.edit.autosave.widget.popup.text.deactivation=选项卡/窗口关闭时
      或窗口停用时 + +light.edit.status.bar.notification.label.text=LightEdit 模式。 +light.edit.status.bar.notification.link.text=访问完整 IDE +light.edit.open_current_file_in_project.text=在项目中打开当前文件… +light.edit.open_recent_project.text=打开最近的项目… +light.edit.create_new_project.text=创建新项目… +light.edit.status.bar.notification.tooltip=文件在 LightEdit 模式下打开: 具有
      基本代码导航和折叠的简单文本编辑器

      在项目中打开文件可获得完整的 IDE 功能
      。 +light.edit.status.bar.notification.tooltip.link.text=有关 LightEdit 模式的更多信息 +light.edit.confirmation.dialog.title=在项目中打开 +light.edit.confirmation.stay.button=继续使用 LightEdit +light.edit.confirmation.project.button=在项目中打开 +light.edit.confirmation.content.title=文件在 LightEdit 中打开。是否在项目中打开? +light.edit.confirmation.content.text=此文件在简化的编辑器 - LightEdit 模式下打开。
      要获取高级代码分析等全部 IDE 功能,
      请在新项目中打开此文件。您可以稍后再这样做。 +light.edit.confirmation.do.not.ask=不再询问 + +light.edit.file.creation.failed.message=无法创建 {0},必须将新文档 {1} 保存到其他位置。 +light.edit.file.creation.failed.hide.message=隐藏 + +light.edit.reload.action=从磁盘重新加载(&L) + +custom.option=自定义… +custom.option.with.shortcut=自定义({0}) +configurable.CodeStyleSchemesConfigurable.display.name=代码样式 +configurable.ArrangementRuleAliasesListEditor.display.name=自定义复合令牌 +label.new.alias.name=新别名: +dialog.title.create.new.alias=创建新别名 +dialog.title.copy.alias=复制别名 + +configurable.editor.tabs.display.name=编辑器选项卡 +checkbox.highlight.usages.of.element.at.caret=文本光标处元素的用法 +checkbox.show.inline.dialog.on.local.variable.references=为局部变量显示内联对话框 +group.refactorings=重构 +editor.options.scrolling=滚动 +editor.options.prefer.scrolling.editor.label=文本光标行为: +editor.options.prefer.scrolling.editor.canvas.to.keep.caret.line.centered=保持文本光标不动,滚动编辑器画布 +editor.options.prefer.moving.caret.line.to.minimize.editor.scrolling=移动文本光标,最小化编辑器滚动 +editor.options.save.files.group=保存时 +editor.options.gutter.group=间距 +editor.options.line.feed=确保每个保存的文件均以换行结束 +editor.options.remove.trailing.blank.lines=移除保存文件末尾尾随的空行 +editor.options.quick.doc.on.mouse.hover=悬停时显示快速文档 +editor.options.highlight.modified.line=在间距中高亮显示修改的行 +editor.options.highlight.modified.line.error.stripe=在滚动条上的错误条纹中高亮显示修改的行 +editor.options.whitespace.line.color=使用不同颜色高亮显示具有仅空格修改的行 +editor.options.tooltip.delay=工具提示延迟: +editor.options.ms=毫秒 +completion.option.match.case=区分大小写: +completion.option.first.letter.only=仅首字母 +completion.option.all.letters=所有字母 +completion.option.sort.suggestions.alphabetically=按字母顺序对建议排序 +console.fold.console.lines=折叠包含以下项的控制台行: +console.enter.substring.folded=输入要折叠的控制台行的子字符串: +console.fold.exceptions=异常: +console.enter.substring.dont.fold:=输入不想折叠的控制台行的子字符串: +console.fold.nothing=不折叠任何内容 +console.no.exceptions=无异常 +checkbox.use.small.font.for.labels=为标签使用小字体 +editbox.blanklines.around.field.in.interface=接口中的字段周围: +editbox.blanklines.around.method.in.interface=接口中的方法周围: +settings.editor.font.default=默认 +custom.option.description=设置自定义页面大小 + +intentions.are.not.available.message=更新索引时,意图不可用。 +settings.code.style.formatter.control.tab.title=格式化程序 +settings.code.style.general.tab.title=常规 + +code.style.scheme.default=默认 +code.style.scheme.project=项目 + +code.style.title.lang.specific=特定于语言 +notification.title.language.plugin.enable=有可用的已本地化 {0} +notification.action.language.plugin.install.and.enable=切换并重启 + +settings.code.style.builder.method.names=方法名称 +settings.code.style.builder.methods.tooltip=使用 , 分隔多个方法 + +title.advanced.settings=高级设置 +search.advanced.settings=搜索高级设置 +search.advanced.settings.nothing.found=找不到任何内容 +button.advanced.settings.reset=重置设置 +checkbox.advanced.settings.modified=仅显示已修改的内容 +advanced.setting.ide.show.fileType.icon.in.titleBar=在 IDE 帧标头中显示文件类型图标 +advanced.setting.ide.show.fileType.icon.in.titleBar.description=在 macOS 中,可以使用此图标将文件拖到不同的应用程序 +advanced.setting.ide.max.recent.projects=最近项目的最大数量 +advanced.setting.temporary.configurations.limit=临时运行/调试配置限制 +advanced.setting.localHistory.daysToKeep=在本地历史记录中存储变更的持续时间 +advanced.setting.localHistory.daysToKeep.description=不要使用本地历史记录作为主版本控制系统,因为 IDE 挂起时它可能会损坏 +advanced.setting.localHistory.daysToKeep.trailingLabel=天 +advanced.setting.edit.source.on.enter.key.request.focus.in.editor=按下 Enter 键时将焦点移动到编辑器 +advanced.setting.ide.open.readme.md.on.startup=如果项目启动时没有打开的文件,则打开 README.md 文件 +advanced.setting.editor.skip.copy.and.cut.for.empty.selection=在未选择任何内容的情况下调用“复制”或“剪切”操作时不复制/剪切当前行 +advanced.setting.ide.cycle.scrolling=在列表和树中循环滚动 +advanced.setting.ide.cycle.scrolling.description=在第一个元素上按向上键时选择最后一个元素,在最后一个元素上按向上键时选择第一个元素 +advanced.setting.editor.tab.painting=制表符渲染 +advanced.setting.ide.suppress.double.click.handler=禁用双击修改键快捷方式 +advanced.setting.ide.suppress.double.click.handler.description=Shift-Shift 用于“随处搜索”,Ctrl-Ctrl 用于“运行任何内容” +advanced.setting.bigger.font.in.project.view=增大项目视图中的字号 +advanced.setting.bigger.font.in.project.view.description=需要 IDE 重启 +advanced.setting.ide.settings.move.mouse.on.default.button=将鼠标光标放在对话框中的默认按钮上 +advanced.setting.ide.usages.page.size=在“在文件中查找/显示用法”预览中显示的最大结果数 +advanced.setting.ide.usages.page.size.description=增大此限值可能会显著增加 IDE 内存使用量 +advanced.setting.editor.show.special.chars=使用其 Unicode 名称缩写渲染特殊字符(例如控制代码) +advanced.setting.ide.tree.collapse.recursively=收起节点时,也收起下面所有展开的节点 +advanced.setting.ide.max.recent.files=最近文件的最大数量 +advanced.setting.ide.max.recent.locations=最近位置的最大数量 +advanced.setting.editor.comment.line.caret.down=通过行注释操进行注释后,将文本光标下移 +advanced.setting.editor.distraction.free.margin=免打扰模式下的左边距 +advanced.setting.editor.distraction.free.margin.description=指定 -1 以使用自动计算的边距(编辑器居中) +advanced.setting.editor.distraction.free.margin.trailingLabel=像素 +advanced.setting.editor.soft.wrap.force.limit=对代码行长度超过此值的文档强制进行自动换行 +advanced.setting.editor.soft.wrap.force.limit.trailingLabel=个字符 +advanced.setting.editor.soft.wrap.force.limit.description=增大此限值将对编辑器性能产生负面影响 +advanced.setting.editor.maximize.on.double.click=通过双击编辑器选项卡执行“隐藏所有工具窗口”/“还原窗口” +advanced.setting.editor.maximize.in.splits.on.double.click=通过双击编辑器选项卡执行“最大化编辑器”/“标准化拆分” +advanced.setting.editor.open.inactive.splitter=导航到文件时,首选在非活动拆分窗格中选择现有选项卡 +advanced.setting.terminal.buffer.max.lines.count=终端回滚缓冲区大小 +advanced.setting.terminal.buffer.max.lines.count.trailingLabel=行 +advanced.setting.terminal.escape.moves.focus.to.editor=使用 Escape 将焦点移动到编辑器 +advanced.setting.editor.reuse.not.modified.tabs=在同一个选项卡中打开声明源 +advanced.setting.editor.reuse.not.modified.tabs.description=导航到方法/类/变量声明时,如果没有任何变更,包含该声明的源文件将替换当前选项卡 +advanced.setting.editor.open.tabs.in.main.window=在主 IDE 窗口中打开从分离窗口调用的声明源 +advanced.setting.editor.open.tabs.in.main.window.description=从分离窗口中的选项卡导航到方法/类/变量声明时,新的选项卡将在主 IDE 窗口中打开。重写“在同一选项卡中打开声明源”。 +advanced.setting.ide.macos.disable.native.shortcut.symbols=对 macOS 键盘快捷键使用单词而不是符号 +advanced.setting.ide.macos.disable.native.shortcut.symbols.description=将快捷键符号 ⎋、⌫、⌥ 等等更改为 Esc、Backspace、Option 等 +group.advanced.settings.other=其他 +group.advanced.settings.ide=IDE +group.advanced.settings.ui=用户界面 +group.advanced.settings.project.view=项目视图 +group.advanced.settings.startup=启动 +group.advanced.settings.editor=编辑器 +group.advanced.settings.editor.tabs=编辑器选项卡 +group.advanced.settings.find=查找/替换 +group.advanced.settings.terminal=终端 +feedback.form.title=反馈 +feedback.form.evaluation.prompt=将您的体验告诉我们 +feedback.form.prompt=分享您的反馈 +feedback.form.comment=您开始试用已有几天了,您的意见对我们很重要。
      这是您唯一一次看到这条消息。 +feedback.form.rating={0} 满足您需求的程度如何? +feedback.form.rating.required=选择评分 +feedback.form.evaluation.details=请提供详细信息: +feedback.form.details=描述: +feedback.form.evaluation.details.emptyText=您是否遇到过任何问题或者是否缺少什么? +feedback.form.details.emptyText=请输入您的请求的详细信息 +feedback.form.details.required=添加说明 +feedback.form.email=电子邮件: +feedback.form.need.support=需要支持团队的帮助 +feedback.form.email.required=输入您的电子邮箱 +feedback.form.email.invalid=无效的电子邮件地址 +feedback.form.share.system.information=共享 +feedback.form.share.system.information.link=系统信息 +feedback.form.consent=提交此表单,即表明我同意 JetBrains 使用我的电子邮件地址
      就我的反馈与我联系。我同意 JetBrains 根据 JetBrains 隐私政策,出于此目的而使用第三方服务
      处理上述数据。 +feedback.form.ok=发送反馈 +feedback.form.cancel=不,谢谢 +feedback.form.system.information.title=系统信息 +feedback.form.notification.group=反馈 +feedback.form.share.later=如果您想日后分享您的反馈,请使用帮助 | 发送反馈菜单 +feedback.form.thanks.title=感谢您的反馈 +feedback.form.error.title=无法发送反馈 +feedback.form.error.text=请通过我们的网站发送您的反馈 +feedback.form.thanks=帮助打造更出色的 {0}! +feedback.form.topic=主题: +feedback.form.topic.bug=错误报告 +feedback.form.topic.howto=如何? +feedback.form.topic.problem=问题 +feedback.form.topic.suggestion=建议 +feedback.form.topic.misc=其他 +feedback.form.topic.required=选择主题 +feedback.form.issue=请考虑在我们的跟踪器中创建问题 + +reformat.again.to.remove.custom.line.breaks=再次重新格式化以移除自定义换行符 +advanced.setting.terminal.type.ahead=键盘缓冲 +advanced.setting.terminal.type.ahead.latency.threshold=键盘缓冲延迟阈值 +advanced.setting.terminal.type.ahead.latency.threshold.trailingLabel=毫秒 +advanced.setting.confirm.rerun.with.termination=确认在进程终止时重新运行 +settings.hints.group.code.vision=Code Vision +settings.hints.group.types=类型 +settings.hints.group.parameters=形参名称 +settings.hints.group.annotations=注解 +settings.hints.group.method.chains=方法链 +settings.hints.group.lambdas=Lambda +settings.hints.group.code.author=代码作者 +settings.hints.group.other=其他 +settings.hints.group.values=值 +settings.hints.group.url.path=URL 路径 +group.advanced.settings.documentation.components=文档组件 +advanced.setting.documentation.components.enable.inline.code.highlighting=内联代码的基本语法高亮显示 +advanced.setting.documentation.components.enable.code.blocks.highlighting=多行代码块的基本语法高亮显示 +advanced.setting.documentation.components.enable.highlighting.of.links=代码元素链接的语法高亮显示 +checkbox.block.comment.add.space=在块注释周围添加空格 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/ArquillianBundle.properties b/original-plugin-raw/zh/messages/ArquillianBundle.properties new file mode 100644 index 000000000..b02f81853 --- /dev/null +++ b/original-plugin-raw/zh/messages/ArquillianBundle.properties @@ -0,0 +1,62 @@ +arquillian.junit.run.with.required=Arquillian jUnit 测试类应当是 abstract 类或使用 '@RunWith(Arquillian.class)' 注解 +arquillian.deployment.wrong.return.type=使用 @Deployment 注解的方法应返回 ShrinkWrap 归档 +arquillian.deployment.wrong.signature=使用 @Deployment 注解的方法应为 public static,并且没有任何参数 +arquillian.deployment.too.many=Arquillian 测试类只能具有一个带 @Deployment 注解的方法 +arquillian.deployment.absent=Arquillian 测试类应当具有带 @Deployment 注解的方法 +arquillian.deployment.candidate=方法可以使用 @Deployment 注解 +arquillian.testng.should.extend.arquillian=Arquillian TestNG 测试类应当是 abstract 类或扩展 org.jboss.arquillian.testng.Arquillian +arquillian.run.configuration.tab.title=Arquillian 容器 + +arquillian.junit.configuration.description=Arquillian JUnit 测试配置 +arquillian.junit.configuration.name=Arquillian JUnit + +arquillian.manual.configuration.name=手动 +arquillian.embedded.configuration.name=嵌入式 +arquillian.managed.configuration.name=托管 +arquillian.remote.configuration.name=远程 + +arquillian.testng.configuration.description=Arquillian TestNG 测试配置 +arquillian.testng.configuration.name=Arquillian TestNG + +arquillian.inspection.group.name=Arquillian +arquillian.inspection.name.deployment.signature=@Deployment 方法的签名错误 +arquillian.inspection.name.deployment.return.type=@Deployment 方法的返回类型错误 +arquillian.inspection.name.class.enabled=Arquillian 测试类应充分准备 +arquillian.inspection.name.too.many.deployment=Arquillian 测试类只能具有一个带 @Deployment 注解的方法 +arquillian.inspection.name.deployment.absent=Arquillian 测试类应当具有带 @Deployment 注解的方法 +arquillian.container.configuration.not.specified=未指定 Arquillian 容器配置 +arquillian.container.configuration.not.found=未找到 Arquillian 容器配置 ''{0}'' +arquillian.containers.configurable.display.name=Arquillian 容器 +arquillian.container.name.already.exist=具有名称 ''{0}'' 的 Arquillian 容器已存在 + +arquillian.container.add.library=添加新库 +arquillian.container.remove.library=移除库 +arquillian.container.edit.library=编辑库属性 +arquillian.libraries.type=库类型 +arquillian.libraries.title=依赖项 +arquillian.container.name.label=Arquillian 容器: +arquillian.action.add.exist.library=添加现有库 +arquillian.action.add.maven.dependency=添加 Maven 依赖项 +arquillian.run.failed.due.to.maven.activity=任何 maven 活动时无法运行;请稍后重试 +arquillian.container.qualifier=Arquillian.xml 容器限定符: +arquillian.settings.title=设置 +arquillian.remote.debug.transport=传输: +arquillian.remote.debug.transport.socket=套接字(&O) +arquillian.remote.debug.transport.shared.memory=共享内存(&S) +arquillian.remote.debug.mode=调试器模式: +arquillian.remote.debug.mode.attach=附加(&T) +arquillian.remote.debug.mode.listen=监听(&L) +arquillian.remote.debug.host=主机(&H): +arquillian.remote.debug.port=端口(&P): +arquillian.remote.debug.shared.memory.address=共享内存地址(&A) +arquillian.remote.debug=远程调试(&R) +arquillian.jvm.args.retrieve=正在评估远程 JVM 命令行实参 + +manual.container.configuration=手动容器配置 +select.container.configuration=选择容器配置 +add.new.container.configuration=添加新容器配置 +clone.container.configuration=克隆容器配置 +add.exist.library.dialog.title=添加库 +container.settings.tab.run=运行 +container.settings.tab.debug=调试 +arquillian.settings.configure=配置(&C) diff --git a/original-plugin-raw/zh/messages/AsmBundle.properties b/original-plugin-raw/zh/messages/AsmBundle.properties new file mode 100644 index 000000000..ad3928518 --- /dev/null +++ b/original-plugin-raw/zh/messages/AsmBundle.properties @@ -0,0 +1,13 @@ + +plan9.colors.and.fonts.keyword=关键字 +plan9.colors.and.fonts.line.comment=行注释 +plan9.colors.and.fonts.instruction=指令 +plan9.colors.and.fonts.pseudo.instruction=伪指令 +plan9.colors.and.fonts.string=字符串 +plan9.colors.and.fonts.label=标签 +plan9.colors.and.fonts.flags=标志 +plan9.colors.and.fonts.registers=注册 +plan9.colors.and.fonts.parenthesis=圆括号 +plan9.colors.and.fonts.operator=运算符 +plan9.colors.and.fonts.identifier=标识符 +filetype.plan9.description=x86 Plan9 程序集文件 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/AspBundle.properties b/original-plugin-raw/zh/messages/AspBundle.properties new file mode 100644 index 000000000..32482117f --- /dev/null +++ b/original-plugin-raw/zh/messages/AspBundle.properties @@ -0,0 +1 @@ +filetype.asp.core.description=有效服务器页面 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/AspectJBundle.properties b/original-plugin-raw/zh/messages/AspectJBundle.properties new file mode 100644 index 000000000..cb61765c0 --- /dev/null +++ b/original-plugin-raw/zh/messages/AspectJBundle.properties @@ -0,0 +1,103 @@ +plugin.title=AspectJ 支持 + + +maven.importer.no.dependency=在插件依赖项中找不到 AspectJ 编译器 .jar。检查 ''{0}'' 配置并重新导入项目,或手动设置编译器。 +maven.importer.aspect.library=无法解析模块 ''{2}'' 中的切面库 ''{0}:{1}''。 + +parser.message.type.def.expected=应为切面或类声明 +parser.message.annotation.expected=应为注解 +parser.message.pointcut.expression.expected=应为切入点表达式 + +highlighting.tooltip.link={2} +highlighting.tooltip.html={0} +highlighting.unsupported=IDEA 尚不支持 AspectJ 语句 +highlighting.declaration.conflict.in.class=''{0}'' 与来自 ''{1}'' 的类型间声明冲突 +highlighting.declaration.conflict.in.aspect=类型间声明 ''{0}'' 与 ''{1}'' 中的一个冲突 +highlighting.private.access=''{0}'' 在 ''{1}'' 中具有 private 访问权限 +highlighting.non.static.access=无法从 static 上下文引用非 static 成员 ''{0}'' +highlighting.protected.declaration=不允许 protected 类型间声明 +highlighting.nested.static=内部切面必须为 static +highlighting.generic.abstract=泛型切面必须为 abstract +highlighting.inherits.concrete=无法从具体 ''{0}'' 继承 +highlighting.inherits.aspect=类 ''{0}'' 无法从切面 ''{1}'' 继承 +highlighting.target.enum=无法对枚举类型进行类型间声明 +highlighting.target.interface=无法在接口上声明新成员类型 +highlighting.aspect.params=具体切面仅允许零实参构造函数 +highlighting.target.not.generic=目标类型 ''{0}'' 非泛型 +highlighting.wrong.num.of.type.refs=目标类型 ''{0}'' 需要 {1} 个类型 {1,choice, 1#参数|2#参数} +highlighting.wildcard.not.allowed=此处不允许使用通配符类型实参 +highlighting.explicit.constructor.call=缺少显式构造函数调用: 目标类型的字段初始值设定项将不会执行 + +quickFix.family.name=AspectJ +quickFix.make.static=设为 static +quickFix.make.abstract=设为 abstract + +inspection.unused.display.name=切面 + +item.presentation.location=({0} 内) + +file.template.group=AspectJ + +action.AJ.NewAspect.text=切面 +action.AJ.NewAspect.description=创建新的 AspectJ 切面 +action.AJ.PushIn.text=推入 ITD(_I)… +action.AJ.PushIn.description=将类型间声明推入其目标类 + +action.create.aspect.name=创建新切面 +action.create.aspect.description=创建新切面 +action.create.aspect.kind.class=Aspect +action.create.aspect.kind.annotation=@Aspect +action.create.aspect.title=创建切面 {0} +action.create.aspect.error=无法创建切面 +action.create.aspect.bad.template=无法创建切面 - 模板 {0} 不正确 + +action.push.in.name=推入 +action.push.in.title=推入类型间声明 +action.push.in.wrong.position=推入重构只能在类型间声明、切面、软件包或模块上执行 +action.push.in.delete.aspects=删除空切面(&D) +action.push.in.nothing.found=找不到类型间声明 +action.push.in.bad.target=无法解析目标类(''{0}'') +action.push.in.compiled.target=无法推入已编译的类 ''{0}'' +action.push.in.interface=不支持推入接口(''{0}'') +action.push.in.type.pattern=类型模式 ''{0}'' 不支持推入 +action.push.in.field.conflict=字段 ''{0}'' 与 ''{1}'' 中的一个冲突 +action.push.in.class.conflict=内部类 ''{0}'' 与 ''{1}'' 中的一个冲突 +action.push.in.method.conflict=方法 ''{0}'' 与 ''{1}'' 中的一个冲突 +action.push.in.preview.sources=从以下位置({0})移动 ITD: +action.push.in.preview.usages={1,choice, 1#1 个文件|2#{1,number} 个文件}中{0,choice, 0#没有声明|1#有 1 个声明|2#有 {0,number} 个声明} +action.push.in.progress=正在执行重构… + +facet.validation.unknown.entry=未知的切面路径条目 ''{0}'' +facet.validation.stray.entry=切面路径条目 ''{0}'' 不在模块的类路径中 + +compiler.ajc.name=Ajc +compiler.ajc.select.path=选择 AspectJ 编译器的路径('aspectjtools.jar') +compiler.ajc.checking=正在检查编译器版本 +compiler.ajc.no.jdk=未配置项目 JDK +compiler.ajc.bad.heap=堆大小无效 +compiler.ajc.test.ok=成功 +compiler.ajc.error=编译器错误 + +aspect.path.add.title=选择切面路径条目 +aspect.path.no.items.title=没有要添加的项 +aspect.path.no.deps.message=找不到合适的依赖项。 + +structure.view.toggle.show.inter-type=类型间声明(&I) +structure.view.action.show.inter-type=显示类型间声明 +aj.button.test=测试(&T) +border.title.ajc.options=Ajc 选项 +command.line.parameters=命令行形参 +checkbox.delegate.to.javac=委托给 Javac +label.command.line.parameters=命令行形参: +checkbox.enable.annotation.processing.options=启用注解处理选项 +checkbox.generate.debug.info=生成调试信息 +label.path.to.aspectjtools.jar=aspectjtools.jar 路径: +produce.annotation.processing.options.for.experimental.ajc.builds.which.are.able.to.handle.them=生成注解处理选项(针对能够处理注解的实验性 Ajc 构建) +use.javac.to.compile.modules.without.aspectj.facet.or.with.post.compile.weaving.enabled=使用 Javac 编译没有 AspectJ facet 的模块或启用编译后编织的模块 +label.aspect.path=切面路径: +border.title.compiler=编译器 +checkbox.post.compile.weave.mode=编译后编织模式 +requires.settings.java.compiler.ajc.delegate.to.javac=需要“设置 | … | Java 编译器 | Ajc | 委托给 Javac“ + +migration.project.aspect.path=该项目已配置项目范围的切面路径。此功能不再受支持。检查项目配置并为各个模块设置切面路径。使用了以下库: {0} +maven.importer.project.jdk=无法解析 'aspectj-maven-plugin' 的依赖项。将项目 SDK 设置为 Java 8 (或更早版本),然后重新导入项目。 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/BVBundle.properties b/original-plugin-raw/zh/messages/BVBundle.properties new file mode 100644 index 000000000..669a23e0c --- /dev/null +++ b/original-plugin-raw/zh/messages/BVBundle.properties @@ -0,0 +1,28 @@ +bv.framework.name=Bean 验证 + +tool.window.name=Bean 验证 + +actions.show.constraints=约束 +actions.show.validators=验证器 +constraints.config.inspection=Bean Validation 文件中不正确的元素 +validation.config.inspection=Bean Validation 文件中不正确的元素 +is.not.a.constraint=''{0}'' 不是约束 +is.not.an.annotation=''{0}'' 不是 Java 注解 +should.be.boolean.value=应为 'true' 或 'false' +should.be.number=应为介于 ''{0}'' 到 ''{1}'' 之间的数字 +cant.parse.float=应为 Java 浮点数 +cant.parse.double=应为 Java 双精度数 +annotation.params.missed=缺少以下注解形参 +create.missing.elements=添加缺少的参数 +xml.defined.constraints=约束映射 +is.not.enum.constant.or.extra.spaces.detected=''{0}'' 不是枚举常量或有多余的空格 +cannot.resolve.enum.constant=无法解析 ''{0}'' +create.enum.constant=创建枚举常量 + +constraint.mapping.converter.recursive.inclusion.error=递归包含当前文件 +constraint.mapping.converter.resolve.error=无法解析文件 ''{0}'' (未包含在文件集中?) +label.unknown=@unknown + +bv.classes.gutter.name=Bean 验证约束类 +bv.config.gutter.name=Bean 验证配置文件 +bv.open.tool.window=打开 Bean 验证窗口 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/BVInspectionBundle.properties b/original-plugin-raw/zh/messages/BVInspectionBundle.properties new file mode 100644 index 000000000..a5e134ff8 --- /dev/null +++ b/original-plugin-raw/zh/messages/BVInspectionBundle.properties @@ -0,0 +1,6 @@ +model.inspection.group.name=Bean 验证 +create.constraint.validator=创建约束验证器 {0} +min.max.inspection=Bean Validation 注解中不正确的 'min' 和 'max' 值 +max.value.is.less.than.min='max' 值小于 'min' 值 +swap.min.max=交换 'min' 和 'max' +min.value.is.negative='min' 值为负 diff --git a/original-plugin-raw/zh/messages/BackgroundTaskBundle.properties b/original-plugin-raw/zh/messages/BackgroundTaskBundle.properties new file mode 100644 index 000000000..56a4ff511 --- /dev/null +++ b/original-plugin-raw/zh/messages/BackgroundTaskBundle.properties @@ -0,0 +1,98 @@ +exportable.ApplicationTasksOptions.presentable.name=全局 File Watcher +settings.name=File Watcher +settings.page.comment=File Watcher 跟踪对项目文件的变更,并使用指定的形参运行配置的第三方程序。在保存和进行外部更改时可以使用 File Watcher 来执行某些操作,例如转换已编辑的文件或使用外部格式化程序来格式化代码。 +settings.no.watchers.configured=未配置 File Watcher +dialog.title.new.file.watcher=新建 File Watcher +dialog.title.edit.file.watcher=编辑 File Watcher +inspections.group.name=File Watcher +inspection.name.task.problems=File Watcher 问题 +editor.notification.question.available.for.file=启用 ''{0}'' File Watcher? +editor.notification.question.available.for.file.with.description=启用 ''{0}'' File Watcher (描述: {1})? +editor.notification.question.text.part.that.becomes.link.to.settings=File Watcher +execution.exception.title=无法运行 File Watcher ''{0}''。 +execution.exception.message=该观察程序已被禁用
      错误: {0} +inspection.empty.message=空消息 +invalid.executable=可执行文件无效 +watcher.export=导出观察程序 +watcher.import=导入观察程序 +label.export.watchers.to=将观察程序导出至: +watcher.choose.file.or.dir=选择文件或目录 +watcher.export.choose.file.description=选择导出 File Watcher 的目标 *.xml 文件或目录 +watcher.export.successfully=已成功导出您的设置。 +watcher.import.choose.file=选择带有观察程序的文件 +watcher.import.replace=要重写 {0} File Watcher 吗? +watcher.import.empty=找不到要导入的观察程序。 +watcher.export.overwrite.file=要替换现有文件吗? +unknown.scope.tail.hint.in.watchers.list=[未知范围] +action.FileWatcher.runForFiles.text=运行 File Watcher +action.FileWatcher.runForFiles.description=为文件运行可用的 File Watcher +settings.file.watchers.column.level=级别 +settings.file.watchers.column.name=名称 +settings.file.watchers.column.enabled=已启用 +settings.file.watchers.import.file.watchers.title=导入 File Watcher +settings.file.watchers.error=错误 +settings.file.watchers.info=信息 +custom.file.watcher.name.placeholder= +popup.title.choose.template=选择模板 +button.create.file.watcher.copy=复制 +button.import.file.watcher=导入 +button.export.file.watcher=导出 +button.save.exported.file.watchers=保存 + +file.watcher.dialog.status.text.program.path.not.set=[未设置程序路径] +file.watcher.dialog.label.name=名称(&N): +file.watcher.dialog.title.files.to.watch=要观察的文件 +file.watcher.dialog.label.file.type=文件类型(&T): +file.watcher.dialog.label.scope=范围(&S): +file.watcher.dialog.label.track.only.root.files=仅跟踪根文件 +file.watcher.dialog.warning.label.no.such.files.in.scope=

      范围中没有文件
      +file.watcher.dialog.title.tool.to.run.on.changes=要在变更上运行的工具 +file.watcher.dialog.label.program=程序(&P): +file.watcher.dialog.label.arguments=参数(&A): +file.watcher.dialog.label.output.paths.to.refresh=要刷新的输出路径(&O): +file.watcher.dialog.tooltip.output.paths.to.refresh=程序用于存储输出的文件。IDE 使用这些文件检测生成的文件。 +file.watcher.dialog.separator.working.directory.and.environment.variables=工作目录和环境变量 +file.watcher.dialog.separator.advanced.options=高级选项 +file.watcher.dialog.label.working.directory=工作目录(&W): +file.watcher.dialog.label.environment.variables=环境变量(&E): +file.watcher.dialog.label.immediate.synchronization=自动保存编辑的文件以触发观察程序 +file.watcher.dialog.label.run.on.external.changes=进行外部更改时触发观察程序 +file.watcher.dialog.label.run.regardless.of.syntax.errors=不管是否有语法错误,均触发观察程序 +file.watcher.dialog.label.create.output.file.from.stdout=从 stdout 创建输出文件 +file.watcher.dialog.label.show.console=显示控制台: +file.watcher.dialog.label.output.filters=输出筛选器: +file.watcher.dialog.hint.output.filters.regexp=每行都是一个正则表达式,可用的宏: $FILE_PATH$、$LINE$、$COLUMN$ 和 $MESSAGE$ +file.watcher.dialog.list.item.show.console.always=始终 +file.watcher.dialog.list.item.show.console.on.error=遇到错误时 +file.watcher.dialog.list.item.show.console.never=从不 +file.watcher.dialog.error.label.unknown.file.type=
      未处理未知文件
      +file.watcher.dialog.error.label.unknown.scope=
      未知范围
      +filetype.file.watcher.dialog.any.description=任意 + +before.launch.task.run.file.watchers=运行 File Watcher +progress.title.running.file.watchers=正在运行 File Watcher… +progress.text.running.file.watcher.0=正在运行 File Watcher ''{0}''… +command.name.file.watcher.0=File Watcher: {0} +button.stop.file.watcher=停止 +enable.file.watcher.editor.notification.link.label.yes=是 +enable.file.watcher.editor.notification.link.label.no=否 + +file.watcher.level.project=项目 +file.watcher.level.global=全局 + +untrusted.project.contains.enabled.file.watchers.title=运行 File Watcher? +untrusted.project.contains.enabled.file.watchers.question=运行 File Watchers 可能会执行潜在的恶意代码。如果不信任此源,请跳过运行。 +untrusted.project.contains.enabled.file.watchers.allow=信任项目并运行 +untrusted.project.contains.enabled.file.watchers.disallow=跳过 +untrusted.project.contains.enabled.file.watchers.review=审查… +actions.on.save.page.label.file.watcher=File Watcher +actions.on.save.link.edit=编辑… +actions.on.save.link.show.all.file.watchers=显示所有 File Watcher… +actions.on.save.comment.no.file.watchers=未配置 File Watcher +actions.on.save.comment.global.file.watcher.not.found=找不到使用此名称的全局 File Watcher +actions.on.save.comment.unknown.file.type=未指定文件类型 +actions.on.save.comment.unknown.scope=未指定范围 +actions.on.save.comment.program.not.specified=未指定程序 +actions.on.save.comment.auto.saves.0.files.runs.1=自动保存 {0} 文件。运行: {1} +actions.on.save.comment.tracks.0.files.runs.1=跟踪 {0} 文件。运行: {1} +actions.on.save.comment.tracks.all.files=所有 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/BatchBundle.properties b/original-plugin-raw/zh/messages/BatchBundle.properties new file mode 100644 index 000000000..188c408e9 --- /dev/null +++ b/original-plugin-raw/zh/messages/BatchBundle.properties @@ -0,0 +1,17 @@ +batch.jsr.name=批处理应用程序 + +required.artifact.type.ref.inspection=不正确的工件引用类型 +artifact.must.be.of.type=必须为 ''{0}'' 类型 +artifact.must.be.one.of.these.types=必须为其中一种类型: {0} + +model.inspection.group.name=批处理应用程序 +job.xml.config.inspection=无效的批处理作业 XML 文件 +batch.xml.config.inspection=无效的 'batch.xml' 文件 +batch.job.new.file=新建批处理作业文件 +create.new.batch.job.file=创建批处理作业文件 +self.reference.is.prohibited=禁止自引用 +required.checkpoint.algorithm='' 为必选项 +redundant.checkpoint.algorithm='' 冗余 +chunk.and.batchlet.not.allowed='' 和 '' 元素不允许一起使用 +create.batch.xml=创建 batch.xml +create.sample.job.xml=创建示例作业 XML diff --git a/original-plugin-raw/zh/messages/BehatBundle.properties b/original-plugin-raw/zh/messages/BehatBundle.properties new file mode 100644 index 000000000..960ca8ebb --- /dev/null +++ b/original-plugin-raw/zh/messages/BehatBundle.properties @@ -0,0 +1,20 @@ +# run-configuration +php.behat.run.display.name=Behat +php.behat.run.description=Behat +php.behat.run.configuration.ui.choose.scenario.dialog.title=选择方案 + +# settings +php.behat.configuration.ui.can.not.parse.version=无法解析版本命令输出。\n{0} +php.behat.getting.behat.version=正在获取 Behat 版本… + +# rerun +php.behat.run.configuration.rerun.incorrect.configuration=应为 Behat 运行配置类型,得到的是: ''{0}'' +php.behat.run.configuration.rerun.empty.test.path=找不到测试 ''{0}'' 的路径,路径: ''{1}'' +php.behat.run.configuration.rerun.failed.to.create.files.title=无法重新运行失败的测试。 + +# tests generation +php.behat.step.definition.creator.can.not.find.class.in.the.file=找不到 {0} 处的类 +php.behat.step.definition.creator.can.not.generate.caused=无法生成代码段 ({0}) +php.behat.step.definition.creator.can.not.create.container=''{1}'' 中已经存在同名(''{0}'')的不兼容文件 +php.behat.step.definition.creator.file.already.exists=使用来自 ''{1}'' 的现有文件 ''{0}'' +sc.enario=方案(&E) \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/BladeBundle.properties b/original-plugin-raw/zh/messages/BladeBundle.properties new file mode 100644 index 000000000..b42238224 --- /dev/null +++ b/original-plugin-raw/zh/messages/BladeBundle.properties @@ -0,0 +1,57 @@ +language.name=Blade + +inspection.blade.files.group.display.name=Blade 文件 +inspection.blade.control.directives.display.name=缺少控制指令 + +colors.page.displayName.directive=指令 +colors.page.displayName.comment=注释 +colors.page.displayName.text.block.delimiter=文本块分隔符 +colors.page.displayName.bad.character=非法字符 +colors.page.displayName.background=背景 + +inspection.control.directives.missing.opening.directive=缺少开始指令 +inspection.control.directives.directive.is.not.closed=指令未关闭 +parser.error.displaying.text.should.be.closed=显示的文本应关闭 +parser.error.displaying.raw.text.should.be.closed=显示的原始文本应关闭 +parser.error.displaying.escaped.text.should.be.closed=显示的转义文本应关闭 +parser.error.directive.parameter.is.not.closed.with=指令参数未使用 ')' 关闭 +parser.error.directive.parameter.is.not.opened.with=指令参数未使用 '(' 开启 +parser.error.php.block.should.be.closed.with.endphp=@php 块应使用 @endphp 关闭 + +settings.panel.directives=指令 +settings.action.add.directive=添加 +settings.action.remove.directive.s=移除 +settings.action.reset.to.defaults=重置为默认值 +settings.action.settings.action.reset.to.defaults=重置为默认值 +settings.directives.validation.duplicating.settings.for.directive.0=指令 {0} 的设置已存在 +settings.directives.validation.no.directive.name=提供指令名称 +settings.directives.validation.no.injection.info=提供前缀和后缀 +settings.blocks.please.check.settings.0.and.1.are.equal=检查指令设置: {0} 和 {1} 相同。 +settings.blocks.progress.reparsing.blade.files=正在重新解析 Blade 文件 + +settings.panel.text.blocks=文本块标记 +settings.tab.text.tags=文本标记 +settings.tab.directives=指令 + +blade.text.block.settings.unnamed.validation.0=为 {0} 提供值 +blade.raw.start.tag=原始开始标记 +blade.raw.end.tag=原始结束标记 +blade.content.start.tag=内容开始标记 +blade.content.end.tag=内容结束标记 +blade.escaped.start.tag=转义开始标记 +blade.escaped.end.tag=转义结束标记 + +blade.debug=Blade 调试 +label.name=名称(&N): +label.prefix=前缀(&P): +label.suffix=后缀(&S): +checkbox.has.parameter=具有参数(&H) +label.no.directive.is.selected=未选择指令 +label.some.directives.are.invalid.please.check.them=检测到无效指令 +label.unmodifiable.directive=不可修改的指令 +checkbox.use.default.settings=使用默认设置(&D) +label.content.tags=内容标记 +label.end=结束: +label.escaped.tags=转义标记 +label.raw.tags=原始标记 +label.start=开始: \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/BookmarkBundle.properties b/original-plugin-raw/zh/messages/BookmarkBundle.properties new file mode 100644 index 000000000..bcee12c2c --- /dev/null +++ b/original-plugin-raw/zh/messages/BookmarkBundle.properties @@ -0,0 +1,70 @@ +accessible.name.icon.bookmark.0=图标: 书签 {0} +action.bookmark.delete=删除书签 +action.bookmark.edit.description.dialog.message=输入简短的书签描述 +action.bookmark.edit.description.dialog.title=书签描述 +action.bookmark.edit.description=编辑描述 +bookmark.file.X.line.Y={0},第 {1} 行 +bookmark.shortcut.to.jump={0} 以跳转到 +bookmark.shortcut.to.toggle.and.jump={0} 以切换,{1} 以跳转到 +bookmark.shortcut.to.toggle={0} 以切换 +bookmark.text=书签 +bookmark.add.action.text=添加书签(_B) +bookmark.delete.action.text=删除书签(_B) +bookmark.edit.action.text=重命名书签… +bookmark.toggle.action.text=切换书签(_B) +bookmark.type.toggle.action.text=切换书签 {0} +goto.bookmark.type.action.text=转到书签 {0} +mnemonic.chooser.bookmark.create.action.text=添加助记书签… +mnemonic.chooser.bookmark.create.popup.title=添加助记书签 +mnemonic.chooser.mnemonic.assign.action.text=分配助记键… +mnemonic.chooser.mnemonic.assign.popup.title=分配助记键 +mnemonic.chooser.mnemonic.change.action.text=更改助记键… +mnemonic.chooser.mnemonic.change.popup.title=更改助记键 +mnemonic.chooser.mnemonic.delete.action.text=移除助记键 +mnemonic.chooser.legend.assigned.bookmark=已使用 +mnemonic.chooser.legend.current.bookmark=当前 +popup.title.bookmarks=书签 + +bookmark.group.create.action.text=创建书签列表… +bookmark.group.delete.action.text=删除书签列表 +bookmark.group.rename.action.text=重命名书签列表… +bookmark.go.to.next.action.text=下一行书签 +bookmark.go.to.previous.action.text=上一行书签 +default.bookmark.group.mark.action.text=将列表标记为默认 +default.bookmark.group.unmark.action.text=将列表取消标记为默认 +dialog.bookmark.add.button=添加 +dialog.bookmark.add.title=添加书签 +dialog.group.create.button=创建 +dialog.group.create.title=创建书签列表 +dialog.group.rename.button=重命名 +dialog.group.rename.title=重命名书签列表 +dialog.group.select.button=选择 +dialog.group.select.title=选择书签列表 +dialog.group.new.group.name=新建列表 +dialog.group.message.label=书签列表: +dialog.group.checkbox.label=用作默认列表 +dialog.group.help.tooltip=新书签将自动添加到此处
      。您可以随时在书签工具窗口中更改
      默认列表
      +dialog.name.exists.error=具有指定名称的列表已存在 +default.group.marker=默认 +mnemonic.chooser.mnemonic.toggle.action.text=切换书签助记键... +show.bookmarks.action.text=显示行书签… +sort.group.bookmarks.action.text=按类型 \\&\\& 名称对书签进行排序 +status.text.no.bookmarks.added=未添加书签。 +status.text.add.bookmark.group.or=或 +status.text.add.bookmark.to.code=到代码行。 +view.autoscroll.from.source.action.text=始终选择打开的元素 +view.autoscroll.to.source.action.text=一键导航 +view.group.line.bookmarks.action.text=按文件将行书签分组 +view.show.preview.action.text=打开编辑器预览 +view.open.in.preview.tab.action.text=启用预览选项卡 +bookmark.type.confirmation.title=重写助记键 +bookmark.type.confirmation.button=重写 +bookmark.type.confirmation.bookmark=‘{0}’ 助记键已占用。是否重写? +bookmark.type.confirmation.file.bookmark=‘{0}’ 助记键已被 ‘{1}’ 占用。是否重写? +bookmark.type.confirmation.line.bookmark=‘{0}’ 助记键已被 ‘{1}:{2}’ 占用。是否重写? +view.confirm.bookmark.type.action.text=重写助记键之前询问 +bookmark.add.another.action.text=将书签添加到另一个列表 +popup.title.type.bookmarks=转到助记键 +show.type.bookmarks.action.text=转到助记键… +bookmark.go.to.next.occurence.action.text=下一个书签出现 +bookmark.go.to.previous.occurence.action.text=上一个书签出现 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/BootstrapBundle.properties b/original-plugin-raw/zh/messages/BootstrapBundle.properties new file mode 100644 index 000000000..2d35b1947 --- /dev/null +++ b/original-plugin-raw/zh/messages/BootstrapBundle.properties @@ -0,0 +1,61 @@ +bootstrap.error.message.jre.details=您的 JRE: {0} + +bootstrap.error.title.start.failed=启动失败 + +bootstrap.error.title.startup.error=启动错误 +bootstrap.error.message.no.graphics.environment=无法检测图形环境 + +bootstrap.error.message.failed.to.initialize.graphics.environment=无法初始化图形环境 +bootstrap.error.message.internal.error.please.refer.to.0=内部错误。请参阅 {0} + +bootstrap.error.title.corrupted.installation=安装已损坏 +bootstrap.error.message.missing.essential.plugins.0.1.please.reinstall.2=缺少必要{0, choice, 1#插件|2#插件}:\n\n{1}请彻底重新安装 {2}。 + +bootstrap.error.title.plugin.error=插件错误 + +bootstrap.error.message.plugin.0.failed.to.initialize.and.will.be.disabled.please.restart.1=插件 ''{0}'' 初始化失败并将被禁用。请重新启动 {1}。 +bootstrap.error.title.jdk.required=需要 JDK +bootstrap.error.title.cannot.load.jdk.class.reason.0.please.ensure.you.run.the.ide.on.jdk.rather.than.jre=无法加载 JDK 类: {0}\n请确保您在 JDK 而不是 JRE 上运行 IDE。 + +bootstrap.error.title.invalid.config.or.system.path=配置或系统路径无效 +bootstrap.error.message.config.0.and.system.1.paths.must.be.different=配置和系统路径似乎相等。\n\n如果您修改了 ''{0}'' 或 ''{1}'' 属性,\n请确保它们指向不同的目录,否则请重新安装 IDE。 + +bootstrap.error.title.invalid.ide.directory.type.0.directory={0} 目录无效 +bootstrap.error.message.invalid.ide.directory.trans.located.macos.directory.advice=应用程序似乎被 macOS 转置,在此状态下无法使用。\n请使用“访达”将其移动到其他位置。 +bootstrap.error.message.invalid.ide.directory.ensure.the.modified.property.0.is.correct=如果您修改了 ''{0}'' 属性,请确保其正确,\n否则请重新安装 IDE。 +bootstrap.error.message.invalid.ide.directory.problem.0.possible.reason.1.advice.2.location.3.exception.class.4.exception.message.5={0}\n{1}\n\n{2}\n\n-----\n位置: {3}\n{4}: {5} + +bootstrap.error.title.too.many.instances=实例过多 +bootstrap.error.message.only.one.instance.of.0.can.be.run.at.a.time=一次只能运行一个 {0} 实例。 + +bootstrap.error.title.configuration.wizard.failed=配置向导失败 + +bootstrap.error.message.check.ide.directory.problem.cannot.create.the.directory=IDE 无法创建目录。 +bootstrap.error.message.check.ide.directory.problem.the.ide.cannot.create.a.temporary.file.in.the.directory=IDE 无法在该目录创建临时文件。 +bootstrap.error.message.check.ide.directory.problem.the.ide.cannot.create.a.lock.in.directory=IDE 无法在该目录创建锁定文件。 +bootstrap.error.message.check.ide.directory.problem.the.ide.cannot.execute.test.script=IDE 无法在目录下执行测试脚本。 + +bootstrap.error.message.check.ide.directory.possible.reason.path.is.incorrect=可能的原因: 路径不正确。 +bootstrap.error.message.check.ide.directory.possible.reason.directory.is.read.only.or.the.user.lacks.necessary.permissions=可能的原因: 父目录为只读,或者用户缺少必要权限。 +bootstrap.error.message.check.ide.directory.possible.reason.the.directory.is.located.on.a.network.disk=可能的原因: 该目录位于网络磁盘上。 +bootstrap.error.message.check.ide.directory.possible.reason.partition.is.mounted.with.no.exec.option=可能的原因: 该分区是以 'no exec' 选项挂载的。 + +bootstrap.error.title.jetbrains.marketplace.boot.failure=JetBrains Marketplace 启动失败 + +restart.failed.title=重启失败 + +import.settings.title=导入 {0} 设置 +import.settings.restart=导入的设置包含自定义虚拟机选项。\n请重启 IDE 以应用这些选项。 +import.settings.restart.now=立即重启 +import.settings.restart.later=稍后重启 +import.settings.failed.title=设置导入失败 +import.settings.failed=无法导入设置。{0} +import.chooser.rb.previous=前一个版本 +import.chooser.rb.choose=配置或安装目录 +import.chooser.rb.skip=不导入设置 +import.chooser.ok=确定 +import.chooser.error.title=需要配置目录或安装主页 +import.chooser.error.empty=请选择之前的 {0} 配置文件夹或安装主页 +import.chooser.error.invalid=文件 {0} 不包含任何要导入的设置。\n请确认该文件是由 ''文件 | 导出设置'' 功能所生成。 +import.chooser.error.current=您已经选择了当前的 {0} 配置目录或安装主页 +import.chooser.error.unrecognized={0} 似乎不是 {1} 配置目录或安装主页 diff --git a/original-plugin-raw/zh/messages/BpmnBundle.properties b/original-plugin-raw/zh/messages/BpmnBundle.properties new file mode 100644 index 000000000..c47886392 --- /dev/null +++ b/original-plugin-raw/zh/messages/BpmnBundle.properties @@ -0,0 +1,33 @@ +model.inspection.group.name=BPMN 2.0 配置错误 +constraints.config.inspection=BPMN 模型错误 +Create.StartEvents=启动事件 +Create.Compensation=补偿 +Create.Conditional=条件 +Create.Error=错误 +Create.Escalation=升级 +Create.Start=启动 +Create.EndEvents=结束事件 +Create.End=结束 +Create.Message=消息 +Create.Signal=信号 +Create.Timer=定时器 +Create.Terminate=终止 +Create.IntermediateThrowEvents=中间抛出事件 +Create.IntermediateCatchEvents=中间捕获事件 +Create.Intermediate=中间 +Create.Link=链接 +Create.Gateways=网关 +Create.DataBasedExclusive=基于数据的排他 (XOR) +Create.EventBased=基于事件 +Create.Inclusive=包含 +Create.Parallel=并行 +Create.Task=任务 +ServiceTask=服务任务 + +should.be.referenced.by.any.datainputrefs=应当由任意 dataInputRefs 引用 +should.be.referenced.by.any.dataoutputrefs=应当由任意 dataOutputRefs 引用 +bpmn.diagram.title=BPMN 2.0 图表 +bpmn.2.0.designer=BPMN 2.0 设计器 +bpmn.2.0.overview=BPMN 2.0 概览 +category.name.sub.flows=子流 +bpmn.module.name=模块 {0} diff --git a/original-plugin-raw/zh/messages/BuildBundle.properties b/original-plugin-raw/zh/messages/BuildBundle.properties new file mode 100644 index 000000000..97519b378 --- /dev/null +++ b/original-plugin-raw/zh/messages/BuildBundle.properties @@ -0,0 +1,9 @@ +build.status.finished=已完成 +build.status.failed=已失败 +build.status.cancelled=已取消 +build.status.running=正在运行… +build.messages.finished={0} 已完成 +build.messages.failed={0} 失败 +build.messages.cancelled={0}已取消 +build.event.message.successful=成功 +build.event.message.syncing=正在同步… \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/BuiltInHelpBundle.properties b/original-plugin-raw/zh/messages/BuiltInHelpBundle.properties new file mode 100644 index 000000000..7f28f5b7b --- /dev/null +++ b/original-plugin-raw/zh/messages/BuiltInHelpBundle.properties @@ -0,0 +1,5 @@ +online.help.base.url=在线帮助基 URL: +settings.border.title=杂项 +try.opening.online.help.when.available=尝试打开在线帮助(如可用) +use.this.browser=使用此浏览器: +use.default.browser=<默认> \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/BuiltInServerBundle.properties b/original-plugin-raw/zh/messages/BuiltInServerBundle.properties new file mode 100644 index 000000000..6abdb8b1a --- /dev/null +++ b/original-plugin-raw/zh/messages/BuiltInServerBundle.properties @@ -0,0 +1,11 @@ +checkbox.tooltip.can.t.be.enabled.for.default.port=无法为默认端口(端口号> = 63342)启用。请更改。 +dialog.button.copy.authorization.url.to.clipboard=将授权 URL 复制到剪贴板 +dialog.message.page=未经授权而请求了页面 ''{0}'',\n您可以复制 URL 并在浏览器中打开以信任它。 +dialog.title.diff.service=差异服务 +notification.content.built.in.web.server.is.deactivated=内置 Web 服务器已停用,要激活,请使用“在浏览器中打开” +notification.content.cannot.start.built.in.http.server.on.custom.port=无法在自定义端口 {0} 上启动内置 HTTP 服务器。请确保端口空闲(或检查防火墙设置),然后重新启动 {1} +notification.content.cannot.start.internal.http.server.and.ask.for.restart.0=无法启动内部 HTTP 服务器。Git 集成、JavaScript 调试器和 LiveEdit 可能会在运行时出错。请检查您的防火墙设置然后重新启动 {0}。 +reload.on.save.got.it.title=保存时在浏览器中重新加载 +reload.on.save.got.it.content=保存更改后,将在浏览器中自动重新加载该页面。 +reload.on.save.preview.got.it.title=保存时重新加载页面预览 +reload.on.save.preview.got.it.content=要查看页面的更新预览,请保存更改。 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CLionCMakeBundle.properties b/original-plugin-raw/zh/messages/CLionCMakeBundle.properties new file mode 100644 index 000000000..fbe99a762 --- /dev/null +++ b/original-plugin-raw/zh/messages/CLionCMakeBundle.properties @@ -0,0 +1,287 @@ +cmake=CMake +cmake.this.directory.is.already.used.for.0.profile=此目录已经用于 ''{0}'' 配置文件 +cmake.cannot.generate.into.0.1.please.either.delete.it.manually.or.select.another.generation.directory=无法生成至 {0}\n\ +{1}\n\ +\n\ +请手动删除或选择其他生成目录 +cmake.console.error.title=CMake 错误: +cmake.text.cannot.generate.into=无法将 ''{0}'' 生成至 {1}\n\ +{2} +cmake.text.only.in.source.generation.will.be.performed=将仅执行源内生成。 +cmake.unknownTargetProductPath=无法确定目标 {0} 的产品文件路径。运行和调试将不可用。 +dialog.message.process.exited.with.code={0}\n\ +进程退出,代码 {1} +text.antivirus.software.workaround=反病毒软件可能将 CMake 生成的文件错误地识别为恶意文件。\n\ +为了解决这个问题,请在扫描时排除项目目录和 ''{0}''。\n\ + +text.cmakecache.txt.found.in.project.dir.only.in.source.generation.will.be.performed=在项目目录中找到 CMakeCache.txt,将只进行源内生成。 +text.selected.cmake.might.be.incompatible.with.cygwin.environment=所选的 CMake 可能与 Cygwin 环境不兼容。\n\ +为了在 Cygwin 上运行,CMake 需要进行特殊编译。\n\ +请选择与 {0} 捆绑的 CMake 或 Cygwin 安装中的 CMake。\n\ + + +create.checkbox.targets=添加到目标(&A) + +build.nextOccurrence=下一个{0} +build.previousOccurrence=上一个{0} +build.error=错误 +build.warning=警告 + +cmake.toolwindow.title=CMake + +output.display.title=输出 + +cmake.console.outputRestored = [先前的 CMake 输出已恢复: {0}] +cmake.console.noProfiles = [无 CMake 配置文件] +cmake.console.noOutput = [先前的 CMake 输出均不可用] +cmake.console.reloadingCanceled = [已取消重新加载] +cmake.console.reloadingFinishedWithErrors = [无法重新加载] +cmake.console.reloadingFinished = [已完成] + +cmake.directory.contains.generated.files=所选目录包含生成的 CMake 文件。\n\ +要打开源目录 {0} 吗? +cmake.wrong.generator.was.used=此项目使用 {0} 生成器生成,不受 {1} 支持。\n\ +它将使用 {2} 重新生成。 + + +other.project.group.name=其他 + +cmake.project.generator.enter.project.location=输入项目位置 +cmake.project.generator.project.location.path.should.be.absolute=项目位置路径应是绝对路径 +cmake.project.generator.directory.is.not.writable=目录 ''{0}'' 不可写。\n\ +请选择另一个目录。 +cmake.action.settings=CMake 设置 +cmake.action.showGeneratedFiles=在 {0} 中显示生成的文件 +cmake.action.dropCacheAndReload=重置缓存并重新加载项目 +cmake.action.dropCacheAndReload.description=删除 CMake 生成的所有文件并重新加载项目 +cmake.checking.version=正在检查 CMake 版本… +cmake.c.library.project.generator=C 库 +cmake.c.exe.project.generator=C 可执行文件 +cmake.cpp.library.project.generator=C++ 库 +cmake.cpp.exe.project.generator=C++ 可执行文件 +cmake.cuda=CUDA +cmake.cuda.exe.project.generator=CUDA 可执行文件 +cmake.cuda.library.project.generator=CUDA 库 +cmake.qt=Qt +cmake.qt.core.project.generator=Qt 控制台可执行文件 +cmake.qt.widgets.project.generator=Qt 微件可执行文件 +cmake.cannot.create.new.project=无法创建新项目: {0} +cmake.new.project=新建项目 +cmake.create.new.project=创建新的 CMake 项目 +cmake.filesOutsideOfProject=某些源文件位于 CMakeLists.txt 目录之外。
      您以后可以更改项目根将其忽略。 +cmake.action.loadCMakeProject=加载 CMake 项目 +cmake.action.unloadCMakeProject=卸载 CMake 项目 +cmake.action.reloadCMakeProject=重新加载 CMake 项目 +cmake.loadCMakeNotification.text=CMake 项目未加载 +cmake.loadCMakeNotification.action.load=加载 CMake 项目 +cmake.loadCMakeNotification.action.select=选择 CMakeLists.txt +cmake.lists.not.found.in=在 {1} 中找不到 {0} +cmake.action.stopReload=停止 CMake 项目重新加载 +cmake.action.editCmakeCache = 打开 CMakeCache 文件 +cmake.action.autoReloadCmakeProject = 自动重新加载 CMake 项目 +cmake.autoReloadNotification.text = CMake 项目需要重新加载 +cmake.autoReloadNotification.reloadChanges = 重新加载变更 +cmake.autoReloadNotification.enableAutoReload = 启用自动重新加载 +cmake.loadingProgress = 正在加载 CMake 项目… +cmake.action.showBuildConsole=显示带有文本的 CMake 构建控制台… +cmake.project.wizard.format.source.files=重新格式化项目文件 + +cmake.profile = 配置文件 +cmake.all.targets.name=所有目标 +cmake.settings.language.standard=语言标准: +cmake.settings.library.type=库类型: +cmake.settings.qt.version=Qt 版本: +cmake.settings.qt.cmake.prefix.path=Qt CMake 前缀路径: +cmake.settings.qt.cmake.prefix.path.title=选择 Qt CMake 前缀路径 +cmake.settings.qt.cmake.prefix.path.description=选择适用于 Qt 的 CMake 前缀路径 +cmake.settings.qt.cmake.prefix.path.optional=可选 +cmake.run.configuration.display.name=CMake 应用程序 +cmake.run.configuration.description=CMake 应用程序配置 +cmake.run.configuration.bad.executable=配置中的可执行文件错误:''{0}'' +cmake.build.all.name=全部构建 +cmake.build.all.in.profile.name=在 ''{0}'' 中全部构建 +cmake.rebuild.all.name=全部重新构建 +cmake.rebuild.all.in.profile.name=在 ''{0}'' 中全部重新构建 +cmake.build.project.noProfileError.message=找不到任何 CMake 配置文件 + +cmake.settings.profile.empty=未添加配置文件。 +cmake.settings.profile.empty.secondary.text=添加配置文件 +cmake.settings.select.profile.empty.text=选择要配置的配置文件 +cmake.settings.add.profile.empty.text=添加要配置的配置文件 +cmake.settings.duplicating.names.prefix=CMake 配置文件 +cmake.settings.auto.reload.checkbox=在编辑 CMakeLists.txt 或其他 CMake 配置文件时重新加载 CMake 项目 +cmake.settings.auto.reload.checkbox.comment=外部变更(例如 VCS 更新)会始终触发项目重新加载 +cmake.settings.profiles.row.title=配置文件 +cmake.settings.profiles.row.comment=配置文件是一组命名的构建选项。例如,为调试和发布构建创建单独的配置文件,并在需要时在它们之间切换。 +cmake.settings.enable.profile.label=启用配置文件 +cmake.settings.name.label=名称 +cmake.settings.build.type.label=构建类型 +cmake.settings.build.type.comment=对应于 CMAKE_BUILD_TYPE +cmake.settings.toolchain.manage.link.text=管理工具链… +cmake.settings.cmake.options.label=CMake 选项 +cmake.settings.cmake.options.comment=使用 -DVAR_NAME=value 以设置变量,选择 -G 以指定自定义生成器。 +cmake.settings.cmake.options.link.text=所有 CMake 选项 +cmake.settings.cmake.options.link.versioned.address=https://cmake.org/cmake/help/v{0}.{1}/manual/cmake.1.html#options +cmake.settings.cmake.options.link.latest.address=https://cmake.org/cmake/help/latest/manual/cmake.1.html#options +cmake.settings.generation.directory.label=构建目录 +cmake.settings.generation.directory.default.project.hint=您可以指定绝对路径或相对于项目根的路径
      可用宏 '$PROJECT_DIR$'、'$PROJECT_NAME$' 和 '$USER_HOME$' +cmake.settings.build.option.label=构建选项 +cmake.settings.build.option.comment=‘--’ 后面的实参传递给此构建,其他实参是 CMake 命令行形参。默认选项取决于工具链的环境。 +cmake.settings.additional.environment.label=环境 +cmake.settings.additional.environment.comment=用于 CMake 生成和构建的其他变量。这些值将添加到系统变量和工具链变量中。 +cmake.settings.generationOptions.checkProgressMessage=正在检查 CMake 版本… +cmake.settings.generationOptions.warn.version.missing=无法确定 CMake 版本 +cmake.settings.generationOptions.warn.version.min=用户指定的生成器需要 CMake {0} 或更高版本 +cmake.settings.share.profile.checkbox=共享 +cmake.settings.share.profile.checkbox.tooltip=共享的配置文件存储在 .idea/cmake.xml 中,它们可以通过 VCS 共享 +cmake.settings.profile.shared.subscript=共享 +cmake.settings.profile.preset.subscript=预设 +cmake.settings.hint.queue.title=更新提示 +cmake.settings.hint.task.title=正在更新提示… + +cmake.run.shouldGenerateConfigs=自动为新的 CMake 目标生成运行配置 +cmake.run.shouldDeleteObsoleteConfigs=自动为缺失的 CMake 目标删除运行配置 + +cmake.install.name=安装 +cmake.install.progress=正在安装… + +cmake.explicit.target.task.name=CMake 目标 +cmake.explicit.target.task.name.with.target=CMake 目标: {0} +cmake.explicit.target.task.target.field=目标: +cmake.explicit.target.task.target.field.comment=选择 CMake 目标或输入自定义目标名称 +cmake.explicit.target.clean.target=清理 +cmake.explicit.target.install.target=安装 +cmake.explicit.target.empty.text=自定义目标 + +cmake.macro.build.dir.description=当前 CMake 运行配置的构建目录 +cmake.macro.local.build.dir.description=当前 CMake 运行配置的本地构建目录 +cmake.macro.generation.dir.description=当前 CMake 运行配置的生成目录 +cmake.macro.local.generation.dir.description=当前 CMake 运行配置的本地生成目录 +cmake.macro.product.file.description=当前 CMake 运行配置的产品文件 +cmake.macro.product.local.file.description=当前 CMake 运行配置的本地产品文件 +cmake.macro.program.arguments.description=当前 CMake 运行配置的程序实参 +cmake.macro.build.type.name.description=当前 CMake 运行配置的构建类型名称 +cmake.macro.profile.name.description=当前 CMake 运行配置的 CMake 配置文件名称 +cmake.macro.target.name.description=当前 CMake 运行配置的目标名称 +cmake.macro.executable.description=用于当前构建配置的 CMake 可执行文件 +ctest.macro.executable.description=用于当前构建配置的 CTest 可执行文件 +cmake.project.update.action.error=项目更新错误 +cmake.create.lists.select.files=选择项目文件: +cmake.create.lists.user.include.directories=用户包含目录: +cmake.create.lists.scanning.folders=正在扫描文件夹 +cmake.lists.creation.fail=无法创建 CMakeLists.txt +cmake.create.lists=创建 CMakeLists.txt + +cmake.profile.error.deleted=配置文件 ''{0}'' 已删除 +cmake.error.expand.macro.for.project=''{1}'' 的 {0} + +cmake.dev.environment.general.error=测试 CMake 运行完成,但有错误 +cmake.dev.environment.mingw.sh.value.path.error=为了使 MinGW make 正确工作,{0} 必须不在您的 PATH 中 +cmake.dev.environment.mingw.zlib.not.found=找不到 MinGW 软件包 mingw32-libz (zlib1.dll) +cmake.dev.environment.error.code=错误代码: {0} +action.enable.profile.text=启用配置文件 +action.disable.this.profile.text=禁用此配置文件 +action.disable.profile.text=禁用配置文件 + +action.CMake.ShowBuildConsole.text=显示带有文本的 CMake 构建控制台… +group.CMake.ToolsMenu.text=CMake + +no.compiler.error.message=无编译器 + +cannot.read.file=无法读取 {0} +cannot.write.file=无法写入文件 {0} +cannot.save.file=无法保存文件 {0} +cmake.is.not.available=CMake 不可用 +cannot.resolve.path=无法解析路径: {0} +cannot.resolve.compiler.path=无法解析编译器路径 ''{0}'' +cannot.resolve.compiler.path.exception=无法解析编译器路径 ''{0}'': {1} +cannot.read.cmake.dependency.file=无法从 ''{0}'' 读取 CMake 依赖项信息 +it.is.already.used.for.unknown.project=它已用于未知项目 +it.is.already.used.for.project=它已用于项目 {0} +it.was.created.with.unknown.generator=它由未知的生成器创建 +it.was.created.with.incompatible.generator=它由不兼容的生成器 ''{0}'' 创建 +cmake.cygwin.permission.fixup.exception.message=无法更新 {0} 中的文件权限\n\ +\n\ +Cygwin 要求对 CMake 文件具有正确的权限,否则 CMake 将无法生成项目。\n\ +IDE 尝试解决此问题,但未能成功;您可以手动执行以下解决方法:\n\ + 1) 将 {1} 复制到 {2}\n\ + 2) 在 Cygwin 控制台中执行 ''{3}''\n\ +更多信息见 {4}\n\ +\n\ +要在以后禁用此解决方法,可在注册表中将 ''{5}'' 设置为 ''false'' (使用“查找操作”)。\n\ +\n\ +\n\ +失败原因: {6} + +group.trusted.projects=受信任的项目 +notification.cmake.project.is.not.trusted=CLion 将执行 CMake 脚本,但是该项目不受信任。 +c.projects=C 项目 +cpp.projects=C++ 项目 +cmakelists.txt.for.c.library=C 库的 CMakeLists.txt +cmakelists.txt.for.c.executable=C 可执行文件的 CMakeLists.txt +cmakelists.txt.for.cpp.library=C++ 库的 CMakeLists.txt +cmakelists.txt.for.cpp.executable=C++ 可执行文件的 CMakeLists.txt +cmakelists.txt.for.cuda.library=CUDA 库的 CMakeLists.txt +cmakelists.txt.for.cuda.executable=CUDA 可执行文件的 CMakeLists.txt +cmakelists.txt.for.qt.projects=Qt 项目的 CMakeLists.txt +action.text.load.cmake.presets=加载 CMake 预设 + +popup.title.select.presets=选择预设 +cmake.messages=CMake 消息 +notification.loaded.n.presets=已加载 {0} 个{0,choice, 0#预设1#预设|2#预设} +notification.presets.files.not.found={0} 中既不存在 CMakePresets.json,也不存在 CMakeUserPresets.json +notification.wrong.schema.version=CLion 支持版本 2 或版本 3 的预设,而预设文件的版本为 {0} +notification.presets.file.empty=预设文件内容为空 +notification.title.failed.to.load.cmake.presets=无法加载 CMake 预设 +group.advanced.settings.cmake=CMake +advanced.setting.cmake.disable.auto.reload.external.changes=如果禁用了自动重新加载,不要在发生外部变更时触发 CMake 重新加载 +advanced.setting.cmake.initial.project.configuration=首次打开项目时执行初始配置文件配置 +progress.title.loading.cmake.presets=正在加载 CMake 预设 +cmake.presets.schema=CMake 预设架构 +notification.loaded.n.new.presets=已加载 {0} 个新{0,choice, 0#预设1#预设|2#预设} +notification.presets.have.empty.names=某些 CMake 预设的名称为 null 或空 +notification.title.cmake.presets=CMake 预设 +notification.preset.cannot.be.loaded=无法加载{0,choice, 1#预设|2#预设} {1} +notification.action.presets.view=视图 +cmake.settings.generationDir.invalid.path=无效路径 +preset.error.has.empty.generator=配置预设 ''{0}'' 没有生成器字段 +preset.error.has.empty.binary.dir=配置预设 ''{0}'' 没有 binaryDir 字段 +preset.error.macro.circular.reference=由于循环依赖关系,无法展开预设 ''{1}'' 中的宏 ''{0}'': {2} +notification.content.has.issues.cannot.be.read=无法解析 ''{0}'' +macro.in.preset.is.invalid=预设 ''{1}'' 中的宏 ''{0}'' 不是有效的宏 +preset.error.does.not.have.configure.preset=构建预设 ''{0}'' 没有 configurePreset 字段 +notification.content.show.problems=显示问题 +notification.profiles.were.removed.error=由于配置错误,{0,choice, 1#配置文件|2#配置文件} {1} {0,choice, 1#|2#}已被移除 +notification.profiles.were.removed.not.exist=由于关联的{0,choice, 1#预设|2#预设}{0,choice, 1#|2#}不再存在,{0,choice, 1#配置文件|2#配置文件} {1} {0,choice, 1#|2#}已被移除 +notification.preset.null.object=对象 {0} 不能为 +notification.schema.duplicate.names=架构具有重复的预设名称 {0} +preset.cannot.be.imported.cmake.profile.same.name=由于存在一个具有相同名称的 CMake 配置文件,无法导入预设 ''{0}'' +cmake.project.dir.macro.description=项目根路径,本地/远程取决于所选工具链 +cmake.project.parent.dir.macro.description=父项目根路径,本地/远程取决于所选工具链 +advanced.setting.cmake.use.legacy.generator.by.default=对 CMake 3.20 及更高版本使用旧版生成器 +advanced.setting.cmake.use.legacy.generator.by.default.description=默认情况下,使用 CMake File API 和 Ninja 生成器 +cmake.api.no.object.found=找不到 ''{0}'' 对象 +cmake.api.cant.be.parsed=无法解析 ''{0}'' +cmake.api.can.not.create.query=无法创建 ''{0}'' 查询:''{1}'' +cmake.api.no.reply.dir=找不到回复目录 +cmake.api.no.index.file=找不到索引文件 +cmake.api.no.path.for.a.file.in=''{0}'' 中没有文件路径 +cmake.api.cache.not.found=未找到 ''{0}'' +cmake.api.no.configurations.in=''{0}'' 中没有配置 +cmake.api.no.configuration.name=没有配置名称 +cmake.api.no.projects.in=''{0}'' 中没有项目 +cmake.api.no.project.name=没有项目名称 +cmake.api.no.compiler.executable.for=没有 ''{0}'' 的编译器可执行文件 +cmake.api.no.compiler.id.for=没有 ''{0}'' 的编译器 ID +cmake.api.no.extensions.for=没有 ''{0}'' 的扩展程序 +cmake.api.unexpected.value.for.the.implicit.framework.dirs=非预期的隐式框架目录值: ''{0}'' +cmake.api.no.backtrace=无回溯 +cmake.api.cant.find.the.bottom.node=找不到底部节点 +cmake.api.no.cmakelists.txt.file.at=''{0}'' 处没有 CMakeLists.txt 文件 +cmake.api.no.compiler.found.for=未找到 ''{0}'' 的编译器 +cmake.api.failed.to.load.from=无法从 ''{0}'' 加载 +cmake.api.no.build.dir.at=''{0}'' 处没有构建目录 +cmake.settings.generator.label=生成器 +cmake.generator.default.label=使用默认值 +cmake.generator.custom.label=自定义 +cmake.generator.predefined.generators.header=预定义 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CLionExecutionBundle.properties b/original-plugin-raw/zh/messages/CLionExecutionBundle.properties new file mode 100644 index 000000000..6a8a77ebc --- /dev/null +++ b/original-plugin-raw/zh/messages/CLionExecutionBundle.properties @@ -0,0 +1,160 @@ +cpp.build.description.1 = ====================[ {0} ]==== +cpp.build.description.2 = ====================[ {0} | {1} ]==== +cpp.build.description.3 = ====================[ {0} | {1} | {2} ]==== + +cpp.compileFile.name=编译 +cpp.compileFile.progress=正在编译… + +cpp.compileCurrentFile.action.selectedFiles.description=所选文件 +cpp.compileCurrentFile.task.name=''{0}'' 的编译 +cpp.compileCurrentFile.preBuild.message=正在编译 ''{0}''… +cpp.compileCurrentFile.preHeaderBuild.message=正在编译包括请求的 ''{1}'' 的 ''{0}''… +cpp.compileCurrentFile.error.message=无法编译文件 ''{0}'' +cpp.compileCurrentFile.noRulesError.message=无法编译文件 ''{0}''。找不到此文件的构建规则 +cpp.compileCurrentFile.resolveProgress.title=正在查找配置… + +run.fileNotFound=找不到文件: {0} +run.fileNotFound.inDirectory=在目录 ''{1}'' 中找不到文件 ''{0}''\n请指定工作目录,或使用可执行文件的绝对路径 +run.relativeFileNotFound=找不到相对文件: {0}。\n请指定工作目录,或使用可执行文件的绝对路径 + +command.cannot.parse.message=无法为文件 ''{0}'' 和目录 ''{1}'' 解析命令字段。\n命令 ''{2}'' +command.no.compiler.executable.message=没有为文件 ''{0}'' 和目录 ''{1}'' 指定编译器可执行文件。\n命令 ''{2}'' +command.cannot.find.compiler.executable.message=找不到编译器可执行文件: ''{0}''。\n命令 ''{1}'' +command.file.does.not.exist=文件: “{0}”不存在于目录中: “{1}” +command.incorrect.file.message=指定的文件不正确: ''{0}''。\n命令 ''{1}'' +command.incorrect.directory.message=指定的目录不正确: ''{0}''。\n命令 ''{1}'' +command.unknown.compiler.executable.message=未知的编译器可执行文件: ''{0}'' +command.object.success.message=命令对象解析成功 + +external.build.configuration.generalError=无法构建 ''{0}'' +external.run.configuration.name=自定义构建应用程序 +external.run.configuration.description=具有自定义构建目标的应用程序配置 +external.run.configuration.noBuildToolSpecified=没有为选定的目标 ''{0}'' 指定构建工具。将跳过构建步骤。 +external.run.configuration.buildToolDisabled=选定的目标 ''{0}'' 没有可用的构建工具。将跳过构建步骤。 +external.run.configuration.targetsLink=配置自定义构建目标 + +external.configurable.name=自定义构建目标 +external.configuration.tool.type.name=工具 +external.configurable.targets.empty=未添加目标。 +external.configurable.targets.empty.secondary.text=添加目标 +external.configurable.select.target.empty.text=选择要配置的目标 +external.configurable.add.target.empty.text=添加要配置的目标 +external.configurable.duplicating.names.prefix=自定义构建目标 +external.configurable.unnamed.target=未命名 +external.configurable.name.not.specified=未指定外部构建目标的名称 +external.configurable.build.field.label=构建: +external.configurable.clean.field.label=清理: +external.configurable.invalidComboboxTool.tooltip=未知工具 ''{0}''。 +external.configurable.invalidComboboxTool.configurationException=未知工具 ''{0}''。请选择现有工具。 + +external.tool.cannot.execute=运行 ''{0}'' 时出错:
      无法执行外部工具 ''{1}'' + +cmake.rebuild.name=重新构建 +cmake.rebuild.configuration.name=重新构建 ''{0}'' + +clion.install.task.presentable.name=安装 {0} + +clion.project.tool.manager.presentable.name=工具 + +build.target.is.not.supported=构建目标不受支持 +build.target.is.not.supported.target.name=构建目标不受支持: {0} + +always.show.on.build=在构建时始终显示 +always.show.this.tool.window.when.build.starts=构建开始时始终显示此工具窗口 +auto.hide.and.show.on.warning.error=自动隐藏并在警告/出错时显示 +hide.this.tool.window.when.build.starts=构建开始时隐藏此工具窗口,并在报告警告或错误时显示 + +action.recompile.current.file=重新编译当前文件 + +debug.attach.defaultGroupTitle=Native + +gdb=GDB +gdbRemote.command='target remote' 实参: +gdbRemote.command.hint=例如: tcp:host:port、serial-device 等。 +gdbRemote.lldb.command='process connect' url: +gdbRemote.lldb.command.hint=例如: connect://host:port +gdbRemote.symbolFile=符号文件: +gdbRemote.symbolFile.select=选择符号文件 +gdbRemote.symbolFile.invalid=符号文件 ''{0}'' 不存在 +gdbRemote.sysroot = Sysroot: +gdbRemote.sysroot.select = 选择 Sysroot +gdbRemote.sysroot.invalid = Sysroot 路径 ''{0}'' 不存在 + +gdbRemote.title=远程调试 + +gdbRemote.pathMappings = 路径映射: +gdbRemote.pathMappings.local = 本地 +gdbRemote.pathMappings.build = 构建 +gdbRemote.pathMappings.remote = 远程 +gdbRemote.pathMappings.empty = 无路径映射 +gdbRemote.pathMappings.invalid = 路径映射无效: 远程路径不应为空 +gdbRemote.pathMappings.localDoesNotExist = 路径映射无效: 本地路径不存在: {0} + +gdbRemote.debuggerNotSpecified = 未指定调试器 +gdbRemote.debuggerNotSpecified.brief = 未指定 GDB + +gdbRemote.toolchain.incompatibleToolset = {0} 尚不支持 GDB 远程调试 +gdbRemote.toolchain.incompatibleToolset.brief = {0} + +gdbRemote.toolchain.debuggerNotSpecified = 没有为工具链 ''{0}'' 指定调试器 +gdbRemote.toolchain.debuggerNotSpecified.brief = 未指定 GDB + +gdbRemote.toolchain.debuggerDoesNotExist = GDB ''{0}'' 不存在 +gdbRemote.toolchain.debuggerDoesNotExist.brief = {0} + +gdbserver.title = GDB 服务器 +gdbserver.select.executable = 选择 GDB 服务器可执行文件 +gdbserver.executable.download = 下载可执行文件 +gdbserver.starting=正在启动 GDB 服务器 + +gdbserver.startup.delay.text=GDB 服务器启动延迟 +gdbserver.startup.delay.label = 启动延迟 +gdbserver.startup.delay.label.ms = 毫秒 +gdbserver.options.advanced = 高级 GDB 服务器选项 +gdbserver.arguments=GDB 服务器实参: +gdbserver.download.type.ALWAYS=始终 +gdbserver.download.type.UPDATED_ONLY=仅更新 +gdbserver.download.type.NONE=无 +gdbserver.executable.not.specified=未指定 GDB 服务器可执行文件 +gdbserver.wrong.executable=错误的 GDB 服务器可执行文件 +gdbserver.target.remote.arguments.not.specified=未指定目标远程实参 +gdbserver.plugin.remote.hosts.data.access.disabled=强制性插件 "Remote Hosts Data Access" 已被禁用 + +remote.gdb.server.configuration.name=远程 GDB 服务器 +remote.gdb.server.configuration.description=使用第三方的 GDB 服务器下载并运行应用程序 +remote.gdbserver.upload.path=上传路径 +remote.gdbserver.select.upload.folder=选择上传文件夹 +remote.gdbserver.upload.executable=上传可执行文件 +remote.gdbserver.upload.executable.dialog.text=正在上传符号文件 +remote.credentials=凭据 +remote.custom.executable=自定义 {0} 可执行文件 +remote.debuggers.combobox.debugger=调试器: +remote.debuggers.combobox.gdb=GDB: + +coredump.title=核心转储调试 +coredump.open=打开核心转储 +coredump.new=新建核心转储… +coredump.coredump=核心转储: +coredump.coredump.select=选择核心转储文件 +coredump.coredump.missing=未指定核心转储文件 +coredump.coredump.invalid=核心转储文件 ''{0}'' 不存在 +coredump.symbolFile=符号文件: +coredump.symbolFile.select=选择符号文件 +coredump.symbolFile.emptyText=可选 +coredump.symbolFile.missing=未指定符号文件 +coredump.symbolFile.invalid=符号文件 ''{0}'' 不存在 +coredump.sysroot=Sysroot: +coredump.sysroot.select=选择 Sysroot + +dialog.message.credentials.are.not.valid=凭据无效 +dialog.message.upload.path.empty=上传路径为空 +dialog.message.cannot.connect.to.remote.host=无法连接到远程主机 + +compound.run.configuration.conversion.message=运行配置将被转换为新格式 + +port.value.must.be.in.range=端口值必须介于 [1024...65535] + +action.CIDR.Debugger.DebugCoreDumpAction.text=打开核心转储… + +reading.environment.title=读取环境文件 +checking.executable.file=正在检查可执行文件 diff --git a/original-plugin-raw/zh/messages/CLionProfilingBundle.properties b/original-plugin-raw/zh/messages/CLionProfilingBundle.properties new file mode 100644 index 000000000..084e6ffd0 --- /dev/null +++ b/original-plugin-raw/zh/messages/CLionProfilingBundle.properties @@ -0,0 +1,58 @@ +dynamic.analysis.tools.configurable.name=动态分析工具 +dynamic.analysis.tools.sanitizers.configurable.name=Sanitizers +dynamic.analysis.tools.valgrind.configurable.name=Valgrind +dynamic.analysis.tools.memcheck.border.title=Valgrind Memcheck +# suppress inspection "UnusedProperty" + +memory.profile.panel.loading.preview.label=正在加载预览… +memory.profile.panel.preview.editor.title=预览编辑器 +memory.profile.panel.frame.information.title=框架信息 +memory.profile.panel.empty.preview=选择一个堆栈帧以获取更多信息 +memory.profile.instruction.pointer.label=指令指针: +memory.profile.object.label=对象: +memory.profile.function.label=函数: +memory.profile.directory.label=目录: +memory.profile.file.label=文件: +memory.profile.line.label=行: +memory.profile.warnings.count={0} 个{0,choice, 0#警告|1#警告|2#警告} +memory.profile.node.empty=<空> +memory.profile.import.title=正在导入 {0} 结果 +memory.profile.process.output.from.remote=正在远程处理 {0} 输出 + +valgrind.fileNotFound=找不到 Valgrind 可执行文件: ''{0}''
      配置 +valgrind.sanitizers=Valgrind 在启用 Google Sanitizers 的情况下可能无法正常工作 +valgrind.ctest.invalid.trace.children.parameter=Valgrind 可能不会显示 CTest 执行的结果,因为 `--trace-children` 设置为 `no`。 +valgrind.progress=Valgrind 正在运行… +valgrind.configurable.executable.label=Valgrind 可执行文件: +valgrind.configurable.executable.dialog.title=Valgrind 可执行文件路径 +valgrind.confugurable.analysisOptions.label=分析选项: +valgrind.configurable.arguments.hint=这些实参将自动添加: +valgrind.argument.hint=--tool=memcheck、--xml=yes、--xml-file=、--gen-suppressions=all、、程序实参和所有禁止文件 +valgrind.configurable.no.suppression.files=无禁止文件 +valgrind.configurable.add.suppression.files.label=添加禁止文件: +valgrind.executor.description=使用 Valgrind 内存检查器分析所选配置 +valgrind.executor.run.action=运行 Valgrind Memcheck +valgrind.executor.run.action.with.configuration=通过 Valgrind Memcheck 运行 {0} +valgrind.suppress.action.title=选择禁止文件 +valgrind.suppress.action.description=选择要添加禁止的文件 +valgrind.prepare.suppression.files=正在准备 Valgrind 禁止文件… + +sanitizers.runtime.flags.border.title=运行时标志 +sanitizers.runtime.flags.hint=各工具解析相应环境变量中的选项 +sanitizers.runtime.flags.hint.note=注意: log_path、stack_trace_format、print_summary、print_stacktrace 将被覆盖 +sanitizers.import.flags.button=从现有环境变量导入标志 +sanitizers.use.visual.representation.checkbox=为 Sanitizer 的输出使用视觉表示 +sanitizers.compiler.min.version.supported=注: 要启用此功能,需要 Clang (>={0})或 GCC(>={1}) +sanitizers.tabTitle=Sanitizers +sanitizers.progress=程序正在运行… +sanitizers.llvmSymbolizer.notification.title=Google Sanitizers +sanitizers.llvmSymbolizer.notification.text=找不到 llvm-symbolizer。要通过导航获取堆栈跟踪,请将 *SAN_SYMBOLIZER_PATH 环境变量设置为指向 llvm-symbolizer 二进制文件,或确保 llvm-symbolizer 位于您的 PATH 中。 + +action.Sanitizers.EditSettings.text=编辑设置 +action.Valgrind.EditSettings.text=编辑设置 +action.Valgrind.SuppressAction.text=禁止 +action.Valgrind.ImportAction.text=导入 Valgrind XML 结果 + + +dynamic.analysis.tools.configurable.description=可用的动态分析工具列表 +configurable.group.dynamic.analysis.tools.settings.display.name=动态分析工具 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CLionWizardBundle.properties b/original-plugin-raw/zh/messages/CLionWizardBundle.properties new file mode 100644 index 000000000..479c50281 --- /dev/null +++ b/original-plugin-raw/zh/messages/CLionWizardBundle.properties @@ -0,0 +1,2 @@ +dialog.title.open.project.wizard=打开项目向导 +wizard.use.defaults=跳过向导并使用默认设置 diff --git a/original-plugin-raw/zh/messages/CMakeBundle.properties b/original-plugin-raw/zh/messages/CMakeBundle.properties new file mode 100644 index 000000000..f361e5b46 --- /dev/null +++ b/original-plugin-raw/zh/messages/CMakeBundle.properties @@ -0,0 +1,22 @@ +filetype.cmake.description=CMake +cmake.settings.formatter.spaceBeforeMethodCallParentheses=命令调用圆括号 +cmake.settings.formatter.spaceWithinMethodCallParentheses=命令调用圆括号 +cmake.settings.formatter.spaceBeforeMethodParentheses=命令定义圆括号 +cmake.settings.formatter.spaceWithinMethodParentheses=命令定义圆括号 +cmake.settings.formatter.commandCallArguments=命令调用参数 +cmake.settings.case.to.upper=改为大写 +cmake.settings.case.to.lower=改为小写 +cmake.settings.case.do.not.change=不更改 +cmake.command.name = 命令 +cmake.argument.command.name=命令 +cmake.search.element=CMake 元素 +cmake.var.reference.incorrect=变量引用不正确 +cmake.var.reference.expected.start=应为变量引用开始('${') +cmake.var.reference.expected.end=应为变量引用结束(''{0}'') +cmake.action.newCMakeLists.title=CMakeLists.txt +cmake.action.newCMakeLists.error=无法创建 CMakeLists.txt +cmake.action.newCMakeLists.error.description=''CMakeLists.txt'' 在目录 ''{0}'' 中已存在 +cmake.code.style.commands.case.title=命令大小写 +cmake.code.style.force.commands.case=强制命令大小写 +filetype.cmake.CMakeCacheFileType.description=CMake 缓存 +label.cmake.context.type.command=命令 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CPPBundle.properties b/original-plugin-raw/zh/messages/CPPBundle.properties new file mode 100644 index 000000000..b169711ac --- /dev/null +++ b/original-plugin-raw/zh/messages/CPPBundle.properties @@ -0,0 +1,15 @@ +system=系统 +lldb=LLDB + +# suppress inspection "UnusedProperty" +language.cpp.settings.description = C/C++ + +cpp.module.type={0} 模块 +cpp.module.type.description=提供编辑 {0} 文件的功能 + +group.CLion.InternalActions.text=CLion +action.open.remote.host.terminal.text=打开远程主机终端 +progress.title.connecting.to.remote.host=正在连接到远程主机 +dialog.title.connection.failed=连接失败 + +action.remote.resync.text=与远程主机重新同步 diff --git a/original-plugin-raw/zh/messages/CPPProfilerBundle.properties b/original-plugin-raw/zh/messages/CPPProfilerBundle.properties new file mode 100644 index 000000000..5b01e1c69 --- /dev/null +++ b/original-plugin-raw/zh/messages/CPPProfilerBundle.properties @@ -0,0 +1,28 @@ +profiler.executable.label={0} 可执行文件: +profiler.executable.dialog.title={0} 可执行文件路径 +profiler.browse.directory.dialog.title=浏览目录 +profiler.data.default.output.directory.placeholder=分析器数据将保留在临时目录中 +profiler.delete.files.on.exit.checkbox=退出时删除文件 +profiler.jump.to.source.min.version.hint=“跳转到源代码”操作仅在 >= 4.0.0 的 perf 版本中可用 +profiler.advanced.options.title=高级选项 +profiler.sampling.frequency.label=采样频率: +profiler.sampling.frequency.note=每秒样本数 +profiler.remote.unsupported=远程模式尚不支持分析 +profiler.output.directory.label=输出目录: +profiler.processing.navigation.data=正在收集分析器结果的导航数据 +profiler.exception.not.supported.so=此 OS 不支持附加分析器 +profiler.exception.cannot.find.process.starter=内部错误: 在 {0} 中无法找到进程启动器 +profiler.exception.cannot.detect.target.process=分析器连接错误: 无法检测目标进程 ID +profiler.exception.cannot.get.output.file=无法获取输出 perf 数据文件 +profiler.exception.perf.empty.path=空 Perf 路径 +profiler.thread.with.id=id 为 {0} 的线程 +perf.profiler.configurable.name=Perf +dtrace.profiler.configurable.name=DTrace +profiler.configurable.name=分析器 +perf.profiler.windows.selected.toolchain.not.support=Perf 分析器对所选工具链不可用 +perf.profiler.wsl.not.support=Perf 分析器对所选 WSL 分发版不可用\n尝试将 WSL 更新到较新的版本 +profiler.eventtracer.getting.profiling.info=正在解析分析信息 +profiler.eventtracer.notification.content.cmake.google.trace.format.profiling.info.found=已找到 CMake 分析信息。 +profiler.eventtracer.action.show.profiling.google.trace.info.text=打开 +action.eventtracer.action.TraceEventRunAction.text=事件跟踪插件 +action.eventtracer.action.TraceEventRunAction.description=显示事件跟踪 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CTestingBundle.properties b/original-plugin-raw/zh/messages/CTestingBundle.properties new file mode 100644 index 000000000..dd781b2c3 --- /dev/null +++ b/original-plugin-raw/zh/messages/CTestingBundle.properties @@ -0,0 +1,13 @@ +ocunit.configuration.class=类 +ocunit.configuration.method=方法 + +ocunit.allTestClasses=所有测试类 +ocunit.testClassesTip=将“类”字段留空可以选择所有类 +ocunit.allTestMethods=所有测试方法 + +action.CIDR.ShowTestList.text=显示测试列表 + +test.finding.tests=正在为 ''{0}'' 范围编制索引 + +test.ui.progress=正在解析测试名称… +action.CIDR.InvalidateTestCache.text=使测试索引无效 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CdiBundle.properties b/original-plugin-raw/zh/messages/CdiBundle.properties new file mode 100644 index 000000000..0815021b0 --- /dev/null +++ b/original-plugin-raw/zh/messages/CdiBundle.properties @@ -0,0 +1,71 @@ +cdi.framework.name=CDI +cdi.jsr.name=CDI: 上下文和依赖项注入 +cdi.create.beans.xml=创建 beans.xml + +tool.window.name=CDI + +gutter.injection.points=注入点 +gutter.choose.bean=选择 Bean +gutter.navigate.to.producers=导航到生产者 +gutter.producers.and.disposers=Disposer 方法的生产者 + +gutter.choose.goto.observes=@Observes 参数 +gutter.navigate.to.observes=导航到 @Observes + +gutter.choose.goto.fires=选择要导航的触发点 +gutter.navigate.to.fires=导航到触发点 + +actions.show.producers=显示生产者 +actions.show.injection.points=显示注入点 +actions.show.dependencies.docs=显示依赖项/文档 +actions.show.beans=显示 Bean +actions.show.qualifiers=自定义限定符 +actions.show.deployment=部署类型 +actions.show.scope=范围类型 +actions.show.interceptors=侦听器类型 +actions.show.named=@Named +show.bean.dependencies.diagram=显示 Bean 依赖项(CDI) +generating.bean.dependencies.diagram=正在生成 CDI Bean 依赖项图表 +bean.dependencies.popup.title=''{0}'' 类的依赖项 +diagram.choose.dependency.type.message=选择依赖项类型 +diagram.choose.dependency.type.title=依赖项类型 + +new.beans.xml.file.action.name=CDI Bean 描述符(beans.xml) +new.beans.xml.file.action.description=创建 beans.xml 配置文件 +gutter.choose.injected.point=选择注入点 + +action.ShowCdiDependenciesPopup.text=显示 CDI Bean 依赖项 + +# MicroProfile starter +message.specification.is.not.supported.by.version.but.supported.by.versions=所选的 {0} 版本不支持此规范。选择下面的一种版本: {1}。 +message.specification.is.not.supported.by.runtime=此规范不受运行时 {0} 的支持。 +message.specification.is.not.supported.hint=不受 {0} 支持 +message.specification.supported.hint=在 {0} 中受支持 +microprofile.starter.specifications.label=规范: +microprofile.starter.selected.specifications.label=已添加规范: +microprofile.starter.no.selected.specifications.hint=未添加规范 + +description.for.microprofile.project.starter=创建 MicroProfile 应用程序 +microprofile.starter.runtime.label=运行时: +microprofile.starter.version.label=MicroProfile: + +category.name.produces=@Produces +category.name.inject=@Inject +category.name.decorator=@Decorator +cdi.uml.presentation.name=CDI 依赖项 + +cdi.diagram.unknown.element=<未知> + +cdi.open.tool.window=打开 CDI 工具窗口 +cdi.annotations.gutter.name=Bean 类中的 CDI 注解 +cdi.config.gutter.name=CDI beans.xml 配置文件 +gutter.dependencies.diagram=CDI 依赖关系图 +gutter.dependencies.diagram.action=在新选项卡中打开图表 +gutter.dependencies.diagram.popup.action=在弹出窗口中打开图表 +gutter.navigate.method.injections.tooltip=导航到注入的 Bean +gutter.navigate.method.injections.action=导航到注入的 Bean +gutter.navigate.to.injection.point.tooltip=导航到注入点 +gutter.navigate.to.injection.point.action=导航到注入点 +gutter.dependencies.diagram.tooltip=CDI 依赖关系图… +gutter.dependencies.diagram.title=CDI 依赖关系图… +cdi.open.tool.window.title=打开 CDI 工具窗口 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CdiInspectionBundle.properties b/original-plugin-raw/zh/messages/CdiInspectionBundle.properties new file mode 100644 index 000000000..cf409a16e --- /dev/null +++ b/original-plugin-raw/zh/messages/CdiInspectionBundle.properties @@ -0,0 +1,91 @@ +model.inspection.group.name=CDI (上下文和依赖项注入) + +inspection.name.stereotype.restriction.errors=Bean 在构造型中存在范围冲突 +inspection.name.injected.errors=不正确的依赖项注入位置 +inspection.name.observer.method.errors=不正确的 observer 方法 +inspection.name.alternative.errors=被否决的 @Alternative Bean +inspection.name.decorator.errors=不正确的 @Decorator 类 +inspection.name.specialize.errors=不正确的 @Specializes 用法 +inspection.name.managed.bean.inconsistency.errors=不正确的托管 Bean 定义 +inspection.name.disposer.method.errors=不正确的 disposer 方法 +inspection.name.disposer.method.to.produces.errors=无生产者的 Disposer 方法形参 +inspection.name.interceptor.errors=无绑定类型的 @Interceptor 类 +inspection.name.unproxyable.bean.types.inconsistency.errors=无法代理的 Bean 类型不正确的用法 +inspection.name.stereotype.errors=不正确的 @Stereotype 注解类 +inspection.name.ambiguous.dependencies=有不明确的依赖项的注入点 +inspection.name.typed.annotation=不正确的 @Typed 注解用法 +inspection.name.bean.normal.scope.inconsistency=具有非默认范围的 Bean 声明 public 字段 +inspection.name.bean.scope.inconsistency=不正确的 Bean 范围 +inspection.name.beans.configuration.errors=beans.xml 中不正确的 Bean 定义 + +CdiManagedBeanInconsistencyInspection.no.appropriate.constructor=托管的 Bean 必须有不带形参的构造函数,或有使用 @Inject注解的构造函数 +CdiManagedBeanInconsistencyInspection.unallowed.ancestor=托管的 Bean 不得继承 ''{0}'' +CdiManagedBeanInconsistencyInspection.parameterized.class=托管的 Bean 不得为形参化类型 +CdiManagedBeanInconsistencyInspection.static.inner.class=托管的 Bean 不得为非 static 内部类 +CdiManagedBeanInconsistencyInspection.not.concrete.class=托管的 Bean 必须是具体的类或 @Decorator + +CdiInjectionInspection.field.cannot.be.static=static 字段上不允许 @Inject 注解 +CdiInjectionInspection.field.cannot.be.final=不允许在最终字段中使用 @Inject 注解 + +CdiInjectInspection.more.than.one.injected.constructor=托管的 Bean 必须有一个使用 @Inject 注解的构造函数 +CdiInjectInspection.wrong.injected.method.annotation=@Inject 方法不能使用 ''{0}'' 进行注解 +CdiInjectInspection.injected.method.cannot.be.static=@Inject 方法不能为 static +CdiInjectInspection.injected.with.disposes.parameters=@Inject 方法的形参不能使用 ''{0}'' 进行注解 +CdiInjectInspection.injected.method.cannot.be.abstract=@Inject 方法不能为 abstract +CdiInjectInspection.field.cannot.be.annotated.produces=注入的字段不能使用 @Produces 进行注解 + +CdiStereotypeRestrictionsInspection.different.scopes.in.stereotypes = 所有构造型必须指定相同的范围,或者必须在 Bean 中指定范围 + +CdiObservesInspection.multiple.observes.parameters.not.allowed = 方法只能包含一个 @Observes 形参 +CdiObservesInspection.wrong.observe.method.annotation= Observer 方法不能使用 ''{0}'' 进行注解 +CdiObservesInspection.observer.method.with.wrong.parameters=Observer 方法的形参不能使用 ''{0}'' 进行注解 + +CdiDecoratorInspection.cannot.find.decorates=装饰器的委托特性必须使用 @Delegate 进行注解 +CdiDecoratorInspection.too.many.decorates.in.decorator=装饰器必须只有一个使用 @Delegate 注解的委托特性 +CdiDecoratorInspection.annotation.not.allowed.for.decorator=装饰器类不允许 ''{0}'' 注解 +CdiDecoratorInspection.decorates.type.must.implements.all.decorator.interfaces=装饰器的委托类型必须实现或扩展装饰的每个类型。不受支持: {0} +CdiDecoratorInspection.injection.point.must.be.constructor.or.initializer=包含 @Delegate 形参的方法必须是构造函数或初始值设定项方法(@Injected) +CdiDecoratorInspection.delegate.injection.point.expected=@Delegate 字段必须使用 @Injected 进行注解 +CdiDecoratorInspection.class.must.be.decorator=不是装饰器的 Bean 类不能有使用 @Delegate 注解的注入点 +CdiDecoratorInspection.class.cannot.be.final=装饰器不能为最终类 + +CdiSpecializesInspection.specializes.method.must.be.non.static=专门化方法不能为 static +CdiSpecializesInspection.specializes.method.must.be.producer=专用化方法必须使用 @Produces 进行注解 +CdiSpecializesInspection.specializes.method.must.override.producer.of.superclass=专用化方法必须重写直接超类上的 @Produces 方法 +CdiSpecializesInspection.specialized.class.has.multiple.specializes=多个类专用化同一超类: {0} +CdiSpecializesInspection.specialized.class.not.defined=专用化 Bean 必须扩展另一个 Bean +CdiSpecializesInspection.specialized.class.has.duplicated.named.anno=@Named 注解不能用于专用化类和专用类 + +CdiDisposerMethodInspection.too.many.dispose.parameters=方法不能有多个使用 @Disposes 注解的形参 +CdiDisposerMethodInspection.non.abstract.disposer.method=Disposer 方法不能为 abstract + +CdiInterceptorInspection.no.binding.type=@Interceptor 必须指定至少一个侦听器绑定 + +CdiUnproxyableBeanTypesInspection.unproxyable.type.detected=注入的正常范围 Bean 无法代理 +CdiUnproxyableBeanTypesInspection.injected.in.passivating.scoped.bean.must.be.serializable=不能将非序列化类型的 Bean 注入钝化范围的 Bean 中 +CdiUnproxyableBeanTypesInspection.passivating.scoped.bean.must.be.serializable= 声明钝化范围的托管 Bean 必须为 java.io.Serializable + +CdiStereotypeInspection.qualified.annotations.not.allowed=不允许对构造型使用限定符注解 +CdiStereotypeInspection.non.empty.named.annotations.not.allowed=不允许对构造型使用非空 @Named 注解 +CdiStereotypeInspection.not.allowed.for.stereotypes=不允许用于构造型 + +CdiInspectionPointsInspection.unsatisfied.dependency=依赖项不满足要求: 没有一个 Bean 与注入点相匹配 +CdiInspectionPointsInspection.ambiguous.dependency=依赖项不明确: 有多个 Bean 与注入点相匹配 +CdiInspectionPointsInspection.new.annotation.with.other.qualifiers=@New 不能与其他限定符组合 + +CdiTypedAnnotationInspection.incorrect.bean.type=Bean 类型与 @Typed 注解的类型不相符。 +CdiTypedAnnotationInspection.non.producer=应当应用于生产者 + +CdiScopeInspection.singleton.bean.incorrect.scopes=单例 Bean 必须为 @ApplicationScoped 或 @Dependent +CdiScopeInspection.session.stateless.bean.incorrect.scopes=会话无状态 Bean 的范围必须为 @Dependent + +CdiNormalScopeInspection.public.field.in.normal.scoped.beans=具有非默认范围的 Bean 不得有 public 字段 +CdiDomBeansInspection.class.must.be=此处应为 {0} 类 +CdiDomBeansInspection.add.annotation=添加 @{0} +CdiDomBeansInspection.add.annotation.family=添加注解 +CdiDomBeansInspection.duplicated.alternative.classes=类已在 中定义 +CdiDomBeansInspection.duplicated.stereotype.classes=构造型已在 中定义 +alternative.bean.should.not.be.vetoed=替代 Bean 不应被否决 +CdiUnknownProducersForDisposerMethodInspection.cannot.find.corresponding.producers=找不到相应的生产者 + +CdiInjectInspection.field.should.not.be.initialized=注入字段可能无法初始化 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CfmlBundle.properties b/original-plugin-raw/zh/messages/CfmlBundle.properties new file mode 100644 index 000000000..addaa1137 --- /dev/null +++ b/original-plugin-raw/zh/messages/CfmlBundle.properties @@ -0,0 +1,121 @@ +cfml.parsing.tag.is.not.done=标记未完成 +cfml.parsing.unexpected.token=意外的标记 +cfml.parsing.element.is.not.closed=元素 {0} 未闭合 +cfml.parsing.no.value=未指定值 +cfml.parsing.expression.unclosed=未关闭的表达式 +cfml.parsing.closing.tag.matches.nothing=结束标记与任何内容不匹配 +cfml.parsing.right.operand.missed=应为表达式 +cfml.parsing.l.value.expected=应为左值 +cfml.parsing.assignment.expected=应为 '=' +cfml.parsing.statement.expected=不是语句 +cfml.parsing.square.bracket.expected=应为 ] +cfml.parsing.identifier.expected=应为标识符 +cfml.parsing.quote.expected=应为引号 +cfml.parsing.string.expected=应为字符串 +cfml.parsing.close.bracket.expected=应为 ) +cfml.parsing.open.bracket.expected=应为 ( +cfml.parsing.sharp.expected=应为 # +cfml.parsing.keyword.expected=应为 {0} 关键字 +cfml.parsing.semicolon.expected=应为 ; +cfml.parsing.open.curly.bracket.expected=应为 { +cfml.parsing.close.curly.bracket.expected=应为 } +cfml.parsing.open.curly.bracket.or.semicolon.expected=应为 { 或 ; +cfml.parsing.dot.dot.expected=应为 : +cfml.parsing.type.expected=应为类型 +cfml.parsing.constant.expected=应为字符串或数字 + +cfml.attribute=特性名称 +cfml.comment=注释 +cfml.tag.name=标记名称 +cfml.bracket=中括号 +cfml.operator=运算符 +cfml.string=字符串 +cfml.number=数字 +cfml.identifier=标识符 +cfml.badcharacter=错误字符 +cfml.sharp=数字符号 +cfml.keyword=关键字 + +cfml.references.inspection=引用检查 +cfml.inspections.group=CFML +cfml.file.references.inspection=文件引用 +cfml.parsing.expression.expected=应为表达式 +cfml.parsing.dot.expected=应为 . + +cfml.runconfig.directory.name.empty=未指定测试目录 +cfml.runconfig.directory.not.found=未找到目录 ''{0}'' +cfml.runconfig.directory.not.in.project=目录 ''{0}'' 不在项目根下 +cfml.runconfig.file.name.empty=未指定测试文件 +cfml.runconfig.file.not.found=找不到文件 ''{0}'' +cfml.runconfig.file.not.in.project=文件 ''{0}'' 不在项目根下 +cfml.parsing.function.expected=应为函数关键字 +directory.path.is.empty=目录路径为空 +incorrect.logical.path=逻辑路径应以 '/' 开头 +logical.path.is.empty=逻辑路径为空 +directory.path.is.not.found=目录路径无效 +logical.path.column.info=逻辑路径 +directory.path.column.info=目录路径 +no.mapping=无映射 + +livetemplate.description.cfs=插入 cfset 标记 +livetemplate.description.cfd=插入 cfdump 标记 +livetemplate.description.cfo=插入 cfoutput 标记 +livetemplate.description.coj=插入 createObject (java)方法调用 +livetemplate.description.coc=插入 createObject (coldfusion 组件)方法调用 +livetemplate.description.cow=插入 createObject (webservice)方法调用 +livetemplate.description.r=插入具有请求范围前缀的变量 +livetemplate.description.v=插入具有变量范围前缀的变量 +livetemplate.description.a=插入具有应用程序范围前缀的变量 +livetemplate.description.u=插入具有 url 范围前缀的变量 +livetemplate.description.f=插入具有形式范围前缀的变量 +applying.new.language.version.task.name=应用新语言版本 + +cfml.producer.error.url=无法识别 ''{0}'' 的默认运行配置的 URL 路径 + +cfml.runconfig.editor.server.url=Web 路径: +cfml.runconfig.dialog.template.title=默认运行配置 +cfml.runconfig.dialog.template.label=Web 路径通过 localhost 生成。如有必要,请更正。 +cfml.runconfig.dialog.template.button.run=运行 +cfml.runconfig.dialog.template.button.cancel=取消 +configurable.CfmlProjectConfigurable.display.name=ColdFusion +action.name.cfml.cfc.file=CFML/CFC 文件 +dialog.kind.tag.interface=标记接口 +dialog.kind.tag.component=标记组件 +dialog.kind.script.interface=脚本接口 +dialog.kind.script.component=脚本组件 +dialog.kind.cfml.file=CFML 文件 +dialog.title.cfml.cfc.file2=CFML/CFC 文件 +action.CfmlCreateFileAction.description=创建新的 CFML/CFC 文件 +problem.message.inspection.cfml.file.reference.description=未找到路径 +problem.message.inspection.cfml.file.reference.description2=未找到路径 ''{0}'' +template.context.presentable.name.coldfusion=ColdFusion +filetype.coldfusion.description=ColdFusion +element.type.name.unknown.type=未知类型 +find.usages.descriptive.name.argument=实参 +find.usages.descriptive.name.function=函数 +find.usages.descriptive.name.reference=引用 +find.usages.type.argument.name=实参名称 +find.usages.type.function.name=函数名称 +border.text.server.mappings=服务器映射: +type.name.variable=类型名称变量 + +settings.code.style.concatenation=串联(\\&) +inspection.message.resolve.problem=无法解析 + +code.style.panel.checkbox.align.consecutive.assignments=对齐连续赋值 +code.style.panel.checkbox.align.key.value.pairs=对齐键值对 +unit.run.configuration.form.component=组件(&C) +unit.run.configuration.form.directory=目录(&D) +unit.run.configuration.form.file=文件(&F): +unit.run.configuration.form.label.method=方法(&M): +unit.run.configuration.form.path=Web 路径(&W): +unit.run.configuration.form.radio.button.method=方法(&T) +unit.run.configuration.form.label.test=测试: +mappings.form.lang.version=语言版本(&L): +mappings.form.info.confirmation=重新打开编辑器以使变更生效 +run.config.editor.form.label.browser=浏览器(&B): +run.config.editor.form.label.web.path=Web 路径(&P): + +action.NewCfmlFile.text=CFML/CFC 文件 +action.NewCfmlFile.description=创建新的 CFML/CFC 文件 + diff --git a/original-plugin-raw/zh/messages/ChangeReminderBundle.properties b/original-plugin-raw/zh/messages/ChangeReminderBundle.properties new file mode 100644 index 000000000..79941786d --- /dev/null +++ b/original-plugin-raw/zh/messages/ChangeReminderBundle.properties @@ -0,0 +1,10 @@ +changes.browser.node.title=更改活动变更列表中文件的人也可以更改 +changes.browser.node.attribute.git.log.is.loading=Git 日志正在加载… +changes.browser.node.attribute.prediction.is.calculating=正在计算… +changes.browser.node.prediction.tooltip.text={0,choice,1#以下|2#以下} {0} 个{0,choice,1#文件|2#文件}{0,choice,1#|2#}通常与 {2} 中的{1,choice,1#文件|2#文件}一起提交 + +prediction.controller.task.background.title=ChangeReminder 正在计算预测… + +action.ChangesView.ViewOptions.ShowRelatedFiles.text=显示与活动变更列表相关的文件 +action.ChangesView.ViewOptions.ShowRelatedFiles.description=显示与活动变更列表相关的文件 +action.ChangesView.ViewOptions.ShowRelatedFiles.disabled.index.description=Git 索引已禁用 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/ChartsGotplBundle.properties b/original-plugin-raw/zh/messages/ChartsGotplBundle.properties new file mode 100644 index 000000000..a23986757 --- /dev/null +++ b/original-plugin-raw/zh/messages/ChartsGotplBundle.properties @@ -0,0 +1,12 @@ +HelmUnknownValuesInspection.display.name=未知/未声明的 Helm 属性 +HelmUnknownValuesInspection.unknown.identifier.message=未知标识符 +HelmUnknownValuesInspection.no.value.defined.message=未定义值 +HelmUnknownTemplatesInspection.display.name=未知/未声明的 Helm 模板 +HelmUnknownTemplatesInspection.description.template=未知模板名称 +filetype.HelmYaml.description=Helm 模板文件 +filetype.HelmText.description=Helm 文本模板 +TemplateRenameHandler.RenameDialog.fullName=模板 ''{0}'' +TemplateRenameHandler.RenameDialog.BaseRefactoringProcessor.UsageViewDescriptor.processedElementsHeader=重命名以下位置的模板 ''{0}'' +TemplateRenameHandler.RenameDialog.BaseRefactoringProcessor.UsageViewDescriptor.codeReferencesText={0} 模板用法 +TemplateRenameHandler.RenameDialog.BaseRefactoringProcessor.commandName=重命名 GoTemplate 自定义模板 +Kubernetes=Kubernetes diff --git a/original-plugin-raw/zh/messages/ChefBundle.properties b/original-plugin-raw/zh/messages/ChefBundle.properties new file mode 100644 index 000000000..1f7cee907 --- /dev/null +++ b/original-plugin-raw/zh/messages/ChefBundle.properties @@ -0,0 +1,28 @@ +########################################################################################################################## +# Cookbooks +########################################################################################################################## +cookbooks.source.root.name=指南 +cookbooks.roots.group.name=指南文件夹 +cookbooks.source.roots.unmark.text=取消标记指南 +cookbooks.source.root.inspection.detection.text=检测到新的 Chef 指南: {0} +cookbooks.source.root.inspection.name=配置指南 +cookbooks.source.root.choose.cookbooks=选择要添加到项目的指南 +cookbooks.source.root.inspection.family.name=检测到指南 +cookbooks.source.root.inspection.display.name=Chef 指南检测 +cookbooks.source.root.inspection.group.name=Chef +########################################################################################################################## +# Chef DK +########################################################################################################################## +chef.dk.project.notifications.title=检测到 Chef DK +chef.sdk.name=Chef DK: {0} +########################################################################################################################## +# Live Templates +########################################################################################################################## +chef.live.templates.presentable.name=Chef +########################################################################################################################## +# Foodcritic +########################################################################################################################## +chef.foodcritic.inspection.display.name=Foodcritic lint 工具 +notification.content.sdk.with.cookbooks=包含指南的 {0}:
      {1}。 +action.sdk.switch.text=切换 +action.sdk.configure.text=配置 diff --git a/original-plugin-raw/zh/messages/CidrBoostBundle.properties b/original-plugin-raw/zh/messages/CidrBoostBundle.properties new file mode 100644 index 000000000..b208969a5 --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrBoostBundle.properties @@ -0,0 +1,3 @@ +boost.test.configuration.name=Boost.Test +boost.test.configuration.description=Boost.Test 配置 +boost.testSuitesTip=将“套件”字段留空可以选择所有套件,在嵌套套件名称中使用 '/' 分隔符 diff --git a/original-plugin-raw/zh/messages/CidrBundle.properties b/original-plugin-raw/zh/messages/CidrBundle.properties new file mode 100644 index 000000000..2facc2e9b --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrBundle.properties @@ -0,0 +1,8 @@ +build=构建 + +run.configuration.name=应用程序 +run.configuration.description=应用程序配置 +run.configurationForTargetNotFound=找不到目标 ''{0}'' 的构建配置 + + +abstract.generate.action.invalid=操作对当前文本光标位置无效 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CidrCTestBundle.properties b/original-plugin-raw/zh/messages/CidrCTestBundle.properties new file mode 100644 index 000000000..1d165c981 --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrCTestBundle.properties @@ -0,0 +1,37 @@ +ctest.framework.name=CTest +ctest.run.configuration.display.name=CTest 应用程序 +ctest.run.configuration.description=CTest 应用程序配置 +ctest.run.configuration.debug.pattern=CTest 调试: {0} +ctest.updating.tests.info=正在更新 CTest 项目信息 +ctest.test.list.to.run.label=要运行的测试列表: +ctest.test.list.to.run.tooltip=指定测试名称,以逗号分隔 +ctest.targets.to.build.before.launch.title=要构建的目标 +ctest.arguments.label=CTest 参数: +ctest.select.tests.from.table=从表中选择测试 +ctest.available.tests.link=可用测试列表 +ctest.no.available.tests=项目中没有测试,或所选构建配置中的 CTest 版本低于 3.14 +ctest.build.configuration.is.not.selected=未选择构建配置。正在读取 CMake 项目,请稍候 +ctest.no.available.tests.for.debug=在所选构建配置中没有要调试的测试。CTest 测试可能被禁用或 CTest 版本低于 3.14。 +ctest.test.number.column.enabled=启用 +ctest.test.number.column.header=# +ctest.test.name.column.header=测试名称 +ctest.select.all.tests.button=全选 +ctest.unselect.all.tests.button=取消全选 +ctest.run.message.terminate=已终止,退出代码为: {0} + +test.before.run.prepare.list.start=开始准备要运行的测试… +test.before.run.prepare.list.finished=已准备测试的相关信息 +test.before.run.prepare.list.failed=警告: 未找到 CTest 信息。所选构建配置中的 CTest 版本必须至少为 3.14 才可调试测试。 + +ctest.error.json.model=无法解析 CTest json 模型:\n初始:\n{0}\n筛选:\n{1} +ctest.error.json.parsing=无法更新 CTest 项目信息: CTest 输出解析问题 +ctest.error.json.any=无法更新 CTest 项目信息 +ctest.error.ctest.execution=CTest 执行出现问题 +ctest.error.bad.ctest.exit.code=无法更新 CTest 项目信息: CTest 结束,退出代码 {0} + +dialog.message.error.while.path.macro.expansion=路径宏扩展时出错 +ctest.advertisement.all.test.configuration.is.created=创建“所有 CTest”配置。 +popup.title.select.test.for.debug=选择适合调试的 CTest 程序 +test.defaultName.allTests=所有 CTest + +ctest.error.json.filter.error=CTest --show-only=json-v1 输出没有已知的 JSON:\n{0} \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CidrCatchBundle.properties b/original-plugin-raw/zh/messages/CidrCatchBundle.properties new file mode 100644 index 000000000..6ab80f376 --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrCatchBundle.properties @@ -0,0 +1,10 @@ +catch.test.configuration.name=Catch +catch.test.configuration.description=Catch 测试配置 +catch.notValidTags=不是有效的{0,choice,0#标记|1#tag|2#标记} ''{1}'' +catch.testNotFound=找不到带有{1,choice,0#标记|1#tag|2#标记} ''{2}'' 的测试 ''{0}'' +catch.noTestsWithTags=找不到带有{0,choice,0#标记|1#tag|2#标记} ''{1}'' 的测试 +catch.configuration.tags=标记 +catch.allTestTags=所有测试标记(包括非标记) +catch.allTestForTags=所有标记测试 +catch.selectTestForNonTagged=必须明确选择非标记测试 +catch.testSuitesTip=为所有标记留空,或键入 '[tag][tag2]',或键入 'non-tagged' \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CidrCoverageBundle.properties b/original-plugin-raw/zh/messages/CidrCoverageBundle.properties new file mode 100644 index 000000000..568ac884d --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrCoverageBundle.properties @@ -0,0 +1,34 @@ +coverage.cleaning.directory=正在清理覆盖率输出目录… +coverage.processing.progress=正在处理覆盖率数据… +coverage.reading.output.data=正在解析覆盖率数据… +coverage.processing.failed=无法处理覆盖率数据:\n{0} +coverage.download.progress=正在下载覆盖率数据… +coverage.tool.not.found=找不到 {0} 工具 +coverage.tool.version.mismatch={0}的版本({1})与编译器的版本({2})不匹配:\n这可能会导致覆盖率结果不完整或为空 +coverage.not.available=代码覆盖率不适用于给定的运行配置 +coverage.message.with.configure={0}\n配置 +coverage.not.found=找不到代码覆盖率数据\n确保使用所需的编译器选项编译目标应用程序 +coverage.not.found.auto.fix=找不到代码覆盖率数据\n确保使用所需的编译器选项编译目标应用程序\n要自动添加吗?\n修正并重新运行 +coverage.auto.fix.failed=无法添加所需编译器选项 +coverage.auto.fix.manual.execution=所需编译器选项已添加\n请手动重新运行代码覆盖率 +coverage.process.execution.failed=覆盖率数据可能不完整:\n进程以非零退出代码完成 +coverage.profile.name.suffix=覆盖率 +llvm.name=LLVM +llvm.tools.missing=找不到 LLVM 覆盖率工具 +llvm.profdata.merge.failed=llvm-profdata 合并工具因错误而失败:\n{0} +llvm.cov.export.failed=llvm-cov 导出工具因错误而失败:\n{0} +gcov.llvm.name=gcov/llvm +gcov.name=gcov/llvm-cov +gcov.tools.missing=找不到 gcov/llvm-cov 覆盖率工具 +gcov.tools.failed=无法生成覆盖率数据\n{0} +tool.executable.path={0} 可执行文件路径 +specify.tool.path.placeholder=指定可执行文件路径,或将其留空以让 CLion 自动检测 +gcov.binary.row.title=gcov: +llvm.cov.binary.row.title=llvm-cov: +llvm.profdata.binary.row.title=llvm-profdata: +show.branch.coverage.checkbox=显示分支覆盖率 +show.branch.coverage.hint=支持 GCC/LLVM (12.0.0 或更高版本) +branch.coverage.table.column.name=分支覆盖率(%) +line.coverage.table.column.name=行覆盖率(%) +coverage.view.branches.covered=覆盖 {0}% 的分支 +coverage.not.found.ctest.fix=对于 CTest 执行,切换到 --coverage 编译器标志 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CidrCustomCompilerBundle.properties b/original-plugin-raw/zh/messages/CidrCustomCompilerBundle.properties new file mode 100644 index 000000000..ec400a4ae --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrCustomCompilerBundle.properties @@ -0,0 +1,21 @@ + +custom.compiler.configurable=自定义编译器 +custom.compiler.use.definition.checkbox=使用自定义的编译器配置 (*.yaml) +custom.compiler.dialog.title.definition.path.yaml=定义路径(Yaml) +custom.compiler.definitions.parse.error=YAML 解析错误: +custom.compiler.definitions.regexp.error=YAML 正则表达式错误 {0}: +custom.compiler.definitions.read.error=YAML 读取错误: +custom.compiler.definition.not.found=没有找到自定义编译器: {0} {1} +custom.compiler.definitions.directory=自定义编译器配置必须是 .yaml 文件 +custom.compiler.unknown.language=自定义编译器错误 - 未知语言: {0} {1} +custom.compiler.file.not.found=找不到自定义编译器 yaml 文件: {0} +dialog.message.file.not.found=找不到文件 +action.CIDR.ShowCustomCompilerInfo.text=显示编译器信息 +notification.title.custom.compiler.error=自定义编译器错误 +action.check.settings.text=检查设置 +action.open.definitions.file.text=打开定义文件 +custom.compiler.definitions.parse.error.unknown=未知的 YAML 解析错误 ({0}): +clion.custom.compiler.definition=自定义编译器定义 +empty.yaml.file=YAML 文件为空或不正确 +notification.content.yaml.file.changed.please.reload.project=YAML 文件已更改,请重新加载项目 +action.reload.text=重新加载 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CidrDebuggerBundle.properties b/original-plugin-raw/zh/messages/CidrDebuggerBundle.properties new file mode 100644 index 000000000..c1d4f9833 --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrDebuggerBundle.properties @@ -0,0 +1,181 @@ +debug.breakpoint.line=行断点 +debug.breakpoint.line.unresolved.hint=断点当前不会被命中。没有可执行代码与此行相关联。 + +debug.command.error.timedOut=命令超时 +debug.command.error.notSuspended=仅当目标挂起时才能执行命令 +debug.command.error.inPrompt=在提示模式下无法执行命令 +debug.command.error.evaluationTimedOut=评估挂起: {0}\n\ + 这可能是死锁或无限循环等情况所致。\n\ + 为了防止在计算变量时发生这种情况,请将 ''{1}'' 切换为。 +debug.command.error.cannotAddModulesSearchPaths=无法添加模块搜索路径 + +debug.assign.error.cannotAssignExpression=无法将表达式 ''{0}'' 分配至 ''{1}'' + +debug.settings.variables.separator=变量 +debug.settings.enableValueRenderers.action=启用值呈现器 +debug.settings.enableValueRenderers.checkbox=启用值呈现器: +debug.settings.enableValuesFilter.checkbox=隐藏范围外的变量 +debug.settings.enableValuesFilter.checkbox.hint=在当前范围内未初始化或不可用的变量将不会显示 +debug.settings.enableCocoaRenderers.checkbox=Cocoa 呈现器 +debug.settings.enableCoreDataRenderers.checkbox=核心数据呈现器 +debug.settings.enableGNUSTLRenderers.checkbox=启用 GNU C++ 库呈现器 +debug.settings.enableGNUSTLRenderers.checkbox.description=更改此选项将影响下一个调试会话 +debug.settings.enableHexNumberFormatting.checkbox=将整数显示为十六进制值 +debug.settings.enableHexNumberFormatting.asSecondary.checkbox=与原始值一起显示 +debug.settings.enableHexNumberFormatting.asSecondary.checkbox.hint=同时显示原始和十六进制数字格式 +debug.settings.enableLLDBNatvisRenderers.checkbox=为 LLDB 启用 NatVis 呈现器 +debug.settings.enableLLDBNatvisRenderers.checkbox.description=更改此选项将影响下一个调试会话 +debug.settings.enableLLDBNatvisRenderers.diagnostics=诊断: + +debugger.variables.loadMutedValue.link=加载 +debugger.variables.showRawStringValue.link=视图 + +debugger.attachedTo=调试器已附加到进程 {0,number,#} +debugger.detached=调试器已分离 +debugger.connectedTo=调试器已连接至 {0} +debugger.disconnected=调试器已断开连接 + +build.configuration.destination.ios.device=iOS 设备 +build.configuration.destination.tvos.device=tvOS 设备 +device.startingApplication.startingDebug=正在启动调试… +debug.lldb.lockedDeviceWaiting=正在等待设备解锁… +debug.lldb.lockedDeviceUserMessage={0} 无法在设备上启动应用程序,因为该设备当前已被密码锁定。\n\ + 请解锁设备。 +debug.driver.cannotCreatePipe=无法设置进程通信: {0} +debug.driver.cannotReadInputFile=无法打开输入文件: {0} +debug.gdb.error.duringStartupProgramTerminatedOnSierra={0}\n\ +\n\ +从版本 10.12 开始,由于系统完整性保护,macOS 在运行 GDB 时存在已知问题。 +debug.gdb.error.changeSettingsToLLDB=请在偏好设置中将调试器切换到 LLDB。 +debug.console.completions.tooManyCompletions=补全过多(仅显示了 {0} 个补全) +debug.console.action.jumpToDebuggerConsole.jumpTo0=跳转到 {0} 控制台 +debug.console.action.jumpToDebuggerConsole=跳转到 GDB/LLDB 控制台 + +debug.memory.view.name.pattern={0} ({1}) +debug.memory.view.tooltip.pattern=''{0}'' 的 {1} +debug.memory.view.panel.address.label=转到: +debug.memory.view.panel.error.evaluationNotAvailableWhileRunning=评估在程序运行时不可用 +debug.memory.view.panel.error.evaluationNotAvailableInSelectedFrame=评估在所选框架中不可用 +debug.memory.view.panel.error.evaluationError=评估错误: {0} +debug.memory.view.panel.error.notAPointer=不是指针 +debug.memory.view.panel.hint.takeAddress=提取地址: {0} +debug.memory.addess.copy.address=复制地址 +debug.memory.view.modify.not.supported=不支持修改 {0} +debug.address.breakpoints=地址断点 +debug.address.breakpoint={0} +debug.address.breakpoint.invalid=地址断点无效 +debug.exception.breakpoint.whenCaught.checkbox=捕获时 +debug.exception.breakpoint.whenThrown.checkbox=抛出时 +debug.exception.breakpoint.when.any.radiobutton=任意 +debug.exception.breakpoint.when.objc.radiobutton=仅限 Objective-C +debug.exception.breakpoint.when.summary.caught.label={0} 捕获时 +debug.exception.breakpoint.when.summary.thrown.label={0} 抛出时 +debug.exception.breakpoint.when.summary.thrownAndCaught.label={0} 抛出时;{1} 被捕获 +debug.exception.breakpoint.when.summary.any.label.fragment=任意 +debug.exception.breakpoint.when.summary.objc.label.fragment=Objective-C +debug.symbolic.breakpoint.moduleName.label=模块名称 +debug.symbolic.breakpoint.symbolName.label=符号名称 +debug.symbolic.breakpoint.emptySymbolName.title= +debug.symbolic.breakpoint.moduleAndSymbol.title={0}: {1} +debug.watchpoint.properties.accessType=访问类型: +debug.watchpoint.properties.error.label=错误 +debug.watchpoint.properties.lifeTime=有效时长: +debug.evaluating.expression=正在评估表达式信息… +debug.evaluating.expression.cancel=已取消表达式信息 +debug.evaluating.expression.cancel.tooltip=取消表达式信息 +debug.exception.breakpoints=异常断点 +debug.exception.breakpoint.invalid=异常断点无效 +debug.exception.breakpoint=异常断点 +debug.current.trace=线程: {0}\n\ +跟踪: {1} +debug.result.already.cancelled=结果已被取消。\n\ +当前线程: {0}\n\ +{1} +debug.result.already.set.exceptionally=结果已被异常设置。\n\ +异常: {0}\n\ +{1}\n\ +当前线程: {2}\n\ +{3} +debug.memory.view.process=内存视图 +debug.signal.suspension.cause=信号 +debug.signal.exception.cause=异常 +debug.symbolic.breakpoint.module.placeholder=所有模块 +debug.symbolic.breakpoints=符号断点 +debug.symbolic.breakpoint.invalid=断点无效 +debug.popup.error.crashed=调试器进程已结束,退出代码为 {0}。 +debug.popup.rerun=重新运行 ''{0}'' +debug.jumpToLine.text=将执行点设置到光标 +debug.jumpToLine.tooltip=拖放箭头以设置执行点 +debug.jumpToLine.warning=此操作会将下一条语句设置为另一个函数\n\ +并有可能破坏进一步执行。\n\ +是否确定? +debug.computing.source.position=正在计算源位置 +debug.watchpoints=观察点 +debug.watchpoint.obsolete=观察点过时,请移除 +debug.watchpoint.displayText.valueName.valueAccessType=%s (访问类型: "%s") +debug.watchpoint.displayText.valueName.valueAccessType.valueLifetime=%s (访问类型: "%s",有效时长: "%s") + +filetype.disasm.description=二进制图像反汇编 +filetype.hex.dump.description=内存转储 +goto.address.evaluate.view.button=查看 +goto.address.evaluation.option=评估选项 + +action.CIDR.Debugger.LLDBFrontendDebugMode.text=为 LLDBFrontend 启用调试模式 +action.CIDR.Debugger.LLDBFrontendDebugMode.description=LLDBFrontend 将等待调试器附加 +group.CIDR.Debugger.InternalActions.text=CIDR 原生调试器 +action.CIDR.Debugger.ShowMemoryViewInEditor.text=在编辑器中显示内存视图 +action.CIDR.Debugger.AddWatchPoint.text=添加观察点 +action.CIDR.Debugger.JumpToDebuggerConsole.text=跳转到调试器控制台 +action.CIDR.Debugger.ShowInMemoryView.text=在内存视图中显示 +action.CIDR.Debugger.CopyAddress.text=复制地址 +error.cannot.create.editor.for=无法为下列对象创建编辑器: {0} +error.execution.interrupted=执行中断 +action.show.addresses.text=显示地址 +dialog.message.execution.exception=执行异常 +filetype.native.visualisations.description=原生可视化 +filetype.native.visualisations.display.name=原生可视化 + +debug.editor.notification.force.mapping=找不到当前帧的文件 ''{0}'' 或其内容与编译的内容不同。您可以手动指定此文件。 +debug.editor.notification.force.mapping.select.file=选择文件… +debug.force.file.mapping.title=强制文件映射? +debug.force.file.mapping.invalid.hash=所选文件的校验和与调试信息中的校验和不同。是否仍要使用所选文件? +debug.force.file.mapping.invalid.name=所选文件的名称(''{0}'')与调试信息中的名称(''{1}'')不同。是否仍要使用所选的文件? +debug.breakpoint.line.is.relaxed.match=仅使用文件名 +debug.editor.notification.force.mapping.exists=当前帧文件 ''{0}'' 的内容与编译的内容不同。 +debug.editor.notification.force.mapping.use.it.anyway=仍要使用 +stack.frame.label.inlined=[内联] +progress.title.downloading.symbols=正在下载符号… +debug.exception.breakpoint.when.swift.radiobutton=仅限 Swift +debug.exception.breakpoint.when.kn.radiobutton=仅限 Kotlin/Native +debug.exception.breakpoint.when.summary.swift.label.fragment=Swift +debug.exception.breakpoint.when.summary.kn.label.fragment=Kotlin/Native +tab.display.name.parallel.stacks=并行堆栈 +debug.command.error.checkPermissionsMessage=附加调试器失败,请检查权限 - https://www.jetbrains.com/help/clion/attaching-to-local-process.html +debug.settings.name.objective.c=Objective-C +debug.settings.name.c.cpp=C/C++ +debug.settings.frames.separator=帧 +debug.settings.showFrameModule.checkbox=显示模块名称 +action.CIDR.Debugger.ShowFrameModuleName.text=显示模块名称 +group.CIDR.Debugger.FramePresentation.Popup.text=框架装饰 +debug.frames.unknownFunction= +action.CIDR.Debugger.DisableFilteringValues.text=隐藏范围外的变量 +action.CIDR.Debugger.MuteVariables.text=禁止变量 +action.CIDR.Debugger.EnableHexFormatting.text=将整数显示为十六进制值 +action.CIDR.Debugger.ViewAsArray.text=作为数组查看… +debugger.variables.viewAsArray.enterSize.prompt= +debugger.variables.viewAsArray.enterSize.error=未提供大小 +action.CIDR.Debugger.ShowTypes.text=显示类型 +debug.settings.showTypeTemplateArguments.checkbox=显示类型中的模板实参 +debug.settings.showFrameFunctionParameterTypes.checkbox=显示形参类型 +debug.settings.showFrameFunctionTemplateArguments.checkbox=显示函数中的模板实参 +debug.settings.cxxTypes.separator=C++ 类型(框架和变量) +debug.settings.stripCxxStdAbiVersionNamespace.checkbox=剥离辅助命名空间 +debug.settings.stripCxxStdAbiVersionNamespace.checkbox.description=移除全局和函数范围说明符以及标准 ABI 版本命名空间 +debug.settings.sugarizeCxxStlTypes.checkbox=简化 STL 类型 +debug.settings.sugarizeCxxStlTypes.checkbox.description=用可读性更强的别名替换标准库类型 +action.CIDR.Debugger.ShowFrameFunctionParameterTypes.text=显示形参类型 +action.CIDR.Debugger.ShowFrameFunctionTemplateArguments.text=显示模板实参 +group.CIDR.Debugger.ValueGroup.DataViewSettings.Popup.text=自定义演示 +action.CIDR.Debugger.ShowTypeTemplateArguments.text=显示模板实参 +action.CIDR.Debugger.StripAuxiliaryNamespaces.text=剥离辅助命名空间 +action.CIDR.Debugger.SugarizeCxxStlTypes.text=简化 C++ STL 类型 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CidrDockerBundle.properties b/original-plugin-raw/zh/messages/CidrDockerBundle.properties new file mode 100644 index 000000000..7cfd8d4c1 --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrDockerBundle.properties @@ -0,0 +1,3 @@ + +docker.message.empty.server.name=Docker 服务器名称为空 +docker.message.cannot.find.server=找不到 ''{0}'' Docker 服务器 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CidrDoctestBundle.properties b/original-plugin-raw/zh/messages/CidrDoctestBundle.properties new file mode 100644 index 000000000..f79328aa7 --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrDoctestBundle.properties @@ -0,0 +1,4 @@ +doctest.test.configuration.name=Doctest +doctest.test.configuration.description=Doctest 测试配置 +doctest.testSuitesTip=如果不需要按套件名称筛选则留空 +doctest.test.noname= \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CidrExecutionBundle.properties b/original-plugin-raw/zh/messages/CidrExecutionBundle.properties new file mode 100644 index 000000000..721c1860f --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrExecutionBundle.properties @@ -0,0 +1,89 @@ +build.configuration.executable=可执行文件 +build.configuration.parameterNotFoundForTarget=找不到{2} ''{3}'' 的{0} ''{1}'' +build.configuration.target=目标 +build.configuration.configuration=配置 +build.configuration.invalid=运行配置错误 +build.configuration.parameterNotSelected=未指定 {0} +build.configuration.parameterNotFound=找不到{0} ''{1}'' +build.configuration.productNotFound=找不到{0} ''{1}'' 的产品({2}) + +build.clean=清理 +build.clean.progress=正在清理… + +build.log.notification.group.name=构建日志 +activity.name.build=构建 +build.refreshing=正在刷新文件… +build.canceled={0} 已取消 +build.action.showLog=显示构建日志 +build.waiting=正在等待当前构建完成… +build.progress=正在构建… +build.inProgress=正在构建 +build.inProgress.cancelQuestion=是否停止? +task.execution.build=构建 +task.execution.build.0=构建 ''{0}'' +task.execution.compile.0=编译 ''{0}'' +task.execution.clean=清理 +task.execution.clean.0=清理 ''{0}'' +build.console.input.dialog=输入文本 + +build.finished={0} 已完成 +build.finished.duration={0} 在 {1} 内完成 +build.failed={0} 失败 +build.failed.duration={0} 在 {1} 内失败 + +build.details={0} {0,choice, 0#个错误|1#个错误|2#个错误}和 {1} {1,choice, 0#个警告|1#个警告|2#个警告} +# task can be `Build`, `Clean`, 'Install' ... +task.finished.with.details={0} 完成,出现 {1} 个{1,choice, 0#个错误|1#错误|2#错误}和 {2} 个{2,choice, 0#警告|1#警告|2#警告} +task.finished.with.details.and.duration={0} 完成,{3} 中出现 {1} 个{1,choice, 0#错误|1#错误|2#错误}和 {2} 个{2,choice, 0#警告|1#警告|2#警告} +task.failed.with.details={0} 失败,出现 {1} 个{1,choice, 0#错误|1#错误|2#错误}和 {2} 个{2,choice, 0#警告|1#警告|2#警告} +task.failed.with.details.and.duration={0} 失败,{3} 中出现 {1} 个{1,choice, 0#错误|1#错误|2#错误}和 {2} 个{2,choice, 0#警告|1#警告|2#警告} + +build.logToolWindowName=构建 + +test.configuration.checking=正在检查… +build.configuration.dialog.item.parameterNotFound=找不到 + +run.with.administrator.privileges=以管理员权限运行 +run.with.root.privileges=以根权限运行 +custom.executable.title=自定义可执行文件 +executable.select.title=选择可执行文件 +run.with.external.console=在外部控制台中运行 + +run.task.name.build=构建 +run.task.description.build=构建 + +test.before.run=准备测试运行 +test.before.run.description=准备测试运行 +test.before.run.progress.title=正在准备 ''{0}'' 运行… +test.before.run.progress.text=正在准备… +test.before.run.canceled=已取消准备 +test.before.run.finished=已完成准备 +test.stop.run=停止测试运行 +test.stop.run.description=停止测试运行 +test.before.run.cancelQuestion=是否希望停止测试运行? +test.before.run.inProgress=准备进行中的测试运行 +test.testNotFound=找不到测试 ''{0}'' +test.configuration.test=测试 +test.configuration.pattern=模式 +test.suiteNotFound=找不到套件 ''{0}'' +test.allTestsInSuite=套件中的所有测试 +test.allTestSuites=所有测试套件 +test.configuration.suite=套件 +test.file.not.found.in.fs=警告: 在 FS 中找不到文件: {0} +test.file.not.found.in.project=警告: 在项目中找不到文件: {0} +test.waiting.for.symbols=正在等待符号加载… +test.processing.file=正在处理文件: {0}… +test.pattern.to.run=要运行的模式: {0} +test.and.more=和其他 {0} 个 +warning.cannot.collect.info.about.tests.to.run=警告: 无法收集待运行测试的相关信息: {0} + +test.defaultName.allTests=所有测试 +test.defaultName.allTestsIn={0}中的所有 +test.defaultName.pattern=模式 + +load.variables.from.file=从文件加载变量 + +test.tests.in.project=''{0}'' 项目中的测试 +test.framework=框架 ''{0}'': +test.test.count=测试计数:{0} +test.file.is.not.source.file=文件不是源文件。当测试包含在源文件中时,将对其进行计数。 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CidrGoogleBundle.properties b/original-plugin-raw/zh/messages/CidrGoogleBundle.properties new file mode 100644 index 000000000..9a8ad97ba --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrGoogleBundle.properties @@ -0,0 +1,3 @@ +gtest.test.configuration.name=Google Test +gtest.test.configuration.description=Google Test 配置 +gtest.testSuitesTip=将“套件”字段留空可以选择所有套件 diff --git a/original-plugin-raw/zh/messages/CidrGoogleGenerateBundle.properties b/original-plugin-raw/zh/messages/CidrGoogleGenerateBundle.properties new file mode 100644 index 000000000..973fe5733 --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrGoogleGenerateBundle.properties @@ -0,0 +1,16 @@ +command.name.generate.test=生成测试 +command.name.generate.test.fixture=生成测试固定例程 +command.name.generate.setup=生成 SetUp +command.name.generate.teardown=生成 TearDown + +action.CIDR.Lang.Cpp.GenerateTest.text=测试 +action.CIDR.Lang.Cpp.GenerateTest.description=生成测试 + +action.CIDR.Lang.Cpp.GenerateTestFixture.text=测试固定例程 +action.CIDR.Lang.Cpp.GenerateTestFixture.description=生成测试固定例程 + +action.CIDR.Lang.Cpp.GenerateFixtureSetUp.text=SetUp 方法 +action.CIDR.Lang.Cpp.GenerateFixtureSetUp.description=生成 SetUp + +action.CIDR.Lang.Cpp.GenerateFixtureTearDown.text=TearDown 方法 +action.CIDR.Lang.Cpp.GenerateFixtureTearDown.description=生成 TearDown diff --git a/original-plugin-raw/zh/messages/CidrLangBundle.properties b/original-plugin-raw/zh/messages/CidrLangBundle.properties new file mode 100644 index 000000000..1d9b20063 --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrLangBundle.properties @@ -0,0 +1,70 @@ +create.tooltip.no.targets=没有合适的目标 +action.new.file.creation=创建新文件 +create.directory.failed=无法创建目录 +create.directory.failed.message=无法创建目录 ''{0}''! +create.error.files.in.directory=无法在目录 ''{1}'' 中创建文件 ''{0}'' +create.field.name=名称(&N): +create.error.invalid.name=名称 ''{0}'' 无效 +create.error.missing.target.dir=未找到目标目录 +create.error.dir.exists=名称为 ''{0}'' 的目录已存在 +create.error.file.exists=名称为 ''{0}'' 的文件已存在 +create.folder.dialog.title=选择目标文件夹 +create.folder.dialog.description=选择目标文件夹 +create.field.location=文件夹(&F): +create.tooltip.arrows.type=在编辑器中按向上或向下箭头可更改类型 +action.create.new.file=新建 {0} +create.field.type=类型(&P): +fileExtensions.noCompatibleTypes=未找到兼容的文件类型 +fileExtensions.editFileTypesTooltip=编辑文件类型 +fileExtensions.tabName=新文件扩展名 +fileExtensions.no.extensions=无扩展名 +fileExtensions.error=错误 +fileExtensions.noExtensionsError=请定义至少一对扩展名对 +fileExtensions.extensionPair=扩展名对 +fileExtensions.sourceExtension=源扩展名: +fileExtensions.headerExtension=头扩展名: +fileExtensions.fileNamingConvention=文件命名惯例: +create.cpp.source.title=C/C++ 源文件 +create.cpp.header.title=C/C++ 头文件 +create.checkbox.source.associated.header=创建关联头(&H) +create.cpp.class.title=C++ 类 +create.cpp.class.description=创建新的 C++ 类 +create.cpp.class.dialog.title=新建 C++ 类 +create.checkbox.cpp.class.header=仅创建头(&H) + +create.cpp.qt.ui.class.title=Qt UI 类 +create.cpp.qt.ui.class.description=使用 Qt Designer 表单文件创建新的 Qt 类 +create.cpp.qt.filename.base.title=文件名库 +create.cpp.qt.ui.invalid.parent.message=父类名无效 +create.cpp.qt.enclosing.namespace.title=命名空间 +create.cpp.qt.parent.class.title=父类 +create.cpp.qt.custom.class.title=自定义类 + +usage.class.predeclaration=类预声明 +usage.in.declaration=声明或预声明中的用法 +usage.in.expression=表达式中的用法 +usage.in.macro.arguments.list=宏实参列表中的用法 +usage.in.macro.substitution=宏替换中的用法 +usage.in.property.attribute=属性特性中的用法 +usage.in.synthesize.statement=synthesize 语句中的用法 +usage.in.template.argument.list=模板实参列表中的用法 +usage.in.using.statement=using 语句中的用法 +usage.member.access=成员访问 +usage.message.receiver=消息接收器 +usage.method.call=方法调用 +usage.namespace.qualifier=命名空间限定符 +usage.parameter.declaration=形参声明 +usage.protocol.predeclaration=协议预声明 +usage.protocol=协议引用 +usage.qualifier=限定符 +usage.selector.expression=选择器表达式 +usage.superclass=超类引用 +usage.variable.declaration=变量声明 + +objective.c=Objective-C +c.cpp=C/C++ +inspection.unused.code=未使用的代码 +label.adjustable.only.when.clangd.off=(只在 clangd 关闭时可调) +language.cpp.configurable.name=C/C++ +inspection.general=常规 +language.cpp.configurable.description=可用的 C/C++ 工具列表 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CidrProjectModelBundle.properties b/original-plugin-raw/zh/messages/CidrProjectModelBundle.properties new file mode 100644 index 000000000..4b051a53c --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrProjectModelBundle.properties @@ -0,0 +1,22 @@ +cannot.determine.type.size.for.key.value=无法确定 {0}:{1} 的类型大小 +cannot.expand.response.files.error.message=无法在 {0} 中展开响应文件 +cannot.get.the.original.file.name.of.the.precompiled.header=无法获取预编译头的原始文件名: {0}\n\ +请用 -MD(或 -MMD)标志运行 PCH 编译。 +compiler.unknown=未知 +dependency.file.corrupted.error.message=依赖项文件(用于获取预编译头的原始文件名)\n\ +已损坏或权限无效: {0}\n\ +请使用 -MD(或 -MMD)标志运行 PCH 编译。 +dialog.message.compiler.command.timed.out=编译器命令超时: {0} +dialog.message.compiler.exited.with.error.code=编译器退出,错误代码 {0}: {1}\n\ +{2}\n\ + +dialog.message.process.timed.out=进程超时 +header.search.root.included.headers=已包含的头 +invalid.query.message=无效查询:“{0}” +nvcc.should.not.invoke.itself=NVCC 不应自行调用! +possibly.unsupported.compiler.error.message=这个编译器可能不受支持。\n\ +如果您使用的是 GCC/Clang,请在 https://youtrack.jetbrains.com/issues/CPP 报告这个错误。 +unable.to.create.temporary.file=无法创建临时文件 +unexpected.compiler.output.error.message=意外编译器输出。 +c.macro.has.wrong.format=宏 {0} 的格式错误: {1} +action.CIDR.ShowCompilerInfo.text=显示编译器信息 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CidrStringsBundle.properties b/original-plugin-raw/zh/messages/CidrStringsBundle.properties new file mode 100644 index 000000000..6ce69c73e --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrStringsBundle.properties @@ -0,0 +1,34 @@ +filetype.strings.binary.description=字符串(二进制) +filetype.strings.binary.display.name=字符串(二进制) + +parsing.error.expected.string.literal.or.identifier=应为字符串文字或标识符 +parsing.error.expected.eq=应为 '=' +parsing.error.expected.semicolon=应为 ';' + +intention.name.provide.localizations=为 ''{0}'' 提供本地化 +intention.provide.localization=提供本地化 +intention.localize.string=本地化字符串 +intention.localize.string.title.case=本地化字符串 +intention.delete.duplicate=删除重复本地化 + +inspection.group=字符串文件 +inspection.duplicate.key=重复本地化键 +inspection.duplicate.key.error=重复本地化 ''{0}'' +inspection.duplicate.key.error.on.the.fly=重复本地化 +inspection.unused.key=未使用的键 +inspection.unused.key.error=未使用的本地化 ''{0}'' +inspection.unused.key.error.on.the.fly=未使用的本地化 +inspection.missing.language=缺少本地化语言 +inspection.missing.language.error={1,choice,1#语言|2#语言} {2} 缺少 ''{0}'' 的本地化 +inspection.not.localized=''{0}'' 不包含本地化 + +strings.file.type.display.name=字符串 +strings.dict.file.type.display.name=字符串字典 +filetype.strings.description=字符串文件 + +filetype.strings.dict.description=Stringsdict 文件 + +create.strings.title=字符串文件 +create.strings.description=创建新的字符串文件 +create.strings.dialog.title=新建字符串文件 +create.strings.dialog.kind=种类(&K): diff --git a/original-plugin-raw/zh/messages/CidrUtilUiBundle.properties b/original-plugin-raw/zh/messages/CidrUtilUiBundle.properties new file mode 100644 index 000000000..35972c516 --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrUtilUiBundle.properties @@ -0,0 +1,3 @@ +cpp.toolchains.item.parameterNoVariants=无变体 +cpp.toolchains.item.parameterNotSelected=未选择 +not.selected=未选择 diff --git a/original-plugin-raw/zh/messages/CidrUtilsBundle.properties b/original-plugin-raw/zh/messages/CidrUtilsBundle.properties new file mode 100644 index 000000000..0bc1cc905 --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrUtilsBundle.properties @@ -0,0 +1,10 @@ +chrome.trace.title=JSON 跟踪 +chrome.trace.message=跟踪已写入{0} +chrome.action.trace.text=C/C++: 启用事件跟踪 +sudo.prompt=请输入您的 sudo 密码 +sudo.error=无法将 sudo 添加到命令: ''{0}'' + +advanced.setting.cidr.util.fallback.shell=用于为环境获得源的回退 Shell +advanced.setting.cidr.util.fallback.shell.description=当 $SHELL 为空时使用 +group.advanced.settings.cidr.utils=环境文件 +advanced.setting.cidr.util.read.env.file.timeout=读取环境文件的最长时间(毫秒) \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CidrWorkspaceBundle.properties b/original-plugin-raw/zh/messages/CidrWorkspaceBundle.properties new file mode 100644 index 000000000..426a4c32a --- /dev/null +++ b/original-plugin-raw/zh/messages/CidrWorkspaceBundle.properties @@ -0,0 +1,16 @@ +project.view.actions.markAsSource=项目源和头 +project.view.actions.markAsLibrary=库文件 +project.action.changeContentRoot=更改项目根 + +clion.ignored.group.description=CLion 忽略的文件 + +roots.synchronizer.ignoring.directory=忽略目录 +roots.synchronizer.ignoring.directory.description=正在拒绝为索引编制注册文件系统根 {0},因为这样可能会导致性能下降。 + +collect.compiler.info.error.message=无法获取编译器信息 +collect.compiler.info.cancelled.message=已取消编译器信息收集 +collect.compiler.info.warning.message=收集编译器信息时遇到问题 + +external.sources.grouping.node.presentable.text=外部源 +external.sources.grouping.node.location.string=项目根外部 +external.sources.grouping.node.tooltip=此处列出的源文件位于项目根外部。不妨更改项目根。 diff --git a/original-plugin-raw/zh/messages/ClangFormatBundle.properties b/original-plugin-raw/zh/messages/ClangFormatBundle.properties new file mode 100644 index 000000000..117d8dc3a --- /dev/null +++ b/original-plugin-raw/zh/messages/ClangFormatBundle.properties @@ -0,0 +1,32 @@ +# settings dialog +cf.config.title=ClangFormat +cf.config.enable=启用 ClangFormat (仅限 C/C++/Objective-C) +cf.config.override.standard=ClangFormat 重写 IDE 代码样式设置 +cf.title.actual.clang.format={0} 的 ClangFormat 选项 + +# indent widget +cf.hint.text.overridden=ClangFormat +cf.action.group.title=ClangFormat +cf.action.disable=禁用 ClangFormat +cf.action.enable=启用 ClangFormat +cf.action.open.file=编辑 {0} 的 `.clang-format` +cf.action.open.full.set=查看 {0} 的 ClangFormat 选项 +cf.action.create.file=从代码样式创建 `.clang-format` +# suppress inspection "UnusedProperty" +cf.action.export=.clang-format 文件 + +# indent widget tooltips +cf.advertisement.text.overridden=当前代码样式被 ClangFormat 重写 +cf.advertisement.text.has.clang-format=启用 ClangFormat 并使用 `.clang-format` 重写代码样式。 +# json schema +cf.schema.name=ClangFormat + +# create `.clang-format` file Yes/No +cf.create.cf.file.title=创建 .clang-format 文件 +cf.create.cf.file.message=是否要通过有效代码样式为项目创建新的 .clang-格式文件? + +progressbar.long.clang.format=正在使用 ClangFormat 格式化… +progressbar.long.clang.indent=正在使用 ClangFormat 缩进… +progressbar.long.clang.settings=正在加载 ClangFormat 设置… + +action.CIDR.Lang.Format.ClangFormat.text=clangd: 纯 Clang 格式 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/ClangdBundle.properties b/original-plugin-raw/zh/messages/ClangdBundle.properties new file mode 100644 index 000000000..a46f204eb --- /dev/null +++ b/original-plugin-raw/zh/messages/ClangdBundle.properties @@ -0,0 +1,144 @@ +# suppress inspection "UnusedProperty" +language.cpp.clangd.configurable.name=Clangd +language.cpp.clangd.show.errors.warnings=显示来自 clangd 的错误和警告 +language.cpp.clangd.use.clang.tidy=通过 clangd 使用 clang-tidy (同时启用一些 CLion 内置检查) +language.cpp.clangd.builtin.completion=禁用 Clangd 补全 +language.cpp.clangd.only.clangd.completion=仅 Clangd 补全 +language.cpp.clangd.use.navigation=通过 clangd 使用导航 +language.cpp.clangd.errors.border.title=Clang 错误和警告 +language.cpp.clangd.clang.tidy.inspections.border.title=Clang-Tidy 和 CLion 检查 +language.cpp.clangd.navigation.border.title=导航 +language.cpp.clangd.completion.border.title=代码补全 +language.cpp.clangd.blacklist.title=Clangd +language.cpp.clangd.blacklist.description=以下文件被禁止,因为其中一个文件很可能导致服务器崩溃。\n{0} +language.cpp.clangd.daemon.notification.title=Clang 守护进程 +language.cpp.clangd.batch.action.title=Clangd 批处理 +language.cpp.clangd.info.panel.per.file.label=每个文件的信息 +language.cpp.clangd.info.panel.log.title=日志 +language.cpp.clangd.info.panel.indexing.title=正在编制索引 +language.cpp.clangd.info.panel.info.title=信息 +language.cpp.clangd.info.panel.ast.title=AST +language.cpp.clangd.info.panel.tokens.title=令牌 +language.cpp.clangd.info.panel.timings.title=计时 +language.cpp.clangd.info.panel.caret.title=文本光标 +language.cpp.clangd.info.panel.rml.title=RML +language.cpp.clangd.panel.stop.monitor.action=停止监视 +language.cpp.clangd.filters.action.title=筛选器 +language.cpp.clangd.filters.action.description=为 clangd 传入错误消息设置筛选器 +language.cpp.clangd.quick.fix=Clangd fix-it +language.cpp.clangd.disable.warning.intention=禁用 {0} +language.cpp.clangd.will.enable.clion.inspections=将启用以下 CLion 检查:

      {0} +language.cpp.clangd.memory.usage.widget.name=Clangd 内存用量 +language.cpp.clangd.memory.usage.message={0,number,#####}M,共 {1,number,#####}M +language.cpp.clangd.memory.usage.tooltip.message=Clangd 使用 {0,number,#####}M/{1,number,#####}M;平均值 = {2,number,#####}M,最大值 = {3,number,#####}M +language.cpp.clangd.indexer.memory.usage.tooltip.message=Clangd-Indexer 使用 {0,number,#####}M/{1,number,#####}M;平均值 = {2,number,#####}M,最大值 = {3,number,#####}M +language.cpp.clangd.crash.message=clangd 崩溃。请考虑将以下经过预处理的文件添加到崩溃报告中。\n代码和文件路径将模糊。默认情况下不会附加路径,也不会发送路径。 +language.cpp.clangd.crash.parses.message=可能导致故障的文件:\n{0} +language.cpp.clangd.crash.requests.message=可能导致故障的请求:\n{0} +language.cpp.clangd.disable.title=CLion 已禁用 ''{0}'' +language.cpp.clangd.disable.message=''{0}'' 可能导致 clangd 崩溃 +language.cpp.clangd.disable.keep=保持禁用 +language.cpp.clangd.disable.rollback=启用 +language.cpp.clangd.message=来自 clangd 的消息。 + +# ClangFormat UI +cf.create.cf.file.action.name = 创建 `.clang-format` 文件 + +execute.command.action.text=执行命令 +execute.command.action.description=执行任意 Clangd 命令 +execute.command.dialog.title=指定 Clangd 命令 +execute.command.ok.button.text=执行 +execute.command.method.empty.error.message=方法名称不应为空 + +action.ClangdBatchAction.text=clangd: 批处理 +action.ClangdDebugDumpUsagesAction.text=clangd: 转储解析/请求用法 +action.ClangdSetMessagesFiltersAction.text=clangd: 设置 in/out/errors 筛选器 +action.ClangdXRefCurrentAction.text=clangd: XRef 当前文件 +action.ClangdXRefAction.text=clangd: XRef +action.ClangdCrashServer.text=clangd: 服务器崩溃 +action.ClangdDumpStacktraces.text=clangd: 转储堆栈跟踪 +action.ClangdPreprocessAction.text=clangd: 预处理当前 TU +action.ClangdPreprocessAndObfuscateAction.text=clangd: 预处理和混淆当前 TU +action.ClangdReportBugAction.text=clangd: 报告错误 +action.ShowClangdToolWindowAction.text=显示 Clangd 工具窗口 +completion.press.shortcut.for.non.public.members=为非 public 成员按 {0} + +clangd.report.bug.collecting.title=正在收集文件… +clangd.report.bug.use.exception.reporter=将问题报告为致命异常 +clangd.report.bug.options.group=如何收集源代码 +clangd.report.bug.option.collect.as.is=按原样收集文件 +clangd.report.bug.option.collect.preprocessed=收集预处理文件 +clangd.report.bug.option.collect.preprocessed.and.obfuscated=收集经过预处理和模糊处理的文件 +clangd.report.bug.save.title=保存报告 +clangd.report.bug.save.description=保存相关数据,以便再现该问题 + +clangd.executable.not.found=在 {0} 下找不到 clangd +clangd.executable.cannot.execute=在 {0} 下无法执行 clangd +clangd.configurable.link.to.diagnostics=查看诊断标志列表 +clangd.panel.ast.is.too.long=AST 过长… +clangd.panel.ast.unavailable=AST 当前不可用。 +clangd.execute.command.panel.label.request=请求: +clangd.execute.command.panel.label.method=方法: +clangd.execute.command.panel.label.params=形参: +clangd.execute.command.panel.notify.invalid.json=JSON 无效 +clangd.execute.command.clangd.disabled.error=Clangd 已禁用 +clangd.standard.version.not.supported=不支持标准 clangd +clangd.crash.reason.parsing=解析 +clangd.crash.reason.highlightings=高亮显示 +clangd.crash.reason.dfa=DFA 检查 +clangd.crash.reason.clazy=Clazy +clangd.crash.reason.clion.clang.tidy=clang-tidy +clangd.crash.reason.clang.tidy=clang-tidy +intention.family.name.clang.warnings=Clang 警告 + +language.cpp.clang-tidy.configurable.name = Clang-Tidy +configurable.ClangdConfigurable.display.name=Clangd +configurable.clangTool.version.task.title=正在检查 {0} 版本 +configurable.clangTool.version.checking=内置 {0} 版本: 正在检查… +configurable.clangTool.version=内置 {0} 版本: {1} +configurable.clangTool.revision.internal=修订: {0} +configurable.clangTool.revision=LLVM 修订: {0} +configurable.clangTool.version.unable.check=内置 {0} 版本: 无法检查 +clang.tidy.schema.name=Clang-Tidy +clangd.crash.reason.completion.cache=代码补全缓存 +language.cpp.clangd.crash.message.simple=clangd 崩溃。 +language.cpp.clangd.indexer.crash.message.simple=clangd-indexer 崩溃。 +advanced.setting.clangd.use.global.completion.cache=使用全局 Clangd 补全缓存 +configurable.clangTidy.use.external.binary.checkbox=使用外部 Clang-Tidy 而不是内置 Clang-Tidy: +configurable.clangTidy.use.external.binary.path=Clang-Tidy 路径 +configurable.clangTidy.min.supported.clangTidy.version=注意: 支持 7.0.0 或更高版本的 Clang-Tidy +inspection.clangTidy.name=Clang-Tidy +inspection.clangTidy.open.settings.action=打开设置 +inspection.clangTidy.failed=无法执行 Clang-Tidy: {0} +inspection.clangTidy.not.found=Clang-Tidy 未找到或无法执行 +configurable.clangTidy.checks.options.example.hint=示例: 选项 - modernize-use-nullptr.NullMacros,值 - NULL_MACRO +configurable.clangTidy.checks.options.option.column=选项 +configurable.clangTidy.checks.options.value.column=值 +configurable.clangTidy.checks.options.dialog.title=配置 Clang-Tidy 检查选项 +configurable.clangTidy.checks.options.learnMore.button=了解详情 +configurable.clangTidy.example.link=示例 +configurable.clangTidy.checks.options.button=配置 Clang-Tidy 检查选项… +inspection.clangTidy.message=Clang-Tidy: {0} +configurable.clangTidy.prefer.files.over.ide.settings=首选 .clang-tidy 文件而不是 IDE 设置 +configurable.clangTidy.executable=指定 Clang-Tidy 可执行文件 +configurable.clangTidy.checks.hint=以逗号分隔的已启用和已禁用检查的列表。 +inspection.static.analysis=静态分析工具 +inspection.name.misra.checks=MISRA +configurable.clangTidyMisra.c.checks=C 检查 +configurable.clangTidyMisra.c.format=格式: 'clion-misra-c2012-X-Y' +configurable.clangTidyMisra.cpp.checks=C++ 检查 +configurable.clangTidyMisra.cpp.format=格式: 'clion-misra-cpp2008-X-Y-Z' +configurable.clangTidyMisra.confluence.link=支持的检查 +inspection.disable.clangTidy.check=禁用 {0} 检查 +inspection.disable.all.clangTidy.checks=禁用所有 {0} 检查 +configurable.group.language.cpp.settings.display.name=C/C++ +show.clang.tidy.info.action.title=显示 Clang-Tidy 信息 +show.clazy.info.action.title=显示 Clazy 信息 +action.ClangdDumpIndexerCDB.text=clangd:转储索引器 CDB +action.ClangdCollectParseStats.text=clangd:收集解析统计信息 +find.usages.identifier = 标识符 +clangd.indexing.message=Clangd 编制索引… +clangd.preprocessing.message=Clangd 预处理… +clangd.crash.reason.inlay_hints=嵌入提示 +language.cpp.clangd.use.parameter.info=通过 clangd 使用形参信息 +language.cpp.clangd.parameter.info.border.title=形参信息 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/ClionEmbeddedPlatformioBundle.properties b/original-plugin-raw/zh/messages/ClionEmbeddedPlatformioBundle.properties new file mode 100644 index 000000000..9a783b341 --- /dev/null +++ b/original-plugin-raw/zh/messages/ClionEmbeddedPlatformioBundle.properties @@ -0,0 +1,52 @@ +platformio.not.found.long=找不到 PlatformIO 实用程序。请检查系统路径。 +group.platformio-group.text=PlatformIO +group.platformio-group-file-popup.text=PlatformIO +platformio.clean.failed=PlatformIO 清理失败 +platformio.prebuild.clean=PlatformIO 清理 +cmake.to.create.confirmation=找不到此 PlatformIO 项目的 CMakeLists.txt。\n要创建一个吗? +cmake.to.create.confirmation.title=创建 CMakeLists.txt 文件 +project.init.failed=项目初始化失败 +file.is.not.found=在项目中找不到 {0} +cmake.workspace.is.not.initialized=CMake 工作区未初始化。 +please.check.system.path=请检查系统路径 +platformio.project.description=请参见 https://platformio.org/ +initializing=正在初始化 +platformio.init.title=PlatformIO 初始化 +src.not.found=Src 文件夹未找到或无效 +platformio.name=PlatformIO +please.select.target=请选择目标面板或框架 +gathering.info=正在收集信息… +available.boards.frameworks=可用的面板和框架: +utility.timeout=运行 PlatformIO 实用程序时超时 +platformio.exit.code=PlatformIO 实用程序已返回,退出代码 {0} +platformio.utility.failed=PlatformIO 实用程序失败 +platformio.boards.list.query=PlatformIO 面板列表查询 +platformio.support=PlatformIO 支持 +platformio.update.description=更新平台、工具链等 +install.guide=安装指南… +platformio.utility.is.not.found=找不到 PlatformIO 实用程序 +action.name.reinit=重新初始化 +action.name.reinit.description=(重新)初始化项目和 CMake +task.build=构建 +task.production=构建生产 +task.check=检查 +task.clean=清理 +task.home=主目录 +task.home.description=启动 PlatformIO 内部 Web 服务器 +task.update.all=全部更新 +platformio.description=PlatformIO +platformio.project.type=PlatformIO +filetype.platformio.description=PlatformIO +platformio.actiongroup.name=PlatformIO +task.monitor=监视器 +task.monitor.description=启动 PlatformIO 串行监视器 +run.config.debug=PlatformIO 调试 +run.config.upload=PlatformIO 上传 +run.config.test=PlatformIO 测试 +run.config.program=PlatformIO 程序 +run.config.uploadfs=PlatformIO Uploadfs +configurable.ClionEmbeddedPlatformioBundle.display.name=PlatformIO +platformio.utility.location=PlatfomIO Core CLI 路径: +open.settings.link=设置… +separator.general.settings=常规设置 +platformio.path.hint=留空以使用系统路径或自定义位置,例如: {0}{1}.platformio{1}penv{1}Scripts{1}platformio{2} diff --git a/original-plugin-raw/zh/messages/ClionExternalSystemBundle.properties b/original-plugin-raw/zh/messages/ClionExternalSystemBundle.properties new file mode 100644 index 000000000..c0a655abd --- /dev/null +++ b/original-plugin-raw/zh/messages/ClionExternalSystemBundle.properties @@ -0,0 +1,3 @@ + +load.project.notification.text={0} 项目未加载 +load.project.action.text=加载 {0} 项目 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/ClionGradleBundle.properties b/original-plugin-raw/zh/messages/ClionGradleBundle.properties new file mode 100644 index 000000000..c6773d0c7 --- /dev/null +++ b/original-plugin-raw/zh/messages/ClionGradleBundle.properties @@ -0,0 +1,8 @@ +compiler.was.not.found.for.configuration=找不到 ''{0}'' 的编译器 +compiler.working.dir.was.not.found.for.configuration=找不到 ''{0}'' 的编译器工作目录 +configuration.failed=配置失败 +configure.environment=配置环境… +cpp.compiler.message.group=Cpp 编译器 +gradle.native.application=Gradle 原生应用程序 +gradle.native.application.configuration=Gradle 原生应用程序配置 +loading.gradle.native.project=正在加载 Gradle 原生项目… \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CloudBundle.properties b/original-plugin-raw/zh/messages/CloudBundle.properties new file mode 100644 index 000000000..9cfb8fded --- /dev/null +++ b/original-plugin-raw/zh/messages/CloudBundle.properties @@ -0,0 +1,71 @@ +group.RemoteServersViewToolbar.text=远程服务器 +action.RemoteServers.ConnectServer.text=连接 +action.RemoteServers.ConnectServer.description=连接到选定远程服务器 +action.RemoteServers.DisconnectServer.text=断开 +action.RemoteServers.DisconnectServer.description=从选定远程服务器断开 +action.RemoteServers.EditServerConfig.text=编辑配置 +action.RemoteServers.EditServerConfig.description=编辑选定远程服务器配置 +action.RemoteServers.ChooseServerDeployment.text=部署 +action.RemoteServers.ChooseServerDeployment.description=将给定项部署到选定远程服务器上 +action.RemoteServers.ChooseServerDeploymentWithDebug.text=调试 +action.RemoteServers.ChooseServerDeploymentWithDebug.description=在选定远程服务器上部署和调试给定项 +action.Servers.Deploy.text=部署 +action.Servers.Deploy.description=部署选定项 +action.Servers.Undeploy.text=取消部署 +action.Servers.Undeploy.description=取消部署选定项 +action.Servers.DeployWithDebug.text=调试 +action.Servers.DeployWithDebug.description=部署并调试选定项 +action.RemoteServers.EditDeploymentConfig.text=编辑配置 +action.RemoteServers.EditDeploymentConfig.description=编辑选定部署运行配置 +group.RemoteServers.AddCloudConnectionGroup.text=云连接 +# +run.configuration.name={0} - {1} +clouds.configure.empty.selection.string=要配置与 {0} 的集成,请点击 ''+'' +remote.server.combo.create.new.server=新建… +remote.server.combo.auto.detected.server=<{0}: 自动检测到的服务器> +remote.server.combo.no.servers= +remote.server.combo.message.test.connection.in.progress=正在验证自动检测到的连接… +remote.server.combo.message.test.connection.failed=无法自动检测设置,需要手动配置 +new.cloud.connection.configurable.title=新建 {0} 连接 +create.new.deployment.configuration.generic=创建… +create.new.deployment.configuration.for.singleton.type=创建{0}部署… +action.presentation.DeployAction.text=重新部署 +action.presentation.DeployAction.description=重新部署所选条目 +presentable.name.clouds=云 +module.builder.description.java.module.of.paas.cloud.application=PAAS 云应用程序的 Java 模块 +button.cloud.new=新建… +popup.title.new.account=新帐户 +server.type.deployment.configuration.typ.presentable.name.0.deployment={0}部署 +label.text.deployment=部署: +label.text.server=服务器: +group.action.AddRemoteServerGroup.text=添加 +configurable.display.name.clouds=云 +editor.pane.text.empty.text={0}{3} +task.title.connecting=正在连接… +cloud.status.connecting=正在连接… +cloud.status.connection.successful=连接成功 +cloud.status.cannot.connect=无法连接: {0} +cloud.status.double.click.to.connect=双击服务器节点以进行连接 +deploy.to.server.configuration.type.description=部署到{0}运行配置 +dialog.title.create.deployment.configuration=创建部署配置 +dialog.title.edit.deployment.configuration=编辑部署配置 +dialog.message.account.required=需要帐户 +dialog.message.email.required=需要电子邮件 +dialog.message.password.required=密码为必填项 +DeployToServerRunConfiguration.tab.title.deployment=部署 +DeployToServerRunConfiguration.error.server.required=未指定服务器 +DeployToServerRunConfiguration.error.server.not.found=找不到服务器 {0} +DeployToServerRunConfiguration.error.deployment.not.selected=未选择部署 +ServersTreeStructure.RemoteServerNode.popup.title.deploy.configuration=部署配置 +ServersTreeStructure.RemoteServerNode.popup.title.deploy.debug.configuration=部署并调试配置 +ServerConnectionImpl.error.cannot.obtain.deployments=无法获取部署: {0} +AddCloudConnectionAction.description=添加 {0} 连接 +ConnectionStatus.disconnected=已断开连接 +ConnectionStatus.connected=已连接 +ConnectionStatus.connecting=正在连接 +DeploymentStatus.deployed=已部署 +DeploymentStatus.not.deployed=未部署 +DeploymentStatus.deploying=正在部署 +DeploymentStatus.undeploying=正在取消部署 +CloudModuleWizardStep.title.account=帐户 +CloudModuleWizardStep.title.application=应用程序 diff --git a/original-plugin-raw/zh/messages/CloudConfigBundle.properties b/original-plugin-raw/zh/messages/CloudConfigBundle.properties new file mode 100644 index 000000000..b271f836b --- /dev/null +++ b/original-plugin-raw/zh/messages/CloudConfigBundle.properties @@ -0,0 +1,87 @@ +cloud.sync.plugin.status.not.installed=未安装 +cloud.sync.plugin.status.installed=已安装 +cloud.sync.plugin.status.disabled=已禁用 +cloud.sync.plugin.status.enabled=已启用 + +settings.group.sync.state.disable.locally=本地禁用 + +not.connected.message=IDE 设置同步已禁用。点击以配置同步 +connected.message=IDE 设置已同步 +update.plugins.message=插件未同步。点击以配置插件同步 +io.operation.message=正在同步 IDE 设置… +not.accepted.message=您尚未受邀使用新插件 +login.message=IDE 设置同步已禁用。要启用,请登录 JetBrains Account +offline.message=IDE 设置已禁用同步。要启用,请禁用“Settings Repository”插件 +update.api.message=可以同步更多设置。点击以配置同步 +progress.title.download.jba.cloud.shared.plugins=正在下载共享插件… + +update.api.notification.message=现在可以同步更多设置。 + +accepted.title=IDE 设置同步邀请 +accepted.message=您已受邀使用新插件 + +default.error.message=无法访问 JetBrains IDE 设置仓库。 +error.connected.message=无法同步 IDE 设置。点击以同步 +error.connected.full.message=无法同步 IDE 设置: {0} \n点击以同步 +error.401.message=同步 IDE 设置失败: JetBrains Account 凭据无效。\n点击以登录 +error.message.title=无法同步 IDE 设置 +error.message.requested.entity.too.large=请求的实体过大 + +enable.cloud.action=启用同步… +hide.cloud.action=在状态栏中隐藏 +change.account.action=更改帐户… +plugins.auto.update=静默同步插件 +self.settings.action=选择要同步的设置… +update.plugins.action=选择要更新的插件… +disable.cloud.action=禁用同步… +update.api.action=同步新设置… + +not.connected.popup.title=IDE 设置未同步 +connected.popup.title=IDE 设置已同步 +plugins.popup.title=IDE 设置: 有可用的插件更新 +connected.popup.bottom.title=已针对 {0} 同步 + +dialog.title.general=IDE 设置同步 +notification.title.general=IDE 设置同步 + +connect.message=将在您使用 JetBrains Account 登录的所有 IDE 安装之间同步 IDE 设置。同步的设置为 UI 与编辑器主题、键盘映射和插件。 +connect.plugins.auto=静默同步插件: 不询问同步哪些插件 +connect.button=启用设置同步 + +connect.this.message=可以从 JetBrains Account {0} 同步 IDE 设置。\n这些设置为 UI 与编辑器主题、键盘映射和插件。 +connect.this.remote.button=从帐户获取设置 +connect.this.local.button=保留和同步本地设置 + +self.settings.dialog.title=设置同步 + +plugins.dialog.title=插件同步 +plugins.dialog.message=这些插件在另一个 IDE 中进行了更改。应用变更或跳过: +plugins.dialog.button=应用变更 + +update.api.dialog.message=现在可以同步更多设置。\n从此 IDE 同步或取消,并从另一个安装同步。 +update.api.dialog.button=同步新设置 + +disconnect.message=对此 IDE 禁用设置同步? +disconnect.remove.data=从云中移除设置(为所有 IDE 实例禁用设置同步) +disconnect.copy.data=将帐户中的实际/最新设置复制到此 IDE +disconnect.button=禁用设置同步 + +offline.dialog.title=另一个插件阻止 IDE 设置同步 +offline.dialog.message=取消设置设置仓库,以将 IDE 设置同步到 JetBrains Account。 + +action.CloudConfigAction.text=将设置同步到 JetBrains Account… +group.CloudConfigActionGroup.text=IDE 设置同步 + +plugin.sync.state.uninstall.everywhere=随处卸载 +plugin.sync.state.install.everywhere=随处安装 +plugin.sync.state.enable.everywhere=随处启用 +plugin.sync.state.disable.everywhere=随处禁用 +plugin.sync.state.skip.everywhere=随处跳过 +plugin.sync.state.skip=跳过 +settings.group.look.and.feels=外观和风格 +settings.group.keymaps=键盘映射 +settings.group.editor.settings=编辑器设置 +settings.group.editor.color.schemes=编辑器配色方案 +settings.group.configure.parameter.name.hints=配置形参名称提示 +settings.group.projectview.shared.settings=ProjectView 共享设置 +settings.group.editor.code.style.schemes=编辑器代码样式方案 diff --git a/original-plugin-raw/zh/messages/CloudFormationBundle.properties b/original-plugin-raw/zh/messages/CloudFormationBundle.properties new file mode 100644 index 000000000..49cc894e9 --- /dev/null +++ b/original-plugin-raw/zh/messages/CloudFormationBundle.properties @@ -0,0 +1,88 @@ +aws.cloudformation.inspections.group.name=AWS CloudFormation 检查 +aws.cloudformation.inspections.formatViolation=CloudFormation 格式违规 +aws.cloudformation.inspections.unresolvedReference=未解析的引用 +aws.cloudformation.template.context.type.json=AWS CloudFormation (JSON) +aws.cloudformation.template.context.type.yaml=AWS CloudFormation (YAML) + +aws.cloudformation.new.json.file.action=AWS CloudFormation JSON 模板 +aws.cloudformation.new.json.file.action.description=创建新的 AWS CloudFormation JSON 模板 + +aws.cloudformation.new.yaml.file.action=AWS CloudFormation YAML 模板 +aws.cloudformation.new.yaml.file.action.description=创建新的 AWS CloudFormation YAML 模板 + +format.unknownVersion=未知的 AWS CloudFormation 模板版本 #ref。支持的版本: {0} +format.expected.quoted.string=应为一个字符串文字 +format.unknown.section=未知部分: {0} +format.unknown.value=未知的值类型: {0} +format.expected.json.object=应为 JSON 对象 +format.max.outputs.exceeded=超过模板中 {0} 个输出的最大值 +format.max.parameters.exceeded=超过模板中 {0} 个参数的最大值 +format.max.mappings.exceeded=超过模板中 {0} 个映射的最大值 +format.unknown.type=未知的 CloudFormation 资源类型: {0} +format.unknown.resource.type.property=未知的资源类型属性: {0} +format.unknown.resource.property=未知的资源属性: {0} +format.required.resource.properties.are.not.set=未设置所需的资源属性: {0} +livetemplate.description.ref=插入对实体的引用 +reference.expects.one.string.argument=引用需要一个字符串参数 +condition.reference.expects.one.string.argument=条件引用需要一个字符串参数 +base64.reference.expects.1.argument=Base64 引用需要 1 个参数 +findinmap.requires.3.arguments=FindInMap 需要 3 个参数 +getattr.in.short.form.requires.argument.in.the.format.logicalnameofresource.attributename=缩写形式的 GetAttr 需要格式为 logicalNameOfResource.attributeName 的参数 +getatt.requires.two.string.arguments.in.full.form.or.one.string.argument.in.short.form=GetAtt 需要两个完整格式的字符串参数或一个缩写格式的字符串参数 +implicit.iam.function.role.supports.only.arn.attribute=隐式 IAM 函数角色仅支持 'Arn' 特性 +unknown.attribute.in.resource.type.0.1=资源类型 ''{0}'' 中的未知特性: {1} +getazs.expects.one.argument=GetAZs 需要一个参数 +cidr.expects.two.or.three.arguments=Cidr 需要两个或三个参数 +importvalue.expects.one.argument=ImportValue 需要一个参数 +join.expects.a.string.argument.and.an.array.argument=Join 需要一个字符串参数和一个数组参数 +split.expects.two.string.arguments=Split 需要两个字符串参数 +select.expects.an.index.argument.and.an.array.argument=Select 需要一个索引参数和一个数组参数 +select.index.should.be.a.valid.non.negative.number=选择索引应为有效的非负数 +sub.expects.one.argument.plus.an.optional.value.map=Sub 需要一个参数加上一个可选值映射 +0.expects.at.least.2.arguments={0} 至少需要 2 个参数 +equals.expects.exactly.2.arguments=Equals 需要正好 2 个参数 +if.s.first.argument.should.be.a.condition.name=If 的第一个参数应为条件名称 +if.expects.exactly.3.arguments=If 需要正好 3 个参数 +not.expects.exactly.1.argument=Not 需要正好 1 个参数 +type.value.is.required=需要类型值 +outputs.section.must.declare.at.least.one.stack.output=Outputs 部分必须至少声明一个堆栈输出 +globals.section.supported.with.0.transform.only=Globals 部分仅支持 {0} 转换 +globals.section.must.provide.defaults.for.at.least.one.resource=Globals 部分必须至少为一个资源提供默认值 +unsupported.globals.section.0.the.following.sections.are.supported.1=不支持的 globals 部分 ''{0}''。支持以下部分: {1} +property.0.is.unsupported.in.1.sections.of.globals=Globals 的 ''{1}'' 部分不支持属性 {0} +parameters.section.must.declare.at.least.one.parameter=Parameters 部分必须至少声明一个参数 +expected.a.string=需要一个字符串 +required.property.type.is.missing.or.empty=所需的类型属性缺失或为空 +unknown.parameter.type.0=未知形参类型: {0} +unknown.parameter.property.0=未知参数属性: {0} +expected.an.array=需要一个数组 +0.is.too.long.1.chars.maximum.allowed.length.is.2={0} 过长({1} 个字符),允许的最大长度为 {2} +expected.a.number=需要一个数字 +0.property.is.valid.for.1.type.only={0} 属性仅对 {1} 类型有效 +expected.an.integer.or.float=应为整数或浮点 +0.property.is.valid.for.1.type.only1={0} 属性仅对 {1} 类型有效 +only.true.value.is.allowed=仅允许 'True' 值 +mappings.section.must.declare.at.least.one.parameter=Mappings 部分必须至少声明一个参数 +type.property.is.required.for.resource=资源需要类型属性 +resources.section.should.declare.at.least.one.resource=Resources 部分必须至少声明一个资源 +resources.section.is.missing=缺少 Resources 部分 +filetype.aws.cloudformation.templates.json.description=AWS CloudFormation 模板(JSON) +filetype.aws.cloudformation.templates.json.display.name="AWS CloudFormation (JSON)" +a.non.empty.key.is.expected=需要一个非空键 +a.value.is.expected=需要一个值 +expected.an.expression=需要一个表达式 +expected.a.string.or.an.array.of.strings=需要一个字符串或字符串数组 +filetype.aws.cloudformation.templates.yaml.description=AWS CloudFormation 模板(YAML) +filetype.aws.cloudformation.templates.yaml.display.name=AWS CloudFormation (YAML) +expected.a.name=需要一个名称 +unknown.cloudformation.function.0=未知 CloudFormation 函数: {0} +too.many.values=值太多 +cloudformation.function.expects.a.scalar.value.or.a.sequence=CloudFormation 函数需要一个标量值或序列 +expected.yaml.mapping=需要 YAML 映射 +a.string.literal.is.expected=需要一个字符串文字 +unexpected.tag.0=意外标记: {0} +unexpected.yaml.document=意外的 YAML 文档 +expected.top.level.value=需要顶层值 + + +required.property=必要 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CloudFoundryBundle.properties b/original-plugin-raw/zh/messages/CloudFoundryBundle.properties new file mode 100644 index 000000000..b64495e68 --- /dev/null +++ b/original-plugin-raw/zh/messages/CloudFoundryBundle.properties @@ -0,0 +1,52 @@ +CFIntegration.name=Cloud Foundry +CFManifest.invalid.manifest.file=无效清单文件 {0}: {1} +AppSettingsEditor.error.instances.should.be.valid.number=实例应为有效数字或留空 +CFCloudConfigurable.error.message.organization.required=“组织”为必填项 +CFCloudConfigurable.error.message.space.required=“空间”为必填项 +CFCloudConfigurable.error.email.required=“电子邮件”为必填项 +CFCloudConfigurable.error.password.required=密码为必填项 +CFCloudConfigurable.error.provider.api.url.required=“提供程序(API URL)”为必填项 +CFCloudConfigurable.error.invalid.port.number=端口号无效 +CFCloudType.presentable.name=CloudFoundry +CFDeploymentEditor.choose.manifest.file=选择清单文件 +CFDeploymentEditor.error.infra.required=“架构”为必填项 +CFDeploymentEditor.error.domain.required=“域”为必填项 +CFManifest.error.manifest.path.required=未指定清单路径 +CFManifest.error.incorrect.applications.section=无效清单格式: 应用程序部分不正确。 +NewAppServiceEditor.error.name.required=“名称”为必填项 +NewAppServiceEditor.error.configuration.required=“配置”为必填项 +NewAppServiceEditor.error.tier.required=“层级”为必填项 +AppSettingsEditor.label.instances=实例: +AppSettingsEditor.label.memory=内存: +CFCloudConfigurable.label.cloud.instance=云实例: +CFCloudConfigurable.label.domain=域: +CFCloudConfigurable.label.organization=组织: +CFCloudConfigurable.label.password=密码: +CFCloudConfigurable.label.port=端口: +CFCloudConfigurable.label.provider.api.url=提供程序(API URL): +CFCloudConfigurable.label.space=空间: +CFCloudConfigurable.checkbox.trust.self.signed.certificates=信任自签名证书 +CFCloudConfigurable.label.username.email=用户名(电子邮件): +CFCloudConfigurable.label.version=版本: +CFDeploymentEditor.label.application=应用程序: +CFDeploymentEditor.checkbox.debug=调试 +CFDeploymentEditor.label.domain=域: +CFDeploymentEditor.button.edit.services=编辑服务 +CFDeploymentEditor.label.infra=架构: +CFDeploymentEditor.label.manifest=清单: +CFDeploymentEditor.separator.title.services=服务 +CFDeploymentEditor.separator.title.settings=设置 +CFDeploymentEditor.label.type=类型: +CFDeploymentEditor.checkbox.use.custom.domain=使用自定义域: +NewAppServiceEditor.label.configuration=配置: +NewAppServiceEditor.label.description=描述: +NewAppServiceEditor.label.name=名称: +NewAppServiceEditor.label.tier=层级: +AppSettingsEditor.memory.item.default=<默认> +CFDeploymentEditor.dialog.title.edit.services=编辑服务 +CFDeploymentEditor.dialog.title.reload.application.settings=重新加载应用程序设置 +CFDeploymentEditor.dialog.title.loading.services.configuration=正在加载服务配置 +CFDeploymentEditor.dialog.title.applying.services.configuration=正在应用服务配置 +CFCloudConfigurable.title.loading.spaces.and.organizations=正在加载空间和组织 +CFCloudConfigurable.error.failed.to.download.client.libraries=无法下载客户端库: {0} +NewAppServiceEditor.title=服务 diff --git a/original-plugin-raw/zh/messages/CocoaBundle.properties b/original-plugin-raw/zh/messages/CocoaBundle.properties new file mode 100644 index 000000000..8a6295542 --- /dev/null +++ b/original-plugin-raw/zh/messages/CocoaBundle.properties @@ -0,0 +1,26 @@ +filetype.xcode.core.data.model.description=核心数据模型 +filetype.xcode.core.data.model.display.name=核心数据模型 +filetype.xcode.plist.description=属性列表 +filetype.xcode.plist.display.name=属性列表 +filetype.xcode.plist.binary.description=属性列表(二进制) +filetype.xcode.plist.binary.display.name=属性列表(二进制) +filetype.xcode.sirikit.intent.definition.description=SiriKit Intent 定义 +filetype.xcode.sirikit.intent.definition.display.name=SiriKit Intent 定义 +filetype.xcode.storyboard.description=Storyboard +filetype.xcode.storyboard.display.name=Storyboard +filetype.xcode.xib.description=XIB +filetype.xcode.xib.display.name=XIB +filetype.xcode.core.ml.model.description=CoreML 模型 +filetype.xcode.core.ml.model.display.name=CoreML 模型 + +fonts.failed.exitCodeNonZero=无法获取字体: 以非零退出代码终止 +fonts.failed.missingExecutePermission=获取字体失败: {0} 的执行权限丢失 +fonts.failed.missingRuntime=获取字体失败: 没有找到 SDK {0} 的运行时 + +cannot.read.info.plist=无法读取 {0} +cannot.find.bundle.in.info.plist=在 {0} 中找不到 CFBundleIdentifier + +cannot.create.xctest.scope.file=无法创建 XCTest 范围文件 +cannot.create.xctest.configuration.file=无法创建 XCTestConfiguration 文件 + +documentation.was.not.found=未找到文档 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CocoaCommonBundle.properties b/original-plugin-raw/zh/messages/CocoaCommonBundle.properties new file mode 100644 index 000000000..e3156fb18 --- /dev/null +++ b/original-plugin-raw/zh/messages/CocoaCommonBundle.properties @@ -0,0 +1,59 @@ +xcode=Xcode + +settings.selected.toolchain=工具链: {0} +settings.selected.xcode=所选 Xcode: +settings.xcode.restart.required=切换 Xcode 后需要重启。 +settings.xcode.notFound.title=找不到 Xcode +settings.xcode.notFound=在 {0} 找不到 Xcode +settings.xcode.using.version.at.path=在 {1} 使用 Xcode {0} +settings.xcode.alternative.version.available=有可用的替代 Xcode {0}: +settings.xcode.switch.to.version=切换到 Xcode {0} +settings.xcode.switching.to.version.at.path=在 {1} 切换到 Xcode {0} + +settings.xcode.download.caches.automatically.title=自动下载 Xcode 缓存 +settings.xcode.download.caches.automatically.hint=没有缓存,初始编制索引时间会显著增加 + +xcode.select.timed.out=xcode-select 超时 +xcode.select.returned.empty.path=xcode-select 返回空路径 + +settings.xcode.version.not.found=[未找到] +settings.xcode.version.not.supported=[不支持] + +run.unsupportedPlatform={1} 配置不支持 {0} 平台 +run.uitests.unsupported.on.macos=macOS 上不支持 UI 测试 + +device.connecting=正在连接到设备… +device.disconnected=设备已断开连接 +device.startingApplication=正在启动应用程序… +device.startingApplication.installing=正在安装应用程序… +device.startingApplication.lookingForApplication=正在查找应用程序… +device.reportMessage=请尝试从设备上卸载应用程序,然后重试。\n\ +如果无效,请向我们的跟踪器 (https://youtrack.jetbrains.com/issues/OC) 报告问题 +device.appBundleHasNoEnvironment=应用程序包不提供环境变量。 +device.appBundleHasNoHomeVar=应用程序包环境不提供 HOME 变量。 +device.locked.message.0=设备锁定期间无法运行和调试。 +device.locked.message.1=请解锁并重新连接设备。 +device.unknown.error=未知设备错误 +device.cannotStopSession=无法停止当前设备会话 + +simulator.session.started.with.pid=模拟器会话以进程 {0} 开始 +simulator.launch.host.application.with.name.and.bundle.id=启动主机应用程序 {0} ({1}) +simulator.timeout.waiting.for.pid=等待模拟的应用程序 PID 时超时 +simulator.cannot.stop=无法停止模拟器 + +simulator.stoppingSession=正在停止模拟器会话… +simulator.stoppingPreviousSession=正在停止上一个模拟器会话… +select.xcode.application=选择 Xcode 应用程序 +xcode.configurable.restart=重新启动 +xcode.configurable.later=稍后 + +failed.to.lookup.device.support.symbols=无法查找设备支持符号 +failed.to.lookup.device.support.symbols.description.0=找不到平台 {0} 的设备支持目录。 +failed.to.lookup.device.support.symbols.description.1=这可能会严重影响调试器性能。 +failed.to.lookup.device.support.symbols.description.2=请使用 Xcode Organizer 检查设备。 +dialog.message.device.busy=设备 {0} 正忙 +dialog.message.not.connected={0} 未连接 +dialog.message.failed.to.start.host.application.invalid.pid.received=无法启动主机应用程序,收到的 pid 无效。 +dialog.message.unknown.error=未知错误 +dialog.message.failed.to.obtain.installed.application.info=无法获取已安装应用程序信息 +dialog.message.timeout.when.communication.with.device=与设备通讯超时: diff --git a/original-plugin-raw/zh/messages/CodeInsightBundle.properties b/original-plugin-raw/zh/messages/CodeInsightBundle.properties new file mode 100644 index 000000000..47b629ec8 --- /dev/null +++ b/original-plugin-raw/zh/messages/CodeInsightBundle.properties @@ -0,0 +1,563 @@ +error.hint.file.is.readonly=文件 {0} 为只读文件 +error.dialog.readonly.file.title=文件为只读文件 +reformat.directory.dialog.options=选项 +reformat.directory.dialog.filters=筛选器 +process.scope.directory=目录 ''{0}'' +process.scope.project=项目 ''{0}'' +process.scope.module=模块 ''{0}'' +process.scope.changed.files=只处理 VCS 更改的文件 +reformat.code.accept.button.text=运行 +reformat.option.code.cleanup=清除代码(&C) +reformat.option.vcs.changed.region=仅未提交到 VCS 的变更(&V) +configure.code.style.on.fragment.dialog.title=调整代码样式设置 +configure.code.style.on.fragment.dialog.cancel=跳过 +configure.code.style.on.fragment.dialog.progress.text=筛选影响所选代码段的设置… +configure.code.style.on.fragment.dialog.progress.text.under=按 “跳过” 显示所有设置 +process.optimize.imports=优化 import +process.optimize.imports.before.commit=提交前优化 import +progress.text.optimizing.imports=正在优化 import… +# suppress inspection "UnusedProperty" +progress.reformat.and.optimize.common.command.text=格式化并优化 import +command.cleanup.code=清理代码 +process.cleanup.code=正在清理代码… +command.rearrange.code=重新排列代码 +process.rearrange.code=正在重新排列代码… +process.rearrange.code.before.commit=提交前重新排列代码 +dialog.reformat.files.title=重新格式化文件 +dialog.reformat.files.optimize.imports.checkbox=优化 import(&O) +dialog.reformat.files.reformat.selected.files.label=格式化所选文件? +command.name.typing=输入 +generate.delegate.method.chooser.title=选择要为其生成委托的方法 +# suppress inspection "UnusedProperty" +generate.delegate.target.chooser.title=选择要为其生成委托的目标 +generate.getter.setter.title=选择要生成 Getter 和 Setter 的字段 +generate.getter.fields.chooser.title=选择要生成 Getter 的字段 +generate.setter.fields.chooser.title=选择要生成 Setter 的字段 +methods.to.override.chooser.title=选择要重写的方法 +# suppress inspection "UnusedProperty" +methods.to.override.implement.chooser.title=选择要重写/实现的方法 +generate.list.popup.title=生成 +surround.with.cast.template=((Type)expr) +surround.with.ifelse.template=if / else +surround.with.if.expression.template=if (expr) {...} +surround.with.if.template=if +surround.with.not.template=!(expr) +surround.with.parenthesis.template=(expr) +surround.with.try.finally.template=try / finally +surround.with.while.template=while +surround.with.chooser.title=环绕方式 +unwrap.popup.title=选择要解开/移除的语句 +unwrap.if=解开 'if...' +unwrap.else=解开 'else...' +remove.else=移除 'else...' +unwrap.while=解开 'while...' +unwrap.for=解开 'for...' +unwrap.braces=解开大括号 +unwrap.try=解开 'try...' +remove.catch=移除 'catch...' +unwrap.with.placeholder=解开 ''{0}'' +highlight.thrown.exceptions.chooser.all.entry=列出的全部 +status.bar.exit.points.highlighted.message={0} 退出 {0, choice, 1#point|2#points} 高亮的 (按 {1} 再次移除高亮显示, 按 Esc 以移除所有高亮) +status.bar.highlighted.usages.message={1} 的{0} {0, choice, 1#用法|2#用法} 已找到 (再次按 {2} 移除高亮显示, 按 Esc 移除全部高亮显示) +status.bar.highlighted.usages.no.target.message={0} 的 {0, choice, 1#用法|2#用法} 已找到 (再次按 {2} 移除高亮显示, 按 Esc 移除全部高亮显示) +status.bar.highlighted.usages.not.found.message=未找到 {0} 的任何用法 +status.bar.highlighted.usages.not.found.no.target.message=未找到任何用法 +parameter.info.no.parameters=<无形参> +parameter.info.no.fields=<无字段> +n.of.m={0}/{1} +quick.definition.back=后退 +quick.definition.forward=前进 +quick.definition.edit.source=编辑源 +quick.definition.show.source=显示源 +create.directory.command=创建目录 +intention.implement.abstract.class.interface.text=实现接口 +intention.implement.abstract.class.subclass.text=创建子类 +intention.implement.abstract.method.class.chooser.title=选择实现类 +intention.create.test=创建测试 + +intention.preview.adv.show.text=按 {0} 打开预览 +intention.preview.adv.hide.text=按 {0} 隐藏预览 +intention.preview.no.available.text=预览不可用 +intention.preview.loading.preview=正在加载… +lightbulb.tooltip=点击或按 {0} +dialog.intention.settings.description.panel.title=描述: +intention.settings=意图 +intention.settings.category.text=您已选择意图类别 {0}
      点击复选框,您可以启用/禁用此类别中的所有意图。
      要启用/禁用特定意图,请在此类别中选择意图。 +templates.postfix.settings.category.text=您已选择后缀补全语言。
      点击复选框,您可以启用/禁用语言的所有后缀模板。
      要启用/禁用后缀模板,请在组中选择模板。 +templates.postfix.settings.category.before=采用所选模板的示例代码将显示在此处。 \n 闪烁的矩形显示意图适用的位置。 +templates.postfix.settings.category.after=后缀补全调用结果将显示在此处。 +templates.postfix.editable.description=用户定义的后缀模板 +javadoc.parameters=形参: +javadoc.returns=返回值: +javadoc.throws=抛出: +javadoc.external.fetch.error.message=无法提取远程文件: 内部错误 +searching.for.implementations=正在搜索实现… +searching.for.definitions=正在搜索定义… + +goto.implementation.chooserTitle=选择{0}的实现方法 ({1} found{2}) +goto.implementation.findUsages.title={0} 的实现 +goto.implementation.notFound=未找到任何实现 + +goto.test.chooserTitle.test=选择{0}的测试({1} 已找到{2}) +goto.test.findUsages.test.title={0} 的测试 +goto.test.chooserTitle.subject=选择{0}的测试主题({1} 已找到{2}) +goto.test.findUsages.subject.title={0} 的测试对象 +goto.test.notFound=未找到任何测试对象 + +incremental.search.tooltip.prefix=搜索: +goto.super.method.chooser.title=选择 super 方法 +goto.super.method.findUsages.title={0} 的 super 方法 +javadoc.action.back=后退 +javadoc.action.forward=前进 +javadoc.action.view.external=查看外部文档 +javadoc.fetching.progress=正在提取文档… +no.documentation.found=未找到任何文档。 +javadoc.candidates=方法调用 {0} 的候选者为:

      {1} +javadoc.adjust.font.size=调整字体大小… +javadoc.open.as.tool.window=作为工具窗口打开 +javadoc.restore.size=恢复大小 +javadoc.show.toolbar=显示工具栏 +javadoc.show.on.mouse.move=在鼠标移动时显示 +doc.render.dumb.mode.text=索引编制期间无法渲染文档 +doc.render.loading.text=正在加载… +doc.render.not.available.text=不可用 +doc.render.gutter.icon.setting=文档注释就地渲染 +doc.render.copy.action.text=复制选择 +doc.render.icon.accessible.name=就地注释渲染 +declaration.navigation.title=选择声明 +declaration.navigation.nowhere.to.go=无法找到要转到的声明 +template.shortcut.enter=Enter +template.shortcut.tab=Tab +template.shortcut.space=空格 +template.shortcut.custom=自定义 +template.shortcut.none=无 +templates.no.defined=未在此上下文中定义任何模板 +templates.surround.no.defined=未在此上下文中定义任何环绕模板 +templates.settings.page.title=实时模板 +templates.select.template.chooser.title=选择模板 +templates.dialog.edit.variables.title=编辑模板变量 +templates.dialog.edit.variables.table.column.name=名称 +templates.dialog.edit.variables.table.column.expression=表达式 +templates.dialog.edit.variables.table.column.default.value=默认值 +templates.dialog.edit.variables.table.column.skip.if.defined=如果定义则跳过 +templates.dialog.shortcut.chooser.label=默认展开方式 +dialog.edit.template.shortcut.default=默认({0}) +dialog.edit.template.template.text.title=模板文本(&T): +dialog.edit.template.button.edit.variables=编辑变量(&E) +dialog.edit.template.label.abbreviation=缩写(&B): +dialog.edit.template.label.description=描述(&D): +dialog.edit.template.options.title=选项 +dialog.edit.template.label.expand.with=展开方式(&X) +dialog.edit.template.checkbox.reformat.according.to.style=按照样式重新格式化(&R) +dialog.edit.template.checkbox.shorten.fq.names=缩短完全限定名称(&F) +dialog.edit.template.context.other=其他 +dialog.edit.template.applicable.in.contexts=适用于 {0} +dialog.edit.template.no.applicable.contexts=无适用上下文 +finish.template.command=完成模板 +template.next.variable.command=转到下一个代码模板选项卡 +template.previous.variable.command=转到上一个代码模板选项卡 +macro.capitalize.string=capitalize(String) +macro.decapitalize.string=decapitalize(String) +macro.firstWord.string=firstWord(String) +macro.underscoresToSpaces.string=underscoresToSpaces(String) +macro.spacesToUnderscores.string=spacesToUnderscores(String) +macro.underscoresToCamelCase.string=underscoresToCamelCase(String) +macro.capitalizeAndUnderscore.string=capitalizeAndUnderscore(String) +macro.enum=enum(...) +macro.groovy.script=groovyScript("groovy code") +livetemplate.description.itar=遍历数组元素 +livetemplate.description.itco=遍历 java.util.Collection 的元素 +livetemplate.description.iten=遍历 java.util.Enumeration +livetemplate.description.itit=遍历 java.util.Iterator +livetemplate.description.itli=遍历 java.util.List 的元素 +livetemplate.description.ittok=从字符串遍历标记 +livetemplate.description.ritar=以相反顺序遍历数组的元素 +livetemplate.description.iter=迭代可迭代对象或数组 +livetemplate.description.inst=检查包含 instanceof 的对象类型并向下转换 +livetemplate.description.lst=提取数组的最后一个元素 +livetemplate.description.mn=为变量设置较小的值 +livetemplate.description.mx=为变量设置较大的值 +livetemplate.description.psvm=main() 方法声明 +livetemplate.description.toar=将 java.util.Collection 的元素存储到数组中 +livetemplate.description.lazy=执行延迟初始化 +livetemplate.description.if.not.null=插入 'if not null' 语句 +livetemplate.description.if.null=插入 'if null' 语句 +livetemplate.description.geti=插入单一实例方法 getInstance +livetemplate.description.serr=将一个字符串打印到 System.err +livetemplate.description.sout=将一个字符串打印到 System.out +livetemplate.description.souf=将一个格式化字符串打印到 System.out +livetemplate.description.soutm=将当前类和方法名称打印到 System.out +livetemplate.description.soutp=将方法形参名称和值打印到 System.out +livetemplate.description.soutv=将一个值打印到 System.out +livetemplate.description.st=String +livetemplate.description.psf=public static final +livetemplate.description.prsf=private static final +livetemplate.description.psfi=public static final int +livetemplate.description.psfs=public static final String +livetemplate.description.thr=引发新 +livetemplate.description.surround.tag=使用 环绕 +livetemplate.description.surround.cdata.in.xmlorhtmlorjsp=使用 CDATA 部分环绕 +livetemplate.description.surround.with.callable=使用可调用对象环绕 +livetemplate.description.surround.with.read.lock=使用 ReadWriteLock.readLock 环绕 +livetemplate.description.surround.with.write.lock=使用 ReadWriteLock.writeLock 环绕 +disable.intention.action=禁用 ''{0}'' +enable.intention.action=启用 ''{0}'' +under.construction.string=正在构建。 +error.cannot.resolve.class=无法解析类 ''{0}'' +implementation.view.title={0} 的定义 +show.implementations.index.not.ready=没有索引,无法找到快速定义 +type.definition.view.title={0} 的类型定义 +show.type.definition.index.not.ready=没有索引,无法找到快速类型定义 +intention.intercept.ejb.method.or.class.family=添加 EJB 侦听器 +intention.intercept.ejb.method.or.class.class.text=为 EJB 类 ''{0}'' 添加侦听器 +intention.intercept.ejb.method.or.class.method.text=为业务方法 ''{0}'' 添加侦听器 +intention.edit.interceptor.binding.family=侦听器绑定 +intention.edit.interceptor.binding.text=编辑侦听器 ''{0}'' 绑定 +powered.by=技术支持: +powered.by.plugin=''{0}'' 插件 +error.cannot.resolve.0.1=无法解析{0}''{1}'' +unknown.encoding.0=未知编码: ''{0}'' +multiple.implementations.tooltip=多个实现 +# suppress inspection "UnusedProperty" +intentions.category.ejb=EJB +choose.type.popup.title=选择类型 +class.completion.file.path=按 {0} 再次搜索所有匹配的项目文件 +class.completion.file.path.all.variants=按 {0} 搜索任何类型的匹配文件 +create.file.family=创建文件 +create.directory.family=创建目录 +rename.file.reference.family=重命名文件引用 +rename.file.reference.text=重命名 {0} 的文件引用 +create.directory.text=创建目录 {0} +create.file.text=创建文件 {0} +create.file.incorrect.path.hint=无法为 ''{0}'' 查找或创建目标目录 +create.tagfile.text=创建标记文件 {0} +rename.file.fix=重命名文件 +rename.element.family=重命名元素 +rename.public.class.text=将类 ''{0}'' 重命名为 ''{1}'' +rename.named.element.text=将 ''{0}'' 重命名为 ''{1}'' +javadoc.error.resolving.url=无法解析 URL {0}

      项目设置中配置 API 文档的路径可能有所帮助 + +inlay.hints.show.settings=禁用方法 ''{0}'' 的提示 +inlay.hints.show.settings.description=打开形参名称提示设置 +inlay.hints.intention.family.name=形参名称提示 +inlay.hints.enable.action.text=启用形参名称提示 +inlay.hints.disable.action.text=禁用提示 +inlay.hints.disable.option=禁用 ''{0}'' +# Disable option action text can be more readable and shorter than the text defined by 'inlay.hints.disable.option'. +# If the option name starts with value #0, the disable option action text is calculated as the option name +# with prefix #0 replaced with prefix #1. +# Leave #0 and/or #1 values empty ({0,choice,0#|1#}) if this shortening rule is not applied to language. +inlay.hints.disable.option.shortening_rule={0,choice,0#显示 |1#不显示 } +inlay.hints.enable.option=启用 ''{0}'' +# Enable option action text can be more readable and shorter than the text defined by 'inlay.hints.enable.option'. +# If the option name starts with this value (where '|' character is replaced with a space), the enable option action text is +# assumes to be the option name. +# Leave the value empty if this shortening rule is not applied to language. +inlay.hints.enable.option.shortening_rule=显示| +inlay.hints.language.list.description=为项目中使用的特定语言配置内联提示设置。 +inlay.hints.toggle.action=全局切换嵌入提示 + +block.comment.intersects.existing.comment=所选区域与现有注释相交 +block.comment.wrapping.suffix=所选区域包含块注释后缀 +block.comment.nested.comment=选定区域包含块注释 {0, choice, 1#注释|2#注释},\n周围的范围被注释。 + +parameter.info.switch.overload.shortcuts=使用 {0} 或 {1} 切换 +parameter.info.switch.overload.shortcuts.single=使用 {0} 切换 + +collapse.selection.existing.autogenerated.region=无法移除自动生成的折叠区域 +collapse.selection.overlapping.warning.title=折叠选区 +collapse.selection.overlapping.warning.text=存在重叠的折叠区域 +collapse.selection.overlapping.warning.ok=移除 +collapse.selection.overlapping.warning.cancel=取消 + +parameter.info.progress.title=正在计算形参信息… + +configurable.PostfixTemplatesConfigurable.display.name=后缀补全 +configurable.InspectionToolsConfigurable.display.name=检查 +gutter.color.preview=颜色预览 + +completion.not.available.during.indexing=生成索引时,代码补全在此处不可用 +completion.automatic.command.name=自动补全 +completion.incomplete.during.indexing.suffix=;编制索引时,结果可能不完整 +completion.incomplete.light.edit.suffix=;在 LightEdit 模式下,结果可能不完整。在项目中打开文件 + +completion.ad.press.0.to.insert.1.to.replace=按 {0} 插入,按 {1} 替换 +completion.ad.use.0.to.overwrite=使用 {0} 用选定变量覆盖当前标识符 +completion.ad.press.0.to.choose.with.dot=按 {0} 选择所选 (或第一个) 建议,然后插入点 +completion.ad.moving.caret.down.and.up.in.the.editor={0} 和 {1} 将在编辑器中向下和向上移动文本光标 + +lookup.action.never.show.intention.icon=从不显示意向图标 +lookup.action.show.intention.icon=显示意图图标 + +postfix.completion.option.enabled=启用后缀补全(&E) +postfix.completion.option.autopopup=在补全自动弹出窗口中显示后缀模板(&S) +postfix.completion.expand=展开带以下后缀的模板 +templates.list.multiple.live.templates.are.selected=已选择多个动态模板 +templates.list.no.live.templates.are.selected=未选择任何动态模板 +inlay.hints.show.hints.for=显示以下项的提示: +emmet.enable.jsx.emmet=启用 JSX Emmet +settings.postfix.completion.description=描述: +settings.postfix.completion.before=之前: +settings.postfix.completion.after=之后: +settings.code.style.set.from=设置自… +disable.inlay.hints.of.type.action.name=禁用 ''{0}'' 提示类型 +settings.inlay.hints.panel.name=嵌入提示 +settings.inlay.parameter.hints.panel.name=形参提示 +settings.inlay.show.parameter.hints=显示形参提示 +settings.inlay.parameter.hints.exclude.list=形参名称提示排除列表 +settings.inlay.hints.warning.hints.for.language.disabled=''{0}'' 的嵌入提示已禁用。 +settings.inlay.hints.warning.configure.settings=配置设置。 +notification.show.parameter.hints.settings.or.undo.label=显示形参提示设置撤消 +settings.inlay.java.exclude.list=排除列表… +checkbox.apply.to.the.&topmost.expression=应用于最上方的表达式(&T) +action.DumbAware.TemplateListPanel.text.restore.defaults=恢复默认设置 +action.DumbAware.TemplateListPanel.description.restore.default.setting=为选定模板恢复默认设置 +action.AnActionButton.text.duplicate=复制 +action.AnActionButton.text.edit.scopes=编辑范围… +action.AnActionButton.Template.list.text.duplicate=复制 +action.AnActionButton.text.restore.deleted.defaults=恢复删除的默认设置 +action.AnActionButton.text.open.as.popup=作为弹出窗口打开 +action.presentation.DocumentationComponent.text=编辑源 +action.presentation.LookupUi.text=action.presentation.LookupUi.text +action.presentation.QuickFixPreviewPanelFactory.text=部分修复 +action.presentation.QuickFixPreviewPanelFactory.text.suppress=禁止 +node.field.tooltip.description=创建新字段 +new.enum.constant.text=枚举常量 +new.enum.constant.description=创建新枚举常量 +node.method.tooltip.description=创建新方法 + +tooltip.disabled.because.the.template.has.no.variables.surrounded.with.signs=禁用,因为模板没有变量(用 $ 符号环绕) +link.define.context=定义 +link.change.context=更改 +intention.family.edit.cleanup.profile.settings=编辑清理配置文件设置 +message.navigation.is.not.available.here.during.index.update=索引更新期间无法在此处导航 +border.title.after=之后: +border.title.before=之前: +button.generate=生成 +button.generate.by.pattern=按模式生成 +command.wrap.with.template=使用模板包装 +tooltip.no.text.selected.in.editor=在编辑器中未选择文本 +dialog.title.reformat.file.0=重新格式化文件: {0} +documentation.tool.window.title=文档 +popup.title.auto.update.from.source=从源自动更新 +action.description.refresh.documentation.on.selection.change.automatically=选择变更时自动刷新文档 +action.description.restore.popup.view.mode=恢复弹出窗口视图模式 +progress.text.searching.for.additional.intention.actions.quick.fixes=正在搜索附加意图操作和快速修复 +error.hint.can.t.expand.postfix.template=无法展开后缀模板 +popup.title.next.error.action.0.goes.through=“下一个错误”操作{0}将作用于: +progress.title.searching.for.context.actions=正在搜索上下文操作… +notification.element.information.is.not.available.during.index.update=索引更新期间元素信息不可用 +dialog.title.rename=重命名 +label.enter.the.new.group.name=输入新的组名称: +dialog.title.change.context.type.for.selected.templates=更改所选模板的上下文类型 +dialog.title.move.to.a.new.group=移至新组 +action.text.move=移动 +dialog.title.create.new.group=创建新组 +intention.family.edit.injected.fragment=编辑注入的片段 +intention.text.edit.0.fragment=编辑 {0} 片段 +name.for.injected.file.default.lang.name=已注入 +name.for.injected.file.0.fragment.1.2.3={0} 片段({1}:{2}).{3} +message.file.size.0.exceeds.code.insight.limit.1=文件大小({0})超出了配置的限制({1})。代码洞察功能不可用。 +command.fix.documentation=修复文档 +notification.navigation.is.not.available.while.indexing=编制索引期间导航不可用 +notification.0.is.not.available.during.indexing=编制索引期间{0}不可用 +comment.use.expr.variable.to.refer.target.expression=使用 $EXPR$ 变量引用目标表达式 +label.applicable.expression.types=适用的表达式类型: +progress.text.adjusting.white.space=正在调整空格 +progress.text.postprocessing=正在后处理 +progress.text.removing.line.breaks=正在移除换行符 +progress.text.converting.end.of.line.comments=正在转换行尾注释 +label.template.key=密钥: +message.template.key.must.be.an.identifier=模板键必须是标识符 +dialog.title.create.new.template=创建新的 {0} 模板 +dialog.title.edit.template=编辑 ''{0}'' 模板 +postfix.live.template.title=后缀 +postfix.template.description.under.construction=正在构建 +action.text.edit.postfix.templates.settings=编辑后缀模板设置 +label.next.tip=下一提示 +action.text.edit.live.template.settings=编辑活动模板设置 +action.text.disable.live.template=禁用 ''{0}'' 模板 +progress.title.resolving.reference=正在解析引用… +command.expand.postfix.template=展开后缀模板 +dialog.title.expressions=表达式 + +action.rerun.dependency=重新运行依赖关系分析 +action.group.by.scope.type=按范围类型分组 +action.group.by.scope.type.description=按范围类型分组(生产、测试、库) +action.show.files=显示文件 +action.show.files.description=显示/隐藏文件 +action.close.dependency.description=关闭依赖视图 +action.analysis.noun=分析 +action.flatten.packages=平展软件包 +action.show.modules=显示模块 +action.show.modules.description=显示/隐藏模块 +action.show.illegals.only=仅显示非法移民 +action.show.illegals.only.description=只显示文件非法依赖 +action.edit.rules=编辑规则 +action.edit.rules.description=编辑依赖规则 +action.select.in.left.tree=在左侧的树中选择 +action.select.in.left.tree.description=在左侧的树中选择(浏览依赖) +action.forward.dependency.analysis=依赖性分析 +action.backward.dependency.analysis=分析反向依赖 +package.dependencies.progress.title=正在分析依赖关系 +backward.dependencies.progress.text=分析反向依赖 +find.dependencies.progress.text=正在搜索用法: {0} +analyze.dependencies.transitive.dependencies.checkbox=显示传递依赖。 +analyze.dependencies.on.scope.action.text=分析{1}上模块 ''{0}'' 的依赖关系 +analyze.dependencies.not.available.notification.indexing=在索引就绪之前,分析依赖项不可用 +analyze.dependencies.unable.to.create.rule.error.message=未添加规则。''{0}'' 与 ''{1}'' 之间没有直接的依赖关系 +analyze.dependencies.show.module.groups.action.text=显示模块组 +usage.view.canceled=已取消 +package.dependencies.toolwindow.display.name=依赖关系查看器 +package.dependencies.toolwindow.title={0}的依赖 +package.dependencies.on.toolwindow.title=在{1}上{0}的依赖 +no.dependencies.found.message=在{1}没有发现{0}的依赖. +dependencies.in.imports.message=导入中的依赖项被忽略。 +backward.dependencies.toolwindow.title={0}的反向依赖 +package.dependencies.build.progress.text=正在扫描软件包 +package.dependencies.build.process.title=正在扫描软件包 +unknown.node.text=<未知> +package.dependencies.node.items.count={0, choice, 1#1 条|2#{0, number} 条} +status.bar.no.rule.violation.message=没有违反规则 +status.bar.rule.violation.message=以下规则{{0, choice, 1# is|2#s are} 违反: {1} +dependency.configurable.display.name=依赖验证 +dependency.configurable.deny.table.column1=禁止被...使用 +dependency.configurable.deny.table.column2=位置 +dependency.configurable.allow.table.column1=允许被...使用 +dependency.configurable.allow.table.column2=仅位于 +skip.import.statements.checkbox.title=跳过 import 语句 +mark.dependency.illegal.text=非法掩码 + +edit.intention.settings.intention.text=编辑意图设置 +action.module.dependencies.direction=依赖方向 +action.module.dependencies.tests=包括测试依赖项 +update.module.tree.progress.title=更新模块树 +update.module.tree.progress.text=处理模块''{0}''循环 +module.dependencies.cycle.node.text=循环{0} +module.dependencies.scope.dialog.module.button=检查模块''{0}'' (&M) +module.dependencies.scope.dialog.project.button=检查整个项目 (&P) +module.dependencies.scope.dialog.title=指定分析范围 +error.package.set.token.expectations=意外的 ''{0}'' +error.package.set.pattern.expectations=应为软件包模式 +error.package.set.rparen.expected=应为 ')' +error.package.set.position.parsing.error={0} 在位置 {1} +analysis.scope.title={0} 范围 +analysis.options=分析选项 +action.analyze.verb=分析 +scope.option.whole.project=整个项目 (&P) +scope.option.module.with.mnemonic=模块''{0}'' (&M) +scope.option.custom=自定义范围 (&C) +scope.option.uncommitted.files=未提交的文件(&U) +scope.option.uncommitted.files.all.changelists.choice=所有 +specify.analysis.scope=指定{0}范围 +scope.option.include.test.sources=包含测试代码(&T) +scope.option.analyze.injected.code=检查注入的代码(&J) +package.dependencies.library.node.text=库类 +intention.family.convert.number=转换数字 +checkbox.optimize.imports=优化 import(&O) +radio.button.reformat.selected.text=所选文本(&S) +radio.button.reformat.whole.file=整个文件(&W) +checkbox.code.cleanup=代码清理 +radio.button.reformat.only.vcs.changed.text=仅未提交到 VCS 的变更(&V) +label.reformat.optional=可选: +checkbox.rearrange.code=重新整理代码(&N) +label.reformat.scope=范围: +label.non.ascii.chars.example.files.containing.bom=例如,以 FEFF 开头的文件 +label.non.ascii.chars.example.characters.in.comments=例如: // hello გენაცვალი +label.non.ascii.chars.example.characters.in.identifiers=例如: int Поле = 0; +label.non.ascii.chars.example.characters.in.strings=例如: println("ษ ฤๅษี") +label.non.ascii.chars.example.different.languages.in.identifiers=例如: void printЕрунда() +label.non.ascii.chars.example.different.languages.in.string=例如: foo("Сore"); //cyrillic С +checkbox.non.ascii.option.different.languages.in.identifiers=标识符中的不同语言 +checkbox.non.ascii.option.different.languages.in.string=字符串中有不同语言 +checkbox.non.ascii.option.files.containing.bom=包含 BOM 的文件 +checkbox.non.ascii.option.characters.in.identifiers=标识符中的非 ASCII 字符 +checkbox.non.ascii.option.characters.in.comments=注释中的非 ASCII 字符 +checkbox.non.ascii.option.characters.in.strings=字符串中的非 ASCII 字符 +separator.title.warn.of=警告: +label.file.included.into=已包含到: +checkbox.reformat.project.file.masks=文件掩码(&F) +checkbox.reformat.project.include.subdirectories=包含子目录(&I) +checkbox.rearrange.entries=重新排序条目(&R) +checkbox.reformat.project.scope=范围(&S) +checkbox.reformat.project.cleanup.code=清理代码 +label.file.mask.is.invalid=文件掩码无效 +show.siblings.choose.super.method.title=选择 super 方法 +intention.family.name.flip=翻转逗号 +tooltip.file.not.under.vcs.root=文件不在 VCS 根下 +tooltip.file.was.not.changed.since.last.revision=文件在上次修订后未变更 +code.style.possibly.overridden.message=设置可能被 {0} 重写 +hint.text.imports.optimized=导入已优化 +hint.text.no.unused.imports.found=找不到未使用的 import +hint.text.rearranged.code=重新排列的代码 +hint.text.formatted.line=已格式化 {0} {0, choice, 1#个行|2#个行} +hint.text.formatting.canceled=格式设置已取消 +link.text.documentation.on={0} 上的文档 +link.text.element.documentation.on.url={1} 的 `{0}` +documentation.message.documentation.is.not.available=在构建索引前,文档不可用。 +html.external.documentation.component.header={1, choice, 0#|1#`{0}` 的}外部文档 +label.encoding.name=编码名称 +documentation.rendered.documentation.with.href.link=带有链接的渲染的文档 +separator.goto.tests=测试 +separator.goto.tested.classes=已测试的类 +methods.to.implement.chooser.title=选择要实现的方法 +popup.content.navigation.not.available.during.index.update=索引更新期间无法在此处导航 +goto.related.items.separator.other=其他 +parameter.info.message=形参信息。按 TAB 浏览每个元素。按 ESC 关闭。 +accessible.name.expression.type.hint=表达式类型提示 +accessible.name.parameter.info.press.tab=形参信息。按 TAB 浏览每个元素。按 ESC 关闭。 +progress.title.preparing.result=正在准备结果… + +intention.name.flip=翻转 ',' (可能改变语义) +intention.text.convert.path.to.relative=将路径转换为相对路径 +intention.text.convert.path.to.absolute=将路径转换为绝对路径 +intention.family.convert.absolute.path.to.relative=将绝对路径转换为相对路径 +intention.family.convert.relative.path.to.absolute=将相对路径转换为绝对路径 +actions.on.save.page.checkbox.reformat.code=重新格式化代码 +actions.on.save.page.link.configure.scope=配置范围… +actions.on.save.page.label.whole.file=整个文件 +actions.on.save.page.label.changed.lines=变更的行 +actions.on.save.page.checkbox.optimize.imports=优化 import +actions.on.save.page.checkbox.rearrange.code=重新排列代码 +actions.on.save.page.checkbox.run.code.cleanup=运行代码清理 +actions.on.save.page.code.cleanup.comment=应用代码清理检查中的修正 +actions.on.save.page.link.configure.inspections=配置检查… +actions.on.save.page.link.configure.arrangement.rules=配置排列规则… +actions.on.save.page.popup.title.arrangement.settings=打开排列设置 +inlay.hints.chain.call.chain=调用链 +inlay.hints.chain.minimal.unique.type.count.to.show.hints=显示提示的最小唯一类型计数 +do.not.keep.line.breaks=不保留换行符(&B) +hint.text.custom.line.breaks.are.preserved=再次重新格式化以移除自定义换行符 +inlay.hints.exclude.list.method=不显示当前方法的提示 +inlay.hints.exclude.list.pattern.explanation= 要禁用方法提示,请使用相应模式:

      java.lang - java.lang 软件包中的方法
      java.lang.*(*, *) - java.lang 软件包中包含两个形参的函数
      (*info) - 形参名称以 info 结尾的单形参方法
      (key, value) - 包含形参键和值的方法
      *.put(key, value) - 包含键和值形参的 put 方法

      +inlay.hints.base.exclude.list.description=默认情况下应用的 {0} 排除列表 +notification.inlay.method.added.to.exclude.list=方法 ''{0}'' 已添加到排除列表 +reformat.scope.panel=范围 +reformat.options.panel=选项 +documentation.file.size.label=大小: +documentation.file.type.label=类型: +documentation.file.creation.datetime.label=创建时间: +documentation.file.modification.datetime.label=修改时间: +documentation.file.scope.label=范围: +documentation.file.vcs.status.label=VCS 状态: +second.reformat=第二次重新格式化 +do.you.want.to.remove.custom.line.breaks=要移除自定义换行符吗? +templates.intention.settings.category.before=采用所选意图的示例代码将显示在此处。 \n 闪烁的矩形显示意图适用的位置。 +templates.intention.settings.category.after=应用意图的结果将显示在此处。 +intention.family.name.split.values=将元素放在多行中 +intention.family.name.join.values=将元素放在同一行中 +intention.name.split.comma.values=将逗号分隔的元素放在多行中 +intention.name.join.comma.values=将逗号分隔的元素放在同一行中 +action.Documentation.OpenInToolWindow.text=在文档工具窗口中打开 +action.Documentation.OpenInToolWindow.description=将当前弹出窗口的内容移动到文档工具窗口的预览选项卡中 +action.disable.inlay.hints.provider.text=禁用 ''{0}'' 嵌入提示 +action.configure.inlay.hints.provider.text=配置嵌入提示… +analyze.dependencies.transitive.dependencies.label= 深度不超过: +actions.on.save.page.label.all.file.types=所有文件类型 +actions.on.save.page.label.select.file.types=选择文件类型 +actions.on.save.page.label.one.file.type.selected=文件: {0} +actions.on.save.page.label.many.file.types.selected=文件:{0},{1} 更多 +actions.on.save.page.warning.no.file.types.selected=未选择文件类型 +action.disable.inlay.hints.provider.case.text=禁用 ''{0}: {1}'' 嵌入提示 +action.disable.inlay.hints.provider.with.cases.text=禁用所有 ''{0}'' 嵌入提示 +javadoc.show.popup.automatically=在补全期间自动打开 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CodeServerBundle.properties b/original-plugin-raw/zh/messages/CodeServerBundle.properties new file mode 100644 index 000000000..799b18dbc --- /dev/null +++ b/original-plugin-raw/zh/messages/CodeServerBundle.properties @@ -0,0 +1,4 @@ +server.completion=补全 +server.prepare.completion=准备补全 +server.rename=重命名为 {0} +progress.title.analysis=分析 diff --git a/original-plugin-raw/zh/messages/CodeStyleBundle.properties b/original-plugin-raw/zh/messages/CodeStyleBundle.properties new file mode 100644 index 000000000..cff6f92ff --- /dev/null +++ b/original-plugin-raw/zh/messages/CodeStyleBundle.properties @@ -0,0 +1,117 @@ +action.stop=停止 + +arrange.by.x=按{0} +arrangement.settings.groups.property.field=将属性字段按相应 getter/setter 分组 +arrangement.settings.groups.dependent.methods=保持依赖方法在一起 +arrangement.settings.groups.overridden.methods=保持重写方法在一起 +arrangement.settings.groups.getters.and.setters.together=保持 getter 和 setter 在一起 +arrangement.settings.order.type.keep=保持排序 +arrangement.settings.order.type.by.name=按名称排序 +arrangement.settings.order.type.depth.first=深度排序优先 +arrangement.settings.order.type.breadth.first=宽度排序优先 +arrangement.settings.text.general.type=类型: +arrangement.settings.text.general.modifier=修饰符: +arrangement.settings.text.general.name=名称: +arrangement.settings.text.general.text=文本: +arrangement.settings.text.general.order=顺序: +arrangement.settings.text.general.sequence=别名: +arrangement.settings.text.general.xml.namespace=命名空间: +arrangement.settings.text.entry.type.class=类 +arrangement.settings.text.entry.type.anonymous.class=匿名类 +arrangement.settings.text.entry.type.field=字段 +arrangement.settings.text.entry.type.constructor=构造函数 +arrangement.settings.text.entry.type.method=方法 +arrangement.settings.text.entry.type.enum=枚举 +arrangement.settings.text.entry.type.interface=接口 +arrangement.settings.text.entry.type.const=常量 +arrangement.settings.text.entry.type.var=变量 +arrangement.settings.text.entry.type.property=属性 +arrangement.settings.text.entry.type.event.handler=事件处理程序 +arrangement.settings.text.entry.type.static.init=static init +arrangement.settings.text.entry.type.initializer.block=初始值设定项块 +arrangement.settings.text.entry.type.namespace=命名空间 +arrangement.settings.text.entry.type.trait=特征 +arrangement.settings.text.entry.type.class.inverted=非类 +arrangement.settings.text.entry.type.anonymous.class.inverted=非匿名类 +arrangement.settings.text.entry.type.field.inverted=非字段 +arrangement.settings.text.entry.type.constructor.inverted=非构造函数 +arrangement.settings.text.entry.type.method.inverted=非方法 +arrangement.settings.text.entry.type.enum.inverted=非枚举 +arrangement.settings.text.entry.type.interface.inverted=非接口 +arrangement.settings.text.entry.type.const.inverted=非常量 +arrangement.settings.text.entry.type.var.inverted=非变量 +arrangement.settings.text.entry.type.property.inverted=非属性 +arrangement.settings.text.entry.type.event.handler.inverted=非事件处理程序 +arrangement.settings.text.entry.type.static.init.inverted=非 static init +arrangement.settings.text.entry.type.initializer.block.inverted=非初始值设定项块 +arrangement.settings.text.entry.type.namespace.inverted=非命名空间 +arrangement.settings.text.entry.type.trait.inverted=非特征 +arrangement.settings.text.entry.type.xml.tag=标记 +arrangement.settings.text.entry.type.xml.attribute=特性 +arrangement.settings.text.section.start=部分起始 +arrangement.settings.text.section.end=部分结尾 +arrangement.settings.text.modifier.public=public +arrangement.settings.text.modifier.protected=protected +arrangement.settings.text.modifier.private=private +arrangement.settings.text.modifier.package.private=package private +arrangement.settings.text.modifier.static=static +arrangement.settings.text.modifier.final=final +arrangement.settings.text.modifier.readonly=readonly +arrangement.settings.text.modifier.transient=transient +arrangement.settings.text.modifier.volatile=volatile +arrangement.settings.text.modifier.synchronized=synchronized +arrangement.settings.text.modifier.abstract=abstract +arrangement.settings.text.modifier.override=override +arrangement.settings.text.modifier.public.inverted=非 public +arrangement.settings.text.modifier.protected.inverted=非 protected +arrangement.settings.text.modifier.private.inverted=非 private +arrangement.settings.text.modifier.package.private.inverted=非 package private +arrangement.settings.text.modifier.static.inverted=非 static +arrangement.settings.text.modifier.final.inverted=非 final +arrangement.settings.text.modifier.readonly.inverted=非 readonly +arrangement.settings.text.modifier.transient.inverted=非 transient +arrangement.settings.text.modifier.volatile.inverted=非 volatile +arrangement.settings.text.modifier.synchronized.inverted=非 synchronized +arrangement.settings.text.modifier.abstract.inverted=非 abstract +arrangement.settings.text.modifier.override.inverted=非 override +arrangement.settings.text.modifier.getter=getter +arrangement.settings.text.modifier.setter=setter +arrangement.settings.text.modifier.overridden=重写 +arrangement.settings.text.condition.not=非 {0} + +command.name.reformat=重新格式化 + +html.tag.new.line.never=从不 +html.tag.new.line.when.multiline=当多行时 + +indent.status.bar.tab=制表符 +indent.status.bar.spaces={0, choice, 1#{0} 个空格|2#{0} 个空格} +indent.status.bar.indent.tooltip=缩进: + +process.reformat.code=重新格式化代码 +process.reformat.code.before.commit=提交前重新格式化代码 + +progress.reformat.stage.wrapping.blocks=正在准备… +progress.reformat.stage.processing.blocks=正在计算变更… +progress.reformat.stage.applying.changes=正在存储变更… +progress.reformat.stage.expanding.children.indents=正在扩大必要的子项缩进 + +quote.style.single=单 +quote.style.double=双 +quote.style.none=无 + +reformat.progress.common.text=正在重新格式化代码… +reformat.progress.file.with.known.name.text=正在重新格式化 {0} + +wrapping.do.not.wrap=不换行 +wrapping.wrap.if.long=过长则换行 +wrapping.chop.down.if.long=过长则截断 +wrapping.wrap.always=始终换行 +async.formatting.service.cancel=取消 {0} +async.formatting.service.timeout={0} 在 {1} 秒后没有响应。 +async.formatting.service.running=正在运行 {0} +excluded.files.deprecation.label.text=基于范围的排除仅出于向后兼容保留,
      日后的版本可能不支持。请考虑改为定义模式。 +excluded.files.glob.patterns.label=不格式化: +excluded.files.glob.patterns.hint=使用 glob 模式指定文件名模式和目录 +excluded.files.migration.message=某些范围已自动转换为 glob 模式。
      点击“确定”或“应用”以接受变更。 +excluded.files.do.not.format.scope=不格式化范围: \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CodeWithMeGuestBundle.properties b/original-plugin-raw/zh/messages/CodeWithMeGuestBundle.properties new file mode 100644 index 000000000..02fe70649 --- /dev/null +++ b/original-plugin-raw/zh/messages/CodeWithMeGuestBundle.properties @@ -0,0 +1,118 @@ +action.ThinClientDisconnect.text=断开连接并关闭项目 +action.CodeWithMeClientCollectZippedLogs.text=收集主机和客户端日志 +action.CodeWithMeClientReportIssue.text=收集日志并提交问题(_I)… +action.ThinClientEditRunConfigurations.text=编辑配置 +action.ShowProjectedHostSettings.text=显示主持人设置 +action.GuestDropConnectionInternalAction.text=访客断开连接(内部) +version.mismatch.indicator.label=版本不匹配,某些功能可能被破坏 +version.mismatch.indicator.warning=主机版本: {0} 客户端版本: {0} +locks.indicator.idle=空闲{0} +locks.indicator.name=JetBrains 客户端远程写入锁定统计信息 +connection.indicator.name=JetBrains 客户端连接统计信息 +connection.status.canceled=被用户取消 +connection.status.declined=连接被主持人拒绝 +connection.status.launched.in.other.process=在单独的客户端中启动 +connection.status.incompatible=版本不兼容 +connection.status.failed.to.open.project=无法打开远程项目 +filter.stack.trace.analysing.message=正在分析堆栈跟踪 +filter.default.analysing.message=正在分析… +message.disconnect.from.host=要与主持人断开连接吗? +message.disconnect.from.host.disconnect=断开连接 +message.disconnect.from.host.wait=等待 +message.no.write.access=主持人未提供写入权限 +error.reconnect.failed=无法重新连接到主持人: {0} +error.project.open.failed=无法打开主持人项目 +error.connection.timeout=连接超时 +message.waiting.for.host=正在等待主持人审批… +error.incompatible.version=您的访客版本与主机不兼容。无法建立连接。 +editor.empty.text=正在远程处理 {0} 的项目 +#todo remove this hack needed for ThinClientIdeUICustomization +project.title.prefix=已连接到 +project.title=已连接到 {0} 的 {1} +action.close.project.text=断开与项目的连接 +welcome.frame.clipboard.notification.title=剪贴板 +welcome.frame.clipboard.notification.text=已从剪贴板粘贴远程 URL +terminal.session.auto.opened={0} 正在私有终端会话中运行。 +notification.content.config.imported.from.ide=此 JetBrains 客户端使用本地安装的 {0} 中的设置 +notification.content.config.import.from.custom.place=此 JetBrains 客户端使用 {0} 中的设置 +debugger.task.canceled=任务已取消 + +#severities +typo.severity=拼写错误 +typo.severity.capitalized=拼写错误 +typo.severity.count.message={0} 个{0, choice, 0#拼写错误|1#拼写错误|2#拼写错误} +frontend.diff.tool.name=Code With Me 查看器 + +#connection progress dialog +dialog.message.password.required.to.connect.to=需要密码才能连接到 {0} +code.with.me.tm=Code With Me: +connection.message.verify.the.code=验证主持人是否看到相同的代码,以确保连接安全 + +#guest limit message +notification.guest.limit.reached.text=并发访客已经太多,因而无法加入主持人 + +toolwindow.guest.read.only.label=只读 +toolwindow.guest.read.only.label.tooltip=您对工具窗口具有只读访问权限。 + +license.time.is.up.message=主持人可能会创建一个新会话并向您发出邀请 +license.limit.cant.join.title=Code With Me: 无法加入主持人 +license.kicked.by.host=被主持人拒绝 +license.five.minutes.left.header=会话将在 {0,choice,0#one|1#{1}} {0,choice,0#分钟|1#分钟}后结束 +license.five.minutes.left.message=主持人可能会创建一个新会话并向您发出邀请. + +action.ThinClientModuleSettings.text=项目结构… +action.ThinClientCompletionLatencyReport.text=显示访客补全延迟报告 +label.projected.component.cant.find=找不到 ID 为 {0} 的 Projector 视图 +label.projected.component.terminated=ID 为 {0} 的 Projector 视图已被终止 +portForwarding.tableHeader.hostPort=主机端口 +portForwarding.tableHeader.localPort=本地端口 +portForwarding.tableHeader.portType=协议 +portForwarding.tableHeader.url=URL +welcome.frame.tab.name=连接到远程主机 +progress.connecting.title=正在{2,choice,0#|1#通过 {3} }{0,choice,0#加入|1#重新加入} {1} +frontend.local.changes.host.error=错误 +action.report.issue.progress.text.uploading.logs=正在上传日志… +status.bar.text.ping.ui=Ping (UI): {0} ({1}) +write.access.provider.description.read.only.mode.reason.build=正在构建该项目:\n\ +在主机上进行繁重操作期间,JetBrains 客户端会切换到只读模式 +write.access.provider.description.read.only.mode.reason.low.performance=主持人计算机的 IDE 性能总体欠佳 - 切换到只读模式。\n\ +如果不存在发生这种情况的客观条件,请将日志发送给我们。 +write.access.provider.description.read.only.mode.reason.too.many.users=用户过多:\n\ +当 6 个及以上用户连接到主机时,JetBrains 客户端会切换到只读模式 +tab.title.remote.host.control.internal=远程主机控制(内部) +action.ToggleProjectedMainFrameVisibility={0,choice,0#显示|1#隐藏}主窗口 +terminal.session.tab.name.shared=本地:共享 +terminal.session.tab.name.private=本地:私有 +terminal.access.denied.label=您没有访问该终端的权限。要执行命令,请向主机请求完全访问权限。 +terminal.no.shared.terminals=无共享终端。主机必须首先共享终端并授予您权限。 +message.level.change.not.permitted=您无权更改检查级别: {0}。 +toolwindow.stripe.Commit_Guest=提交 +status.bar.text.users={0} 用户 +dialog.title.guest.completion.latency.report=JetBrains客户端补全延迟报告 +dialog.title.continue.without.logs=不使用日志继续 +message.included.logs.and.settings.may.contain.sensitive.data.advanced=请考虑提交 IDE 日志。\n\ +日志可能有助于解决问题,但可能包含有关您环境的敏感信息。\n\ +数据将根据 JetBrains 隐私政策进行处理。\n\ +要提交的 IDE 日志:\n\ +{0} +connection.status.no.fingerprint=加入链接中无指纹,无法验证主机身份 +connection.status.mismatched.fingerprint=主机指纹不匹配 +terminal.message.terminal.closed=远程终端已关闭。 +message.waiting.for.host.unattended=正在尝试连接到远程主机… +notification.action.config.import.place=显示 {0} 中的配置目录 +action.ThinClientRegister.text=注册... +connection.status.unsupported.scheme=不支持的 URI 方案 +error.gateway.ws.disconnected=通过 JetBrains Gateway 重启连接 +error.gateway.ws.bad.url=网关连接的 URL 无效 +open.unattended.host.actions=打开无人值守的主机操作 +jetbrains.client.tm=JetBrains 客户端: +error.gateway.ws.disconnected.title=连接被网关关闭 +provided.from.host.configurable.label=主机上 +title.host.settings.configurable.stub.display.name=主机设置 +message.host.settings.configurable.stub.info=主机设置列表正在同步。请在几秒钟后尝试重新打开设置对话框。 +your.application.is.listening.on.ports=您的应用程序正在侦听端口: +forwarded.to=转发至 +list.item.open.in.browser=在浏览器中打开 +list.item.forward.port.already.forwarded=转发端口(已转发) +list.item.forward.port=转发端口 +list.item.forward.port.open.in.browser=转发端口并在浏览器中打开 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CodeWithMePlatformBundle.properties b/original-plugin-raw/zh/messages/CodeWithMePlatformBundle.properties new file mode 100644 index 000000000..d0fc00a03 --- /dev/null +++ b/original-plugin-raw/zh/messages/CodeWithMePlatformBundle.properties @@ -0,0 +1,171 @@ +product.name=Code With Me +product.status.no.access=无访问权限 +product.status.access.enabled=访问已启用 +circle.control.state.no.one.joined=无人加入 +circle.control.user.state.host=主持人 +circle.control.user.state.you=(您) +circle.control.user.state.following=您正在关注 +circle.control.user.state.follower=正在关注您 +circle.control.user.state.following.user=正在关注 {0} +circle.control.user.state.following.stopped=已停止关注 +circle.control.user.state.full.sync.user=与 {0} 完全同步 +circle.control.user.state.followed.by.user=已被 {0} 关注 +circle.control.user.state.followed.by.users=已被 {0} 关注, +circle.control.user.state.full.sync=与以下用户完全同步: +circle.control.tooltip=
      {0}
      {2} +circle.control.first.tooltip=点击左键以关注用户。点击右键以执行更多操作 +circle.control.second.tooltip=点击左键以取消关注用户。点击右键以执行更多操作 +error.url.issue=错误消息:{0} +settings.user.name=用户名: +settings.user.name.reset=使用系统名称 +settings.user.name.warning=重启后,新的用户名将应用于所有新会话 +settings.lobby.url=Lobby 服务器 URL: +settings.lobby.url.isSetFromOs=操作系统中的 Lobby 服务器 URL 值正在重写设置。点击此处获取信息。 +settings.lobby.url.osLocation=位置: {0} +settings.lobby.url.reset=使用 JetBrains 服务器 +on.premise.installation.instruction.link=https://www.jetbrains.com/help/cwm/code-with-me-quick-setup.html +on.premise.installation.instruction.description=设置私有本地部署大厅和中继服务器 +on.premise.installation.instruction=指令 +action.stop.following=停止关注 +action.stop.fullSync=停止完全同步 +action.stop=停止 +action.resume=恢复 +action.jump.to=跳转到 +action.follow=关注 +action.full.sync=完全同步模式 +action.user.kick=踢出用户 +action.InviteOthersToFollowAction.text=邀请他人关注 +action.ForceOthersToFollowAction.text=强制所有人关注 +action.LeaveCallAction.text=离开通话 +action.EnableCameraAction.enable.text=启用摄像头 +action.EnableCameraAction.disable.text=禁用摄像头 +action.JoinCallAction.text=加入语音通话 +action.SoundSettingsAction.text=声音设置… +action.OpenCallToolwindowAction.text=打开呼叫工具窗口… +participants.separator.text=参与者 ({0}) +notification.following.started.title=已开始关注 +notification.following.started=您正在关注 {0}。 +notification.following.request.title=关注请求 +notification.following.request={0} 想引导您 {1} +notification.following.user.changed.title=已更改关注 +notification.following.user.changed={0} 已关注 {1}。您转为关注 {1}。 +notification.telephonyEnabled.message=语音聊天已启用 +notification.telephonyChatMessage.title={0} 撰写了一条消息 +notification.telephonyParticipantVideoEnabled.title=参与者启用了视频 +notification.telephonyParticipantVideoEnabled.message=打开视频聊天 +notification.telephonyPrejoinScreenShowing.title=自定义音频/视频设置 +notification.telephonyPrejoinScreenShowing.message=打开视频聊天 +notification.access.accept=接受 +notification.access.decline=拒绝 +notification.access.grant.access=授予对终端的访问权限 +notification.access.skip=跳过 +notification.i.fully.trust=本人完全信任 {0} +notification.terminal.security.caption=Code With Me: 安全警告! +notification.action.read.only.modification=''{0}'' 操作尝试修改只读文档 +notification.action.forbidden.generic=不允许您执行此操作 +notification.action.forbidden=不允许您执行操作 ''{0}'' +color.settings.user1.marker=用户 1 标记 +color.settings.user2.marker=用户 2 标记 +color.settings.user3.marker=用户 3 标记 +color.settings.user4.marker=用户 4 标记 +color.settings.user5.marker=用户 5 标记 +color.settings.user6.marker=用户 6 标记 +color.settings.user1.selection=用户 1 选择 +color.settings.user2.selection=用户 2 选择 +color.settings.user3.selection=用户 3 选择 +color.settings.user4.selection=用户 4 选择 +color.settings.user5.selection=用户 5 选择 +color.settings.user6.selection=用户 6 选择 +manage.users.colors.settings.link=管理用户的颜色 +collect.log.action.name={0,choice,0#Code With Me|1#远程开发}:获取主机日志 +collect.log.status.canceled=已取消 +collect.log.status.failed.empty=空错误消息。查看日志获取堆栈跟踪 +collect.log.indicator.query.from.host=日志: 查询主机的日志 +collect.log.indicator.download.zip.from.host=日志: 从主机下载 zip +code.with.me.learn.more=了解更多 +code.with.me.learn.more.link=https://www.jetbrains.com/code-with-me/ +#actions +action.CWMOpenSettingsAction.text=设置… +action.CWMHostShowPopupAction.text=Code With Me +action.CWMHostShowPopupAction.description=邀请其他人加入您的 IDE 或加入另一个 IDE 一起完成项目 +action.call.text=呼叫: +action.CWMThinClientShowPopupAction.text=Code With Me +action.CWMThinClientShowPopupAction.description=使用左键和右键点击头像进行快速操作 +action.CWMThinClientShowPopupAction.gotIt.header=与他人互动所需的一切都在这里 +connection.dialog.message.security.code=安全代码:{0} +connection.dialog.clipboard.message=我的连接安全代码是: {0},请检查您在我的连接审批对话框中看到的数字是否相同。 +connection.dialog.message.copy.security.code.tooltip=复制安全代码 +connection.dialog.title=Code With Me: 接受用户 +connection.dialog.message=想要加入 "{0}" +connection.dialog.permissions.message=会话权限: +connection.dialog.change.permissions=更改 +connection.message.verify.the.code=验证来宾是否看到相同的代码,以确保连接安全 +debugger.evaluation.no.access=评估被禁用,主持人未提供写入权限 +license.free.time.left={0} 剩余免费时间 +license.buy.link=http://www.jetbrains.com/code-with-me/buy +license.expired=许可证已过期 +license.retry=重试 +license.close=关闭 +license.ended.title=Code With Me: 会话已结束 +license.ended=会话已结束 +license.end=结束会话 +license.time.is.up.header=30 分钟的免费会话已结束 +license.upgrade=立即升级 +license.buy=购买许可证 +toolwindow.mirrored.mode.notification=工具窗口与其他访客共享。他们可以查看您的操作,您也可以查看他们的操作。 +toolwindow.mirrored.mode.notification.hide.link=隐藏 +portForwarding.portsTabName=端口转发 +popup.content.appropriate.version.code.with.me.client.being.downloaded=正在下载适当版本的 JetBrains 客户端。\n完成后,客户端将自动启动。 +toolwindow.factory.title.code.with.me=Code With Me +toolwindow.factory.title.chat=语音通话 +wire.stats.status.bar.text=({0}) ↑{1}/s / ↓{2}/s +wire.stats.status.bar.text.wire.count.not.one=({0}) ↑{1}/s / ↓{2}/s +code.with.me.wire.stats=Code With Me 统计信息 +protocol.transmission.stats=协议传输统计 +checkbox.stay.on.top=保持在顶部 +button.show.protocol.tree.stats.for.selected.wire=显示所选 Wire 的协议树统计 +protocol.stats.for.wire.id={0} 的协议统计 +protocol.entities.wire.stats.registry.column.name.entity=实体 +protocol.entities.wire.stats.registry.column.name.speed.down=降速 +protocol.entities.wire.stats.registry.column.name.speed.up=提速 +protocol.entities.wire.stats.registry.column.name.total.down=下载数据总量 +protocol.entities.wire.stats.registry.column.name.total.up=上传数据总量 +wire.stats.table.registry.column.name.wire=Wire +wire.stats.table.registry.column.name.speed.down=降速 +wire.stats.table.registry.column.name.speed.up=提速 +wire.stats.table.registry.column.name.total.down=下载数据总量 +wire.stats.table.registry.column.name.total.up=上传数据总量 +state.pane.additional.text=和其他 {0} 个… +action.several.users.additional.text=和其他 {0} 个… +connection.dialog.change.permissions.tooltip.files=文件: {0} +connection.dialog.change.permissions.tooltip.terminal=终端: {0} +connection.dialog.change.permissions.tooltip.run.debug=运行/调试: {0} +permission.mode.readonly=只读 +permission.mode.editfiles=编辑文件 +permission.mode.fullaccess=完全访问权限 +permission.mode.custom=自定义 +action.EnableScreenSharingAction.enable.text=启用屏幕共享 +action.EnableScreenSharingAction.disable.text=禁用屏幕共享 +connection.dialog.change.permissions.tooltip.other.toolwindows=其他工具窗口: {0} +user.notification.change.permissions.html.not.escaped=点击此处切换运行时 +permission.dialog.enable.access=启用访问 +permission.dialog.apply=应用 +permission.file.access.level.readonly=仅查看 +permission.file.access.level.fullaccess=编辑任意文件 +permission.terminal.access.level.disabled=禁用 +permission.terminal.access.level.readonly=仅查看 +permission.terminal.access.level.request=根据请求 +permission.terminal.access.level.fullaccess=完全访问权限 +permission.run.access.level.disabled=已禁用 +permission.run.access.level.readonly=仅查看 +permission.run.access.level.fullaccess=完全访问权限 +permission.toolWindow.access.level.disabled=已禁用 +permission.toolWindow.access.level.readonly=仅查看 +permission.toolWindow.access.level.fullaccess=完全访问权限 +permission.mode.readonly=只读 +permission.mode.editfiles=编辑文件 +permission.mode.fullaccess=完全访问权限 +permission.mode.custom=自定义 +cwm.client.changelist.name={0} 进行的变更 +diff.error.permission.cant.open.file=客户端没有打开此文件的权限 +action.DisableVoiceCallAction.disable.text=禁用语音通话 +action.DisableVoiceCallAction.enable.text=启用语音通话 +action.BackendBeControlsShowCase.text=显示 Be Controls +toolwindow.message.access.denied.label=访问被拒绝 +message.session.ended.title=Code With Me: 会话已结束 +message.session.time.limit.reached=超过 {0} 分钟的 Code With Me 会话需要许可证。 +message.subscription.expired=Code With Me: 许可证已过期。 +userAgreement.dialog.decline=拒绝 + +license.expired.during.session.header=Code With Me 许可证已过期 +license.expired.during.session.message=您仍可以免费使用 30 分钟不受限制的会话 +license.expired.title=Code With Me: 许可证已过期 + +license.session.limit.title=Code With Me: 会话限制 +license.session.limit.header=无法创建会话 +license.session.limit.message=您的许可证可以运行的并发会话数已达到限制。请与系统管理员联系以升级许可证或稍后再试。 +license.start.session=启动会话 +license.time.is.up.message=升级许可证以访问不受限制的协作会话。或启动新的免费会话。 +license.upgrade=升级许可证 +license.upgrade.uncapitalized=升级许可证 +action.CWMManageLicense.text=管理许可证 +license.five.minutes.left.header=会话将在 {0} 分钟后结束 +license.five.minutes.left.1.header=会话将在一分钟后结束 +license.five.minutes.left.message=升级到 Premium 即可进行没有时间限制的协作。 +license.terms.title=Code With Me 使用条款 + +# guest limit message +connection.dialog.limit.reached=用户无法加入。已达到访客限制。 + +notification.content.unable.to.open.file=无法打开远程文件 {0} +permission.dialog.state.edit.guests=访客可以访问和编辑您计算机上的文件。仅允许受信任的访客。 +permission.dialog.state.edit.guest=访客可以访问和编辑您计算机上的文件。 +permission.dialog.state.custom.guest=访客可以对您的计算机进行自定义控制。 +permission.dialog.state.custom.guests=访客可以对您的计算机进行自定义控制。仅允许受信任的访客。 +notification.code.with.me.disabled=Code With Me 会话创建已通过 OS 位置禁用:\n{0} +action.typechars.text=输入字符 +action.typechars.cancel.text=取消输入 +action.reload.all.client.toolwindows.text=重新加载所有客户端工具窗口 +notification.see.logs.for.more.information=请参阅日志了解更多信息 +notification.title.can.not.execute.run.action=无法执行运行操作 +notification.content.you.do.not.have.necessary.permissions=您不具备必要的权限。 +progress.title.find.usages=查找用法 +progress.title.creating.join.link=创建加入链接 +progress.text.uploading.logs=正在上传日志… +notification.title.can.not.execute.action=无法执行{0}操作 +notification.content.you.do.not.have.write.permissions=您不具备写入权限。 +backend.collect.logs.progress.text.asking=正在询问 {0} +backend.collect.logs.progress.text.downloading.files=正在下载文件 +message.view.not.implement=此视图尚未在 JetBrains 客户端中实现 +toolwindow.component.is.projected.label=此组件正被投射给控制器访客 +action.Terminal.StopSharing.text=停止共享 +terminal.shared.notification=终端已共享。访客访问级别:{0} +terminal.share.terminals.label=访客无法看到此终端。在选项卡的上下文菜单中共享终端,或创建一个新的共享终端。 +permission.dialog.terminal.tooltip=主机必须首先共享终端,这样访客才能看到该终端。在终端选项卡的上下文菜单中共享终端。 +action.create.private.terminal=private +action.create.shared.terminal=共享 +notification.terminal.access.requested={0} 请求对终端的完全访问权限 +notification.terminal.access.description=仅向受信任的访客授予访问权限 +action.terminal.change.user.permissions=更改用户权限… +action.terminal.change.permissions.for.all=为所有对象变更… +permission.editor.panel.actions.disabled=您没有足够的权限与此面板进行交互 +backend.diagnostics.button.allow.access=允许访问您的日志 +backend.diagnostics.title.submit.request=JetBrains 客户端 {0} 已从此计算机请求日志。\n要提交的 IDE 日志:{1} +terminal.tabName.local=本地 +terminal.tabName.local.private=本地:私有 +terminal.tabName.local.shared=本地:共享 +notification.text.lobby.version.not.compatible=\n当前 Lobby 服务器版本 ({0}) 与 {1} 不兼容。\n将 Lobby 服务器更新到 {2} 版或将 {3} 回滚到以前的版本。\n\n从 https://www.jetbrains.com/code-with-me/on-prem 下载新的 Lobby 服务器 +configurable.name.port.forwarding=端口转发 +notification.title.port.forwarding.available=端口转发可用 +notification.content.seems.like.your.application.listening.on.port=应用程序似乎在侦听端口 {0,number,#} +popup.content.port.forwarded=端口已转发 +forward.port.with.number=转发端口 {0,number,#} +port.forwarding.dont.ask.again=不再询问 +notification.title.port.occupied=端口 {0,number,#} 已占用 +notification.content.local.port.for={0,number,#} 的本地端口是 {1,number,#} +notification.content.port.forwarded=端口 {0,number,#} 已转发 +notification.content.port.on.remote.host.can.now.be.accessed.through.localhost=现在可以通过本地主机:{1,number,#} 访问远程服务器上的端口 {0,number,#} +open.settings=打开设置 +open.in.browser=在浏览器中打开 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CodeWithMeUnattendedBundle.properties b/original-plugin-raw/zh/messages/CodeWithMeUnattendedBundle.properties new file mode 100644 index 000000000..cc3edc74f --- /dev/null +++ b/original-plugin-raw/zh/messages/CodeWithMeUnattendedBundle.properties @@ -0,0 +1,8 @@ +# Tool window +tool_window.host.button.connect_to_project=连接到所选项目 +tool_window.host.button.open_project=打开项目 + +action.connect.to.remote.control.socket.internal.text=连接到远程控制套接字(内部) +dialog.message.enter.control.socket.port=输入控制套接字端口 +dialog.title.connect.to.remote.control.socket.internal=连接到远程控制套接字(内部) +dialog.title.select.remote.project.to.connect.to=选择要连接到的远程项目 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CodeWithMeUnattendedHostBundle.properties b/original-plugin-raw/zh/messages/CodeWithMeUnattendedHostBundle.properties new file mode 100644 index 000000000..7ffc8c7f3 --- /dev/null +++ b/original-plugin-raw/zh/messages/CodeWithMeUnattendedHostBundle.properties @@ -0,0 +1,11 @@ + +action.copy.unattended.controller.join.link.text=复制无人值守的控制器加入链接 +action.disable.unattended.host.mode.internal.text=禁用无人值守的主持人模式(内部) +action.enable.unattended.host.mode.internal.text=启用无人值守的主持人模式(内部) +action.toggle.unattended.host.mode.text=切换无人值守的主持人模式 +dialog.message.failed.to.get.join.link=无法获取加入链接 +dialog.message.no.project.path.provided=未提供项目路径 +cmd.message.specify.command.to.show.help=指定命令以显示帮助 +cmd.message.invalid.params.number=形参数量无效 +cmd.message.unknown.command.to.show.help=用于显示帮助 ''{0}'' 的未知命令 +cmd.message.failed.to.parse=无法解析命令行 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CodeceptionBundle.properties b/original-plugin-raw/zh/messages/CodeceptionBundle.properties new file mode 100644 index 000000000..b562c50b7 --- /dev/null +++ b/original-plugin-raw/zh/messages/CodeceptionBundle.properties @@ -0,0 +1,22 @@ +codeception.configurable.component.display.name=Codeception + +#run-configuration +php.codeception.run.description=Codeception 测试 + +php.codeception.run.version.is.not.supported=不支持 2.2.0 之前的 Codeception 框架版本。 + +#action -> new Codeception Unit Test +actions.new.unit.test.action.name=Codeception 单元测试 +actions.new.unit.test.action.description=创建新的 Codeception 单元测试 + +#action -> new Codeception Functional Test +actions.new.cest.test.action.name=Codeception 功能测试 +actions.new.cest.test.action.description=创建新的 Codeception 功能测试 + +php.codeception.run.configuration.rerun.incorrect.configuration=应为 Codeception 运行配置类型,实际为: ''{0}'' + +#settings +php.codeception.config.label=命名空间配置 +php.codeception.config.namespace.label=命名空间: +php.codeception.config.suite_namespace.label={0} 套件命名空间: +php.codeception.config.directory.label=目录: \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CollaborationToolsBundle.properties b/original-plugin-raw/zh/messages/CollaborationToolsBundle.properties new file mode 100644 index 000000000..de6289b98 --- /dev/null +++ b/original-plugin-raw/zh/messages/CollaborationToolsBundle.properties @@ -0,0 +1,9 @@ +diff.add.comment.icon.tooltip=提供注释 +accounts.add.link=添加帐户… +accounts.set.default=设置为默认值 +accounts.none.added=未添加帐户 +login.link=登录 +action.CodeReview.CreateDiffComment.text=添加审查评论 +action.CodeReview.MarkChangesViewed.text=标记为已查看 +action.CodeReview.MarkChangesNotViewed.text=标记为未查看 +tooltip.code.review.files.not.viewed={0,choice,1#{0} 个文件|2#{0} 个文件}未查看 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CommanderBundle.properties b/original-plugin-raw/zh/messages/CommanderBundle.properties new file mode 100644 index 000000000..8dfbb48dc --- /dev/null +++ b/original-plugin-raw/zh/messages/CommanderBundle.properties @@ -0,0 +1,7 @@ +action.CommanderSyncViews.text=同_步视图 +action.CommanderSyncViews.description=同步两个面板 +action.CommanderSwapPanels.text=交换_面板 +action.CommanderSwapPanels.description=交换这些面板 + +group.ImagesCommanderActions2.text=Images Commander Actions (2) +group.ImagesCommanderActions1.text=Images Commander Actions (1) \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CommercialBundle.properties b/original-plugin-raw/zh/messages/CommercialBundle.properties new file mode 100644 index 000000000..4323b33b5 --- /dev/null +++ b/original-plugin-raw/zh/messages/CommercialBundle.properties @@ -0,0 +1,17 @@ +button.log.in=登录 +button.text.jetbrains.account=JetBrains 帐户: UI 与编辑器主题、键映射和插件 +dialog.button.no.thanks=不,谢谢 +dialog.button.send.feedback=发送反馈 +dialog.title.button.evaluation.feedback=评估反馈 +dialog.title.log.in.to.jetbrains.account=登录 JetBrains 帐户 +label.forgot=忘记了? +label.password=密码(&P): +label.username=用户名(&U): +task.title.authorization.to.jetbrains.account=授权给 JetBrains 帐户… +team.server.license.not.found=此 IDEA 分发版仅授权给与 JetBrains TeamCity 搭配使用。 +validation.message.change.the.username=如果您更改用户名,则在重新同步后,先前帐户的本地设置将丢失 +validation.message.password.cannot.be.empty=密码不能为空 +validation.message.username.cannot.be.empty=用户名不能为空 +dialog.message.authorization.failed=授权失败: {0} +dialog.message.jetbrains.account.communication.error=JetBrains Account 通信错误: {0} +a.plugin.has.been.detected=插件{1, choice, 0# {0} |1#已被检测到}与当前版本的 IntelliJ IDEA 不兼容。IntelliJ IDEA 现在将关闭。 diff --git a/original-plugin-raw/zh/messages/CommonBundle.properties b/original-plugin-raw/zh/messages/CommonBundle.properties new file mode 100644 index 000000000..cbbe2e533 --- /dev/null +++ b/original-plugin-raw/zh/messages/CommonBundle.properties @@ -0,0 +1,95 @@ +button.yes=是(&Y) +button.no=否(&N) +button.cancel=取消 +button.ok=确定 +button.help=帮助 +tree.node.loading=正在加载… +title.error=错误 +title.warning=警告 +button.continue=继续(&T) +button.yes.for.all=全部是(&A) +button.no.for.all=全部否(&O) +button.apply=应用(&A) +action.close=关闭(&C) +action.help=帮助 +action.rerun=重新运行 +button.delete=删除 +button.copy=复制… +button.close=关闭(&C) +button.add=添加 +button.add.a=添加(&A) +action.refresh=刷新 +close.action.name=关闭 +button.edit=编辑 +button.remove=移除 +button.accept=接受 +button.decline=拒绝 +button.cancel.c=取消(&C) +button.replace.r=替换(&R) +button.submit=提交 + +title.settings=设置 +title.settings.mac=偏好设置 +action.settings=设置(_T)… +action.settings.mac=偏好设置… +action.settings.description=编辑应用程序设置 +action.settings.description.mac=编辑应用程序偏好设置 +action.settings.path=文件 | 设置 +action.settings.path.mac=偏好设置 + +button.background=最小化(&M) +name.label.text=名称(&M): +empty.menu.filler=此处无任何内容 + +action.text.configure.ellipsis=配置… +action.text.advanced.ellipsis=高级… + +button.without.mnemonics.cancel=取消 +button.without.mnemonic.close=关闭 +button.without.mnemonic.remove=移除 +button.without.mnemonic.yes=是 +button.without.mnemonic.no=否 +button.without.mnemonic.restore=恢复 +button.without.mnemonic.do.nothing=不执行任何操作 + +action.text.toggle=切换 +action.text.filter=筛选 +action.text.close=关闭 +action.text.all=所有 +action.text.none=无 +action.text.merge=合并 +action.text.split=拆分 +action.text.rename=重命名 +action.text.reload=重新加载 +action.text.rerun=重新运行 +action.text.run.all=全部运行 + +button.filter=筛选 +button.set=设置 +button.exclude=排除 +button.overwrite=覆盖 +button.reuse=重用 +button.build=构建 +button.revert=还原 + +label.filter=筛选 +label.no.data=无数据 +label.name=名称 +label.kind=种类 +label.module=模块 +label.source.root=源根 +label.prefix=前缀 + +tab.title.general=常规 + +title.pull.up=向上拉取 +title.lambda=Lambda +title.output=输出 +title.input=输入 +title.name=名称 +title.confirmation=确认 +title.console=控制台 + +title.save.app=正在保存应用程序 +title.save.project=正在保存项目 +title.save.default.project=正在保存默认项目 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CommonProfilerBundle.properties b/original-plugin-raw/zh/messages/CommonProfilerBundle.properties new file mode 100644 index 000000000..936505e6c --- /dev/null +++ b/original-plugin-raw/zh/messages/CommonProfilerBundle.properties @@ -0,0 +1,243 @@ +profiler.configurable.name=分析器 +# suppress inspection "UnusedProperty" +profiler.settings.description=分析器 + +attach.profiler.action=将分析器附加到进程… +attach.profiler.action.description=使用可用分析器附加到进程 +attach.profiler.action.popup.title=分析器 +export.profiler.result.action.name=导出分析器结果 + +run.profiler.name=分析 +run.profiler.action=使用分析器运行 +run.with.profiler.action=使用 ''{1}'' 分析 {0} +run.profiler.action.description=使用分析器运行所选配置 +run.profiler.stopAndShow=停止分析并显示结果 +run.profiler.open={0}打开 +run.profiler.data.error=分析器错误: {0} +run.profiler.data.ready=分析器数据已就绪。 +run.profiler.attached=分析器已附加 + +import.profiler.dump.dialog.title=将转储导入为 + +profiler.valid.password.required=需要有效的 sudo 密码才能启动分析器 +profiler.cant.grub.pid=无法附加分析器。确保存在 PID 为 ''{0}'' 的进程。 +profiler.attach.timeout=由于超时,无法将分析器附加到 PID 为 ''{0}'' 的进程 +profiler.cannot.instrument.translated.processes=无法附加分析器。确保为目标架构构建了源应用程序。 +profiler.declarationNotFound=找不到声明 +profiler.selectOverload=选择重载 +profiler.open.snapshot=打开分析器快照 +profiler.state.inactive=分析器未启动 +profiler.state.reading.data=正在读取数据 +profiler.state.parsing.data=正在解析数据 +profiler.state.building.model=构建分析器模型 +profiler.state.error=分析器错误: {0} +profiler.state.terminated=分析器已被用户终止 +profiler.exceptions.unsupported.os=不支持的操作系统 +profiler.exceptions.attach.failed=附加失败 +profiler.exceptions.invalid.frequency=无效分析频率: ''{0}'' +profiler.exception.misconfig.dir.not.exist=找不到输出目录 +profiler.exception.misconfig.dir.cannotWrite=权限被拒: 输出目录没有写入访问权限 +profiler.placeholder.profiling=正在分析 +profiler.placeholder.duration=持续时间 +profiler.link.stop.and.get=停止目标进程以获取分析结果 +profiler.with.configuration.tab.title=包含 ''{1}'' 的 {0} + +cant.find.file.at.path=无法在 ''{1}'' 下找到 {0} +path.is.not.set=未设置{0}路径 + +ui.unnamed=未命名 +ui.action.open=打开… +ui.metrics.samples.name=示例 +ui.metrics.samples=示例 +ui.metrics.samples.options={0,choice,1#示例|2#示例} +ui.column.method=方法 +ui.column.metrics=度量 +ui.column.own.method=自身的{0} +ui.configure=配置 +ui.allThreadsMerged=所有线程已合并 +ui.noThreadInfo=无线程信息 + +profiler.documentation.kernel.vars=内核变量文档 + +ui.no.profiler.data=没有分析器数据 +ui.no.sampling.data=无采样数据 +ui.flamegraph.tab=火焰图 +ui.calltree.tab=调用树 +ui.methods.tab=方法列表 +ui.what.if.tab=What-If +ui.focus.error=无法聚焦于{0}中的方法 +ui.tab.format.default=默认名称 +ui.tab.format.absolute.time=绝对时间 +ui.tab.format.short.time=短时间 + +ui.backtrace.view.title=反向跟踪 +ui.backtrace.view.tab.title=方法回溯 +ui.merged.calls.view.title=合并的被调用方 +ui.merged.calls.view.tab.title=方法合并被调用方 +ui.callee.list.view.title=被调用方列表 + +ui.show.callee.list.action.text=显示被调用方列表 +ui.show.callee.list.action.description=显示被调用方列表 +ui.collapse.recursive.call=收起 {0} 递归 {1,choice,1#调用|2#调用} +ui.calculate.backtraces.from.leaf=从叶调用计算回溯 + +ui.focus.action=聚焦于{0}中的方法 + +ui.tabs.close=关闭选项卡 +ui.tabs.closeOthers=关闭其他 +ui.tabs.format.name=选项卡名称格式 +ui.action.navigate=导航 +ui.action.jump=跳转到源代码 + +ui.flamechart.actions.zoomIn=放大 +ui.flamechart.actions.zoomOut=缩小 +ui.flamechart.actions.resetZoom=重置缩放 +ui.flamechart.actions.stickyText=粘性文本 +ui.flamechart.actions.focusOnSearch=聚焦于搜索 +ui.flamechart.actions.icicleGraph=显示冰挂图 +ui.flamechart.actions.filterSlider=显示节点筛选器 +ui.flamechart.actions.searchToolbar=显示搜索工具栏 +ui.flamechart.actions.searchWholeGraph=搜索整个图表(&W) +ui.flamechart.actions.searchSubtreeOnly=仅搜索子树(&S) +ui.flamechart.actions.capture=捕获图像 +ui.flamechart.actions.capture.save=保存 +ui.flamechart.actions.capture.toClipboard=复制到剪贴板 +ui.flamechart.actions.capture.saveImage=保存图像 +ui.flamegraph.empty.text=正在呈现火焰图数据 +ui.flamechart.tooltip.parentAndAll={0},父级的 {1}%,全部的 {2}% +ui.search.actions.prev=上一个匹配项 +ui.search.actions.next=下一个匹配项 +ui.search.actions.close=关闭搜索工具栏 +ui.search.stub.no.results=0 个结果 +ui.search.stub.big.result=9888 个结果 + +ui.threadlist.show.action.message=显示 {0} +ui.threadlist.sort.action.message=按{0}排序 +ui.threadlist.sort.by.name.action.message=按名称排序 +ui.threadlist.keep.similar.threads.close.action.message=保持相似线程靠近 +ui.threadlist.metrics.threadId=线程 ID +ui.threadlist.metrics.samplesCount=示例计数 + +ui.stub.extract.data=正在提取数据… +ui.stub.extract.data.fail=发生数据提取错误 + +action.copy.frame.text=复制框架 +action.copy.frame.description=复制所选框架名称 +action.copy.stack.text=将堆栈复制到框架 +action.copy.stack.description=将堆栈复制到所选框架 + +sudo.dialog.title=需要访问权限 +sudo.dialog.note.row=分析器需要访问内核级 API。\n输入 sudo 密码以允许此操作。 +sudo.dialog.remember.tooltip=该密码将存储在应用程序会话之间的密钥链中。 +sudo.dialog.password.label=Sudo 密码: +sudo.dialog.invalid.password=密码不正确 +sudo.dialog.validation.canceled=验证已取消 + +sudo.validate.task.title=验证 Sudo 密码 + +attach.task.title=附加分析器 +attach.task.text=正在附加到进程 {0}… +profiler.error.dumpIsMissing=没有转储文件 +profiler.error.dumpIsEmpty=转储文件为空 +profiler.error.cantStop=无法停止分析器,jattach 输出:\n''{0}'' +profiler.error.timeout=停止命令超时 + +cant.start.profiler.kernel.variables.not.configured=无法启动分析器: 未配置内核变量 + +configurations.action.add.text=添加新配置 +configurations.action.copy.text=复制配置 +configurations.action.name=分析器配置 +configurations.action.text=配置 +configurations.action.rename.text=重命名配置 + +settings.callTree.percentsOfAll=显示总时间的百分比 +settings.callTree.percentsOfParent=显示父项的百分比 +settings.callTree.hideLessOnePercent=隐藏 <1% 的调用 +settings.callTree.viewSettings=演示设置 +settings.callTree.filter=筛选调用 + +settings.tooltips.showFilteredCalls=显示筛选的调用 +settings.tooltips.hideFilteredCalls=隐藏筛选的调用 + +profiler.action.export=保存分析器转储 +profiler.action.export.text=将分析器转储导出到文件 +profiler.action.export.selectPath=选择保存分析器转储的路径 +profiler.action.export.balloon=已保存分析器转储 +profiler.action.export.save.error=无法保存转储文件 + +profiler.action.import.openFile=选择分析器转储文件 +profiler.action.import.reading=正在读取 {0} +profiler.action.import.cant.find.parser=没有合适的分析器转储解析器 +profiler.action.import.error=无法导入分析器转储 + +profiler.kernel.vars.title=更改内核变量以运行分析器 +profiler.kernel.vars.doNotShow=以后不验证内核变量 +profiler.kernel.vars.changePerm=永久更改(写入{0}) +profiler.kernel.vars.changeUntilRestart=更改,直到操作系统重新启动 +profiler.kernel.vars.writing=正在写入内核变量… +profiler.kernel.vars.change=更改这些内核变量,允许 {0} 在没有根权限的情况下收集信息 +profiler.kernel.vars.error=无法写入内核变量。请手动配置 +profiler.kernel.vars.prompt.password=输入密码以更改所需的内核变量 + +dtrace.name=DTrace +dtrace.executable=DTrace 可执行文件 +dtrace.sampling.frequency=采样频率 +dtrace.command.line.arguments=命令行实参 +dtrace.comment.command.line='-s $SCRIPT -p $PID' 参数将在 dtrace 开始之前追加 +dtrace.comment.sample.per.second=每秒示例数 + +cpumemory.cannotConnect=无法连接到 JVM +cpumemory.action=CPU 和内存实时图表 +cpumemory.close=关闭 +cpumemory.all.values=显示所有值 +cpumemory.unknownError=未知错误 +cpumemory.cannotFindVM=找不到 VM +cpumemory.errorOccurred=出错了 +cpumemory.chart.cpu=CPU +cpumemory.chart.heap.memory=堆内存 +cpumemory.chart.non.heap=非堆内存 +cpumemory.chart.threads=线程 + + +checkbox.timeline.show.chart=显示图表 +checkbox.timeline.dragToChangeZoom=不使用修饰键通过选区缩放 +ui.build.call.tree.model=正在构建 {0} 模型… +ui.cant.build.call.tree.model=无法构建 {0} 模型,有关详细信息,请参阅 idea.log +ui.select.event.combobox.label=显示: +ui.metrics.alloc.name=分配大小(字节) +ui.metrics.alloc=字节 +ui.metrics.alloc.options={0,choice,1#字节|2#字节} +ui.threadlist.metrics.allocationSize=分配大小 +run.toolbar.profiler.run.with=使用 {0} 运行 +run.toolbar.profiler.choose.action=运行方式… +ui.diff.compare.action.text=与基线比较… +ui.diff.tab.name=差异:''{0}'' 对比 ''{1}'' +ui.column.diff.method=差异 {0} +ui.column.old.method=旧 {0} +ui.column.new.method=新建{0} +ui.flamechart.tooltip.removed=已移除 +ui.flamechart.tooltip.added=已添加 +ui.flamechart.tooltip.difference={0}(旧:{1},新:{2}) +ui.flamechart.actions.diff.select.type=选择火焰图类型 +ui.flamechart.actions.diff.select.baseline.type=基于基线树 +ui.flamechart.actions.diff.select.new.type=基于新树 +ui.flamechart.actions.diff.select.difference.type=基于差异 +ui.call.tree.build.name=调用树 +ui.diff.call.tree.build.name=差异调用树 +ui.diff.info.nothing.to.compare=无可比较内容:无匹配的事件 +ui.diff.info.incompatible.thread.layouts=无法为 ''{0}'' 构建差异:线程布局不兼容 +profiler.state.resolving.symbols=正在解析原生符号 +ui.flamechart.actions.diff.select.diff.to.the.right.type=靠右显示差异 +profiler.eventtracer.getting.profiling.info=正在解析分析信息: +profiler.eventtracer.progress.text.build.tree=构建树 +profiler.eventtracer.progress.text.relax.tree=压缩树 +profiler.eventtracer.pid=进程 ID: +profiler.eventtracer.duration=持续时间: +profiler.eventtracer.cat=类别: +profiler.eventtracer.name=名称: +profiler.eventtracer.args=实参: +profiler.eventtracer.time={0} 微秒 +profiler.eventtracer.tid=线程 ID: +profiler.eventtracer.progress.text.start.parse=读取文件 +profiler.eventtracer.no.event.selected.hover.and.select.event=未选择任何事件。悬停并选择事件 +ui.diff.info.incompatible.thread.layouts.no.identifier=无法构建差异:线程布局不兼容 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CommonQuickFixBundle.properties b/original-plugin-raw/zh/messages/CommonQuickFixBundle.properties new file mode 100644 index 000000000..cfc11c025 --- /dev/null +++ b/original-plugin-raw/zh/messages/CommonQuickFixBundle.properties @@ -0,0 +1,33 @@ +# This bundle contains messages for quick-fixes and intention actions which can be reused across languages. +# Only abstract messages are allowed here; no language-specific keywords or constructs should be mentioned. +# E.g. mentioning 'statement' or 'expression' is ok, but mentioning 'while statement' or 'instanceof expression' is not. +# +# Every fix name constant in this file should start with "fix.", then verb in infinitive which describes the action. +# Constants should be grouped by this verb. +fix.unwrap=解开 ''{0}'' +fix.unwrap.statement=取消 ''{0}'' 语句换行 + +fix.remove=移除 ''{0}'' +fix.remove.title=移除 {0} +fix.remove.title.x=移除 {0} ''{1}'' +fix.remove.redundant=移除冗余的 ''{0}'' +fix.remove.statement=移除 ''{0}'' 语句 + +fix.replace.with.x=替换为 ''{0}'' +fix.can.replace.with.x=可以替换为 ''{0}'' +fix.replace.x.with.y=将 ''{0}'' 替换为 ''{1}'' +fix.can.replace.x.with.y=''{0}'' 可以替换为 ''{1}'' + +fix.convert.to.x=转换为 ''{0}'' + +fix.use=使用 ''{0}'' + +fix.call=调用 ''{0}'' + +fix.simplify=简化 + +fix.create.title=创建 {0} +fix.create.title.x=创建{0} ''{1}'' + +fix.insert.x=插入 ''{0}'' +fix.rename.x.to.y=将 ''{0}'' 重命名为 ''{1}'' \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CompDBBundle.properties b/original-plugin-raw/zh/messages/CompDBBundle.properties new file mode 100644 index 000000000..fd0933f46 --- /dev/null +++ b/original-plugin-raw/zh/messages/CompDBBundle.properties @@ -0,0 +1,32 @@ +compdb=编译数据库 +compdb.url=http://clang.llvm.org/docs/JSONCompilationDatabase.html + +external.system.name=编译数据库 + +configurable.empty.text=未检测到编译数据库项目 + +parse.task.display.name=正在解析编译数据库配置文件 +import.task.display.name=导入到 CLion 项目模型 + +model.malformed.json.message=编译数据库配置文件的格式错误 +model.unexpected.error.message=编译数据库解析期间发生意外错误 +model.malformed.gson.prefix=JSON 文件的格式错误 + +model.success.message=编译数据库配置文件已成功解析 +model.command.object.success.message=编译数据库命令对象已成功解析 + +project.resolver.general.error.message=无法导入项目 +project.resolver.general.success.message=编译数据库项目已成功导入 +project.resolver.several.commands.for.file.warning=找到了文件 ''{0}'' 的多个命令对象。仅使用一个 +project.resolver.cannot.resolve.compiler.error=无法通过可执行文件确定编译器类型: ''{0}'' +project.resolver.cancelled.message=已取消编译数据库导入 +project.resolver.unexpected.error.message=编译数据库项目重新加载期间发生意外错误 + +refresh.project.action.name=重新加载编译数据库项目 +refresh.project.action.description=强制重新加载链接的编译数据库项目 + +compilation.database.file.not.found.message=无法在 ''{0}'' 中找到 ''compile_commands.json'' + +group.CompDB.ToolsMenu.text=编译数据库 +error.no.environment=无环境 +load.project.action.name=加载编译数据库项目 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CompletionRankingModelsBundle.properties b/original-plugin-raw/zh/messages/CompletionRankingModelsBundle.properties new file mode 100644 index 000000000..0c962bfd5 --- /dev/null +++ b/original-plugin-raw/zh/messages/CompletionRankingModelsBundle.properties @@ -0,0 +1,13 @@ +ml.completion.experiment.model.kotlin=Kotlin +ml.completion.experiment.model.scala=Scala +ml.completion.experiment.model.java=Java +ml.completion.experiment.model.python=Python +ml.completion.experiment.model.ruby=Ruby +ml.completion.experiment.model.rust=Rust +ml.completion.experiment.model.php=PHP +ml.completion.experiment.model.go=Go +ml.completion.experiment.model.js=JavaScript +ml.completion.experiment.model.ts=TypeScript +ml.completion.experiment.model.dart=Dart +ml.completion.experiment.model.swift=Swift +ml.completion.experiment.model.cidr=C/C++ diff --git a/original-plugin-raw/zh/messages/ComposeBundle.properties b/original-plugin-raw/zh/messages/ComposeBundle.properties new file mode 100644 index 000000000..cda52b9cd --- /dev/null +++ b/original-plugin-raw/zh/messages/ComposeBundle.properties @@ -0,0 +1,12 @@ + +create.preview=创建预览 +surround.with.widget.intention.text=使用微件环绕 +surround.with.row.intention.text=使用行环绕 +surround.with.column.intention.text=使用列环绕 +compose.enable.insertion.handler=使用 Jetpack Compose 时启用增强的自动补全 +create.composable.function=创建 @Composable 函数 +surround.with.box.intention.text=使用容器环绕 +remove.wrapper=移除包装器 +wrap.modifiers=包装修饰符 +import.compose.state=导入 {0} +filter.ignore.compose.runtime.classes=不步入 Compose 内部类 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/ComposePreviewBundle.properties b/original-plugin-raw/zh/messages/ComposePreviewBundle.properties new file mode 100644 index 000000000..759f1299c --- /dev/null +++ b/original-plugin-raw/zh/messages/ComposePreviewBundle.properties @@ -0,0 +1,41 @@ +action.auto.build.title=自动构建 +action.auto.build.description=启用/禁用自动构建。输入时将自动刷新预览。 +action.deploy.title=部署预览 +action.group.switch.title=切换预览组 +action.interactive.title=交互式 +action.interactive.description=启用动画预览 +action.stop.interactive.title=停止交互式预览 +action.stop.interactive.description=停止交互式预览 +group.switch.all=所有 + +notification.action.build=构建 +notification.action.build.and.refresh=构建并刷新 +notification.needs.build=需要编译项目才能显示预览 +notification.needs.build.broken=需要成功编译项目才能显示预览 +notification.new.preview=此文件现在可以显示 Composable 函数的预览。 +notification.new.preview.action=显示预览 +notification.preview.is.refreshing=正在刷新预览… +notification.preview.out.of.date=预览已过期 +notification.syntax.errors=项目包含语法错误时预览不会更新。 +panel.no.previews.defined=未定义预览 +panel.building=正在等待构建完成… +panel.needs.build=成功构建才能显示预览 +inspection.no.parameters.or.provider.description=除非使用 @PreviewParameter 进行注解,否则预览中不支持带非默认形参的 Composable 函数。 +inspection.no.composable.description=预览仅适用于 Composable 函数。 +inspection.no.multiple.preview.provider.description=不允许多个 @PreviewParameter。 +inspection.top.level.function=预览必须是顶层声明,或是具有默认构造函数的顶层类。 +inspection.width.limit.description=预览宽度限制为 {0}。设置更大的数字不会增加预览宽度。 +inspection.height.limit.description=预览高度限制为 {0}。设置更大的数字不会增加预览高度。 +representation.name=Compose + +run.line.marker.text=运行 {0} +run.configuration.no.module.selected=<无模块> +run.configuration.module.label=模块 +run.configuration.composable.label=Composable +run.configuration.composable.empty.text=@Composable 函数完全限定名称 +run.configuration.general.tab=常规 +run.configuration.debugger.tab=调试器 +inspection.group.name=Compose 预览 +inspection.no.parameters.name=带参数的 Composable 函数中使用的预览 +inspection.no.composable.name=在非 Composable 函数上使用的预览 +inspection.dimension.limit.name=预览尺寸有最大限制 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/ConfigurationScriptBundle.properties b/original-plugin-raw/zh/messages/ConfigurationScriptBundle.properties new file mode 100644 index 000000000..4da433d3b --- /dev/null +++ b/original-plugin-raw/zh/messages/ConfigurationScriptBundle.properties @@ -0,0 +1 @@ +intellij.configuration.name=IntelliJ 配置 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/ConfigurationStoreBundle.properties b/original-plugin-raw/zh/messages/ConfigurationStoreBundle.properties new file mode 100644 index 000000000..7ab2c9db7 --- /dev/null +++ b/original-plugin-raw/zh/messages/ConfigurationStoreBundle.properties @@ -0,0 +1,53 @@ +editbox.export.settings.to=导出设置 +error.cannot.find.file=未找到文件{0} +error.reading.settings.file=读取文件 {0} 时出错。\n请确认该文件是由 ''文件 | 导出设置'' 功能所生成。\n\n{1} +error.reading.settings.file.2=读取文件 {0} 时出错。\n\n{1} +error.no.settings.to.import=文件 {0} 不包含任何要导入的设置。\n请确认该文件是由 ''文件 | 导出设置'' 功能所生成。 +error.writing.settings=写入设置错误.\n\n{0} +message.settings.exported.successfully=已成功导出您的设置.可以导入 '文件|导入设置'. +message.settings.imported.successfully=已成功导入设置.您必须重启{0}以重新加载设置.关闭{1}吗? +module.file.does.not.exist.error=文件{0}不存在 +project.reload.failed=加载外部更改时出错: {0}. 项目将重新加载. +project.reload.failed.title=重新加载错误 +prompt.check.components.to.import=检查导入的组件: +prompt.choose.export.settings.file.path=选择导出文件的保存目录 +prompt.choose.import.file.path=选择要导入的设置文件或目录 +prompt.overwrite.settings.file=覆盖 ''{0}''? +prompt.please.check.all.components.to.export=请检查要导出的设置: +title.export.file.location=导出到文件 +title.export.successful=导出完成 +title.file.not.found=找不到文件 +title.import.file.location=导入文件的位置 +title.invalid.file=无效的文件 +title.select.components.to.export=导出设置 +title.select.components.to.import=选择要导入的组件 + +restore.default.settings.confirmation.title=恢复默认 IDE 设置? +restore.default.settings.confirmation.message=当前设置将备份到 {0} +restore.default.settings.confirmation.button.restart=恢复并重启 +restore.default.settings.confirmation.button.shutdown=恢复并关闭 +import.settings.confirmation.button.restart=导入并重新启动 +import.default.settings.confirmation.button.shutdown=导入并关闭 +import.settings.confirmation.title=重新启动以导入设置 + +notification.load.settings.title=加载设置 +notification.load.settings.content=无法从文件 ''{0}'' 加载设置 +notification.load.settings.error.reason.truncated=内容已截断 +notification.load.settings.action.content.will.be.recreated=文件内容将被重新创建 +notification.load.settings.action.please.correct.file.content=请更正文件内容 + +export.components.list.action.select.all=全选(&A) +export.components.list.action.select.none=不选(&N) +export.components.list.action.invert.selection=反转(&I) + +configuration.application.files.changed.restart.prompt.title=应用程序文件已更改 +# {0} is the project name +configuration.project.files.changed.restart.prompt.title=项目 ''{0}'' 文件已更改 +# This message is followed by the list of components +configuration.project.files.changed.message.start=项目 ''{0}'' 组件已在外部更改,无法重新加载: +configuration.application.files.changed.message.start=应用程序组件已在外部更改,无法重新加载: +# the list of components, and the number of remaining components, e.g. "componentA, componentB, and 3 more" +configuration.project.components.changed.and.several.more={0} 和另外 {1} 个 +configuration.project.files.changed.restart.proposal=想要重新启动 {0} 吗? +configuration.project.files.changed.shutdown.proposal=想要关闭 {0} 吗? +configuration.project.files.changed.reload.project.proposal=想要重新加载项目吗? \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CopyrightBundle.properties b/original-plugin-raw/zh/messages/CopyrightBundle.properties new file mode 100644 index 000000000..a2ff2dc91 --- /dev/null +++ b/original-plugin-raw/zh/messages/CopyrightBundle.properties @@ -0,0 +1,78 @@ + +action.DumbAware.CopyrightProfilesPanel.description.add=添加 +action.DumbAware.CopyrightProfilesPanel.description.copy=复制 +action.DumbAware.CopyrightProfilesPanel.description.import=导入 +action.DumbAware.CopyrightProfilesPanel.text.add=添加 +action.DumbAware.CopyrightProfilesPanel.text.copy=复制 +action.DumbAware.CopyrightProfilesPanel.text.import=导入 +before.checkin.update.copyright=更新版权 +checkbox.text.update.existing.copyrights=更新现有版权 +command.name.update.copyright=更新版权 +configurable.CopyrightFormattingConfigurable.display.name=格式化 +configurable.CopyrightProfilesPanel.display.name=版权配置文件 +configurable.CopyrightProjectConfigurable.display.name=版权 +copyright.copyright.column=版权 +copyright.default.project.copyright=默认项目版权(&P): +copyright.no.text=无版权 +copyright.profiles.add.profile=添加配置文件 +copyright.profiles.empty=未添加版权配置文件。 +copyright.profiles.select.profile=在此处选择要查看或编辑其详细信息的配置文件 +copyright.scope.column=范围 +copyright.select.scopes.label=选择“范围”以添加新范围或修改现有范围 +dialog.file.chooser.title.choose.file.containing.copyright.notice=选择包含版权声明的文件 +dialog.message.new.copyright.profile.name=新版权配置文件名称: +dialog.message.no.copyright.configured=没有为当前文件配置版权。要编辑版权设置吗? +dialog.message.the.copyright.settings.imported=已成功导入版权设置。 +dialog.message.the.selected.file.copyright.settings=所选文件不包含任何版权设置。 +dialog.message.velocity.template.contains.error.0=Velocity 模板包含错误:\n{0} +dialog.message.velocity.template.is.valid=Velocity 模板有效。 +dialog.message.duplicate.copyright.profile.name=重复的版权配置文件名称: ''{0}'' +dialog.title.import.complete=导入完成 +dialog.title.no.copyright.available=没有可用版权 +dialog.title.validation=验证 +dialog.title.import.failure=导入失败 +popup.title.choose.profile.to.import=选择要导入的配置文件 +settings.copyright.formatting.add.blank.line.after=在后面添加空行(&D) +settings.copyright.formatting.after.other.comments=在其他注释后(&R) +settings.copyright.formatting.before.other.comments=在其他注释前(&O) +settings.copyright.formatting.borders=边框 +settings.copyright.formatting.box=框 +settings.copyright.formatting.comment.type=注释类型 +settings.copyright.formatting.length=长度: +settings.copyright.formatting.location.in.file=在文件中的位置 +settings.copyright.formatting.no.copyright=无版权 +settings.copyright.formatting.prefix.each.line=为每行添加前缀 +settings.copyright.formatting.relative.location=相对位置 +settings.copyright.formatting.separator=分隔符: +settings.copyright.formatting.separator.after=分隔符位于后面 +settings.copyright.formatting.separator.before=分隔符位于前面 +settings.copyright.formatting.use.block.comment=使用块注释 +settings.copyright.formatting.use.custom.formatting.options=使用自定义格式设置选项 +settings.copyright.formatting.use.default.settings=使用默认设置 +settings.copyright.formatting.use.line.comment=使用行注释 +task.title.prepare.copyright=准备版权… +action.UpdateCopyright.text=更新版权… +action.UpdateCopyright.description=生成/更新版权通知。 +action.GenerateCopyright.text=版权 +action.GenerateCopyright.description=生成/更新版权通知。 +updating.copyrights.progress.message=正在更新版权… +update.copyright.progress.title=更新版权 +replace.copyright.regexp.is.incorrect.configuration.error=替换版权正则表达式不正确: +detect.copyright.regexp.is.incorrect.configuration.error=检测版权正则表达式不正确: +import.copyright.profile=导入版权配置文件 +copy.copyright.profile=复制版权配置文件 +create.copyright.profile=创建版权配置文件 +label.allow.replacing.copyright.if.old.copyright.matches=如果旧版权匹配,则允许替换版权: +label.copyright.text.may.contain.velocity.templates=版权文本(可能包含 Velocity 模板): +label.regexp.to.detect.copyright.in.comments=用于检测注释中的版权的正则表达式: +button.validate=验证 +radio.location.in.file.before.class=类之前 +radio.location.in.file.before.imports=import 之前 +radio.location.in.file.before.package=软件包之前 +radio.location.in.file.before.root.tag=根标记之前 +radio.location.in.file.before.doctype=doctype 之前 +settings.copyright.formatting.add.blank.line.before=在前面添加空行(&B) +link.label.configure.copyright.settings=配置… +label.updates.existing.copyrights.e.g.changes.year.or.updated.notice=更新版权文本、年份和其他属性 +label.no.copyright.configured=未配置版权 +checkbox.update.copyright.notice=更新版权声明 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CoreBundle.properties b/original-plugin-raw/zh/messages/CoreBundle.properties new file mode 100644 index 000000000..5b0ad858b --- /dev/null +++ b/original-plugin-raw/zh/messages/CoreBundle.properties @@ -0,0 +1,74 @@ +attempt.to.modify.read.only.document.error.message=试图修改只读文档 +button.cancel=取消 +cannot.delete.a.read.only.file=无法删除只读文件 ''{0}''. +cannot.modify.a.read.only.directory=无法修改只读目录 ''{0}''. +cannot.modify.a.read.only.file=无法修改只读文件 ''{0}''. +cannot.rename.root.directory=无法重命名根目录''{0}''。 +dir.already.exists.error=无法创建目录''{0}'',目录已存在。 +directory.create.wrong.parent.error=不是目录。无法在其中创建新目录。 +directory.invalid.name.error=目录名无效: ''{0}''。 +editing.read.only.file.hint=只读文档 +file.already.exists.error=无法创建文件''{0}'',文件已存在。 +file.copy.error=无法复制文件到{0}。 +file.copy.target.must.be.directory=无法复制,目标必须是目录。 +file.create.already.exists.error=无法创建文件{0}/{1},文件已存在。 +file.create.wrong.parent.error=不是目录,无法在其中创建新文件。 +file.invalid.name.error=文件名: ''{0}''。 +file.move.error=无法移动文件到{0}。 +filetype.archive.description=归档文件 +filetype.archive.display.name=归档文件 +filetype.plaintext.description=文本 +invalid.directory.create.files=无效目录,无法创建文件。 +psi.search.scope.intersection={0}和{1}的交叉点 +psi.search.scope.project=项目文件 +psi.search.scope.union={0}和{1}的接合 +search.scope.unknown=<未知范围> +url.parse.error=无法解析URL {0}。 +url.parse.unhandled.exception=无法解析URL, 未能处理引起的异常。 +plugin.loading.error.short.compatible.with.intellij.idea.only=仅与 IntelliJ IDEA 兼容 +plugin.loading.error.long.compatible.with.intellij.idea.only=插件 ''{0}'' 之所以与 IntelliJ IDEA 兼容,只是因为它没有定义任何显式模块依赖项 +plugin.loading.error.text.file.contains.invalid.plugin.descriptor=文件 ''{0}'' 包含无效的插件描述符 +plugin.loading.error.plugins.cannot.be.loaded.because.they.form.a.dependency.cycle=插件 {0} 不能被加载,因为它们形成了一个依赖循环 +plugin.loading.error.descriptor.file.is.empty=插件描述符文件为空 +plugin.loading.error.short.depends.on.broken.plugin=依赖于标记为不兼容的插件 ''{0}'' +plugin.loading.error.short.depends.on.disabled.plugin=需要启用插件 ''{0}'' +plugin.loading.error.long.depends.on.disabled.plugin=插件 ''{0}'' 需要启用插件 ''{1}'' +plugin.loading.error.short.depends.on.not.installed.plugin=需要安装插件 ''{0}'' +plugin.loading.error.long.depends.on.not.installed.plugin=插件 ''{0}'' 需要安装插件 ''{1}'' +plugin.loading.error.short.depends.on.failed.to.load.plugin=依赖于加载失败的插件:''{0}'' +plugin.loading.error.long.depends.on.failed.to.load.plugin=插件 ''{0}'' 不能被加载,因为它依赖的插件 ''{1}'' 加载失败 +plugin.loading.error.short.ide.contains.conflicting.module=IDE 包含冲突模块 ''{0}'' +plugin.loading.error.long.ide.contains.conflicting.module=插件 ''{0}'' 与 IDE 不兼容,因为 IDE 包含的模块 ''{1}'' 与插件冲突 +plugin.loading.error.module.declared.by.multiple.plugins=模块 {0} 由多个插件声明:\n {1} +plugin.loading.error.short.failed.to.load.requirements.for.ide.version=无法加载 IDE 版本的要求 +plugin.loading.error.long.failed.to.load.requirements.for.ide.version=插件 ''{0}'' 不能被加载,因为它对 IDE 版本的要求不正确 +plugin.loading.error.short.incompatible.since.build=不兼容: 需要 IDE 内部版本 {0} 或更新的版本 +plugin.loading.error.long.incompatible.since.build=插件 ''{0}'' (版本 ''{1}'')与当前版本的 IDE 不兼容,因为它需要内部版本号 {2} 或更新的版本,但当前的内部版本号是 {3} +plugin.loading.error.short.incompatible.until.build=不兼容: 需要 IDE 内部版本 {0} 或更老的版本 +plugin.loading.error.long.incompatible.until.build=插件 ''{0}'' (版本 ''{1}'')与当前版本的 IDE 不兼容,因为它需要内部版本号 {2} 或更老的版本,但当前的内部版本号是 {3} +plugin.loading.error.short.custom.plugin.loading.disabled=自定义插件加载已禁用 +plugin.loading.error.long.custom.plugin.loading.disabled=插件 ''{0}'' 未加载,因为在当前的 IDE 实例中,自定义插件的加载被明确禁止 +plugin.loading.error.short.plugin.loading.disabled=插件加载已禁用 +plugin.loading.error.long.plugin.loading.disabled=插件 ''{0}'' 未加载,因为在当前的 IDE 实例中,插件的加载被明确禁止 +plugin.loading.error.short.marked.as.broken=标记为不兼容 +plugin.loading.error.long.marked.as.broken=插件 ''{0}''(版本 {1})被明确标记为与当前版本的 IDE 不兼容 +link.text.open.plugin.manager=打开插件管理器 +scope.name.all.places=所有位置 +scope.display.name.directories.0=目录 {0} +scope.display.name.directory.0=目录 ''{0}'' +parsing.error.unexpected.token=意外的标记 +parsing.error.end.of.line.expected=应为行尾 +parsing.error.expected.element=应为: {0} +progress.title.processing.documents=正在处理文档 +command.name.undefined=未定义 +filetype.unknown.description=未知 +filetype.unknown.display.name=未知 +link.text.disable.plugin=禁用 {0} +link.text.disable.not.loaded.plugins=禁用未加载的插件 +link.text.enable.plugin=启用 {0} +link.text.enable.all.necessary.plugins=启用所有必要的插件 +prompt.overwrite.project.file={1}文件 ''{0}''已存在.是否覆盖? +failed.to.make.the.following.files.writable.error.message=无法将以下文件设为可写: {0} +failed.to.make.file.writable.error.message=无法将 {0} 设为可写。 +vfs.corruption.notification.title=文件系统缓存损坏 +vfs.corruption.notification.text=需要重启才能重建损坏的缓存 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CoverageBundle.properties b/original-plugin-raw/zh/messages/CoverageBundle.properties new file mode 100644 index 000000000..b9f752286 --- /dev/null +++ b/original-plugin-raw/zh/messages/CoverageBundle.properties @@ -0,0 +1,85 @@ +action.description.show.tests.covering.line=显示测试覆盖行 +action.name.cover=覆盖 +action.text.show.tests.covering.line=显示测试覆盖行 +cannot.show.coverage.reports.from.different.engines=无法显示来自不同引擎的覆盖率报告。 +choose.coverage.suite.to.display=选择要显示的覆盖率套件 +code.coverage=代码覆盖率 +configurable.CoverageOptionsConfigurable.display.name=覆盖率 +coverage.add.to.active.suites=添加到活动套件(&A) +coverage.data.no.coverage.button=没有覆盖率(&N) +coverage.data.not.found=未找到覆盖率数据 +coverage.data.outdated=覆盖率数据已过期 +coverage.data.runner.name={0} 覆盖率 +coverage.data.show.selected.button=显示选定内容 +coverage.do.not.apply.collected.coverage=不应用已收集的覆盖率(&C) +coverage.edit.colors.action.name=编辑覆盖率颜色 +coverage.edit.colors.description=编辑覆盖率颜色 +coverage.hide.coverage.action.description=隐藏覆盖率数据 +coverage.hide.coverage.action.name=隐藏覆盖率 +coverage.next.change.fully.covered=完全覆盖 +coverage.next.change.partial.covered=部分覆盖 +coverage.next.change.uncovered=未覆盖 +coverage.next.mark=下一个覆盖率标记 +coverage.next.place=下一个 {0} +coverage.previous.mark=上一个覆盖率标记 +coverage.previous.place=上一个 {0} +coverage.replace.active.suites=替换活动套件(&R) +coverage.report.building=构建覆盖率报告… +coverage.tab.title=代码覆盖率 +coverage.view.action.go.up.description=转到上一级 +coverage.view.action.go.up=上升 +coverage.view.configuration.was.not.found=未找到配置 ''{0}''。 +coverage.view.edit.run.configuration.0=点击 +coverage.view.edit.run.configuration.1=编辑 +coverage.view.edit.run.configuration.2=以修复配置设置。 +coverage.view.element=元素 +coverage.view.loading.data=正在加载覆盖率数据 +coverage.view.no.coverage.results=没有覆盖率结果。 +coverage.view.text.covered=已覆盖 +coverage.view.text.files.covered={0}% 文件 +coverage.view.text.lines.covered={0}% 行已覆盖 +coverage.view.title=覆盖率 +delete.file=删除文件 +display.coverage.prompt=您要显示覆盖率数据''{0}''吗? +extract.information.about.tests=提取有关测试的信息 +generate.coverage.report.for=生成覆盖率报告: ''{0}'' +lines.covered.info.less.than.one.percent=覆盖的行 <1% +lines.covered.info.no.lines.covered=未覆盖任何行 +lines.covered.info.not.covered=未覆盖 +lines.covered.info.percent.lines.covered=% 行已覆盖 +marker.code.coverage=标记: 代码覆盖率 +no.coverage.runner.available.for=没有适用于 {0} 的覆盖率运行程序 +no.coverage.suites.configured=未配置覆盖率套件。 +run.selected.configuration.with.coverage.enabled=运行已启用覆盖率的所选配置 +run.with.coverage.mnemonic=使用覆盖率运行 %s(_V) +run.with.coverage=使用覆盖率运行(_V) +settings.coverage.activate.coverage.view=激活覆盖率视图(&V) +settings.coverage.add.to.the.active.suites=添加到活动套件(&D) +settings.coverage.do.not.apply.collected.coverage=不应用已收集的覆盖率(&N) +settings.coverage.replace.active.suites.with.the.new.one=将活动套件替换为新套件(&R) +settings.coverage.show.options.before.applying.coverage.to.the.editor=在将覆盖率应用到编辑器前显示选项(&S) +settings.coverage.when.new.coverage.is.gathered=收集新覆盖率时 +table.column.name.statistics=统计信息,% +node.summary.no.coverage=''{0}'' 中无覆盖 +node.summary.coverage.statistic=''{1}'' 中的 {0} +action.GenerateCoverageReport.text=生成覆盖率报告(_G)… +action.SwitchCoverage.text=显示覆盖率数据(_V)… +configurable.name.editor.colors.page=编辑器 | {0} | {1} +dialog.message.would.you.like.to.delete.file.on.disk=要删除磁盘上的文件 ''{0}'' 吗? +link.label.close=关闭 +hint.text.failed.to.load.covered.tests=无法加载覆盖的测试 +popup.title.tests.covering.line=测试覆盖行 {0}:{1} +coverage.info.string.file={0,choice,1#文件|2#文件} +remote.suites.node=远程 +coverage.results.suite.name={0} 覆盖结果 +hits.title=命中: {0} +hits.message=命中: {0} +following.test.could.not.be.found.1=找不到以下{0, choice, 1#测试|2#测试}: {1} +show.coverage.per.test.action.text=显示每个测试的覆盖率 + +coverage.is.not.importable=覆盖率在此环境中不可导入。请{0} coverage.py 或在“设置 | 覆盖率”中{1} ''Use bundled coverage''。 +coverage.is.not.importable.option.install=安装 +coverage.is.not.importable.option.enable=启用 +coverage.collecting.data=正在收集覆盖率数据 +coverage.error.collecting.data=收集覆盖率数据时出错 +coverage.error.loading.report=加载覆盖率报告时出错 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CppDiagnosticsBundle.properties b/original-plugin-raw/zh/messages/CppDiagnosticsBundle.properties new file mode 100644 index 000000000..a4af9ec69 --- /dev/null +++ b/original-plugin-raw/zh/messages/CppDiagnosticsBundle.properties @@ -0,0 +1,17 @@ +cpp.diagnostics.progress.title=正在收集 C/C++ 诊断信息 +cpp.diagnostics.progress.workspace=工作区 +cpp.diagnostics.progress.ocWorkspace=OCWorkspace +cpp.diagnostics.progress.ocWorkspaceEvents=OCWorkspace 事件 +cpp.diagnostics.progress.toolchains=工具链 +cpp.diagnostics.progress.hosts.info=正在收集远程主机信息 + +cpp.diagnostics.are.collected.0=诊断已收集: {0} +cpp.diagnostics.cant.write.0=无法将诊断写入磁盘: {0} + +cpp.diagnostics.was.not.logged.0=事件未记录,请更改 {0} 注册表项并重启 + +# Actions +action.com.jetbrains.cidr.cpp.diagnostics.CppDiagnosticsAction.text=收集 C/C++ 诊断信息 +action.com.jetbrains.cidr.cpp.diagnostics.CppDiagnosticsAction.description=收集有关当前项目的项目模型诊断 +action.ShowRemoteHostsInfo.text=显示远程主机信息 +action.ShowRemoteHostsInfo.description=收集有关已配置的远程主机的诊断信息 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CredentialStoreBundle.properties b/original-plugin-raw/zh/messages/CredentialStoreBundle.properties new file mode 100644 index 000000000..be29bf77c --- /dev/null +++ b/original-plugin-raw/zh/messages/CredentialStoreBundle.properties @@ -0,0 +1,46 @@ +action.text.password.safe.import=导入 +action.text.password.safe.clear=清除 +action.change.password.text=更改主密码 +action.set.password.text=设置主密码 +kee.pass.dialog.default.title=更改主密码 +kee.pass.dialog.message=内部错误 +kee.pass.dialog.request.master.title=指定主密码 +kee.pass.dialog.title.cannot.import=无法导入 +kee.pass.dialog.title.set.master.password=设置主密码 +kee.pass.row.comment=如果当前密码未知,请清除 KeePass 数据库。 +kee.pass.row.current.password=当前密码: +kee.pass.row.master.password=主密码: +kee.pass.row.new.password=新密码: +kee.pass.top.note=数据库位于自定义位置,因此\n需要自定义主密码。 +kee.pass.validation.info.current.password.incorrect=当前密码不正确。 +kee.pass.validation.info.current.password.incorrect.current.empty=当前主密码为空。 +password.safe.configurable=密码 +passwordSafeConfigurable.are.you.sure=确定要移除所有密码吗? +passwordSafeConfigurable.clear.passwords=清除密码 +passwordSafeConfigurable.do.not.save=不保存,重新启动后忘记密码 +passwordSafeConfigurable.in.keepass=在 KeePass 中 +passwordSafeConfigurable.in.native.keychain=在原生密钥链中 +passwordSafeConfigurable.keepass.database.file=KeePass 数据库文件 +passwordSafeConfigurable.protect.master.password.using.pgp.key=使用 PGP 密钥保护主密码: +passwordSafeConfigurable.protect.master.password.using.pgp.key.no.keys=使用 PGP 密钥保护主密码(未配置密钥) +passwordSafeConfigurable.remove.passwords=移除密码 +passwordSafeConfigurable.save.password=保存密码: +passwordSafeConfigurable.weak.encryption=使用弱加密存储。建议存储在加密卷上,以增强安全性。 +settings.password.change.master.password=更改主密码 +settings.password.database=数据库: +settings.password.internal.error=内部错误: {0} +settings.password.keepass.database.file.is.directory.=KeePass 数据库文件为目录。 +settings.password.keepass.database.file.should.ends.with.kdbx=KeePass 数据库文件应以“.kdbx”结尾。 +settings.password.keepass.database.path.is.empty=KeePass 数据库路径为空。 +settings.password.master.password.for.keepass.database.is.not.correct=KeePass 数据库的主密码不正确(可以使用“清除”来重置数据库)。 +dialog.message.master.password.not.correct=主密码不正确。 +notification.title.native.keychain.unavailable=无法访问原生密钥链 +notification.content.native.keychain.unavailable=凭据会被记住,直到 {0} 关闭。 +notification.content.native.keychain.unavailable.linux.addition=请安装所需软件包 libsecret-1-0: sudo apt-get install libsecret-1-0 gnome-keyring +notification.title.password.missing=KeePass 主密码缺失 +notification.title.password.incorrect=KeePass 主密码错误 +notification.title.database.error=无法打开 KeePass 数据库 +notification.title.keychain.not.available=原生密钥链不可用 +notification.title.cannot.use.keychain=无法使用原生密钥链 +notification.content.in.memory.storage=将使用内存密码存储。 +notification.content.password.settings.action=密码设置 \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CsBundle.properties b/original-plugin-raw/zh/messages/CsBundle.properties new file mode 100644 index 000000000..ccff93c97 --- /dev/null +++ b/original-plugin-raw/zh/messages/CsBundle.properties @@ -0,0 +1,126 @@ +org.coffeescript.formatter.tabname=CoffeeScript + +compile.progressbar.message=CoffeeScript 文件编译 +compile.original.file.title=源 CoffeeScript 文件 +compile.generated.file.title=生成的 JavaScript 文件 +compile.title=编译的 CoffeeScript 文件预览 +compile.error.message=CoffeeScript 文件无效。请更正所有错误,并再次运行预览 + +source.maps.directory.label=路径(&P) +source.maps.directory.title=指定包含 CoffeeScript 文件的目录 +source.maps.task.name=生成 CoffeeScript 源映射 +source.maps.task.description=生成 CoffeeScript 源映射({0}) +source.maps.task.execution.description=生成 CoffeeScript 源映射 ({0}) + +parser.destructuring.object.without.braces=析构对象必须用大括号括起来 + +surrounder.if=if +surrounder.if.else=if/else +surrounder.while=while +surrounder.for=for +surrounder.try.catch=try/catch +surrounder.try.finally=try/finally +surrounder.try.catch.finally=try/catch/finally +surrounder.function=函数 + +livetemplate.name=CoffeeScript + +inspection.group_general.name=常规 +inspection.group_probable_bugs.name=可能的错误 + +inspection.infinite.loop.name=无限循环语句 +inspection.silly.assignment.name=变量被赋值给自己 +inspection.switch.without.default.name=没有 'default' 分支的 'switch' 语句 +inspection.unused_locals.name=未使用的局部符号 +inspection.literal.not.a.function.name=对象文字调用 +inspection.literal.not.a.function.message=应为函数 +inspection.invalid.number.of.parameters.name=函数签名不匹配 +inspection.invalid.number.of.parameters.range=实参数量无效,应介于 {0} 到 {1} 之间 + +intention.double.to.single.string.name=将带双引号的字符串替换为带单引号的字符串 +intention.single.to.double.string.name=将带单引号的字符串替换为带双引号的字符串 + +inspection.missing.import.statement.name=缺少 import 语句 + +refactorings.introduce.cant.introduce.title=错误 +refactorings.introduce.variable.title=引入变量 +refactorings.introduce.cant.introduce.message=无法使用所选元素执行引入 + +formatter.options.call.parameters.wrap.title=圆括号内的函数调用实参 +formatter.options.space.within.array=数组初始值设定项中括号 +formatter.options.space.within.index=数组索引中括号 +formatter.options.space.within.range=范围中括号 +formatter.options.space.within.object=对象大括号 + +codestyle.align.function=对齐函数体 +configurable.display.name.coffeescript=CoffeeScript +inspection.group.path.coffeescript=CoffeeScript +color.display.name.javascript.injection.quote=Javascript 注入引号 +color.display.name.javascript.injection=Javascript 注入 +color.display.name.heregex.content=Heregex 内容 +color.display.name.heregex.id=Heregex id +color.display.name.heredoc.content=Heredoc 内容 +color.display.name.heredoc.id=Heredoc id +color.display.name.regular.expression.flag=正则表达式标志 +color.display.name.regular.expression.content=正则表达式内容 +color.display.name.regular.expression.id=正则表达式 id +color.display.name.parameter=形参 +color.display.name.splat=Splat +color.display.name.range=范围 +color.display.name.keyword=关键字 +color.display.name.existential.operator=存在运算符 +color.display.name.operations=运算 +color.display.name.prototype=原型 +color.display.name.this.references=this 引用 +color.display.name.escape.sequence=转义序列 +color.display.name.expression.substitution.mark=表达式替换标记 +color.display.name.string.literal=字符串文字 +color.display.name.boolean=布尔 +color.display.name.number=数字 +color.display.name.object.key=对象键 +color.display.name.function.binding.arrow=函数绑定箭头 +color.display.name.function.arrow=函数箭头 +color.display.name.function.name=函数名称 +color.display.name.class=类 +color.display.name.global.variable=全局变量 +color.display.name.local.variable=局部变量 +color.display.name.block.comment=块注释 +color.display.name.line.comment=行注释 +color.display.name.braces=大括号 +color.display.name.brackets=中括号 +color.display.name.parenthesis=圆括号 +color.display.name.semicolon=分号 +color.display.name.comma=逗号 +color.display.name.colon=冒号 +color.display.name.dot=点 +color.display.name.bad.character=错误字符 +annotation.message.unexpected=意外 . +progress.indicator.text.source.maps.for.0=此对象的源映射: {0} +filetype.literate.coffee.script.description=LiterateCoffeeScript +dialog.title.target.function=目标函数 +action.name.create.coffeescript.file.0=创建 CoffeeScript 文件 {0} +dialog.kind.coffeescript.class=CoffeeScript 类 +dialog.kind.coffeescript.file=CoffeeScript 文件 +dialog.title.new.coffeescript.file=新建 CoffeeScript 文件 +action.CreateCoffeeScriptFileAction.description=创建 CoffeeScript 文件 +action.CreateCoffeeScriptFileAction.text=CoffeeScript 文件 +label.enable.file.watcher.to.compile.coffeescript.to.javascript=启用 File Watcher 以将 CoffeeScript 编译为 JavaScript? +label.compiles.coffee.files.into.js.files=将 .coffee 文件编译为 .js 文件 +parsing.error.reserved.word=预留的单词 +parsing.error.unmatched=不匹配的 {0} +parsing.error.multiple.splats=赋值中不允许使用多个 splat/扩展 +parsing.error.expected.end.of.line=应为行尾 +parsing.error.expected.for.variables=应为 for-variables +parsing.error.expected=应为 "{0}" +parsing.error.expected.when.condition=应为 "When" 条件 +parsing.error.expected.if.condition=应为 "if" 条件 +parsing.error.expected.token.but.got=应为 tokenType "{0}",但得到的是 "{1}" +parsing.error.expected.end.of.string=应为字符串 "{0}" 结尾 +parsing.error.expected.class.name=应为类名 +parsing.error.unexpected=意外 {0} +parsing.error.unexpected.token.in.assignable.element=可分配元素中出现意外标记 +parsing.error.when.block.must.be.inside.switch.block="When" 块必须位于 "switch" 块内部 +switch.statement.with.no.default.branch.error.string='#ref' 语句没有 default 分支 #loc + +action.CompileCoffeeScript.text=预览编译的 CoffeeScript 文件… +intention.category.coffeescript=CoffeeScript \ No newline at end of file diff --git a/original-plugin-raw/zh/messages/CssBundle.properties b/original-plugin-raw/zh/messages/CssBundle.properties new file mode 100644 index 000000000..c3fcd9653 --- /dev/null +++ b/original-plugin-raw/zh/messages/CssBundle.properties @@ -0,0 +1,471 @@ +filetype.css.description=级联样式表 + +# validation messages +inspections.unresolved.variable=找不到变量 ''{0}'' +invalid.css.class.reference=CSS 类引用无效 +invalid.css.id.reference=CSS ID 引用无效 +invalid.css.integer.value.message=浮点 px 值在不同浏览器上的呈现方式可能不同 +invalid.css.selector=CSS 选择器无效 +invalid.css.class=CSS 类无效 +invalid.file.reference=文件引用无效 +unresolved.css.keyframes=无法找到名称为 {0} 的关键帧 #loc +file.refers.not.to=文件不是指{0}文件 + +create.selector.dialog.title=创建选择器 +create.selector.dialog.error.message=选择器无效 +create.selector.action=创建选择器 + +show.applied.styles.for.tag.action.name=显示应用的标记样式(_S) + +#highlighting categories +css.comment=注释 +css.identifier=标识符 +css.property.name=属性名称 +css.property.value=属性值 +css.tag.name=标签名称 +css.keyword=关键字 +css.important=重要 +css.string=字符串 +css.number=数字 +css.function=函数 +css.property=属性 +css.null.value=Null +css.url=URL +css.color=十六色 +css.id.selector=Id 选择器 +css.class.name=类名 +css.attribute.name=特性名称 +css.unicode.range=Unicode 范围 +css.bad.character=错误字符 +css.dot=点 +css.colon=冒号 +css.comma=逗号 +css.semicolon=分号 +css.parenthesis=括号 +css.brackets=中括号 +css.braces=大括号 +css.operation.sign=运算符号 +css.pseudo.selector=伪选择器 + +css.property.name.label=属性名称 +css.property.value.label=属性值 +css.media.feature.label=媒体特性 +css.pseudo.selector.label=伪选择器 + +#quick documentation +css.element=Css 元素 +pseudo.class=伪类 +pseudo.element=伪元素 +# CSS selector specificity: https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity +doc.popup.selector.specificity=特异性: + +#parameter info +name.value.presentable.name= +custom.property.name.value.presentable.name= +integer.value.presentable.name= +java.script.value.presentable.name= +angle.value.presentable.name= +frequency.value.presentable.name= +position.value.presentable.name= +resolution.value.presentable.name= +length.value.presentable.name= +number.value.presentable.name= +time.value.presentable.name=