Allon Mureinik has uploaded a new change for review.

Change subject: core: Remove ReflectionUtils.getSizeAnnotation
......................................................................

core: Remove ReflectionUtils.getSizeAnnotation

This method is not used anywhere in the codebase, and can safely be
removed.

Change-Id: I2b5d1bd7ca6fc9fe973fefcd3037e95880bda754
Signed-off-by: Allon Mureinik <[email protected]>
---
M 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ReflectionUtils.java
1 file changed, 0 insertions(+), 18 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/96/18996/1

diff --git 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ReflectionUtils.java
 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ReflectionUtils.java
index 5c036fe..708ecae 100644
--- 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ReflectionUtils.java
+++ 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ReflectionUtils.java
@@ -1,8 +1,6 @@
 package org.ovirt.engine.core.utils;
 
-import java.lang.annotation.Annotation;
 import java.lang.reflect.Constructor;
-import java.lang.reflect.Field;
 
 
 
@@ -90,21 +88,5 @@
         } catch (ClassNotFoundException e) {
             throw new IllegalStateException(e);
         }
-    }
-
-
-    /**
-     * Get a Field Size annotation
-     * @param f
-     * @return
-     */
-    public static Annotation getSizeAnnotation(Field f) {
-        Annotation[] annotations = (Annotation[]) f.getAnnotations();
-        for(Annotation annotation : annotations){
-            if(annotation instanceof javax.validation.constraints.Size){
-                return annotation;
-            }
-        }
-        return null;
     }
 }


-- 
To view, visit http://gerrit.ovirt.org/18996
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2b5d1bd7ca6fc9fe973fefcd3037e95880bda754
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to