< prev index next >
src/jdk.jdi/share/classes/com/sun/jdi/connect/IllegalConnectorArgumentsException.java
Print this page
rev 17275 : 8181417: Code cleanups in com.sun.jdi
*** 1,7 ****
/*
! * Copyright (c) 1998, 2013, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1998, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 37,57 ****
* @since 1.3
*/
public class IllegalConnectorArgumentsException extends Exception {
private static final long serialVersionUID = -3042212603611350941L;
List<String> names;
/**
* Construct an <code>IllegalConnectorArgumentsException</code>
* with the specified detail message and the name of the argument
* which is invalid or inconsistent.
* @param s the detailed message.
* @param name the name of the invalid or inconsistent argument.
*/
! public IllegalConnectorArgumentsException(String s,
! String name) {
super(s);
names = new ArrayList<String>(1);
names.add(name);
}
--- 37,57 ----
* @since 1.3
*/
public class IllegalConnectorArgumentsException extends Exception {
private static final long serialVersionUID = -3042212603611350941L;
+
List<String> names;
/**
* Construct an <code>IllegalConnectorArgumentsException</code>
* with the specified detail message and the name of the argument
* which is invalid or inconsistent.
* @param s the detailed message.
* @param name the name of the invalid or inconsistent argument.
*/
! public IllegalConnectorArgumentsException(String s, String name) {
super(s);
names = new ArrayList<String>(1);
names.add(name);
}
*** 63,73 ****
* @param names a <code>List</code> containing the names of the
* invalid or inconsistent argument.
*/
public IllegalConnectorArgumentsException(String s, List<String> names) {
super(s);
-
this.names = new ArrayList<String>(names);
}
/**
* Return a <code>List</code> containing the names of the
--- 63,72 ----
< prev index next >