aboutsummaryrefslogtreecommitdiff
path: root/src/main
AgeCommit message (Collapse)Author
2017-03-21Verify that null is not passed as vararg parameter (#551)Ash Davies
2017-03-15Adds messaging to NPEs thrown in MethodSpec.methodBuilder() and ↵Barry Carroll
MethodSpec.addModifiers() (#550) I encountered the NPEs because of variations in the API response which I use to generate my code. I figured it would be better to add some messaging to the NPEs :)
2017-01-21Fix division by zero in CodeBlock arg formatting (#542)John Draper
2016-11-14Merge pull request #530 from cconroy/methodspec-namedJesse Wilson
Add MethodSpec.Builder addNamedCode convenience method
2016-11-10Add MethodSpec.Builder addNamedCode convenience methodChris Conroy
2016-11-10Only send the relevant characters into the matcherChris Conroy
2016-11-09Rollback support for retaining parameter annotations.jwilson
We recently merged this because it was demanded, but looking through our history we've had vocal users complaining about this exact kind of behavior. https://github.com/square/javapoet/pull/487/files
2016-11-09Fix imports of nested types.jwilson
This adds a test and rolls back the changes made in a136eaa777b7750e16b3c6e8bd6d0228442e3e1d. The tests contributed with that PR still pass.
2016-11-09Implement line wrapping.jwilson
Currently only method parameters are wrapped. Anything else can be wrapped by replacing a space with $W. https://github.com/square/javapoet/issues/105
2016-11-09Add support for named arguments to CodeBlockChris Conroy
Relative and positional arguments are fine for small statements, but larger code blocks benefit from having named arguments. https://github.com/square/javapoet/issues/518
2016-11-08Disallow nulls in TypeSpec#addSuperinterfacesBen Bader
2016-11-08Always write UTF-8.jwilson
Sometimes the system default charset is not UTF-8 and this is sad. We always want UTF-8, and we want to encourage anyone doing tools to use UTF-8. Closes: https://github.com/square/javapoet/pull/474
2016-11-08Make MethodSpec.overriding include parameter annotations.Derek Perez
2016-10-28Guard for null in TypeSpec.Builder#addSuperinterface(TypeName)Ben Bader
2016-10-27Fix indentation directives in CodeBlock javadocRon Shapiro
2016-09-26`addJavadoc(CodeBlock)` overloads for TypeSpec, MethodSpec, and FieldSpecRon Shapiro
2016-09-02Check kind state when adding super class. Christian Stein
2016-08-06Change MethodSpec.overriding to not copy annotations.Gregory Kick
Closes: https://github.com/square/javapoet/issues/482
2016-08-06Merge pull request #472 from buckbaskin/masterJesse Wilson
Add convenience method builder.addComment
2016-08-04ClassName.getReflectionName() added. #485Christian Stein
2016-07-24Remove DEFAULT modifier from overridden method. #480Christian Stein
2016-06-13Add convenience method builder.addCommentBuck Baskin
Adds a single line comment to the code. See issue #454
2016-06-07Removed the unnecessary commentsChris Reynolds
2016-06-07Fixed the name clash when implementing/extending classes of the same nameChris Reynolds
2016-05-29Allow fields in annotationsBen Bader
2016-05-06allow TypeName subclasses in withBounds() input listRoger Caplan
2016-04-23Avoid using raw types for SomeGeneric<T>.Innermarcosb
Fixes #458
2016-03-24optimize TypeName#toString() with cacheFUJI Goro (gfx)
2016-03-24specialize CodeWriter#emit(String) for optimizationFUJI Goro (gfx)
2016-03-22TypeName.isBoxedPrimitive().jwilson
2016-03-21Fix string literal and backslashes.Xudong Yang
2016-03-19Merge pull request #441 from sormuras/typevar_withboundsJesse Wilson
TypeVariableName.withBounds added
2016-03-18Annotation methods to be public, abstract and nothing elseSkelehog
Other modifiers like static are not allowed for annotation methods. The exception message no longer suggests that annotation methods cannot have modifiers, which is misleading since public and abstract is in fact required.
2016-03-17TypeVariableName.withBounds added.Christian Stein
2016-03-13Ignore duplicate exceptions in MethodSpec.BuilderRon Shapiro
2016-03-13Merge pull request #430 from ronshapiro/typename_get_errortypeJesse Wilson
Treat ErrorType like a regular DeclaredType in TypeName.get()
2016-02-23Treat ErrorType like a regular DeclaredType in TypeName.get()Ron Shapiro
2016-02-10Revive CodeBlock.of()Ron Shapiro
2016-02-10Add TypeSpec factories for when a ClassName already exists.Jake Wharton
2016-02-09Fix a bug where annotations broke import resolution.jwilson
Closes: https://github.com/square/javapoet/issues/422
2016-02-07Append annotations from multiple calls to TypeName#annotatedRon Shapiro
2016-02-06Allow TypeNames to be annotated twiceRon Shapiro
2016-01-22make TypeSpec.Kind enum publicRoger Caplan
2016-01-19Added support for initializer blocks; Bugfix in TypeSpec.toBuilder() for ↵Hannes Dorfmann
static initializer block
2016-01-17Literal conversion clean up.Christian Stein
Character and String literal conversion refactored. Made AnnotationSpec.Builder.addMemberForValue package private. Refactored and fixed bug in AnnotationSpec.get(AnnotationMirror). Removed redundant public modifiers from package private Util methods.
2016-01-11TypeName.equals() and .hashCode() now respect attached annotations.Christian Stein
Made TypeName.equals() and TypeName.hashCode() final and respect attached annotations by using toString() representation. Removed all overridings in derived classes.
2016-01-10Static import corner case tests and README/CHANGELOG updates.Christian Stein
2016-01-09Static import support added.Christian Stein
2016-01-08Escape special char values.Christian Stein
2016-01-08Added char/Character to AnnotationSpec.Builder.addValue logicChristian Stein