Skip to content

Commit

Permalink
Refactor GlobalPropertiesNodePath (#34325)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu authored Jan 12, 2025
1 parent 385f478 commit 06c30c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static String getActiveVersionPath() {
* @param path path
* @return true or false
*/
public static boolean issActiveVersionPath(final String path) {
public static boolean isActiveVersionPath(final String path) {
Pattern pattern = Pattern.compile(getActiveVersionPath() + "$", Pattern.CASE_INSENSITIVE);
Matcher matcher = pattern.matcher(path);
return matcher.find();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void assertGetActiveVersionPath() {
}

@Test
void assertIssActiveVersionPath() {
assertTrue(GlobalPropertiesNodePath.issActiveVersionPath("/props/active_version"));
void assertIsActiveVersionPath() {
assertTrue(GlobalPropertiesNodePath.isActiveVersionPath("/props/active_version"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public Collection<Type> getSubscribedTypes() {

@Override
public void handle(final ContextManager contextManager, final DataChangedEvent event) {
if (!GlobalPropertiesNodePath.issActiveVersionPath(event.getKey())) {
if (!GlobalPropertiesNodePath.isActiveVersionPath(event.getKey())) {
return;
}
ActiveVersionChecker.checkActiveVersion(contextManager, event);
Expand Down

0 comments on commit 06c30c8

Please sign in to comment.