Description
I get the FieldDeclarationsShouldBeAtStartOfClass error:
"Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes." for line 32
Adding my first 32 lines of the project, excluding imports:
@RunWith(RobolectricTestRunner.class)
@PowerMockIgnore(
)
@PrepareForTest(ActivityRecognitionResult.class)
public class MobilityStatusFetcherIntentServiceTest {
@SuppressWarnings("checkstyle:visibilitymodifier")
@SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD",
justification = "Bootstrap PowerMock using a JUnit Rule instead of using the PowerMockRunner and the RunWith annotation.")
@Rule public PowerMockRule powerMockRule = new PowerMockRule();
The line that starts with @Rule is line 32.
Attachments
Issue Links
- depends upon
-
MPMD-218 Update to PMD 5.3.5
- Closed