To use annotations, e.g. @Nullable or @NotNull inside IntelliJ, I
added F:\Program Files (x86)\JetBrains\IntelliJ IDEA
10.5\redist\annotations.jar" as an annotation library.
I turned on external annotations in code generation, but still I get
"package org.jetbrains.annotations does not exist"
The code analyser generated the code of the form:
public static String buildImgTag( String imageRelativeFilename,
@org.jetbrains.annotations.Nullable ImageAlignment align,
@org.jetbrains.annotations.Nullable String cssClassForImage,
File fileBeingProcessed )
What's the trick? Further, when I later decide to distribute source,
what do you have to do to use the annotations without IntelliJ?
Roedy Green Canadian Mind Products
One of the great annoyances in programming derives from the irregularity
of English spelling especially when you have international teams.
I want to find a method or variable, but I don't know precisely
how its is spelled or worded. English is only approximately phonetic.
Letters are randomly doubled. The dictionary often lists variant spellings.
British, Canadian and American spellings differ.I would like to see an
experiment where variable names were spelled in a simplified English, where
there were no double letters.I also think you could add a number of rules
about composing variable names so that a variable name for something would
be highly predictable. You would also need automated enforcement of the
rules as well as possible.