mirror of
https://gitee.com/BDWare/cp.git
synced 2025-01-09 17:34:08 +00:00
reserve for parameter at compiler
This commit is contained in:
parent
0d7424cd7f
commit
cd87b1f014
12
build.gradle
12
build.gradle
@ -7,7 +7,11 @@ plugins {
|
||||
|
||||
group = "org.bdware.sc"
|
||||
version = "1.8.0"
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
// options.compilerArgs << '-Xlint:none'
|
||||
// options.compilerArgs << '-Xlint:deprecation' << "-Werror"
|
||||
options.compilerArgs << '-parameters'
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
@ -49,10 +53,10 @@ dependencies {
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
}
|
||||
tasks.jar.setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
|
||||
|
||||
task classJar(type: Jar, dependsOn: classes) {
|
||||
classifier = "jar"
|
||||
}
|
||||
|
||||
jar {
|
||||
String libs = ''
|
||||
configurations.runtimeClasspath.each {
|
||||
@ -62,8 +66,8 @@ jar {
|
||||
// uncomment this when publish,
|
||||
// while develop at local use "false"
|
||||
configurations.runtimeClasspath.filter {
|
||||
// it.getAbsolutePath().contains("/lib/")
|
||||
false
|
||||
it.getAbsolutePath().contains("/lib/")
|
||||
// false
|
||||
}.collect {
|
||||
it.isDirectory() ? it : zipTree(it)
|
||||
}
|
||||
|
@ -2,12 +2,17 @@ package org.bdware.sc.boundry.test;
|
||||
|
||||
import org.bdware.sc.boundry.AccountIndex;
|
||||
import org.bdware.sc.boundry.JavaScriptEntry;
|
||||
import org.bdware.sc.boundry.utils.AESUtil;
|
||||
import org.bdware.sc.engine.DesktopEngine;
|
||||
import org.junit.Test;
|
||||
import wrp.jdk.nashorn.api.scripting.ScriptObjectMirror;
|
||||
import wrp.jdk.nashorn.internal.objects.Global;
|
||||
import wrp.jdk.nashorn.internal.runtime.Context;
|
||||
import wrp.jdk.nashorn.internal.runtime.ScriptObject;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Parameter;
|
||||
|
||||
public class ACIndexTest {
|
||||
public static void main(String[] args) {
|
||||
AccountIndex index = AccountIndex.createIndex();
|
||||
@ -38,4 +43,11 @@ public class ACIndexTest {
|
||||
long end = System.currentTimeMillis();
|
||||
System.out.println(end - start);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test() throws NoSuchMethodException {
|
||||
Method abc = AESUtil.class.getMethod("encrypt", String.class, String.class);
|
||||
Parameter[] param = abc.getParameters();
|
||||
System.out.println(param[0].getName());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user