Commit 0529a9ad570faf772263877568dcd7c0914794d4
1 parent
960945e2
Exists in
master
and in
1 other branch
Identação.
Showing
1 changed file
with
4 additions
and
25 deletions
Show diff stats
src/main/java/br/com/checker/emag/core/MarkEvaluation.java
@@ -928,39 +928,19 @@ public class MarkEvaluation extends Evaluation { | @@ -928,39 +928,19 @@ public class MarkEvaluation extends Evaluation { | ||
928 | Element footer = getDocument().getFirstElement("footer"); | 928 | Element footer = getDocument().getFirstElement("footer"); |
929 | 929 | ||
930 | if (header == null) | 930 | if (header == null) |
931 | - occurrences | ||
932 | - .add(this | ||
933 | - .buildOccurrence( | ||
934 | - "1.8", | ||
935 | - false, | ||
936 | - "Observação - Sem fonte (Não existe tag <HEADER>)", | 931 | + occurrences.add(this.buildOccurrence("1.8",false,"Observação - Sem fonte (Não existe tag <HEADER>)", |
937 | getDocument().getFirstElement(), "3"));//"1")); | 932 | getDocument().getFirstElement(), "3"));//"1")); |
938 | 933 | ||
939 | if (nav == null) | 934 | if (nav == null) |
940 | - occurrences | ||
941 | - .add(this | ||
942 | - .buildOccurrence( | ||
943 | - "1.8", | ||
944 | - false, | ||
945 | - "Observação - Sem fonte (Não existe tag <NAV>)", | 935 | + occurrences.add(this.buildOccurrence("1.8",false,"Observação - Sem fonte (Não existe tag <NAV>)", |
946 | getDocument().getFirstElement(), "3"));//"1")); | 936 | getDocument().getFirstElement(), "3"));//"1")); |
947 | 937 | ||
948 | if (section == null) | 938 | if (section == null) |
949 | - occurrences | ||
950 | - .add(this | ||
951 | - .buildOccurrence( | ||
952 | - "1.8", | ||
953 | - false, | ||
954 | - "Observação - Sem fonte (Não existe tag <SECTION>)", | 939 | + occurrences.add(this.buildOccurrence("1.8",false,"Observação - Sem fonte (Não existe tag <SECTION>)", |
955 | getDocument().getFirstElement(), "3"));//"1")); | 940 | getDocument().getFirstElement(), "3"));//"1")); |
956 | 941 | ||
957 | if (footer == null) | 942 | if (footer == null) |
958 | - occurrences | ||
959 | - .add(this | ||
960 | - .buildOccurrence( | ||
961 | - "1.8", | ||
962 | - false, | ||
963 | - "Observação - Sem fonte (Não existe tag <FOOTER>)", | 943 | + occurrences.add(this.buildOccurrence("1.8",false,"Observação - Sem fonte (Não existe tag <FOOTER>)", |
964 | getDocument().getFirstElement(), "3"));//"1")); | 944 | getDocument().getFirstElement(), "3"));//"1")); |
965 | 945 | ||
966 | } else { | 946 | } else { |
@@ -1063,7 +1043,6 @@ public class MarkEvaluation extends Evaluation { | @@ -1063,7 +1043,6 @@ public class MarkEvaluation extends Evaluation { | ||
1063 | if (isCss) { | 1043 | if (isCss) { |
1064 | String content = WebAgent.from(CSS_VALIDATOR_URL.replace("#{url}", url)).withGetRequest().execute().getContent(); | 1044 | String content = WebAgent.from(CSS_VALIDATOR_URL.replace("#{url}", url)).withGetRequest().execute().getContent(); |
1065 | 1045 | ||
1066 | - | ||
1067 | Matcher m = Pattern.compile("<m:errorcount>(\\d)*</m:errorcount>",Pattern.MULTILINE).matcher(content); | 1046 | Matcher m = Pattern.compile("<m:errorcount>(\\d)*</m:errorcount>",Pattern.MULTILINE).matcher(content); |
1068 | if (m.find()) | 1047 | if (m.find()) |
1069 | errors = Integer.valueOf(m.group(0).replace("<m:errorcount>", "").replace("</m:errorcount>", "")); | 1048 | errors = Integer.valueOf(m.group(0).replace("<m:errorcount>", "").replace("</m:errorcount>", "")); |