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:
parent
940b053065
commit
80544e4d5f
@ -84,8 +84,7 @@ public class URLDecoder {
|
||||
/**
|
||||
* Do not call.
|
||||
*/
|
||||
@Deprecated(since="16", forRemoval=true)
|
||||
public URLDecoder() {}
|
||||
private URLDecoder() {}
|
||||
|
||||
// The platform default encoding
|
||||
static String dfltEncName = URLEncoder.dfltEncName;
|
||||
|
@ -37,8 +37,7 @@ public class GSSUtil {
|
||||
/**
|
||||
* Do not call.
|
||||
*/
|
||||
@Deprecated(since="16", forRemoval=true)
|
||||
public GSSUtil() {}
|
||||
private GSSUtil() {}
|
||||
|
||||
/**
|
||||
* Use this method to convert a GSSName and GSSCredential into a
|
||||
|
@ -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.
|
||||
*
|
||||
* 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) {
|
||||
boolean except = false;
|
||||
try {
|
||||
URLDecoder ud = new java.net.URLDecoder();
|
||||
String s = ud.decode("%-1", "iso-8859-1");
|
||||
String s = URLDecoder.decode("%-1", "iso-8859-1");
|
||||
System.out.println((int) s.charAt(0));
|
||||
} catch (Exception e) {
|
||||
except = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user