Skip to content
Snippets Groups Projects
Commit 734c7a8b authored by gakin's avatar gakin
Browse files

SSDM-4584: OpenbisSync: Name Translation minor fix

SVN: 37987
parent 415fa744
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,6 @@ import ch.systemsx.cisd.common.exceptions.ConfigurationFailureException;
*/
public class CustomNameTranslator implements INameTranslator
{
private final HashMap<String, String> spaceMappings;
public CustomNameTranslator(HashMap<String, String> spaceMappings)
......
......@@ -16,6 +16,8 @@
package ch.ethz.sis.openbis.generic.server.dss.plugins.sync.harvester.synchronizer.translator;
import org.apache.commons.lang3.StringUtils;
/**
*
*
......@@ -33,6 +35,7 @@ public class PrefixBasedNameTranslator implements INameTranslator
@Override
public String translate(String name)
{
assert StringUtils.isBlank(name) == false : "Prefix translation can only be done for non-null values";
return prefix + "_" + name;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment