Not to freak out if an exclusion list is not provided.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@241 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2001-08-12 02:40:44 +00:00
parent c618f44ce6
commit 80b1b10d27
@@ -1,5 +1,5 @@
// //
// $Id: HierarchyVisualizer.java,v 1.9 2001/07/24 21:25:46 mdb Exp $ // $Id: HierarchyVisualizer.java,v 1.10 2001/08/12 02:40:44 mdb Exp $
package com.samskivert.viztool.viz; package com.samskivert.viztool.viz;
@@ -56,10 +56,12 @@ public class HierarchyVisualizer implements Printable
// remove the packages on our exclusion list // remove the packages on our exclusion list
String expkg = System.getProperty("exclude"); String expkg = System.getProperty("exclude");
if (expkg != null) {
StringTokenizer tok = new StringTokenizer(expkg, ":"); StringTokenizer tok = new StringTokenizer(expkg, ":");
while (tok.hasMoreTokens()) { while (tok.hasMoreTokens()) {
pkgset.remove(tok.nextToken()); pkgset.remove(tok.nextToken());
} }
}
// sort our package names // sort our package names
_packages = new String[pkgset.size()]; _packages = new String[pkgset.size()];