You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by rz...@apache.org on 2026/08/20 10:45:48 UTC

(openjpa) 01/02: [OPENJPA-2978] Fix typos and stray semicolon in SchemaManagerImpl

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

rzo1 pushed a commit to branch OPENJPA-2978
in repository https://gitbox.apache.org/repos/asf/openjpa.git

commit 8719892cdadd22aa2b9d614c4a428b9decea8ec6
Author: Richard Zowalla <rz...@apache.org>
AuthorDate: Thu Aug 20 12:36:48 2026 +0200

    [OPENJPA-2978] Fix typos and stray semicolon in SchemaManagerImpl
    
    Removes the stray second semicolon in truncate(), drops the redundant
    (Exception) cast when constructing SchemaValidationException, and corrects
    the 'concretelly' javadoc typo. The Strucuture/Struture method name typos
    reported in review were already corrected on master and need no change.
---
 .../java/org/apache/openjpa/persistence/SchemaManagerImpl.java     | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/SchemaManagerImpl.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/SchemaManagerImpl.java
index bbf6c78c8..0d3b6dad2 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/SchemaManagerImpl.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/SchemaManagerImpl.java
@@ -25,7 +25,7 @@ import jakarta.persistence.SchemaValidationException;
 
 /**
  * Implements a no-op SchemaManager object that will throw
- * UnsupportedOperationException if not concretelly implemented
+ * UnsupportedOperationException if not concretely implemented
  * by the given persistence layer.
  *
  * @author Paulo Cristovão Filho
@@ -54,13 +54,12 @@ public class SchemaManagerImpl implements SchemaManager {
             _factory.validatePersistenceStructure();
         } catch (Exception ex) {
             throw new SchemaValidationException(
-                    String.format("Schema could not be validated: %s", ex.getLocalizedMessage()),
-                    (Exception) ex);
+                    String.format("Schema could not be validated: %s", ex.getLocalizedMessage()), ex);
         }
     }
 
     @Override
     public void truncate() {
-        _factory.truncateData();;
+        _factory.truncateData();
     }
 }