equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
53 */ |
53 */ |
54 Logging() { |
54 Logging() { |
55 } |
55 } |
56 |
56 |
57 public List<String> getLoggerNames() { |
57 public List<String> getLoggerNames() { |
58 Enumeration loggers = logManager.getLoggerNames(); |
58 Enumeration<String> loggers = logManager.getLoggerNames(); |
59 ArrayList<String> array = new ArrayList<>(); |
59 ArrayList<String> array = new ArrayList<>(); |
60 |
60 |
61 for (; loggers.hasMoreElements();) { |
61 for (; loggers.hasMoreElements();) { |
62 array.add((String) loggers.nextElement()); |
62 array.add(loggers.nextElement()); |
63 } |
63 } |
64 return array; |
64 return array; |
65 } |
65 } |
66 |
66 |
67 private static String EMPTY_STRING = ""; |
67 private static String EMPTY_STRING = ""; |