"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/groovy/lang/TracingInterceptor.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.

TracingInterceptor.java  (apache-groovy-src-3.0.8):TracingInterceptor.java  (apache-groovy-src-3.0.9)
skipping to change at line 108 skipping to change at line 108
writer.write(" "); writer.write(" ");
Class theClass = object instanceof Class ? (Class) object: object.ge tClass(); Class theClass = object instanceof Class ? (Class) object: object.ge tClass();
writeInfo(theClass, methodName, arguments); writeInfo(theClass, methodName, arguments);
writer.write("\n"); writer.write("\n");
writer.flush(); writer.flush();
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
} }
protected void writeInfo(final Class aClass, String methodName, Object[] arg protected void writeInfo(final Class aClass, final String methodName, final
uments) throws IOException { Object[] arguments) throws IOException {
writer.write(aClass.getName()); String argumentTypes = java.util.stream.Stream.of(arguments)
writer.write("."); .map(arg -> arg != null ? arg.getClass().getName() : "java.lang.
writer.write(methodName); Object") // GROOVY-10009
writer.write("("); .collect(java.util.stream.Collectors.joining(", "));
for (int i = 0; i < arguments.length; i++) { StringBuilder result = new StringBuilder(aClass.getName());
if (i > 0) writer.write(", "); result.append('.').append(methodName).append('(');
Object argument = arguments[i]; result.append(argumentTypes).append(')');
writer.write(argument.getClass().getName()); writer.write(result.toString());
}
writer.write(")");
} }
} }
 End of changes. 1 change blocks. 
12 lines changed or deleted 10 lines changed or added

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