From 26d3a89fd91864ab24e27ae1e244cdd62c16247c Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Wed, 16 Jul 2014 16:50:21 +0200 Subject: [PATCH] Fixed insert Type --- src/typinferenz/typedeployment/TypeInsertSet.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/typinferenz/typedeployment/TypeInsertSet.java b/src/typinferenz/typedeployment/TypeInsertSet.java index 5ce2fd26e..def143267 100644 --- a/src/typinferenz/typedeployment/TypeInsertSet.java +++ b/src/typinferenz/typedeployment/TypeInsertSet.java @@ -66,17 +66,8 @@ public class TypeInsertSet { */ public String insertType(TypeInsertPoint tip, String fileContent){ TypePatchJob tpj = new TypePatchJob(); - /* - int additionalOffset = 0; - String ret = fileContent; - JavaCodeResult unresolvedTPHs = tip.patch(ret, additionalOffset); - for(TypePlaceholder tph : unresolvedTPHs.getUnresolvedTPH()){ - GenericTypeInsertPoint genericTIP = new GenericTypeInsertPoint(tip.getGenericTypeVarInsertNode(),tph,tip.getResultSet()); - tpj.add(genericTIP); - } - */ - tpj.add(tip); + this.insertType(tip, tpj); return tpj.run(fileContent); }