< prev index next >

test/jdk/javax/naming/spi/DirectoryManager/DummyContext.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 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. --- 1,7 ---- /* ! * Copyright (c) 2003, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 29,43 **** import javax.naming.*; import java.util.Hashtable; public class DummyContext extends InitialContext { ! private Hashtable env; ! DummyContext(Hashtable env) throws NamingException { this.env = env; } ! public Hashtable getEnvironment() throws NamingException { return env; } } --- 29,43 ---- import javax.naming.*; import java.util.Hashtable; public class DummyContext extends InitialContext { ! private Hashtable<?,?> env; ! DummyContext(Hashtable<?,?> env) throws NamingException { this.env = env; } ! public Hashtable<?,?> getEnvironment() throws NamingException { return env; } }
< prev index next >