Question

What does "lint" in the flag -Xlint=unchecked for javac stand for? Since it deals with generic types, one would expect something like -Xgenerics=unchecked or so!

Était-ce utile?

La solution 2

It derives from a C language optional compiling tool with the purpose of detecting 'suspicious' behaviors in your code. It has become a standard way to refer to this kind of static code analysis

Autres conseils

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. 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" refers to the process of analyzing source code to locate common programming mistakes, unsafe coding practices, or the like. Options that begin with -Xlint change the way javac lints.

Lint is the name of the command, see http://en.wikipedia.org/wiki/Lint_(software)

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top