#24 Duplicate Code in Generators

open
nobody
5
2003-06-11
2003-06-11
Steve Q.
No

I downloaded 0.4 and noticed that the CppOutputDir and
JavaOutputDir methods weren't working (I see they've
since been fixed in CVS).

When I went to fix my copy of 0.4, I had to edit about 6
files, as the logic for creating the output directory is
duplicated across all of the peer and proxy generator
classes.

I suggest extracting a Generator superclass and pulling
this common code up. Since you're already using JUnit,
you could write some tests for these (if you don't have
them already)

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks