1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-05 03:55:58 +01:00

Remove Kotlin experiments

This commit is contained in:
Paul Schaub 2023-06-25 10:56:50 +02:00
parent 341d6fbecc
commit 1723830565
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
8 changed files with 0 additions and 116 deletions

View file

@ -1,18 +0,0 @@
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
package org.pgpainless.kotlin_experiments;
public class AJavaClass {
/**
* Some method in a Java class.
* Used by {@link org.pgpainless.kotlin_experiments.java_from_kotlin.AccessJavaFromKotlin}.
*/
public void doSomething() {
// CHECKSTYLE:OFF
System.out.println("Something has been done.");
// CHECKSTYLE:ON
}
}

View file

@ -1,22 +0,0 @@
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
package org.pgpainless.kotlin_experiments.kotlin_from_java;
import org.pgpainless.kotlin_experiments.AKotlinClass;
/**
* Example class to verify that we can access Kotlin classes from our Java code \o/.
* Accesses {@link AKotlinClass} and executes {@link AKotlinClass#printToStdout()}.
*/
public class AccessKotlinFromJava {
public static void main(String[] args) {
// from src/kotlin/.../
AKotlinClass kotlin = new AKotlinClass();
// CHECKSTYLE:OFF
kotlin.printToStdout();
// CHECKSTYLE:ON
}
}

View file

@ -1,9 +0,0 @@
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
/**
* Demonstration package.
* TODO: Delete later.
*/
package org.pgpainless.kotlin_experiments.kotlin_from_java;

View file

@ -1,9 +0,0 @@
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
/**
* Demonstration package.
* TODO: Delete later.
*/
package org.pgpainless.kotlin_experiments;

View file

@ -1,17 +0,0 @@
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
package org.pgpainless.kotlin_experiments
/**
* Some Kotlin class that is used by AccessKotlinFromJava in src/main/java/...
*/
class AKotlinClass {
fun printToStdout() {
// CHECKSTYLE:OFF
println("'Hello, World' from Kotlin!")
// CHECKSTYLE:ON
}
}

View file

@ -1,23 +0,0 @@
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
package org.pgpainless.kotlin_experiments.java_from_kotlin
import org.pgpainless.kotlin_experiments.AJavaClass
/**
* Verify that we can access Java code from the Kotlin codebase.
* Accesses [AJavaClass] and executes [AJavaClass.doSomething].
*/
fun main(args: Array<String>) {
AccessJavaFromKotlin().run()
}
class AccessJavaFromKotlin {
fun run() {
val java = AJavaClass()
java.doSomething()
}
}

View file

@ -1,9 +0,0 @@
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
/**
* Demonstration package.
* TODO: Delete later.
*/
package org.pgpainless.kotlin_experiments.java_from_kotlin;

View file

@ -1,9 +0,0 @@
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
/**
* Demonstration package.
* TODO: Delete later.
*/
package org.pgpainless.kotlin_experiments;