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

vharseko
09.00.2018 4ec8f662008db54392753c689dbd2f813b351b02
remove String to Object conversion
2 files modified
8 ■■■■ changed files
opendj-dsml-servlet/src/main/java/org/opends/dsml/protocol/DSMLAddOperation.java 2 ●●● patch | view | raw | blame | history
opendj-dsml-servlet/src/main/java/org/opends/dsml/protocol/DSMLSearchOperation.java 6 ●●●● patch | view | raw | blame | history
opendj-dsml-servlet/src/main/java/org/opends/dsml/protocol/DSMLAddOperation.java
@@ -87,7 +87,7 @@
    for(DsmlAttr attr : addList)
    {
      ArrayList<ByteString> values = new ArrayList<>();
      List<Object> vals = attr.getValue();
      List<String> vals = attr.getValue();
      for(Object val : vals)
      {
        values.add(ByteStringUtility.convertValue(val));
opendj-dsml-servlet/src/main/java/org/opends/dsml/protocol/DSMLSearchOperation.java
@@ -277,7 +277,7 @@
  private static LDAPFilter createSubstringFilter(SubstringFilter sf)
        throws LDAPException, IOException
  {
    List<Object> anyo = sf.getAny();
    List<String> anyo = sf.getAny();
    ArrayList<ByteString> subAnyElements = new ArrayList<>(anyo.size());
    for (Object o : anyo)
@@ -555,11 +555,11 @@
            DsmlAttr dsmlAttr = objFactory.createDsmlAttr();
            dsmlAttr.setName(nm);
            List<Object> dsmlAttrVal = dsmlAttr.getValue();
            List<String> dsmlAttrVal = dsmlAttr.getValue();
            List<ByteString> vals = attr.getValues();
            for (ByteString val : vals)
            {
              dsmlAttrVal.add(ByteStringUtility.convertByteString(val));
              dsmlAttrVal.add(ByteStringUtility.convertByteString(val).toString());
            }
            attrList.add(dsmlAttr);
          }