Skip to content

intelliJ inspections cleanup#9260

Merged
gianm merged 6 commits intoapache:masterfrom
suneet-s:inspections-1
Jan 29, 2020
Merged

intelliJ inspections cleanup#9260
gianm merged 6 commits intoapache:masterfrom
suneet-s:inspections-1

Conversation

@suneet-s
Copy link
Contributor

  • remove redundant escapes
  • performance warnings
  • access static member via instance reference
  • static method declared final
  • inner class may be static

Most of these changes are aesthetic, however, they will allow inspections to
be enabled as part of CI checks going forward

The valuable changes in this delta are:

  • using StringBuilder instead of string addition in a loop
    indexing-hadoop/.../Utils.java
    processing/.../ByteBufferMinMaxOffsetHeap.java
  • Use class variables instead of static variables for parameterized test
    processing/src/.../ScanQueryLimitRowIteratorTest.java

- remove redundant escapes
- performance warnings
- access static member via instance reference
- static method declared final
- inner class may be static

Most of these changes are aesthetic, however, they will allow inspections to
be enabled as part of CI checks going forward

The valuable changes in this delta are:
- using StringBuilder instead of string addition in a loop
    indexing-hadoop/.../Utils.java
    processing/.../ByteBufferMinMaxOffsetHeap.java
- Use class variables instead of static variables for parameterized test
    processing/src/.../ScanQueryLimitRowIteratorTest.java
@ccaominh
Copy link
Contributor

If all the inspection warnings have been fixed, consider updating the Druid inspection profile to flag the relevant inspection types as errors so that CI prevents adding new occurrences.

@gianm gianm added the Area - Dev For items related to the project itself, like dev docs and checklists, but not CI label Jan 29, 2020
@gianm gianm merged commit 303b02e into apache:master Jan 29, 2020
gianm added a commit to gianm/druid that referenced this pull request Jan 31, 2020
I think a mid-air collision between apache#9260 and apache#9293 has led to
master being unable to pass insepctions in TeamCity. Hopefully
this fixes it.
gianm added a commit that referenced this pull request Jan 31, 2020
I think a mid-air collision between #9260 and #9293 has led to
master being unable to pass insepctions in TeamCity. Hopefully
this fixes it.
@jihoonson jihoonson added this to the 0.18.0 milestone Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area - Dev For items related to the project itself, like dev docs and checklists, but not CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants