public class org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck implements org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$Check
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck
super_class: java.lang.Object
{
private static final java.util.Set<java.lang.String> PROBLEM_PACKAGES;
descriptor: Ljava/util/Set;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 0
start local 0 1: aload 0
ldc "org.springframework"
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
2: aload 0
ldc "org"
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
3: aload 0
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
putstatic org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck.PROBLEM_PACKAGES:Ljava/util/Set;
end local 0 4: return
LocalVariableTable:
Start End Slot Name Signature
1 4 0 packages Ljava/util/Set<Ljava/lang/String;>;
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/context/ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck;
public java.lang.String getWarning(org.springframework.beans.factory.support.BeanDefinitionRegistry);
descriptor: (Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck.getComponentScanningPackages:(Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;)Ljava/util/Set;
astore 2
start local 2 1: aload 0
aload 2
invokevirtual org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck.getProblematicPackages:(Ljava/util/Set;)Ljava/util/List;
astore 3
start local 3 2: aload 3
invokeinterface java.util.List.isEmpty:()Z
ifeq 4
3: aconst_null
areturn
4: StackMap locals: java.util.Set java.util.List
StackMap stack:
new java.lang.StringBuilder
dup
ldc "Your ApplicationContext is unlikely to start due to a @ComponentScan of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
5: aload 3
ldc ", "
invokestatic org.springframework.util.StringUtils.collectionToDelimitedString:(Ljava/util/Collection;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/boot/context/ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck;
0 7 1 registry Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;
1 7 2 scannedPackages Ljava/util/Set<Ljava/lang/String;>;
2 7 3 problematicPackages Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
registry
protected java.util.Set<java.lang.String> getComponentScanningPackages(org.springframework.beans.factory.support.BeanDefinitionRegistry);
descriptor: (Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;)Ljava/util/Set;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=10, args_size=2
start local 0 start local 1 0: new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
astore 2
start local 2 1: aload 1
invokeinterface org.springframework.beans.factory.support.BeanDefinitionRegistry.getBeanDefinitionNames:()[Ljava/lang/String;
astore 3
start local 3 2: aload 3
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 9
StackMap locals: org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck org.springframework.beans.factory.support.BeanDefinitionRegistry java.util.Set java.lang.String[] top int int java.lang.String[]
StackMap stack:
3: aload 7
iload 5
aaload
astore 4
start local 4 4: aload 1
aload 4
invokeinterface org.springframework.beans.factory.support.BeanDefinitionRegistry.getBeanDefinition:(Ljava/lang/String;)Lorg/springframework/beans/factory/config/BeanDefinition;
astore 8
start local 8 5: aload 8
instanceof org.springframework.beans.factory.annotation.AnnotatedBeanDefinition
ifeq 8
6: aload 8
checkcast org.springframework.beans.factory.annotation.AnnotatedBeanDefinition
astore 9
start local 9 7: aload 0
aload 2
aload 9
invokeinterface org.springframework.beans.factory.annotation.AnnotatedBeanDefinition.getMetadata:()Lorg/springframework/core/type/AnnotationMetadata;
invokevirtual org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck.addComponentScanningPackages:(Ljava/util/Set;Lorg/springframework/core/type/AnnotationMetadata;)V
end local 9 end local 8 end local 4 8: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
9: iload 5
iload 6
if_icmplt 3
10: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/springframework/boot/context/ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck;
0 11 1 registry Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;
1 11 2 packages Ljava/util/Set<Ljava/lang/String;>;
2 11 3 names [Ljava/lang/String;
4 8 4 name Ljava/lang/String;
5 8 8 definition Lorg/springframework/beans/factory/config/BeanDefinition;
7 8 9 annotatedDefinition Lorg/springframework/beans/factory/annotation/AnnotatedBeanDefinition;
Signature: (Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;)Ljava/util/Set<Ljava/lang/String;>;
MethodParameters:
Name Flags
registry
private void addComponentScanningPackages(java.util.Set<java.lang.String>, org.springframework.core.type.AnnotationMetadata);
descriptor: (Ljava/util/Set;Lorg/springframework/core/type/AnnotationMetadata;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ldc Lorg/springframework/context/annotation/ComponentScan;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
iconst_1
invokeinterface org.springframework.core.type.AnnotationMetadata.getAnnotationAttributes:(Ljava/lang/String;Z)Ljava/util/Map;
invokestatic org.springframework.core.annotation.AnnotationAttributes.fromMap:(Ljava/util/Map;)Lorg/springframework/core/annotation/AnnotationAttributes;
1: astore 3
start local 3 2: aload 3
ifnull 8
3: aload 0
aload 1
aload 3
ldc "value"
invokevirtual org.springframework.core.annotation.AnnotationAttributes.getStringArray:(Ljava/lang/String;)[Ljava/lang/String;
invokevirtual org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck.addPackages:(Ljava/util/Set;[Ljava/lang/String;)V
4: aload 0
aload 1
aload 3
ldc "basePackages"
invokevirtual org.springframework.core.annotation.AnnotationAttributes.getStringArray:(Ljava/lang/String;)[Ljava/lang/String;
invokevirtual org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck.addPackages:(Ljava/util/Set;[Ljava/lang/String;)V
5: aload 0
aload 1
aload 3
ldc "basePackageClasses"
invokevirtual org.springframework.core.annotation.AnnotationAttributes.getStringArray:(Ljava/lang/String;)[Ljava/lang/String;
invokevirtual org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck.addClasses:(Ljava/util/Set;[Ljava/lang/String;)V
6: aload 1
invokeinterface java.util.Set.isEmpty:()Z
ifeq 8
7: aload 1
aload 2
invokeinterface org.springframework.core.type.AnnotationMetadata.getClassName:()Ljava/lang/String;
invokestatic org.springframework.util.ClassUtils.getPackageName:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
8: StackMap locals: org.springframework.core.annotation.AnnotationAttributes
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/boot/context/ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck;
0 9 1 packages Ljava/util/Set<Ljava/lang/String;>;
0 9 2 metadata Lorg/springframework/core/type/AnnotationMetadata;
2 9 3 attributes Lorg/springframework/core/annotation/AnnotationAttributes;
Signature: (Ljava/util/Set<Ljava/lang/String;>;Lorg/springframework/core/type/AnnotationMetadata;)V
MethodParameters:
Name Flags
packages
metadata
private void addPackages(java.util.Set<java.lang.String>, java.lang.String[]);
descriptor: (Ljava/util/Set;[Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 2
1: aload 1
aload 2
invokestatic java.util.Collections.addAll:(Ljava/util/Collection;[Ljava/lang/Object;)Z
pop
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/context/ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck;
0 3 1 packages Ljava/util/Set<Ljava/lang/String;>;
0 3 2 values [Ljava/lang/String;
Signature: (Ljava/util/Set<Ljava/lang/String;>;[Ljava/lang/String;)V
MethodParameters:
Name Flags
packages
values
private void addClasses(java.util.Set<java.lang.String>, java.lang.String[]);
descriptor: (Ljava/util/Set;[Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 6
1: aload 2
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 5
StackMap locals: org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck java.util.Set java.lang.String[] top int int java.lang.String[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: aload 1
aload 3
invokestatic org.springframework.util.ClassUtils.getPackageName:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 3 4: iinc 4 1
StackMap locals:
StackMap stack:
5: iload 4
iload 5
if_icmplt 2
6: StackMap locals: org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck java.util.Set java.lang.String[]
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/boot/context/ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck;
0 7 1 packages Ljava/util/Set<Ljava/lang/String;>;
0 7 2 values [Ljava/lang/String;
3 4 3 value Ljava/lang/String;
Signature: (Ljava/util/Set<Ljava/lang/String;>;[Ljava/lang/String;)V
MethodParameters:
Name Flags
packages
values
private java.util.List<java.lang.String> getProblematicPackages(java.util.Set<java.lang.String>);
descriptor: (Ljava/util/Set;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: aload 1
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck java.util.Set java.util.List top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 3: aload 0
aload 3
invokevirtual org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck.isProblematicPackage:(Ljava/lang/String;)Z
ifeq 5
4: aload 2
aload 0
aload 3
invokevirtual org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck.getDisplayName:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/boot/context/ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck;
0 7 1 scannedPackages Ljava/util/Set<Ljava/lang/String;>;
1 7 2 problematicPackages Ljava/util/List<Ljava/lang/String;>;
3 5 3 scannedPackage Ljava/lang/String;
Signature: (Ljava/util/Set<Ljava/lang/String;>;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
scannedPackages
private boolean isProblematicPackage(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 2
1: StackMap locals:
StackMap stack:
iconst_1
ireturn
2: StackMap locals:
StackMap stack:
getstatic org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck.PROBLEM_PACKAGES:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/context/ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck;
0 3 1 scannedPackage Ljava/lang/String;
MethodParameters:
Name Flags
scannedPackage
private java.lang.String getDisplayName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 2
1: StackMap locals:
StackMap stack:
ldc "the default package"
areturn
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "'"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/context/ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck;
0 3 1 scannedPackage Ljava/lang/String;
MethodParameters:
Name Flags
scannedPackage
}
SourceFile: "ConfigurationWarningsApplicationContextInitializer.java"
NestHost: org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer
InnerClasses:
protected abstract Check = org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$Check of org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer
protected ComponentScanPackageCheck = org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer$ComponentScanPackageCheck of org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer