Ignore:
Timestamp:
2015-04-29T01:44:01+02:00 (9 years ago)
Author:
Don-vip
Message:

fix squid:RedundantThrowsDeclarationCheck + consistent Javadoc for exceptions

Location:
trunk/src/org/openstreetmap/josm/gui/tagging
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java

    r7864 r8291  
    6767     * @param rowSelectionModel the row selection model. Must not be null.
    6868     * @param colSelectionModel the column selection model. Must not be null.
    69      * @throws IllegalArgumentException thrown if {@code rowSelectionModel} is null
    70      * @throws IllegalArgumentException thrown if {@code colSelectionModel} is null
    71      */
    72     public TagEditorModel(DefaultListSelectionModel rowSelectionModel, DefaultListSelectionModel colSelectionModel) throws IllegalArgumentException{
     69     * @throws IllegalArgumentException if {@code rowSelectionModel} is null
     70     * @throws IllegalArgumentException if {@code colSelectionModel} is null
     71     */
     72    public TagEditorModel(DefaultListSelectionModel rowSelectionModel, DefaultListSelectionModel colSelectionModel) {
    7373        CheckParameterUtil.ensureParameterNotNull(rowSelectionModel, "rowSelectionModel");
    7474        CheckParameterUtil.ensureParameterNotNull(colSelectionModel, "colSelectionModel");
     
    173173     * @param tag the tag. Must not be null.
    174174     *
    175      * @exception IllegalArgumentException thrown, if tag is null
     175     * @throws IllegalArgumentException if tag is null
    176176     */
    177177    public void add(TagModel tag) {
  • trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorPanel.java

    r7509 r8291  
    1010import java.awt.event.FocusEvent;
    1111import java.util.EnumSet;
     12
    1213import javax.swing.AbstractAction;
    13 
    1414import javax.swing.BoxLayout;
    1515import javax.swing.JButton;
     
    175175     *
    176176     * @param layer the data layer. Must not be null.
    177      * @throws IllegalArgumentException thrown if {@code layer} is null
    178      */
    179     public void initAutoCompletion(OsmDataLayer layer) throws IllegalArgumentException{
     177     * @throws IllegalArgumentException if {@code layer} is null
     178     */
     179    public void initAutoCompletion(OsmDataLayer layer) {
    180180        CheckParameterUtil.ensureParameterNotNull(layer, "layer");
    181181
  • trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionList.java

    r7864 r8291  
    5757     * @param filter  the filter expression; must not be null
    5858     *
    59      * @exception IllegalArgumentException thrown, if filter is null
     59     * @throws IllegalArgumentException if filter is null
    6060     */
    6161    public void applyFilter(String filter) {
     
    100100     *
    101101     * @param other another auto completion list; must not be null
    102      * @exception IllegalArgumentException thrown, if other is null
     102     * @throws IllegalArgumentException if other is null
    103103     */
    104104    public void add(AutoCompletionList other) {
     
    116116     *
    117117     * @param other a list of AutoCompletionListItem; must not be null
    118      * @exception IllegalArgumentException thrown, if other is null
     118     * @throws IllegalArgumentException if other is null
    119119     */
    120120    public void add(List<AutoCompletionListItem> other) {
     
    264264     * @return the item
    265265     *
    266      * @exception IndexOutOfBoundsException thrown, if idx is out of bounds
     266     * @throws IndexOutOfBoundsException if idx is out of bounds
    267267     */
    268268    public AutoCompletionListItem getFilteredItem(int idx) {
  • trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionListItem.java

    r7863 r8291  
    7878     * sets the value
    7979     * @param value the value; must not be null
    80      * @exception IllegalArgumentException thrown, if value if null
     80     * @throws IllegalArgumentException if value if null
    8181     */
    8282    public void setValue(String value) {
Note: See TracChangeset for help on using the changeset viewer.