final public LdapRdn rdn() throws ParseException { LdapRdnComponent rdnComponent; LdapRdn rdn = new LdapRdn(); rdnComponent = attributeTypeAndValue(); rdn.addComponent(rdnComponent); label_2: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 21: ; break; default: jj_la1[2] = jj_gen; break label_2; } jj_consume_token(21); rdnComponent = attributeTypeAndValue(); rdn.addComponent(rdnComponent); } {if (true) return rdn;} throw new Error("Missing return statement in function"); }
final public LdapRdn rdn() throws ParseException { LdapRdnComponent rdnComponent; LdapRdn rdn = new LdapRdn(); rdnComponent = attributeTypeAndValue(); rdn.addComponent(rdnComponent); label_2: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 21: ; break; default: jj_la1[2] = jj_gen; break label_2; } jj_consume_token(21); rdnComponent = attributeTypeAndValue(); rdn.addComponent(rdnComponent); } {if (true) return rdn;} throw new Error("Missing return statement in function"); }
final public LdapRdn rdn() throws ParseException { LdapRdnComponent rdnComponent; LdapRdn rdn = new LdapRdn(); rdnComponent = attributeTypeAndValue(); rdn.addComponent(rdnComponent); label_2: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 21: ; break; default: jj_la1[2] = jj_gen; break label_2; } jj_consume_token(21); rdnComponent = attributeTypeAndValue(); rdn.addComponent(rdnComponent); } {if (true) return rdn;} throw new Error("Missing return statement in function"); }
@Test(expected = UnsupportedOperationException.class) public void testUnmodifiableDistinguishedNameFailsToModifyRdn() throws Exception { DistinguishedName result = DistinguishedName.immutableDistinguishedName("cn=john doe"); LdapRdn ldapRdn = result.getLdapRdn(0); ldapRdn.addComponent(new LdapRdnComponent("somekey", "somevalue")); }