private void resetPackageList ( ) { final Set < PackageDoc > set = new TreeSet <> ( ) ; for ( final PackageDoc pack : this . root . specifiedPackages ( ) ) { set . add ( pack ) ; } for ( final ClassDoc clazz : this . root . specifiedClasses ( ) ) { set . add ( clazz . containingPackage ( ) ) ; } this . packages = Utils . toArray ( this . packages , set ) ; }
Reset the list of packages for avoiding duplicates .