mirror of
https://gitee.com/BDWare/cp.git
synced 2025-01-10 01:44: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"
|
group = "org.bdware.sc"
|
||||||
version = "1.8.0"
|
version = "1.8.0"
|
||||||
|
tasks.withType(JavaCompile) {
|
||||||
|
// options.compilerArgs << '-Xlint:none'
|
||||||
|
// options.compilerArgs << '-Xlint:deprecation' << "-Werror"
|
||||||
|
options.compilerArgs << '-parameters'
|
||||||
|
}
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
@ -49,10 +53,10 @@ dependencies {
|
|||||||
testImplementation 'junit:junit:4.13.2'
|
testImplementation 'junit:junit:4.13.2'
|
||||||
}
|
}
|
||||||
tasks.jar.setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
|
tasks.jar.setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
|
||||||
|
|
||||||
task classJar(type: Jar, dependsOn: classes) {
|
task classJar(type: Jar, dependsOn: classes) {
|
||||||
classifier = "jar"
|
classifier = "jar"
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
String libs = ''
|
String libs = ''
|
||||||
configurations.runtimeClasspath.each {
|
configurations.runtimeClasspath.each {
|
||||||
@ -62,8 +66,8 @@ jar {
|
|||||||
// uncomment this when publish,
|
// uncomment this when publish,
|
||||||
// while develop at local use "false"
|
// while develop at local use "false"
|
||||||
configurations.runtimeClasspath.filter {
|
configurations.runtimeClasspath.filter {
|
||||||
// it.getAbsolutePath().contains("/lib/")
|
it.getAbsolutePath().contains("/lib/")
|
||||||
false
|
// false
|
||||||
}.collect {
|
}.collect {
|
||||||
it.isDirectory() ? it : zipTree(it)
|
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.AccountIndex;
|
||||||
import org.bdware.sc.boundry.JavaScriptEntry;
|
import org.bdware.sc.boundry.JavaScriptEntry;
|
||||||
|
import org.bdware.sc.boundry.utils.AESUtil;
|
||||||
import org.bdware.sc.engine.DesktopEngine;
|
import org.bdware.sc.engine.DesktopEngine;
|
||||||
|
import org.junit.Test;
|
||||||
import wrp.jdk.nashorn.api.scripting.ScriptObjectMirror;
|
import wrp.jdk.nashorn.api.scripting.ScriptObjectMirror;
|
||||||
import wrp.jdk.nashorn.internal.objects.Global;
|
import wrp.jdk.nashorn.internal.objects.Global;
|
||||||
import wrp.jdk.nashorn.internal.runtime.Context;
|
import wrp.jdk.nashorn.internal.runtime.Context;
|
||||||
import wrp.jdk.nashorn.internal.runtime.ScriptObject;
|
import wrp.jdk.nashorn.internal.runtime.ScriptObject;
|
||||||
|
|
||||||
|
import java.lang.reflect.Method;
|
||||||
|
import java.lang.reflect.Parameter;
|
||||||
|
|
||||||
public class ACIndexTest {
|
public class ACIndexTest {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
AccountIndex index = AccountIndex.createIndex();
|
AccountIndex index = AccountIndex.createIndex();
|
||||||
@ -38,4 +43,11 @@ public class ACIndexTest {
|
|||||||
long end = System.currentTimeMillis();
|
long end = System.currentTimeMillis();
|
||||||
System.out.println(end - start);
|
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