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

Loading…
Cancel
Save