mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8268512: More content for ContentInfo
Reviewed-by: ahgross, weijun, rhalade
This commit is contained in:
parent
f18deeb69e
commit
e069a3b8bf
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -127,7 +127,9 @@ public class ContentInfo {
|
|||
|
||||
if (oldStyle) {
|
||||
// JDK1.1.x-style encoding
|
||||
content = typeAndContent[1];
|
||||
if (typeAndContent.length > 1) { // content is OPTIONAL
|
||||
content = typeAndContent[1];
|
||||
}
|
||||
} else {
|
||||
// This is the correct, standards-compliant encoding.
|
||||
// Parse the content (OPTIONAL field).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue