Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add findbugs maven plugin #973

Merged
merged 42 commits into from
Jan 19, 2017
Merged

Add findbugs maven plugin #973

merged 42 commits into from
Jan 19, 2017

Conversation

aelred
Copy link
Contributor

@aelred aelred commented Jan 18, 2017

  • This plugin runs during the verify stage like PMD
  • Detects likely bugs by inspecting the bytecode

Several refactors, including:

  • Replace some mutable objects with immutable ones where appropriate
  • Only mutate static fields in static methods
  • Replace any incorrect "clone" implementations with custom "copy" methods
  • Use explicit encodings instead of assuming the default system encoding
  • Use StringBuilder when building strings in loops
  • Refactor GraqlShell so REPL executes in a single thread (using a queue of server messages)
  • Remove buggy GraqlShell behaviour to intercept SIGINT (that used internal sun classes)
  • Add default cases to all switch statements

fppt and others added 11 commits January 17, 2017 14:06
This used internal sun classes to operate and didn't work very well.
Conflicts:
	grakn-engine/src/main/java/ai/grakn/engine/session/GraqlSession.java
	grakn-graql/src/main/java/ai/grakn/graql/internal/reasoner/query/ReasonerAtomicQuery.java
	grakn-test/src/test/java/ai/grakn/test/graql/reasoner/AtomicQueryTest.java
@codecov-io
Copy link

codecov-io commented Jan 18, 2017

Current coverage is 28.21% (diff: 33.94%)

Merging #973 into master will increase coverage by 0.04%

@@             master       #973   diff @@
==========================================
  Files           235        234     -1   
  Lines          8641       8640     -1   
  Methods           0          0          
  Messages          0          0          
  Branches       1268       1266     -2   
==========================================
+ Hits           2434       2438     +4   
+ Misses         6073       6067     -6   
- Partials        134        135     +1   

Powered by Codecov. Last update 06e68c3...f49de6a

@aelred aelred requested a review from fppt January 19, 2017 10:02
@fppt fppt merged commit ef3ed9b into typedb:master Jan 19, 2017
@aelred aelred deleted the findbugs branch January 19, 2017 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants