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

Jean-Noël Rouvignac
21.55.2016 f2da7665651bbf38bc7108460df26b960a04f5cd
Resource.java: in toLS(), commented code that cannot work today
1 files modified
7 ■■■■■ changed files
opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Resource.java 7 ●●●●● patch | view | raw | blame | history
opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Resource.java
@@ -603,9 +603,10 @@
    private LocalizableString toLS(LocalizableMessage msg) {
        if (msg != null) {
            if (msg.resourceName() != null) {
                return new LocalizableString("i18n:" + msg.resourceName() + "#" /* TODO + msg.getKey() */);
            }
            // FIXME this code does cannot work today because LocalizableMessage.getKey() does not exist
            //if (msg.resourceName() != null) {
            //    return new LocalizableString("i18n:" + msg.resourceName() + "#" + msg.getKey());
            //}
            return new LocalizableString(msg.toString());
        }
        return null;