Issue #1289: 'OperatorWrapCheck' UT coverage improved
This commit is contained in:
parent
5c35deadc6
commit
a96429cb97
1
pom.xml
1
pom.xml
|
|
@ -1157,7 +1157,6 @@
|
|||
<regex><pattern>.*.checks.whitespace.AbstractParenPadCheck</pattern><branchRate>88</branchRate><lineRate>100</lineRate></regex>
|
||||
<regex><pattern>.*.checks.whitespace.NoWhitespaceAfterCheck</pattern><branchRate>94</branchRate><lineRate>98</lineRate></regex>
|
||||
<regex><pattern>.*.checks.whitespace.NoWhitespaceBeforeCheck</pattern><branchRate>90</branchRate><lineRate>100</lineRate></regex>
|
||||
<regex><pattern>.*.checks.whitespace.OperatorWrapCheck</pattern><branchRate>68</branchRate><lineRate>81</lineRate></regex>
|
||||
|
||||
|
||||
<regex><pattern>.*.filters.SuppressionCommentFilter</pattern><branchRate>83</branchRate><lineRate>93</lineRate></regex>
|
||||
|
|
|
|||
|
|
@ -59,3 +59,19 @@ class goodCase<T extends Foo & Bar> {
|
|||
interface Bar {
|
||||
|
||||
}
|
||||
|
||||
class Switch {
|
||||
public void test(int i, int j) {
|
||||
switch(j) {
|
||||
case 7:
|
||||
return;
|
||||
}
|
||||
switch(i) {
|
||||
case 1:
|
||||
break;
|
||||
default:
|
||||
;
|
||||
}
|
||||
for (int k : new int[]{1,2,3}) {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue