This commit is contained in:
Claudio Atzori 2024-07-17 11:44:54 +02:00
parent 50d4db8b04
commit 59b942b2a8
2 changed files with 2 additions and 4 deletions

View File

@ -1,8 +1,6 @@
package eu.dnetlib.dhp.schema.common;
import eu.dnetlib.dhp.schema.oaf.OafEntity;
/** Actual entity types in the Graph */
public enum EntityType {
publication, dataset, otherresearchproduct, software, datasource, organization, project, person;
@ -14,7 +12,7 @@ public enum EntityType {
* @param <T> actual OafEntity subclass
* @return the EntityType associated to the given class
*/
public static <T extends Object> EntityType fromClass(Class<T> clazz) {
public static <T> EntityType fromClass(Class<T> clazz) {
return EntityType.valueOf(clazz.getSimpleName().toLowerCase());
}

View File

@ -212,7 +212,7 @@ public class ModelSupport {
private ModelSupport() {
}
public static <E extends Object> String getIdPrefix(Class<E> clazz) {
public static <E> String getIdPrefix(Class<E> clazz) {
return idPrefixMap.get(clazz);
}