Skip to content

Commit 00b1d20

Browse files
committed
fix: remove undefined isHTML5 field from the JSON report
See #1515
1 parent 65828c2 commit 00b1d20

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

src/main/java/com/adobe/epubcheck/reporting/ItemMetadata.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import com.adobe.epubcheck.util.FeatureEnum;
1010

11-
@SuppressWarnings("FieldCanBeLocal")
1211
public class ItemMetadata implements Comparable<ItemMetadata>
1312
{
1413
@JsonProperty
@@ -34,8 +33,6 @@ public class ItemMetadata implements Comparable<ItemMetadata>
3433
@JsonProperty
3534
private Integer navigationOrder = null;
3635
@JsonProperty
37-
private boolean isHTML5;
38-
@JsonProperty
3936
private Boolean isFixedFormat = null;
4037
@JsonProperty
4138
private boolean isScripted;
@@ -51,7 +48,6 @@ public class ItemMetadata implements Comparable<ItemMetadata>
5148
private String renditionOrientation;
5249
@JsonProperty
5350
private String renditionSpread;
54-
@SuppressWarnings("MismatchedQueryAndUpdateOfCollection")
5551
@JsonProperty
5652
private final SortedSet<String> referencedItems = new TreeSet<String>();
5753

@@ -171,9 +167,6 @@ public void handleInfo(FeatureEnum feature, String value)
171167
case SPINE_INDEX:
172168
this.spineIndex = Integer.parseInt(value.trim());
173169
break;
174-
case HAS_HTML5:
175-
this.isHTML5 = true;
176-
break;
177170
case SCRIPT:
178171
if (value.equals("inline"))
179172
{

src/main/java/com/adobe/epubcheck/reporting/PublicationMetadata.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
/**
1212
* This is information about the publication in general. It is intended to be serialized into json.
1313
*/
14-
@SuppressWarnings({"FieldCanBeLocal", "MismatchedQueryAndUpdateOfCollection"})
1514
class PublicationMetadata
1615
{
1716
@JsonProperty
@@ -131,12 +130,6 @@ public void handleInfo(String resource, FeatureEnum feature, String value)
131130
this.hasFixedFormat = true;
132131
this.isBackwardCompatible = false;
133132
break;
134-
case HAS_HTML5:
135-
if (resource == null)
136-
{
137-
this.isBackwardCompatible = false;
138-
}
139-
break;
140133
case IS_SPINEITEM:
141134
this.nSpines++;
142135
break;

src/main/java/com/adobe/epubcheck/util/FeatureEnum.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ public enum FeatureEnum
4949
FORMAT_VERSION("format version"),
5050
HAS_ENCRYPTION("hasEncryption"),
5151
HAS_FIXED_LAYOUT("hasFixedLayout"),
52-
HAS_HTML4("html 4"),
53-
HAS_HTML5("html 5"),
5452
HAS_MICRODATA("microdata"),
5553
HAS_NCX("Has ncx file"),
5654
HAS_RDFA("RDFa"),

0 commit comments

Comments
 (0)