krypton-org / krypton-android

Krypton client for Android applications and the JVM.
MIT License
0 stars 0 forks source link

Avoid code repetition #5

Open nicobao opened 4 years ago

nicobao commented 4 years ago

I notice in KryptonClient Data inner class, the same code is reused again and again in multiple methods (login, delete, recoverPassword...etc). Better practice is to use the same method with different parameter. For these kind of purpose, probably we can benefit from the functional features provided by later versions of Java.