Browse Source

Merge remote-tracking branch 'jared/development' into genericParams

kindlich 4 years ago
parent
commit
ab219cfc98
No known key found for this signature in database

+ 4
- 2
JavaIntegration/src/main/java/org/openzen/zencode/java/JavaNativeModule.java View File

@@ -306,8 +306,9 @@ public class JavaNativeModule {
306 306
 
307 307
 		//TypeVariableContext context = new TypeVariableContext();
308 308
 		TypeVariable<Class<T>>[] javaTypeParameters = cls.getTypeParameters();
309
-        TypeParameter[] typeParameters = new TypeParameter[cls.getTypeParameters().length];
309
+		TypeParameter[] typeParameters = new TypeParameter[cls.getTypeParameters().length];
310 310
 		definition.typeParameters = typeParameters;
311
+
311 312
 		for (int i = 0; i < javaTypeParameters.length; i++) {
312 313
 			//Put up here for nested parameters?
313 314
 			TypeVariable<Class<T>> typeVariable = javaTypeParameters[i];
@@ -323,7 +324,7 @@ public class JavaNativeModule {
323 324
 				TypeID type = loadType(context, bound).type;
324 325
 				parameter.addBound(new ParameterTypeBound(CodePosition.NATIVE, type));
325 326
 			}
326
-            typeParameters[i] = parameter;
327
+			typeParameters[i] = parameter;
327 328
 		}
328 329
 
329 330
 		if (!foundRegistry && definition instanceof ClassDefinition && cls.getAnnotatedSuperclass() != null && shouldLoadType(cls.getAnnotatedSuperclass().getType())) {
@@ -342,6 +343,7 @@ public class JavaNativeModule {
342 343
 				compiled.setImplementationInfo(member, new JavaImplementation(true, javaClass));
343 344
 			}
344 345
 		}
346
+
345 347
 		compiled.setClassInfo(definition, javaClass);
346 348
 
347 349
 		StoredType thisType = new StoredType(registry.getForMyDefinition(definition), AutoStorageTag.INSTANCE);

Loading…
Cancel
Save