aboutsummaryrefslogtreecommitdiff
path: root/src/java.base/share/classes/java/net/ContentHandler.java
diff options
context:
space:
mode:
authorJoe Darcy <darcy@openjdk.org>2020-07-25 09:42:45 -0700
committerJoe Darcy <darcy@openjdk.org>2020-07-25 09:42:45 -0700
commit0e54ce2a8eb40d2baddcfceb1a3ffe7e28fdfc63 (patch)
tree00dcd059cf456d8795e4051dcca9a4cd417b5364 /src/java.base/share/classes/java/net/ContentHandler.java
parentac4dc0470e9d6b21ed8669d73cb5034a50730e01 (diff)
downloadopenjdk-0e54ce2a8eb40d2baddcfceb1a3ffe7e28fdfc63.tar.gz
openjdk-0e54ce2a8eb40d2baddcfceb1a3ffe7e28fdfc63.zip
8250244: Address reliance on default constructors in java.net
Reviewed-by: alanb, vtewari
Diffstat (limited to 'src/java.base/share/classes/java/net/ContentHandler.java')
-rw-r--r--src/java.base/share/classes/java/net/ContentHandler.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/java.base/share/classes/java/net/ContentHandler.java b/src/java.base/share/classes/java/net/ContentHandler.java
index d1deb2de5ae..7030a0346e0 100644
--- a/src/java.base/share/classes/java/net/ContentHandler.java
+++ b/src/java.base/share/classes/java/net/ContentHandler.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -84,6 +84,11 @@ import java.io.IOException;
public abstract class ContentHandler {
/**
+ * Constructor for subclasses to call.
+ */
+ public ContentHandler() {}
+
+ /**
* Given a URL connect stream positioned at the beginning of the
* representation of an object, this method reads that stream and
* creates an object from it.