Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8250564: Remove terminally deprecated constructor in GSSUtil
8250565: Remove terminally deprecated constructor in java.net.URLDecoder

Reviewed-by: bpb, smarks, alanb, mullan
  • Loading branch information
jddarcy committed Jan 6, 2021
1 parent 940b053 commit 80544e4d5f402f67171eb5aca11897f1c5c3d431
@@ -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;

0 comments on commit 80544e4

Please sign in to comment.