Skip to content

Judgment duplication #235

Open
Open
@yongzheng7

Description

@yongzheng7

Wcs201ElevationCoverage. java

public Wcs201ElevationCoverage(Sector sector, int numLevels, String serviceAddress, String coverage) {
// Judgment duplication
if (numLevels < 0) {
throw new IllegalArgumentException(
Logger.makeMessage("Wcs201ElevationCoverage", "constructor", "invalidNumLevels"));
}
if (numLevels < 0) {
throw new IllegalArgumentException(
Logger.makeMessage("Wcs201ElevationCoverage", "constructor", "The number of levels must be greater than 0"));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions