Ignore:
Timestamp:
2016-12-12T17:29:27+01:00 (3 years ago)
Author:
Don-vip
Message:

findbugs - BC_UNCONFIRMED_CAST

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java

    r11288 r11383  
    235235        switch (mode) {
    236236        case "problem":
    237             return modeProblem(v);
     237            return modeProblem((ValidatorBoundingXYVisitor) v);
    238238        case "data":
    239239            return modeData(v);
     
    250250    }
    251251
    252     private static BoundingXYVisitor modeProblem(BoundingXYVisitor v) {
     252    private static BoundingXYVisitor modeProblem(ValidatorBoundingXYVisitor v) {
    253253        TestError error = Main.map.validatorDialog.getSelectedError();
    254254        if (error == null)
    255255            return null;
    256         ((ValidatorBoundingXYVisitor) v).visit(error);
     256        v.visit(error);
    257257        if (v.getBounds() == null)
    258258            return null;
Note: See TracChangeset for help on using the changeset viewer.