Skip to content

merge from base #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 166 commits into from
Jun 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
7a2e5c2
Fixing IOUtil.findAllFiles() acessing a loc's extension in the wrong …
Dec 8, 2016
8925e84
Method to find all '.java' files in a location.
Dec 8, 2016
0394726
Finding all classes that is a direct subclass of Exception.
Dec 8, 2016
9d75a7f
First implementation on finding indirect subclasses of Exception.
Dec 8, 2016
185aaed
Starting refactors. Retrieving superClass data in a method.
Dec 8, 2016
5da1458
Adding comments to help understanding and future refactors.
Dec 8, 2016
c2db785
Deeper Inheritance Hierarchy and some tests to verify correctness.
dvmarcilio Mar 15, 2017
522b970
Testing a recursive like solution. Still not working as expected.
dvmarcilio Mar 15, 2017
5e3cec9
Finally working.
dvmarcilio Mar 15, 2017
e32af38
Iterative version of checking exception hierarchy.
dvmarcilio Mar 15, 2017
54c14ac
Refactoring.
dvmarcilio Mar 15, 2017
cf4d969
Removing unecessary parathensis
dvmarcilio Mar 15, 2017
d370ca5
Updating zip with classes being used for tests.
dvmarcilio Mar 15, 2017
bbb1bc0
Extracting methods with more meaningful names.
dvmarcilio Mar 15, 2017
a032082
Git ignore
dvmarcilio Mar 15, 2017
816549a
Capturing classes with more than one class modifier.
dvmarcilio Mar 15, 2017
cd58a6a
Initializing classes found when method is called.
dvmarcilio Mar 17, 2017
5386e47
Map has to be instantiated with '()'.
dvmarcilio Mar 17, 2017
f398ddf
Making sure that findCheckedExceptions() is called before every test.
dvmarcilio Mar 17, 2017
84e382e
Big refactor and now finding inner classes too!
dvmarcilio Mar 17, 2017
dcb31ed
Catching and storing locations that could not be parsed.
dvmarcilio Mar 17, 2017
5bf86b3
Printing total count of files not parsed, and conditionally printing …
dvmarcilio Mar 17, 2017
56e161f
Merge remote-tracking branch 'upstream/master'
dvmarcilio Mar 17, 2017
458b17f
Merge branch 'master' into finding-checked-exception-classes
dvmarcilio Mar 17, 2017
098aa40
Initial impl - Finding throw statements and breaks inside for statame…
dvmarcilio Mar 20, 2017
0cc3d43
Finding more than one return statement inside a for statement.
dvmarcilio Mar 20, 2017
5429595
Looking for continue statements inside for statements.
dvmarcilio Mar 20, 2017
91794cc
Comment for no labeled 'continue' allowed.
dvmarcilio Mar 20, 2017
0b776ea
module ParseTreeVisualization - Making possible to visualize any Synt…
dvmarcilio Mar 22, 2017
3f98910
Experimenting with a module for finding local variables in a MethodBody
dvmarcilio Mar 22, 2017
6c7f81b
More test cases for LocalVariablesFinder
dvmarcilio Mar 22, 2017
fbee8cc
Starting to get variable types.
dvmarcilio Mar 22, 2017
c5417e1
Finding 'array' local variables. Missing discouraged array syntax vars
dvmarcilio Mar 22, 2017
a6cd4ab
Finding 'array' local variables with discouraged syntax.
dvmarcilio Mar 22, 2017
e95b2d9
Git ignore '*.rsc' in '/bin'
dvmarcilio Mar 22, 2017
7060988
Comment explaining how array variables are stored.
dvmarcilio Mar 22, 2017
c17d20f
Capturing iterated variable (only an identifier)
dvmarcilio Mar 22, 2017
cad5c71
Checking if local variables are not arrays.
dvmarcilio Mar 22, 2017
d9d12e3
Not printing debug lines in ExceptionFinder.
dvmarcilio Mar 22, 2017
2ee462a
LocalVariablesFinder finding variables from method parameters.
dvmarcilio Mar 22, 2017
36a0d97
Changing 'isLocal' to 'isParameter'
dvmarcilio Mar 22, 2017
2936da1
Starting to break loop in prospective operations.
dvmarcilio Mar 30, 2017
1702d16
Changing syntax of 'BlockStatements' following Java specs and ANTLR.
dvmarcilio Mar 30, 2017
3e6771f
ProspectiveOperation - Starting slow. Working with really small example.
dvmarcilio Mar 30, 2017
ece3063
Working through reduce example.
dvmarcilio Mar 30, 2017
d0db627
Correcting test for filterMapReduce example.
dvmarcilio Mar 30, 2017
0f5aab3
Marking a local variable as declared within a loop or not.
dvmarcilio Mar 30, 2017
6a9eba1
Assuring that vars declared within loop are not added as not within l…
dvmarcilio Mar 30, 2017
636d31b
First attempt to start putting everything together towards a refactor.
dvmarcilio Mar 30, 2017
2042996
Fixing merging ops in an IfThenStmt.
dvmarcilio Mar 30, 2017
6275fc9
Correcting some silly(spelling, wrong types) compilation mistakes.
dvmarcilio Mar 30, 2017
ee0c058
Updating and improving ProspectiveOperations test.
dvmarcilio Mar 30, 2017
2a5b882
Fixing some logical erros in ForLoopToFunctional.
dvmarcilio Mar 30, 2017
c1d3397
Improving breaking statements into Prospective Operations.
dvmarcilio Mar 30, 2017
9c7e7e0
Retrieving if statements when merging ops when the first is not an fi…
dvmarcilio Mar 30, 2017
ebd6eba
Improving our understanding of the algorithm and fixing it.
dvmarcilio Mar 30, 2017
4144f50
Extracting module for OperationTypes.
dvmarcilio Mar 30, 2017
5435129
Module for NeededVariables. More robust and correct implementation.
dvmarcilio Mar 30, 2017
212a664
ProspectiveOperation using the extracted modules.
dvmarcilio Mar 30, 2017
0e39211
Moving some methods around from ProspectiveOperation.
dvmarcilio Mar 30, 2017
34acb5f
NeededVariables working with Expressions.
dvmarcilio Mar 30, 2017
eef3302
Local Variables declared are available vars!
dvmarcilio Mar 30, 2017
0d8cf60
Correcting typo that was causing test to fail.
dvmarcilio Mar 30, 2017
8e5a675
More test cases for Available Variables.
dvmarcilio Mar 30, 2017
8ea3685
Changing module NeededVariables to UsedVariables.
dvmarcilio Mar 30, 2017
a0d2e0e
Big refactor but still merging incorrectly.
dvmarcilio Mar 30, 2017
e4f3f9c
'Composable' not composible.
dvmarcilio Mar 30, 2017
fb0b151
Another case (IfThenStatement) for UsedVariables.
dvmarcilio Mar 30, 2017
18cbec8
Standarizing passing arguments prev before curr.
dvmarcilio Mar 30, 2017
f7f1568
Getting right if two operations can be chained or not.
dvmarcilio Mar 30, 2017
e87cd1e
Identifying operation as 'anyMatch'
dvmarcilio Mar 30, 2017
e4abf1b
Minor clarity changes.
dvmarcilio Mar 30, 2017
f689db7
Commenting test cases with 'continue' operations.
dvmarcilio Mar 30, 2017
7cd806a
More clarity changes.
dvmarcilio Mar 30, 2017
630b249
Computing the right availability set when merging into an if statement.
dvmarcilio Mar 30, 2017
0ff334e
Returning a transformed MethodBody with single forEach refactor.
dvmarcilio Apr 10, 2017
858dd7b
Trying to match the exact loop to be refactored.
dvmarcilio Apr 10, 2017
f3e8121
Gitignore
dvmarcilio Apr 10, 2017
385c971
Starting to chain operations.
dvmarcilio Apr 12, 2017
96c0200
Merge remote-tracking branch 'upstream/master'
dvmarcilio Apr 14, 2017
997a4a5
Catching case when LocalVariableDeclaration ends with ";".
dvmarcilio Apr 15, 2017
8945f0d
Extracting method to facilitate testing.
dvmarcilio Apr 15, 2017
2efcd3b
Adjusting the temporary impl of the lambda body for a reduce.
dvmarcilio Apr 16, 2017
db6aafb
Writing a faling test for nested loops (not really supported right now).
dvmarcilio Apr 16, 2017
28d1449
Not refactoring when there is an eager operation as non last operation.
dvmarcilio Apr 16, 2017
1801def
A Map Prospective Operation can be an 'ExpressionStatement' too!
dvmarcilio Apr 16, 2017
170c976
Assuring that a problem is ocurring in chaining&merging, rather than …
dvmarcilio Apr 16, 2017
8f8f186
Not losing last operation in list when merging both operations that a…
dvmarcilio Apr 16, 2017
2c8bfba
Fixing slices again! When both operations are not filters.
dvmarcilio Apr 16, 2017
2131814
Merge remote-tracking branch 'upstream/master'
dvmarcilio Apr 19, 2017
049f633
Rearranging map bodies when a return is needed.
dvmarcilio Apr 16, 2017
7a1d959
UsedVariables working properly when operation is reduce.
dvmarcilio Apr 16, 2017
b127f70
Implementation of reduce with compound assignment operator.
dvmarcilio Apr 16, 2017
8193c17
Updating test with one reduce example
dvmarcilio Apr 16, 2017
d203cb9
EnhancedFor iterating on Iterable is not a collection => not refactor…
dvmarcilio Apr 16, 2017
16395ba
Checking if loop returns a non literal boolean as pre condition to re…
dvmarcilio Apr 16, 2017
b475bf9
Lambda bodies of Map Operations should be rearranged only AFTER merged.
dvmarcilio Apr 16, 2017
7daa465
Making sure we are refactoring correctly a map body with 3 statements.
dvmarcilio Apr 16, 2017
154c4c5
Making the creation of methodVars more clear.
dvmarcilio Apr 16, 2017
7bc19b5
Identifying non effective final vars outside loop. More tests would b…
dvmarcilio Apr 16, 2017
87e4449
Merge remote-tracking branch 'upstream/master'
dvmarcilio Apr 24, 2017
4f573be
Retrieving class fields from CompilationUnit.
dvmarcilio Apr 27, 2017
e3f61aa
Removing unecessary stuff from LocalVariablesFinder
dvmarcilio Apr 27, 2017
c69060c
ForLoop using classFields to check for preconditions + Optimization a…
dvmarcilio Apr 27, 2017
3ccb030
ForLoopToFunctional not catching exception.
dvmarcilio May 4, 2017
87d2443
Counting and showing refactors in ForLoop
dvmarcilio May 4, 2017
f5d05c2
In case there is a duplicated localVariable and classField, retaining…
dvmarcilio May 4, 2017
4ce0f4d
Identifying methods' parameters inside an anonnymous inner class insi…
dvmarcilio May 4, 2017
384c08e
Removing deprecated test.
dvmarcilio May 4, 2017
6685256
Not refactoring inner loops, loops with while and (if AND else) state…
dvmarcilio May 4, 2017
a785c2a
PostIncremented and PostDecremented vars should not be effective final.
dvmarcilio May 4, 2017
1a1b0ed
Assuring that assignment inside loop renders a non effective final var.
dvmarcilio May 4, 2017
85d66cc
Names that reveal more intention in ForLoop
dvmarcilio May 4, 2017
cb7cb06
More robust implementation of ForLoopBodyReferences.
dvmarcilio May 4, 2017
9f4f044
Removing parenthesis from lambda arguments when functional refactor i…
dvmarcilio May 4, 2017
0af923f
Only refactoring loops with one reference to outside NonEffectiveFina…
dvmarcilio May 4, 2017
85fc52c
More test cases when loop with one reference to outside NEFV is not a…
dvmarcilio May 4, 2017
a03b29d
Writing tests to not yet implemented reduce with post increment.
dvmarcilio May 4, 2017
c6bacc4
Keeping one single statement block as blocks when breaking operations.
dvmarcilio May 4, 2017
cfc2987
Fixing some tests because our output changed when we kept blocks.
dvmarcilio May 4, 2017
62aff87
Trying to break the loop body in statements.
dvmarcilio May 10, 2017
07ed191
Testing breaking statements from a Then Statement.
dvmarcilio May 11, 2017
a3d3550
Identifying when an If it's not the last statement within it's block.
dvmarcilio May 11, 2017
5aa58af
Extracting methods on ProspectiveOperation
dvmarcilio May 11, 2017
cdf180e
Fixed mistake in returning from method.
dvmarcilio May 11, 2017
383ba40
BreakIntoStatements retrieving LocalVariableDeclarations from blocks
dvmarcilio May 11, 2017
95e43e6
LocalVariableDeclaration != LocalVariableDeclarationStatement.
dvmarcilio May 11, 2017
d9df572
Example with throw statement working.
dvmarcilio May 11, 2017
15cfb51
Getting right another 2 examples that weren't working before!
dvmarcilio May 11, 2017
826c267
Changing variable's name that was forgotten.
dvmarcilio May 12, 2017
fc8379b
ForLoopToFunctional refactors loops iterating on 'this.field'.
dvmarcilio May 14, 2017
dbf0066
Successfully checking if a field called by 'this.fieldName' is a Coll…
dvmarcilio May 14, 2017
623543a
Removing a forgotten debug println() in a test.
dvmarcilio May 14, 2017
1f4978c
Fixing some old tests.
dvmarcilio May 14, 2017
d9d009e
Fixing wrong old parameter in method call.
dvmarcilio May 14, 2017
b0d01f9
Ignoring loops that contains any type of continue statement.
dvmarcilio May 14, 2017
901ca0a
Merge remote-tracking branch 'upstream/master'
dvmarcilio May 16, 2017
e97c5b5
Changing everything ForLoopToFunctional modules' folders.
dvmarcilio May 16, 2017
961f194
Redoing merge in M3Util
dvmarcilio May 16, 2017
e0716d8
Fixing wrong import
dvmarcilio May 16, 2017
2df4e55
ForLoop renamed to EnhancedForLoopRefactorer
dvmarcilio May 16, 2017
42a8c29
Merge remote-tracking branch 'upstream/master'
dvmarcilio May 25, 2017
45f7dad
Starting to write a test for the entire refactor
dvmarcilio May 29, 2017
bfa8d50
Merge remote-tracking branch 'upstream/master'
dvmarcilio May 29, 2017
58d11c3
rename and move several files
rbonifacio Jun 4, 2017
15786f0
example of input file
rbonifacio Jun 7, 2017
e841847
Finally transforming a compilation unit with the refactors.
dvmarcilio Jun 11, 2017
0e460d3
Merge remote-tracking branch 'upstream/master'
dvmarcilio Jun 11, 2017
0d209ad
Fixing typos
dvmarcilio Jun 11, 2017
de0588c
Test case for refactoring an inner loop, but not an outer loop.
dvmarcilio Jun 11, 2017
46044ba
Counting occurrences and test case for inner loop.
dvmarcilio Jun 11, 2017
99dfb95
Removing folder 'testes' from .gitignore
dvmarcilio Jun 11, 2017
b8288a3
Fixing the declaration of a test case. Of course it was a failing test.
dvmarcilio Jun 11, 2017
bee31a0
Not breaking into prospective operation an inner loop inside an if
dvmarcilio Jun 11, 2017
a6bcbb9
Fixing helper test method to reflect how 'production' code is working
dvmarcilio Jun 11, 2017
85ef547
Fixing import of ParseTreeVisualization (changed folder)
dvmarcilio Jun 11, 2017
935aedd
Refactoring correctly the inner loop but not the outsider.
dvmarcilio Jun 11, 2017
11b688c
Small improvements on comments and stuff
dvmarcilio Jun 11, 2017
c90adad
Preparing to name lambda arg with the same name as LocalVariableDecla…
dvmarcilio Jun 23, 2017
dc4c2dc
Lambda arg with the same name as/when single local variable declarati…
dvmarcilio Jun 23, 2017
acbc1a0
Fixing ExceptionFinder module declaration
dvmarcilio Jun 23, 2017
16f90fa
Integrating ForLoopToFunctional into Driver
dvmarcilio Jun 23, 2017
6c52f69
Avoiding, the max we can, to not modify other methods.
dvmarcilio Jun 23, 2017
16361f9
Fixing a typo in Driver's logs.
dvmarcilio Jun 23, 2017
0fbc73f
Fixing ExceptionFinderTest
dvmarcilio Jun 23, 2017
b249147
Merge pull request #19 from dvmarcilio/master
rbonifacio Jun 23, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
bin
testes
bin
File renamed without changes.
Loading