Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for PackageDeclaration (0.07 seconds)

  1. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/NoticeTask.java

                StringBuilder header = new StringBuilder();
                String packageDeclaration = null;
    
                for (String line : FileUtils.readLines(sourceFile, "UTF-8")) {
                    if (isPackageInfo && packageDeclaration == null && line.startsWith("package")) {
                        packageDeclaration = line;
                    }
    
                    if (foundNotice == false) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 6.9K bytes
    - Click Count (0)
  2. build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportWorkAction.kt

            is PackageDeclaration -> "${it.nameAsString} (package-info.java)"
            is NodeWithSimpleName<*> -> "${inferClassName(unit)}.${it.nameAsString}"
            else -> unit.primaryTypeName.orElse(file.name)
        }
    
        private
        fun inferClassName(unit: CompilationUnit) =
            "${unit.packageDeclaration.map { it.nameAsString }.orElse("")}.${unit.primaryTypeName.orElse("")}"
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Jun 02 09:57:54 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  3. build-tools-internal/src/main/resources/checkstyle_suppressions.xml

      <!-- Intentionally doesn't have a package declaration to test logging
        configuration of classes that aren't in packages. -->
      <suppress files="test[/\\]framework[/\\]src[/\\]test[/\\]java[/\\]Dummy.java" checks="PackageDeclaration" />
    
      <!-- Intentionally has long example curl commands to coincide with sibling Painless tests. -->
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 5.5K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/resources/checkstyle.xml

        <module name="RedundantModifier" />
        <!-- Checks that all java files have a package declaration and that it
          lines up with the directory structure. -->
        <module name="PackageDeclaration" />
    
        <!-- Checks that a local variable or a parameter does not shadow a field that is defined in the same class. -->
        <!-- Disabled until existing violations are fixed -->
        <!--
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 13 12:48:46 GMT 2021
    - 6K bytes
    - Click Count (0)
Back to Top