@@ -41,10 +41,10 @@ public Builder from(ExtendedExpression extendedExpression) {
41
41
private Builder from (
42
42
List <SimpleExtensionURN > simpleExtensionURNs ,
43
43
List <SimpleExtensionDeclaration > simpleExtensionDeclarations ) {
44
- Map <Integer , String > namespaceMap = new HashMap <>();
44
+ Map <Integer , String > urnMap = new HashMap <>();
45
45
// Handle URN format
46
46
for (SimpleExtensionURN extension : simpleExtensionURNs ) {
47
- namespaceMap .put (extension .getExtensionUrnAnchor (), extension .getUrn ());
47
+ urnMap .put (extension .getExtensionUrnAnchor (), extension .getUrn ());
48
48
}
49
49
50
50
// Add all functions used in plan to the functionMap
@@ -54,14 +54,14 @@ private Builder from(
54
54
}
55
55
SimpleExtensionDeclaration .ExtensionFunction func = extension .getExtensionFunction ();
56
56
int reference = func .getFunctionAnchor ();
57
- String namespace = namespaceMap .get (func .getExtensionUrnReference ());
58
- if (namespace == null ) {
57
+ String urn = urnMap .get (func .getExtensionUrnReference ());
58
+ if (urn == null ) {
59
59
throw new IllegalStateException (
60
60
"Could not find extension URN for function reference "
61
61
+ func .getExtensionUrnReference ());
62
62
}
63
63
String name = func .getName ();
64
- SimpleExtension .FunctionAnchor anchor = SimpleExtension .FunctionAnchor .of (namespace , name );
64
+ SimpleExtension .FunctionAnchor anchor = SimpleExtension .FunctionAnchor .of (urn , name );
65
65
functionMap .put (reference , anchor );
66
66
}
67
67
@@ -72,13 +72,13 @@ private Builder from(
72
72
}
73
73
SimpleExtensionDeclaration .ExtensionType type = extension .getExtensionType ();
74
74
int reference = type .getTypeAnchor ();
75
- String namespace = namespaceMap .get (type .getExtensionUrnReference ());
76
- if (namespace == null ) {
75
+ String urn = urnMap .get (type .getExtensionUrnReference ());
76
+ if (urn == null ) {
77
77
throw new IllegalStateException (
78
78
"Could not find extension URN for type reference " + type .getExtensionUrnReference ());
79
79
}
80
80
String name = type .getName ();
81
- SimpleExtension .TypeAnchor anchor = SimpleExtension .TypeAnchor .of (namespace , name );
81
+ SimpleExtension .TypeAnchor anchor = SimpleExtension .TypeAnchor .of (urn , name );
82
82
typeMap .put (reference , anchor );
83
83
}
84
84
0 commit comments