A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/659 below:

[java] MissingBreakInSwitch - last default case does not contain a break · Issue #659 · pmd/pmd · GitHub

Rule: MissingBreakInSwitch

Description:

A switch statement does not contain a break, even if it is the default case.

Code Sample demonstrating the issue:

https://www.codacy.com/app/zolyfarkas/spf4j/issues?&filters=W3siaWQiOiJDYXRlZ29yeSIsInZhbHVlcyI6WyJFcnJvciBQcm9uZSJdfV0=

        switch (precission) { 
            case 32: 
                mc = MathContext.DECIMAL32; 
                break; 
            case 64: 
                mc = MathContext.DECIMAL64; 
                break; 
            case 128: 
                mc = MathContext.DECIMAL128; 
                break; 
            default: 
                mc = new MathContext(precission); 
        } 

Running PMD through: Codacy

sabberworm, cyb3rko, proshin-roman, Midya-ELTE and sslavian812


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4