@SuppressWarnings({"UnusedDeclaration"}) -> @SuppressWarnings("unused")
Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
9cf4bd8251
commit
0dd2defc89
|
@ -266,7 +266,7 @@ public class C3P0ConnectionProvider
|
||||||
*
|
*
|
||||||
* @deprecated Use {@link #stop} instead
|
* @deprecated Use {@link #stop} instead
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public void close() {
|
public void close() {
|
||||||
stop();
|
stop();
|
||||||
|
|
|
@ -71,7 +71,6 @@ public enum ReplicationMode {
|
||||||
/**
|
/**
|
||||||
* Determine whether the mode dictates that the data being replicated should overwrite the data found.
|
* Determine whether the mode dictates that the data being replicated should overwrite the data found.
|
||||||
*
|
*
|
||||||
* @param entity The entity being replicated
|
|
||||||
* @param currentVersion The version currently on the target database table.
|
* @param currentVersion The version currently on the target database table.
|
||||||
* @param newVersion The replicating version
|
* @param newVersion The replicating version
|
||||||
* @param versionType The version type
|
* @param versionType The version type
|
||||||
|
|
|
@ -41,7 +41,7 @@ public abstract class AbstractArchiveDescriptor implements ArchiveDescriptor {
|
||||||
return entryBasePrefix.startsWith( "/" ) ? entryBasePrefix.substring( 1 ) : entryBasePrefix;
|
return entryBasePrefix.startsWith( "/" ) ? entryBasePrefix.substring( 1 ) : entryBasePrefix;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
protected ArchiveDescriptorFactory getArchiveDescriptorFactory() {
|
protected ArchiveDescriptorFactory getArchiveDescriptorFactory() {
|
||||||
return archiveDescriptorFactory;
|
return archiveDescriptorFactory;
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,7 +68,7 @@ class TypeSafeActivator {
|
||||||
*
|
*
|
||||||
* @param object The supplied ValidatorFactory instance.
|
* @param object The supplied ValidatorFactory instance.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public static void validateSuppliedFactory(Object object) {
|
public static void validateSuppliedFactory(Object object) {
|
||||||
if ( !(object instanceof ValidatorFactory) ) {
|
if ( !(object instanceof ValidatorFactory) ) {
|
||||||
throw new IntegrationException(
|
throw new IntegrationException(
|
||||||
|
@ -78,7 +78,7 @@ class TypeSafeActivator {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public static void activate(ActivationContext activationContext) {
|
public static void activate(ActivationContext activationContext) {
|
||||||
final ValidatorFactory factory;
|
final ValidatorFactory factory;
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -64,17 +64,17 @@ public class NaturalIdCacheKey implements Serializable {
|
||||||
return from( naturalIdValues, persister, persister.getRootEntityName(), session );
|
return from( naturalIdValues, persister, persister.getRootEntityName(), session );
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings( {"UnusedDeclaration"})
|
@SuppressWarnings("unused")
|
||||||
public String getEntityName() {
|
public String getEntityName() {
|
||||||
return entityName;
|
return entityName;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings( {"UnusedDeclaration"})
|
@SuppressWarnings("unused")
|
||||||
public String getTenantId() {
|
public String getTenantId() {
|
||||||
return tenantId;
|
return tenantId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings( {"UnusedDeclaration"})
|
@SuppressWarnings("unused")
|
||||||
public Object getNaturalIdValues() {
|
public Object getNaturalIdValues() {
|
||||||
return naturalIdValues;
|
return naturalIdValues;
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,7 +125,7 @@ public class PersistentArrayHolder<E> extends AbstractPersistentCollection<E> {
|
||||||
attributeMapping.getPropertyAccess().getSetter().set( getOwner(), array );
|
attributeMapping.getPropertyAccess().getSetter().set( getOwner(), array );
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public Object getArray() {
|
public Object getArray() {
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class PersistentBag<E> extends AbstractPersistentCollection<E> implements
|
||||||
/**
|
/**
|
||||||
* Constructs a PersistentBag. Needed for SOAP libraries, etc
|
* Constructs a PersistentBag. Needed for SOAP libraries, etc
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public PersistentBag() {
|
public PersistentBag() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -497,7 +497,7 @@ public class PersistentBag<E> extends AbstractPersistentCollection<E> implements
|
||||||
*
|
*
|
||||||
* @return The number of occurrences.
|
* @return The number of occurrences.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public int occurrences(Object o) {
|
public int occurrences(Object o) {
|
||||||
read();
|
read();
|
||||||
final Iterator<E> itr = bag.iterator();
|
final Iterator<E> itr = bag.iterator();
|
||||||
|
|
|
@ -54,7 +54,7 @@ public class PersistentIdentifierBag<E> extends AbstractPersistentCollection<E>
|
||||||
/**
|
/**
|
||||||
* Constructs a PersistentIdentifierBag. This form needed for SOAP libraries, etc
|
* Constructs a PersistentIdentifierBag. This form needed for SOAP libraries, etc
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public PersistentIdentifierBag() {
|
public PersistentIdentifierBag() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class PersistentSortedMap<K,E> extends PersistentMap<K,E> implements Sort
|
||||||
/**
|
/**
|
||||||
* Constructs a PersistentSortedMap. This form needed for SOAP libraries, etc
|
* Constructs a PersistentSortedMap. This form needed for SOAP libraries, etc
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public PersistentSortedMap() {
|
public PersistentSortedMap() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class PersistentSortedSet<E> extends PersistentSet<E> implements SortedSe
|
||||||
/**
|
/**
|
||||||
* Constructs a PersistentSortedSet. This form needed for SOAP libraries, etc
|
* Constructs a PersistentSortedSet. This form needed for SOAP libraries, etc
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public PersistentSortedSet() {
|
public PersistentSortedSet() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,6 @@ public interface ColumnAliasExtractor {
|
||||||
/**
|
/**
|
||||||
* An extractor which uses {@link ResultSetMetaData#getColumnName}
|
* An extractor which uses {@link ResultSetMetaData#getColumnName}
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
ColumnAliasExtractor COLUMN_NAME_EXTRACTOR = ResultSetMetaData::getColumnName;
|
ColumnAliasExtractor COLUMN_NAME_EXTRACTOR = ResultSetMetaData::getColumnName;
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@ public class DatasourceConnectionProviderImpl implements ConnectionProvider, Con
|
||||||
}
|
}
|
||||||
|
|
||||||
@InjectService( required = false )
|
@InjectService( required = false )
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setJndiService(JndiService jndiService) {
|
public void setJndiService(JndiService jndiService) {
|
||||||
this.jndiService = jndiService;
|
this.jndiService = jndiService;
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,7 +176,7 @@ public final class JtaStatusHelper {
|
||||||
*
|
*
|
||||||
* @return True if the code indicates a roll back; false otherwise.
|
* @return True if the code indicates a roll back; false otherwise.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings( {"UnusedDeclaration"})
|
@SuppressWarnings("unused")
|
||||||
public static boolean isMarkedForRollback(int status) {
|
public static boolean isMarkedForRollback(int status) {
|
||||||
return status == Status.STATUS_MARKED_ROLLBACK;
|
return status == Status.STATUS_MARKED_ROLLBACK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,12 +31,12 @@ public class BaselineSessionEventsListenerBuilder {
|
||||||
this.autoListener = autoListener;
|
this.autoListener = autoListener;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public boolean isLogSessionMetrics() {
|
public boolean isLogSessionMetrics() {
|
||||||
return logSessionMetrics;
|
return logSessionMetrics;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public Class<? extends SessionEventListener> getAutoListener() {
|
public Class<? extends SessionEventListener> getAutoListener() {
|
||||||
return autoListener;
|
return autoListener;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ import org.hibernate.metamodel.CollectionClassification;
|
||||||
* @param <C> The attribute type (the collection type)
|
* @param <C> The attribute type (the collection type)
|
||||||
* @param <E> The collection element type
|
* @param <E> The collection element type
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public interface PluralAttributeMetadata<O, C, E> extends AttributeMetadata<O, C> {
|
public interface PluralAttributeMetadata<O, C, E> extends AttributeMetadata<O, C> {
|
||||||
/**
|
/**
|
||||||
* The classification of the collection, indicating the collection semantics
|
* The classification of the collection, indicating the collection semantics
|
||||||
|
|
|
@ -332,7 +332,7 @@ public abstract class AbstractQuery<R>
|
||||||
// JPA hint handling
|
// JPA hint handling
|
||||||
|
|
||||||
|
|
||||||
@SuppressWarnings( {"UnusedDeclaration"})
|
@SuppressWarnings("unused")
|
||||||
public Set<String> getSupportedHints() {
|
public Set<String> getSupportedHints() {
|
||||||
return AvailableHints.getDefinedHints();
|
return AvailableHints.getDefinedHints();
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,7 +141,7 @@ public class PatternRenderer {
|
||||||
* @param sqlAppender Target for appending
|
* @param sqlAppender Target for appending
|
||||||
* @param args The arguments to inject into the template
|
* @param args The arguments to inject into the template
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "UnusedDeclaration" })
|
@SuppressWarnings("unused")
|
||||||
public void render(
|
public void render(
|
||||||
SqlAppender sqlAppender,
|
SqlAppender sqlAppender,
|
||||||
List<? extends SqlAstNode> args,
|
List<? extends SqlAstNode> args,
|
||||||
|
|
|
@ -227,7 +227,7 @@ public class ByteCodeEnhancedImmutableReferenceCacheTest extends BaseCoreFunctio
|
||||||
@Immutable
|
@Immutable
|
||||||
@Cacheable
|
@Cacheable
|
||||||
@Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
|
@Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public static class MyEnhancedReferenceData implements ManagedEntity {
|
public static class MyEnhancedReferenceData implements ManagedEntity {
|
||||||
@Id
|
@Id
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
|
@ -89,7 +89,7 @@ public class ReferenceCacheTest extends BaseCoreFunctionalTestCase {
|
||||||
@Immutable
|
@Immutable
|
||||||
@Cacheable
|
@Cacheable
|
||||||
@Cache( usage = CacheConcurrencyStrategy.READ_ONLY )
|
@Cache( usage = CacheConcurrencyStrategy.READ_ONLY )
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public static class MyReferenceData {
|
public static class MyReferenceData {
|
||||||
@Id
|
@Id
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
|
@ -73,7 +73,7 @@ public class CascadeToComponentCollectionTest extends BaseCoreFunctionalTestCase
|
||||||
session.close();
|
session.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings( {"UnusedDeclaration"})
|
@SuppressWarnings("unused")
|
||||||
@Test
|
@Test
|
||||||
public void testMergingOriginallyNullComponent() {
|
public void testMergingOriginallyNullComponent() {
|
||||||
// step1, we create a definition with one value, but with a null component
|
// step1, we create a definition with one value, but with a null component
|
||||||
|
|
|
@ -41,13 +41,13 @@ public class SuppliedConnectionTest extends ConnectionManagementTestCase {
|
||||||
private Connection connectionUnderTest;
|
private Connection connectionUnderTest;
|
||||||
|
|
||||||
@BeforeClassOnce
|
@BeforeClassOnce
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
private void prepareConnectionProvider() {
|
private void prepareConnectionProvider() {
|
||||||
cp = ConnectionProviderBuilder.buildConnectionProvider();
|
cp = ConnectionProviderBuilder.buildConnectionProvider();
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterClassOnce
|
@AfterClassOnce
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
private void releaseConnectionProvider() {
|
private void releaseConnectionProvider() {
|
||||||
try {
|
try {
|
||||||
if ( cp instanceof Stoppable ) {
|
if ( cp instanceof Stoppable ) {
|
||||||
|
|
|
@ -329,7 +329,7 @@ public abstract class BaseJpaOrNativeBootstrapFunctionalTestCase extends BaseUni
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterClassOnce
|
@AfterClassOnce
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
protected void releaseSessionFactory() {
|
protected void releaseSessionFactory() {
|
||||||
if ( sessionFactory == null ) {
|
if ( sessionFactory == null ) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -50,7 +50,7 @@ public class JoinFetchProfileTest extends BaseCoreFunctionalTestCase {
|
||||||
cfg.setProperty( Environment.GENERATE_STATISTICS, true );
|
cfg.setProperty( Environment.GENERATE_STATISTICS, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings({ "UnusedDeclaration" })
|
@SuppressWarnings("unused")
|
||||||
private interface TestData {
|
private interface TestData {
|
||||||
Long getStudentId();
|
Long getStudentId();
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ import static org.junit.jupiter.api.Assertions.fail;
|
||||||
/**
|
/**
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "UnusedDeclaration" })
|
@SuppressWarnings("unused")
|
||||||
@BaseUnitTest
|
@BaseUnitTest
|
||||||
public abstract class AbstractHolderTest {
|
public abstract class AbstractHolderTest {
|
||||||
protected abstract IntegralDataTypeHolder makeHolder();
|
protected abstract IntegralDataTypeHolder makeHolder();
|
||||||
|
|
|
@ -41,7 +41,7 @@ import static org.junit.jupiter.api.Assertions.fail;
|
||||||
/**
|
/**
|
||||||
* @author Gail Badner
|
* @author Gail Badner
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "UnusedDeclaration" })
|
@SuppressWarnings("unused")
|
||||||
@SessionFactory(generateStatistics = true)
|
@SessionFactory(generateStatistics = true)
|
||||||
public abstract class AbstractEntityWithOneToManyTest {
|
public abstract class AbstractEntityWithOneToManyTest {
|
||||||
private boolean isContractPartiesInverse;
|
private boolean isContractPartiesInverse;
|
||||||
|
|
|
@ -275,7 +275,7 @@ public abstract class BaseEntityManagerFunctionalTestCase extends BaseUnitTestCa
|
||||||
|
|
||||||
|
|
||||||
@After
|
@After
|
||||||
@SuppressWarnings( {"UnusedDeclaration"})
|
@SuppressWarnings("unused")
|
||||||
public void releaseResources() {
|
public void releaseResources() {
|
||||||
try {
|
try {
|
||||||
releaseUnclosedEntityManagers();
|
releaseUnclosedEntityManagers();
|
||||||
|
|
|
@ -22,7 +22,7 @@ import static org.junit.jupiter.api.Assertions.assertNull;
|
||||||
*
|
*
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "UnusedDeclaration" })
|
@SuppressWarnings("unused")
|
||||||
@SessionFactory
|
@SessionFactory
|
||||||
public abstract class LongStringTest {
|
public abstract class LongStringTest {
|
||||||
private static final int LONG_STRING_SIZE = 10000;
|
private static final int LONG_STRING_SIZE = 10000;
|
||||||
|
|
|
@ -525,7 +525,7 @@ public class AttributeConverterTest extends BaseUnitTestCase {
|
||||||
// Entity declarations used in the test ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// Entity declarations used in the test ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
@Entity(name = "T1")
|
@Entity(name = "T1")
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public static class Tester {
|
public static class Tester {
|
||||||
@Id
|
@Id
|
||||||
private Long id;
|
private Long id;
|
||||||
|
@ -541,7 +541,7 @@ public class AttributeConverterTest extends BaseUnitTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Entity(name = "T2")
|
@Entity(name = "T2")
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public static class Tester2 {
|
public static class Tester2 {
|
||||||
@Id
|
@Id
|
||||||
private Long id;
|
private Long id;
|
||||||
|
@ -550,7 +550,7 @@ public class AttributeConverterTest extends BaseUnitTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Entity(name = "T3")
|
@Entity(name = "T3")
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public static class Tester3 {
|
public static class Tester3 {
|
||||||
@Id
|
@Id
|
||||||
private Long id;
|
private Long id;
|
||||||
|
@ -559,7 +559,7 @@ public class AttributeConverterTest extends BaseUnitTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Entity(name = "T4")
|
@Entity(name = "T4")
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public static class Tester4 {
|
public static class Tester4 {
|
||||||
@Id
|
@Id
|
||||||
private Long id;
|
private Long id;
|
||||||
|
@ -587,7 +587,7 @@ public class AttributeConverterTest extends BaseUnitTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Entity(name = "T5")
|
@Entity(name = "T5")
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public static class Tester5 {
|
public static class Tester5 {
|
||||||
@Id
|
@Id
|
||||||
private Long id;
|
private Long id;
|
||||||
|
@ -606,7 +606,7 @@ public class AttributeConverterTest extends BaseUnitTestCase {
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "irrelevantInstantEntity")
|
@Table(name = "irrelevantInstantEntity")
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public static class IrrelevantInstantEntity {
|
public static class IrrelevantInstantEntity {
|
||||||
@Id
|
@Id
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
|
@ -31,7 +31,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||||
* @author Burkhard Graves
|
* @author Burkhard Graves
|
||||||
* @author Gail Badner
|
* @author Gail Badner
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "UnusedDeclaration" })
|
@SuppressWarnings("unused")
|
||||||
public abstract class AbstractRecursiveBidirectionalOneToManyTest extends BaseSessionFactoryFunctionalTest {
|
public abstract class AbstractRecursiveBidirectionalOneToManyTest extends BaseSessionFactoryFunctionalTest {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -12,7 +12,7 @@ import java.util.Set;
|
||||||
/**
|
/**
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({"UnusedDeclaration"})
|
@SuppressWarnings("unused")
|
||||||
public class ManagedObject {
|
public class ManagedObject {
|
||||||
private Long moid;
|
private Long moid;
|
||||||
private int version;
|
private int version;
|
||||||
|
|
|
@ -16,7 +16,7 @@ import static org.junit.Assert.fail;
|
||||||
/**
|
/**
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings( {"UnusedDeclaration"})
|
@SuppressWarnings("unused")
|
||||||
public abstract class ResultCheckStyleTest extends BaseCoreFunctionalTestCase {
|
public abstract class ResultCheckStyleTest extends BaseCoreFunctionalTestCase {
|
||||||
public String getCacheConcurrencyStrategy() {
|
public String getCacheConcurrencyStrategy() {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -32,7 +32,7 @@ import static org.junit.Assert.assertTrue;
|
||||||
*
|
*
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings( {"UnusedDeclaration"})
|
@SuppressWarnings("unused")
|
||||||
public abstract class CustomSQLTestSupport extends BaseCoreFunctionalTestCase {
|
public abstract class CustomSQLTestSupport extends BaseCoreFunctionalTestCase {
|
||||||
public String getCacheConcurrencyStrategy() {
|
public String getCacheConcurrencyStrategy() {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -29,7 +29,7 @@ import static org.junit.Assert.fail;
|
||||||
*
|
*
|
||||||
* @author Gail Badner
|
* @author Gail Badner
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings( {"UnusedDeclaration"})
|
@SuppressWarnings("unused")
|
||||||
public abstract class CustomStoredProcTestSupport extends CustomSQLTestSupport {
|
public abstract class CustomStoredProcTestSupport extends CustomSQLTestSupport {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -676,7 +676,7 @@ public class NativeSQLQueriesTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings( {"UnusedDeclaration"})
|
@SuppressWarnings("unused")
|
||||||
public void testExplicitReturnAPI(SessionFactoryScope scope) {
|
public void testExplicitReturnAPI(SessionFactoryScope scope) {
|
||||||
Organization jboss = new Organization( "JBoss" );
|
Organization jboss = new Organization( "JBoss" );
|
||||||
Person me = new Person( "Steve" );
|
Person me = new Person( "Steve" );
|
||||||
|
|
|
@ -63,7 +63,7 @@ public class SequenceIdRevisionEntity implements Serializable {
|
||||||
return timestamp;
|
return timestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setTimestamp(long timestamp) {
|
public void setTimestamp(long timestamp) {
|
||||||
this.timestamp = timestamp;
|
this.timestamp = timestamp;
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,12 +35,12 @@ public class SequenceIdTrackingModifiedEntitiesRevisionEntity extends SequenceId
|
||||||
@ModifiedEntityNames
|
@ModifiedEntityNames
|
||||||
private Set<String> modifiedEntityNames = new HashSet<>();
|
private Set<String> modifiedEntityNames = new HashSet<>();
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public Set<String> getModifiedEntityNames() {
|
public Set<String> getModifiedEntityNames() {
|
||||||
return modifiedEntityNames;
|
return modifiedEntityNames;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setModifiedEntityNames(Set<String> modifiedEntityNames) {
|
public void setModifiedEntityNames(Set<String> modifiedEntityNames) {
|
||||||
this.modifiedEntityNames = modifiedEntityNames;
|
this.modifiedEntityNames = modifiedEntityNames;
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,7 +81,7 @@ public abstract class BaseEnversJPAFunctionalTestCase extends AbstractEnversTest
|
||||||
}
|
}
|
||||||
|
|
||||||
@BeforeClassOnce
|
@BeforeClassOnce
|
||||||
@SuppressWarnings({"UnusedDeclaration"})
|
@SuppressWarnings("unused")
|
||||||
public void buildEntityManagerFactory() throws Exception {
|
public void buildEntityManagerFactory() throws Exception {
|
||||||
log.trace( "Building EntityManagerFactory" );
|
log.trace( "Building EntityManagerFactory" );
|
||||||
|
|
||||||
|
@ -223,7 +223,7 @@ public abstract class BaseEnversJPAFunctionalTestCase extends AbstractEnversTest
|
||||||
}
|
}
|
||||||
|
|
||||||
@After
|
@After
|
||||||
@SuppressWarnings({"UnusedDeclaration"})
|
@SuppressWarnings("unused")
|
||||||
public void releaseUnclosedEntityManagers() {
|
public void releaseUnclosedEntityManagers() {
|
||||||
releaseUnclosedEntityManager( this.em );
|
releaseUnclosedEntityManager( this.em );
|
||||||
auditReader = null;
|
auditReader = null;
|
||||||
|
|
|
@ -25,7 +25,7 @@ public class Country {
|
||||||
/**
|
/**
|
||||||
* Default constructor for persistence provider.
|
* Default constructor for persistence provider.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({"UnusedDeclaration"})
|
@SuppressWarnings("unused")
|
||||||
private Country() {
|
private Country() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -335,7 +335,7 @@ public abstract class BaseCoreFunctionalTestCase extends BaseUnitTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterClassOnce
|
@AfterClassOnce
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
protected void releaseSessionFactory() {
|
protected void releaseSessionFactory() {
|
||||||
if ( sessionFactory == null ) {
|
if ( sessionFactory == null ) {
|
||||||
return;
|
return;
|
||||||
|
@ -358,7 +358,7 @@ public abstract class BaseCoreFunctionalTestCase extends BaseUnitTestCase {
|
||||||
|
|
||||||
@OnFailure
|
@OnFailure
|
||||||
@OnExpectedFailure
|
@OnExpectedFailure
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void onFailure() {
|
public void onFailure() {
|
||||||
if ( rebuildSessionFactoryOnError() ) {
|
if ( rebuildSessionFactoryOnError() ) {
|
||||||
rebuildSessionFactory();
|
rebuildSessionFactory();
|
||||||
|
|
|
@ -387,7 +387,7 @@ public class BaseNonConfigCoreFunctionalTestCase extends BaseUnitTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterClassOnce
|
@AfterClassOnce
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
protected void shutDown() {
|
protected void shutDown() {
|
||||||
releaseResources();
|
releaseResources();
|
||||||
}
|
}
|
||||||
|
@ -420,7 +420,7 @@ public class BaseNonConfigCoreFunctionalTestCase extends BaseUnitTestCase {
|
||||||
|
|
||||||
@OnFailure
|
@OnFailure
|
||||||
@OnExpectedFailure
|
@OnExpectedFailure
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void onFailure() {
|
public void onFailure() {
|
||||||
if ( rebuildSessionFactoryOnError() ) {
|
if ( rebuildSessionFactoryOnError() ) {
|
||||||
rebuildSessionFactory();
|
rebuildSessionFactory();
|
||||||
|
|
|
@ -73,7 +73,7 @@ public class SchemaExportTask extends MatchingTask {
|
||||||
private String implicitNamingStrategy;
|
private String implicitNamingStrategy;
|
||||||
private String physicalNamingStrategy;
|
private String physicalNamingStrategy;
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void addFileset(FileSet set) {
|
public void addFileset(FileSet set) {
|
||||||
fileSets.add(set);
|
fileSets.add(set);
|
||||||
}
|
}
|
||||||
|
@ -105,7 +105,7 @@ public class SchemaExportTask extends MatchingTask {
|
||||||
* written to standard out.
|
* written to standard out.
|
||||||
* @param quiet true to enable quiet mode
|
* @param quiet true to enable quiet mode
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setQuiet(boolean quiet) {
|
public void setQuiet(boolean quiet) {
|
||||||
this.quiet = quiet;
|
this.quiet = quiet;
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ public class SchemaExportTask extends MatchingTask {
|
||||||
* Set the end of statement delimiter for the generated script
|
* Set the end of statement delimiter for the generated script
|
||||||
* @param delimiter the delimiter
|
* @param delimiter the delimiter
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setDelimiter(String delimiter) {
|
public void setDelimiter(String delimiter) {
|
||||||
this.delimiter = delimiter;
|
this.delimiter = delimiter;
|
||||||
}
|
}
|
||||||
|
@ -163,17 +163,17 @@ public class SchemaExportTask extends MatchingTask {
|
||||||
DeprecationLogger.DEPRECATION_LOGGER.logDeprecatedNamingStrategyAntArgument();
|
DeprecationLogger.DEPRECATION_LOGGER.logDeprecatedNamingStrategyAntArgument();
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setImplicitNamingStrategy(String implicitNamingStrategy) {
|
public void setImplicitNamingStrategy(String implicitNamingStrategy) {
|
||||||
this.implicitNamingStrategy = implicitNamingStrategy;
|
this.implicitNamingStrategy = implicitNamingStrategy;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setPhysicalNamingStrategy(String physicalNamingStrategy) {
|
public void setPhysicalNamingStrategy(String physicalNamingStrategy) {
|
||||||
this.physicalNamingStrategy = physicalNamingStrategy;
|
this.physicalNamingStrategy = physicalNamingStrategy;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setHaltonerror(boolean haltOnError) {
|
public void setHaltonerror(boolean haltOnError) {
|
||||||
this.haltOnError = haltOnError;
|
this.haltOnError = haltOnError;
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,7 @@ public class SchemaUpdateTask extends MatchingTask {
|
||||||
private String implicitNamingStrategy = null;
|
private String implicitNamingStrategy = null;
|
||||||
private String physicalNamingStrategy = null;
|
private String physicalNamingStrategy = null;
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void addFileset(FileSet fileSet) {
|
public void addFileset(FileSet fileSet) {
|
||||||
fileSets.add( fileSet );
|
fileSets.add( fileSet );
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ public class SchemaUpdateTask extends MatchingTask {
|
||||||
*
|
*
|
||||||
* @param propertiesFile the properties file name
|
* @param propertiesFile the properties file name
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setProperties(File propertiesFile) {
|
public void setProperties(File propertiesFile) {
|
||||||
if ( !propertiesFile.exists() ) {
|
if ( !propertiesFile.exists() ) {
|
||||||
throw new BuildException( "Properties file: " + propertiesFile + " does not exist." );
|
throw new BuildException( "Properties file: " + propertiesFile + " does not exist." );
|
||||||
|
@ -90,7 +90,7 @@ public class SchemaUpdateTask extends MatchingTask {
|
||||||
*
|
*
|
||||||
* @param configurationFile the file name
|
* @param configurationFile the file name
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setConfig(File configurationFile) {
|
public void setConfig(File configurationFile) {
|
||||||
this.configurationFile = configurationFile;
|
this.configurationFile = configurationFile;
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@ public class SchemaUpdateTask extends MatchingTask {
|
||||||
*
|
*
|
||||||
* @param text true to enable text-only mode
|
* @param text true to enable text-only mode
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setText(boolean text) {
|
public void setText(boolean text) {
|
||||||
this.text = text;
|
this.text = text;
|
||||||
}
|
}
|
||||||
|
@ -110,52 +110,52 @@ public class SchemaUpdateTask extends MatchingTask {
|
||||||
*
|
*
|
||||||
* @param quiet true to enable quiet mode
|
* @param quiet true to enable quiet mode
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setQuiet(boolean quiet) {
|
public void setQuiet(boolean quiet) {
|
||||||
this.quiet = quiet;
|
this.quiet = quiet;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setNamingStrategy(String namingStrategy) {
|
public void setNamingStrategy(String namingStrategy) {
|
||||||
DeprecationLogger.DEPRECATION_LOGGER.logDeprecatedNamingStrategyAntArgument();
|
DeprecationLogger.DEPRECATION_LOGGER.logDeprecatedNamingStrategyAntArgument();
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setImplicitNamingStrategy(String implicitNamingStrategy) {
|
public void setImplicitNamingStrategy(String implicitNamingStrategy) {
|
||||||
this.implicitNamingStrategy = implicitNamingStrategy;
|
this.implicitNamingStrategy = implicitNamingStrategy;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setPhysicalNamingStrategy(String physicalNamingStrategy) {
|
public void setPhysicalNamingStrategy(String physicalNamingStrategy) {
|
||||||
this.physicalNamingStrategy = physicalNamingStrategy;
|
this.physicalNamingStrategy = physicalNamingStrategy;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public File getOutputFile() {
|
public File getOutputFile() {
|
||||||
return outputFile;
|
return outputFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setOutputFile(File outputFile) {
|
public void setOutputFile(File outputFile) {
|
||||||
this.outputFile = outputFile;
|
this.outputFile = outputFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public boolean isHaltOnError() {
|
public boolean isHaltOnError() {
|
||||||
return haltOnError;
|
return haltOnError;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setHaltOnError(boolean haltOnError) {
|
public void setHaltOnError(boolean haltOnError) {
|
||||||
this.haltOnError = haltOnError;
|
this.haltOnError = haltOnError;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public String getDelimiter() {
|
public String getDelimiter() {
|
||||||
return delimiter;
|
return delimiter;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("unused")
|
||||||
public void setDelimiter(String delimiter) {
|
public void setDelimiter(String delimiter) {
|
||||||
this.delimiter = delimiter;
|
this.delimiter = delimiter;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue