Valentin Kipyatkov
5c688e9916
Fixed KT-5433 J2K: incorrect conversion of method call with vararg
...
#KT-5433 Fixed
2014-07-10 23:20:38 +04:00
Valentin Kipyatkov
fe46b40220
Java to Kotlin converter: no special logic for returns in try-with-resource is needed anymore
2014-07-10 23:20:38 +04:00
Valentin Kipyatkov
2ebaab867d
Fixed KT-5434 J2K: incorrect conversion of main method
...
#KT-5434 Fixed
2014-07-10 23:20:38 +04:00
Valentin Kipyatkov
28e003e79f
Java to Kotlin converter: code refactoring
2014-07-10 23:20:38 +04:00
Valentin Kipyatkov
139b7cdd27
Java to Kotlin converter: moved code of switch statement conversion into separate class
2014-07-10 23:20:38 +04:00
Valentin Kipyatkov
8d290ee127
Java to Kotlin converter: better switch conversion in case of code block in case
2014-07-10 23:20:37 +04:00
Valentin Kipyatkov
3ccd8839ff
Java to Kotlin converter: refactoring and fixing switch conversion
...
#KT-5390 Fixed
2014-07-10 23:20:37 +04:00
Valentin Kipyatkov
6bd5a12498
Java to Kotlin converter: minor refactoring of switch conversion + no need for empty else
2014-07-10 23:20:37 +04:00
Valentin Kipyatkov
e84c753e99
Fixed KT-5396 J2K: properly format "else if" on conversion
...
#KT-5396 Fixed
2014-07-10 23:20:37 +04:00
Valentin Kipyatkov
88235c3eb2
Minor code corrections after code review
2014-07-10 23:20:37 +04:00
Valentin Kipyatkov
330c41fc61
Java to Kotlin converter: code refactoring
2014-07-10 23:20:37 +04:00
Valentin Kipyatkov
f8261a8b6e
Java to Kotlin converter: fixed two similar bugs
2014-07-10 23:20:37 +04:00
Valentin Kipyatkov
806cc1e434
Java to Kotlin converter: do not drop exceptions, produce internal error!
2014-07-10 23:20:36 +04:00
Valentin Kipyatkov
3c42933f96
Java to Kotlin converter: fixed exception on conversion
2014-07-10 23:20:36 +04:00
Valentin Kipyatkov
13f40e5b0d
Java to Kotlin converter: constructor overloads to default parameter values conversion
2014-07-10 23:20:36 +04:00
Valentin Kipyatkov
e86d74600d
Java to Kotlin converter: access modifiers of factory functions + factory functions for nested classes
2014-07-10 23:20:36 +04:00
Valentin Kipyatkov
3c34197bc0
Java to Kotlin converter: base class parameters detection logic moved into ConstructorConverter too
2014-07-10 23:20:36 +04:00
Valentin Kipyatkov
e997557ba1
Java to Kotlin converter: refactored code to perform primary constructor detection only once
2014-07-10 23:20:36 +04:00
Valentin Kipyatkov
c260eee9b8
Java to Kotlin converter: moved primary constructor detection logic into ConstructorConverter
2014-07-10 23:20:36 +04:00
Valentin Kipyatkov
a58141b576
Java to Kotlin converter: code refactoring
2014-07-10 23:20:36 +04:00
Valentin Kipyatkov
66005a3469
Java to Kotlin converter: secondary constructors are converted to top-level functions instead of "create" functions in class object
2014-07-10 23:20:35 +04:00
Valentin Kipyatkov
f698ca69d7
Java to Kotlin converter: more correct detection of primary constructor + constructor chains are supported (not completely correct code generated yet)
2014-07-10 23:20:35 +04:00
Valentin Kipyatkov
9d1452bbbc
Java to Kotlin converter: minor code refactoring
2014-07-10 23:20:35 +04:00
Valentin Kipyatkov
0b7ef4debf
Java to Kotlin converter: do not initialize non-val's in artificial primary constructor - it often produced stupid code
2014-07-10 23:20:35 +04:00
Valentin Kipyatkov
f8a412aea0
Java to Kotlin converter: do not generate default field initializer when it's incorrect anyway
2014-07-10 23:20:35 +04:00
Valentin Kipyatkov
44c706eb3e
Java to Kotlin converter: generate nullable type for private non-initialized fields
2014-07-10 23:20:35 +04:00
Valentin Kipyatkov
f8e4ecfa94
Java to Kotlin converter: fixed bugs with reference conversion in secondary constructors
2014-07-10 23:20:35 +04:00
Valentin Kipyatkov
f277285d9a
Java to Kotlin converter: minor
2014-07-10 23:20:34 +04:00
Valentin Kipyatkov
3ebc8046a9
Java to Kotlin converter: refactored code moving all knowledge about factory function internals into ConstructorConverter
2014-07-10 23:20:34 +04:00
Valentin Kipyatkov
1e15727387
Java to Kotlin converter: refactored code moving dealing with constructors from Converter to ConstructorConverter
2014-07-10 23:20:34 +04:00
Valentin Kipyatkov
e76c3d4e9e
Java to Kotlin converter: no intermediate __ variable in factory function if body is simple
2014-07-10 23:20:34 +04:00
Valentin Kipyatkov
467ca77854
Java to Kotlin converter: fixed bug with secondary constructor conversion
2014-07-10 23:20:34 +04:00
Valentin Kipyatkov
0edd9d24be
Java to Kotlin converter: refactoring working with constructors (in progress)
2014-07-10 23:20:34 +04:00
Valentin Kipyatkov
b7bcb0d9e3
Java to Kotlin converter: keep more than one blank line from original code
2014-07-10 23:20:34 +04:00
Valentin Kipyatkov
5a5e553367
Java to Kotlin converter: do not generate redundant parenthesis for empty constructor parameters
2014-07-10 23:20:34 +04:00
Valentin Kipyatkov
947bf3c0ed
Java to Kotlin converter: keep original placement of primary constructor body + better preserving of comments for constructor
2014-07-10 23:20:33 +04:00
Valentin Kipyatkov
88bdbb02f4
Fixed test data
2014-07-10 23:20:33 +04:00
Valentin Kipyatkov
8512eac768
Fixed KT-5315 J2K: Generate local var when parameter is being assigned
...
#KT-5315 Fixed
2014-07-10 23:20:33 +04:00
Valentin Kipyatkov
427280a365
Java to Kotlin converter: added heuristics that values of types like Integer are likely nullable
2014-07-10 23:20:33 +04:00
Valentin Kipyatkov
30a7c67aaa
Java to Kotlin converter: fixed crash in converter + more correct auto insertion of !!
...
#KT-851 Fixed
2014-07-10 23:20:33 +04:00
Valentin Kipyatkov
d3b773c0cd
Java to Kotlin converter: declaring locals as var's in most of cases when needed, dropped forceLocalVariableImmutability setting
2014-07-10 23:20:33 +04:00
Valentin Kipyatkov
63ebfe2c03
Java to Kotlin converter: more correct logic for specifying field type
2014-07-10 23:20:33 +04:00
Valentin Kipyatkov
6e473506fc
Java to Kotlin converter: specify local variable type when necessary
...
#KT-5277 Fixed
2014-07-10 23:20:32 +04:00
Valentin Kipyatkov
73ba1af779
Java to Kotlin converter: minor code refactoring
2014-07-10 23:20:32 +04:00
Valentin Kipyatkov
a99f6f3774
Java to Kotlin converter: honor external Nullable/NotNull annotations
2014-07-10 23:20:32 +04:00
Valentin Kipyatkov
f8fef59654
Java to Kotlin converter: checking that no element prototype assignment forgotten + no memory leaks through singleton Element instances
2014-07-10 23:20:32 +04:00
Valentin Kipyatkov
4f27dd63b5
Java to Kotlin converter: minor code corrections after review
2014-07-10 23:20:32 +04:00
Valentin Kipyatkov
52994d69ca
Java to Kotlin converter: fixed conversion of access to Kotlin property declared as constructor parameter
2014-07-10 23:20:32 +04:00
Alexander Udalov
51ecfe2a09
Don't fail on a bad Retention annotation in light classes
...
#KT-5450 Fixed
No new tests added because it seems there are no tests on highlighting which
cause light class generation, where the original error occurred
2014-07-10 20:30:47 +04:00
Alexander Udalov
0e758b97f7
Minor, delete outdated comments and refine type
2014-07-10 20:30:47 +04:00