From e815d114b0275aa42dbb63b94c0a485eb2c8e85f Mon Sep 17 00:00:00 2001 From: brinn <brinn> Date: Thu, 4 Oct 2012 21:29:48 +0000 Subject: [PATCH] Move AnnotationUtils to package reflections. SVN: 27021 --- .../java/ch/systemsx/cisd/common/parser/BeanAnalyzer.java | 2 +- .../common/{utilities => reflection}/AnnotationUtils.java | 2 +- .../{utilities => reflection}/AnnotationUtilsTest.java | 6 +++--- .../generic/server/DssServiceRpcAuthorizationAdvisor.java | 4 ++-- .../generic/server/authorization/AuthorizationAdvisor.java | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) rename common/source/java/ch/systemsx/cisd/common/{utilities => reflection}/AnnotationUtils.java (99%) rename common/sourceTest/java/ch/systemsx/cisd/common/{utilities => reflection}/AnnotationUtilsTest.java (96%) diff --git a/common/source/java/ch/systemsx/cisd/common/parser/BeanAnalyzer.java b/common/source/java/ch/systemsx/cisd/common/parser/BeanAnalyzer.java index 3c3fafa51b2..49c61d738b3 100644 --- a/common/source/java/ch/systemsx/cisd/common/parser/BeanAnalyzer.java +++ b/common/source/java/ch/systemsx/cisd/common/parser/BeanAnalyzer.java @@ -27,7 +27,7 @@ import java.util.TreeSet; import org.apache.commons.lang.StringUtils; import ch.systemsx.cisd.common.annotation.BeanProperty; -import ch.systemsx.cisd.common.utilities.AnnotationUtils; +import ch.systemsx.cisd.common.reflection.AnnotationUtils; /** * A <i>Bean</i> class analyzer. diff --git a/common/source/java/ch/systemsx/cisd/common/utilities/AnnotationUtils.java b/common/source/java/ch/systemsx/cisd/common/reflection/AnnotationUtils.java similarity index 99% rename from common/source/java/ch/systemsx/cisd/common/utilities/AnnotationUtils.java rename to common/source/java/ch/systemsx/cisd/common/reflection/AnnotationUtils.java index e503b8b3dde..6eeb1d112e5 100644 --- a/common/source/java/ch/systemsx/cisd/common/utilities/AnnotationUtils.java +++ b/common/source/java/ch/systemsx/cisd/common/reflection/AnnotationUtils.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package ch.systemsx.cisd.common.utilities; +package ch.systemsx.cisd.common.reflection; import java.lang.annotation.Annotation; import java.lang.reflect.Field; diff --git a/common/sourceTest/java/ch/systemsx/cisd/common/utilities/AnnotationUtilsTest.java b/common/sourceTest/java/ch/systemsx/cisd/common/reflection/AnnotationUtilsTest.java similarity index 96% rename from common/sourceTest/java/ch/systemsx/cisd/common/utilities/AnnotationUtilsTest.java rename to common/sourceTest/java/ch/systemsx/cisd/common/reflection/AnnotationUtilsTest.java index 202a1255b86..a892c9c7f23 100644 --- a/common/sourceTest/java/ch/systemsx/cisd/common/utilities/AnnotationUtilsTest.java +++ b/common/sourceTest/java/ch/systemsx/cisd/common/reflection/AnnotationUtilsTest.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package ch.systemsx.cisd.common.utilities; +package ch.systemsx.cisd.common.reflection; import static org.testng.AssertJUnit.assertEquals; import static org.testng.AssertJUnit.assertFalse; @@ -27,7 +27,8 @@ import java.util.List; import org.testng.annotations.Test; import ch.systemsx.cisd.common.annotation.BeanProperty; -import ch.systemsx.cisd.common.utilities.AnnotationUtils.Parameter; +import ch.systemsx.cisd.common.reflection.AnnotationUtils; +import ch.systemsx.cisd.common.reflection.AnnotationUtils.Parameter; /** * Test cases for the {@link AnnotationUtils} class. @@ -128,7 +129,6 @@ public final class AnnotationUtilsTest @SuppressWarnings("unused") protected Object b; - @SuppressWarnings("unused") @BeanProperty protected void setA(final Object a) { diff --git a/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/DssServiceRpcAuthorizationAdvisor.java b/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/DssServiceRpcAuthorizationAdvisor.java index 0603d9d103f..cf2020165dd 100644 --- a/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/DssServiceRpcAuthorizationAdvisor.java +++ b/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/DssServiceRpcAuthorizationAdvisor.java @@ -32,10 +32,10 @@ import ch.systemsx.cisd.common.exceptions.AuthorizationFailureException; import ch.systemsx.cisd.common.exceptions.Status; import ch.systemsx.cisd.common.logging.LogCategory; import ch.systemsx.cisd.common.logging.LogFactory; +import ch.systemsx.cisd.common.reflection.AnnotationUtils; import ch.systemsx.cisd.common.reflection.ClassUtils; import ch.systemsx.cisd.common.reflection.MethodUtils; -import ch.systemsx.cisd.common.utilities.AnnotationUtils; -import ch.systemsx.cisd.common.utilities.AnnotationUtils.Parameter; +import ch.systemsx.cisd.common.reflection.AnnotationUtils.Parameter; import ch.systemsx.cisd.openbis.dss.generic.shared.IShareIdManager; import ch.systemsx.cisd.openbis.dss.generic.shared.ServiceProvider; import ch.systemsx.cisd.openbis.dss.generic.shared.api.internal.authorization.AuthorizationGuard; diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/authorization/AuthorizationAdvisor.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/authorization/AuthorizationAdvisor.java index 9c1fc4438e3..e83dec0a9d2 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/authorization/AuthorizationAdvisor.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/authorization/AuthorizationAdvisor.java @@ -36,9 +36,9 @@ import ch.systemsx.cisd.common.exceptions.Status; import ch.systemsx.cisd.common.exceptions.StatusFlag; import ch.systemsx.cisd.common.logging.LogCategory; import ch.systemsx.cisd.common.logging.LogFactory; +import ch.systemsx.cisd.common.reflection.AnnotationUtils; import ch.systemsx.cisd.common.reflection.MethodUtils; -import ch.systemsx.cisd.common.utilities.AnnotationUtils; -import ch.systemsx.cisd.common.utilities.AnnotationUtils.Parameter; +import ch.systemsx.cisd.common.reflection.AnnotationUtils.Parameter; import ch.systemsx.cisd.openbis.generic.server.authorization.annotation.AuthorizationGuard; import ch.systemsx.cisd.openbis.generic.server.authorization.annotation.RolesAllowed; import ch.systemsx.cisd.openbis.generic.server.util.MethodInvocationUtils; -- GitLab