Skip to main content

All Questions

0 votes
1 answer
204 views

Common methods for swapping out a library

I am trying to come up with a solution to replace joda-time with java 8 time in our product. The code-base encompasses many projects of which some import joda-time directly and some transitively. To ...
Kratt's user avatar
  • 11
7 votes
1 answer
15k views

What should I use for @Nullable if I used the lombok @NonNull?

I am using the lombok @NonNull annotation for some of my fields, parameters and methods, partly for null checking, and also partly for documentation purpose. It is then confusing if I added a @NonNull/...
SOFe's user avatar
  • 708
3 votes
1 answer
3k views

What is the difference between a 3rd party lib and a plugin

What is the difference between a 3rd party lib and a plugin? How do I choose what should be pushed to these repos? plugins-release-local = Your and 3rd party plugins (releases) plugins-snapshot-...
Dave's user avatar
  • 141
21 votes
6 answers
22k views

Wrapping third party library is best practice [duplicate]

I came across with following statements while reading the Clean Code book of Robert C. Martin. Chapter : 7 : Error Handling Page No : 109 ..In fact, wrapping third-party APIs is a best practice....
Akash's user avatar
  • 405
13 votes
3 answers
4k views

How does one keep argument counts low and still keep third party dependencies separate?

I use a third party library. They pass me a POJO that, for our intents and purposes, is probably implemented like this: public class OurData { private String foo; private String bar; private ...
durron597's user avatar
  • 7,610
2 votes
2 answers
2k views

Refactoring two classes from third-party library that could have extended a base class

I have two Classes, with very similar behaviors, both from a third party library. Both needs to be populated with some value object and sent to specific queues in order for logging. Please note both ...
ring bearer's user avatar
4 votes
1 answer
746 views

Getting into Guava

So I recently started using Netty for my applications client/server communication and I discovered I loved the idea of listenable Futures. I wondered why I didn't know about Java being able to do this,...
durron597's user avatar
  • 7,610
2 votes
2 answers
3k views

Forward and backward fourier transform image in java

Can anyone suggest a java library to perform forward and backward Fourier transform on images? Either RGB or gray-scale or binary , that doesn't matter since I've converted the image to all these ;) ...
COD3BOY's user avatar
  • 233