Updated comments to clarify recent changes in code

This commit is contained in:
Sam Harwell 2014-06-18 19:12:26 -05:00
parent 7b88a6dbeb
commit 6949e832d9
2 changed files with 8 additions and 0 deletions

View File

@ -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>,

View File

@ -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;
}