Code cleanup removing potential issues detected by FindBugs
| | |
| | | * |
| | | * |
| | | * Copyright 2007-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.tools.dsconfig; |
| | | |
| | |
| | | |
| | | // Get the tag mapping, creating it if necessary. |
| | | for (Tag tag : d.getAllTags()) { |
| | | subTypes = tagMap.get(baseName); |
| | | subTypes = tagMap.get(tag); |
| | | if (subTypes == null) { |
| | | subTypes = new TreeMap<String, AbstractManagedObjectDefinition<?, ?>>(); |
| | | tagMap.put(tag, subTypes); |
| | |
| | | * |
| | | * |
| | | * Copyright 2007-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.tools.dsconfig; |
| | | |
| | |
| | | catch (Throwable t) |
| | | { |
| | | // Bug |
| | | new RuntimeException("Unexpected exception: "+t, t); |
| | | throw new RuntimeException("Unexpected exception: "+t, t); |
| | | } |
| | | return MenuResult.success(children.get(children.firstKey())); |
| | | } else { |