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

Move all utility classes into a separate module #194

Closed
wants to merge 2 commits into from

Conversation

notjuanortiz
Copy link
Contributor

Description

Extracts a majority of the utility classes into a separate module. I've made changes to the existing API to avoid package conflicts between the parent module and the newly introduced util module.

The util module consists of the following package structure

  • io.luna.util.common
  • io.luna.util.concurrent
  • io.luna.util.parser

The remaining utility classes in the parent module will not, and should, be included into the new module since they are tightly coupled to the module they are currently in. In doing so, we're also able to create and maintain a unidirectional dependency tree.

@notjuanortiz notjuanortiz changed the title Extract util classes into a module Extract util classes into module Dec 16, 2019
@notjuanortiz
Copy link
Contributor Author

notjuanortiz commented Dec 16, 2019

This also contributes to #180 and #176

@TravisBuddy
Copy link

Hey @notjuanortiz,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: f9447170-2056-11ea-8d2e-279a4df7ebeb

@notjuanortiz notjuanortiz changed the title Extract util classes into module Extract util classes into separate module Dec 17, 2019
Comment on lines -9 to -14
import java.util.concurrent.Executor;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.*;
import java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy;
import java.util.concurrent.TimeUnit;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we prohibiting wildcard imports?

@notjuanortiz notjuanortiz changed the title Extract util classes into separate module Move all utility classes into a separate module Jan 22, 2020
@notjuanortiz
Copy link
Contributor Author

After putting more thought into it, the entire util package is just going to lead to more technical debt so it's best if we just pretend like this PR never happened 🙅‍♂

@notjuanortiz notjuanortiz deleted the extract-util branch March 2, 2020 22:56
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