public final class UnsupportedJdkVersionRule extends java.lang.Object implements IRule
This rule will need to be maintained to offer the best suggestions, but even if not maintained, it will still detect decidedly bad versions to use.
Note that this rule will not help ensure that the latest update releases for an LTS is in use, as this would require a more rapid update cycle than can be expected from the core rules project.
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
LAST_UPDATE
The time the rule was last updated.
|
private static JavaVersion |
LATEST_LTS
This is the latest LTS-(major) version known by the rule.
|
private static JavaVersion |
LATEST_NON_LTS
This is the latest non-LTS (major version) known by the rule.
|
private static JavaVersion |
LATEST_RECOMMENDED_LTS
This is the newest update of the newest released still supported LTS we feel
comfortable pointing to.
|
private static int[] |
LTS_VERSIONS
These are the known "LTS" releases which still have support.
|
private static JavaVersion |
OLDEST_LTS
This is the oldest LTS-(major) version we'd like for people to use.
|
private static JavaVersion |
OLDEST_RECOMMENDED_LTS
This is the newest update of the oldest released still supported LTS we feel
comfortable pointing to.
|
private static java.lang.String |
UNSUPPORTED_JDK_VERSION_ID |
Constructor and Description |
---|
UnsupportedJdkVersionRule() |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.RunnableFuture<Result> |
evaluate(IItemCollection items,
IPreferenceValueProvider valueProvider)
Gets a future representing the result of the evaluation of this rule.
|
java.util.Collection<TypedPreference<?>> |
getConfigurationAttributes()
Gets information about which attributes may be configured during rule evaluation.
|
java.lang.String |
getId() |
java.lang.String |
getName() |
private Result |
getResult(IItemCollection items,
IPreferenceValueProvider valueProvider) |
private static java.lang.String |
getStr(java.lang.String key) |
java.lang.String |
getTopic() |
private static boolean |
isLTSVersion(JavaVersion version) |
private static final java.lang.String UNSUPPORTED_JDK_VERSION_ID
private static final java.lang.String LAST_UPDATE
private static final JavaVersion OLDEST_RECOMMENDED_LTS
private static final JavaVersion LATEST_RECOMMENDED_LTS
private static final JavaVersion OLDEST_LTS
private static final JavaVersion LATEST_LTS
private static final JavaVersion LATEST_NON_LTS
private static final int[] LTS_VERSIONS
private Result getResult(IItemCollection items, IPreferenceValueProvider valueProvider)
public java.util.concurrent.RunnableFuture<Result> evaluate(IItemCollection items, IPreferenceValueProvider valueProvider)
IRule
evaluate
in interface IRule
items
- items to evaluatevalueProvider
- Provider of configuration values used for evaluation. The attributes that will be
asked for from the provider should be provided by
IRule.getConfigurationAttributes()
.public java.util.Collection<TypedPreference<?>> getConfigurationAttributes()
IRule
getConfigurationAttributes
in interface IRule
public java.lang.String getId()
public java.lang.String getName()
public java.lang.String getTopic()
private static java.lang.String getStr(java.lang.String key)
private static boolean isLTSVersion(JavaVersion version)