Skip to content

Commit eec27ce

Browse files
committed
reduce visibility to internal
1 parent b6dd5d4 commit eec27ce

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

TODO.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
Ordered roughly in priority:
55

6-
- Write Readme
7-
- Add GH topics/description
6+
- Writeup
87
- Test command line tool
9-
- Make website tool prettier
8+
- Make website tool prettier/better
109
- Throttle website tool/prepare for HN
11-
- Writeup
10+
- Write Readme
11+
- Add GH topics/description
1212

1313
## Rough architecture
1414

core/src/main/kotlin/com/fractalwrench/json2kotlin/GsonBuildDelegate.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import com.squareup.kotlinpoet.TypeSpec
88
/**
99
* A build delegate which alters the generated source code to include GSON annotations
1010
*/
11-
class GsonBuildDelegate : SourceBuildDelegate {
11+
internal class GsonBuildDelegate : SourceBuildDelegate {
1212

1313
private val regex = "%".toRegex()
1414

core/src/main/kotlin/com/fractalwrench/json2kotlin/JsonNames.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package com.fractalwrench.json2kotlin
33
internal fun nameForArrayField(index: Int, identifier: String): String =
44
if (index == 0) identifier else "$identifier${index + 1}"
55

6-
fun String.standardiseNewline(): String {
6+
internal fun String.standardiseNewline(): String {
77
return this.replace("\r\n", "\n")
88
}
99

10-
fun String.toKotlinIdentifier(): String {
10+
internal fun String.toKotlinIdentifier(): String {
1111
return when {
1212
keywords.contains(this) -> "`$this`" // escape
1313
else -> {

core/src/main/kotlin/com/fractalwrench/json2kotlin/JsonReader.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import java.io.InputStreamReader
1212
*
1313
* If the root element is an array, a wrapper object will be added to the tree.
1414
*/
15-
class JsonReader(private val jsonParser: JsonParser) {
15+
internal class JsonReader(private val jsonParser: JsonParser) {
1616

1717
/**
1818
* Reads a JSON string using GSON.

0 commit comments

Comments
 (0)