Browse files

Add comment

  • Loading branch information...
LadyCailin committed Oct 11, 2018
1 parent 856ba9f commit 51eb6e103faf8b3104b9037006975b1288fb6639
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/main/java/com/laytonsmith/core/constructs/
@@ -31,6 +31,11 @@ public static String resolveType(String simpleName) {
// This list should only extremely rarely change
// This mechanism won't work long term. It works for now, because it just so happens that no
// simple class names are repeated across the code. But if there were two classes A in different
// namespaces, then it would only find the first one, rather than causing an error, which is
// the correct behavior when it's ambiguous. This is the same thing for user classes as well,
// once those are added.
Set<String> defaultPackages = new HashSet<>(Arrays.asList("", "ms::lang::", "com::commandhelper::"));
for(String pack : defaultPackages) {
for(String type : nativeTypes) {

0 comments on commit 51eb6e1

Please sign in to comment.