/*
 * Copyright 2017, TeamDev Ltd. All rights reserved.
 *
 * Redistribution and use in source and/or binary forms, with or without
 * modification, must retain the above copyright notice and the following
 * disclaimer.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

package org.spine3.tools.codestyle;

/**
 * A bearable (non-negative) threshold of code style violations,
 * that will not trigger a code style verification report.
 *
 * @author Dmytro Grankin
 */
public class Threshold {

    private final int value;

    /**
     * Creates a new instance.
     *
     * @param value the non-negative value
     */
    public Threshold(int value) {
        this.value = Math.max(value, 0);
    }

    public int getValue() {
        return value;
    }

    @Override
    public String toString() {
        return String.valueOf(value);
    }
}

@@ -1118,68 +1118,335 @@
 ions
-,%0A * that will not trigger a code style verification report.
+.%0A *%0A * %3Cp%3EIf a code style violations amount not exceed a threshold value,%0A * then a code style verification is considered passed:%0A * %3Cul%3E%0A * %3Cli%3Eviolations should not be reported;%3C/li%3E%0A * %3Cli%3Eif report type is %7B@linkplain ReportType#ERROR error%7D, build should not be failed.%3C/li%3E%0A * %3C/ul%3Ethat violations should not be reported
 %0A *%0A
@@ -1471,16 +1471,35 @@
 Grankin%0A
+ * @see ReportType%0A
  */%0Apubl
@@ -1647,27 +1647,20 @@
      */%0A
+
     
-public 
 Threshol

Clarify Javadoc