You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by nt...@apache.org on 2022/10/04 12:08:15 UTC

[cayenne] branch master updated: Fix typo

This is an automated email from the ASF dual-hosted git repository.

ntimofeev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git


The following commit(s) were added to refs/heads/master by this push:
     new f8149e307 Fix typo
f8149e307 is described below

commit f8149e307f6a5f644c18d5aaaee9444fdfa83177
Author: Nikita Timofeev <st...@gmail.com>
AuthorDate: Tue Oct 4 15:08:00 2022 +0300

    Fix typo
---
 cayenne-server/src/main/java/org/apache/cayenne/Cayenne.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/cayenne-server/src/main/java/org/apache/cayenne/Cayenne.java b/cayenne-server/src/main/java/org/apache/cayenne/Cayenne.java
index 4f9cc2ab6..eaf2ab203 100644
--- a/cayenne-server/src/main/java/org/apache/cayenne/Cayenne.java
+++ b/cayenne-server/src/main/java/org/apache/cayenne/Cayenne.java
@@ -81,16 +81,16 @@ public class Cayenne {
     /**
      * Returns property descriptor for specified property.
      * 
-     * @param properyName
+     * @param propertyName
      *            path to the property
      * @return property descriptor, <code>null</code> if not found
      */
-    public static PropertyDescriptor getProperty(Persistent object, String properyName) {
+    public static PropertyDescriptor getProperty(Persistent object, String propertyName) {
         ClassDescriptor descriptor = getClassDescriptor(object);
         if (descriptor == null) {
             return null;
         }
-        return descriptor.getProperty(properyName);
+        return descriptor.getProperty(propertyName);
     }
 
     /**
@@ -210,7 +210,7 @@ public class Cayenne {
         return readNestedProperty(property, pathRemainder);
     }
 
-    private static final Object readSimpleProperty(Object o, String propertyName) {
+    private static Object readSimpleProperty(Object o, String propertyName) {
         if (o instanceof Persistent) {
 
             PropertyDescriptor property = getProperty((Persistent) o, propertyName);