hentai icon indicating copy to clipboard operation
hentai copied to clipboard

Shouldn't FilmFacade constructor be package private?

Open mkrzywanski opened this issue 2 years ago • 3 comments

Just a simple question. Shouldn't FilmFacade constructor be defined as package private? Right now it is defined as public but client code cannot instantiate it with it because it's dependencies are package private so client code (for example in different package) cannot use it. It can be instantiated only by using Spring and having FilmConfiguration class scanned.

mkrzywanski avatar Nov 04 '21 08:11 mkrzywanski

You are correct, that should be package scoped. Perhaps I should update this sample project.

jakubnabrdalik avatar Nov 04 '21 10:11 jakubnabrdalik

I can file a PR for this simple change if you want.

mkrzywanski avatar Nov 04 '21 10:11 mkrzywanski

If you'd like to, sure, but I'm thinking about updating the whole thing to a more up-to-date version (I implement these requirements live a few time every year).

jakubnabrdalik avatar Nov 04 '21 10:11 jakubnabrdalik