Skip to content

Commit

Permalink
8250564: Remove terminally deprecated constructor in GSSUtil
Browse files Browse the repository at this point in the history
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 80544e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/java.base/share/classes/java/net/URLDecoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions test/jdk/java/net/URLDecoder/B6463990.java
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;
Expand Down

1 comment on commit 80544e4

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.