Skip to content

Commit 78cc6c1

Browse files
committed
Merge pull request #19 from palantir/feature/fix-javadoc
Fixing angle brackets in javadoc
2 parents 4df835a + 2cab773 commit 78cc6c1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

typescript-service-generator-core/src/main/java/com/palantir/code/ts/generator/TypescriptServiceGeneratorConfiguration.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import com.google.common.collect.Sets;
2121

2222
import cz.habarta.typescript.generator.GenericsTypeProcessor;
23-
import cz.habarta.typescript.generator.JsonLibrary;
2423
import cz.habarta.typescript.generator.Settings;
2524
import cz.habarta.typescript.generator.TsType;
2625
import cz.habarta.typescript.generator.TypeProcessor;
@@ -54,8 +53,8 @@ public Result processType(Type javaType, Context context) {
5453
/**
5554
* A Java format string, expected to have exactly one %s where a generic should be placed.
5655
* Specifies what return types should look like.
57-
* For example, suppose a Java endpoint returned a string, then for a value of "Foo<Bar<%s>>" for this property,
58-
* the generated Typescript endpoint would return type Foo<string>.
56+
* For example, suppose a Java endpoint returned a string, then for a value of "Foo&lt;Bar&lt;%s&gt;&gt;" for this property,
57+
* the generated Typescript endpoint would return type Foo&lt;string&gt;.
5958
*/
6059
@Value.Parameter
6160
public abstract String genericEndpointReturnType();
@@ -145,7 +144,6 @@ public Settings getSettings() {
145144
settings.addTypeNamePrefix = generatedInterfacePrefix();
146145
settings.sortDeclarations = true;
147146
settings.noFileComment = true;
148-
settings.jsonLibrary = JsonLibrary.jackson2;
149147

150148
return settings;
151149
}

0 commit comments

Comments
 (0)