HHH-12378 JDK 9 support: Remove javax.annotation.Generated usage

This commit is contained in:
Réda Housni Alaoui 2018-03-11 21:22:18 +01:00 committed by Sanne Grinovero
parent 0c7e29b4d3
commit 884569f9cc
1 changed files with 1 additions and 2 deletions

View File

@ -13,7 +13,6 @@ import java.io.StringWriter;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import javax.annotation.Generated;
import javax.annotation.processing.FilerException;
import javax.lang.model.element.Element;
import javax.lang.model.element.TypeElement;
@ -199,7 +198,7 @@ public final class ClassWriter {
private static String writeGeneratedAnnotation(MetaEntity entity, Context context) {
StringBuilder generatedAnnotation = new StringBuilder();
generatedAnnotation.append( "@" )
.append( entity.importType( Generated.class.getName() ) )
.append( entity.importType( "javax.annotation.Generated" ) )
.append( "(value = \"" )
.append( JPAMetaModelEntityProcessor.class.getName() );
if ( context.addGeneratedDate() ) {