X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fxmlrouter%2Fimpl%2FTransformationPaths.java;fp=impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fxmlrouter%2Fimpl%2FTransformationPaths.java;h=caca48cfd7150185b97d6fe4d49174cc98c61ce2;hb=13b475f8216ad5d74d64df4122ea6812554f7a14;hp=7a86c87d8f41e135bb9f659da4d1155222e2676b;hpb=f70baadfd579f4d3aa2e8c9ee7d758fb37d7872f;p=xmlrouter diff --git a/impl/src/main/java/org/wamblee/xmlrouter/impl/TransformationPaths.java b/impl/src/main/java/org/wamblee/xmlrouter/impl/TransformationPaths.java index 7a86c87..caca48c 100644 --- a/impl/src/main/java/org/wamblee/xmlrouter/impl/TransformationPaths.java +++ b/impl/src/main/java/org/wamblee/xmlrouter/impl/TransformationPaths.java @@ -18,7 +18,6 @@ package org.wamblee.xmlrouter.impl; import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; -import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; @@ -44,15 +43,11 @@ public class TransformationPaths { /** * Construct the transformations. */ - public TransformationPaths() { - transformations = new LinkedHashMap, Transformation>(); - vertices = new ArrayList(); - matrix = new TransformationPath[0][0]; - } - - public void replaceTransformations( + public TransformationPaths( Map, Transformation> aTransformations) { transformations = aTransformations; + vertices = new ArrayList(); + matrix = new TransformationPath[0][0]; computeTransformationSequences(); }