1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

only make up imports if they aren't already set

This commit is contained in:
Kevin Glynn 2011-01-10 11:19:51 +01:00
parent 389867add2
commit 4b9e99124c

View File

@ -163,7 +163,7 @@ namespace RusticiSoftware.Translator.CLR
get {
// if _java is not set then see if we have default imports, otherwise
// assume imports is already correctly (un)set
if (_java == null) {
if (_imports == null && _java == null) {
return mkImports();
}
return _imports;