Skip to content

Commit 7805bd1

Browse files
committed
Rename to SKIP_VERSION_CHECK_PROPERTY
1 parent 7cee621 commit 7805bd1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

core/src/main/java/software/amazon/smithy/java/core/VersionCheck.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*/
3131
public 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
}

0 commit comments

Comments
 (0)