Age | Commit message (Collapse) | Author |
|
|
|
Exempt-From-Owner-Approval: upgrade
Change-Id: I110240a89821c144cba4f536cdbebee1f53184eb
|
|
Now that http://aosp/1235427 and http://aosp/1238719 are in, NOTICE
symbolic links are no longer needed.
Bug: 67772237
Bug: 68860345
Test: manually built and diffed before and after system image notices
Change-Id: I4a72960d8145d5e951fe3f5f1d55fff8d75a9227
|
|
|
|
Add a comment about dropping parameter annotations in MethodSpec.overriding
|
|
|
|
square/egorand/200113/method-override-remove-param-annotations
Remove parameter annotations in MethodSpec.overriding
|
|
- Change to not copy parameter annotations was first introduced in
9505ad0e027a1f125b5352ac722ea141831fbf1c.
- Change to properly copy mirror annotations in ParameterSpec.get
was introduced in a0eadbbf0e7b70f0fbbc66043536e4328c3808fd,
breaking the behavior of MethodSpec.overriding.
- This change preserves the correct behavior of ParameterSpec.get
while also removing annotations in MethodSpec.overriding.
|
|
"Disallow final modifier on ParameterSpec" -> "Only allow final
modifier on ParameterSpec"
|
|
|
|
|
|
|
|
Test for JavaFile.writeToPath
|
|
|
|
|
|
|
|
* Add alwaysQualify() API to avoid collisions with known colliding types
Implementation based on https://github.com/square/javapoet/issues/77#issuecomment-507387399
Resolves #77
CC @eamonnmcmanus
* Add utility avoidClashesWithNestedClasses methods for Class/TypeElement
* Fix style issues
* Move scope to TypeSpecs
* Check superclasses and superinterfaces
* Add superclass and superinterface overloads
* Style fixes
* Add qualified names to toBuilder test
* Add Map.Entry test + doc regression tests
|
|
* added convenience overloads for code blocks in control flow
* added javadoc and test
* added test for do while block
* fixed continuation space count
|
|
* Use regex for new line character to cover both dos and unix endings when calling emitAndIndent - fixes #552
* Update CodeWriter to use linebreak matcher instead of \r\n
|
|
* Copy originating elements in toBuilder() as well
Fixes #749
* Add test
|
|
* Add RecordingAppendable in LineWrapper for tracking last emitted char
* Check lastChar in javadoc emission to emit newline if necessary
Resolves #731
* Move trailing newline check to emit() overload for reuse
Allows using from anywhere emitting a CodeBlock
* Ensure trailing newlines in method bodies
Resolves #722
* Add dedicated trailing newline in javadoc test
* Fix modifier ordering
* Fix rebase conflict
Co-authored-by: Egor Andreevich <andreevich.egor@gmail.com>
|
|
* Make modifiers and annotations in FieldSpec public
* Make AnnotationSpec members public
* Make JavaFile staticImports public
* Make modifiers and annotations in parameterspec public
* Make methodspec modifiers, params, typevars, and annotations public
* Make typespec builder lists public
* Move TypeSpec.Builder validations to build() where appropriate
* Move AnnotationSpec.Builder validations to build() where appropriate
* Fix line length style
|
|
Remove non-LTS JDK versions from Travis config
|
|
Fix broken merge
|
|
|
|
|
|
* Add checks to ParameterSpec with VariableElement + copy over annotations
Signed-off-by: shaishavgandhi05 <shaishgandhi@gmail.com>
* Add test for variable element
Signed-off-by: shaishavgandhi05 <shaishgandhi@gmail.com>
* Extract util methods into TestUtil
* Fix formatting
* Make findFirst more generic
Co-authored-by: Egor Andreevich <andreevich.egor@gmail.com>
|
|
Add CodeBlock.Builder#clear() method
|
|
Analogous to the change added in KotlinPoet
|
|
Switch to openjdk8 for CI
|
|
|
|
* provide an easier way for an other encoding than UTF-8
* formatting
* no final on argument and fix for javadoc
* checkstyle line length
checkstyle line length
|
|
am: d177b55a23
Change-Id: I496742695f41183ac435e9d8d474c9eb099bb764
|
|
am: 276cad6717
Change-Id: I647a51a6d7e5c912828457129178bc0cfece1006
|
|
am: 74af6f11fc
Change-Id: I83ff9f0bc6a6682b92c8b828c8f1b6d9a4432e77
|
|
So that tools/external_updater can check updates for this library.
Exempt-From-Owner-Approval: No code change
Test: NA
Change-Id: Iee1179c7e5ed625c798965360a980bbd02d2625d
|
|
Nit: Simplify a CodeBlock
|
|
|
|
package
|
|
Memoize ClassName.simpleNames()
|
|
In addition to being used repeatedly in CodeWriter.lookupName(), the current implementation is N^2 (albeit for a usually low N) since it recursively calls itself on the enclosing class name. This should get rid of some of the garbage created in code writing.
|
|
Remove argument whose value isn't needed
|
|
The single-argument overload will use the end of the String as the end index automatically.
|
|
Checkstyle 8.18
|
|
|
|
Remove n^2 algorithm in CodeWriter.resolve() by precomputing all of the nested simple names of a TypeSpec
|
|
Add documentation on nextControlFlow to README #693
|
|
|
|
nested simple names of a TypeSpec
For one large (100K lines) file, this saved 3.5s/build
|
|
* Allow setting method name on MethodSpec.Builder
* Fix indentation
|