f5f325dea9cf1972dde512da919c87c93baf70a7
Files Diff
- Added: 3
- Removed: 0
- Renamed: 0
- Modified: 8
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Merge Attribute | 1 | ||
| Merge Attribute [sortImports : SortImports, offsets : ImmutableList<Integer>, lengths : ImmutableList<Integer>, lineRanges : ImmutableRangeSet<Integer>] to parameters : CommandLineOptions in class com.google.googlejavaformat.java.FormatFileCallable | From | To | |
| Move Method | 2 | ||
| Move Method private parseRangeSet(linesFlags List<String>) : RangeSet<Integer> from class com.google.googlejavaformat.java.Main to private parseRangeSet(result ImmutableRangeSet.Builder<Integer>, ranges String) : void from class com.google.googlejavaformat.java.CommandLineOptionsParser | From | To | |
| Move Method private parseRange(arg String) : Range<Integer> from class com.google.googlejavaformat.java.Main to private parseRange(arg String) : Range<Integer> from class com.google.googlejavaformat.java.CommandLineOptionsParser | From | To | |
| Rename Variable | 1 | ||
| Rename Variable argInfo : ArgInfo to parameters : CommandLineOptions in method public format(args String...) : int in class com.google.googlejavaformat.java.Main | From | To | |
| Inline Method | 2 | ||
| Inline Method private version() : void inlined to public format(args String...) : int in class com.google.googlejavaformat.java.Main | From | To | |
| Change Return Type | 1 | ||
| Change Return Type RangeSet<Integer> to void in method private parseRangeSet(result ImmutableRangeSet.Builder<Integer>, ranges String) : void in class com.google.googlejavaformat.java.CommandLineOptionsParser | From | To | |
| Move Attribute | 4 | ||
| Move Attribute private COLON_SPLITTER : Splitter from class com.google.googlejavaformat.java.Main to private COLON_SPLITTER : Splitter from class com.google.googlejavaformat.java.CommandLineOptionsParser | From | To | |
| Move Attribute private USAGE : String[] from class com.google.googlejavaformat.java.Main to private USAGE : String[] from class com.google.googlejavaformat.java.UsageException | From | To | |
| Move Attribute private COMMA_SPLITTER : Splitter from class com.google.googlejavaformat.java.Main to private COMMA_SPLITTER : Splitter from class com.google.googlejavaformat.java.CommandLineOptionsParser | From | To | |
| Move Attribute private ADDITIONAL_USAGE : String[] from class com.google.googlejavaformat.java.Main to private ADDITIONAL_USAGE : String[] from class com.google.googlejavaformat.java.UsageException | From | To | |
| Extract Class | 1 | ||
| Extract Class com.google.googlejavaformat.java.CommandLineOptionsParser from class com.google.googlejavaformat.java.Main | From | To | |
| Move Class | 1 | ||
| Move Class com.google.googlejavaformat.java.Main.SortImports moved to com.google.googlejavaformat.java.CommandLineOptions.SortImports | From | To | |
| Change Variable Type | 1 | ||
| Change Variable Type argInfo : ArgInfo to parameters : CommandLineOptions in method public format(args String...) : int in class com.google.googlejavaformat.java.Main | From | To | |
| Rename Parameter | 1 | ||
| Rename Parameter usage : String to message : String in method package UsageException(message String) in class com.google.googlejavaformat.java.UsageException | From | To |