diff options
author | aclement <aclement> | 2006-04-04 08:08:56 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-04-04 08:08:56 +0000 |
commit | 6d3281e951ddc653702663ab75bc602c239ba5ba (patch) | |
tree | 5eb432af6a7f42803ec14e473f98ff9c79ca457e | |
parent | 864b70d3a3e6f32d874acddaff17f21694d2b08f (diff) | |
download | aspectj-6d3281e951ddc653702663ab75bc602c239ba5ba.tar.gz aspectj-6d3281e951ddc653702663ab75bc602c239ba5ba.zip |
better if no aliases consistently means null rather null before serialization and an empty arraylist after deserialization
-rw-r--r-- | weaver/src/org/aspectj/weaver/ResolvedTypeMunger.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/weaver/src/org/aspectj/weaver/ResolvedTypeMunger.java b/weaver/src/org/aspectj/weaver/ResolvedTypeMunger.java index f3d3c428a..169c6e3f7 100644 --- a/weaver/src/org/aspectj/weaver/ResolvedTypeMunger.java +++ b/weaver/src/org/aspectj/weaver/ResolvedTypeMunger.java @@ -316,11 +316,13 @@ public abstract class ResolvedTypeMunger { protected static List readInTypeAliases(VersionedDataInputStream s) throws IOException { if (s.getMajorVersion()>=AjAttribute.WeaverVersionInfo.WEAVER_VERSION_MAJOR_AJ150) { int count = s.readInt(); - List aliases = new ArrayList(); - for (int i=0;i<count;i++) { - aliases.add(s.readUTF()); + if (count!=0) { + List aliases = new ArrayList(); + for (int i=0;i<count;i++) { + aliases.add(s.readUTF()); + } + return aliases; } - return aliases; } return null; } |