Ignore:
Timestamp:
2016-07-23T01:02:41+02:00 (8 years ago)
Author:
Don-vip
Message:

see #12905 - sonar - pmd:BooleanGetMethodName - A getX() method which returns a boolean should be named isX()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/bugreport/BugReport.java

    r10586 r10597  
    5555
    5656    /**
    57      * Get if this report should include a system status report
     57     * Determines if this report should include a system status report
    5858     * @return <code>true</code> to include it.
    59      * @since 10585
    60      */
    61     public boolean getIncludeStatusReport() {
     59     * @since 10597
     60     */
     61    public boolean isIncludeStatusReport() {
    6262        return includeStatusReport;
    6363    }
     
    7474
    7575    /**
    76      * Get if this report should include the data that was traced.
     76     * Determines if this report should include the data that was traced.
    7777     * @return <code>true</code> to include it.
    78      * @since 10585
    79      */
    80     public boolean getIncludeData() {
     78     * @since 10597
     79     */
     80    public boolean isIncludeData() {
    8181        return includeData;
    8282    }
     
    9393
    9494    /**
    95      * Get if this report should include the stack traces for all other threads.
     95     * Determines if this report should include the stack traces for all other threads.
    9696     * @return <code>true</code> to include it.
    97      * @since 10585
    98      */
    99     public boolean getIncludeAllStackTraces() {
     97     * @since 10597
     98     */
     99    public boolean isIncludeAllStackTraces() {
    100100        return includeAllStackTraces;
    101101    }
     
    119119        StringWriter stringWriter = new StringWriter();
    120120        PrintWriter out = new PrintWriter(stringWriter);
    121         if (getIncludeStatusReport()) {
     121        if (isIncludeStatusReport()) {
    122122            out.println(ShowStatusReportAction.getReportHeader());
    123123        }
    124         if (getIncludeData()) {
     124        if (isIncludeData()) {
    125125            exception.printReportDataTo(out);
    126126        }
    127127        exception.printReportStackTo(out);
    128         if (getIncludeAllStackTraces()) {
     128        if (isIncludeAllStackTraces()) {
    129129            exception.printReportThreadsTo(out);
    130130        }
Note: See TracChangeset for help on using the changeset viewer.