Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ buildscript {
}
dependencies {
classpath libs.android.build.gradle
classpath libs.gradle.retrolambda
classpath libs.spotbugs.gradle.plugin
}
}
Expand All @@ -33,8 +32,6 @@ apply plugin: 'base'
apply plugin: 'com.github.spotbugs'
apply from: file('version.gradle')

apply plugin: 'me.tatarka.retrolambda'

// This is applied to all sub projects
subprojects {
if(!project.name.equals('jme3-android-examples')) {
Expand Down Expand Up @@ -245,10 +242,4 @@ if (skipPrebuildLibraries != "true" && buildNativeProjects != "true") {

assemble.dependsOn extractPrebuiltNatives
}
}

retrolambda {
javaVersion JavaVersion.VERSION_1_7
incremental true
jvmArgs '-noverify'
}
}
1 change: 0 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ android-support-appcompat = "com.android.support:appcompat-v7:28.0.0"
androidx-annotation = "androidx.annotation:annotation:1.3.0"
androidx-lifecycle-common = "androidx.lifecycle:lifecycle-common:2.4.0"
gradle-git = "org.ajoberstar:gradle-git:1.2.0"
gradle-retrolambda = "me.tatarka:gradle-retrolambda:3.7.1"
groovy-test = "org.codehaus.groovy:groovy-test:3.0.24"
gson = "com.google.code.gson:gson:2.13.2"
j-ogg-vorbis = "com.github.stephengold:j-ogg-vorbis:1.0.6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import java.util.List;

import com.jme3.math.FastMath;
import com.jme3.util.functional.Function;
import java.util.function.Predicate;

/**
* Layout serializer for buffers
Expand All @@ -46,7 +46,7 @@
public abstract class BufferLayout {

public static abstract class ObjectSerializer<T> {
private Function<Boolean, Object> filter;
private Predicate<Object> filter;

public ObjectSerializer(Class<T> cls) {
this(obj -> {
Expand All @@ -56,12 +56,12 @@ public ObjectSerializer(Class<T> cls) {

}

public ObjectSerializer(Function<Boolean, Object> filter) {
public ObjectSerializer(Predicate<Object> filter) {
this.filter = filter;
}

public final boolean canSerialize(Object obj) {
return filter.eval(obj);
return filter.test(obj);
}

public abstract int length(BufferLayout layout, T obj);
Expand Down
36 changes: 0 additions & 36 deletions jme3-core/src/main/java/com/jme3/util/functional/Function.java

This file was deleted.

This file was deleted.

This file was deleted.

36 changes: 0 additions & 36 deletions jme3-core/src/main/java/com/jme3/util/functional/VoidFunction.java

This file was deleted.

Loading