Ignore:
Timestamp:
2016-07-24T23:50:15+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:RedundantThrowsDeclarationCheck - Throws declarations should not be superfluous

Location:
trunk/src/org/openstreetmap/josm/data/osm
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/MultipolygonBuilder.java

    r10469 r10632  
    170170     * @throws JoinedPolygonCreationException if the creation fails.
    171171     */
    172     public static List<JoinedPolygon> joinWays(Collection<Way> ways) throws JoinedPolygonCreationException {
     172    public static List<JoinedPolygon> joinWays(Collection<Way> ways) {
    173173        List<JoinedPolygon> joinedWays = new ArrayList<>();
    174174
  • trunk/src/org/openstreetmap/josm/data/osm/Relation.java

    r10608 r10632  
    484484    }
    485485
    486     private void checkMembers() throws DataIntegrityProblemException {
     486    /**
     487     * Checks that members are part of the same dataset, and that they're not deleted.
     488     * @throws DataIntegrityProblemException if one the above conditions is not met
     489     */
     490    private void checkMembers() {
    487491        DataSet dataSet = getDataSet();
    488492        if (dataSet != null) {
     
    503507    }
    504508
    505     private void fireMembersChanged() throws DataIntegrityProblemException {
     509    /**
     510     * Fires the {@code RelationMembersChangedEvent} to listeners.
     511     * @throws DataIntegrityProblemException if members are not valid
     512     * @see #checkMembers
     513     */
     514    private void fireMembersChanged() {
    506515        checkMembers();
    507516        if (getDataSet() != null) {
  • trunk/src/org/openstreetmap/josm/data/osm/Way.java

    r9979 r10632  
    448448     * @since 1313
    449449     */
    450     public void addNode(int offs, Node n) throws IndexOutOfBoundsException {
     450    public void addNode(int offs, Node n) {
    451451        if (n == null) return;
    452452
  • trunk/src/org/openstreetmap/josm/data/osm/history/HistoryRelation.java

    r10378 r10632  
    111111     * @throws IndexOutOfBoundsException if idx is out of bounds
    112112     */
    113     public RelationMemberData getRelationMember(int idx) throws IndexOutOfBoundsException {
     113    public RelationMemberData getRelationMember(int idx) {
    114114        if (idx < 0 || idx >= members.size())
    115115            throw new IndexOutOfBoundsException(
  • trunk/src/org/openstreetmap/josm/data/osm/history/HistoryWay.java

    r9067 r10632  
    9797     * @throws IndexOutOfBoundsException if  idx &lt; 0 || idx &gt;= {#see {@link #getNumNodes()}
    9898     */
    99     public long getNodeId(int idx) throws IndexOutOfBoundsException {
     99    public long getNodeId(int idx) {
    100100        if (idx < 0 || idx >= nodeIds.size())
    101101            throw new IndexOutOfBoundsException(tr("Parameter {0} not in range 0..{1}. Got ''{2}''.", "idx", nodeIds.size(), idx));
Note: See TracChangeset for help on using the changeset viewer.