forked from jasder/antlr
Updated comments to clarify recent changes in code
This commit is contained in:
parent
7b88a6dbeb
commit
6949e832d9
|
@ -164,6 +164,12 @@ public class RuntimeMetaData {
|
|||
* <em>minor</em> version components.
|
||||
*
|
||||
* <p>
|
||||
* For example, version strings x.y and x.y.z are considered "compatible",
|
||||
* and this listener will not throw an exception. Likewise, version strings
|
||||
* x.y-SNAPSHOT and x.y.z are considered "compatible" because the major and
|
||||
* minor components x.y are the same in each.</p>
|
||||
*
|
||||
* <p>
|
||||
* For the purposes of this listener, version numbers are assumed to have
|
||||
* the form
|
||||
* <em>major</em>.<em>minor</em>.<em>patch</em>.<em>revision</em>-<em>suffix</em>,
|
||||
|
|
|
@ -90,6 +90,8 @@ import java.util.concurrent.CopyOnWriteArrayList;
|
|||
public class Tool {
|
||||
public static final String VERSION;
|
||||
static {
|
||||
// Assigned in a static{} block to prevent the field from becoming a
|
||||
// compile-time constant
|
||||
VERSION = RuntimeMetaData.VERSION;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue