src/java.xml/share/classes/com/sun/org/apache/xerces/internal/utils/XMLLimitAnalyzer.java
changeset 47359 e1a6c0168741
parent 47216 71c04702a3d5
child 49269 26c24703e547
--- a/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/utils/XMLLimitAnalyzer.java	Tue Sep 05 13:40:14 2017 +0200
+++ b/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/utils/XMLLimitAnalyzer.java	Wed Oct 18 13:25:49 2017 -0700
@@ -1,7 +1,7 @@
 /*
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  *
- * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
  *
  * The contents of this file are subject to the terms of either the GNU
  * General Public License Version 2 only ("GPL") or the Common Development
@@ -93,13 +93,14 @@
     /**
      * Maintain values of the top 10 elements in the process of parsing
      */
-    private final Map[] caches;
+    private final Map<String, Integer>[] caches;
 
     private String entityStart, entityEnd;
     /**
      * Default constructor. Establishes default values for known security
      * vulnerabilities.
      */
+    @SuppressWarnings({"rawtypes", "unchecked"})
     public XMLLimitAnalyzer() {
         values = new int[Limit.values().length];
         totalValue = new int[Limit.values().length];