From 3170e3c96e8d9eefc8ccc887902f605a69b981b7 Mon Sep 17 00:00:00 2001 From: worldpeacez0991 <36908871+worldpeacez0991@users.noreply.github.com> Date: Fri, 8 Mar 2019 14:56:15 +0800 Subject: [PATCH] Update CourseService.java From beanutils.java, The method copyProperties(Object dest, Object orig) is improperly used in this example. --- .../main/java/com/baeldung/commons/beanutils/CourseService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries-apache-commons/src/main/java/com/baeldung/commons/beanutils/CourseService.java b/libraries-apache-commons/src/main/java/com/baeldung/commons/beanutils/CourseService.java index 538fa3accb..2c7644fd64 100644 --- a/libraries-apache-commons/src/main/java/com/baeldung/commons/beanutils/CourseService.java +++ b/libraries-apache-commons/src/main/java/com/baeldung/commons/beanutils/CourseService.java @@ -29,6 +29,6 @@ public class CourseService { } public static void copyProperties(Course course, CourseEntity courseEntity) throws IllegalAccessException, InvocationTargetException { - BeanUtils.copyProperties(course, courseEntity); + BeanUtils.copyProperties(courseEntity, course); } }