Skip to content

Commit 94dae29

Browse files
committed
deprecate unused operations of StringHelper
should really just delete these, since this class is internal
1 parent 41167f3 commit 94dae29

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

hibernate-core/src/main/java/org/hibernate/internal/util/StringHelper.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,10 @@ public static String truncate(String string, int length) {
646646
return string.length() <= length ? string : string.substring( 0, length );
647647
}
648648

649+
/**
650+
* @deprecated No longer used
651+
*/
652+
@Deprecated(since = "7", forRemoval = true)
649653
public static String generateAlias(String description) {
650654
return generateAliasRoot( description ) + '_';
651655
}
@@ -658,7 +662,10 @@ public static String generateAlias(String description) {
658662
* @param unique A uniquing value
659663
*
660664
* @return an alias of the form <samp>foo1_</samp>
665+
*
666+
* @deprecated No longer used
661667
*/
668+
@Deprecated(since = "7", forRemoval = true)
662669
public static String generateAlias(String description, int unique) {
663670
return generateAliasRoot( description )
664671
+ AliasConstantsHelper.get( unique );
@@ -672,7 +679,10 @@ public static String generateAlias(String description, int unique) {
672679
* @param description The root name from which to generate a root alias.
673680
*
674681
* @return The generated root alias.
682+
*
683+
* @deprecated No longer used
675684
*/
685+
@Deprecated(since = "7", forRemoval = true)
676686
private static String generateAliasRoot(String description) {
677687
String result = truncate( unqualifyEntityName( description ), ALIAS_TRUNCATE_LENGTH )
678688
.toLowerCase( Locale.ROOT )
@@ -689,7 +699,10 @@ private static String generateAliasRoot(String description) {
689699
* @param alias The generated alias to be cleaned.
690700
*
691701
* @return The cleaned alias, stripped of any leading non-alpha characters.
702+
*
703+
* @deprecated No longer used
692704
*/
705+
@Deprecated(since = "7", forRemoval = true)
693706
private static String cleanAlias(String alias) {
694707
final char[] chars = alias.toCharArray();
695708
// shortcut check...

0 commit comments

Comments
 (0)