Skip to content

Commit 40feb44

Browse files
committed
update to fix code review
1 parent 287f148 commit 40feb44

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/kotlin/wu/seal/jsontokotlin/KotlinCodeMaker.kt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ class KotlinCodeMaker {
140140
} catch (e: UnSupportJsonException) {
141141
type = e.adviceType
142142
""
143-
} catch (e: Exception) {
144-
""
145143
}
146144
toBeAppend.add(subCode)
147145
}
@@ -164,8 +162,6 @@ class KotlinCodeMaker {
164162
} catch (e: UnSupportJsonException) {
165163
mapValueType = e.adviceType
166164
""
167-
} catch (e: Exception) {
168-
""
169165
}
170166
toBeAppend.add(
171167
subCode
@@ -181,8 +177,6 @@ class KotlinCodeMaker {
181177
} catch (e: UnSupportJsonException) {
182178
type = e.adviceType
183179
""
184-
} catch (e: Exception) {
185-
""
186180
}
187181
toBeAppend.add(subCode)
188182
addProperty(stringBuilder, property, type, "", isLast)

src/test/kotlin/wu/seal/jsontokotlin/regression/Issue090Test.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,18 @@ data class Test(
367367
}"""
368368

369369

370+
/**
371+
* test before to init test enviroment
372+
*/
370373
@Before
371374
fun setUp() {
372375
TestConfig.setToTestInitState()
373376
}
374377

375378

379+
/**
380+
* Test issue #90 if fixed
381+
*/
376382
@Test
377383
fun testIssue090() {
378384
val result = KotlinDataClassCodeMaker("Test", rawJson).makeKotlinDataClassCode()

0 commit comments

Comments
 (0)