Skip to content

Commit

Permalink
HHH-8741 - More checkstyle cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
sebersole committed Nov 24, 2013
1 parent 77c8535 commit b103b2a
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 8 deletions.
Expand Up @@ -306,7 +306,6 @@ public AbstractHANADialect() {
getDefaultProperties().setProperty( AvailableSettings.NON_CONTEXTUAL_LOB_CREATION, "true" ); getDefaultProperties().setProperty( AvailableSettings.NON_CONTEXTUAL_LOB_CREATION, "true" );
} }


@Deprecated
@Override @Override
public boolean bindLimitParametersInReverseOrder() { public boolean bindLimitParametersInReverseOrder() {
return true; return true;
Expand Down Expand Up @@ -431,7 +430,6 @@ public String getForUpdateString(final String aliases, final LockOptions lockOpt
return getForUpdateString( lockMode ) + " of " + aliases; return getForUpdateString( lockMode ) + " of " + aliases;
} }


@Deprecated
@Override @Override
public String getLimitString(final String sql, final boolean hasOffset) { public String getLimitString(final String sql, final boolean hasOffset) {
return new StringBuilder( sql.length() + 20 ).append( sql ) return new StringBuilder( sql.length() + 20 ).append( sql )
Expand Down Expand Up @@ -606,7 +604,6 @@ public boolean supportsExpectedLobUsagePattern() {
return false; return false;
} }


@Deprecated
@Override @Override
public boolean supportsLimit() { public boolean supportsLimit() {
return true; return true;
Expand Down
Expand Up @@ -45,7 +45,9 @@ public interface Mapping {
* *
* @deprecated temporary solution * @deprecated temporary solution
*/ */
@Deprecated
public IdentifierGeneratorFactory getIdentifierGeneratorFactory(); public IdentifierGeneratorFactory getIdentifierGeneratorFactory();

public Type getIdentifierType(String className) throws MappingException; public Type getIdentifierType(String className) throws MappingException;
public String getIdentifierPropertyName(String className) throws MappingException; public String getIdentifierPropertyName(String className) throws MappingException;
public Type getReferencedPropertyType(String className, String propertyName) throws MappingException; public Type getReferencedPropertyType(String className, String propertyName) throws MappingException;
Expand Down
Expand Up @@ -52,6 +52,10 @@ public Integer initialize() {
} }
); );
} }

/**
* @deprecated explicit entity mode support is deprecated
*/
@Deprecated @Deprecated
public TypedValue(Type type, Object value, EntityMode entityMode) { public TypedValue(Type type, Object value, EntityMode entityMode) {
this(type, value); this(type, value);
Expand Down
Expand Up @@ -97,8 +97,10 @@ public EntityPersister getPersister() {
* {@link AbstractEvent}. * {@link AbstractEvent}.
* *
* @return Value for property 'source'. * @return Value for property 'source'.
*
* @deprecated Use {@link #getSession} instead * @deprecated Use {@link #getSession} instead
*/ */
@Deprecated
public EventSource getSource() { public EventSource getSource() {
return getSession(); return getSession();
} }
Expand Down
Expand Up @@ -38,9 +38,11 @@
* In the interim, this allows us to at least treat these "hidden" parameters properly which is * In the interim, this allows us to at least treat these "hidden" parameters properly which is
* the most pressing need. * the most pressing need.
* *
* @deprecated * @deprecated See entire discussion above
*
* @author Steve Ebersole * @author Steve Ebersole
*/ */
@Deprecated
public interface ParameterContainer { public interface ParameterContainer {
/** /**
* Set the renderable text of this node. * Set the renderable text of this node.
Expand Down
Expand Up @@ -46,6 +46,7 @@ public final class ASTUtil {
* *
* @deprecated (tellclovertoignorethis) * @deprecated (tellclovertoignorethis)
*/ */
@Deprecated
private ASTUtil() { private ASTUtil() {
} }


Expand All @@ -62,6 +63,7 @@ private ASTUtil() {
* *
* @deprecated silly * @deprecated silly
*/ */
@Deprecated
public static AST create(ASTFactory astFactory, int type, String text) { public static AST create(ASTFactory astFactory, int type, String text) {
return astFactory.create( type, text ); return astFactory.create( type, text );
} }
Expand Down Expand Up @@ -409,6 +411,7 @@ public static Map generateTokenNameCache(Class tokenTypeInterface) {
* *
* @deprecated Use #getTokenTypeName instead * @deprecated Use #getTokenTypeName instead
*/ */
@Deprecated
public static String getConstantName(Class owner, int value) { public static String getConstantName(Class owner, int value) {
return getTokenTypeName( owner, value ); return getTokenTypeName( owner, value );
} }
Expand Down
Expand Up @@ -41,6 +41,7 @@ public final class ColumnHelper {
/** /**
* @deprecated (tell clover to filter this out) * @deprecated (tell clover to filter this out)
*/ */
@Deprecated
private ColumnHelper() { private ColumnHelper() {
} }


Expand Down
Expand Up @@ -46,9 +46,11 @@ public interface IdentifierGeneratorFactory {
* Allow injection of the dialect to use. * Allow injection of the dialect to use.
* *
* @param dialect The dialect * @param dialect The dialect
*
* @deprecated The intention is that Dialect should be required to be specified up-front and it would then get * @deprecated The intention is that Dialect should be required to be specified up-front and it would then get
* ctor injected. * ctor injected.
*/ */
@Deprecated
public void setDialect(Dialect dialect); public void setDialect(Dialect dialect);


/** /**
Expand Down
Expand Up @@ -43,11 +43,20 @@ public final class CollectionHelper {
public static final int MINIMUM_INITIAL_CAPACITY = 16; public static final int MINIMUM_INITIAL_CAPACITY = 16;
public static final float LOAD_FACTOR = 0.75f; public static final float LOAD_FACTOR = 0.75f;


@Deprecated // use java.util.Collections.EMPTY_LIST instead /**
* @deprecated use {@link java.util.Collections#EMPTY_LIST} or {@link java.util.Collections#emptyList()} instead
*/
@Deprecated
public static final List EMPTY_LIST = Collections.EMPTY_LIST; public static final List EMPTY_LIST = Collections.EMPTY_LIST;
@Deprecated // use java.util.Collections.EMPTY_LIST instead /**
* @deprecated use {@link java.util.Collections#EMPTY_LIST} or {@link java.util.Collections#emptyList()} instead
*/
@Deprecated
public static final Collection EMPTY_COLLECTION = Collections.EMPTY_LIST; public static final Collection EMPTY_COLLECTION = Collections.EMPTY_LIST;
@Deprecated // use java.util.Collections.EMPTY_MAP instead /**
* @deprecated use {@link java.util.Collections#EMPTY_MAP} or {@link java.util.Collections#emptyMap()} instead
*/
@Deprecated
public static final Map EMPTY_MAP = Collections.EMPTY_MAP; public static final Map EMPTY_MAP = Collections.EMPTY_MAP;


private CollectionHelper() { private CollectionHelper() {
Expand Down
4 changes: 3 additions & 1 deletion shared/config/checkstyle/checkstyle.xml
Expand Up @@ -186,7 +186,9 @@
The org.hibernate.engine.spi.ManagedEntity method names (prefixed with '&&_') muck with this The org.hibernate.engine.spi.ManagedEntity method names (prefixed with '&&_') muck with this
<module name="MethodName" /> <module name="MethodName" />
--> -->
<module name="MethodTypeParameterName" /> <module name="MethodTypeParameterName">
<property name="format" value="^[A-Z][A-Z0-9]*$" />
</module>
<module name="PackageName" /> <module name="PackageName" />
<module name="ParameterName" /> <module name="ParameterName" />
<module name="StaticVariableName" /> <module name="StaticVariableName" />
Expand Down

0 comments on commit b103b2a

Please sign in to comment.