switch on string instead of many if-else with String comparison

example from BridgeNetworkStatusImpl (there are many more and longer ones):

  switch(keyword){
      case "published":
        this.parsePublishedLine(line, parts);
      case "flag-thresholds":
        this.parseFlagThresholdsLine(line, parts);
   } 
   if (this.failUnrecognizedDescriptorLines) {
      throw new DescriptorParseException("Unrecognized line '" + line
            + "' in bridge network status.");
   } else {
      if (this.unrecognizedLines == null) {
         this.unrecognizedLines = new ArrayList<String>();
     }
...

instead of

  if (keyword.equals("published")) {
        this.parsePublishedLine(line, parts);
      } else if (keyword.equals("flag-thresholds")) {
        this.parseFlagThresholdsLine(line, parts);
      } else if (this.failUnrecognizedDescriptorLines) {
        throw new DescriptorParseException("Unrecognized line '" + line
            + "' in bridge network status.");
      } else {
        if (this.unrecognizedLines == null) {
          this.unrecognizedLines = new ArrayList<String>();
        }