Skip to content
Permalink
Browse files
8263497: Clean up sun.security.krb5.PrincipalName::toByteArray
Reviewed-by: weijun
  • Loading branch information
shipilev committed Mar 15, 2021
1 parent ba22e6f commit 0638303316b267f8d48682e7b314cd638b904af1
Showing 1 changed file with 1 addition and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 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
@@ -534,7 +534,6 @@ public String[] getNameStrings() {
public byte[][] toByteArray() {
byte[][] result = new byte[nameStrings.length][];
for (int i = 0; i < nameStrings.length; i++) {
result[i] = new byte[nameStrings[i].length()];
result[i] = nameStrings[i].getBytes();
}
return result;

0 comments on commit 0638303

Please sign in to comment.