Skip to content

Commit

Permalink
8250638: Address reliance on default constructors in java.xml
Browse files Browse the repository at this point in the history
Reviewed-by: darcy, lancea
  • Loading branch information
JoeWang-Java committed Jul 31, 2020
1 parent dc71097 commit 024fa09
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/java.xml/share/classes/org/xml/sax/HandlerBase.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 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 @@ -58,7 +58,10 @@
public class HandlerBase
implements EntityResolver, DTDHandler, DocumentHandler, ErrorHandler
{

/**
* Constructs a {@code HandlerBase}.
*/
public HandlerBase() {}

////////////////////////////////////////////////////////////////////
// Default implementation of the EntityResolver interface.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 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 @@ -70,7 +70,10 @@
public class DefaultHandler
implements EntityResolver, DTDHandler, ContentHandler, ErrorHandler
{

/**
* Constructs a {@code DefaultHandler}.
*/
public DefaultHandler() {}

////////////////////////////////////////////////////////////////////
// Default implementation of the EntityResolver interface.
Expand Down

0 comments on commit 024fa09

Please sign in to comment.