You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/08/29 13:53:10 UTC
[commons-compress] branch master updated: Generics
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git
The following commit(s) were added to refs/heads/master by this push:
new 7d14165b Generics
7d14165b is described below
commit 7d14165b304db47ff25752bef30e054122607707
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Aug 29 09:53:06 2023 -0400
Generics
---
.../apache/commons/compress/harmony/unpack200/AttributeLayoutMap.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/compress/harmony/unpack200/AttributeLayoutMap.java b/src/main/java/org/apache/commons/compress/harmony/unpack200/AttributeLayoutMap.java
index bf1ab3e6..09ece339 100644
--- a/src/main/java/org/apache/commons/compress/harmony/unpack200/AttributeLayoutMap.java
+++ b/src/main/java/org/apache/commons/compress/harmony/unpack200/AttributeLayoutMap.java
@@ -132,7 +132,8 @@ public class AttributeLayoutMap {
* All elements are of type {@code Map<Integer, AttributeLayout>}.
* </p>
*/
- private final Map[] layouts = { classLayouts, fieldLayouts, methodLayouts, codeLayouts };
+ @SuppressWarnings("unchecked") // Cannot create a generic array
+ private final Map<Integer, AttributeLayout>[] layouts = new Map[] { classLayouts, fieldLayouts, methodLayouts, codeLayouts };
private final Map<AttributeLayout, NewAttributeBands> layoutsToBands = new HashMap<>();