8250564: Remove terminally deprecated constructor in GSSUtil

8250565: Remove terminally deprecated constructor in java.net.URLDecoder

Reviewed-by: bpb, smarks, alanb, mullan
This commit is contained in:
Joe Darcy 2021-01-06 18:05:33 +00:00
parent 940b053065
commit 80544e4d5f
3 changed files with 4 additions and 7 deletions

View File

@ -84,8 +84,7 @@ public class URLDecoder {
/** /**
* Do not call. * Do not call.
*/ */
@Deprecated(since="16", forRemoval=true) private URLDecoder() {}
public URLDecoder() {}
// The platform default encoding // The platform default encoding
static String dfltEncName = URLEncoder.dfltEncName; static String dfltEncName = URLEncoder.dfltEncName;

View File

@ -37,8 +37,7 @@ public class GSSUtil {
/** /**
* Do not call. * Do not call.
*/ */
@Deprecated(since="16", forRemoval=true) private GSSUtil() {}
public GSSUtil() {}
/** /**
* Use this method to convert a GSSName and GSSCredential into a * Use this method to convert a GSSName and GSSCredential into a

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -32,8 +32,7 @@ public class B6463990 {
public static void main(String[] args) { public static void main(String[] args) {
boolean except = false; boolean except = false;
try { try {
URLDecoder ud = new java.net.URLDecoder(); String s = URLDecoder.decode("%-1", "iso-8859-1");
String s = ud.decode("%-1", "iso-8859-1");
System.out.println((int) s.charAt(0)); System.out.println((int) s.charAt(0));
} catch (Exception e) { } catch (Exception e) {
except = true; except = true;