"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/org/codehaus/groovy/ast/ClassHelper.java" between
apache-groovy-src-3.0.8.zip and apache-groovy-src-3.0.9.zip

About: Groovy is an agile dynamic (scripting) language for the Java Platform. It has features similar to those of Python, Ruby, Perl, and Smalltalk. Source release.

ClassHelper.java  (apache-groovy-src-3.0.8):ClassHelper.java  (apache-groovy-src-3.0.9)
skipping to change at line 421 skipping to change at line 421
static ManagedConcurrentMap<Class, SoftReference<ClassNode>> classCache = new ManagedConcurrentMap<Class, SoftReference<ClassNode>>(ReferenceBundle.getW eakBundle()); static ManagedConcurrentMap<Class, SoftReference<ClassNode>> classCache = new ManagedConcurrentMap<Class, SoftReference<ClassNode>>(ReferenceBundle.getW eakBundle());
} }
public static boolean isSAMType(final ClassNode type) { public static boolean isSAMType(final ClassNode type) {
return findSAM(type) != null; return findSAM(type) != null;
} }
public static boolean isFunctionalInterface(final ClassNode type) { public static boolean isFunctionalInterface(final ClassNode type) {
// Functional interface must be an interface at first, or the following exception will occur: // Functional interface must be an interface at first, or the following exception will occur:
// java.lang.invoke.LambdaConversionException: Functional interface SamC allable is not an interface // java.lang.invoke.LambdaConversionException: Functional interface SamC allable is not an interface
return type.isInterface() && isSAMType(type); return type != null && type.isInterface() && isSAMType(type);
} }
/** /**
* Checks if the type is a generated function, i.e. closure or lambda. * Checks if the type is a generated function, i.e. closure or lambda.
* *
* @since 3.0.0 * @since 3.0.0
*/ */
public static boolean isGeneratedFunction(final ClassNode type) { public static boolean isGeneratedFunction(final ClassNode type) {
return type.implementsAnyInterfaces(GENERATED_CLOSURE_Type, GENERATED_LA MBDA_TYPE); return type.implementsAnyInterfaces(GENERATED_CLOSURE_Type, GENERATED_LA MBDA_TYPE);
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)