• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.junit.runners.model;
2 
3 import java.lang.annotation.Annotation;
4 import java.util.List;
5 
6 abstract class FrameworkMember<T extends FrameworkMember<T>> {
7 	/**
8 	 * Returns the annotations on this method
9 	 */
getAnnotations()10 	abstract Annotation[] getAnnotations();
11 
isShadowedBy(T otherMember)12 	abstract boolean isShadowedBy(T otherMember);
13 
isShadowedBy(List<T> members)14 	boolean isShadowedBy(List<T> members) {
15 		for (T each : members)
16 			if (isShadowedBy(each))
17 				return true;
18 		return false;
19 	}
20 }
21