private void fillPackages(ArrayList<Package> packages){
  if (parentClassLoader != null) {
    parentClassLoader.fillPackages(packages);
  }
synchronized (definedPackages) {
    packages.addAll(definedPackages.values());
  }
}

private void fillPackages ( ArrayList < Package > packages ) { if ( parentClassLoader != null ) { parentClassLoader . fillPackages ( packages ) ; } synchronized ( definedPackages ) { packages . addAll ( definedPackages . values ( ) ) ; } }
helper method for the getpackages ( ) method .
