mirror of
https://github.com/corda/corda.git
synced 2025-02-01 16:58:27 +00:00
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
This commit is contained in:
commit
3575e28e87
@ -219,6 +219,25 @@ public final class Class <T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Constructor getDeclaredConstructor(Class ... parameterTypes)
|
||||||
|
throws NoSuchMethodException
|
||||||
|
{
|
||||||
|
Constructor c = null;
|
||||||
|
Constructor[] constructors = getDeclaredConstructors();
|
||||||
|
|
||||||
|
for (int i = 0; i < constructors.length; ++i) {
|
||||||
|
if (match(parameterTypes, constructors[i].getParameterTypes())) {
|
||||||
|
c = constructors[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (c == null) {
|
||||||
|
throw new NoSuchMethodException();
|
||||||
|
} else {
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private int countConstructors(boolean publicOnly) {
|
private int countConstructors(boolean publicOnly) {
|
||||||
int count = 0;
|
int count = 0;
|
||||||
if (methodTable != null) {
|
if (methodTable != null) {
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
package java.util;
|
package java.util;
|
||||||
|
|
||||||
public class Locale {
|
public class Locale {
|
||||||
public static final Locale ENGLISH = new Locale("en");
|
public static final Locale ENGLISH = new Locale("en", "us");
|
||||||
|
|
||||||
private final String language;
|
private final String language;
|
||||||
private final String country;
|
private final String country;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user