mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-24 11:57:59 +01:00
Remove Kotlin experiments
This commit is contained in:
parent
08d516c990
commit
5eece135af
8 changed files with 0 additions and 116 deletions
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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;
|
|
|
@ -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;
|
|
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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()
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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;
|
|
|
@ -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;
|
|
Loading…
Reference in a new issue