Commit 23ce5c96 by Suma Shivaprasad

ATLAS-236 DefaultMetaDataService.createType() calls validateTypeDefinition()…

ATLAS-236 DefaultMetaDataService.createType() calls validateTypeDefinition() twice in consecutive lines(jspeidel via sumasai)
parent b37c030d
...@@ -163,8 +163,6 @@ public class DefaultMetadataService implements MetadataService { ...@@ -163,8 +163,6 @@ public class DefaultMetadataService implements MetadataService {
@Override @Override
public JSONObject createType(String typeDefinition) throws AtlasException { public JSONObject createType(String typeDefinition) throws AtlasException {
ParamChecker.notEmpty(typeDefinition, "type definition cannot be empty"); ParamChecker.notEmpty(typeDefinition, "type definition cannot be empty");
validateTypeDefinition(typeDefinition);
TypesDef typesDef = validateTypeDefinition(typeDefinition); TypesDef typesDef = validateTypeDefinition(typeDefinition);
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment