-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "improvement: rename package to filepath (#12)"
This reverts commit 69a1979.
- Loading branch information
1 parent
69a1979
commit fb59213
Showing
7 changed files
with
45 additions
and
27 deletions.
There are no files selected for viewing
6 changes: 0 additions & 6 deletions
6
fern-api-java-types/src/main/java/com/fern/IWithFilepath.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.fern; | ||
|
||
import java.util.Optional; | ||
|
||
interface IWithPackage { | ||
|
||
Optional<String> _package(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
fern-api-java-types/src/main/java/com/fern/WithFilepath.java
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
fern-api-java-types/src/main/java/com/fern/WithPackage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.fern; | ||
|
||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.fern.immutables.StagedBuilderStyle; | ||
import org.immutables.value.Value; | ||
|
||
@Value.Immutable | ||
@StagedBuilderStyle | ||
@JsonDeserialize(as = ImmutableWithPackage.class) | ||
public interface WithPackage extends IWithPackage { | ||
|
||
static ImmutableWithPackage.Builder builder() { | ||
return ImmutableWithPackage.builder(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.fern.test; | ||
|
||
import com.fern.HttpRequest; | ||
import com.fern.NamedTypeReference; | ||
import com.fern.TypeReference; | ||
|
||
public class Main { | ||
|
||
public static void main(String... args) { | ||
HttpRequest.builder() | ||
.bodyType(TypeReference.named(NamedTypeReference.builder() | ||
.name("") | ||
.build())) | ||
.build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters