File tree Expand file tree Collapse file tree
core/src/main/java/software/amazon/smithy/java/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 */
3131public final class VersionCheck {
3232 private static final InternalLogger LOGGER = InternalLogger .getLogger (VersionCheck .class );
33- private static final String SKIP_PROPERTY = "smithy.java.skipVersionCheck" ;
33+ private static final String SKIP_VERSION_CHECK_PROPERTY = "smithy.java.skipVersionCheck" ;
3434 private static final AtomicBoolean CHECKED = new AtomicBoolean (false );
3535
3636 private VersionCheck () {}
@@ -47,11 +47,11 @@ public static void check(ModuleVersion codegenVersion) {
4747 if (CHECKED .get ()) {
4848 return ;
4949 }
50- if (Boolean .getBoolean (SKIP_PROPERTY )) {
50+ if (Boolean .getBoolean (SKIP_VERSION_CHECK_PROPERTY )) {
5151 LOGGER .warn ("Smithy Java version compatibility check is disabled via '{}'. "
5252 + "This is not recommended and should only be used as a temporary workaround. "
5353 + "Running with mismatched module versions may cause unexpected runtime errors." ,
54- SKIP_PROPERTY );
54+ SKIP_VERSION_CHECK_PROPERTY );
5555 CHECKED .set (true );
5656 return ;
5757 }
@@ -120,4 +120,5 @@ public static void check(ModuleVersion codegenVersion) {
120120 static void reset () {
121121 CHECKED .set (false );
122122 }
123+
123124}
You can’t perform that action at this time.
0 commit comments