8183175: Add explicit constructors to MalformedParameterizedTypeException

Reviewed-by: bpb
This commit is contained in:
Joe Darcy 2017-06-28 17:57:20 -07:00
parent 22bcf60705
commit 6e40f2e939

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2017, 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
@ -36,4 +36,21 @@ package java.lang.reflect;
*/
public class MalformedParameterizedTypeException extends RuntimeException {
private static final long serialVersionUID = -5696557788586220964L;
/**
* Constructs a {@code MalformedParameterizedTypeException} with
* no detail message.
*/
public MalformedParameterizedTypeException() {
super();
}
/**
* Constructs a {@code MalformedParameterizedTypeException} with
* the given detail message.
* @param message the detail message; may be {@code null}
*/
public MalformedParameterizedTypeException(String message) {
super(message);
}
}