Move apt-specific classes to apt package (#1392)

This commit is contained in:
Zac Sweers
2021-09-09 22:14:29 -04:00
committed by GitHub
parent 213fb33012
commit 5756136a72
6 changed files with 7 additions and 5 deletions

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.squareup.moshi.kotlin.codegen
package com.squareup.moshi.kotlin.codegen.apt
import javax.lang.model.element.TypeElement
import javax.lang.model.type.DeclaredType

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.squareup.moshi.kotlin.codegen
package com.squareup.moshi.kotlin.codegen.apt
import com.google.auto.service.AutoService
import com.squareup.kotlinpoet.AnnotationSpec

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.squareup.moshi.kotlin.codegen
package com.squareup.moshi.kotlin.codegen.apt
import com.squareup.kotlinpoet.TypeSpec
import com.squareup.kotlinpoet.metadata.ImmutableKmClass

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.squareup.moshi.kotlin.codegen
package com.squareup.moshi.kotlin.codegen.apt
import com.squareup.kotlinpoet.AnnotationSpec
import com.squareup.kotlinpoet.ClassName

View File

@@ -15,6 +15,8 @@
*/
package com.squareup.moshi.kotlin.codegen;
import com.squareup.moshi.kotlin.codegen.apt.JsonClassCodegenProcessorTest;
/** For {@link JsonClassCodegenProcessorTest#extendJavaType}. */
public class JavaSuperclass {
public int a = 1;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.squareup.moshi.kotlin.codegen
package com.squareup.moshi.kotlin.codegen.apt
import com.google.common.truth.Truth.assertThat
import com.squareup.moshi.JsonAdapter