mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Valery Kharseko
29.35.2025 1c58ea3b85dffb75c72798ae2e49160b05c0debc
Fix comments
2 files modified
12 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/extensions/StaticGroup.java 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/extensions/TestUtils.java 10 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/extensions/StaticGroup.java
@@ -86,7 +86,7 @@
 */
public class StaticGroup extends Group<StaticGroupImplementationCfg>
{
  // Геттеры для тестов
  // Getters for tests
  HashSet<CompactDn> getMemberDNs() { return memberDNs; }
  LinkedList<DN> getNestedGroups() { return nestedGroups; }
  DN getGroupEntryDN() { return groupEntryDN; }
opendj-server-legacy/src/test/java/org/opends/server/extensions/TestUtils.java
@@ -13,12 +13,12 @@
    public static final DN LEVEL2_DN = DN.valueOf("cn=Level2,ou=Groups,dc=com,dc=example");
    public static StaticGroup createNestedTestGroup() {
        // Минимальная реализация для теста
        // Minimal implementation for test
        StaticGroup group = new StaticGroup();
    group.getMemberDNs().clear();
    group.getNestedGroups().clear();
    // Устанавливаем значения через рефлексию, если нужно, либо через конструктор/методы
    // Для теста достаточно очистить коллекции и использовать LEVEL2_DN
        group.getMemberDNs().clear();
        group.getNestedGroups().clear();
        // Set values via reflection if needed, or via constructor/methods
        // For the test, it's enough to clear collections and use LEVEL2_DN
        return group;
    }