NameValidator (Gradle API 8.14.1)
Description: declaration: package: org.gradle.util, class: NameValidator

Package org.gradle.util

# Class NameValidator

java.lang.Object
org.gradle.util.NameValidator

@Deprecated public final class NameValidator extends Object
Deprecated.
Will be removed in Gradle 9.0.
This class is only here to maintain binary compatibility with existing plugins.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `validate(String name, String nameDescription, String fixSuggestion)`
  Deprecated.
  Validates that a given name string does not contain any forbidden characters.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### validate

    public static void validate(String name, String nameDescription, String fixSuggestion) throws InvalidUserDataException
    Deprecated.
    Validates that a given name string does not contain any forbidden characters.
    Throws:
      `InvalidUserDataException`