From 76c5d4ced461ae174384a60a78b49e11ee1e443e Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 22 Feb 2019 15:07:57 +0100 Subject: [PATCH] Replace Fingerprintable with Kotlin version --- .../pterodactylus/sone/data/Fingerprintable.java | 34 ---------------------- .../net/pterodactylus/sone/data/Fingerprintable.kt | 29 ++++++++++++++++++ 2 files changed, 29 insertions(+), 34 deletions(-) delete mode 100644 src/main/java/net/pterodactylus/sone/data/Fingerprintable.java create mode 100644 src/main/kotlin/net/pterodactylus/sone/data/Fingerprintable.kt diff --git a/src/main/java/net/pterodactylus/sone/data/Fingerprintable.java b/src/main/java/net/pterodactylus/sone/data/Fingerprintable.java deleted file mode 100644 index 28f5930..0000000 --- a/src/main/java/net/pterodactylus/sone/data/Fingerprintable.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Sone - Fingerprintable.java - Copyright © 2011–2016 David Roden - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -package net.pterodactylus.sone.data; - -/** - * Interface for objects that can create a fingerprint of themselves, e.g. to - * detect modifications. The fingerprint should only contain original - * information; derived information should not be included. - */ -public interface Fingerprintable { - - /** - * Returns the fingerprint of this object. - * - * @return The fingerprint of this object - */ - public String getFingerprint(); - -} diff --git a/src/main/kotlin/net/pterodactylus/sone/data/Fingerprintable.kt b/src/main/kotlin/net/pterodactylus/sone/data/Fingerprintable.kt new file mode 100644 index 0000000..4c0e7f8 --- /dev/null +++ b/src/main/kotlin/net/pterodactylus/sone/data/Fingerprintable.kt @@ -0,0 +1,29 @@ +/* + * Sone - Fingerprintable.java - Copyright © 2011–2016 David Roden + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package net.pterodactylus.sone.data + +/** + * Interface for objects that can create a fingerprint of themselves, e.g. to + * detect modifications. The fingerprint should only contain original + * information; derived information should not be included. + */ +interface Fingerprintable { + + val fingerprint: String + +} -- 2.7.4