Просмотр исходного кода

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

kindlich 6 лет назад
Родитель
Сommit
ab219cfc98
Не найден GPG ключ соответствующий данной подписи
1 измененных файлов: 4 добавлений и 2 удалений
  1. 4
    2
      JavaIntegration/src/main/java/org/openzen/zencode/java/JavaNativeModule.java

+ 4
- 2
JavaIntegration/src/main/java/org/openzen/zencode/java/JavaNativeModule.java Просмотреть файл

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);

Загрузка…
Отмена
Сохранить