fix: Make mapper static

This commit is contained in:
Krrish Ghimire
2019-12-03 23:29:08 +05:45
parent 8fc1410cd0
commit 7a7d25635e
2 changed files with 3 additions and 9 deletions

View File

@@ -3,7 +3,7 @@ package np.com.krrish;
import java.lang.reflect.*;
public class Mapper {
public Object map(Object source, String destination) {
public static Object map(Object source, String destination) {
Object object = new Object();
try {
Class<?> aClass = Class.forName(destination);