| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.distiller; | 5 package org.chromium.distiller; |
| 6 | 6 |
| 7 import org.chromium.distiller.proto.DomDistillerProtos.TimingInfo; | 7 import org.chromium.distiller.proto.DomDistillerProtos.TimingInfo; |
| 8 | 8 |
| 9 import com.google.gwt.dom.client.Element; | 9 import com.google.gwt.dom.client.Element; |
| 10 import com.google.gwt.dom.client.Node; | |
| 11 import com.google.gwt.dom.client.NodeList; | 10 import com.google.gwt.dom.client.NodeList; |
| 12 | 11 |
| 13 import java.util.ArrayList; | 12 import java.util.ArrayList; |
| 14 import java.util.HashMap; | 13 import java.util.HashMap; |
| 15 import java.util.List; | 14 import java.util.List; |
| 16 import java.util.Map; | 15 import java.util.Map; |
| 17 | 16 |
| 18 /** | 17 /** |
| 19 * This class recognizes and parses schema.org markup tags, and returns the prop
erties that matter | 18 * This class recognizes and parses schema.org markup tags, and returns the prop
erties that matter |
| 20 * to distilled content. | 19 * to distilled content. |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 return author; | 490 return author; |
| 492 } | 491 } |
| 493 | 492 |
| 494 private static String concat(String first, String second) { | 493 private static String concat(String first, String second) { |
| 495 String concat = first; | 494 String concat = first; |
| 496 if (!concat.isEmpty() && !second.isEmpty()) concat += " "; | 495 if (!concat.isEmpty() && !second.isEmpty()) concat += " "; |
| 497 concat += second; | 496 concat += second; |
| 498 return concat; | 497 return concat; |
| 499 } | 498 } |
| 500 } | 499 } |
| OLD | NEW |