diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2020-05-20 19:40:06 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2020-05-20 19:40:06 -0400 |
| commit | 4d449a9b96570e8c655fc303ca0ca81dab394e3d (patch) | |
| tree | 5a23a776cb7e63cde971dafee02379efdaa04ba3 /docs/jacoco-ut/bjc.everge/ReplError.java.html | |
| parent | 63524d0fe212609cc4af93807753a47eae09979b (diff) | |
Update docs
Diffstat (limited to 'docs/jacoco-ut/bjc.everge/ReplError.java.html')
| -rw-r--r-- | docs/jacoco-ut/bjc.everge/ReplError.java.html | 50 |
1 files changed, 28 insertions, 22 deletions
diff --git a/docs/jacoco-ut/bjc.everge/ReplError.java.html b/docs/jacoco-ut/bjc.everge/ReplError.java.html index 7c92b1c..dd7247b 100644 --- a/docs/jacoco-ut/bjc.everge/ReplError.java.html +++ b/docs/jacoco-ut/bjc.everge/ReplError.java.html @@ -28,13 +28,13 @@ public class ReplError { * Create a new ReplPair parse error. * * @param lne - * The line the error occured on. + * The line the error occured on. * @param nPairs - * The number of pairs processed up to this point. + * The number of pairs processed up to this point. * @param msg - * The message detailing the error. + * The message detailing the error. * @param txt - * The text that caused the error. + * The text that caused the error. */ public ReplError(IntHolder lne, IntHolder nPairs, String msg, String txt) { <span class="fc" id="L40"> this(lne.get(), nPairs.get(), msg, txt);</span> @@ -44,13 +44,13 @@ public class ReplError { * Create a new ReplPair parse error. * * @param lne - * The line the error occured on. + * The line the error occured on. * @param nPairs - * The number of pairs processed up to this point. + * The number of pairs processed up to this point. * @param msg - * The message detailing the error. + * The message detailing the error. * @param txt - * The text that caused the error. + * The text that caused the error. */ <span class="fc" id="L55"> public ReplError(int lne, int nPairs, String msg, String txt) {</span> <span class="fc" id="L56"> line = lne;</span> @@ -63,38 +63,44 @@ public class ReplError { @Override public String toString() { String errString; -<span class="nc bnc" id="L66" title="All 2 branches missed."> if (txt == null) errString = "No associated line";</span> -<span class="nc bnc" id="L67" title="All 2 branches missed."> else if (txt.equals("")) errString = "Text of line was empty";</span> -<span class="nc" id="L68"> else errString = "Text of line was: " + txt;</span> +<span class="nc bnc" id="L66" title="All 2 branches missed."> if (txt == null)</span> +<span class="nc" id="L67"> errString = "No associated line";</span> +<span class="nc bnc" id="L68" title="All 2 branches missed."> else if (txt.equals(""))</span> +<span class="nc" id="L69"> errString = "Text of line was empty";</span> + else +<span class="nc" id="L71"> errString = "Text of line was: " + txt;</span> -<span class="nc" id="L70"> return String.format("line %d, pair %d:%s\n\t%s", line, numPairs, msg, errString);</span> +<span class="nc" id="L73"> return String.format("line %d, pair %d:%s\n\t%s", line, numPairs, msg, errString);</span> } /** * Convert the error to a printable string. - * + * * @return The error as a printable string. */ public String toPrintString() { -<span class="nc" id="L79"> return toPrintString("");</span> +<span class="nc" id="L82"> return toPrintString("");</span> } /** * Convert the error to a printable string, with a custom header. - * + * * @param hdr - * The text to include in the header. - * + * The text to include in the header. + * * @return The error as a printable string. */ public String toPrintString(String hdr) { String errString; -<span class="pc bpc" id="L92" title="1 of 2 branches missed."> if (txt == null) errString = "No associated line";</span> -<span class="nc bnc" id="L93" title="All 2 branches missed."> else if (txt.equals("")) errString = "Text of line was empty";</span> -<span class="nc" id="L94"> else errString = "Text of line was: " + txt;</span> +<span class="pc bpc" id="L95" title="1 of 2 branches missed."> if (txt == null)</span> +<span class="fc" id="L96"> errString = "No associated line";</span> +<span class="nc bnc" id="L97" title="All 2 branches missed."> else if (txt.equals(""))</span> +<span class="nc" id="L98"> errString = "Text of line was empty";</span> + else +<span class="nc" id="L100"> errString = "Text of line was: " + txt;</span> -<span class="fc" id="L96"> return String.format("[ERROR] line %d, pair %d: %s\n%s\tContext: %s",</span> -<span class="fc" id="L97"> line, numPairs, msg, hdr, errString);</span> +<span class="fc" id="L102"> return String.format("[ERROR] line %d, pair %d: %s\n%s\tContext: %s", line,</span> +<span class="fc" id="L103"> numPairs, msg, hdr, errString);</span> } } </pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.2.201808211720</span></div></body></html>
\ No newline at end of file |
