3a2fd58148fc2bab140aaf74507650bfee1df30f
Files Diff
- Added: 3
- Removed: 1
- Renamed: 0
- Modified: 15
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Move And Rename Method | 3 | ||
Move And Rename Method private compile(type Type, name String, propertyAnnotation BQConfigProperty) : ConfigValueMetadata from class io.bootique.DeferredModuleMetadataSupplier to private typeClass(type Type) : Class<?> from class io.bootique.meta.config.ConfigMetadataCompiler | From | To | |
Move And Rename Method package toConfig(name String, type Class<?>) : ConfigObjectMetadata from class io.bootique.DeferredModuleMetadataSupplier to protected compileObjectMetadata(name String, descriptor Descriptor) : ConfigMetadataNode from class io.bootique.meta.config.ConfigMetadataCompiler | From | To | |
Move And Rename Method private toMapProperty(name String, mapType Class<?>, mapParameters Type[], annotation BQConfigProperty) : ConfigMapMetadata from class io.bootique.DeferredModuleMetadataSupplier to protected compileMapMetadata(name String, descriptor Descriptor) : ConfigMetadataNode from class io.bootique.meta.config.ConfigMetadataCompiler | From | To | |
Change Parameter Type | 8 | ||
Change Parameter Type property : ConfigValueMetadata to property : ConfigMetadataNode in method public addProperty(property ConfigMetadataNode) : Builder in class io.bootique.meta.config.ConfigObjectMetadata.Builder | From | To | |
Change Parameter Type elementType : ConfigValueMetadata to elementType : ConfigMetadataNode in method public valuesType(elementType ConfigMetadataNode) : Builder in class io.bootique.meta.config.ConfigMapMetadata.Builder | From | To | |
Change Parameter Type type : Class<?> to type : Type in method public type(type Type) : B in class io.bootique.meta.config.ConfigValueMetadata.Builder | From | To | |
Change Parameter Type configs : Collection<ConfigObjectMetadata> to configs : Collection<ConfigMetadataNode> in method public addConfigs(configs Collection<ConfigMetadataNode>) : Builder in class io.bootique.meta.module.ModuleMetadata.Builder | From | To | |
Change Parameter Type type : Class<?> to type : Type in method protected sampleValue(type Type) : String in class io.bootique.help.config.ConfigSectionGenerator | From | To | |
Change Parameter Type type : Class<?> to descriptor : Descriptor in method protected compileObjectMetadata(name String, descriptor Descriptor) : ConfigMetadataNode in class io.bootique.meta.config.ConfigMetadataCompiler | From | To | |
Change Parameter Type elementType : ConfigValueMetadata to elementType : ConfigMetadataNode in method public elementType(elementType ConfigMetadataNode) : Builder in class io.bootique.meta.config.ConfigListMetadata.Builder | From | To | |
Change Parameter Type type : Class<?> to type : Type in method protected typeLabel(type Type) : String in class io.bootique.help.config.ConfigSectionGenerator | From | To | |
Move Method | 4 | ||
Move Method public getDescription() : String from class io.bootique.meta.MetadataNode to public getDescription() : String from class io.bootique.meta.config.ConfigMetadataNodeProxy | From | To | |
Move Method public getName() : String from class io.bootique.meta.MetadataNode to public getName() : String from class io.bootique.meta.config.ConfigMetadataNodeProxy | From | To | |
Move Method private propertyNameFromSetter(maybeSetter Method) : String from class io.bootique.DeferredModuleMetadataSupplier to private propertyNameFromSetter(maybeSetter Method) : String from class io.bootique.meta.config.ConfigMetadataCompiler | From | To | |
Move Method private propertyTypeFromSetter(maybeSetter Method) : Type from class io.bootique.DeferredModuleMetadataSupplier to private propertyTypeFromSetter(maybeSetter Method) : Type from class io.bootique.meta.config.ConfigMetadataCompiler | From | To | |
Change Return Type | 9 | ||
Change Return Type Collection<ConfigObjectMetadata> to Collection<ConfigMetadataNode> in method public getConfigs() : Collection<ConfigMetadataNode> in class io.bootique.meta.module.ModuleMetadata | From | To | |
Change Return Type ConfigMapMetadata to ConfigMetadataNode in method protected compileMapMetadata(name String, descriptor Descriptor) : ConfigMetadataNode in class io.bootique.meta.config.ConfigMetadataCompiler | From | To | |
Change Return Type ConfigObjectMetadata to ConfigMetadataNode in method protected compileObjectMetadata(name String, descriptor Descriptor) : ConfigMetadataNode in class io.bootique.meta.config.ConfigMetadataCompiler | From | To | |
Change Return Type ConfigValueMetadata to Class<?> in method private typeClass(type Type) : Class<?> in class io.bootique.meta.config.ConfigMetadataCompiler | From | To | |
Change Return Type ConfigValueMetadata to ConfigMetadataNode in method public getValuesType() : ConfigMetadataNode in class io.bootique.meta.config.ConfigMapMetadata | From | To | |
Change Return Type ConfigValueMetadata to ConfigMetadataNode in method public getElementType() : ConfigMetadataNode in class io.bootique.meta.config.ConfigListMetadata | From | To | |
Change Return Type Collection<ConfigValueMetadata> to Collection<ConfigMetadataNode> in method public getProperties() : Collection<ConfigMetadataNode> in class io.bootique.meta.config.ConfigObjectMetadata | From | To | |
Change Return Type Collection<ConfigObjectMetadata> to Collection<ConfigMetadataNode> in method private toConfigs(module BQModule) : Collection<ConfigMetadataNode> in class io.bootique.DeferredModuleMetadataSupplier | From | To | |
Change Return Type Class<?> to Type in method public getType() : Type in class io.bootique.meta.config.ConfigValueMetadata | From | To | |
Move Attribute | 3 | ||
Move Attribute protected name : String from class io.bootique.meta.MetadataNode to private name : String from class io.bootique.meta.config.ConfigMetadataNodeProxy | From | To | |
Move Attribute private SETTER : Pattern from class io.bootique.DeferredModuleMetadataSupplier to private SETTER : Pattern from class io.bootique.meta.config.ConfigMetadataCompiler | From | To | |
Move Attribute protected description : String from class io.bootique.meta.MetadataNode to private description : String from class io.bootique.meta.config.ConfigMetadataNodeProxy | From | To | |
Extract Class | 2 | ||
Extract Class io.bootique.meta.config.ConfigMetadataNodeProxy from class io.bootique.meta.MetadataNode | From | To | |
Extract Class io.bootique.meta.config.ConfigMetadataCompiler from class io.bootique.DeferredModuleMetadataSupplier | From | To | |
Move Class | 4 | ||
Move Class io.bootique.DeferredModuleMetadataSupplierTest.Config1 moved to io.bootique.meta.config.ConfigMetadataCompilerTest.Config1 | From | To | |
Move Class io.bootique.DeferredModuleMetadataSupplierTest.Config2 moved to io.bootique.meta.config.ConfigMetadataCompilerTest.Config2 | From | To | |
Move Class io.bootique.DeferredModuleMetadataSupplierTest.Config3 moved to io.bootique.meta.config.ConfigMetadataCompilerTest.Config3 | From | To | |
Move Class io.bootique.DeferredModuleMetadataSupplierTest.Config4 moved to io.bootique.meta.config.ConfigMetadataCompilerTest.Config4 | From | To | |
Change Variable Type | 5 | ||
Change Variable Type valueType : Class<?> to valueType : Type in method protected printTypeHeader(metadata ConfigValueMetadata) : void in class io.bootique.help.config.ConfigSectionListChildGenerator | From | To | |
Change Variable Type configs : Collection<ConfigObjectMetadata> to configs : Collection<ConfigMetadataNode> in method private toConfigs(module BQModule) : Collection<ConfigMetadataNode> in class io.bootique.DeferredModuleMetadataSupplier | From | To | |
Change Variable Type cm : ConfigObjectMetadata to cm : ConfigValueMetadata in method public testSingleConfig() : void in class io.bootique.meta.config.ConfigMetadataIT | From | To | |
Change Variable Type valueType : Class<?> to valueType : Type in method protected printTypeHeader(metadata ConfigValueMetadata) : void in class io.bootique.help.config.ConfigSectionGenerator | From | To | |
Change Variable Type configs : Collection<ConfigObjectMetadata> to configs : Collection<ConfigMetadataNode> in method public testSingleConfig() : void in class io.bootique.meta.config.ConfigMetadataIT | From | To | |
Extract Method | 1 | ||
Extract Method public builder(baseObject ConfigObjectMetadata) : Builder extracted from public builder() : Builder in class io.bootique.meta.config.ConfigObjectMetadata | From | To | |
Change Attribute Type | 5 | ||
Change Attribute Type properties : Collection<ConfigValueMetadata> to properties : Collection<ConfigMetadataNode> in class io.bootique.meta.config.ConfigObjectMetadata | From | To | |
Change Attribute Type valuesType : ConfigValueMetadata to valuesType : ConfigMetadataNode in class io.bootique.meta.config.ConfigMapMetadata | From | To | |
Change Attribute Type configs : Collection<ConfigObjectMetadata> to configs : Collection<ConfigMetadataNode> in class io.bootique.meta.module.ModuleMetadata | From | To | |
Change Attribute Type elementType : ConfigValueMetadata to elementType : ConfigMetadataNode in class io.bootique.meta.config.ConfigListMetadata | From | To | |
Change Attribute Type type : Class<?> to type : Type in class io.bootique.meta.config.ConfigValueMetadata | From | To | |
Rename Parameter | 1 | ||
Rename Parameter type : Class<?> to descriptor : Descriptor in method protected compileObjectMetadata(name String, descriptor Descriptor) : ConfigMetadataNode in class io.bootique.meta.config.ConfigMetadataCompiler | From | To |