langtools/src/share/classes/com/sun/tools/sjavac/comp/Dependencies.java
changeset 16301 b6fd735ea78e
parent 15368 2577ddb7e710
child 16560 c6c7f0c26568
equal deleted inserted replaced
16300:7cf27559c8df 16301:b6fd735ea78e
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   111     class CompareNames implements Comparator<Name> {
   111     class CompareNames implements Comparator<Name> {
   112          public int compare(Name a, Name b) {
   112          public int compare(Name a, Name b) {
   113              return a.toString().compareTo(b.toString());
   113              return a.toString().compareTo(b.toString());
   114          }
   114          }
   115 
   115 
   116          public boolean equals(Object obj) {
       
   117              return super.equals(obj);
       
   118          }
       
   119     }
   116     }
   120 
   117 
   121     /**
   118     /**
   122      * Convert the map from class names to their pubapi to a map
   119      * Convert the map from class names to their pubapi to a map
   123      * from package names to their pubapi (which is the sorted concatenation
   120      * from package names to their pubapi (which is the sorted concatenation