简体   繁体   English

命令-Xlint = unchecked中“lint”的含义是什么?

[英]What is the meaning of “lint” in the command -Xlint=unchecked?

What does " lint " in the flag -Xlint=unchecked for javac stand for? 标志-Xlint=unchecked中的“ lint ”代表javac代表什么? Since it deals with generic types, one would expect something like -Xgenerics=unchecked or so! 由于它处理泛型类型,人们会期望-Xgenerics=unchecked等等!

It's a tip-o-the-hat to the programming history : 这是编程历史的一小部分

In computer programming, lint was the name originally given to a particular program that flagged some suspicious and non-portable constructs (likely to be bugs) in C language source code. 在计算机编程中, lint是最初赋予特定程序的名称,该程序在C语言源代码中标记了一些可疑和不可移植的构造(可能是错误)。 The term is now applied generically to tools that flag suspicious usage in software written in any computer language. 该术语现在通常应用于标记以任何计算机语言编写的软件中的可疑用法的工具。

Lint first appeared (outside of Bell Labs) in the seventh version (V7) of the Unix operating system in 1979. Lint于1979年在Unix操作系统的第七版(V7)中首次出现(在贝尔实验室之外)。

It derives from a C language optional compiling tool with the purpose of detecting 'suspicious' behaviors in your code. 它源自C语言可选编译工具,目的是检测代码中的“可疑”行为。 It has become a standard way to refer to this kind of static code analysis 它已成为参考这种静态代码分析的标准方法

" Lint " refers to the process of analyzing source code to locate common programming mistakes, unsafe coding practices, or the like. Lint ”指的是分析源代码以定位常见编程错误,不安全编码实践等的过程。 Options that begin with -Xlint change the way javac lints. -Xlint开头的选项会改变javac lints的方式。

Lint是命令的名称,请参阅http://en.wikipedia.org/wiki/Lint_(software)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM