< prev index next >

src/jdk.naming.dns/share/classes/com/sun/jndi/dns/ZoneNode.java

Print this page
rev 52881 : 8214971: Replace use of string.equals("") with isEmpty()
Reviewed-by: jlaskey, prappo, lancea, dfuchs, redestad

@@ -122,11 +122,11 @@
     /*
      * Populates (or repopulates) a zone given its own fully-qualified
      * name and its resource records.  Returns the zone's new contents.
      */
     NameNode populate(DnsName zone, ResourceRecords rrs) {
-        // assert zone.get(0).equals("");               // zone has root label
+        // assert zone.get(0).isEmpty();               // zone has root label
         // assert (zone.size() == (depth() + 1));       // +1 due to root label
 
         NameNode newContents = new NameNode(null);
 
         for (int i = 0; i < rrs.answer.size(); i++) {
< prev index next >