Mercurial > hg > release > thermostat-0.4
view client/heapdumper/src/main/java/com/redhat/thermostat/client/heap/LocaleResources.java @ 647:4323e78903af
find-objects should not throw IOOBE on missing search term
'find-objects' can throw a IndexOutOfBoundsException if no search term
is provided on the command line. Make it print out a message to the
user instead of crashing when that happens.
Reviewed-by: jerboaa
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2012-September/003485.html
author | Omair Majid <omajid@redhat.com> |
---|---|
date | Mon, 01 Oct 2012 09:17:53 -0400 |
parents | e645fdf087e1 |
children | ea7e9573f316 |
line wrap: on
line source
/* * Copyright 2012 Red Hat, Inc. * * This file is part of Thermostat. * * Thermostat is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published * by the Free Software Foundation; either version 2, or (at your * option) any later version. * * Thermostat is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Thermostat; see the file COPYING. If not see * <http://www.gnu.org/licenses/>. * * Linking this code with other modules is making a combined work * based on this code. Thus, the terms and conditions of the GNU * General Public License cover the whole combination. * * As a special exception, the copyright holders of this code give * you permission to link this code with independent modules to * produce an executable, regardless of the license terms of these * independent modules, and to copy and distribute the resulting * executable under terms of your choice, provided that you also * meet, for each linked independent module, the terms and conditions * of the license of that module. An independent module is a module * which is not derived from or based on this code. If you modify * this code, you may extend this exception to your version of the * library, but you are not obligated to do so. If you do not wish * to do so, delete this exception statement from your version. */ package com.redhat.thermostat.client.heap; public enum LocaleResources { MISSING_INFO, HEADER_TIMESTAMP, HEADER_HOST_ID, HEADER_VM_ID, HEADER_HEAP_ID, HEADER_OBJECT_ID, HEADER_OBJECT_TYPE, FILE_REQUIRED, INVALID_LIMIT, HEAP_ID_NOT_FOUND, HEAP_ID_REQUIRED, SEARCH_TERM_REQUIRED, ARGUMENT_HEAP_ID_DESCRIPTION, ARGUMENT_OBJECT_ID_DESCRIPTION, ARGUMENT_LIMIT_DESCRIPTION, ARGUMENT_FILE_NAME_DESCRIPTION, COMMAND_DUMP_HEAP_DESCRIPTION, COMMAND_HEAP_DUMP_DONE, COMMAND_FIND_OBJECTS_DESCRIPTION, COMMAND_FIND_ROOT_DESCRIPTION, COMMAND_FIND_ROOT_ARGUMENT_ALL, COMMAND_FIND_ROOT_NO_ROOT_FOUND, COMMAND_LIST_HEAP_DUMPS_DESCRIPTION, COMMAND_OBJECT_INFO_DESCRIPTION, COMMAND_OBJECT_INFO_OBJECT_ID, COMMAND_OBJECT_INFO_TYPE, COMMAND_OBJECT_INFO_SIZE, COMMAND_OBJECT_INFO_HEAP_ALLOCATED, COMMAND_OBJECT_INFO_REFERENCES, COMMAND_OBJECT_INFO_REFERRERS, COMMAND_SAVE_HEAP_DUMP_DESCRIPTION, COMMAND_SAVE_HEAP_DUMP_SAVED_TO_FILE, COMMAND_SAVE_HEAP_DUMP_ERROR_SAVING, COMMAND_SAVE_HEAP_DUMP_ERROR_CLOSING_STREAM, COMMAND_SHOW_HEAP_HISTOGRAM_DESCRIPTION, HEAP_SECTION_TITLE, HEAP_OVERVIEW_TITLE, HEAP_CHART_TITLE, HEAP_CHART_TIME_AXIS, HEAP_CHART_HEAP_AXIS, HEAP_CHART_CAPACITY, HEAP_CHART_USED, HEAP_DUMP_SECTION_HISTOGRAM, HEAP_DUMP_SECTION_OBJECT_BROWSER, HEAP_DUMP_CLASS_USAGE, HEAP_DUMP_HISTOGRAM_COLUMN_CLASS, HEAP_DUMP_HISTOGRAM_COLUMN_INSTANCES, HEAP_DUMP_HISTOGRAM_COLUMN_SIZE, HEAP_DUMP_OBJECT_BROWSE_SEARCH_HINT, HEAP_DUMP_OBJECT_BROWSE_SEARCH_PATTERN_HELP, HEAP_DUMP_OBJECT_BROWSE_SEARCH_LABEL, HEAP_DUMP_OBJECT_BROWSE_REFERRERS, HEAP_DUMP_OBJECT_BROWSE_REFERENCES, HEAP_DUMP_OBJECT_FIND_ROOT, OBJECT_ROOTS_VIEW_TITLE, ; static final String RESOURCE_BUNDLE = "com.redhat.thermostat.client.heap.strings"; }