d5a8ab383c56026165e995d62fbbeb0bed790d53
Files Diff
- Added: 8
- Removed: 15
- Renamed: 0
- Modified: 93
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Move And Inline Method | 2 | ||
Move And Inline Method public enableDebug(b boolean) : LogTester moved from class org.sonar.api.utils.log.LogTester to class org.sonar.api.utils.log.LogTesterTest & inlined to public debugLevel() : void | From | To | |
Move And Inline Method protected enableDebug(b boolean) : void moved from class org.sonar.api.utils.log.ConsoleLoggers to class org.sonar.api.utils.log.LogTester & inlined to protected before() : void | From | To | |
Change Parameter Type | 2 | ||
Change Parameter Type logger : Logger to logger : org.slf4j.Logger in method public TimeProfiler(logger org.slf4j.Logger) in class org.sonar.api.utils.TimeProfiler | From | To | |
Change Parameter Type logger : Logger to logger : org.slf4j.Logger in method public setLogger(logger org.slf4j.Logger) : TimeProfiler in class org.sonar.api.utils.TimeProfiler | From | To | |
Move Method | 1 | ||
Move Method protected isDebugEnabled() : boolean from class org.sonar.api.utils.log.LogbackLoggers to public isDebugEnabled() : boolean from class org.sonar.api.utils.log.DefaultProfiler | From | To | |
Move Attribute | 1 | ||
Move Attribute private LOGGER : Logger from class org.sonar.core.profiling.Profiling to public LOGGER : Logger from class org.sonar.server.es.EsClient | From | To | |
Rename Class | 1 | ||
Rename Class org.sonar.core.persistence.profiling.ProfilingDataSource renamed to org.sonar.core.persistence.profiling.ProfiledDataSource | From | To | |
Move And Rename Class | 1 | ||
Move And Rename Class org.sonar.core.profiling.StopWatch moved and renamed to org.sonar.api.utils.log.Profiler | From | To | |
Change Variable Type | 3 | ||
Change Variable Type initial : boolean to initial : LoggerLevel in method public debugLevel() : void in class org.sonar.api.utils.log.LogTesterTest | From | To | |
Change Variable Type watch : StopWatch to profiler : Profiler in method public invoke(proxy Object, method Method, args Object[]) : Object in class org.sonar.core.persistence.profiling.ProfilingPreparedStatementHandler | From | To | |
Change Variable Type watch : StopWatch to profiler : Profiler in method public invoke(proxy Object, method Method, args Object[]) : Object in class org.sonar.core.persistence.profiling.ProfilingStatementHandler | From | To | |
Extract Method | 2 | ||
Extract Method private testBulk() : void extracted from private testBulk(profilingLevel Profiling.Level) : void in class org.sonar.server.es.request.ProxyBulkRequestBuilderTest | From | To | |
Extract Method public setLevel(level LoggerLevel) : LogTester extracted from protected before() : void in class org.sonar.api.utils.log.LogTester | From | To | |
Rename Method | 6 | ||
Rename Method private testBulk(profilingLevel Profiling.Level) : void renamed to public trace_logs() : void in class org.sonar.server.es.request.ProxyBulkRequestBuilderTest | From | To | |
Rename Method public search_scroll() : void renamed to public trace_logs() : void in class org.sonar.server.es.request.ProxySearchScrollRequestBuilderTest | From | To | |
Rename Method public with_profiling_full() : void renamed to public trace_logs() : void in class org.sonar.server.es.request.ProxyMultiGetRequestBuilderTest | From | To | |
Rename Method public with_profiling_full() : void renamed to public trace_logs() : void in class org.sonar.server.es.request.ProxyClusterHealthRequestBuilderTest | From | To | |
Rename Method protected abstract isDebugEnabled() : boolean renamed to protected abstract getLevel() : LoggerLevel in class org.sonar.api.utils.log.Loggers | From | To | |
Rename Method public isDebugEnabled() : boolean renamed to protected getLevel() : LoggerLevel in class org.sonar.api.utils.log.LogTester | From | To | |
Inline Method | 2 | ||
Inline Method public enableDebug(b boolean) : LogTester inlined to protected before() : void in class org.sonar.api.utils.log.LogTester | From | To | |
Rename Variable | 2 | ||
Rename Variable watch : StopWatch to profiler : Profiler in method public invoke(proxy Object, method Method, args Object[]) : Object in class org.sonar.core.persistence.profiling.ProfilingPreparedStatementHandler | From | To | |
Rename Variable watch : StopWatch to profiler : Profiler in method public invoke(proxy Object, method Method, args Object[]) : Object in class org.sonar.core.persistence.profiling.ProfilingStatementHandler | From | To | |
Change Return Type | 3 | ||
Change Return Type boolean to LoggerLevel in method protected getLevel() : LoggerLevel in class org.sonar.api.utils.log.LogTester | From | To | |
Change Return Type Logger to org.slf4j.Logger in method public getLogger() : org.slf4j.Logger in class org.sonar.api.utils.TimeProfiler | From | To | |
Change Return Type boolean to LoggerLevel in method protected abstract getLevel() : LoggerLevel in class org.sonar.api.utils.log.Loggers | From | To | |
Rename Attribute | 1 | ||
Rename Attribute initialDebugMode : boolean to initialLevel : LoggerLevel in class org.sonar.api.utils.log.LogTester | From | To | |
Change Attribute Type | 2 | ||
Change Attribute Type logger : Logger to logger : org.slf4j.Logger in class org.sonar.api.utils.TimeProfiler | From | To | |
Change Attribute Type initialDebugMode : boolean to initialLevel : LoggerLevel in class org.sonar.api.utils.log.LogTester | From | To | |
Extract And Move Method | 4 | ||
Extract And Move Method protected setLevel(level LoggerLevel) : void extracted from protected before() : void in class org.sonar.api.utils.log.LogTester & moved to class org.sonar.api.utils.log.ConsoleLoggers | From | To | |
Extract And Move Method package setInstance(li LogInterceptor) : void extracted from protected before() : void in class org.sonar.api.utils.log.LogTester & moved to class org.sonar.api.utils.log.LogInterceptor | From | To | |
Extract And Move Method public setLevel(level LoggerLevel) : LogTester extracted from public debugLevel() : void in class org.sonar.api.utils.log.LogTesterTest & moved to class org.sonar.api.utils.log.LogTester | From | To | |
Extract And Move Method package setInstance(li LogInterceptor) : void extracted from protected after() : void in class org.sonar.api.utils.log.LogTester & moved to class org.sonar.api.utils.log.LogInterceptor | From | To | |
Rename Parameter | 1 | ||
Rename Parameter obj : Object to o : Object in method public equals(o Object) : boolean in class org.sonar.server.es.request.ProxyBulkRequestBuilder.BulkRequestKey | From | To |