You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-commits@db.apache.org by mb...@apache.org on 2023/03/09 20:16:58 UTC

[db-jdo] branch main updated: JDO-823: : Fix more sonarcloud issues of type Code Smells - Constructors of an „abstract" class should not be declared "public"

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

mbo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/db-jdo.git


The following commit(s) were added to refs/heads/main by this push:
     new 6a95c712 JDO-823: : Fix more sonarcloud issues of type Code Smells - Constructors of an „abstract" class should not be declared "public"
6a95c712 is described below

commit 6a95c7124b7b0930818e9e419fe6397d080972ee
Author: Michael Bouschen <Mi...@akquinet.de>
AuthorDate: Thu Mar 9 21:16:50 2023 +0100

    JDO-823: : Fix more sonarcloud issues of type Code Smells - Constructors of an „abstract" class should not be declared "public"
---
 api/src/main/java/javax/jdo/identity/SingleFieldIdentity.java | 2 +-
 tck/src/main/resources/conf/jdo-signatures.txt                | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/api/src/main/java/javax/jdo/identity/SingleFieldIdentity.java b/api/src/main/java/javax/jdo/identity/SingleFieldIdentity.java
index 1e18643c..cd76844e 100644
--- a/api/src/main/java/javax/jdo/identity/SingleFieldIdentity.java
+++ b/api/src/main/java/javax/jdo/identity/SingleFieldIdentity.java
@@ -75,7 +75,7 @@ public abstract class SingleFieldIdentity<SUBCLASS extends SingleFieldIdentity<S
    *
    * @since 2.0
    */
-  public SingleFieldIdentity() {}
+  protected SingleFieldIdentity() {}
 
   /**
    * Set the given key as the key for this instance. Compute the hash code for the instance.
diff --git a/tck/src/main/resources/conf/jdo-signatures.txt b/tck/src/main/resources/conf/jdo-signatures.txt
index 88aa9e3c..77425de0 100644
--- a/tck/src/main/resources/conf/jdo-signatures.txt
+++ b/tck/src/main/resources/conf/jdo-signatures.txt
@@ -418,7 +418,7 @@ public class javax.jdo.identity.ShortIdentity extends javax.jdo.identity.SingleF
 }
 
 public abstract class javax.jdo.identity.SingleFieldIdentity implements java.io.Externalizable, java.lang.Comparable {
-    public SingleFieldIdentity();
+    protected SingleFieldIdentity();
     public Class getTargetClass();
     public String getTargetClassName();
     public synchronized Object getKeyAsObject();