< prev index next >

src/java.xml.ws/share/classes/com/sun/xml/internal/ws/transport/Headers.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 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) 1997, 2016, 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
*** 125,131 **** --- 125,143 ---- public void set (String key, String value) { LinkedList<String> l = new LinkedList<String>(); l.add (value); put(key, l); } + /** + * Added to fix issue + * putAll() is easier to deal with as it doesn't return anything + */ + public void putAll(Map<? extends String,? extends List<String>> map) { + for (String k : map.keySet()) { + List<String> list = map.get(k); + for (String v : list) { + add(k,v); + } + } + } }
< prev index next >